configure 931 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.72 for tcpreplay 4.5.2.
  4. #
  5. # Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  20. then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else case e in #(
  28. e) case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed 'exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  129. then :
  130. emulate sh
  131. NULLCMD=:
  132. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  133. # is contrary to our usage. Disable this feature.
  134. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  135. setopt NO_GLOB_SUBST
  136. else case e in #(
  137. e) case \`(set -o) 2>/dev/null\` in #(
  138. *posix*) :
  139. set -o posix ;; #(
  140. *) :
  141. ;;
  142. esac ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else case e in #(
  159. e) exitcode=1; echo positional parameters were not saved. ;;
  160. esac
  161. fi
  162. test x\$exitcode = x0 || exit 1
  163. blah=\$(echo \$(echo blah))
  164. test x\"\$blah\" = xblah || exit 1
  165. test -x / || exit 1"
  166. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  167. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  168. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  169. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  170. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  171. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  174. PATH=/empty FPATH=/empty; export PATH FPATH
  175. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  176. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  177. test \$(( 1 + 1 )) = 2 || exit 1"
  178. if (eval "$as_required") 2>/dev/null
  179. then :
  180. as_have_required=yes
  181. else case e in #(
  182. e) as_have_required=no ;;
  183. esac
  184. fi
  185. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  186. then :
  187. else case e in #(
  188. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  189. as_found=false
  190. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  191. do
  192. IFS=$as_save_IFS
  193. case $as_dir in #(((
  194. '') as_dir=./ ;;
  195. */) ;;
  196. *) as_dir=$as_dir/ ;;
  197. esac
  198. as_found=:
  199. case $as_dir in #(
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. # Try only shells that exist, to save several forks.
  203. as_shell=$as_dir$as_base
  204. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  205. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  206. then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  209. then :
  210. break 2
  211. fi
  212. fi
  213. done;;
  214. esac
  215. as_found=false
  216. done
  217. IFS=$as_save_IFS
  218. if $as_found
  219. then :
  220. else case e in #(
  221. e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  222. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  223. then :
  224. CONFIG_SHELL=$SHELL as_have_required=yes
  225. fi ;;
  226. esac
  227. fi
  228. if test "x$CONFIG_SHELL" != x
  229. then :
  230. export CONFIG_SHELL
  231. # We cannot yet assume a decent shell, so we have to provide a
  232. # neutralization value for shells without unset; and this also
  233. # works around shells that cannot unset nonexistent variables.
  234. # Preserve -v and -x to the replacement shell.
  235. BASH_ENV=/dev/null
  236. ENV=/dev/null
  237. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  238. case $- in # ((((
  239. *v*x* | *x*v* ) as_opts=-vx ;;
  240. *v* ) as_opts=-v ;;
  241. *x* ) as_opts=-x ;;
  242. * ) as_opts= ;;
  243. esac
  244. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  245. # Admittedly, this is quite paranoid, since all the known shells bail
  246. # out after a failed 'exec'.
  247. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  248. exit 255
  249. fi
  250. if test x$as_have_required = xno
  251. then :
  252. printf "%s\n" "$0: This script requires a shell more modern than all"
  253. printf "%s\n" "$0: the shells that I found on your system."
  254. if test ${ZSH_VERSION+y} ; then
  255. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. printf "%s\n" "$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. esac
  267. fi
  268. fi
  269. SHELL=${CONFIG_SHELL-/bin/sh}
  270. export SHELL
  271. # Unset more variables known to interfere with behavior of common tools.
  272. CLICOLOR_FORCE= GREP_OPTIONS=
  273. unset CLICOLOR_FORCE GREP_OPTIONS
  274. ## --------------------- ##
  275. ## M4sh Shell Functions. ##
  276. ## --------------------- ##
  277. # as_fn_unset VAR
  278. # ---------------
  279. # Portably unset VAR.
  280. as_fn_unset ()
  281. {
  282. { eval $1=; unset $1;}
  283. }
  284. as_unset=as_fn_unset
  285. # as_fn_set_status STATUS
  286. # -----------------------
  287. # Set $? to STATUS, without forking.
  288. as_fn_set_status ()
  289. {
  290. return $1
  291. } # as_fn_set_status
  292. # as_fn_exit STATUS
  293. # -----------------
  294. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  295. as_fn_exit ()
  296. {
  297. set +e
  298. as_fn_set_status $1
  299. exit $1
  300. } # as_fn_exit
  301. # as_fn_mkdir_p
  302. # -------------
  303. # Create "$as_dir" as a directory, including parents if necessary.
  304. as_fn_mkdir_p ()
  305. {
  306. case $as_dir in #(
  307. -*) as_dir=./$as_dir;;
  308. esac
  309. test -d "$as_dir" || eval $as_mkdir_p || {
  310. as_dirs=
  311. while :; do
  312. case $as_dir in #(
  313. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  314. *) as_qdir=$as_dir;;
  315. esac
  316. as_dirs="'$as_qdir' $as_dirs"
  317. as_dir=`$as_dirname -- "$as_dir" ||
  318. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  319. X"$as_dir" : 'X\(//\)[^/]' \| \
  320. X"$as_dir" : 'X\(//\)$' \| \
  321. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  322. printf "%s\n" X"$as_dir" |
  323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)[^/].*/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)$/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\).*/{
  336. s//\1/
  337. q
  338. }
  339. s/.*/./; q'`
  340. test -d "$as_dir" && break
  341. done
  342. test -z "$as_dirs" || eval "mkdir $as_dirs"
  343. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  344. } # as_fn_mkdir_p
  345. # as_fn_executable_p FILE
  346. # -----------------------
  347. # Test if FILE is an executable regular file.
  348. as_fn_executable_p ()
  349. {
  350. test -f "$1" && test -x "$1"
  351. } # as_fn_executable_p
  352. # as_fn_append VAR VALUE
  353. # ----------------------
  354. # Append the text in VALUE to the end of the definition contained in VAR. Take
  355. # advantage of any shell optimizations that allow amortized linear growth over
  356. # repeated appends, instead of the typical quadratic growth present in naive
  357. # implementations.
  358. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  359. then :
  360. eval 'as_fn_append ()
  361. {
  362. eval $1+=\$2
  363. }'
  364. else case e in #(
  365. e) as_fn_append ()
  366. {
  367. eval $1=\$$1\$2
  368. } ;;
  369. esac
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else case e in #(
  383. e) as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. } ;;
  387. esac
  388. fi # as_fn_arith
  389. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  390. # ----------------------------------------
  391. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  392. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  393. # script with STATUS, using 1 if that was 0.
  394. as_fn_error ()
  395. {
  396. as_status=$1; test $as_status -eq 0 && as_status=1
  397. if test "$4"; then
  398. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  400. fi
  401. printf "%s\n" "$as_me: error: $2" >&2
  402. as_fn_exit $as_status
  403. } # as_fn_error
  404. if expr a : '\(a\)' >/dev/null 2>&1 &&
  405. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  406. as_expr=expr
  407. else
  408. as_expr=false
  409. fi
  410. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  411. as_basename=basename
  412. else
  413. as_basename=false
  414. fi
  415. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  416. as_dirname=dirname
  417. else
  418. as_dirname=false
  419. fi
  420. as_me=`$as_basename -- "$0" ||
  421. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  422. X"$0" : 'X\(//\)$' \| \
  423. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  424. printf "%s\n" X/"$0" |
  425. sed '/^.*\/\([^/][^/]*\)\/*$/{
  426. s//\1/
  427. q
  428. }
  429. /^X\/\(\/\/\)$/{
  430. s//\1/
  431. q
  432. }
  433. /^X\/\(\/\).*/{
  434. s//\1/
  435. q
  436. }
  437. s/.*/./; q'`
  438. # Avoid depending upon Character Ranges.
  439. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  440. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  441. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  442. as_cr_digits='0123456789'
  443. as_cr_alnum=$as_cr_Letters$as_cr_digits
  444. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  445. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  446. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  447. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  448. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  449. sed -n '
  450. p
  451. /[$]LINENO/=
  452. ' <$as_myself |
  453. sed '
  454. t clear
  455. :clear
  456. s/[$]LINENO.*/&-/
  457. t lineno
  458. b
  459. :lineno
  460. N
  461. :loop
  462. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  463. t loop
  464. s/-\n.*//
  465. ' >$as_me.lineno &&
  466. chmod +x "$as_me.lineno" ||
  467. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  468. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  469. # already done that, so ensure we don't try to do so again and fall
  470. # in an infinite loop. This has already happened in practice.
  471. _as_can_reexec=no; export _as_can_reexec
  472. # Don't try to exec as it changes $[0], causing all sort of problems
  473. # (the dirname of $[0] is not the place where we might find the
  474. # original and so on. Autoconf is especially sensitive to this).
  475. . "./$as_me.lineno"
  476. # Exit status is that of the last command.
  477. exit
  478. }
  479. # Determine whether it's possible to make 'echo' print without a newline.
  480. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  481. # for compatibility with existing Makefiles.
  482. ECHO_C= ECHO_N= ECHO_T=
  483. case `echo -n x` in #(((((
  484. -n*)
  485. case `echo 'xy\c'` in
  486. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  487. xy) ECHO_C='\c';;
  488. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  489. ECHO_T=' ';;
  490. esac;;
  491. *)
  492. ECHO_N='-n';;
  493. esac
  494. # For backward compatibility with old third-party macros, we provide
  495. # the shell variables $as_echo and $as_echo_n. New code should use
  496. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  497. as_echo='printf %s\n'
  498. as_echo_n='printf %s'
  499. rm -f conf$$ conf$$.exe conf$$.file
  500. if test -d conf$$.dir; then
  501. rm -f conf$$.dir/conf$$.file
  502. else
  503. rm -f conf$$.dir
  504. mkdir conf$$.dir 2>/dev/null
  505. fi
  506. if (echo >conf$$.file) 2>/dev/null; then
  507. if ln -s conf$$.file conf$$ 2>/dev/null; then
  508. as_ln_s='ln -s'
  509. # ... but there are two gotchas:
  510. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  511. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  512. # In both cases, we have to default to 'cp -pR'.
  513. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  514. as_ln_s='cp -pR'
  515. elif ln conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s=ln
  517. else
  518. as_ln_s='cp -pR'
  519. fi
  520. else
  521. as_ln_s='cp -pR'
  522. fi
  523. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  524. rmdir conf$$.dir 2>/dev/null
  525. if mkdir -p . 2>/dev/null; then
  526. as_mkdir_p='mkdir -p "$as_dir"'
  527. else
  528. test -d ./-p && rmdir ./-p
  529. as_mkdir_p=false
  530. fi
  531. as_test_x='test -x'
  532. as_executable_p=as_fn_executable_p
  533. # Sed expression to map a string onto a valid CPP name.
  534. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  535. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  536. # Sed expression to map a string onto a valid variable name.
  537. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  538. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  539. SHELL=${CONFIG_SHELL-/bin/sh}
  540. test -n "$DJDIR" || exec 7<&0 </dev/null
  541. exec 6>&1
  542. # Name of the host.
  543. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  544. # so uname gets run too.
  545. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  546. #
  547. # Initializations.
  548. #
  549. ac_default_prefix=/usr/local
  550. ac_clean_files=
  551. ac_config_libobj_dir=.
  552. LIBOBJS=
  553. cross_compiling=no
  554. subdirs=
  555. MFLAGS=
  556. MAKEFLAGS=
  557. # Identity of this package.
  558. PACKAGE_NAME='tcpreplay'
  559. PACKAGE_TARNAME='tcpreplay'
  560. PACKAGE_VERSION='4.5.2'
  561. PACKAGE_STRING='tcpreplay 4.5.2'
  562. PACKAGE_BUGREPORT='https://github.com/appneta/tcpreplay/issues'
  563. PACKAGE_URL='http://tcpreplay.sourceforge.net/'
  564. ac_unique_file="src/tcpreplay.c"
  565. # Factoring default headers for most tests.
  566. ac_includes_default="\
  567. #include <stddef.h>
  568. #ifdef HAVE_STDIO_H
  569. # include <stdio.h>
  570. #endif
  571. #ifdef HAVE_STDLIB_H
  572. # include <stdlib.h>
  573. #endif
  574. #ifdef HAVE_STRING_H
  575. # include <string.h>
  576. #endif
  577. #ifdef HAVE_INTTYPES_H
  578. # include <inttypes.h>
  579. #endif
  580. #ifdef HAVE_STDINT_H
  581. # include <stdint.h>
  582. #endif
  583. #ifdef HAVE_STRINGS_H
  584. # include <strings.h>
  585. #endif
  586. #ifdef HAVE_SYS_TYPES_H
  587. # include <sys/types.h>
  588. #endif
  589. #ifdef HAVE_SYS_STAT_H
  590. # include <sys/stat.h>
  591. #endif
  592. #ifdef HAVE_UNISTD_H
  593. # include <unistd.h>
  594. #endif"
  595. ac_header_c_list=
  596. ac_func_c_list=
  597. enable_year2038=no
  598. ac_subst_vars='am__EXEEXT_FALSE
  599. am__EXEEXT_TRUE
  600. LTLIBOBJS
  601. LIBOPTS_DIR
  602. LIBOPTS_CFLAGS
  603. LIBOPTS_LDADD
  604. NEED_LIBOPTS_FALSE
  605. NEED_LIBOPTS_TRUE
  606. INSTALL_LIBOPTS_FALSE
  607. INSTALL_LIBOPTS_TRUE
  608. POSIX_SHELL
  609. GL_GENERATE_STDNORETURN_H_FALSE
  610. GL_GENERATE_STDNORETURN_H_TRUE
  611. STDNORETURN_H
  612. nic2
  613. nic1
  614. ENABLE_OSX_FRAMEWORKS_FALSE
  615. ENABLE_OSX_FRAMEWORKS_TRUE
  616. test_hexdump
  617. ENABLE_TCPDUMP_FALSE
  618. ENABLE_TCPDUMP_TRUE
  619. tcpdump_path
  620. LNAV_CFLAGS
  621. LNAVLIB
  622. pcncfg
  623. PCAP_BPF_H_FILE
  624. COMPILE_FRAGROUTE_FALSE
  625. COMPILE_FRAGROUTE_TRUE
  626. LDNETLIB
  627. LDNETINC
  628. COMPILE_NETMAP_FALSE
  629. COMPILE_NETMAP_TRUE
  630. NETMAPFLAGS
  631. NETMAPINCDIR
  632. NETMAPUSERINC
  633. NETMAPINC
  634. COMPILE_TCPLIVEPLAY_FALSE
  635. COMPILE_TCPLIVEPLAY_TRUE
  636. COMPILE_TCPBRIDGE_FALSE
  637. COMPILE_TCPBRIDGE_TRUE
  638. LPCAPLIB
  639. LPCAPINC
  640. PCAP_CONFIG
  641. DMALLOC_LIB
  642. timestamp_trace_flag
  643. extra_debug_flag
  644. debug_run_time_flag
  645. debug_flag
  646. build_tsan
  647. build_asan
  648. WORDS_BIGENDIAN_FALSE
  649. WORDS_BIGENDIAN_TRUE
  650. SYSTEM_STRLCPY_FALSE
  651. SYSTEM_STRLCPY_TRUE
  652. LIBOBJS
  653. rmmod
  654. insmod
  655. depmod
  656. GROFF
  657. AUTOGEN
  658. CUT
  659. ECHO
  660. PRINTF
  661. CPP
  662. CXXCPP
  663. am__fastdepCXX_FALSE
  664. am__fastdepCXX_TRUE
  665. CXXDEPMODE
  666. ac_ct_CXX
  667. CXXFLAGS
  668. CXX
  669. LT_SYS_LIBRARY_PATH
  670. OTOOL64
  671. OTOOL
  672. LIPO
  673. NMEDIT
  674. DSYMUTIL
  675. MANIFEST_TOOL
  676. RANLIB
  677. DLLTOOL
  678. OBJDUMP
  679. FILECMD
  680. LN_S
  681. NM
  682. ac_ct_DUMPBIN
  683. DUMPBIN
  684. LD
  685. FGREP
  686. EGREP
  687. GREP
  688. SED
  689. am__fastdepCC_FALSE
  690. am__fastdepCC_TRUE
  691. CCDEPMODE
  692. am__nodep
  693. AMDEPBACKSLASH
  694. AMDEP_FALSE
  695. AMDEP_TRUE
  696. am__include
  697. DEPDIR
  698. OBJEXT
  699. EXEEXT
  700. ac_ct_CC
  701. CPPFLAGS
  702. LDFLAGS
  703. CFLAGS
  704. CC
  705. ac_ct_AR
  706. AR
  707. am__xargs_n
  708. am__rm_f_notfound
  709. AM_BACKSLASH
  710. AM_DEFAULT_VERBOSITY
  711. AM_DEFAULT_V
  712. AM_V
  713. CSCOPE
  714. ETAGS
  715. CTAGS
  716. am__untar
  717. am__tar
  718. AMTAR
  719. am__leading_dot
  720. SET_MAKE
  721. AWK
  722. mkdir_p
  723. MKDIR_P
  724. INSTALL_STRIP_PROGRAM
  725. STRIP
  726. install_sh
  727. MAKEINFO
  728. AUTOHEADER
  729. AUTOMAKE
  730. AUTOCONF
  731. ACLOCAL
  732. VERSION
  733. PACKAGE
  734. CYGPATH_W
  735. am__isrc
  736. INSTALL_DATA
  737. INSTALL_SCRIPT
  738. INSTALL_PROGRAM
  739. LIBTOOL
  740. MACOSX_SDK_PATH
  741. CROSS_LD
  742. CROSS_ARCH
  743. target_os
  744. target_vendor
  745. target_cpu
  746. target
  747. host_os
  748. host_vendor
  749. host_cpu
  750. host
  751. build_os
  752. build_vendor
  753. build_cpu
  754. build
  755. TCPREPLAY_RELEASE
  756. TCPREPLAY_VERSION
  757. MAINT
  758. MAINTAINER_MODE_FALSE
  759. MAINTAINER_MODE_TRUE
  760. target_alias
  761. host_alias
  762. build_alias
  763. LIBS
  764. ECHO_T
  765. ECHO_N
  766. ECHO_C
  767. DEFS
  768. mandir
  769. localedir
  770. libdir
  771. psdir
  772. pdfdir
  773. dvidir
  774. htmldir
  775. infodir
  776. docdir
  777. oldincludedir
  778. includedir
  779. runstatedir
  780. localstatedir
  781. sharedstatedir
  782. sysconfdir
  783. datadir
  784. datarootdir
  785. libexecdir
  786. sbindir
  787. bindir
  788. program_transform_name
  789. prefix
  790. exec_prefix
  791. PACKAGE_URL
  792. PACKAGE_BUGREPORT
  793. PACKAGE_STRING
  794. PACKAGE_VERSION
  795. PACKAGE_TARNAME
  796. PACKAGE_NAME
  797. PATH_SEPARATOR
  798. SHELL
  799. am__quote'
  800. ac_subst_files=''
  801. ac_user_opts='
  802. enable_option_checking
  803. enable_maintainer_mode
  804. with_dmalloc
  805. with_macos_sdk
  806. with_pfring_lib
  807. enable_silent_rules
  808. enable_dependency_tracking
  809. enable_shared
  810. enable_static
  811. enable_pic
  812. with_pic
  813. enable_fast_install
  814. enable_aix_soname
  815. with_aix_soname
  816. with_gnu_ld
  817. with_sysroot
  818. enable_libtool_lock
  819. enable_largefile
  820. enable_asan
  821. enable_tsan
  822. enable_debug
  823. enable_extra_debug
  824. enable_timestamp_trace
  825. enable_dmalloc
  826. enable_pedantic
  827. enable_efence
  828. enable_gprof
  829. enable_pcapconfig
  830. enable_64bits
  831. enable_force_bpf
  832. enable_force_pf
  833. enable_force_libdnet
  834. enable_force_libxdp
  835. enable_force_inject
  836. enable_force_sendpacket
  837. enable_static_link
  838. enable_dynamic_link
  839. enable_tuntap
  840. with_libpcap
  841. with_netmap
  842. with_libdnet
  843. with_pcapnav_config
  844. with_tcpdump
  845. with_testnic
  846. enable_test_hexdump
  847. with_testnic2
  848. enable_nls
  849. enable_local_libopts
  850. enable_libopts_install
  851. with_autoopts_config
  852. with_regex_header
  853. with_libregex
  854. with_libregex_cflags
  855. with_libregex_libs
  856. enable_optional_args
  857. enable_year2038
  858. '
  859. ac_precious_vars='build_alias
  860. host_alias
  861. target_alias
  862. CC
  863. CFLAGS
  864. LDFLAGS
  865. LIBS
  866. CPPFLAGS
  867. LT_SYS_LIBRARY_PATH
  868. CXX
  869. CXXFLAGS
  870. CCC
  871. CXXCPP
  872. CPP'
  873. # Initialize some variables set by options.
  874. ac_init_help=
  875. ac_init_version=false
  876. ac_unrecognized_opts=
  877. ac_unrecognized_sep=
  878. # The variables have the same names as the options, with
  879. # dashes changed to underlines.
  880. cache_file=/dev/null
  881. exec_prefix=NONE
  882. no_create=
  883. no_recursion=
  884. prefix=NONE
  885. program_prefix=NONE
  886. program_suffix=NONE
  887. program_transform_name=s,x,x,
  888. silent=
  889. site=
  890. srcdir=
  891. verbose=
  892. x_includes=NONE
  893. x_libraries=NONE
  894. # Installation directory options.
  895. # These are left unexpanded so users can "make install exec_prefix=/foo"
  896. # and all the variables that are supposed to be based on exec_prefix
  897. # by default will actually change.
  898. # Use braces instead of parens because sh, perl, etc. also accept them.
  899. # (The list follows the same order as the GNU Coding Standards.)
  900. bindir='${exec_prefix}/bin'
  901. sbindir='${exec_prefix}/sbin'
  902. libexecdir='${exec_prefix}/libexec'
  903. datarootdir='${prefix}/share'
  904. datadir='${datarootdir}'
  905. sysconfdir='${prefix}/etc'
  906. sharedstatedir='${prefix}/com'
  907. localstatedir='${prefix}/var'
  908. runstatedir='${localstatedir}/run'
  909. includedir='${prefix}/include'
  910. oldincludedir='/usr/include'
  911. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  912. infodir='${datarootdir}/info'
  913. htmldir='${docdir}'
  914. dvidir='${docdir}'
  915. pdfdir='${docdir}'
  916. psdir='${docdir}'
  917. libdir='${exec_prefix}/lib'
  918. localedir='${datarootdir}/locale'
  919. mandir='${datarootdir}/man'
  920. ac_prev=
  921. ac_dashdash=
  922. for ac_option
  923. do
  924. # If the previous option needs an argument, assign it.
  925. if test -n "$ac_prev"; then
  926. eval $ac_prev=\$ac_option
  927. ac_prev=
  928. continue
  929. fi
  930. case $ac_option in
  931. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  932. *=) ac_optarg= ;;
  933. *) ac_optarg=yes ;;
  934. esac
  935. case $ac_dashdash$ac_option in
  936. --)
  937. ac_dashdash=yes ;;
  938. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  939. ac_prev=bindir ;;
  940. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  941. bindir=$ac_optarg ;;
  942. -build | --build | --buil | --bui | --bu)
  943. ac_prev=build_alias ;;
  944. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  945. build_alias=$ac_optarg ;;
  946. -cache-file | --cache-file | --cache-fil | --cache-fi \
  947. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  948. ac_prev=cache_file ;;
  949. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  950. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  951. cache_file=$ac_optarg ;;
  952. --config-cache | -C)
  953. cache_file=config.cache ;;
  954. -datadir | --datadir | --datadi | --datad)
  955. ac_prev=datadir ;;
  956. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  957. datadir=$ac_optarg ;;
  958. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  959. | --dataroo | --dataro | --datar)
  960. ac_prev=datarootdir ;;
  961. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  962. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  963. datarootdir=$ac_optarg ;;
  964. -disable-* | --disable-*)
  965. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  966. # Reject names that are not valid shell variable names.
  967. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  968. as_fn_error $? "invalid feature name: '$ac_useropt'"
  969. ac_useropt_orig=$ac_useropt
  970. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  971. case $ac_user_opts in
  972. *"
  973. "enable_$ac_useropt"
  974. "*) ;;
  975. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  976. ac_unrecognized_sep=', ';;
  977. esac
  978. eval enable_$ac_useropt=no ;;
  979. -docdir | --docdir | --docdi | --doc | --do)
  980. ac_prev=docdir ;;
  981. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  982. docdir=$ac_optarg ;;
  983. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  984. ac_prev=dvidir ;;
  985. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  986. dvidir=$ac_optarg ;;
  987. -enable-* | --enable-*)
  988. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  989. # Reject names that are not valid shell variable names.
  990. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  991. as_fn_error $? "invalid feature name: '$ac_useropt'"
  992. ac_useropt_orig=$ac_useropt
  993. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  994. case $ac_user_opts in
  995. *"
  996. "enable_$ac_useropt"
  997. "*) ;;
  998. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  999. ac_unrecognized_sep=', ';;
  1000. esac
  1001. eval enable_$ac_useropt=\$ac_optarg ;;
  1002. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1003. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1004. | --exec | --exe | --ex)
  1005. ac_prev=exec_prefix ;;
  1006. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1007. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1008. | --exec=* | --exe=* | --ex=*)
  1009. exec_prefix=$ac_optarg ;;
  1010. -gas | --gas | --ga | --g)
  1011. # Obsolete; use --with-gas.
  1012. with_gas=yes ;;
  1013. -help | --help | --hel | --he | -h)
  1014. ac_init_help=long ;;
  1015. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1016. ac_init_help=recursive ;;
  1017. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1018. ac_init_help=short ;;
  1019. -host | --host | --hos | --ho)
  1020. ac_prev=host_alias ;;
  1021. -host=* | --host=* | --hos=* | --ho=*)
  1022. host_alias=$ac_optarg ;;
  1023. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1024. ac_prev=htmldir ;;
  1025. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1026. | --ht=*)
  1027. htmldir=$ac_optarg ;;
  1028. -includedir | --includedir | --includedi | --included | --include \
  1029. | --includ | --inclu | --incl | --inc)
  1030. ac_prev=includedir ;;
  1031. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1032. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1033. includedir=$ac_optarg ;;
  1034. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1035. ac_prev=infodir ;;
  1036. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1037. infodir=$ac_optarg ;;
  1038. -libdir | --libdir | --libdi | --libd)
  1039. ac_prev=libdir ;;
  1040. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1041. libdir=$ac_optarg ;;
  1042. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1043. | --libexe | --libex | --libe)
  1044. ac_prev=libexecdir ;;
  1045. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1046. | --libexe=* | --libex=* | --libe=*)
  1047. libexecdir=$ac_optarg ;;
  1048. -localedir | --localedir | --localedi | --localed | --locale)
  1049. ac_prev=localedir ;;
  1050. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1051. localedir=$ac_optarg ;;
  1052. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1053. | --localstate | --localstat | --localsta | --localst | --locals)
  1054. ac_prev=localstatedir ;;
  1055. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1056. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1057. localstatedir=$ac_optarg ;;
  1058. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1059. ac_prev=mandir ;;
  1060. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1061. mandir=$ac_optarg ;;
  1062. -nfp | --nfp | --nf)
  1063. # Obsolete; use --without-fp.
  1064. with_fp=no ;;
  1065. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1066. | --no-cr | --no-c | -n)
  1067. no_create=yes ;;
  1068. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1069. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1070. no_recursion=yes ;;
  1071. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1072. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1073. | --oldin | --oldi | --old | --ol | --o)
  1074. ac_prev=oldincludedir ;;
  1075. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1076. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1077. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1078. oldincludedir=$ac_optarg ;;
  1079. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1080. ac_prev=prefix ;;
  1081. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1082. prefix=$ac_optarg ;;
  1083. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1084. | --program-pre | --program-pr | --program-p)
  1085. ac_prev=program_prefix ;;
  1086. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1087. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1088. program_prefix=$ac_optarg ;;
  1089. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1090. | --program-suf | --program-su | --program-s)
  1091. ac_prev=program_suffix ;;
  1092. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1093. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1094. program_suffix=$ac_optarg ;;
  1095. -program-transform-name | --program-transform-name \
  1096. | --program-transform-nam | --program-transform-na \
  1097. | --program-transform-n | --program-transform- \
  1098. | --program-transform | --program-transfor \
  1099. | --program-transfo | --program-transf \
  1100. | --program-trans | --program-tran \
  1101. | --progr-tra | --program-tr | --program-t)
  1102. ac_prev=program_transform_name ;;
  1103. -program-transform-name=* | --program-transform-name=* \
  1104. | --program-transform-nam=* | --program-transform-na=* \
  1105. | --program-transform-n=* | --program-transform-=* \
  1106. | --program-transform=* | --program-transfor=* \
  1107. | --program-transfo=* | --program-transf=* \
  1108. | --program-trans=* | --program-tran=* \
  1109. | --progr-tra=* | --program-tr=* | --program-t=*)
  1110. program_transform_name=$ac_optarg ;;
  1111. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1112. ac_prev=pdfdir ;;
  1113. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1114. pdfdir=$ac_optarg ;;
  1115. -psdir | --psdir | --psdi | --psd | --ps)
  1116. ac_prev=psdir ;;
  1117. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1118. psdir=$ac_optarg ;;
  1119. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1120. | -silent | --silent | --silen | --sile | --sil)
  1121. silent=yes ;;
  1122. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1123. | --runstate | --runstat | --runsta | --runst | --runs \
  1124. | --run | --ru | --r)
  1125. ac_prev=runstatedir ;;
  1126. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1127. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1128. | --run=* | --ru=* | --r=*)
  1129. runstatedir=$ac_optarg ;;
  1130. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1131. ac_prev=sbindir ;;
  1132. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1133. | --sbi=* | --sb=*)
  1134. sbindir=$ac_optarg ;;
  1135. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1136. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1137. | --sharedst | --shareds | --shared | --share | --shar \
  1138. | --sha | --sh)
  1139. ac_prev=sharedstatedir ;;
  1140. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1141. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1142. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1143. | --sha=* | --sh=*)
  1144. sharedstatedir=$ac_optarg ;;
  1145. -site | --site | --sit)
  1146. ac_prev=site ;;
  1147. -site=* | --site=* | --sit=*)
  1148. site=$ac_optarg ;;
  1149. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1150. ac_prev=srcdir ;;
  1151. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1152. srcdir=$ac_optarg ;;
  1153. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1154. | --syscon | --sysco | --sysc | --sys | --sy)
  1155. ac_prev=sysconfdir ;;
  1156. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1157. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1158. sysconfdir=$ac_optarg ;;
  1159. -target | --target | --targe | --targ | --tar | --ta | --t)
  1160. ac_prev=target_alias ;;
  1161. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1162. target_alias=$ac_optarg ;;
  1163. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1164. verbose=yes ;;
  1165. -version | --version | --versio | --versi | --vers | -V)
  1166. ac_init_version=: ;;
  1167. -with-* | --with-*)
  1168. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1169. # Reject names that are not valid shell variable names.
  1170. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1171. as_fn_error $? "invalid package name: '$ac_useropt'"
  1172. ac_useropt_orig=$ac_useropt
  1173. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1174. case $ac_user_opts in
  1175. *"
  1176. "with_$ac_useropt"
  1177. "*) ;;
  1178. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1179. ac_unrecognized_sep=', ';;
  1180. esac
  1181. eval with_$ac_useropt=\$ac_optarg ;;
  1182. -without-* | --without-*)
  1183. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1184. # Reject names that are not valid shell variable names.
  1185. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1186. as_fn_error $? "invalid package name: '$ac_useropt'"
  1187. ac_useropt_orig=$ac_useropt
  1188. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1189. case $ac_user_opts in
  1190. *"
  1191. "with_$ac_useropt"
  1192. "*) ;;
  1193. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1194. ac_unrecognized_sep=', ';;
  1195. esac
  1196. eval with_$ac_useropt=no ;;
  1197. --x)
  1198. # Obsolete; use --with-x.
  1199. with_x=yes ;;
  1200. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1201. | --x-incl | --x-inc | --x-in | --x-i)
  1202. ac_prev=x_includes ;;
  1203. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1204. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1205. x_includes=$ac_optarg ;;
  1206. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1207. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1208. ac_prev=x_libraries ;;
  1209. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1210. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1211. x_libraries=$ac_optarg ;;
  1212. -*) as_fn_error $? "unrecognized option: '$ac_option'
  1213. Try '$0 --help' for more information"
  1214. ;;
  1215. *=*)
  1216. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1217. # Reject names that are not valid shell variable names.
  1218. case $ac_envvar in #(
  1219. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1220. as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
  1221. esac
  1222. eval $ac_envvar=\$ac_optarg
  1223. export $ac_envvar ;;
  1224. *)
  1225. # FIXME: should be removed in autoconf 3.0.
  1226. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1227. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1228. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1229. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1230. ;;
  1231. esac
  1232. done
  1233. if test -n "$ac_prev"; then
  1234. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1235. as_fn_error $? "missing argument to $ac_option"
  1236. fi
  1237. if test -n "$ac_unrecognized_opts"; then
  1238. case $enable_option_checking in
  1239. no) ;;
  1240. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1241. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1242. esac
  1243. fi
  1244. # Check all directory arguments for consistency.
  1245. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1246. datadir sysconfdir sharedstatedir localstatedir includedir \
  1247. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1248. libdir localedir mandir runstatedir
  1249. do
  1250. eval ac_val=\$$ac_var
  1251. # Remove trailing slashes.
  1252. case $ac_val in
  1253. */ )
  1254. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1255. eval $ac_var=\$ac_val;;
  1256. esac
  1257. # Be sure to have absolute directory names.
  1258. case $ac_val in
  1259. [\\/$]* | ?:[\\/]* ) continue;;
  1260. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1261. esac
  1262. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1263. done
  1264. # There might be people who depend on the old broken behavior: '$host'
  1265. # used to hold the argument of --host etc.
  1266. # FIXME: To remove some day.
  1267. build=$build_alias
  1268. host=$host_alias
  1269. target=$target_alias
  1270. # FIXME: To remove some day.
  1271. if test "x$host_alias" != x; then
  1272. if test "x$build_alias" = x; then
  1273. cross_compiling=maybe
  1274. elif test "x$build_alias" != "x$host_alias"; then
  1275. cross_compiling=yes
  1276. fi
  1277. fi
  1278. ac_tool_prefix=
  1279. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1280. test "$silent" = yes && exec 6>/dev/null
  1281. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1282. ac_ls_di=`ls -di .` &&
  1283. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1284. as_fn_error $? "working directory cannot be determined"
  1285. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1286. as_fn_error $? "pwd does not report name of working directory"
  1287. # Find the source files, if location was not specified.
  1288. if test -z "$srcdir"; then
  1289. ac_srcdir_defaulted=yes
  1290. # Try the directory containing this script, then the parent directory.
  1291. ac_confdir=`$as_dirname -- "$as_myself" ||
  1292. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1293. X"$as_myself" : 'X\(//\)[^/]' \| \
  1294. X"$as_myself" : 'X\(//\)$' \| \
  1295. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1296. printf "%s\n" X"$as_myself" |
  1297. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1298. s//\1/
  1299. q
  1300. }
  1301. /^X\(\/\/\)[^/].*/{
  1302. s//\1/
  1303. q
  1304. }
  1305. /^X\(\/\/\)$/{
  1306. s//\1/
  1307. q
  1308. }
  1309. /^X\(\/\).*/{
  1310. s//\1/
  1311. q
  1312. }
  1313. s/.*/./; q'`
  1314. srcdir=$ac_confdir
  1315. if test ! -r "$srcdir/$ac_unique_file"; then
  1316. srcdir=..
  1317. fi
  1318. else
  1319. ac_srcdir_defaulted=no
  1320. fi
  1321. if test ! -r "$srcdir/$ac_unique_file"; then
  1322. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1323. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1324. fi
  1325. ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
  1326. ac_abs_confdir=`(
  1327. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1328. pwd)`
  1329. # When building in place, set srcdir=.
  1330. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1331. srcdir=.
  1332. fi
  1333. # Remove unnecessary trailing slashes from srcdir.
  1334. # Double slashes in file names in object file debugging info
  1335. # mess up M-x gdb in Emacs.
  1336. case $srcdir in
  1337. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1338. esac
  1339. for ac_var in $ac_precious_vars; do
  1340. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1341. eval ac_env_${ac_var}_value=\$${ac_var}
  1342. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1343. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1344. done
  1345. #
  1346. # Report the --help message.
  1347. #
  1348. if test "$ac_init_help" = "long"; then
  1349. # Omit some internal or obsolete options to make the list less imposing.
  1350. # This message is too long to be a string in the A/UX 3.1 sh.
  1351. cat <<_ACEOF
  1352. 'configure' configures tcpreplay 4.5.2 to adapt to many kinds of systems.
  1353. Usage: $0 [OPTION]... [VAR=VALUE]...
  1354. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1355. VAR=VALUE. See below for descriptions of some of the useful variables.
  1356. Defaults for the options are specified in brackets.
  1357. Configuration:
  1358. -h, --help display this help and exit
  1359. --help=short display options specific to this package
  1360. --help=recursive display the short help of all the included packages
  1361. -V, --version display version information and exit
  1362. -q, --quiet, --silent do not print 'checking ...' messages
  1363. --cache-file=FILE cache test results in FILE [disabled]
  1364. -C, --config-cache alias for '--cache-file=config.cache'
  1365. -n, --no-create do not create output files
  1366. --srcdir=DIR find the sources in DIR [configure dir or '..']
  1367. Installation directories:
  1368. --prefix=PREFIX install architecture-independent files in PREFIX
  1369. [$ac_default_prefix]
  1370. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1371. [PREFIX]
  1372. By default, 'make install' will install all the files in
  1373. '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
  1374. an installation prefix other than '$ac_default_prefix' using '--prefix',
  1375. for instance '--prefix=\$HOME'.
  1376. For better control, use the options below.
  1377. Fine tuning of the installation directories:
  1378. --bindir=DIR user executables [EPREFIX/bin]
  1379. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1380. --libexecdir=DIR program executables [EPREFIX/libexec]
  1381. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1382. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1383. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1384. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1385. --libdir=DIR object code libraries [EPREFIX/lib]
  1386. --includedir=DIR C header files [PREFIX/include]
  1387. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1388. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1389. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1390. --infodir=DIR info documentation [DATAROOTDIR/info]
  1391. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1392. --mandir=DIR man documentation [DATAROOTDIR/man]
  1393. --docdir=DIR documentation root [DATAROOTDIR/doc/tcpreplay]
  1394. --htmldir=DIR html documentation [DOCDIR]
  1395. --dvidir=DIR dvi documentation [DOCDIR]
  1396. --pdfdir=DIR pdf documentation [DOCDIR]
  1397. --psdir=DIR ps documentation [DOCDIR]
  1398. _ACEOF
  1399. cat <<\_ACEOF
  1400. Program names:
  1401. --program-prefix=PREFIX prepend PREFIX to installed program names
  1402. --program-suffix=SUFFIX append SUFFIX to installed program names
  1403. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1404. System types:
  1405. --build=BUILD configure for building on BUILD [guessed]
  1406. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1407. --target=TARGET configure for building compilers for TARGET [HOST]
  1408. _ACEOF
  1409. fi
  1410. if test -n "$ac_init_help"; then
  1411. case $ac_init_help in
  1412. short | recursive ) echo "Configuration of tcpreplay 4.5.2:";;
  1413. esac
  1414. cat <<\_ACEOF
  1415. Optional Features:
  1416. --disable-option-checking ignore unrecognized --enable/--with options
  1417. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1418. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1419. --disable-maintainer-mode
  1420. disable make rules and dependencies not useful (and
  1421. sometimes confusing) to the casual installer
  1422. --enable-silent-rules less verbose build output (undo: "make V=1")
  1423. --disable-silent-rules verbose build output (undo: "make V=0")
  1424. --enable-dependency-tracking
  1425. do not reject slow dependency extractors
  1426. --disable-dependency-tracking
  1427. speeds up one-time build
  1428. --enable-shared[=PKGS] build shared libraries [default=yes]
  1429. --enable-static[=PKGS] build static libraries [default=yes]
  1430. --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1431. both]
  1432. --enable-fast-install[=PKGS]
  1433. optimize for fast installation [default=yes]
  1434. --enable-aix-soname=aix|svr4|both
  1435. shared library versioning (aka "SONAME") variant to
  1436. provide on AIX, [default=aix].
  1437. --disable-libtool-lock avoid locking (might break parallel builds)
  1438. --disable-largefile omit support for large files
  1439. --enable-asan Enable Address Sanitizer support
  1440. --enable-tsan Enable Thread Sanitizer support
  1441. --enable-debug Enable debugging code and support for the -d option
  1442. --enable-extra-debug Enable additional debugging code (may affect
  1443. performance)
  1444. --timestamp-trace Enable dumping of trace timestamps at the end of a
  1445. test
  1446. --enable-dmalloc Enable linking to dmalloc for better memory
  1447. debugging
  1448. --enable-pedantic Enable gcc's -pedantic option
  1449. --enable-efence Enable Electric Fence memory debugger
  1450. --enable-gprof Enable GNU Profiler
  1451. --enable-pcapconfig Enable automatic libpcap config, reverting to system
  1452. scanning
  1453. --disable-64bits Do not use 64bit packet counters
  1454. --enable-force-bpf Force using BPF for sending packets
  1455. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1456. --enable-force-libdnet Force using libdnet for sending packets
  1457. --enable-force-libxdp Force using libxdp for sending packets
  1458. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1459. packets
  1460. --enable-force-sendpacket
  1461. Force using libpcap's pcap_sendpacket() for sending
  1462. packets
  1463. --enable-static-link Use static libraries ( .a or .A.tbd ) - default no
  1464. --enable-dynamic-link Use shared libraries ( .so .dylib or .tbd ) -
  1465. default yes
  1466. --disable-tuntap Disable tuntap support
  1467. --enable-test-hexdump Enable hexdump pcap on test failure
  1468. --disable-nls disable nls support in libopts
  1469. --enable-local-libopts Use the supplied libopts tearoff code
  1470. --enable-libopts-install
  1471. Install libopts with client installation
  1472. --disable-optional-args not wanting optional option args
  1473. --enable-year2038 support timestamps after 2038
  1474. Optional Packages:
  1475. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1476. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1477. --with-dmalloc use dmalloc, as in http://www.dmalloc.com
  1478. --with-macos-sdk=VER Specify the macOS SDK version to use.
  1479. --with-pfring-lib Use a specific PF_RING static library when using
  1480. PF_RING libpcap.
  1481. Usage: --with-pfring-lib=<library>
  1482. e. g.: --with-pfring-lib=/usr/lib/libpfring_zc_x86_64.a
  1483. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1484. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1485. compiler's sysroot if not specified).
  1486. --with-libpcap=DIR Use libpcap in DIR
  1487. --with-netmap=DIR Use netmap in DIR
  1488. --with-libdnet=DIR Use libdnet in DIR
  1489. --with-pcapnav-config=FILE
  1490. Use given pcapnav-config
  1491. --with-tcpdump=FILE Path to tcpdump binary
  1492. --with-testnic=NIC Select which network card to use for testing
  1493. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1494. testing
  1495. --with-autoopts-config specify the config-info script
  1496. --with-regex-header a reg expr header is specified
  1497. --with-libregex libregex installation prefix
  1498. --with-libregex-cflags libregex compile flags
  1499. --with-libregex-libs libregex link command arguments
  1500. Some influential environment variables:
  1501. CC C compiler command
  1502. CFLAGS C compiler flags
  1503. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1504. nonstandard directory <lib dir>
  1505. LIBS libraries to pass to the linker, e.g. -l<library>
  1506. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1507. you have headers in a nonstandard directory <include dir>
  1508. LT_SYS_LIBRARY_PATH
  1509. User-defined run-time library search path.
  1510. CXX C++ compiler command
  1511. CXXFLAGS C++ compiler flags
  1512. CXXCPP C++ preprocessor
  1513. CPP C preprocessor
  1514. Use these variables to override the choices made by 'configure' or to help
  1515. it to find libraries and programs with nonstandard names/locations.
  1516. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  1517. tcpreplay home page: <http://tcpreplay.sourceforge.net/>.
  1518. _ACEOF
  1519. ac_status=$?
  1520. fi
  1521. if test "$ac_init_help" = "recursive"; then
  1522. # If there are subdirs, report their specific --help.
  1523. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1524. test -d "$ac_dir" ||
  1525. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1526. continue
  1527. ac_builddir=.
  1528. case "$ac_dir" in
  1529. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1530. *)
  1531. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1532. # A ".." for each directory in $ac_dir_suffix.
  1533. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1534. case $ac_top_builddir_sub in
  1535. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1536. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1537. esac ;;
  1538. esac
  1539. ac_abs_top_builddir=$ac_pwd
  1540. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1541. # for backward compatibility:
  1542. ac_top_builddir=$ac_top_build_prefix
  1543. case $srcdir in
  1544. .) # We are building in place.
  1545. ac_srcdir=.
  1546. ac_top_srcdir=$ac_top_builddir_sub
  1547. ac_abs_top_srcdir=$ac_pwd ;;
  1548. [\\/]* | ?:[\\/]* ) # Absolute name.
  1549. ac_srcdir=$srcdir$ac_dir_suffix;
  1550. ac_top_srcdir=$srcdir
  1551. ac_abs_top_srcdir=$srcdir ;;
  1552. *) # Relative name.
  1553. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1554. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1555. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1556. esac
  1557. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1558. cd "$ac_dir" || { ac_status=$?; continue; }
  1559. # Check for configure.gnu first; this name is used for a wrapper for
  1560. # Metaconfig's "Configure" on case-insensitive file systems.
  1561. if test -f "$ac_srcdir/configure.gnu"; then
  1562. echo &&
  1563. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1564. elif test -f "$ac_srcdir/configure"; then
  1565. echo &&
  1566. $SHELL "$ac_srcdir/configure" --help=recursive
  1567. else
  1568. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1569. fi || ac_status=$?
  1570. cd "$ac_pwd" || { ac_status=$?; break; }
  1571. done
  1572. fi
  1573. test -n "$ac_init_help" && exit $ac_status
  1574. if $ac_init_version; then
  1575. cat <<\_ACEOF
  1576. tcpreplay configure 4.5.2
  1577. generated by GNU Autoconf 2.72
  1578. Copyright (C) 2023 Free Software Foundation, Inc.
  1579. This configure script is free software; the Free Software Foundation
  1580. gives unlimited permission to copy, distribute and modify it.
  1581. _ACEOF
  1582. exit
  1583. fi
  1584. ## ------------------------ ##
  1585. ## Autoconf initialization. ##
  1586. ## ------------------------ ##
  1587. # ac_fn_c_try_compile LINENO
  1588. # --------------------------
  1589. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1590. ac_fn_c_try_compile ()
  1591. {
  1592. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1593. rm -f conftest.$ac_objext conftest.beam
  1594. if { { ac_try="$ac_compile"
  1595. case "(($ac_try" in
  1596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1597. *) ac_try_echo=$ac_try;;
  1598. esac
  1599. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1600. printf "%s\n" "$ac_try_echo"; } >&5
  1601. (eval "$ac_compile") 2>conftest.err
  1602. ac_status=$?
  1603. if test -s conftest.err; then
  1604. grep -v '^ *+' conftest.err >conftest.er1
  1605. cat conftest.er1 >&5
  1606. mv -f conftest.er1 conftest.err
  1607. fi
  1608. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1609. test $ac_status = 0; } && {
  1610. test -z "$ac_c_werror_flag" ||
  1611. test ! -s conftest.err
  1612. } && test -s conftest.$ac_objext
  1613. then :
  1614. ac_retval=0
  1615. else case e in #(
  1616. e) printf "%s\n" "$as_me: failed program was:" >&5
  1617. sed 's/^/| /' conftest.$ac_ext >&5
  1618. ac_retval=1 ;;
  1619. esac
  1620. fi
  1621. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1622. as_fn_set_status $ac_retval
  1623. } # ac_fn_c_try_compile
  1624. # ac_fn_c_try_link LINENO
  1625. # -----------------------
  1626. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1627. ac_fn_c_try_link ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1631. if { { ac_try="$ac_link"
  1632. case "(($ac_try" in
  1633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1634. *) ac_try_echo=$ac_try;;
  1635. esac
  1636. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1637. printf "%s\n" "$ac_try_echo"; } >&5
  1638. (eval "$ac_link") 2>conftest.err
  1639. ac_status=$?
  1640. if test -s conftest.err; then
  1641. grep -v '^ *+' conftest.err >conftest.er1
  1642. cat conftest.er1 >&5
  1643. mv -f conftest.er1 conftest.err
  1644. fi
  1645. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1646. test $ac_status = 0; } && {
  1647. test -z "$ac_c_werror_flag" ||
  1648. test ! -s conftest.err
  1649. } && test -s conftest$ac_exeext && {
  1650. test "$cross_compiling" = yes ||
  1651. test -x conftest$ac_exeext
  1652. }
  1653. then :
  1654. ac_retval=0
  1655. else case e in #(
  1656. e) printf "%s\n" "$as_me: failed program was:" >&5
  1657. sed 's/^/| /' conftest.$ac_ext >&5
  1658. ac_retval=1 ;;
  1659. esac
  1660. fi
  1661. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1662. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1663. # interfere with the next link command; also delete a directory that is
  1664. # left behind by Apple's compiler. We do this before executing the actions.
  1665. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1666. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1667. as_fn_set_status $ac_retval
  1668. } # ac_fn_c_try_link
  1669. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1670. # -------------------------------------------------------
  1671. # Tests whether HEADER exists and can be compiled using the include files in
  1672. # INCLUDES, setting the cache variable VAR accordingly.
  1673. ac_fn_c_check_header_compile ()
  1674. {
  1675. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1677. printf %s "checking for $2... " >&6; }
  1678. if eval test \${$3+y}
  1679. then :
  1680. printf %s "(cached) " >&6
  1681. else case e in #(
  1682. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1683. /* end confdefs.h. */
  1684. $4
  1685. #include <$2>
  1686. _ACEOF
  1687. if ac_fn_c_try_compile "$LINENO"
  1688. then :
  1689. eval "$3=yes"
  1690. else case e in #(
  1691. e) eval "$3=no" ;;
  1692. esac
  1693. fi
  1694. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1695. esac
  1696. fi
  1697. eval ac_res=\$$3
  1698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1699. printf "%s\n" "$ac_res" >&6; }
  1700. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1701. } # ac_fn_c_check_header_compile
  1702. # ac_fn_c_check_func LINENO FUNC VAR
  1703. # ----------------------------------
  1704. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1705. ac_fn_c_check_func ()
  1706. {
  1707. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1709. printf %s "checking for $2... " >&6; }
  1710. if eval test \${$3+y}
  1711. then :
  1712. printf %s "(cached) " >&6
  1713. else case e in #(
  1714. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1715. /* end confdefs.h. */
  1716. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1717. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1718. #define $2 innocuous_$2
  1719. /* System header to define __stub macros and hopefully few prototypes,
  1720. which can conflict with char $2 (void); below. */
  1721. #include <limits.h>
  1722. #undef $2
  1723. /* Override any GCC internal prototype to avoid an error.
  1724. Use char because int might match the return type of a GCC
  1725. builtin and then its argument prototype would still apply. */
  1726. #ifdef __cplusplus
  1727. extern "C"
  1728. #endif
  1729. char $2 (void);
  1730. /* The GNU C library defines this for functions which it implements
  1731. to always fail with ENOSYS. Some functions are actually named
  1732. something starting with __ and the normal name is an alias. */
  1733. #if defined __stub_$2 || defined __stub___$2
  1734. choke me
  1735. #endif
  1736. int
  1737. main (void)
  1738. {
  1739. return $2 ();
  1740. ;
  1741. return 0;
  1742. }
  1743. _ACEOF
  1744. if ac_fn_c_try_link "$LINENO"
  1745. then :
  1746. eval "$3=yes"
  1747. else case e in #(
  1748. e) eval "$3=no" ;;
  1749. esac
  1750. fi
  1751. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1752. conftest$ac_exeext conftest.$ac_ext ;;
  1753. esac
  1754. fi
  1755. eval ac_res=\$$3
  1756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1757. printf "%s\n" "$ac_res" >&6; }
  1758. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1759. } # ac_fn_c_check_func
  1760. # ac_fn_cxx_try_compile LINENO
  1761. # ----------------------------
  1762. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1763. ac_fn_cxx_try_compile ()
  1764. {
  1765. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1766. rm -f conftest.$ac_objext conftest.beam
  1767. if { { ac_try="$ac_compile"
  1768. case "(($ac_try" in
  1769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1770. *) ac_try_echo=$ac_try;;
  1771. esac
  1772. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1773. printf "%s\n" "$ac_try_echo"; } >&5
  1774. (eval "$ac_compile") 2>conftest.err
  1775. ac_status=$?
  1776. if test -s conftest.err; then
  1777. grep -v '^ *+' conftest.err >conftest.er1
  1778. cat conftest.er1 >&5
  1779. mv -f conftest.er1 conftest.err
  1780. fi
  1781. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1782. test $ac_status = 0; } && {
  1783. test -z "$ac_cxx_werror_flag" ||
  1784. test ! -s conftest.err
  1785. } && test -s conftest.$ac_objext
  1786. then :
  1787. ac_retval=0
  1788. else case e in #(
  1789. e) printf "%s\n" "$as_me: failed program was:" >&5
  1790. sed 's/^/| /' conftest.$ac_ext >&5
  1791. ac_retval=1 ;;
  1792. esac
  1793. fi
  1794. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1795. as_fn_set_status $ac_retval
  1796. } # ac_fn_cxx_try_compile
  1797. # ac_fn_cxx_try_cpp LINENO
  1798. # ------------------------
  1799. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1800. ac_fn_cxx_try_cpp ()
  1801. {
  1802. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1803. if { { ac_try="$ac_cpp conftest.$ac_ext"
  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. printf "%s\n" "$ac_try_echo"; } >&5
  1810. (eval "$ac_cpp conftest.$ac_ext") 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. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1818. test $ac_status = 0; } > conftest.i && {
  1819. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1820. test ! -s conftest.err
  1821. }
  1822. then :
  1823. ac_retval=0
  1824. else case e in #(
  1825. e) printf "%s\n" "$as_me: failed program was:" >&5
  1826. sed 's/^/| /' conftest.$ac_ext >&5
  1827. ac_retval=1 ;;
  1828. esac
  1829. fi
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. as_fn_set_status $ac_retval
  1832. } # ac_fn_cxx_try_cpp
  1833. # ac_fn_cxx_try_link LINENO
  1834. # -------------------------
  1835. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1836. ac_fn_cxx_try_link ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1840. if { { ac_try="$ac_link"
  1841. case "(($ac_try" in
  1842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1843. *) ac_try_echo=$ac_try;;
  1844. esac
  1845. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1846. printf "%s\n" "$ac_try_echo"; } >&5
  1847. (eval "$ac_link") 2>conftest.err
  1848. ac_status=$?
  1849. if test -s conftest.err; then
  1850. grep -v '^ *+' conftest.err >conftest.er1
  1851. cat conftest.er1 >&5
  1852. mv -f conftest.er1 conftest.err
  1853. fi
  1854. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1855. test $ac_status = 0; } && {
  1856. test -z "$ac_cxx_werror_flag" ||
  1857. test ! -s conftest.err
  1858. } && test -s conftest$ac_exeext && {
  1859. test "$cross_compiling" = yes ||
  1860. test -x conftest$ac_exeext
  1861. }
  1862. then :
  1863. ac_retval=0
  1864. else case e in #(
  1865. e) printf "%s\n" "$as_me: failed program was:" >&5
  1866. sed 's/^/| /' conftest.$ac_ext >&5
  1867. ac_retval=1 ;;
  1868. esac
  1869. fi
  1870. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1871. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1872. # interfere with the next link command; also delete a directory that is
  1873. # left behind by Apple's compiler. We do this before executing the actions.
  1874. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1875. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1876. as_fn_set_status $ac_retval
  1877. } # ac_fn_cxx_try_link
  1878. # ac_fn_c_try_cpp LINENO
  1879. # ----------------------
  1880. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1881. ac_fn_c_try_cpp ()
  1882. {
  1883. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1884. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1885. case "(($ac_try" in
  1886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1887. *) ac_try_echo=$ac_try;;
  1888. esac
  1889. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1890. printf "%s\n" "$ac_try_echo"; } >&5
  1891. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1892. ac_status=$?
  1893. if test -s conftest.err; then
  1894. grep -v '^ *+' conftest.err >conftest.er1
  1895. cat conftest.er1 >&5
  1896. mv -f conftest.er1 conftest.err
  1897. fi
  1898. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1899. test $ac_status = 0; } > conftest.i && {
  1900. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1901. test ! -s conftest.err
  1902. }
  1903. then :
  1904. ac_retval=0
  1905. else case e in #(
  1906. e) printf "%s\n" "$as_me: failed program was:" >&5
  1907. sed 's/^/| /' conftest.$ac_ext >&5
  1908. ac_retval=1 ;;
  1909. esac
  1910. fi
  1911. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1912. as_fn_set_status $ac_retval
  1913. } # ac_fn_c_try_cpp
  1914. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1915. # -------------------------------------------
  1916. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1917. # variable VAR accordingly.
  1918. ac_fn_c_check_type ()
  1919. {
  1920. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1922. printf %s "checking for $2... " >&6; }
  1923. if eval test \${$3+y}
  1924. then :
  1925. printf %s "(cached) " >&6
  1926. else case e in #(
  1927. e) eval "$3=no"
  1928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1929. /* end confdefs.h. */
  1930. $4
  1931. int
  1932. main (void)
  1933. {
  1934. if (sizeof ($2))
  1935. return 0;
  1936. ;
  1937. return 0;
  1938. }
  1939. _ACEOF
  1940. if ac_fn_c_try_compile "$LINENO"
  1941. then :
  1942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1943. /* end confdefs.h. */
  1944. $4
  1945. int
  1946. main (void)
  1947. {
  1948. if (sizeof (($2)))
  1949. return 0;
  1950. ;
  1951. return 0;
  1952. }
  1953. _ACEOF
  1954. if ac_fn_c_try_compile "$LINENO"
  1955. then :
  1956. else case e in #(
  1957. e) eval "$3=yes" ;;
  1958. esac
  1959. fi
  1960. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1961. fi
  1962. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1963. esac
  1964. fi
  1965. eval ac_res=\$$3
  1966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1967. printf "%s\n" "$ac_res" >&6; }
  1968. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1969. } # ac_fn_c_check_type
  1970. # ac_fn_c_find_intX_t LINENO BITS VAR
  1971. # -----------------------------------
  1972. # Finds a signed integer type with width BITS, setting cache variable VAR
  1973. # accordingly.
  1974. ac_fn_c_find_intX_t ()
  1975. {
  1976. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1978. printf %s "checking for int$2_t... " >&6; }
  1979. if eval test \${$3+y}
  1980. then :
  1981. printf %s "(cached) " >&6
  1982. else case e in #(
  1983. e) eval "$3=no"
  1984. # Order is important - never check a type that is potentially smaller
  1985. # than half of the expected target width.
  1986. for ac_type in int$2_t 'int' 'long int' \
  1987. 'long long int' 'short int' 'signed char'; do
  1988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1989. /* end confdefs.h. */
  1990. $ac_includes_default
  1991. enum { N = $2 / 2 - 1 };
  1992. int
  1993. main (void)
  1994. {
  1995. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1996. test_array [0] = 0;
  1997. return test_array [0];
  1998. ;
  1999. return 0;
  2000. }
  2001. _ACEOF
  2002. if ac_fn_c_try_compile "$LINENO"
  2003. then :
  2004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2005. /* end confdefs.h. */
  2006. $ac_includes_default
  2007. enum { N = $2 / 2 - 1 };
  2008. int
  2009. main (void)
  2010. {
  2011. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2012. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2013. test_array [0] = 0;
  2014. return test_array [0];
  2015. ;
  2016. return 0;
  2017. }
  2018. _ACEOF
  2019. if ac_fn_c_try_compile "$LINENO"
  2020. then :
  2021. else case e in #(
  2022. e) case $ac_type in #(
  2023. int$2_t) :
  2024. eval "$3=yes" ;; #(
  2025. *) :
  2026. eval "$3=\$ac_type" ;;
  2027. esac ;;
  2028. esac
  2029. fi
  2030. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2031. fi
  2032. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2033. if eval test \"x\$"$3"\" = x"no"
  2034. then :
  2035. else case e in #(
  2036. e) break ;;
  2037. esac
  2038. fi
  2039. done ;;
  2040. esac
  2041. fi
  2042. eval ac_res=\$$3
  2043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2044. printf "%s\n" "$ac_res" >&6; }
  2045. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2046. } # ac_fn_c_find_intX_t
  2047. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2048. # ------------------------------------
  2049. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2050. # accordingly.
  2051. ac_fn_c_find_uintX_t ()
  2052. {
  2053. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2055. printf %s "checking for uint$2_t... " >&6; }
  2056. if eval test \${$3+y}
  2057. then :
  2058. printf %s "(cached) " >&6
  2059. else case e in #(
  2060. e) eval "$3=no"
  2061. # Order is important - never check a type that is potentially smaller
  2062. # than half of the expected target width.
  2063. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2064. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2066. /* end confdefs.h. */
  2067. $ac_includes_default
  2068. int
  2069. main (void)
  2070. {
  2071. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2072. test_array [0] = 0;
  2073. return test_array [0];
  2074. ;
  2075. return 0;
  2076. }
  2077. _ACEOF
  2078. if ac_fn_c_try_compile "$LINENO"
  2079. then :
  2080. case $ac_type in #(
  2081. uint$2_t) :
  2082. eval "$3=yes" ;; #(
  2083. *) :
  2084. eval "$3=\$ac_type" ;;
  2085. esac
  2086. fi
  2087. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2088. if eval test \"x\$"$3"\" = x"no"
  2089. then :
  2090. else case e in #(
  2091. e) break ;;
  2092. esac
  2093. fi
  2094. done ;;
  2095. esac
  2096. fi
  2097. eval ac_res=\$$3
  2098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2099. printf "%s\n" "$ac_res" >&6; }
  2100. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2101. } # ac_fn_c_find_uintX_t
  2102. # ac_fn_c_try_run LINENO
  2103. # ----------------------
  2104. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2105. # executables *can* be run.
  2106. ac_fn_c_try_run ()
  2107. {
  2108. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2109. if { { ac_try="$ac_link"
  2110. case "(($ac_try" in
  2111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2112. *) ac_try_echo=$ac_try;;
  2113. esac
  2114. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2115. printf "%s\n" "$ac_try_echo"; } >&5
  2116. (eval "$ac_link") 2>&5
  2117. ac_status=$?
  2118. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2119. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2120. { { case "(($ac_try" in
  2121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2122. *) ac_try_echo=$ac_try;;
  2123. esac
  2124. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2125. printf "%s\n" "$ac_try_echo"; } >&5
  2126. (eval "$ac_try") 2>&5
  2127. ac_status=$?
  2128. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2129. test $ac_status = 0; }; }
  2130. then :
  2131. ac_retval=0
  2132. else case e in #(
  2133. e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2134. printf "%s\n" "$as_me: failed program was:" >&5
  2135. sed 's/^/| /' conftest.$ac_ext >&5
  2136. ac_retval=$ac_status ;;
  2137. esac
  2138. fi
  2139. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2140. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2141. as_fn_set_status $ac_retval
  2142. } # ac_fn_c_try_run
  2143. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2144. # ----------------------------------------------------
  2145. # Tries to find if the field MEMBER exists in type AGGR, after including
  2146. # INCLUDES, setting cache variable VAR accordingly.
  2147. ac_fn_c_check_member ()
  2148. {
  2149. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2151. printf %s "checking for $2.$3... " >&6; }
  2152. if eval test \${$4+y}
  2153. then :
  2154. printf %s "(cached) " >&6
  2155. else case e in #(
  2156. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2157. /* end confdefs.h. */
  2158. $5
  2159. int
  2160. main (void)
  2161. {
  2162. static $2 ac_aggr;
  2163. if (ac_aggr.$3)
  2164. return 0;
  2165. ;
  2166. return 0;
  2167. }
  2168. _ACEOF
  2169. if ac_fn_c_try_compile "$LINENO"
  2170. then :
  2171. eval "$4=yes"
  2172. else case e in #(
  2173. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2174. /* end confdefs.h. */
  2175. $5
  2176. int
  2177. main (void)
  2178. {
  2179. static $2 ac_aggr;
  2180. if (sizeof ac_aggr.$3)
  2181. return 0;
  2182. ;
  2183. return 0;
  2184. }
  2185. _ACEOF
  2186. if ac_fn_c_try_compile "$LINENO"
  2187. then :
  2188. eval "$4=yes"
  2189. else case e in #(
  2190. e) eval "$4=no" ;;
  2191. esac
  2192. fi
  2193. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  2194. esac
  2195. fi
  2196. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  2197. esac
  2198. fi
  2199. eval ac_res=\$$4
  2200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2201. printf "%s\n" "$ac_res" >&6; }
  2202. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2203. } # ac_fn_c_check_member
  2204. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2205. # ------------------------------------------------------------------
  2206. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2207. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2208. ac_fn_check_decl ()
  2209. {
  2210. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2211. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2213. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2214. if eval test \${$3+y}
  2215. then :
  2216. printf %s "(cached) " >&6
  2217. else case e in #(
  2218. e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2219. eval ac_save_FLAGS=\$$6
  2220. as_fn_append $6 " $5"
  2221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2222. /* end confdefs.h. */
  2223. $4
  2224. int
  2225. main (void)
  2226. {
  2227. #ifndef $as_decl_name
  2228. #ifdef __cplusplus
  2229. (void) $as_decl_use;
  2230. #else
  2231. (void) $as_decl_name;
  2232. #endif
  2233. #endif
  2234. ;
  2235. return 0;
  2236. }
  2237. _ACEOF
  2238. if ac_fn_c_try_compile "$LINENO"
  2239. then :
  2240. eval "$3=yes"
  2241. else case e in #(
  2242. e) eval "$3=no" ;;
  2243. esac
  2244. fi
  2245. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2246. eval $6=\$ac_save_FLAGS
  2247. ;;
  2248. esac
  2249. fi
  2250. eval ac_res=\$$3
  2251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2252. printf "%s\n" "$ac_res" >&6; }
  2253. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2254. } # ac_fn_check_decl
  2255. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2256. # --------------------------------------------
  2257. # Tries to find the compile-time value of EXPR in a program that includes
  2258. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2259. # computed
  2260. ac_fn_c_compute_int ()
  2261. {
  2262. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2263. if test "$cross_compiling" = yes; then
  2264. # Depending upon the size, compute the lo and hi bounds.
  2265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2266. /* end confdefs.h. */
  2267. $4
  2268. int
  2269. main (void)
  2270. {
  2271. static int test_array [1 - 2 * !(($2) >= 0)];
  2272. test_array [0] = 0;
  2273. return test_array [0];
  2274. ;
  2275. return 0;
  2276. }
  2277. _ACEOF
  2278. if ac_fn_c_try_compile "$LINENO"
  2279. then :
  2280. ac_lo=0 ac_mid=0
  2281. while :; do
  2282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2283. /* end confdefs.h. */
  2284. $4
  2285. int
  2286. main (void)
  2287. {
  2288. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2289. test_array [0] = 0;
  2290. return test_array [0];
  2291. ;
  2292. return 0;
  2293. }
  2294. _ACEOF
  2295. if ac_fn_c_try_compile "$LINENO"
  2296. then :
  2297. ac_hi=$ac_mid; break
  2298. else case e in #(
  2299. e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2300. if test $ac_lo -le $ac_mid; then
  2301. ac_lo= ac_hi=
  2302. break
  2303. fi
  2304. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
  2305. esac
  2306. fi
  2307. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2308. done
  2309. else case e in #(
  2310. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2311. /* end confdefs.h. */
  2312. $4
  2313. int
  2314. main (void)
  2315. {
  2316. static int test_array [1 - 2 * !(($2) < 0)];
  2317. test_array [0] = 0;
  2318. return test_array [0];
  2319. ;
  2320. return 0;
  2321. }
  2322. _ACEOF
  2323. if ac_fn_c_try_compile "$LINENO"
  2324. then :
  2325. ac_hi=-1 ac_mid=-1
  2326. while :; do
  2327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2328. /* end confdefs.h. */
  2329. $4
  2330. int
  2331. main (void)
  2332. {
  2333. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2334. test_array [0] = 0;
  2335. return test_array [0];
  2336. ;
  2337. return 0;
  2338. }
  2339. _ACEOF
  2340. if ac_fn_c_try_compile "$LINENO"
  2341. then :
  2342. ac_lo=$ac_mid; break
  2343. else case e in #(
  2344. e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2345. if test $ac_mid -le $ac_hi; then
  2346. ac_lo= ac_hi=
  2347. break
  2348. fi
  2349. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
  2350. esac
  2351. fi
  2352. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2353. done
  2354. else case e in #(
  2355. e) ac_lo= ac_hi= ;;
  2356. esac
  2357. fi
  2358. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  2359. esac
  2360. fi
  2361. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2362. # Binary search between lo and hi bounds.
  2363. while test "x$ac_lo" != "x$ac_hi"; do
  2364. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2366. /* end confdefs.h. */
  2367. $4
  2368. int
  2369. main (void)
  2370. {
  2371. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2372. test_array [0] = 0;
  2373. return test_array [0];
  2374. ;
  2375. return 0;
  2376. }
  2377. _ACEOF
  2378. if ac_fn_c_try_compile "$LINENO"
  2379. then :
  2380. ac_hi=$ac_mid
  2381. else case e in #(
  2382. e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
  2383. esac
  2384. fi
  2385. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2386. done
  2387. case $ac_lo in #((
  2388. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2389. '') ac_retval=1 ;;
  2390. esac
  2391. else
  2392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2393. /* end confdefs.h. */
  2394. $4
  2395. static long int longval (void) { return $2; }
  2396. static unsigned long int ulongval (void) { return $2; }
  2397. #include <stdio.h>
  2398. #include <stdlib.h>
  2399. int
  2400. main (void)
  2401. {
  2402. FILE *f = fopen ("conftest.val", "w");
  2403. if (! f)
  2404. return 1;
  2405. if (($2) < 0)
  2406. {
  2407. long int i = longval ();
  2408. if (i != ($2))
  2409. return 1;
  2410. fprintf (f, "%ld", i);
  2411. }
  2412. else
  2413. {
  2414. unsigned long int i = ulongval ();
  2415. if (i != ($2))
  2416. return 1;
  2417. fprintf (f, "%lu", i);
  2418. }
  2419. /* Do not output a trailing newline, as this causes \r\n confusion
  2420. on some platforms. */
  2421. return ferror (f) || fclose (f) != 0;
  2422. ;
  2423. return 0;
  2424. }
  2425. _ACEOF
  2426. if ac_fn_c_try_run "$LINENO"
  2427. then :
  2428. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2429. else case e in #(
  2430. e) ac_retval=1 ;;
  2431. esac
  2432. fi
  2433. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2434. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2435. rm -f conftest.val
  2436. fi
  2437. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2438. as_fn_set_status $ac_retval
  2439. } # ac_fn_c_compute_int
  2440. ac_configure_args_raw=
  2441. for ac_arg
  2442. do
  2443. case $ac_arg in
  2444. *\'*)
  2445. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2446. esac
  2447. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2448. done
  2449. case $ac_configure_args_raw in
  2450. *$as_nl*)
  2451. ac_safe_unquote= ;;
  2452. *)
  2453. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2454. ac_unsafe_a="$ac_unsafe_z#~"
  2455. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2456. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2457. esac
  2458. cat >config.log <<_ACEOF
  2459. This file contains any messages produced by compilers while
  2460. running configure, to aid debugging if configure makes a mistake.
  2461. It was created by tcpreplay $as_me 4.5.2, which was
  2462. generated by GNU Autoconf 2.72. Invocation command line was
  2463. $ $0$ac_configure_args_raw
  2464. _ACEOF
  2465. exec 5>>config.log
  2466. {
  2467. cat <<_ASUNAME
  2468. ## --------- ##
  2469. ## Platform. ##
  2470. ## --------- ##
  2471. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2472. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2473. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2474. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2475. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2476. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2477. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2478. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2479. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2480. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2481. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2482. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2483. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2484. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2485. _ASUNAME
  2486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2487. for as_dir in $PATH
  2488. do
  2489. IFS=$as_save_IFS
  2490. case $as_dir in #(((
  2491. '') as_dir=./ ;;
  2492. */) ;;
  2493. *) as_dir=$as_dir/ ;;
  2494. esac
  2495. printf "%s\n" "PATH: $as_dir"
  2496. done
  2497. IFS=$as_save_IFS
  2498. } >&5
  2499. cat >&5 <<_ACEOF
  2500. ## ----------- ##
  2501. ## Core tests. ##
  2502. ## ----------- ##
  2503. _ACEOF
  2504. # Keep a trace of the command line.
  2505. # Strip out --no-create and --no-recursion so they do not pile up.
  2506. # Strip out --silent because we don't want to record it for future runs.
  2507. # Also quote any args containing shell meta-characters.
  2508. # Make two passes to allow for proper duplicate-argument suppression.
  2509. ac_configure_args=
  2510. ac_configure_args0=
  2511. ac_configure_args1=
  2512. ac_must_keep_next=false
  2513. for ac_pass in 1 2
  2514. do
  2515. for ac_arg
  2516. do
  2517. case $ac_arg in
  2518. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2519. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2520. | -silent | --silent | --silen | --sile | --sil)
  2521. continue ;;
  2522. *\'*)
  2523. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2524. esac
  2525. case $ac_pass in
  2526. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2527. 2)
  2528. as_fn_append ac_configure_args1 " '$ac_arg'"
  2529. if test $ac_must_keep_next = true; then
  2530. ac_must_keep_next=false # Got value, back to normal.
  2531. else
  2532. case $ac_arg in
  2533. *=* | --config-cache | -C | -disable-* | --disable-* \
  2534. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2535. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2536. | -with-* | --with-* | -without-* | --without-* | --x)
  2537. case "$ac_configure_args0 " in
  2538. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2539. esac
  2540. ;;
  2541. -* ) ac_must_keep_next=true ;;
  2542. esac
  2543. fi
  2544. as_fn_append ac_configure_args " '$ac_arg'"
  2545. ;;
  2546. esac
  2547. done
  2548. done
  2549. { ac_configure_args0=; unset ac_configure_args0;}
  2550. { ac_configure_args1=; unset ac_configure_args1;}
  2551. # When interrupted or exit'd, cleanup temporary files, and complete
  2552. # config.log. We remove comments because anyway the quotes in there
  2553. # would cause problems or look ugly.
  2554. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2555. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2556. trap 'exit_status=$?
  2557. # Sanitize IFS.
  2558. IFS=" "" $as_nl"
  2559. # Save into config.log some information that might help in debugging.
  2560. {
  2561. echo
  2562. printf "%s\n" "## ---------------- ##
  2563. ## Cache variables. ##
  2564. ## ---------------- ##"
  2565. echo
  2566. # The following way of writing the cache mishandles newlines in values,
  2567. (
  2568. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2569. eval ac_val=\$$ac_var
  2570. case $ac_val in #(
  2571. *${as_nl}*)
  2572. case $ac_var in #(
  2573. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2574. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2575. esac
  2576. case $ac_var in #(
  2577. _ | IFS | as_nl) ;; #(
  2578. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2579. *) { eval $ac_var=; unset $ac_var;} ;;
  2580. esac ;;
  2581. esac
  2582. done
  2583. (set) 2>&1 |
  2584. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2585. *${as_nl}ac_space=\ *)
  2586. sed -n \
  2587. "s/'\''/'\''\\\\'\'''\''/g;
  2588. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2589. ;; #(
  2590. *)
  2591. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2592. ;;
  2593. esac |
  2594. sort
  2595. )
  2596. echo
  2597. printf "%s\n" "## ----------------- ##
  2598. ## Output variables. ##
  2599. ## ----------------- ##"
  2600. echo
  2601. for ac_var in $ac_subst_vars
  2602. do
  2603. eval ac_val=\$$ac_var
  2604. case $ac_val in
  2605. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2606. esac
  2607. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2608. done | sort
  2609. echo
  2610. if test -n "$ac_subst_files"; then
  2611. printf "%s\n" "## ------------------- ##
  2612. ## File substitutions. ##
  2613. ## ------------------- ##"
  2614. echo
  2615. for ac_var in $ac_subst_files
  2616. do
  2617. eval ac_val=\$$ac_var
  2618. case $ac_val in
  2619. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2620. esac
  2621. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2622. done | sort
  2623. echo
  2624. fi
  2625. if test -s confdefs.h; then
  2626. printf "%s\n" "## ----------- ##
  2627. ## confdefs.h. ##
  2628. ## ----------- ##"
  2629. echo
  2630. cat confdefs.h
  2631. echo
  2632. fi
  2633. test "$ac_signal" != 0 &&
  2634. printf "%s\n" "$as_me: caught signal $ac_signal"
  2635. printf "%s\n" "$as_me: exit $exit_status"
  2636. } >&5
  2637. rm -f core *.core core.conftest.* &&
  2638. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2639. exit $exit_status
  2640. ' 0
  2641. for ac_signal in 1 2 13 15; do
  2642. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2643. done
  2644. ac_signal=0
  2645. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2646. rm -f -r conftest* confdefs.h
  2647. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2648. # Predefined preprocessor variables.
  2649. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2650. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2651. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2652. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2653. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2654. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2655. # Let the site file select an alternate cache file if it wants to.
  2656. # Prefer an explicitly selected file to automatically selected ones.
  2657. if test -n "$CONFIG_SITE"; then
  2658. ac_site_files="$CONFIG_SITE"
  2659. elif test "x$prefix" != xNONE; then
  2660. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2661. else
  2662. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2663. fi
  2664. for ac_site_file in $ac_site_files
  2665. do
  2666. case $ac_site_file in #(
  2667. */*) :
  2668. ;; #(
  2669. *) :
  2670. ac_site_file=./$ac_site_file ;;
  2671. esac
  2672. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2674. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2675. sed 's/^/| /' "$ac_site_file" >&5
  2676. . "$ac_site_file" \
  2677. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2678. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2679. as_fn_error $? "failed to load site script $ac_site_file
  2680. See 'config.log' for more details" "$LINENO" 5; }
  2681. fi
  2682. done
  2683. if test -r "$cache_file"; then
  2684. # Some versions of bash will fail to source /dev/null (special files
  2685. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2686. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2688. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2689. case $cache_file in
  2690. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2691. *) . "./$cache_file";;
  2692. esac
  2693. fi
  2694. else
  2695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2696. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2697. >$cache_file
  2698. fi
  2699. # Test code for whether the C compiler supports C89 (global declarations)
  2700. ac_c_conftest_c89_globals='
  2701. /* Does the compiler advertise C89 conformance?
  2702. Do not test the value of __STDC__, because some compilers set it to 0
  2703. while being otherwise adequately conformant. */
  2704. #if !defined __STDC__
  2705. # error "Compiler does not advertise C89 conformance"
  2706. #endif
  2707. #include <stddef.h>
  2708. #include <stdarg.h>
  2709. struct stat;
  2710. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2711. struct buf { int x; };
  2712. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2713. static char *e (char **p, int i)
  2714. {
  2715. return p[i];
  2716. }
  2717. static char *f (char * (*g) (char **, int), char **p, ...)
  2718. {
  2719. char *s;
  2720. va_list v;
  2721. va_start (v,p);
  2722. s = g (p, va_arg (v,int));
  2723. va_end (v);
  2724. return s;
  2725. }
  2726. /* C89 style stringification. */
  2727. #define noexpand_stringify(a) #a
  2728. const char *stringified = noexpand_stringify(arbitrary+token=sequence);
  2729. /* C89 style token pasting. Exercises some of the corner cases that
  2730. e.g. old MSVC gets wrong, but not very hard. */
  2731. #define noexpand_concat(a,b) a##b
  2732. #define expand_concat(a,b) noexpand_concat(a,b)
  2733. extern int vA;
  2734. extern int vbee;
  2735. #define aye A
  2736. #define bee B
  2737. int *pvA = &expand_concat(v,aye);
  2738. int *pvbee = &noexpand_concat(v,bee);
  2739. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2740. function prototypes and stuff, but not \xHH hex character constants.
  2741. These do not provoke an error unfortunately, instead are silently treated
  2742. as an "x". The following induces an error, until -std is added to get
  2743. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2744. array size at least. It is necessary to write \x00 == 0 to get something
  2745. that is true only with -std. */
  2746. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2747. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2748. inside strings and character constants. */
  2749. #define FOO(x) '\''x'\''
  2750. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2751. int test (int i, double x);
  2752. struct s1 {int (*f) (int a);};
  2753. struct s2 {int (*f) (double a);};
  2754. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2755. int, int);'
  2756. # Test code for whether the C compiler supports C89 (body of main).
  2757. ac_c_conftest_c89_main='
  2758. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2759. '
  2760. # Test code for whether the C compiler supports C99 (global declarations)
  2761. ac_c_conftest_c99_globals='
  2762. /* Does the compiler advertise C99 conformance? */
  2763. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2764. # error "Compiler does not advertise C99 conformance"
  2765. #endif
  2766. // See if C++-style comments work.
  2767. #include <stdbool.h>
  2768. extern int puts (const char *);
  2769. extern int printf (const char *, ...);
  2770. extern int dprintf (int, const char *, ...);
  2771. extern void *malloc (size_t);
  2772. extern void free (void *);
  2773. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2774. // dprintf is used instead of fprintf to avoid needing to declare
  2775. // FILE and stderr.
  2776. #define debug(...) dprintf (2, __VA_ARGS__)
  2777. #define showlist(...) puts (#__VA_ARGS__)
  2778. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2779. static void
  2780. test_varargs_macros (void)
  2781. {
  2782. int x = 1234;
  2783. int y = 5678;
  2784. debug ("Flag");
  2785. debug ("X = %d\n", x);
  2786. showlist (The first, second, and third items.);
  2787. report (x>y, "x is %d but y is %d", x, y);
  2788. }
  2789. // Check long long types.
  2790. #define BIG64 18446744073709551615ull
  2791. #define BIG32 4294967295ul
  2792. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2793. #if !BIG_OK
  2794. #error "your preprocessor is broken"
  2795. #endif
  2796. #if BIG_OK
  2797. #else
  2798. #error "your preprocessor is broken"
  2799. #endif
  2800. static long long int bignum = -9223372036854775807LL;
  2801. static unsigned long long int ubignum = BIG64;
  2802. struct incomplete_array
  2803. {
  2804. int datasize;
  2805. double data[];
  2806. };
  2807. struct named_init {
  2808. int number;
  2809. const wchar_t *name;
  2810. double average;
  2811. };
  2812. typedef const char *ccp;
  2813. static inline int
  2814. test_restrict (ccp restrict text)
  2815. {
  2816. // Iterate through items via the restricted pointer.
  2817. // Also check for declarations in for loops.
  2818. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2819. continue;
  2820. return 0;
  2821. }
  2822. // Check varargs and va_copy.
  2823. static bool
  2824. test_varargs (const char *format, ...)
  2825. {
  2826. va_list args;
  2827. va_start (args, format);
  2828. va_list args_copy;
  2829. va_copy (args_copy, args);
  2830. const char *str = "";
  2831. int number = 0;
  2832. float fnumber = 0;
  2833. while (*format)
  2834. {
  2835. switch (*format++)
  2836. {
  2837. case '\''s'\'': // string
  2838. str = va_arg (args_copy, const char *);
  2839. break;
  2840. case '\''d'\'': // int
  2841. number = va_arg (args_copy, int);
  2842. break;
  2843. case '\''f'\'': // float
  2844. fnumber = va_arg (args_copy, double);
  2845. break;
  2846. default:
  2847. break;
  2848. }
  2849. }
  2850. va_end (args_copy);
  2851. va_end (args);
  2852. return *str && number && fnumber;
  2853. }
  2854. '
  2855. # Test code for whether the C compiler supports C99 (body of main).
  2856. ac_c_conftest_c99_main='
  2857. // Check bool.
  2858. _Bool success = false;
  2859. success |= (argc != 0);
  2860. // Check restrict.
  2861. if (test_restrict ("String literal") == 0)
  2862. success = true;
  2863. char *restrict newvar = "Another string";
  2864. // Check varargs.
  2865. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2866. test_varargs_macros ();
  2867. // Check flexible array members.
  2868. struct incomplete_array *ia =
  2869. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2870. ia->datasize = 10;
  2871. for (int i = 0; i < ia->datasize; ++i)
  2872. ia->data[i] = i * 1.234;
  2873. // Work around memory leak warnings.
  2874. free (ia);
  2875. // Check named initializers.
  2876. struct named_init ni = {
  2877. .number = 34,
  2878. .name = L"Test wide string",
  2879. .average = 543.34343,
  2880. };
  2881. ni.number = 58;
  2882. int dynamic_array[ni.number];
  2883. dynamic_array[0] = argv[0][0];
  2884. dynamic_array[ni.number - 1] = 543;
  2885. // work around unused variable warnings
  2886. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2887. || dynamic_array[ni.number - 1] != 543);
  2888. '
  2889. # Test code for whether the C compiler supports C11 (global declarations)
  2890. ac_c_conftest_c11_globals='
  2891. /* Does the compiler advertise C11 conformance? */
  2892. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2893. # error "Compiler does not advertise C11 conformance"
  2894. #endif
  2895. // Check _Alignas.
  2896. char _Alignas (double) aligned_as_double;
  2897. char _Alignas (0) no_special_alignment;
  2898. extern char aligned_as_int;
  2899. char _Alignas (0) _Alignas (int) aligned_as_int;
  2900. // Check _Alignof.
  2901. enum
  2902. {
  2903. int_alignment = _Alignof (int),
  2904. int_array_alignment = _Alignof (int[100]),
  2905. char_alignment = _Alignof (char)
  2906. };
  2907. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2908. // Check _Noreturn.
  2909. int _Noreturn does_not_return (void) { for (;;) continue; }
  2910. // Check _Static_assert.
  2911. struct test_static_assert
  2912. {
  2913. int x;
  2914. _Static_assert (sizeof (int) <= sizeof (long int),
  2915. "_Static_assert does not work in struct");
  2916. long int y;
  2917. };
  2918. // Check UTF-8 literals.
  2919. #define u8 syntax error!
  2920. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2921. // Check duplicate typedefs.
  2922. typedef long *long_ptr;
  2923. typedef long int *long_ptr;
  2924. typedef long_ptr long_ptr;
  2925. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2926. struct anonymous
  2927. {
  2928. union {
  2929. struct { int i; int j; };
  2930. struct { int k; long int l; } w;
  2931. };
  2932. int m;
  2933. } v1;
  2934. '
  2935. # Test code for whether the C compiler supports C11 (body of main).
  2936. ac_c_conftest_c11_main='
  2937. _Static_assert ((offsetof (struct anonymous, i)
  2938. == offsetof (struct anonymous, w.k)),
  2939. "Anonymous union alignment botch");
  2940. v1.i = 2;
  2941. v1.w.k = 5;
  2942. ok |= v1.i != 5;
  2943. '
  2944. # Test code for whether the C compiler supports C11 (complete).
  2945. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2946. ${ac_c_conftest_c99_globals}
  2947. ${ac_c_conftest_c11_globals}
  2948. int
  2949. main (int argc, char **argv)
  2950. {
  2951. int ok = 0;
  2952. ${ac_c_conftest_c89_main}
  2953. ${ac_c_conftest_c99_main}
  2954. ${ac_c_conftest_c11_main}
  2955. return ok;
  2956. }
  2957. "
  2958. # Test code for whether the C compiler supports C99 (complete).
  2959. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2960. ${ac_c_conftest_c99_globals}
  2961. int
  2962. main (int argc, char **argv)
  2963. {
  2964. int ok = 0;
  2965. ${ac_c_conftest_c89_main}
  2966. ${ac_c_conftest_c99_main}
  2967. return ok;
  2968. }
  2969. "
  2970. # Test code for whether the C compiler supports C89 (complete).
  2971. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2972. int
  2973. main (int argc, char **argv)
  2974. {
  2975. int ok = 0;
  2976. ${ac_c_conftest_c89_main}
  2977. return ok;
  2978. }
  2979. "
  2980. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2981. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2982. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2983. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2984. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2985. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2986. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2987. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2988. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2989. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2990. ac_cxx_conftest_cxx98_globals='
  2991. // Does the compiler advertise C++98 conformance?
  2992. #if !defined __cplusplus || __cplusplus < 199711L
  2993. # error "Compiler does not advertise C++98 conformance"
  2994. #endif
  2995. // These inclusions are to reject old compilers that
  2996. // lack the unsuffixed header files.
  2997. #include <cstdlib>
  2998. #include <exception>
  2999. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  3000. extern void assert (int);
  3001. namespace std {
  3002. extern int strcmp (const char *, const char *);
  3003. }
  3004. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  3005. using std::exception;
  3006. using std::strcmp;
  3007. namespace {
  3008. void test_exception_syntax()
  3009. {
  3010. try {
  3011. throw "test";
  3012. } catch (const char *s) {
  3013. // Extra parentheses suppress a warning when building autoconf itself,
  3014. // due to lint rules shared with more typical C programs.
  3015. assert (!(strcmp) (s, "test"));
  3016. }
  3017. }
  3018. template <typename T> struct test_template
  3019. {
  3020. T const val;
  3021. explicit test_template(T t) : val(t) {}
  3022. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  3023. };
  3024. } // anonymous namespace
  3025. '
  3026. # Test code for whether the C++ compiler supports C++98 (body of main)
  3027. ac_cxx_conftest_cxx98_main='
  3028. assert (argc);
  3029. assert (! argv[0]);
  3030. {
  3031. test_exception_syntax ();
  3032. test_template<double> tt (2.0);
  3033. assert (tt.add (4) == 6.0);
  3034. assert (true && !false);
  3035. }
  3036. '
  3037. # Test code for whether the C++ compiler supports C++11 (global declarations)
  3038. ac_cxx_conftest_cxx11_globals='
  3039. // Does the compiler advertise C++ 2011 conformance?
  3040. #if !defined __cplusplus || __cplusplus < 201103L
  3041. # error "Compiler does not advertise C++11 conformance"
  3042. #endif
  3043. namespace cxx11test
  3044. {
  3045. constexpr int get_val() { return 20; }
  3046. struct testinit
  3047. {
  3048. int i;
  3049. double d;
  3050. };
  3051. class delegate
  3052. {
  3053. public:
  3054. delegate(int n) : n(n) {}
  3055. delegate(): delegate(2354) {}
  3056. virtual int getval() { return this->n; };
  3057. protected:
  3058. int n;
  3059. };
  3060. class overridden : public delegate
  3061. {
  3062. public:
  3063. overridden(int n): delegate(n) {}
  3064. virtual int getval() override final { return this->n * 2; }
  3065. };
  3066. class nocopy
  3067. {
  3068. public:
  3069. nocopy(int i): i(i) {}
  3070. nocopy() = default;
  3071. nocopy(const nocopy&) = delete;
  3072. nocopy & operator=(const nocopy&) = delete;
  3073. private:
  3074. int i;
  3075. };
  3076. // for testing lambda expressions
  3077. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  3078. {
  3079. return f(v);
  3080. }
  3081. // for testing variadic templates and trailing return types
  3082. template <typename V> auto sum(V first) -> V
  3083. {
  3084. return first;
  3085. }
  3086. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  3087. {
  3088. return first + sum(rest...);
  3089. }
  3090. }
  3091. '
  3092. # Test code for whether the C++ compiler supports C++11 (body of main)
  3093. ac_cxx_conftest_cxx11_main='
  3094. {
  3095. // Test auto and decltype
  3096. auto a1 = 6538;
  3097. auto a2 = 48573953.4;
  3098. auto a3 = "String literal";
  3099. int total = 0;
  3100. for (auto i = a3; *i; ++i) { total += *i; }
  3101. decltype(a2) a4 = 34895.034;
  3102. }
  3103. {
  3104. // Test constexpr
  3105. short sa[cxx11test::get_val()] = { 0 };
  3106. }
  3107. {
  3108. // Test initializer lists
  3109. cxx11test::testinit il = { 4323, 435234.23544 };
  3110. }
  3111. {
  3112. // Test range-based for
  3113. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  3114. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  3115. for (auto &x : array) { x += 23; }
  3116. }
  3117. {
  3118. // Test lambda expressions
  3119. using cxx11test::eval;
  3120. assert (eval ([](int x) { return x*2; }, 21) == 42);
  3121. double d = 2.0;
  3122. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  3123. assert (d == 5.0);
  3124. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  3125. assert (d == 5.0);
  3126. }
  3127. {
  3128. // Test use of variadic templates
  3129. using cxx11test::sum;
  3130. auto a = sum(1);
  3131. auto b = sum(1, 2);
  3132. auto c = sum(1.0, 2.0, 3.0);
  3133. }
  3134. {
  3135. // Test constructor delegation
  3136. cxx11test::delegate d1;
  3137. cxx11test::delegate d2();
  3138. cxx11test::delegate d3(45);
  3139. }
  3140. {
  3141. // Test override and final
  3142. cxx11test::overridden o1(55464);
  3143. }
  3144. {
  3145. // Test nullptr
  3146. char *c = nullptr;
  3147. }
  3148. {
  3149. // Test template brackets
  3150. test_template<::test_template<int>> v(test_template<int>(12));
  3151. }
  3152. {
  3153. // Unicode literals
  3154. char const *utf8 = u8"UTF-8 string \u2500";
  3155. char16_t const *utf16 = u"UTF-8 string \u2500";
  3156. char32_t const *utf32 = U"UTF-32 string \u2500";
  3157. }
  3158. '
  3159. # Test code for whether the C compiler supports C++11 (complete).
  3160. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  3161. ${ac_cxx_conftest_cxx11_globals}
  3162. int
  3163. main (int argc, char **argv)
  3164. {
  3165. int ok = 0;
  3166. ${ac_cxx_conftest_cxx98_main}
  3167. ${ac_cxx_conftest_cxx11_main}
  3168. return ok;
  3169. }
  3170. "
  3171. # Test code for whether the C compiler supports C++98 (complete).
  3172. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  3173. int
  3174. main (int argc, char **argv)
  3175. {
  3176. int ok = 0;
  3177. ${ac_cxx_conftest_cxx98_main}
  3178. return ok;
  3179. }
  3180. "
  3181. as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
  3182. as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
  3183. as_fn_append ac_func_c_list " fork HAVE_FORK"
  3184. as_fn_append ac_func_c_list " vfork HAVE_VFORK"
  3185. as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
  3186. as_fn_append ac_func_c_list " alarm HAVE_ALARM"
  3187. as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
  3188. as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
  3189. # Auxiliary files required by this configure script.
  3190. ac_aux_files="ltmain.sh compile ar-lib missing install-sh config.guess config.sub"
  3191. # Locations in which to look for auxiliary files.
  3192. ac_aux_dir_candidates="${srcdir}/config"
  3193. # Search for a directory containing all of the required auxiliary files,
  3194. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  3195. # If we don't find one directory that contains all the files we need,
  3196. # we report the set of missing files from the *first* directory in
  3197. # $ac_aux_dir_candidates and give up.
  3198. ac_missing_aux_files=""
  3199. ac_first_candidate=:
  3200. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3202. as_found=false
  3203. for as_dir in $ac_aux_dir_candidates
  3204. do
  3205. IFS=$as_save_IFS
  3206. case $as_dir in #(((
  3207. '') as_dir=./ ;;
  3208. */) ;;
  3209. *) as_dir=$as_dir/ ;;
  3210. esac
  3211. as_found=:
  3212. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3213. ac_aux_dir_found=yes
  3214. ac_install_sh=
  3215. for ac_aux in $ac_aux_files
  3216. do
  3217. # As a special case, if "install-sh" is required, that requirement
  3218. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3219. # and $ac_install_sh is set appropriately for whichever one is found.
  3220. if test x"$ac_aux" = x"install-sh"
  3221. then
  3222. if test -f "${as_dir}install-sh"; then
  3223. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3224. ac_install_sh="${as_dir}install-sh -c"
  3225. elif test -f "${as_dir}install.sh"; then
  3226. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3227. ac_install_sh="${as_dir}install.sh -c"
  3228. elif test -f "${as_dir}shtool"; then
  3229. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3230. ac_install_sh="${as_dir}shtool install -c"
  3231. else
  3232. ac_aux_dir_found=no
  3233. if $ac_first_candidate; then
  3234. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3235. else
  3236. break
  3237. fi
  3238. fi
  3239. else
  3240. if test -f "${as_dir}${ac_aux}"; then
  3241. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3242. else
  3243. ac_aux_dir_found=no
  3244. if $ac_first_candidate; then
  3245. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3246. else
  3247. break
  3248. fi
  3249. fi
  3250. fi
  3251. done
  3252. if test "$ac_aux_dir_found" = yes; then
  3253. ac_aux_dir="$as_dir"
  3254. break
  3255. fi
  3256. ac_first_candidate=false
  3257. as_found=false
  3258. done
  3259. IFS=$as_save_IFS
  3260. if $as_found
  3261. then :
  3262. else case e in #(
  3263. e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
  3264. esac
  3265. fi
  3266. # These three variables are undocumented and unsupported,
  3267. # and are intended to be withdrawn in a future Autoconf release.
  3268. # They can cause serious problems if a builder's source tree is in a directory
  3269. # whose full name contains unusual characters.
  3270. if test -f "${ac_aux_dir}config.guess"; then
  3271. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3272. fi
  3273. if test -f "${ac_aux_dir}config.sub"; then
  3274. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3275. fi
  3276. if test -f "$ac_aux_dir/configure"; then
  3277. ac_configure="$SHELL ${ac_aux_dir}configure"
  3278. fi
  3279. # Check that the precious variables saved in the cache have kept the same
  3280. # value.
  3281. ac_cache_corrupted=false
  3282. for ac_var in $ac_precious_vars; do
  3283. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3284. eval ac_new_set=\$ac_env_${ac_var}_set
  3285. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3286. eval ac_new_val=\$ac_env_${ac_var}_value
  3287. case $ac_old_set,$ac_new_set in
  3288. set,)
  3289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
  3290. printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
  3291. ac_cache_corrupted=: ;;
  3292. ,set)
  3293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
  3294. printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
  3295. ac_cache_corrupted=: ;;
  3296. ,);;
  3297. *)
  3298. if test "x$ac_old_val" != "x$ac_new_val"; then
  3299. # differences in whitespace do not lead to failure.
  3300. ac_old_val_w=`echo x $ac_old_val`
  3301. ac_new_val_w=`echo x $ac_new_val`
  3302. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
  3304. printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
  3305. ac_cache_corrupted=:
  3306. else
  3307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
  3308. printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
  3309. eval $ac_var=\$ac_old_val
  3310. fi
  3311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
  3312. printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
  3313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
  3314. printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
  3315. fi;;
  3316. esac
  3317. # Pass precious variables to config.status.
  3318. if test "$ac_new_set" = set; then
  3319. case $ac_new_val in
  3320. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3321. *) ac_arg=$ac_var=$ac_new_val ;;
  3322. esac
  3323. case " $ac_configure_args " in
  3324. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3325. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3326. esac
  3327. fi
  3328. done
  3329. if $ac_cache_corrupted; then
  3330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3331. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3333. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3334. as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
  3335. and start over" "$LINENO" 5
  3336. fi
  3337. ## -------------------- ##
  3338. ## Main body of script. ##
  3339. ## -------------------- ##
  3340. ac_ext=c
  3341. ac_cpp='$CPP $CPPFLAGS'
  3342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3345. ac_config_headers="$ac_config_headers src/config.h"
  3346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3347. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3348. # Check whether --enable-maintainer-mode was given.
  3349. if test ${enable_maintainer_mode+y}
  3350. then :
  3351. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3352. else case e in #(
  3353. e) USE_MAINTAINER_MODE=yes ;;
  3354. esac
  3355. fi
  3356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3357. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  3358. if test $USE_MAINTAINER_MODE = yes; then
  3359. MAINTAINER_MODE_TRUE=
  3360. MAINTAINER_MODE_FALSE='#'
  3361. else
  3362. MAINTAINER_MODE_TRUE='#'
  3363. MAINTAINER_MODE_FALSE=
  3364. fi
  3365. MAINT=$MAINTAINER_MODE_TRUE
  3366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
  3367. printf %s "checking if malloc debugging is wanted... " >&6; }
  3368. # Check whether --with-dmalloc was given.
  3369. if test ${with_dmalloc+y}
  3370. then :
  3371. withval=$with_dmalloc; if test "$withval" = yes; then
  3372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3373. printf "%s\n" "yes" >&6; }
  3374. printf "%s\n" "#define WITH_DMALLOC 1" >>confdefs.h
  3375. LIBS="$LIBS -ldmalloc"
  3376. LDFLAGS="$LDFLAGS -g"
  3377. else
  3378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3379. printf "%s\n" "no" >&6; }
  3380. fi
  3381. else case e in #(
  3382. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3383. printf "%s\n" "no" >&6; } ;;
  3384. esac
  3385. fi
  3386. MAINTAINER_AUTOGEN_VERSION=5.18.16
  3387. TCPREPLAY_VERSION=$PACKAGE_VERSION
  3388. TCPREPLAY_RELEASE=1
  3389. # Make sure we can run config.sub.
  3390. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3391. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3393. printf %s "checking build system type... " >&6; }
  3394. if test ${ac_cv_build+y}
  3395. then :
  3396. printf %s "(cached) " >&6
  3397. else case e in #(
  3398. e) ac_build_alias=$build_alias
  3399. test "x$ac_build_alias" = x &&
  3400. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3401. test "x$ac_build_alias" = x &&
  3402. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3403. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3404. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3405. ;;
  3406. esac
  3407. fi
  3408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3409. printf "%s\n" "$ac_cv_build" >&6; }
  3410. case $ac_cv_build in
  3411. *-*-*) ;;
  3412. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3413. esac
  3414. build=$ac_cv_build
  3415. ac_save_IFS=$IFS; IFS='-'
  3416. set x $ac_cv_build
  3417. shift
  3418. build_cpu=$1
  3419. build_vendor=$2
  3420. shift; shift
  3421. # Remember, the first character of IFS is used to create $*,
  3422. # except with old shells:
  3423. build_os=$*
  3424. IFS=$ac_save_IFS
  3425. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3427. printf %s "checking host system type... " >&6; }
  3428. if test ${ac_cv_host+y}
  3429. then :
  3430. printf %s "(cached) " >&6
  3431. else case e in #(
  3432. e) if test "x$host_alias" = x; then
  3433. ac_cv_host=$ac_cv_build
  3434. else
  3435. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3436. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3437. fi
  3438. ;;
  3439. esac
  3440. fi
  3441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3442. printf "%s\n" "$ac_cv_host" >&6; }
  3443. case $ac_cv_host in
  3444. *-*-*) ;;
  3445. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3446. esac
  3447. host=$ac_cv_host
  3448. ac_save_IFS=$IFS; IFS='-'
  3449. set x $ac_cv_host
  3450. shift
  3451. host_cpu=$1
  3452. host_vendor=$2
  3453. shift; shift
  3454. # Remember, the first character of IFS is used to create $*,
  3455. # except with old shells:
  3456. host_os=$*
  3457. IFS=$ac_save_IFS
  3458. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3460. printf %s "checking target system type... " >&6; }
  3461. if test ${ac_cv_target+y}
  3462. then :
  3463. printf %s "(cached) " >&6
  3464. else case e in #(
  3465. e) if test "x$target_alias" = x; then
  3466. ac_cv_target=$ac_cv_host
  3467. else
  3468. ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
  3469. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
  3470. fi
  3471. ;;
  3472. esac
  3473. fi
  3474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3475. printf "%s\n" "$ac_cv_target" >&6; }
  3476. case $ac_cv_target in
  3477. *-*-*) ;;
  3478. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  3479. esac
  3480. target=$ac_cv_target
  3481. ac_save_IFS=$IFS; IFS='-'
  3482. set x $ac_cv_target
  3483. shift
  3484. target_cpu=$1
  3485. target_vendor=$2
  3486. shift; shift
  3487. # Remember, the first character of IFS is used to create $*,
  3488. # except with old shells:
  3489. target_os=$*
  3490. IFS=$ac_save_IFS
  3491. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3492. # The aliases save the names the user supplied, while $host etc.
  3493. # will get canonicalized.
  3494. test -n "$target_alias" &&
  3495. test "$program_prefix$program_suffix$program_transform_name" = \
  3496. NONENONEs,x,x, &&
  3497. program_prefix=${target_alias}-
  3498. CROSS_ARCH=
  3499. CROSS_LD=
  3500. build_arch=$(echo $MACHTYPE | cut -d'-' -f1)
  3501. if test "$cross_compiling" = "yes" ; then
  3502. CROSS_ARCH="ARCH=$host_cpu"
  3503. CROSS_LD="LD=$LD"
  3504. fi
  3505. # Check whether --with-macos-sdk was given.
  3506. if test ${with_macos_sdk+y}
  3507. then :
  3508. withval=$with_macos_sdk;
  3509. fi
  3510. case "$host_os" in
  3511. darwin*) # Mac OS X or iOS
  3512. # If no --with-macos-sdk option is given, look for the latestq SDK
  3513. # The intent is that for "most" Mac-based developers, a suitable
  3514. # SDK will be found automatically without any configure options.
  3515. # For developers with a current Xcode, the lowest-numbered SDK
  3516. # higher than or equal to the minimum required should be found.
  3517. # To find a list of available version run `xcodebuild -showsdks`
  3518. MULTIARCH=${host_cpu}-${host_os}
  3519. unset MACOSX_SDK_PATH
  3520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what macOS compiler to use" >&5
  3521. printf %s "checking what macOS compiler to use... " >&6; }
  3522. if test -n "$with_macos_sdk"; then
  3523. MACOSX_SDK_PATH=$(xcrun --sdk macosx${with_macos_sdk} --show-sdk-path 2> /dev/null)
  3524. if test -z "$MACOSX_SDK_PATH" ; then
  3525. as_fn_error $? "could not find SDK ${with_macos_sdk} for macos-${MULTIARCH}" "$LINENO" 5
  3526. fi
  3527. else
  3528. MACOSX_SDK_PATH=$(xcrun --show-sdk-path 2> /dev/null)
  3529. if test -z "$MACOSX_SDK_PATH" ; then
  3530. for _macos_sdk_major in $(seq 15 -1 10); do
  3531. for _macos_sdk_minor in $(seq 20 -1 0); do
  3532. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  3533. MACOSX_SDK_PATH=$(xcrun --sdk macosx${_macos_sdk_version} --show-sdk-path 2> /dev/null)
  3534. if test -d "$_macos_sdk_path" ; then
  3535. break 2
  3536. fi
  3537. done
  3538. done
  3539. if test -z "$MACOSX_SDK_PATH"; then
  3540. for _macos_sdk_major in $(seq 15 -1 10); do
  3541. for _macos_sdk_minor in $(seq 20 -1 0); do
  3542. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  3543. MACOSX_SDK_PATH=$(xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${_macos_sdk_version}.sdk
  3544. if test -d "$MACOSX_SDK_PATH"; then
  3545. break 2
  3546. fi
  3547. MACOSX_SDK_PATH=$(xcode-select -print-path)/SDKs/MacOSX${_macos_sdk_version}.sdk
  3548. if test -d "$MACOSX_SDK_PATH"; then
  3549. break 2
  3550. fi
  3551. done
  3552. done
  3553. fi
  3554. fi
  3555. fi
  3556. if test -d "$MACOSX_SDK_PATH"; then
  3557. CC="$(xcrun -find clang) -m64 -isysroot $MACOSX_SDK_PATH"
  3558. INSTALL_NAME_TOOL=$(xcrun -find install_name_tool)
  3559. AR=$(xcrun -find ar)
  3560. NM=$(xcrun -find nm)
  3561. STRIP=$(xcrun -find strip)
  3562. LIBTOOL=$(xcrun -find libtool)
  3563. RANLIB=$(xcrun -find ranlib)
  3564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${MACOSX_SDK_PATH}" >&5
  3565. printf "%s\n" "${MACOSX_SDK_PATH}" >&6; }
  3566. else
  3567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: legacy" >&5
  3568. printf "%s\n" "legacy" >&6; }
  3569. fi
  3570. ;;
  3571. Linux*)
  3572. MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) 2> /dev/null || ${host_cpu}-${host_os}
  3573. ;;
  3574. *)
  3575. MULTIARCH=${host_cpu}-${host_os}
  3576. ;;
  3577. esac
  3578. # Note that the OS X libtool command is unrelated to GNU libtool
  3579. # Check whether --with-pfring-lib was given.
  3580. if test ${with_pfring_lib+y}
  3581. then :
  3582. withval=$with_pfring_lib;
  3583. fi
  3584. have_cygwin=no
  3585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cygwin development environment" >&5
  3586. printf %s "checking for cygwin development environment... " >&6; }
  3587. if test $(echo $target | grep -c cygwin) -gt 0 ; then
  3588. printf "%s\n" "#define HAVE_WIN32 1" >>confdefs.h
  3589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3590. printf "%s\n" "yes" >&6; }
  3591. have_cygwin=yes
  3592. else
  3593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3594. printf "%s\n" "no" >&6; }
  3595. fi
  3596. am__api_version='1.17'
  3597. # Find a good install program. We prefer a C program (faster),
  3598. # so one script is as good as another. But avoid the broken or
  3599. # incompatible versions:
  3600. # SysV /etc/install, /usr/sbin/install
  3601. # SunOS /usr/etc/install
  3602. # IRIX /sbin/install
  3603. # AIX /bin/install
  3604. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3605. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3606. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3607. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3608. # OS/2's system install, which has a completely different semantic
  3609. # ./install, which can be erroneously created by make from ./install.sh.
  3610. # Reject install programs that cannot install multiple files.
  3611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3612. printf %s "checking for a BSD-compatible install... " >&6; }
  3613. if test -z "$INSTALL"; then
  3614. if test ${ac_cv_path_install+y}
  3615. then :
  3616. printf %s "(cached) " >&6
  3617. else case e in #(
  3618. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3619. for as_dir in $PATH
  3620. do
  3621. IFS=$as_save_IFS
  3622. case $as_dir in #(((
  3623. '') as_dir=./ ;;
  3624. */) ;;
  3625. *) as_dir=$as_dir/ ;;
  3626. esac
  3627. # Account for fact that we put trailing slashes in our PATH walk.
  3628. case $as_dir in #((
  3629. ./ | /[cC]/* | \
  3630. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3631. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3632. /usr/ucb/* ) ;;
  3633. *)
  3634. # OSF1 and SCO ODT 3.0 have their own names for install.
  3635. # Don't use installbsd from OSF since it installs stuff as root
  3636. # by default.
  3637. for ac_prog in ginstall scoinst install; do
  3638. for ac_exec_ext in '' $ac_executable_extensions; do
  3639. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  3640. if test $ac_prog = install &&
  3641. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3642. # AIX install. It has an incompatible calling convention.
  3643. :
  3644. elif test $ac_prog = install &&
  3645. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3646. # program-specific install script used by HP pwplus--don't use.
  3647. :
  3648. else
  3649. rm -rf conftest.one conftest.two conftest.dir
  3650. echo one > conftest.one
  3651. echo two > conftest.two
  3652. mkdir conftest.dir
  3653. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  3654. test -s conftest.one && test -s conftest.two &&
  3655. test -s conftest.dir/conftest.one &&
  3656. test -s conftest.dir/conftest.two
  3657. then
  3658. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  3659. break 3
  3660. fi
  3661. fi
  3662. fi
  3663. done
  3664. done
  3665. ;;
  3666. esac
  3667. done
  3668. IFS=$as_save_IFS
  3669. rm -rf conftest.one conftest.two conftest.dir
  3670. ;;
  3671. esac
  3672. fi
  3673. if test ${ac_cv_path_install+y}; then
  3674. INSTALL=$ac_cv_path_install
  3675. else
  3676. # As a last resort, use the slow shell script. Don't cache a
  3677. # value for INSTALL within a source directory, because that will
  3678. # break other packages using the cache if that directory is
  3679. # removed, or if the value is a relative name.
  3680. INSTALL=$ac_install_sh
  3681. fi
  3682. fi
  3683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3684. printf "%s\n" "$INSTALL" >&6; }
  3685. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3686. # It thinks the first close brace ends the variable substitution.
  3687. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3688. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3689. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
  3691. printf %s "checking whether sleep supports fractional seconds... " >&6; }
  3692. if test ${am_cv_sleep_fractional_seconds+y}
  3693. then :
  3694. printf %s "(cached) " >&6
  3695. else case e in #(
  3696. e) if sleep 0.001 2>/dev/null
  3697. then :
  3698. am_cv_sleep_fractional_seconds=yes
  3699. else case e in #(
  3700. e) am_cv_sleep_fractional_seconds=no ;;
  3701. esac
  3702. fi
  3703. ;;
  3704. esac
  3705. fi
  3706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
  3707. printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
  3708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
  3709. printf %s "checking filesystem timestamp resolution... " >&6; }
  3710. if test ${am_cv_filesystem_timestamp_resolution+y}
  3711. then :
  3712. printf %s "(cached) " >&6
  3713. else case e in #(
  3714. e) # Default to the worst case.
  3715. am_cv_filesystem_timestamp_resolution=2
  3716. # Only try to go finer than 1 sec if sleep can do it.
  3717. # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
  3718. # - 1 sec is not much of a win compared to 2 sec, and
  3719. # - it takes 2 seconds to perform the test whether 1 sec works.
  3720. #
  3721. # Instead, just use the default 2s on platforms that have 1s resolution,
  3722. # accept the extra 1s delay when using $sleep in the Automake tests, in
  3723. # exchange for not incurring the 2s delay for running the test for all
  3724. # packages.
  3725. #
  3726. am_try_resolutions=
  3727. if test "$am_cv_sleep_fractional_seconds" = yes; then
  3728. # Even a millisecond often causes a bunch of false positives,
  3729. # so just try a hundredth of a second. The time saved between .001 and
  3730. # .01 is not terribly consequential.
  3731. am_try_resolutions="0.01 0.1 $am_try_resolutions"
  3732. fi
  3733. # In order to catch current-generation FAT out, we must *modify* files
  3734. # that already exist; the *creation* timestamp is finer. Use names
  3735. # that make ls -t sort them differently when they have equal
  3736. # timestamps than when they have distinct timestamps, keeping
  3737. # in mind that ls -t prints the *newest* file first.
  3738. rm -f conftest.ts?
  3739. : > conftest.ts1
  3740. : > conftest.ts2
  3741. : > conftest.ts3
  3742. # Make sure ls -t actually works. Do 'set' in a subshell so we don't
  3743. # clobber the current shell's arguments. (Outer-level square brackets
  3744. # are removed by m4; they're present so that m4 does not expand
  3745. # <dollar><star>; be careful, easy to get confused.)
  3746. if (
  3747. set X `ls -t conftest.ts[12]` &&
  3748. {
  3749. test "$*" != "X conftest.ts1 conftest.ts2" ||
  3750. test "$*" != "X conftest.ts2 conftest.ts1";
  3751. }
  3752. ); then :; else
  3753. # If neither matched, then we have a broken ls. This can happen
  3754. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3755. # broken ls alias from the environment. This has actually
  3756. # happened. Such a system could not be considered "sane".
  3757. printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
  3758. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3759. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3760. as_fn_error $? "ls -t produces unexpected output.
  3761. Make sure there is not a broken ls alias in your environment.
  3762. See 'config.log' for more details" "$LINENO" 5; }
  3763. fi
  3764. for am_try_res in $am_try_resolutions; do
  3765. # Any one fine-grained sleep might happen to cross the boundary
  3766. # between two values of a coarser actual resolution, but if we do
  3767. # two fine-grained sleeps in a row, at least one of them will fall
  3768. # entirely within a coarse interval.
  3769. echo alpha > conftest.ts1
  3770. sleep $am_try_res
  3771. echo beta > conftest.ts2
  3772. sleep $am_try_res
  3773. echo gamma > conftest.ts3
  3774. # We assume that 'ls -t' will make use of high-resolution
  3775. # timestamps if the operating system supports them at all.
  3776. if (set X `ls -t conftest.ts?` &&
  3777. test "$2" = conftest.ts3 &&
  3778. test "$3" = conftest.ts2 &&
  3779. test "$4" = conftest.ts1); then
  3780. #
  3781. # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
  3782. # because we don't need to test make.
  3783. make_ok=true
  3784. if test $am_try_res != 1; then
  3785. # But if we've succeeded so far with a subsecond resolution, we
  3786. # have one more thing to check: make. It can happen that
  3787. # everything else supports the subsecond mtimes, but make doesn't;
  3788. # notably on macOS, which ships make 3.81 from 2006 (the last one
  3789. # released under GPLv2). https://bugs.gnu.org/68808
  3790. #
  3791. # We test $MAKE if it is defined in the environment, else "make".
  3792. # It might get overridden later, but our hope is that in practice
  3793. # it does not matter: it is the system "make" which is (by far)
  3794. # the most likely to be broken, whereas if the user overrides it,
  3795. # probably they did so with a better, or at least not worse, make.
  3796. # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
  3797. #
  3798. # Create a Makefile (real tab character here):
  3799. rm -f conftest.mk
  3800. echo 'conftest.ts1: conftest.ts2' >conftest.mk
  3801. echo ' touch conftest.ts2' >>conftest.mk
  3802. #
  3803. # Now, running
  3804. # touch conftest.ts1; touch conftest.ts2; make
  3805. # should touch ts1 because ts2 is newer. This could happen by luck,
  3806. # but most often, it will fail if make's support is insufficient. So
  3807. # test for several consecutive successes.
  3808. #
  3809. # (We reuse conftest.ts[12] because we still want to modify existing
  3810. # files, not create new ones, per above.)
  3811. n=0
  3812. make=${MAKE-make}
  3813. until test $n -eq 3; do
  3814. echo one > conftest.ts1
  3815. sleep $am_try_res
  3816. echo two > conftest.ts2 # ts2 should now be newer than ts1
  3817. if $make -f conftest.mk | grep 'up to date' >/dev/null; then
  3818. make_ok=false
  3819. break # out of $n loop
  3820. fi
  3821. n=`expr $n + 1`
  3822. done
  3823. fi
  3824. #
  3825. if $make_ok; then
  3826. # Everything we know to check worked out, so call this resolution good.
  3827. am_cv_filesystem_timestamp_resolution=$am_try_res
  3828. break # out of $am_try_res loop
  3829. fi
  3830. # Otherwise, we'll go on to check the next resolution.
  3831. fi
  3832. done
  3833. rm -f conftest.ts?
  3834. # (end _am_filesystem_timestamp_resolution)
  3835. ;;
  3836. esac
  3837. fi
  3838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
  3839. printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
  3840. # This check should not be cached, as it may vary across builds of
  3841. # different projects.
  3842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3843. printf %s "checking whether build environment is sane... " >&6; }
  3844. # Reject unsafe characters in $srcdir or the absolute working directory
  3845. # name. Accept space and tab only in the latter.
  3846. am_lf='
  3847. '
  3848. case `pwd` in
  3849. *[\\\"\#\$\&\'\`$am_lf]*)
  3850. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3851. esac
  3852. case $srcdir in
  3853. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3854. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3855. esac
  3856. # Do 'set' in a subshell so we don't clobber the current shell's
  3857. # arguments. Must try -L first in case configure is actually a
  3858. # symlink; some systems play weird games with the mod time of symlinks
  3859. # (eg FreeBSD returns the mod time of the symlink's containing
  3860. # directory).
  3861. am_build_env_is_sane=no
  3862. am_has_slept=no
  3863. rm -f conftest.file
  3864. for am_try in 1 2; do
  3865. echo "timestamp, slept: $am_has_slept" > conftest.file
  3866. if (
  3867. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3868. if test "$*" = "X"; then
  3869. # -L didn't work.
  3870. set X `ls -t "$srcdir/configure" conftest.file`
  3871. fi
  3872. test "$2" = conftest.file
  3873. ); then
  3874. am_build_env_is_sane=yes
  3875. break
  3876. fi
  3877. # Just in case.
  3878. sleep "$am_cv_filesystem_timestamp_resolution"
  3879. am_has_slept=yes
  3880. done
  3881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
  3882. printf "%s\n" "$am_build_env_is_sane" >&6; }
  3883. if test "$am_build_env_is_sane" = no; then
  3884. as_fn_error $? "newly created file is older than distributed files!
  3885. Check your system clock" "$LINENO" 5
  3886. fi
  3887. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3888. # generated files are strictly newer.
  3889. am_sleep_pid=
  3890. if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
  3891. then :
  3892. else case e in #(
  3893. e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
  3894. am_sleep_pid=$!
  3895. ;;
  3896. esac
  3897. fi
  3898. rm -f conftest.file
  3899. test "$program_prefix" != NONE &&
  3900. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3901. # Use a double $ so make ignores it.
  3902. test "$program_suffix" != NONE &&
  3903. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3904. # Double any \ or $.
  3905. # By default was 's,x,x', remove it if useless.
  3906. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3907. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  3908. # Expand $ac_aux_dir to an absolute path.
  3909. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3910. if test x"${MISSING+set}" != xset; then
  3911. MISSING="\${SHELL} '$am_aux_dir/missing'"
  3912. fi
  3913. # Use eval to expand $SHELL
  3914. if eval "$MISSING --is-lightweight"; then
  3915. am_missing_run="$MISSING "
  3916. else
  3917. am_missing_run=
  3918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3919. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3920. fi
  3921. if test x"${install_sh+set}" != xset; then
  3922. case $am_aux_dir in
  3923. *\ * | *\ *)
  3924. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3925. *)
  3926. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3927. esac
  3928. fi
  3929. # Installed binaries are usually stripped using 'strip' when the user
  3930. # run "make install-strip". However 'strip' might not be the right
  3931. # tool to use in cross-compilation environments, therefore Automake
  3932. # will honor the 'STRIP' environment variable to overrule this program.
  3933. if test "$cross_compiling" != no; then
  3934. if test -n "$ac_tool_prefix"; then
  3935. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3936. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3938. printf %s "checking for $ac_word... " >&6; }
  3939. if test ${ac_cv_prog_STRIP+y}
  3940. then :
  3941. printf %s "(cached) " >&6
  3942. else case e in #(
  3943. e) if test -n "$STRIP"; then
  3944. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3945. else
  3946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3947. for as_dir in $PATH
  3948. do
  3949. IFS=$as_save_IFS
  3950. case $as_dir in #(((
  3951. '') as_dir=./ ;;
  3952. */) ;;
  3953. *) as_dir=$as_dir/ ;;
  3954. esac
  3955. for ac_exec_ext in '' $ac_executable_extensions; do
  3956. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3957. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3958. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3959. break 2
  3960. fi
  3961. done
  3962. done
  3963. IFS=$as_save_IFS
  3964. fi ;;
  3965. esac
  3966. fi
  3967. STRIP=$ac_cv_prog_STRIP
  3968. if test -n "$STRIP"; then
  3969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3970. printf "%s\n" "$STRIP" >&6; }
  3971. else
  3972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3973. printf "%s\n" "no" >&6; }
  3974. fi
  3975. fi
  3976. if test -z "$ac_cv_prog_STRIP"; then
  3977. ac_ct_STRIP=$STRIP
  3978. # Extract the first word of "strip", so it can be a program name with args.
  3979. set dummy strip; ac_word=$2
  3980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3981. printf %s "checking for $ac_word... " >&6; }
  3982. if test ${ac_cv_prog_ac_ct_STRIP+y}
  3983. then :
  3984. printf %s "(cached) " >&6
  3985. else case e in #(
  3986. e) if test -n "$ac_ct_STRIP"; then
  3987. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3988. else
  3989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3990. for as_dir in $PATH
  3991. do
  3992. IFS=$as_save_IFS
  3993. case $as_dir in #(((
  3994. '') as_dir=./ ;;
  3995. */) ;;
  3996. *) as_dir=$as_dir/ ;;
  3997. esac
  3998. for ac_exec_ext in '' $ac_executable_extensions; do
  3999. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4000. ac_cv_prog_ac_ct_STRIP="strip"
  4001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4002. break 2
  4003. fi
  4004. done
  4005. done
  4006. IFS=$as_save_IFS
  4007. fi ;;
  4008. esac
  4009. fi
  4010. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4011. if test -n "$ac_ct_STRIP"; then
  4012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4013. printf "%s\n" "$ac_ct_STRIP" >&6; }
  4014. else
  4015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4016. printf "%s\n" "no" >&6; }
  4017. fi
  4018. if test "x$ac_ct_STRIP" = x; then
  4019. STRIP=":"
  4020. else
  4021. case $cross_compiling:$ac_tool_warned in
  4022. yes:)
  4023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4024. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4025. ac_tool_warned=yes ;;
  4026. esac
  4027. STRIP=$ac_ct_STRIP
  4028. fi
  4029. else
  4030. STRIP="$ac_cv_prog_STRIP"
  4031. fi
  4032. fi
  4033. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  4034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  4035. printf %s "checking for a race-free mkdir -p... " >&6; }
  4036. if test -z "$MKDIR_P"; then
  4037. if test ${ac_cv_path_mkdir+y}
  4038. then :
  4039. printf %s "(cached) " >&6
  4040. else case e in #(
  4041. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4042. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4043. do
  4044. IFS=$as_save_IFS
  4045. case $as_dir in #(((
  4046. '') as_dir=./ ;;
  4047. */) ;;
  4048. *) as_dir=$as_dir/ ;;
  4049. esac
  4050. for ac_prog in mkdir gmkdir; do
  4051. for ac_exec_ext in '' $ac_executable_extensions; do
  4052. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  4053. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4054. 'mkdir ('*'coreutils) '* | \
  4055. *'BusyBox '* | \
  4056. 'mkdir (fileutils) '4.1*)
  4057. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  4058. break 3;;
  4059. esac
  4060. done
  4061. done
  4062. done
  4063. IFS=$as_save_IFS
  4064. ;;
  4065. esac
  4066. fi
  4067. test -d ./--version && rmdir ./--version
  4068. if test ${ac_cv_path_mkdir+y}; then
  4069. MKDIR_P="$ac_cv_path_mkdir -p"
  4070. else
  4071. # As a last resort, use plain mkdir -p,
  4072. # in the hope it doesn't have the bugs of ancient mkdir.
  4073. MKDIR_P='mkdir -p'
  4074. fi
  4075. fi
  4076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  4077. printf "%s\n" "$MKDIR_P" >&6; }
  4078. for ac_prog in gawk mawk nawk awk
  4079. do
  4080. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4081. set dummy $ac_prog; ac_word=$2
  4082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4083. printf %s "checking for $ac_word... " >&6; }
  4084. if test ${ac_cv_prog_AWK+y}
  4085. then :
  4086. printf %s "(cached) " >&6
  4087. else case e in #(
  4088. e) if test -n "$AWK"; then
  4089. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4090. else
  4091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4092. for as_dir in $PATH
  4093. do
  4094. IFS=$as_save_IFS
  4095. case $as_dir in #(((
  4096. '') as_dir=./ ;;
  4097. */) ;;
  4098. *) as_dir=$as_dir/ ;;
  4099. esac
  4100. for ac_exec_ext in '' $ac_executable_extensions; do
  4101. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4102. ac_cv_prog_AWK="$ac_prog"
  4103. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4104. break 2
  4105. fi
  4106. done
  4107. done
  4108. IFS=$as_save_IFS
  4109. fi ;;
  4110. esac
  4111. fi
  4112. AWK=$ac_cv_prog_AWK
  4113. if test -n "$AWK"; then
  4114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4115. printf "%s\n" "$AWK" >&6; }
  4116. else
  4117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4118. printf "%s\n" "no" >&6; }
  4119. fi
  4120. test -n "$AWK" && break
  4121. done
  4122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4123. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4124. set x ${MAKE-make}
  4125. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4126. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  4127. then :
  4128. printf %s "(cached) " >&6
  4129. else case e in #(
  4130. e) cat >conftest.make <<\_ACEOF
  4131. SHELL = /bin/sh
  4132. all:
  4133. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4134. _ACEOF
  4135. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4136. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4137. *@@@%%%=?*=@@@%%%*)
  4138. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4139. *)
  4140. eval ac_cv_prog_make_${ac_make}_set=no;;
  4141. esac
  4142. rm -f conftest.make ;;
  4143. esac
  4144. fi
  4145. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4147. printf "%s\n" "yes" >&6; }
  4148. SET_MAKE=
  4149. else
  4150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4151. printf "%s\n" "no" >&6; }
  4152. SET_MAKE="MAKE=${MAKE-make}"
  4153. fi
  4154. rm -rf .tst 2>/dev/null
  4155. mkdir .tst 2>/dev/null
  4156. if test -d .tst; then
  4157. am__leading_dot=.
  4158. else
  4159. am__leading_dot=_
  4160. fi
  4161. rmdir .tst 2>/dev/null
  4162. AM_DEFAULT_VERBOSITY=1
  4163. # Check whether --enable-silent-rules was given.
  4164. if test ${enable_silent_rules+y}
  4165. then :
  4166. enableval=$enable_silent_rules;
  4167. fi
  4168. am_make=${MAKE-make}
  4169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4170. printf %s "checking whether $am_make supports nested variables... " >&6; }
  4171. if test ${am_cv_make_support_nested_variables+y}
  4172. then :
  4173. printf %s "(cached) " >&6
  4174. else case e in #(
  4175. e) if printf "%s\n" 'TRUE=$(BAR$(V))
  4176. BAR0=false
  4177. BAR1=true
  4178. V=1
  4179. am__doit:
  4180. @$(TRUE)
  4181. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4182. am_cv_make_support_nested_variables=yes
  4183. else
  4184. am_cv_make_support_nested_variables=no
  4185. fi ;;
  4186. esac
  4187. fi
  4188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4189. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  4190. AM_BACKSLASH='\'
  4191. am__rm_f_notfound=
  4192. if (rm -f && rm -fr && rm -rf) 2>/dev/null
  4193. then :
  4194. else case e in #(
  4195. e) am__rm_f_notfound='""' ;;
  4196. esac
  4197. fi
  4198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
  4199. printf %s "checking xargs -n works... " >&6; }
  4200. if test ${am_cv_xargs_n_works+y}
  4201. then :
  4202. printf %s "(cached) " >&6
  4203. else case e in #(
  4204. e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
  4205. 3"
  4206. then :
  4207. am_cv_xargs_n_works=yes
  4208. else case e in #(
  4209. e) am_cv_xargs_n_works=no ;;
  4210. esac
  4211. fi ;;
  4212. esac
  4213. fi
  4214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
  4215. printf "%s\n" "$am_cv_xargs_n_works" >&6; }
  4216. if test "$am_cv_xargs_n_works" = yes
  4217. then :
  4218. am__xargs_n='xargs -n'
  4219. else case e in #(
  4220. e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
  4221. ;;
  4222. esac
  4223. fi
  4224. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4225. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4226. # is not polluted with repeated "-I."
  4227. am__isrc=' -I$(srcdir)'
  4228. # test to see if srcdir already configured
  4229. if test -f $srcdir/config.status; then
  4230. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4231. fi
  4232. fi
  4233. # test whether we have cygpath
  4234. if test -z "$CYGPATH_W"; then
  4235. if (cygpath --version) >/dev/null 2>/dev/null; then
  4236. CYGPATH_W='cygpath -w'
  4237. else
  4238. CYGPATH_W=echo
  4239. fi
  4240. fi
  4241. # Define the identity of the package.
  4242. PACKAGE='tcpreplay'
  4243. VERSION='4.5.2'
  4244. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  4245. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  4246. # Some tools Automake needs.
  4247. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4248. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4249. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4250. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4251. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4252. # For better backward compatibility. To be removed once Automake 1.9.x
  4253. # dies out for good. For more background, see:
  4254. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  4255. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  4256. mkdir_p='$(MKDIR_P)'
  4257. # We need awk for the "check" target (and possibly the TAP driver). The
  4258. # system "awk" is bad on some platforms.
  4259. # Always define AMTAR for backward compatibility. Yes, it's still used
  4260. # in the wild :-( We should find a proper way to deprecate it ...
  4261. AMTAR='$${TAR-tar}'
  4262. # We'll loop over all known methods to create a tar archive until one works.
  4263. _am_tools='gnutar pax cpio none'
  4264. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  4265. # Variables for tags utilities; see am/tags.am
  4266. if test -z "$CTAGS"; then
  4267. CTAGS=ctags
  4268. fi
  4269. if test -z "$ETAGS"; then
  4270. ETAGS=etags
  4271. fi
  4272. if test -z "$CSCOPE"; then
  4273. CSCOPE=cscope
  4274. fi
  4275. AM_DEFAULT_VERBOSITY=0
  4276. DEPDIR="${am__leading_dot}deps"
  4277. ac_config_commands="$ac_config_commands depfiles"
  4278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  4279. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  4280. cat > confinc.mk << 'END'
  4281. am__doit:
  4282. @echo this is the am__doit target >confinc.out
  4283. .PHONY: am__doit
  4284. END
  4285. am__include="#"
  4286. am__quote=
  4287. # BSD make does it like this.
  4288. echo '.include "confinc.mk" # ignored' > confmf.BSD
  4289. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  4290. echo 'include confinc.mk # ignored' > confmf.GNU
  4291. _am_result=no
  4292. for s in GNU BSD; do
  4293. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  4294. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  4295. ac_status=$?
  4296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4297. (exit $ac_status); }
  4298. case $?:`cat confinc.out 2>/dev/null` in #(
  4299. '0:this is the am__doit target') :
  4300. case $s in #(
  4301. BSD) :
  4302. am__include='.include' am__quote='"' ;; #(
  4303. *) :
  4304. am__include='include' am__quote='' ;;
  4305. esac ;; #(
  4306. *) :
  4307. ;;
  4308. esac
  4309. if test "$am__include" != "#"; then
  4310. _am_result="yes ($s style)"
  4311. break
  4312. fi
  4313. done
  4314. rm -f confinc.* confmf.*
  4315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  4316. printf "%s\n" "${_am_result}" >&6; }
  4317. # Check whether --enable-dependency-tracking was given.
  4318. if test ${enable_dependency_tracking+y}
  4319. then :
  4320. enableval=$enable_dependency_tracking;
  4321. fi
  4322. if test "x$enable_dependency_tracking" != xno; then
  4323. am_depcomp="$ac_aux_dir/depcomp"
  4324. AMDEPBACKSLASH='\'
  4325. am__nodep='_no'
  4326. fi
  4327. if test "x$enable_dependency_tracking" != xno; then
  4328. AMDEP_TRUE=
  4329. AMDEP_FALSE='#'
  4330. else
  4331. AMDEP_TRUE='#'
  4332. AMDEP_FALSE=
  4333. fi
  4334. ac_ext=c
  4335. ac_cpp='$CPP $CPPFLAGS'
  4336. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4337. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4338. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4339. if test -n "$ac_tool_prefix"; then
  4340. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4341. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4343. printf %s "checking for $ac_word... " >&6; }
  4344. if test ${ac_cv_prog_CC+y}
  4345. then :
  4346. printf %s "(cached) " >&6
  4347. else case e in #(
  4348. e) if test -n "$CC"; then
  4349. ac_cv_prog_CC="$CC" # Let the user override the test.
  4350. else
  4351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4352. for as_dir in $PATH
  4353. do
  4354. IFS=$as_save_IFS
  4355. case $as_dir in #(((
  4356. '') as_dir=./ ;;
  4357. */) ;;
  4358. *) as_dir=$as_dir/ ;;
  4359. esac
  4360. for ac_exec_ext in '' $ac_executable_extensions; do
  4361. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4362. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4363. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4364. break 2
  4365. fi
  4366. done
  4367. done
  4368. IFS=$as_save_IFS
  4369. fi ;;
  4370. esac
  4371. fi
  4372. CC=$ac_cv_prog_CC
  4373. if test -n "$CC"; then
  4374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4375. printf "%s\n" "$CC" >&6; }
  4376. else
  4377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4378. printf "%s\n" "no" >&6; }
  4379. fi
  4380. fi
  4381. if test -z "$ac_cv_prog_CC"; then
  4382. ac_ct_CC=$CC
  4383. # Extract the first word of "gcc", so it can be a program name with args.
  4384. set dummy gcc; ac_word=$2
  4385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4386. printf %s "checking for $ac_word... " >&6; }
  4387. if test ${ac_cv_prog_ac_ct_CC+y}
  4388. then :
  4389. printf %s "(cached) " >&6
  4390. else case e in #(
  4391. e) if test -n "$ac_ct_CC"; then
  4392. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4393. else
  4394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4395. for as_dir in $PATH
  4396. do
  4397. IFS=$as_save_IFS
  4398. case $as_dir in #(((
  4399. '') as_dir=./ ;;
  4400. */) ;;
  4401. *) as_dir=$as_dir/ ;;
  4402. esac
  4403. for ac_exec_ext in '' $ac_executable_extensions; do
  4404. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4405. ac_cv_prog_ac_ct_CC="gcc"
  4406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4407. break 2
  4408. fi
  4409. done
  4410. done
  4411. IFS=$as_save_IFS
  4412. fi ;;
  4413. esac
  4414. fi
  4415. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4416. if test -n "$ac_ct_CC"; then
  4417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4418. printf "%s\n" "$ac_ct_CC" >&6; }
  4419. else
  4420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4421. printf "%s\n" "no" >&6; }
  4422. fi
  4423. if test "x$ac_ct_CC" = x; then
  4424. CC=""
  4425. else
  4426. case $cross_compiling:$ac_tool_warned in
  4427. yes:)
  4428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4429. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4430. ac_tool_warned=yes ;;
  4431. esac
  4432. CC=$ac_ct_CC
  4433. fi
  4434. else
  4435. CC="$ac_cv_prog_CC"
  4436. fi
  4437. if test -z "$CC"; then
  4438. if test -n "$ac_tool_prefix"; then
  4439. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4440. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4442. printf %s "checking for $ac_word... " >&6; }
  4443. if test ${ac_cv_prog_CC+y}
  4444. then :
  4445. printf %s "(cached) " >&6
  4446. else case e in #(
  4447. e) if test -n "$CC"; then
  4448. ac_cv_prog_CC="$CC" # Let the user override the test.
  4449. else
  4450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4451. for as_dir in $PATH
  4452. do
  4453. IFS=$as_save_IFS
  4454. case $as_dir in #(((
  4455. '') as_dir=./ ;;
  4456. */) ;;
  4457. *) as_dir=$as_dir/ ;;
  4458. esac
  4459. for ac_exec_ext in '' $ac_executable_extensions; do
  4460. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4461. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4462. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4463. break 2
  4464. fi
  4465. done
  4466. done
  4467. IFS=$as_save_IFS
  4468. fi ;;
  4469. esac
  4470. fi
  4471. CC=$ac_cv_prog_CC
  4472. if test -n "$CC"; then
  4473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4474. printf "%s\n" "$CC" >&6; }
  4475. else
  4476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4477. printf "%s\n" "no" >&6; }
  4478. fi
  4479. fi
  4480. fi
  4481. if test -z "$CC"; then
  4482. # Extract the first word of "cc", so it can be a program name with args.
  4483. set dummy cc; ac_word=$2
  4484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4485. printf %s "checking for $ac_word... " >&6; }
  4486. if test ${ac_cv_prog_CC+y}
  4487. then :
  4488. printf %s "(cached) " >&6
  4489. else case e in #(
  4490. e) if test -n "$CC"; then
  4491. ac_cv_prog_CC="$CC" # Let the user override the test.
  4492. else
  4493. ac_prog_rejected=no
  4494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4495. for as_dir in $PATH
  4496. do
  4497. IFS=$as_save_IFS
  4498. case $as_dir in #(((
  4499. '') as_dir=./ ;;
  4500. */) ;;
  4501. *) as_dir=$as_dir/ ;;
  4502. esac
  4503. for ac_exec_ext in '' $ac_executable_extensions; do
  4504. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4505. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4506. ac_prog_rejected=yes
  4507. continue
  4508. fi
  4509. ac_cv_prog_CC="cc"
  4510. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4511. break 2
  4512. fi
  4513. done
  4514. done
  4515. IFS=$as_save_IFS
  4516. if test $ac_prog_rejected = yes; then
  4517. # We found a bogon in the path, so make sure we never use it.
  4518. set dummy $ac_cv_prog_CC
  4519. shift
  4520. if test $# != 0; then
  4521. # We chose a different compiler from the bogus one.
  4522. # However, it has the same basename, so the bogon will be chosen
  4523. # first if we set CC to just the basename; use the full file name.
  4524. shift
  4525. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  4526. fi
  4527. fi
  4528. fi ;;
  4529. esac
  4530. fi
  4531. CC=$ac_cv_prog_CC
  4532. if test -n "$CC"; then
  4533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4534. printf "%s\n" "$CC" >&6; }
  4535. else
  4536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4537. printf "%s\n" "no" >&6; }
  4538. fi
  4539. fi
  4540. if test -z "$CC"; then
  4541. if test -n "$ac_tool_prefix"; then
  4542. for ac_prog in cl.exe
  4543. do
  4544. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4545. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4547. printf %s "checking for $ac_word... " >&6; }
  4548. if test ${ac_cv_prog_CC+y}
  4549. then :
  4550. printf %s "(cached) " >&6
  4551. else case e in #(
  4552. e) if test -n "$CC"; then
  4553. ac_cv_prog_CC="$CC" # Let the user override the test.
  4554. else
  4555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4556. for as_dir in $PATH
  4557. do
  4558. IFS=$as_save_IFS
  4559. case $as_dir in #(((
  4560. '') as_dir=./ ;;
  4561. */) ;;
  4562. *) as_dir=$as_dir/ ;;
  4563. esac
  4564. for ac_exec_ext in '' $ac_executable_extensions; do
  4565. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4566. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4567. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4568. break 2
  4569. fi
  4570. done
  4571. done
  4572. IFS=$as_save_IFS
  4573. fi ;;
  4574. esac
  4575. fi
  4576. CC=$ac_cv_prog_CC
  4577. if test -n "$CC"; then
  4578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4579. printf "%s\n" "$CC" >&6; }
  4580. else
  4581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4582. printf "%s\n" "no" >&6; }
  4583. fi
  4584. test -n "$CC" && break
  4585. done
  4586. fi
  4587. if test -z "$CC"; then
  4588. ac_ct_CC=$CC
  4589. for ac_prog in cl.exe
  4590. do
  4591. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4592. set dummy $ac_prog; ac_word=$2
  4593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4594. printf %s "checking for $ac_word... " >&6; }
  4595. if test ${ac_cv_prog_ac_ct_CC+y}
  4596. then :
  4597. printf %s "(cached) " >&6
  4598. else case e in #(
  4599. e) if test -n "$ac_ct_CC"; then
  4600. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4601. else
  4602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. case $as_dir in #(((
  4607. '') as_dir=./ ;;
  4608. */) ;;
  4609. *) as_dir=$as_dir/ ;;
  4610. esac
  4611. for ac_exec_ext in '' $ac_executable_extensions; do
  4612. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4613. ac_cv_prog_ac_ct_CC="$ac_prog"
  4614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4615. break 2
  4616. fi
  4617. done
  4618. done
  4619. IFS=$as_save_IFS
  4620. fi ;;
  4621. esac
  4622. fi
  4623. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4624. if test -n "$ac_ct_CC"; then
  4625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4626. printf "%s\n" "$ac_ct_CC" >&6; }
  4627. else
  4628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4629. printf "%s\n" "no" >&6; }
  4630. fi
  4631. test -n "$ac_ct_CC" && break
  4632. done
  4633. if test "x$ac_ct_CC" = x; then
  4634. CC=""
  4635. else
  4636. case $cross_compiling:$ac_tool_warned in
  4637. yes:)
  4638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4639. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4640. ac_tool_warned=yes ;;
  4641. esac
  4642. CC=$ac_ct_CC
  4643. fi
  4644. fi
  4645. fi
  4646. if test -z "$CC"; then
  4647. if test -n "$ac_tool_prefix"; then
  4648. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  4649. set dummy ${ac_tool_prefix}clang; ac_word=$2
  4650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4651. printf %s "checking for $ac_word... " >&6; }
  4652. if test ${ac_cv_prog_CC+y}
  4653. then :
  4654. printf %s "(cached) " >&6
  4655. else case e in #(
  4656. e) if test -n "$CC"; then
  4657. ac_cv_prog_CC="$CC" # Let the user override the test.
  4658. else
  4659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4660. for as_dir in $PATH
  4661. do
  4662. IFS=$as_save_IFS
  4663. case $as_dir in #(((
  4664. '') as_dir=./ ;;
  4665. */) ;;
  4666. *) as_dir=$as_dir/ ;;
  4667. esac
  4668. for ac_exec_ext in '' $ac_executable_extensions; do
  4669. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4670. ac_cv_prog_CC="${ac_tool_prefix}clang"
  4671. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4672. break 2
  4673. fi
  4674. done
  4675. done
  4676. IFS=$as_save_IFS
  4677. fi ;;
  4678. esac
  4679. fi
  4680. CC=$ac_cv_prog_CC
  4681. if test -n "$CC"; then
  4682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4683. printf "%s\n" "$CC" >&6; }
  4684. else
  4685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4686. printf "%s\n" "no" >&6; }
  4687. fi
  4688. fi
  4689. if test -z "$ac_cv_prog_CC"; then
  4690. ac_ct_CC=$CC
  4691. # Extract the first word of "clang", so it can be a program name with args.
  4692. set dummy clang; ac_word=$2
  4693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4694. printf %s "checking for $ac_word... " >&6; }
  4695. if test ${ac_cv_prog_ac_ct_CC+y}
  4696. then :
  4697. printf %s "(cached) " >&6
  4698. else case e in #(
  4699. e) if test -n "$ac_ct_CC"; then
  4700. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4701. else
  4702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4703. for as_dir in $PATH
  4704. do
  4705. IFS=$as_save_IFS
  4706. case $as_dir in #(((
  4707. '') as_dir=./ ;;
  4708. */) ;;
  4709. *) as_dir=$as_dir/ ;;
  4710. esac
  4711. for ac_exec_ext in '' $ac_executable_extensions; do
  4712. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4713. ac_cv_prog_ac_ct_CC="clang"
  4714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4715. break 2
  4716. fi
  4717. done
  4718. done
  4719. IFS=$as_save_IFS
  4720. fi ;;
  4721. esac
  4722. fi
  4723. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4724. if test -n "$ac_ct_CC"; then
  4725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4726. printf "%s\n" "$ac_ct_CC" >&6; }
  4727. else
  4728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4729. printf "%s\n" "no" >&6; }
  4730. fi
  4731. if test "x$ac_ct_CC" = x; then
  4732. CC=""
  4733. else
  4734. case $cross_compiling:$ac_tool_warned in
  4735. yes:)
  4736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4737. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4738. ac_tool_warned=yes ;;
  4739. esac
  4740. CC=$ac_ct_CC
  4741. fi
  4742. else
  4743. CC="$ac_cv_prog_CC"
  4744. fi
  4745. fi
  4746. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4747. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4748. as_fn_error $? "no acceptable C compiler found in \$PATH
  4749. See 'config.log' for more details" "$LINENO" 5; }
  4750. # Provide some information about the compiler.
  4751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4752. set X $ac_compile
  4753. ac_compiler=$2
  4754. for ac_option in --version -v -V -qversion -version; do
  4755. { { ac_try="$ac_compiler $ac_option >&5"
  4756. case "(($ac_try" in
  4757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4758. *) ac_try_echo=$ac_try;;
  4759. esac
  4760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4761. printf "%s\n" "$ac_try_echo"; } >&5
  4762. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4763. ac_status=$?
  4764. if test -s conftest.err; then
  4765. sed '10a\
  4766. ... rest of stderr output deleted ...
  4767. 10q' conftest.err >conftest.er1
  4768. cat conftest.er1 >&5
  4769. fi
  4770. rm -f conftest.er1 conftest.err
  4771. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4772. test $ac_status = 0; }
  4773. done
  4774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4775. /* end confdefs.h. */
  4776. int
  4777. main (void)
  4778. {
  4779. ;
  4780. return 0;
  4781. }
  4782. _ACEOF
  4783. ac_clean_files_save=$ac_clean_files
  4784. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4785. # Try to create an executable without -o first, disregard a.out.
  4786. # It will help us diagnose broken compilers, and finding out an intuition
  4787. # of exeext.
  4788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4789. printf %s "checking whether the C compiler works... " >&6; }
  4790. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4791. # The possible output files:
  4792. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4793. ac_rmfiles=
  4794. for ac_file in $ac_files
  4795. do
  4796. case $ac_file in
  4797. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4798. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4799. esac
  4800. done
  4801. rm -f $ac_rmfiles
  4802. if { { ac_try="$ac_link_default"
  4803. case "(($ac_try" in
  4804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4805. *) ac_try_echo=$ac_try;;
  4806. esac
  4807. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4808. printf "%s\n" "$ac_try_echo"; } >&5
  4809. (eval "$ac_link_default") 2>&5
  4810. ac_status=$?
  4811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4812. test $ac_status = 0; }
  4813. then :
  4814. # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
  4815. # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
  4816. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4817. # so that the user can short-circuit this test for compilers unknown to
  4818. # Autoconf.
  4819. for ac_file in $ac_files ''
  4820. do
  4821. test -f "$ac_file" || continue
  4822. case $ac_file in
  4823. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4824. ;;
  4825. [ab].out )
  4826. # We found the default executable, but exeext='' is most
  4827. # certainly right.
  4828. break;;
  4829. *.* )
  4830. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  4831. then :; else
  4832. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4833. fi
  4834. # We set ac_cv_exeext here because the later test for it is not
  4835. # safe: cross compilers may not add the suffix if given an '-o'
  4836. # argument, so we may need to know it at that point already.
  4837. # Even if this section looks crufty: it has the advantage of
  4838. # actually working.
  4839. break;;
  4840. * )
  4841. break;;
  4842. esac
  4843. done
  4844. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4845. else case e in #(
  4846. e) ac_file='' ;;
  4847. esac
  4848. fi
  4849. if test -z "$ac_file"
  4850. then :
  4851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4852. printf "%s\n" "no" >&6; }
  4853. printf "%s\n" "$as_me: failed program was:" >&5
  4854. sed 's/^/| /' conftest.$ac_ext >&5
  4855. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4856. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4857. as_fn_error 77 "C compiler cannot create executables
  4858. See 'config.log' for more details" "$LINENO" 5; }
  4859. else case e in #(
  4860. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4861. printf "%s\n" "yes" >&6; } ;;
  4862. esac
  4863. fi
  4864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4865. printf %s "checking for C compiler default output file name... " >&6; }
  4866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4867. printf "%s\n" "$ac_file" >&6; }
  4868. ac_exeext=$ac_cv_exeext
  4869. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4870. ac_clean_files=$ac_clean_files_save
  4871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4872. printf %s "checking for suffix of executables... " >&6; }
  4873. if { { ac_try="$ac_link"
  4874. case "(($ac_try" in
  4875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4876. *) ac_try_echo=$ac_try;;
  4877. esac
  4878. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4879. printf "%s\n" "$ac_try_echo"; } >&5
  4880. (eval "$ac_link") 2>&5
  4881. ac_status=$?
  4882. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4883. test $ac_status = 0; }
  4884. then :
  4885. # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
  4886. # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
  4887. # work properly (i.e., refer to 'conftest.exe'), while it won't with
  4888. # 'rm'.
  4889. for ac_file in conftest.exe conftest conftest.*; do
  4890. test -f "$ac_file" || continue
  4891. case $ac_file in
  4892. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4893. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4894. break;;
  4895. * ) break;;
  4896. esac
  4897. done
  4898. else case e in #(
  4899. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4900. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4901. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4902. See 'config.log' for more details" "$LINENO" 5; } ;;
  4903. esac
  4904. fi
  4905. rm -f conftest conftest$ac_cv_exeext
  4906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4907. printf "%s\n" "$ac_cv_exeext" >&6; }
  4908. rm -f conftest.$ac_ext
  4909. EXEEXT=$ac_cv_exeext
  4910. ac_exeext=$EXEEXT
  4911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4912. /* end confdefs.h. */
  4913. #include <stdio.h>
  4914. int
  4915. main (void)
  4916. {
  4917. FILE *f = fopen ("conftest.out", "w");
  4918. if (!f)
  4919. return 1;
  4920. return ferror (f) || fclose (f) != 0;
  4921. ;
  4922. return 0;
  4923. }
  4924. _ACEOF
  4925. ac_clean_files="$ac_clean_files conftest.out"
  4926. # Check that the compiler produces executables we can run. If not, either
  4927. # the compiler is broken, or we cross compile.
  4928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4929. printf %s "checking whether we are cross compiling... " >&6; }
  4930. if test "$cross_compiling" != yes; then
  4931. { { ac_try="$ac_link"
  4932. case "(($ac_try" in
  4933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4934. *) ac_try_echo=$ac_try;;
  4935. esac
  4936. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4937. printf "%s\n" "$ac_try_echo"; } >&5
  4938. (eval "$ac_link") 2>&5
  4939. ac_status=$?
  4940. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4941. test $ac_status = 0; }
  4942. if { ac_try='./conftest$ac_cv_exeext'
  4943. { { case "(($ac_try" in
  4944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4945. *) ac_try_echo=$ac_try;;
  4946. esac
  4947. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4948. printf "%s\n" "$ac_try_echo"; } >&5
  4949. (eval "$ac_try") 2>&5
  4950. ac_status=$?
  4951. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4952. test $ac_status = 0; }; }; then
  4953. cross_compiling=no
  4954. else
  4955. if test "$cross_compiling" = maybe; then
  4956. cross_compiling=yes
  4957. else
  4958. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  4959. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  4960. as_fn_error 77 "cannot run C compiled programs.
  4961. If you meant to cross compile, use '--host'.
  4962. See 'config.log' for more details" "$LINENO" 5; }
  4963. fi
  4964. fi
  4965. fi
  4966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4967. printf "%s\n" "$cross_compiling" >&6; }
  4968. rm -f conftest.$ac_ext conftest$ac_cv_exeext \
  4969. conftest.o conftest.obj conftest.out
  4970. ac_clean_files=$ac_clean_files_save
  4971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4972. printf %s "checking for suffix of object files... " >&6; }
  4973. if test ${ac_cv_objext+y}
  4974. then :
  4975. printf %s "(cached) " >&6
  4976. else case e in #(
  4977. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4978. /* end confdefs.h. */
  4979. int
  4980. main (void)
  4981. {
  4982. ;
  4983. return 0;
  4984. }
  4985. _ACEOF
  4986. rm -f conftest.o conftest.obj
  4987. if { { ac_try="$ac_compile"
  4988. case "(($ac_try" in
  4989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4990. *) ac_try_echo=$ac_try;;
  4991. esac
  4992. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4993. printf "%s\n" "$ac_try_echo"; } >&5
  4994. (eval "$ac_compile") 2>&5
  4995. ac_status=$?
  4996. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4997. test $ac_status = 0; }
  4998. then :
  4999. for ac_file in conftest.o conftest.obj conftest.*; do
  5000. test -f "$ac_file" || continue;
  5001. case $ac_file in
  5002. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  5003. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  5004. break;;
  5005. esac
  5006. done
  5007. else case e in #(
  5008. e) printf "%s\n" "$as_me: failed program was:" >&5
  5009. sed 's/^/| /' conftest.$ac_ext >&5
  5010. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  5011. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  5012. as_fn_error $? "cannot compute suffix of object files: cannot compile
  5013. See 'config.log' for more details" "$LINENO" 5; } ;;
  5014. esac
  5015. fi
  5016. rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
  5017. esac
  5018. fi
  5019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  5020. printf "%s\n" "$ac_cv_objext" >&6; }
  5021. OBJEXT=$ac_cv_objext
  5022. ac_objext=$OBJEXT
  5023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  5024. printf %s "checking whether the compiler supports GNU C... " >&6; }
  5025. if test ${ac_cv_c_compiler_gnu+y}
  5026. then :
  5027. printf %s "(cached) " >&6
  5028. else case e in #(
  5029. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5030. /* end confdefs.h. */
  5031. int
  5032. main (void)
  5033. {
  5034. #ifndef __GNUC__
  5035. choke me
  5036. #endif
  5037. ;
  5038. return 0;
  5039. }
  5040. _ACEOF
  5041. if ac_fn_c_try_compile "$LINENO"
  5042. then :
  5043. ac_compiler_gnu=yes
  5044. else case e in #(
  5045. e) ac_compiler_gnu=no ;;
  5046. esac
  5047. fi
  5048. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5049. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5050. ;;
  5051. esac
  5052. fi
  5053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5054. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  5055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5056. if test $ac_compiler_gnu = yes; then
  5057. GCC=yes
  5058. else
  5059. GCC=
  5060. fi
  5061. ac_test_CFLAGS=${CFLAGS+y}
  5062. ac_save_CFLAGS=$CFLAGS
  5063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5064. printf %s "checking whether $CC accepts -g... " >&6; }
  5065. if test ${ac_cv_prog_cc_g+y}
  5066. then :
  5067. printf %s "(cached) " >&6
  5068. else case e in #(
  5069. e) ac_save_c_werror_flag=$ac_c_werror_flag
  5070. ac_c_werror_flag=yes
  5071. ac_cv_prog_cc_g=no
  5072. CFLAGS="-g"
  5073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5074. /* end confdefs.h. */
  5075. int
  5076. main (void)
  5077. {
  5078. ;
  5079. return 0;
  5080. }
  5081. _ACEOF
  5082. if ac_fn_c_try_compile "$LINENO"
  5083. then :
  5084. ac_cv_prog_cc_g=yes
  5085. else case e in #(
  5086. e) CFLAGS=""
  5087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5088. /* end confdefs.h. */
  5089. int
  5090. main (void)
  5091. {
  5092. ;
  5093. return 0;
  5094. }
  5095. _ACEOF
  5096. if ac_fn_c_try_compile "$LINENO"
  5097. then :
  5098. else case e in #(
  5099. e) ac_c_werror_flag=$ac_save_c_werror_flag
  5100. CFLAGS="-g"
  5101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5102. /* end confdefs.h. */
  5103. int
  5104. main (void)
  5105. {
  5106. ;
  5107. return 0;
  5108. }
  5109. _ACEOF
  5110. if ac_fn_c_try_compile "$LINENO"
  5111. then :
  5112. ac_cv_prog_cc_g=yes
  5113. fi
  5114. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  5115. esac
  5116. fi
  5117. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  5118. esac
  5119. fi
  5120. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5121. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  5122. esac
  5123. fi
  5124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5125. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  5126. if test $ac_test_CFLAGS; then
  5127. CFLAGS=$ac_save_CFLAGS
  5128. elif test $ac_cv_prog_cc_g = yes; then
  5129. if test "$GCC" = yes; then
  5130. CFLAGS="-g -O2"
  5131. else
  5132. CFLAGS="-g"
  5133. fi
  5134. else
  5135. if test "$GCC" = yes; then
  5136. CFLAGS="-O2"
  5137. else
  5138. CFLAGS=
  5139. fi
  5140. fi
  5141. ac_prog_cc_stdc=no
  5142. if test x$ac_prog_cc_stdc = xno
  5143. then :
  5144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  5145. printf %s "checking for $CC option to enable C11 features... " >&6; }
  5146. if test ${ac_cv_prog_cc_c11+y}
  5147. then :
  5148. printf %s "(cached) " >&6
  5149. else case e in #(
  5150. e) ac_cv_prog_cc_c11=no
  5151. ac_save_CC=$CC
  5152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5153. /* end confdefs.h. */
  5154. $ac_c_conftest_c11_program
  5155. _ACEOF
  5156. for ac_arg in '' -std=gnu11
  5157. do
  5158. CC="$ac_save_CC $ac_arg"
  5159. if ac_fn_c_try_compile "$LINENO"
  5160. then :
  5161. ac_cv_prog_cc_c11=$ac_arg
  5162. fi
  5163. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5164. test "x$ac_cv_prog_cc_c11" != "xno" && break
  5165. done
  5166. rm -f conftest.$ac_ext
  5167. CC=$ac_save_CC ;;
  5168. esac
  5169. fi
  5170. if test "x$ac_cv_prog_cc_c11" = xno
  5171. then :
  5172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5173. printf "%s\n" "unsupported" >&6; }
  5174. else case e in #(
  5175. e) if test "x$ac_cv_prog_cc_c11" = x
  5176. then :
  5177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5178. printf "%s\n" "none needed" >&6; }
  5179. else case e in #(
  5180. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  5181. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  5182. CC="$CC $ac_cv_prog_cc_c11" ;;
  5183. esac
  5184. fi
  5185. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  5186. ac_prog_cc_stdc=c11 ;;
  5187. esac
  5188. fi
  5189. fi
  5190. if test x$ac_prog_cc_stdc = xno
  5191. then :
  5192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  5193. printf %s "checking for $CC option to enable C99 features... " >&6; }
  5194. if test ${ac_cv_prog_cc_c99+y}
  5195. then :
  5196. printf %s "(cached) " >&6
  5197. else case e in #(
  5198. e) ac_cv_prog_cc_c99=no
  5199. ac_save_CC=$CC
  5200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5201. /* end confdefs.h. */
  5202. $ac_c_conftest_c99_program
  5203. _ACEOF
  5204. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  5205. do
  5206. CC="$ac_save_CC $ac_arg"
  5207. if ac_fn_c_try_compile "$LINENO"
  5208. then :
  5209. ac_cv_prog_cc_c99=$ac_arg
  5210. fi
  5211. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5212. test "x$ac_cv_prog_cc_c99" != "xno" && break
  5213. done
  5214. rm -f conftest.$ac_ext
  5215. CC=$ac_save_CC ;;
  5216. esac
  5217. fi
  5218. if test "x$ac_cv_prog_cc_c99" = xno
  5219. then :
  5220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5221. printf "%s\n" "unsupported" >&6; }
  5222. else case e in #(
  5223. e) if test "x$ac_cv_prog_cc_c99" = x
  5224. then :
  5225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5226. printf "%s\n" "none needed" >&6; }
  5227. else case e in #(
  5228. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  5229. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  5230. CC="$CC $ac_cv_prog_cc_c99" ;;
  5231. esac
  5232. fi
  5233. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  5234. ac_prog_cc_stdc=c99 ;;
  5235. esac
  5236. fi
  5237. fi
  5238. if test x$ac_prog_cc_stdc = xno
  5239. then :
  5240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  5241. printf %s "checking for $CC option to enable C89 features... " >&6; }
  5242. if test ${ac_cv_prog_cc_c89+y}
  5243. then :
  5244. printf %s "(cached) " >&6
  5245. else case e in #(
  5246. e) ac_cv_prog_cc_c89=no
  5247. ac_save_CC=$CC
  5248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5249. /* end confdefs.h. */
  5250. $ac_c_conftest_c89_program
  5251. _ACEOF
  5252. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5253. do
  5254. CC="$ac_save_CC $ac_arg"
  5255. if ac_fn_c_try_compile "$LINENO"
  5256. then :
  5257. ac_cv_prog_cc_c89=$ac_arg
  5258. fi
  5259. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5260. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5261. done
  5262. rm -f conftest.$ac_ext
  5263. CC=$ac_save_CC ;;
  5264. esac
  5265. fi
  5266. if test "x$ac_cv_prog_cc_c89" = xno
  5267. then :
  5268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5269. printf "%s\n" "unsupported" >&6; }
  5270. else case e in #(
  5271. e) if test "x$ac_cv_prog_cc_c89" = x
  5272. then :
  5273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5274. printf "%s\n" "none needed" >&6; }
  5275. else case e in #(
  5276. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5277. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  5278. CC="$CC $ac_cv_prog_cc_c89" ;;
  5279. esac
  5280. fi
  5281. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  5282. ac_prog_cc_stdc=c89 ;;
  5283. esac
  5284. fi
  5285. fi
  5286. ac_ext=c
  5287. ac_cpp='$CPP $CPPFLAGS'
  5288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5291. ac_ext=c
  5292. ac_cpp='$CPP $CPPFLAGS'
  5293. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5294. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5295. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5297. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  5298. if test ${am_cv_prog_cc_c_o+y}
  5299. then :
  5300. printf %s "(cached) " >&6
  5301. else case e in #(
  5302. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5303. /* end confdefs.h. */
  5304. int
  5305. main (void)
  5306. {
  5307. ;
  5308. return 0;
  5309. }
  5310. _ACEOF
  5311. # Make sure it works both with $CC and with simple cc.
  5312. # Following AC_PROG_CC_C_O, we do the test twice because some
  5313. # compilers refuse to overwrite an existing .o file with -o,
  5314. # though they will create one.
  5315. am_cv_prog_cc_c_o=yes
  5316. for am_i in 1 2; do
  5317. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5318. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5319. ac_status=$?
  5320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5321. (exit $ac_status); } \
  5322. && test -f conftest2.$ac_objext; then
  5323. : OK
  5324. else
  5325. am_cv_prog_cc_c_o=no
  5326. break
  5327. fi
  5328. done
  5329. rm -f core conftest*
  5330. unset am_i ;;
  5331. esac
  5332. fi
  5333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5334. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  5335. if test "$am_cv_prog_cc_c_o" != yes; then
  5336. # Losing compiler, so override with the script.
  5337. # FIXME: It is wrong to rewrite CC.
  5338. # But if we don't then we get into trouble of one sort or another.
  5339. # A longer-term fix would be to have automake use am__CC in this case,
  5340. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5341. CC="$am_aux_dir/compile $CC"
  5342. fi
  5343. ac_ext=c
  5344. ac_cpp='$CPP $CPPFLAGS'
  5345. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5346. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5347. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5348. depcc="$CC" am_compiler_list=
  5349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5350. printf %s "checking dependency style of $depcc... " >&6; }
  5351. if test ${am_cv_CC_dependencies_compiler_type+y}
  5352. then :
  5353. printf %s "(cached) " >&6
  5354. else case e in #(
  5355. e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5356. # We make a subdir and do the tests there. Otherwise we can end up
  5357. # making bogus files that we don't know about and never remove. For
  5358. # instance it was reported that on HP-UX the gcc test will end up
  5359. # making a dummy file named 'D' -- because '-MD' means "put the output
  5360. # in D".
  5361. rm -rf conftest.dir
  5362. mkdir conftest.dir
  5363. # Copy depcomp to subdir because otherwise we won't find it if we're
  5364. # using a relative directory.
  5365. cp "$am_depcomp" conftest.dir
  5366. cd conftest.dir
  5367. # We will build objects and dependencies in a subdirectory because
  5368. # it helps to detect inapplicable dependency modes. For instance
  5369. # both Tru64's cc and ICC support -MD to output dependencies as a
  5370. # side effect of compilation, but ICC will put the dependencies in
  5371. # the current directory while Tru64 will put them in the object
  5372. # directory.
  5373. mkdir sub
  5374. am_cv_CC_dependencies_compiler_type=none
  5375. if test "$am_compiler_list" = ""; then
  5376. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5377. fi
  5378. am__universal=false
  5379. case " $depcc " in #(
  5380. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5381. esac
  5382. for depmode in $am_compiler_list; do
  5383. # Setup a source with many dependencies, because some compilers
  5384. # like to wrap large dependency lists on column 80 (with \), and
  5385. # we should not choose a depcomp mode which is confused by this.
  5386. #
  5387. # We need to recreate these files for each test, as the compiler may
  5388. # overwrite some of them when testing with obscure command lines.
  5389. # This happens at least with the AIX C compiler.
  5390. : > sub/conftest.c
  5391. for i in 1 2 3 4 5 6; do
  5392. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5393. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5394. # Solaris 10 /bin/sh.
  5395. echo '/* dummy */' > sub/conftst$i.h
  5396. done
  5397. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5398. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5399. # mode. It turns out that the SunPro C++ compiler does not properly
  5400. # handle '-M -o', and we need to detect this. Also, some Intel
  5401. # versions had trouble with output in subdirs.
  5402. am__obj=sub/conftest.${OBJEXT-o}
  5403. am__minus_obj="-o $am__obj"
  5404. case $depmode in
  5405. gcc)
  5406. # This depmode causes a compiler race in universal mode.
  5407. test "$am__universal" = false || continue
  5408. ;;
  5409. nosideeffect)
  5410. # After this tag, mechanisms are not by side-effect, so they'll
  5411. # only be used when explicitly requested.
  5412. if test "x$enable_dependency_tracking" = xyes; then
  5413. continue
  5414. else
  5415. break
  5416. fi
  5417. ;;
  5418. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5419. # This compiler won't grok '-c -o', but also, the minuso test has
  5420. # not run yet. These depmodes are late enough in the game, and
  5421. # so weak that their functioning should not be impacted.
  5422. am__obj=conftest.${OBJEXT-o}
  5423. am__minus_obj=
  5424. ;;
  5425. none) break ;;
  5426. esac
  5427. if depmode=$depmode \
  5428. source=sub/conftest.c object=$am__obj \
  5429. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5430. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5431. >/dev/null 2>conftest.err &&
  5432. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5433. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5434. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5435. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5436. # icc doesn't choke on unknown options, it will just issue warnings
  5437. # or remarks (even with -Werror). So we grep stderr for any message
  5438. # that says an option was ignored or not supported.
  5439. # When given -MP, icc 7.0 and 7.1 complain thus:
  5440. # icc: Command line warning: ignoring option '-M'; no argument required
  5441. # The diagnosis changed in icc 8.0:
  5442. # icc: Command line remark: option '-MP' not supported
  5443. if (grep 'ignoring option' conftest.err ||
  5444. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5445. am_cv_CC_dependencies_compiler_type=$depmode
  5446. break
  5447. fi
  5448. fi
  5449. done
  5450. cd ..
  5451. rm -rf conftest.dir
  5452. else
  5453. am_cv_CC_dependencies_compiler_type=none
  5454. fi
  5455. ;;
  5456. esac
  5457. fi
  5458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5459. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  5460. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5461. if
  5462. test "x$enable_dependency_tracking" != xno \
  5463. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5464. am__fastdepCC_TRUE=
  5465. am__fastdepCC_FALSE='#'
  5466. else
  5467. am__fastdepCC_TRUE='#'
  5468. am__fastdepCC_FALSE=
  5469. fi
  5470. if test -n "$ac_tool_prefix"; then
  5471. for ac_prog in ar lib "link -lib"
  5472. do
  5473. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5474. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5476. printf %s "checking for $ac_word... " >&6; }
  5477. if test ${ac_cv_prog_AR+y}
  5478. then :
  5479. printf %s "(cached) " >&6
  5480. else case e in #(
  5481. e) if test -n "$AR"; then
  5482. ac_cv_prog_AR="$AR" # Let the user override the test.
  5483. else
  5484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5485. for as_dir in $PATH
  5486. do
  5487. IFS=$as_save_IFS
  5488. case $as_dir in #(((
  5489. '') as_dir=./ ;;
  5490. */) ;;
  5491. *) as_dir=$as_dir/ ;;
  5492. esac
  5493. for ac_exec_ext in '' $ac_executable_extensions; do
  5494. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5495. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5496. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5497. break 2
  5498. fi
  5499. done
  5500. done
  5501. IFS=$as_save_IFS
  5502. fi ;;
  5503. esac
  5504. fi
  5505. AR=$ac_cv_prog_AR
  5506. if test -n "$AR"; then
  5507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5508. printf "%s\n" "$AR" >&6; }
  5509. else
  5510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5511. printf "%s\n" "no" >&6; }
  5512. fi
  5513. test -n "$AR" && break
  5514. done
  5515. fi
  5516. if test -z "$AR"; then
  5517. ac_ct_AR=$AR
  5518. for ac_prog in ar lib "link -lib"
  5519. do
  5520. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5521. set dummy $ac_prog; ac_word=$2
  5522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5523. printf %s "checking for $ac_word... " >&6; }
  5524. if test ${ac_cv_prog_ac_ct_AR+y}
  5525. then :
  5526. printf %s "(cached) " >&6
  5527. else case e in #(
  5528. e) if test -n "$ac_ct_AR"; then
  5529. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5530. else
  5531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5532. for as_dir in $PATH
  5533. do
  5534. IFS=$as_save_IFS
  5535. case $as_dir in #(((
  5536. '') as_dir=./ ;;
  5537. */) ;;
  5538. *) as_dir=$as_dir/ ;;
  5539. esac
  5540. for ac_exec_ext in '' $ac_executable_extensions; do
  5541. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5542. ac_cv_prog_ac_ct_AR="$ac_prog"
  5543. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5544. break 2
  5545. fi
  5546. done
  5547. done
  5548. IFS=$as_save_IFS
  5549. fi ;;
  5550. esac
  5551. fi
  5552. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5553. if test -n "$ac_ct_AR"; then
  5554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5555. printf "%s\n" "$ac_ct_AR" >&6; }
  5556. else
  5557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5558. printf "%s\n" "no" >&6; }
  5559. fi
  5560. test -n "$ac_ct_AR" && break
  5561. done
  5562. if test "x$ac_ct_AR" = x; then
  5563. AR="false"
  5564. else
  5565. case $cross_compiling:$ac_tool_warned in
  5566. yes:)
  5567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5568. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5569. ac_tool_warned=yes ;;
  5570. esac
  5571. AR=$ac_ct_AR
  5572. fi
  5573. fi
  5574. : ${AR=ar}
  5575. : ${ARFLAGS=cr}
  5576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  5577. printf %s "checking the archiver ($AR) interface... " >&6; }
  5578. if test ${am_cv_ar_interface+y}
  5579. then :
  5580. printf %s "(cached) " >&6
  5581. else case e in #(
  5582. e) ac_ext=c
  5583. ac_cpp='$CPP $CPPFLAGS'
  5584. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5585. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5586. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5587. am_cv_ar_interface=ar
  5588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5589. /* end confdefs.h. */
  5590. int some_variable = 0;
  5591. _ACEOF
  5592. if ac_fn_c_try_compile "$LINENO"
  5593. then :
  5594. am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
  5595. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5596. (eval $am_ar_try) 2>&5
  5597. ac_status=$?
  5598. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5599. test $ac_status = 0; }
  5600. if test "$ac_status" -eq 0; then
  5601. am_cv_ar_interface=ar
  5602. else
  5603. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  5604. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5605. (eval $am_ar_try) 2>&5
  5606. ac_status=$?
  5607. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5608. test $ac_status = 0; }
  5609. if test "$ac_status" -eq 0; then
  5610. am_cv_ar_interface=lib
  5611. else
  5612. am_cv_ar_interface=unknown
  5613. fi
  5614. fi
  5615. rm -f conftest.lib libconftest.a
  5616. fi
  5617. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5618. ac_ext=c
  5619. ac_cpp='$CPP $CPPFLAGS'
  5620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5623. ;;
  5624. esac
  5625. fi
  5626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  5627. printf "%s\n" "$am_cv_ar_interface" >&6; }
  5628. case $am_cv_ar_interface in
  5629. ar)
  5630. ;;
  5631. lib)
  5632. # Microsoft lib, so override with the ar-lib wrapper script.
  5633. # FIXME: It is wrong to rewrite AR.
  5634. # But if we don't then we get into trouble of one sort or another.
  5635. # A longer-term fix would be to have automake use am__AR in this case,
  5636. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  5637. # similar.
  5638. AR="$am_aux_dir/ar-lib $AR"
  5639. ;;
  5640. unknown)
  5641. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  5642. ;;
  5643. esac
  5644. case `pwd` in
  5645. *\ * | *\ *)
  5646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5647. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5648. esac
  5649. macro_version='2.5.4'
  5650. macro_revision='2.5.4'
  5651. ltmain=$ac_aux_dir/ltmain.sh
  5652. # Backslashify metacharacters that are still active within
  5653. # double-quoted strings.
  5654. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5655. # Same as above, but do not quote variable references.
  5656. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5657. # Sed substitution to delay expansion of an escaped shell variable in a
  5658. # double_quote_subst'ed string.
  5659. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5660. # Sed substitution to delay expansion of an escaped single quote.
  5661. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5662. # Sed substitution to avoid accidental globbing in evaled expressions
  5663. no_glob_subst='s/\*/\\\*/g'
  5664. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5665. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5666. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5668. printf %s "checking how to print strings... " >&6; }
  5669. # Test print first, because it will be a builtin if present.
  5670. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5671. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5672. ECHO='print -r --'
  5673. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5674. ECHO='printf %s\n'
  5675. else
  5676. # Use this function as a fallback that always works.
  5677. func_fallback_echo ()
  5678. {
  5679. eval 'cat <<_LTECHO_EOF
  5680. $1
  5681. _LTECHO_EOF'
  5682. }
  5683. ECHO='func_fallback_echo'
  5684. fi
  5685. # func_echo_all arg...
  5686. # Invoke $ECHO with all args, space-separated.
  5687. func_echo_all ()
  5688. {
  5689. $ECHO ""
  5690. }
  5691. case $ECHO in
  5692. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5693. printf "%s\n" "printf" >&6; } ;;
  5694. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5695. printf "%s\n" "print -r" >&6; } ;;
  5696. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5697. printf "%s\n" "cat" >&6; } ;;
  5698. esac
  5699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5700. printf %s "checking for a sed that does not truncate output... " >&6; }
  5701. if test ${ac_cv_path_SED+y}
  5702. then :
  5703. printf %s "(cached) " >&6
  5704. else case e in #(
  5705. e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5706. for ac_i in 1 2 3 4 5 6 7; do
  5707. ac_script="$ac_script$as_nl$ac_script"
  5708. done
  5709. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5710. { ac_script=; unset ac_script;}
  5711. if test -z "$SED"; then
  5712. ac_path_SED_found=false
  5713. # Loop through the user's path and test for each of PROGNAME-LIST
  5714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5715. for as_dir in $PATH
  5716. do
  5717. IFS=$as_save_IFS
  5718. case $as_dir in #(((
  5719. '') as_dir=./ ;;
  5720. */) ;;
  5721. *) as_dir=$as_dir/ ;;
  5722. esac
  5723. for ac_prog in sed gsed
  5724. do
  5725. for ac_exec_ext in '' $ac_executable_extensions; do
  5726. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5727. as_fn_executable_p "$ac_path_SED" || continue
  5728. # Check for GNU ac_path_SED and select it if it is found.
  5729. # Check for GNU $ac_path_SED
  5730. case `"$ac_path_SED" --version 2>&1` in #(
  5731. *GNU*)
  5732. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5733. #(
  5734. *)
  5735. ac_count=0
  5736. printf %s 0123456789 >"conftest.in"
  5737. while :
  5738. do
  5739. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5740. mv "conftest.tmp" "conftest.in"
  5741. cp "conftest.in" "conftest.nl"
  5742. printf "%s\n" '' >> "conftest.nl"
  5743. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5744. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5745. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5746. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5747. # Best one so far, save it but keep looking for a better one
  5748. ac_cv_path_SED="$ac_path_SED"
  5749. ac_path_SED_max=$ac_count
  5750. fi
  5751. # 10*(2^10) chars as input seems more than enough
  5752. test $ac_count -gt 10 && break
  5753. done
  5754. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5755. esac
  5756. $ac_path_SED_found && break 3
  5757. done
  5758. done
  5759. done
  5760. IFS=$as_save_IFS
  5761. if test -z "$ac_cv_path_SED"; then
  5762. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5763. fi
  5764. else
  5765. ac_cv_path_SED=$SED
  5766. fi
  5767. ;;
  5768. esac
  5769. fi
  5770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5771. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5772. SED="$ac_cv_path_SED"
  5773. rm -f conftest.sed
  5774. test -z "$SED" && SED=sed
  5775. Xsed="$SED -e 1s/^X//"
  5776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5777. printf %s "checking for grep that handles long lines and -e... " >&6; }
  5778. if test ${ac_cv_path_GREP+y}
  5779. then :
  5780. printf %s "(cached) " >&6
  5781. else case e in #(
  5782. e) if test -z "$GREP"; then
  5783. ac_path_GREP_found=false
  5784. # Loop through the user's path and test for each of PROGNAME-LIST
  5785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5786. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5787. do
  5788. IFS=$as_save_IFS
  5789. case $as_dir in #(((
  5790. '') as_dir=./ ;;
  5791. */) ;;
  5792. *) as_dir=$as_dir/ ;;
  5793. esac
  5794. for ac_prog in grep ggrep
  5795. do
  5796. for ac_exec_ext in '' $ac_executable_extensions; do
  5797. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  5798. as_fn_executable_p "$ac_path_GREP" || continue
  5799. # Check for GNU ac_path_GREP and select it if it is found.
  5800. # Check for GNU $ac_path_GREP
  5801. case `"$ac_path_GREP" --version 2>&1` in #(
  5802. *GNU*)
  5803. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5804. #(
  5805. *)
  5806. ac_count=0
  5807. printf %s 0123456789 >"conftest.in"
  5808. while :
  5809. do
  5810. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5811. mv "conftest.tmp" "conftest.in"
  5812. cp "conftest.in" "conftest.nl"
  5813. printf "%s\n" 'GREP' >> "conftest.nl"
  5814. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5815. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5816. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5817. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5818. # Best one so far, save it but keep looking for a better one
  5819. ac_cv_path_GREP="$ac_path_GREP"
  5820. ac_path_GREP_max=$ac_count
  5821. fi
  5822. # 10*(2^10) chars as input seems more than enough
  5823. test $ac_count -gt 10 && break
  5824. done
  5825. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5826. esac
  5827. $ac_path_GREP_found && break 3
  5828. done
  5829. done
  5830. done
  5831. IFS=$as_save_IFS
  5832. if test -z "$ac_cv_path_GREP"; then
  5833. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5834. fi
  5835. else
  5836. ac_cv_path_GREP=$GREP
  5837. fi
  5838. ;;
  5839. esac
  5840. fi
  5841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5842. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  5843. GREP="$ac_cv_path_GREP"
  5844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5845. printf %s "checking for egrep... " >&6; }
  5846. if test ${ac_cv_path_EGREP+y}
  5847. then :
  5848. printf %s "(cached) " >&6
  5849. else case e in #(
  5850. e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5851. then ac_cv_path_EGREP="$GREP -E"
  5852. else
  5853. if test -z "$EGREP"; then
  5854. ac_path_EGREP_found=false
  5855. # Loop through the user's path and test for each of PROGNAME-LIST
  5856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5857. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5858. do
  5859. IFS=$as_save_IFS
  5860. case $as_dir in #(((
  5861. '') as_dir=./ ;;
  5862. */) ;;
  5863. *) as_dir=$as_dir/ ;;
  5864. esac
  5865. for ac_prog in egrep
  5866. do
  5867. for ac_exec_ext in '' $ac_executable_extensions; do
  5868. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  5869. as_fn_executable_p "$ac_path_EGREP" || continue
  5870. # Check for GNU ac_path_EGREP and select it if it is found.
  5871. # Check for GNU $ac_path_EGREP
  5872. case `"$ac_path_EGREP" --version 2>&1` in #(
  5873. *GNU*)
  5874. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5875. #(
  5876. *)
  5877. ac_count=0
  5878. printf %s 0123456789 >"conftest.in"
  5879. while :
  5880. do
  5881. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5882. mv "conftest.tmp" "conftest.in"
  5883. cp "conftest.in" "conftest.nl"
  5884. printf "%s\n" 'EGREP' >> "conftest.nl"
  5885. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5886. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5887. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5888. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5889. # Best one so far, save it but keep looking for a better one
  5890. ac_cv_path_EGREP="$ac_path_EGREP"
  5891. ac_path_EGREP_max=$ac_count
  5892. fi
  5893. # 10*(2^10) chars as input seems more than enough
  5894. test $ac_count -gt 10 && break
  5895. done
  5896. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5897. esac
  5898. $ac_path_EGREP_found && break 3
  5899. done
  5900. done
  5901. done
  5902. IFS=$as_save_IFS
  5903. if test -z "$ac_cv_path_EGREP"; then
  5904. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5905. fi
  5906. else
  5907. ac_cv_path_EGREP=$EGREP
  5908. fi
  5909. fi ;;
  5910. esac
  5911. fi
  5912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5913. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5914. EGREP="$ac_cv_path_EGREP"
  5915. EGREP_TRADITIONAL=$EGREP
  5916. ac_cv_path_EGREP_TRADITIONAL=$EGREP
  5917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5918. printf %s "checking for fgrep... " >&6; }
  5919. if test ${ac_cv_path_FGREP+y}
  5920. then :
  5921. printf %s "(cached) " >&6
  5922. else case e in #(
  5923. e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5924. then ac_cv_path_FGREP="$GREP -F"
  5925. else
  5926. if test -z "$FGREP"; then
  5927. ac_path_FGREP_found=false
  5928. # Loop through the user's path and test for each of PROGNAME-LIST
  5929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5930. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5931. do
  5932. IFS=$as_save_IFS
  5933. case $as_dir in #(((
  5934. '') as_dir=./ ;;
  5935. */) ;;
  5936. *) as_dir=$as_dir/ ;;
  5937. esac
  5938. for ac_prog in fgrep
  5939. do
  5940. for ac_exec_ext in '' $ac_executable_extensions; do
  5941. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5942. as_fn_executable_p "$ac_path_FGREP" || continue
  5943. # Check for GNU ac_path_FGREP and select it if it is found.
  5944. # Check for GNU $ac_path_FGREP
  5945. case `"$ac_path_FGREP" --version 2>&1` in #(
  5946. *GNU*)
  5947. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5948. #(
  5949. *)
  5950. ac_count=0
  5951. printf %s 0123456789 >"conftest.in"
  5952. while :
  5953. do
  5954. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5955. mv "conftest.tmp" "conftest.in"
  5956. cp "conftest.in" "conftest.nl"
  5957. printf "%s\n" 'FGREP' >> "conftest.nl"
  5958. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5959. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5960. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5961. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5962. # Best one so far, save it but keep looking for a better one
  5963. ac_cv_path_FGREP="$ac_path_FGREP"
  5964. ac_path_FGREP_max=$ac_count
  5965. fi
  5966. # 10*(2^10) chars as input seems more than enough
  5967. test $ac_count -gt 10 && break
  5968. done
  5969. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5970. esac
  5971. $ac_path_FGREP_found && break 3
  5972. done
  5973. done
  5974. done
  5975. IFS=$as_save_IFS
  5976. if test -z "$ac_cv_path_FGREP"; then
  5977. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5978. fi
  5979. else
  5980. ac_cv_path_FGREP=$FGREP
  5981. fi
  5982. fi ;;
  5983. esac
  5984. fi
  5985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5986. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5987. FGREP="$ac_cv_path_FGREP"
  5988. test -z "$GREP" && GREP=grep
  5989. # Check whether --with-gnu-ld was given.
  5990. if test ${with_gnu_ld+y}
  5991. then :
  5992. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5993. else case e in #(
  5994. e) with_gnu_ld=no ;;
  5995. esac
  5996. fi
  5997. ac_prog=ld
  5998. if test yes = "$GCC"; then
  5999. # Check if gcc -print-prog-name=ld gives a path.
  6000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6001. printf %s "checking for ld used by $CC... " >&6; }
  6002. case $host in
  6003. *-*-mingw* | *-*-windows*)
  6004. # gcc leaves a trailing carriage return, which upsets mingw
  6005. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6006. *)
  6007. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6008. esac
  6009. case $ac_prog in
  6010. # Accept absolute paths.
  6011. [\\/]* | ?:[\\/]*)
  6012. re_direlt='/[^/][^/]*/\.\./'
  6013. # Canonicalize the pathname of ld
  6014. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6015. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6016. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6017. done
  6018. test -z "$LD" && LD=$ac_prog
  6019. ;;
  6020. "")
  6021. # If it fails, then pretend we aren't using GCC.
  6022. ac_prog=ld
  6023. ;;
  6024. *)
  6025. # If it is relative, then search for the first ld in PATH.
  6026. with_gnu_ld=unknown
  6027. ;;
  6028. esac
  6029. elif test yes = "$with_gnu_ld"; then
  6030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6031. printf %s "checking for GNU ld... " >&6; }
  6032. else
  6033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6034. printf %s "checking for non-GNU ld... " >&6; }
  6035. fi
  6036. if test ${lt_cv_path_LD+y}
  6037. then :
  6038. printf %s "(cached) " >&6
  6039. else case e in #(
  6040. e) if test -z "$LD"; then
  6041. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6042. for ac_dir in $PATH; do
  6043. IFS=$lt_save_ifs
  6044. test -z "$ac_dir" && ac_dir=.
  6045. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6046. lt_cv_path_LD=$ac_dir/$ac_prog
  6047. # Check to see if the program is GNU ld. I'd rather use --version,
  6048. # but apparently some variants of GNU ld only accept -v.
  6049. # Break only if it was the GNU/non-GNU ld that we prefer.
  6050. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6051. *GNU* | *'with BFD'*)
  6052. test no != "$with_gnu_ld" && break
  6053. ;;
  6054. *)
  6055. test yes != "$with_gnu_ld" && break
  6056. ;;
  6057. esac
  6058. fi
  6059. done
  6060. IFS=$lt_save_ifs
  6061. else
  6062. lt_cv_path_LD=$LD # Let the user override the test with a path.
  6063. fi ;;
  6064. esac
  6065. fi
  6066. LD=$lt_cv_path_LD
  6067. if test -n "$LD"; then
  6068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6069. printf "%s\n" "$LD" >&6; }
  6070. else
  6071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6072. printf "%s\n" "no" >&6; }
  6073. fi
  6074. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6076. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  6077. if test ${lt_cv_prog_gnu_ld+y}
  6078. then :
  6079. printf %s "(cached) " >&6
  6080. else case e in #(
  6081. e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6082. case `$LD -v 2>&1 </dev/null` in
  6083. *GNU* | *'with BFD'*)
  6084. lt_cv_prog_gnu_ld=yes
  6085. ;;
  6086. *)
  6087. lt_cv_prog_gnu_ld=no
  6088. ;;
  6089. esac ;;
  6090. esac
  6091. fi
  6092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6093. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  6094. with_gnu_ld=$lt_cv_prog_gnu_ld
  6095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6096. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6097. if test ${lt_cv_path_NM+y}
  6098. then :
  6099. printf %s "(cached) " >&6
  6100. else case e in #(
  6101. e) if test -n "$NM"; then
  6102. # Let the user override the test.
  6103. lt_cv_path_NM=$NM
  6104. else
  6105. lt_nm_to_check=${ac_tool_prefix}nm
  6106. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6107. lt_nm_to_check="$lt_nm_to_check nm"
  6108. fi
  6109. for lt_tmp_nm in $lt_nm_to_check; do
  6110. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6111. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6112. IFS=$lt_save_ifs
  6113. test -z "$ac_dir" && ac_dir=.
  6114. tmp_nm=$ac_dir/$lt_tmp_nm
  6115. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  6116. # Check to see if the nm accepts a BSD-compat flag.
  6117. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  6118. # nm: unknown option "B" ignored
  6119. # Tru64's nm complains that /dev/null is an invalid object file
  6120. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  6121. case $build_os in
  6122. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  6123. *) lt_bad_file=/dev/null ;;
  6124. esac
  6125. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  6126. *$lt_bad_file* | *'Invalid file or object type'*)
  6127. lt_cv_path_NM="$tmp_nm -B"
  6128. break 2
  6129. ;;
  6130. *)
  6131. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  6132. */dev/null*)
  6133. lt_cv_path_NM="$tmp_nm -p"
  6134. break 2
  6135. ;;
  6136. *)
  6137. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6138. continue # so that we can try to find one that supports BSD flags
  6139. ;;
  6140. esac
  6141. ;;
  6142. esac
  6143. fi
  6144. done
  6145. IFS=$lt_save_ifs
  6146. done
  6147. : ${lt_cv_path_NM=no}
  6148. fi ;;
  6149. esac
  6150. fi
  6151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6152. printf "%s\n" "$lt_cv_path_NM" >&6; }
  6153. if test no != "$lt_cv_path_NM"; then
  6154. NM=$lt_cv_path_NM
  6155. else
  6156. # Didn't find any BSD compatible name lister, look for dumpbin.
  6157. if test -n "$DUMPBIN"; then :
  6158. # Let the user override the test.
  6159. else
  6160. if test -n "$ac_tool_prefix"; then
  6161. for ac_prog in dumpbin "link -dump"
  6162. do
  6163. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6164. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6166. printf %s "checking for $ac_word... " >&6; }
  6167. if test ${ac_cv_prog_DUMPBIN+y}
  6168. then :
  6169. printf %s "(cached) " >&6
  6170. else case e in #(
  6171. e) if test -n "$DUMPBIN"; then
  6172. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6173. else
  6174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6175. for as_dir in $PATH
  6176. do
  6177. IFS=$as_save_IFS
  6178. case $as_dir in #(((
  6179. '') as_dir=./ ;;
  6180. */) ;;
  6181. *) as_dir=$as_dir/ ;;
  6182. esac
  6183. for ac_exec_ext in '' $ac_executable_extensions; do
  6184. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6185. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6186. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6187. break 2
  6188. fi
  6189. done
  6190. done
  6191. IFS=$as_save_IFS
  6192. fi ;;
  6193. esac
  6194. fi
  6195. DUMPBIN=$ac_cv_prog_DUMPBIN
  6196. if test -n "$DUMPBIN"; then
  6197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6198. printf "%s\n" "$DUMPBIN" >&6; }
  6199. else
  6200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6201. printf "%s\n" "no" >&6; }
  6202. fi
  6203. test -n "$DUMPBIN" && break
  6204. done
  6205. fi
  6206. if test -z "$DUMPBIN"; then
  6207. ac_ct_DUMPBIN=$DUMPBIN
  6208. for ac_prog in dumpbin "link -dump"
  6209. do
  6210. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6211. set dummy $ac_prog; ac_word=$2
  6212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6213. printf %s "checking for $ac_word... " >&6; }
  6214. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  6215. then :
  6216. printf %s "(cached) " >&6
  6217. else case e in #(
  6218. e) if test -n "$ac_ct_DUMPBIN"; then
  6219. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6220. else
  6221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6222. for as_dir in $PATH
  6223. do
  6224. IFS=$as_save_IFS
  6225. case $as_dir in #(((
  6226. '') as_dir=./ ;;
  6227. */) ;;
  6228. *) as_dir=$as_dir/ ;;
  6229. esac
  6230. for ac_exec_ext in '' $ac_executable_extensions; do
  6231. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6232. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6233. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6234. break 2
  6235. fi
  6236. done
  6237. done
  6238. IFS=$as_save_IFS
  6239. fi ;;
  6240. esac
  6241. fi
  6242. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6243. if test -n "$ac_ct_DUMPBIN"; then
  6244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6245. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  6246. else
  6247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6248. printf "%s\n" "no" >&6; }
  6249. fi
  6250. test -n "$ac_ct_DUMPBIN" && break
  6251. done
  6252. if test "x$ac_ct_DUMPBIN" = x; then
  6253. DUMPBIN=":"
  6254. else
  6255. case $cross_compiling:$ac_tool_warned in
  6256. yes:)
  6257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6258. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6259. ac_tool_warned=yes ;;
  6260. esac
  6261. DUMPBIN=$ac_ct_DUMPBIN
  6262. fi
  6263. fi
  6264. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  6265. *COFF*)
  6266. DUMPBIN="$DUMPBIN -symbols -headers"
  6267. ;;
  6268. *)
  6269. DUMPBIN=:
  6270. ;;
  6271. esac
  6272. fi
  6273. if test : != "$DUMPBIN"; then
  6274. NM=$DUMPBIN
  6275. fi
  6276. fi
  6277. test -z "$NM" && NM=nm
  6278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6279. printf %s "checking the name lister ($NM) interface... " >&6; }
  6280. if test ${lt_cv_nm_interface+y}
  6281. then :
  6282. printf %s "(cached) " >&6
  6283. else case e in #(
  6284. e) lt_cv_nm_interface="BSD nm"
  6285. echo "int some_variable = 0;" > conftest.$ac_ext
  6286. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6287. (eval "$ac_compile" 2>conftest.err)
  6288. cat conftest.err >&5
  6289. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6290. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6291. cat conftest.err >&5
  6292. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6293. cat conftest.out >&5
  6294. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6295. lt_cv_nm_interface="MS dumpbin"
  6296. fi
  6297. rm -f conftest* ;;
  6298. esac
  6299. fi
  6300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6301. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  6302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6303. printf %s "checking whether ln -s works... " >&6; }
  6304. LN_S=$as_ln_s
  6305. if test "$LN_S" = "ln -s"; then
  6306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6307. printf "%s\n" "yes" >&6; }
  6308. else
  6309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6310. printf "%s\n" "no, using $LN_S" >&6; }
  6311. fi
  6312. # find the maximum length of command line arguments
  6313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6314. printf %s "checking the maximum length of command line arguments... " >&6; }
  6315. if test ${lt_cv_sys_max_cmd_len+y}
  6316. then :
  6317. printf %s "(cached) " >&6
  6318. else case e in #(
  6319. e) i=0
  6320. teststring=ABCD
  6321. case $build_os in
  6322. msdosdjgpp*)
  6323. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6324. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6325. # during glob expansion). Even if it were fixed, the result of this
  6326. # check would be larger than it should be.
  6327. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6328. ;;
  6329. gnu* | ironclad*)
  6330. # Under GNU Hurd and Ironclad, this test is not required because there
  6331. # is no limit to the length of command line arguments.
  6332. # Libtool will interpret -1 as no limit whatsoever
  6333. lt_cv_sys_max_cmd_len=-1;
  6334. ;;
  6335. cygwin* | mingw* | windows* | cegcc*)
  6336. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6337. # about 5 minutes as the teststring grows exponentially.
  6338. # Worse, since 9x/ME are not pre-emptively multitasking,
  6339. # you end up with a "frozen" computer, even though with patience
  6340. # the test eventually succeeds (with a max line length of 256k).
  6341. # Instead, let's just punt: use the minimum linelength reported by
  6342. # all of the supported platforms: 8192 (on NT/2K/XP).
  6343. lt_cv_sys_max_cmd_len=8192;
  6344. ;;
  6345. mint*)
  6346. # On MiNT this can take a long time and run out of memory.
  6347. lt_cv_sys_max_cmd_len=8192;
  6348. ;;
  6349. amigaos*)
  6350. # On AmigaOS with pdksh, this test takes hours, literally.
  6351. # So we just punt and use a minimum line length of 8192.
  6352. lt_cv_sys_max_cmd_len=8192;
  6353. ;;
  6354. darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  6355. # This has been around since 386BSD, at least. Likely further.
  6356. if test -x /sbin/sysctl; then
  6357. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6358. elif test -x /usr/sbin/sysctl; then
  6359. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6360. else
  6361. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6362. fi
  6363. # And add a safety zone
  6364. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6365. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6366. ;;
  6367. interix*)
  6368. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6369. lt_cv_sys_max_cmd_len=196608
  6370. ;;
  6371. os2*)
  6372. # The test takes a long time on OS/2.
  6373. lt_cv_sys_max_cmd_len=8192
  6374. ;;
  6375. osf*)
  6376. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6377. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6378. # nice to cause kernel panics so lets avoid the loop below.
  6379. # First set a reasonable default.
  6380. lt_cv_sys_max_cmd_len=16384
  6381. #
  6382. if test -x /sbin/sysconfig; then
  6383. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6384. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6385. esac
  6386. fi
  6387. ;;
  6388. sco3.2v5*)
  6389. lt_cv_sys_max_cmd_len=102400
  6390. ;;
  6391. sysv5* | sco5v6* | sysv4.2uw2*)
  6392. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6393. if test -n "$kargmax"; then
  6394. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
  6395. else
  6396. lt_cv_sys_max_cmd_len=32768
  6397. fi
  6398. ;;
  6399. *)
  6400. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6401. if test -n "$lt_cv_sys_max_cmd_len" && \
  6402. test undefined != "$lt_cv_sys_max_cmd_len"; then
  6403. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6404. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6405. else
  6406. # Make teststring a little bigger before we do anything with it.
  6407. # a 1K string should be a reasonable start.
  6408. for i in 1 2 3 4 5 6 7 8; do
  6409. teststring=$teststring$teststring
  6410. done
  6411. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6412. # If test is not a shell built-in, we'll probably end up computing a
  6413. # maximum length that is only half of the actual maximum length, but
  6414. # we can't tell.
  6415. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  6416. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6417. test 17 != "$i" # 1/2 MB should be enough
  6418. do
  6419. i=`expr $i + 1`
  6420. teststring=$teststring$teststring
  6421. done
  6422. # Only check the string length outside the loop.
  6423. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6424. teststring=
  6425. # Add a significant safety factor because C++ compilers can tack on
  6426. # massive amounts of additional arguments before passing them to the
  6427. # linker. It appears as though 1/2 is a usable value.
  6428. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6429. fi
  6430. ;;
  6431. esac
  6432. ;;
  6433. esac
  6434. fi
  6435. if test -n "$lt_cv_sys_max_cmd_len"; then
  6436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6437. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  6438. else
  6439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6440. printf "%s\n" "none" >&6; }
  6441. fi
  6442. max_cmd_len=$lt_cv_sys_max_cmd_len
  6443. : ${CP="cp -f"}
  6444. : ${MV="mv -f"}
  6445. : ${RM="rm -f"}
  6446. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6447. lt_unset=unset
  6448. else
  6449. lt_unset=false
  6450. fi
  6451. # test EBCDIC or ASCII
  6452. case `echo X|tr X '\101'` in
  6453. A) # ASCII based system
  6454. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6455. lt_SP2NL='tr \040 \012'
  6456. lt_NL2SP='tr \015\012 \040\040'
  6457. ;;
  6458. *) # EBCDIC based system
  6459. lt_SP2NL='tr \100 \n'
  6460. lt_NL2SP='tr \r\n \100\100'
  6461. ;;
  6462. esac
  6463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6464. printf %s "checking how to convert $build file names to $host format... " >&6; }
  6465. if test ${lt_cv_to_host_file_cmd+y}
  6466. then :
  6467. printf %s "(cached) " >&6
  6468. else case e in #(
  6469. e) case $host in
  6470. *-*-mingw* )
  6471. case $build in
  6472. *-*-mingw* | *-*-windows* ) # actually msys
  6473. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6474. ;;
  6475. *-*-cygwin* )
  6476. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6477. ;;
  6478. * ) # otherwise, assume *nix
  6479. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6480. ;;
  6481. esac
  6482. ;;
  6483. *-*-cygwin* )
  6484. case $build in
  6485. *-*-mingw* | *-*-windows* ) # actually msys
  6486. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6487. ;;
  6488. *-*-cygwin* )
  6489. lt_cv_to_host_file_cmd=func_convert_file_noop
  6490. ;;
  6491. * ) # otherwise, assume *nix
  6492. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6493. ;;
  6494. esac
  6495. ;;
  6496. * ) # unhandled hosts (and "normal" native builds)
  6497. lt_cv_to_host_file_cmd=func_convert_file_noop
  6498. ;;
  6499. esac
  6500. ;;
  6501. esac
  6502. fi
  6503. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6505. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  6506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6507. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  6508. if test ${lt_cv_to_tool_file_cmd+y}
  6509. then :
  6510. printf %s "(cached) " >&6
  6511. else case e in #(
  6512. e) #assume ordinary cross tools, or native build.
  6513. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6514. case $host in
  6515. *-*-mingw* | *-*-windows* )
  6516. case $build in
  6517. *-*-mingw* | *-*-windows* ) # actually msys
  6518. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6519. ;;
  6520. esac
  6521. ;;
  6522. esac
  6523. ;;
  6524. esac
  6525. fi
  6526. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6528. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  6529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6530. printf %s "checking for $LD option to reload object files... " >&6; }
  6531. if test ${lt_cv_ld_reload_flag+y}
  6532. then :
  6533. printf %s "(cached) " >&6
  6534. else case e in #(
  6535. e) lt_cv_ld_reload_flag='-r' ;;
  6536. esac
  6537. fi
  6538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6539. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  6540. reload_flag=$lt_cv_ld_reload_flag
  6541. case $reload_flag in
  6542. "" | " "*) ;;
  6543. *) reload_flag=" $reload_flag" ;;
  6544. esac
  6545. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6546. case $host_os in
  6547. cygwin* | mingw* | windows* | pw32* | cegcc*)
  6548. if test yes != "$GCC"; then
  6549. reload_cmds=false
  6550. fi
  6551. ;;
  6552. darwin*)
  6553. if test yes = "$GCC"; then
  6554. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  6555. else
  6556. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6557. fi
  6558. ;;
  6559. esac
  6560. # Extract the first word of "file", so it can be a program name with args.
  6561. set dummy file; ac_word=$2
  6562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6563. printf %s "checking for $ac_word... " >&6; }
  6564. if test ${ac_cv_prog_FILECMD+y}
  6565. then :
  6566. printf %s "(cached) " >&6
  6567. else case e in #(
  6568. e) if test -n "$FILECMD"; then
  6569. ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
  6570. else
  6571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6572. for as_dir in $PATH
  6573. do
  6574. IFS=$as_save_IFS
  6575. case $as_dir in #(((
  6576. '') as_dir=./ ;;
  6577. */) ;;
  6578. *) as_dir=$as_dir/ ;;
  6579. esac
  6580. for ac_exec_ext in '' $ac_executable_extensions; do
  6581. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6582. ac_cv_prog_FILECMD="file"
  6583. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6584. break 2
  6585. fi
  6586. done
  6587. done
  6588. IFS=$as_save_IFS
  6589. test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
  6590. fi ;;
  6591. esac
  6592. fi
  6593. FILECMD=$ac_cv_prog_FILECMD
  6594. if test -n "$FILECMD"; then
  6595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
  6596. printf "%s\n" "$FILECMD" >&6; }
  6597. else
  6598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6599. printf "%s\n" "no" >&6; }
  6600. fi
  6601. if test -n "$ac_tool_prefix"; then
  6602. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6603. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6605. printf %s "checking for $ac_word... " >&6; }
  6606. if test ${ac_cv_prog_OBJDUMP+y}
  6607. then :
  6608. printf %s "(cached) " >&6
  6609. else case e in #(
  6610. e) if test -n "$OBJDUMP"; then
  6611. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6612. else
  6613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6614. for as_dir in $PATH
  6615. do
  6616. IFS=$as_save_IFS
  6617. case $as_dir in #(((
  6618. '') as_dir=./ ;;
  6619. */) ;;
  6620. *) as_dir=$as_dir/ ;;
  6621. esac
  6622. for ac_exec_ext in '' $ac_executable_extensions; do
  6623. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6624. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6626. break 2
  6627. fi
  6628. done
  6629. done
  6630. IFS=$as_save_IFS
  6631. fi ;;
  6632. esac
  6633. fi
  6634. OBJDUMP=$ac_cv_prog_OBJDUMP
  6635. if test -n "$OBJDUMP"; then
  6636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6637. printf "%s\n" "$OBJDUMP" >&6; }
  6638. else
  6639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6640. printf "%s\n" "no" >&6; }
  6641. fi
  6642. fi
  6643. if test -z "$ac_cv_prog_OBJDUMP"; then
  6644. ac_ct_OBJDUMP=$OBJDUMP
  6645. # Extract the first word of "objdump", so it can be a program name with args.
  6646. set dummy objdump; ac_word=$2
  6647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6648. printf %s "checking for $ac_word... " >&6; }
  6649. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  6650. then :
  6651. printf %s "(cached) " >&6
  6652. else case e in #(
  6653. e) if test -n "$ac_ct_OBJDUMP"; then
  6654. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6655. else
  6656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6657. for as_dir in $PATH
  6658. do
  6659. IFS=$as_save_IFS
  6660. case $as_dir in #(((
  6661. '') as_dir=./ ;;
  6662. */) ;;
  6663. *) as_dir=$as_dir/ ;;
  6664. esac
  6665. for ac_exec_ext in '' $ac_executable_extensions; do
  6666. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6667. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6668. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6669. break 2
  6670. fi
  6671. done
  6672. done
  6673. IFS=$as_save_IFS
  6674. fi ;;
  6675. esac
  6676. fi
  6677. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6678. if test -n "$ac_ct_OBJDUMP"; then
  6679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6680. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  6681. else
  6682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6683. printf "%s\n" "no" >&6; }
  6684. fi
  6685. if test "x$ac_ct_OBJDUMP" = x; then
  6686. OBJDUMP="false"
  6687. else
  6688. case $cross_compiling:$ac_tool_warned in
  6689. yes:)
  6690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6691. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6692. ac_tool_warned=yes ;;
  6693. esac
  6694. OBJDUMP=$ac_ct_OBJDUMP
  6695. fi
  6696. else
  6697. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6698. fi
  6699. test -z "$OBJDUMP" && OBJDUMP=objdump
  6700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6701. printf %s "checking how to recognize dependent libraries... " >&6; }
  6702. if test ${lt_cv_deplibs_check_method+y}
  6703. then :
  6704. printf %s "(cached) " >&6
  6705. else case e in #(
  6706. e) lt_cv_file_magic_cmd='$MAGIC_CMD'
  6707. lt_cv_file_magic_test_file=
  6708. lt_cv_deplibs_check_method='unknown'
  6709. # Need to set the preceding variable on all platforms that support
  6710. # interlibrary dependencies.
  6711. # 'none' -- dependencies not supported.
  6712. # 'unknown' -- same as none, but documents that we really don't know.
  6713. # 'pass_all' -- all dependencies passed with no checks.
  6714. # 'file_magic [[regex]]' -- check by looking for files in library path
  6715. # that responds to the $file_magic_cmd with a given extended regex.
  6716. # If you have 'file' or equivalent on your system and you're not sure
  6717. # whether 'pass_all' will *always* work, you probably want this one.
  6718. case $host_os in
  6719. aix[4-9]*)
  6720. lt_cv_deplibs_check_method=pass_all
  6721. ;;
  6722. beos*)
  6723. lt_cv_deplibs_check_method=pass_all
  6724. ;;
  6725. bsdi[45]*)
  6726. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6727. lt_cv_file_magic_cmd='$FILECMD -L'
  6728. lt_cv_file_magic_test_file=/shlib/libc.so
  6729. ;;
  6730. cygwin*)
  6731. # func_win32_libid is a shell function defined in ltmain.sh
  6732. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6733. lt_cv_file_magic_cmd='func_win32_libid'
  6734. ;;
  6735. mingw* | windows* | pw32*)
  6736. # Base MSYS/MinGW do not provide the 'file' command needed by
  6737. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6738. # unless we find 'file', for example because we are cross-compiling.
  6739. if ( file / ) >/dev/null 2>&1; then
  6740. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6741. lt_cv_file_magic_cmd='func_win32_libid'
  6742. else
  6743. # Keep this pattern in sync with the one in func_win32_libid.
  6744. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
  6745. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6746. fi
  6747. ;;
  6748. cegcc*)
  6749. # use the weaker test based on 'objdump'. See mingw*.
  6750. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6751. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6752. ;;
  6753. darwin* | rhapsody*)
  6754. lt_cv_deplibs_check_method=pass_all
  6755. ;;
  6756. freebsd* | dragonfly* | midnightbsd*)
  6757. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6758. case $host_cpu in
  6759. i*86 )
  6760. # Not sure whether the presence of OpenBSD here was a mistake.
  6761. # Let's accept both of them until this is cleared up.
  6762. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6763. lt_cv_file_magic_cmd=$FILECMD
  6764. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6765. ;;
  6766. esac
  6767. else
  6768. lt_cv_deplibs_check_method=pass_all
  6769. fi
  6770. ;;
  6771. haiku*)
  6772. lt_cv_deplibs_check_method=pass_all
  6773. ;;
  6774. hpux10.20* | hpux11*)
  6775. lt_cv_file_magic_cmd=$FILECMD
  6776. case $host_cpu in
  6777. ia64*)
  6778. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6779. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6780. ;;
  6781. hppa*64*)
  6782. 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]'
  6783. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6784. ;;
  6785. *)
  6786. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6787. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6788. ;;
  6789. esac
  6790. ;;
  6791. interix[3-9]*)
  6792. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6793. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6794. ;;
  6795. irix5* | irix6* | nonstopux*)
  6796. case $LD in
  6797. *-32|*"-32 ") libmagic=32-bit;;
  6798. *-n32|*"-n32 ") libmagic=N32;;
  6799. *-64|*"-64 ") libmagic=64-bit;;
  6800. *) libmagic=never-match;;
  6801. esac
  6802. lt_cv_deplibs_check_method=pass_all
  6803. ;;
  6804. # This must be glibc/ELF.
  6805. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6806. lt_cv_deplibs_check_method=pass_all
  6807. ;;
  6808. *-mlibc)
  6809. lt_cv_deplibs_check_method=pass_all
  6810. ;;
  6811. netbsd* | netbsdelf*-gnu)
  6812. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6813. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6814. else
  6815. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6816. fi
  6817. ;;
  6818. newos6*)
  6819. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6820. lt_cv_file_magic_cmd=$FILECMD
  6821. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6822. ;;
  6823. *nto* | *qnx*)
  6824. lt_cv_deplibs_check_method=pass_all
  6825. ;;
  6826. openbsd*)
  6827. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6828. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6829. else
  6830. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6831. fi
  6832. ;;
  6833. osf3* | osf4* | osf5*)
  6834. lt_cv_deplibs_check_method=pass_all
  6835. ;;
  6836. rdos*)
  6837. lt_cv_deplibs_check_method=pass_all
  6838. ;;
  6839. serenity*)
  6840. lt_cv_deplibs_check_method=pass_all
  6841. ;;
  6842. solaris*)
  6843. lt_cv_deplibs_check_method=pass_all
  6844. ;;
  6845. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6846. lt_cv_deplibs_check_method=pass_all
  6847. ;;
  6848. sysv4 | sysv4.3*)
  6849. case $host_vendor in
  6850. motorola)
  6851. 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]'
  6852. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6853. ;;
  6854. ncr)
  6855. lt_cv_deplibs_check_method=pass_all
  6856. ;;
  6857. sequent)
  6858. lt_cv_file_magic_cmd='/bin/file'
  6859. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6860. ;;
  6861. sni)
  6862. lt_cv_file_magic_cmd='/bin/file'
  6863. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6864. lt_cv_file_magic_test_file=/lib/libc.so
  6865. ;;
  6866. siemens)
  6867. lt_cv_deplibs_check_method=pass_all
  6868. ;;
  6869. pc)
  6870. lt_cv_deplibs_check_method=pass_all
  6871. ;;
  6872. esac
  6873. ;;
  6874. tpf*)
  6875. lt_cv_deplibs_check_method=pass_all
  6876. ;;
  6877. os2*)
  6878. lt_cv_deplibs_check_method=pass_all
  6879. ;;
  6880. esac
  6881. ;;
  6882. esac
  6883. fi
  6884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6885. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6886. file_magic_glob=
  6887. want_nocaseglob=no
  6888. if test "$build" = "$host"; then
  6889. case $host_os in
  6890. mingw* | windows* | pw32*)
  6891. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6892. want_nocaseglob=yes
  6893. else
  6894. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6895. fi
  6896. ;;
  6897. esac
  6898. fi
  6899. file_magic_cmd=$lt_cv_file_magic_cmd
  6900. deplibs_check_method=$lt_cv_deplibs_check_method
  6901. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6902. if test -n "$ac_tool_prefix"; then
  6903. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6904. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6906. printf %s "checking for $ac_word... " >&6; }
  6907. if test ${ac_cv_prog_DLLTOOL+y}
  6908. then :
  6909. printf %s "(cached) " >&6
  6910. else case e in #(
  6911. e) if test -n "$DLLTOOL"; then
  6912. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6913. else
  6914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6915. for as_dir in $PATH
  6916. do
  6917. IFS=$as_save_IFS
  6918. case $as_dir in #(((
  6919. '') as_dir=./ ;;
  6920. */) ;;
  6921. *) as_dir=$as_dir/ ;;
  6922. esac
  6923. for ac_exec_ext in '' $ac_executable_extensions; do
  6924. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6925. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6926. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6927. break 2
  6928. fi
  6929. done
  6930. done
  6931. IFS=$as_save_IFS
  6932. fi ;;
  6933. esac
  6934. fi
  6935. DLLTOOL=$ac_cv_prog_DLLTOOL
  6936. if test -n "$DLLTOOL"; then
  6937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6938. printf "%s\n" "$DLLTOOL" >&6; }
  6939. else
  6940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6941. printf "%s\n" "no" >&6; }
  6942. fi
  6943. fi
  6944. if test -z "$ac_cv_prog_DLLTOOL"; then
  6945. ac_ct_DLLTOOL=$DLLTOOL
  6946. # Extract the first word of "dlltool", so it can be a program name with args.
  6947. set dummy dlltool; ac_word=$2
  6948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6949. printf %s "checking for $ac_word... " >&6; }
  6950. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6951. then :
  6952. printf %s "(cached) " >&6
  6953. else case e in #(
  6954. e) if test -n "$ac_ct_DLLTOOL"; then
  6955. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6956. else
  6957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6958. for as_dir in $PATH
  6959. do
  6960. IFS=$as_save_IFS
  6961. case $as_dir in #(((
  6962. '') as_dir=./ ;;
  6963. */) ;;
  6964. *) as_dir=$as_dir/ ;;
  6965. esac
  6966. for ac_exec_ext in '' $ac_executable_extensions; do
  6967. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6968. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6969. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6970. break 2
  6971. fi
  6972. done
  6973. done
  6974. IFS=$as_save_IFS
  6975. fi ;;
  6976. esac
  6977. fi
  6978. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6979. if test -n "$ac_ct_DLLTOOL"; then
  6980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6981. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6982. else
  6983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6984. printf "%s\n" "no" >&6; }
  6985. fi
  6986. if test "x$ac_ct_DLLTOOL" = x; then
  6987. DLLTOOL="false"
  6988. else
  6989. case $cross_compiling:$ac_tool_warned in
  6990. yes:)
  6991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6992. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6993. ac_tool_warned=yes ;;
  6994. esac
  6995. DLLTOOL=$ac_ct_DLLTOOL
  6996. fi
  6997. else
  6998. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6999. fi
  7000. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7002. printf %s "checking how to associate runtime and link libraries... " >&6; }
  7003. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  7004. then :
  7005. printf %s "(cached) " >&6
  7006. else case e in #(
  7007. e) lt_cv_sharedlib_from_linklib_cmd='unknown'
  7008. case $host_os in
  7009. cygwin* | mingw* | windows* | pw32* | cegcc*)
  7010. # two different shell functions defined in ltmain.sh;
  7011. # decide which one to use based on capabilities of $DLLTOOL
  7012. case `$DLLTOOL --help 2>&1` in
  7013. *--identify-strict*)
  7014. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7015. ;;
  7016. *)
  7017. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7018. ;;
  7019. esac
  7020. ;;
  7021. *)
  7022. # fallback: assume linklib IS sharedlib
  7023. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  7024. ;;
  7025. esac
  7026. ;;
  7027. esac
  7028. fi
  7029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7030. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7031. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7032. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7033. if test -n "$ac_tool_prefix"; then
  7034. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7035. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7037. printf %s "checking for $ac_word... " >&6; }
  7038. if test ${ac_cv_prog_RANLIB+y}
  7039. then :
  7040. printf %s "(cached) " >&6
  7041. else case e in #(
  7042. e) if test -n "$RANLIB"; then
  7043. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7044. else
  7045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7046. for as_dir in $PATH
  7047. do
  7048. IFS=$as_save_IFS
  7049. case $as_dir in #(((
  7050. '') as_dir=./ ;;
  7051. */) ;;
  7052. *) as_dir=$as_dir/ ;;
  7053. esac
  7054. for ac_exec_ext in '' $ac_executable_extensions; do
  7055. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7056. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7057. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7058. break 2
  7059. fi
  7060. done
  7061. done
  7062. IFS=$as_save_IFS
  7063. fi ;;
  7064. esac
  7065. fi
  7066. RANLIB=$ac_cv_prog_RANLIB
  7067. if test -n "$RANLIB"; then
  7068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7069. printf "%s\n" "$RANLIB" >&6; }
  7070. else
  7071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7072. printf "%s\n" "no" >&6; }
  7073. fi
  7074. fi
  7075. if test -z "$ac_cv_prog_RANLIB"; then
  7076. ac_ct_RANLIB=$RANLIB
  7077. # Extract the first word of "ranlib", so it can be a program name with args.
  7078. set dummy ranlib; ac_word=$2
  7079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7080. printf %s "checking for $ac_word... " >&6; }
  7081. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  7082. then :
  7083. printf %s "(cached) " >&6
  7084. else case e in #(
  7085. e) if test -n "$ac_ct_RANLIB"; then
  7086. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7087. else
  7088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7089. for as_dir in $PATH
  7090. do
  7091. IFS=$as_save_IFS
  7092. case $as_dir in #(((
  7093. '') as_dir=./ ;;
  7094. */) ;;
  7095. *) as_dir=$as_dir/ ;;
  7096. esac
  7097. for ac_exec_ext in '' $ac_executable_extensions; do
  7098. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7099. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7101. break 2
  7102. fi
  7103. done
  7104. done
  7105. IFS=$as_save_IFS
  7106. fi ;;
  7107. esac
  7108. fi
  7109. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7110. if test -n "$ac_ct_RANLIB"; then
  7111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7112. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  7113. else
  7114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7115. printf "%s\n" "no" >&6; }
  7116. fi
  7117. if test "x$ac_ct_RANLIB" = x; then
  7118. RANLIB=":"
  7119. else
  7120. case $cross_compiling:$ac_tool_warned in
  7121. yes:)
  7122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7123. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7124. ac_tool_warned=yes ;;
  7125. esac
  7126. RANLIB=$ac_ct_RANLIB
  7127. fi
  7128. else
  7129. RANLIB="$ac_cv_prog_RANLIB"
  7130. fi
  7131. if test -n "$ac_tool_prefix"; then
  7132. for ac_prog in ar
  7133. do
  7134. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7135. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7137. printf %s "checking for $ac_word... " >&6; }
  7138. if test ${ac_cv_prog_AR+y}
  7139. then :
  7140. printf %s "(cached) " >&6
  7141. else case e in #(
  7142. e) if test -n "$AR"; then
  7143. ac_cv_prog_AR="$AR" # Let the user override the test.
  7144. else
  7145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7146. for as_dir in $PATH
  7147. do
  7148. IFS=$as_save_IFS
  7149. case $as_dir in #(((
  7150. '') as_dir=./ ;;
  7151. */) ;;
  7152. *) as_dir=$as_dir/ ;;
  7153. esac
  7154. for ac_exec_ext in '' $ac_executable_extensions; do
  7155. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7156. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7157. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7158. break 2
  7159. fi
  7160. done
  7161. done
  7162. IFS=$as_save_IFS
  7163. fi ;;
  7164. esac
  7165. fi
  7166. AR=$ac_cv_prog_AR
  7167. if test -n "$AR"; then
  7168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7169. printf "%s\n" "$AR" >&6; }
  7170. else
  7171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7172. printf "%s\n" "no" >&6; }
  7173. fi
  7174. test -n "$AR" && break
  7175. done
  7176. fi
  7177. if test -z "$AR"; then
  7178. ac_ct_AR=$AR
  7179. for ac_prog in ar
  7180. do
  7181. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7182. set dummy $ac_prog; ac_word=$2
  7183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7184. printf %s "checking for $ac_word... " >&6; }
  7185. if test ${ac_cv_prog_ac_ct_AR+y}
  7186. then :
  7187. printf %s "(cached) " >&6
  7188. else case e in #(
  7189. e) if test -n "$ac_ct_AR"; then
  7190. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7191. else
  7192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7193. for as_dir in $PATH
  7194. do
  7195. IFS=$as_save_IFS
  7196. case $as_dir in #(((
  7197. '') as_dir=./ ;;
  7198. */) ;;
  7199. *) as_dir=$as_dir/ ;;
  7200. esac
  7201. for ac_exec_ext in '' $ac_executable_extensions; do
  7202. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7203. ac_cv_prog_ac_ct_AR="$ac_prog"
  7204. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7205. break 2
  7206. fi
  7207. done
  7208. done
  7209. IFS=$as_save_IFS
  7210. fi ;;
  7211. esac
  7212. fi
  7213. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7214. if test -n "$ac_ct_AR"; then
  7215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7216. printf "%s\n" "$ac_ct_AR" >&6; }
  7217. else
  7218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7219. printf "%s\n" "no" >&6; }
  7220. fi
  7221. test -n "$ac_ct_AR" && break
  7222. done
  7223. if test "x$ac_ct_AR" = x; then
  7224. AR="false"
  7225. else
  7226. case $cross_compiling:$ac_tool_warned in
  7227. yes:)
  7228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7229. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7230. ac_tool_warned=yes ;;
  7231. esac
  7232. AR=$ac_ct_AR
  7233. fi
  7234. fi
  7235. : ${AR=ar}
  7236. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  7237. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  7238. # higher priority because that's what people were doing historically (setting
  7239. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  7240. # variable obsoleted/removed.
  7241. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  7242. lt_ar_flags=$AR_FLAGS
  7243. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  7244. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  7245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  7246. printf %s "checking for archiver @FILE support... " >&6; }
  7247. if test ${lt_cv_ar_at_file+y}
  7248. then :
  7249. printf %s "(cached) " >&6
  7250. else case e in #(
  7251. e) lt_cv_ar_at_file=no
  7252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7253. /* end confdefs.h. */
  7254. int
  7255. main (void)
  7256. {
  7257. ;
  7258. return 0;
  7259. }
  7260. _ACEOF
  7261. if ac_fn_c_try_compile "$LINENO"
  7262. then :
  7263. echo conftest.$ac_objext > conftest.lst
  7264. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  7265. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7266. (eval $lt_ar_try) 2>&5
  7267. ac_status=$?
  7268. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7269. test $ac_status = 0; }
  7270. if test 0 -eq "$ac_status"; then
  7271. # Ensure the archiver fails upon bogus file names.
  7272. rm -f conftest.$ac_objext libconftest.a
  7273. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7274. (eval $lt_ar_try) 2>&5
  7275. ac_status=$?
  7276. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7277. test $ac_status = 0; }
  7278. if test 0 -ne "$ac_status"; then
  7279. lt_cv_ar_at_file=@
  7280. fi
  7281. fi
  7282. rm -f conftest.* libconftest.a
  7283. fi
  7284. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7285. ;;
  7286. esac
  7287. fi
  7288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  7289. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  7290. if test no = "$lt_cv_ar_at_file"; then
  7291. archiver_list_spec=
  7292. else
  7293. archiver_list_spec=$lt_cv_ar_at_file
  7294. fi
  7295. if test -n "$ac_tool_prefix"; then
  7296. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7297. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7299. printf %s "checking for $ac_word... " >&6; }
  7300. if test ${ac_cv_prog_STRIP+y}
  7301. then :
  7302. printf %s "(cached) " >&6
  7303. else case e in #(
  7304. e) if test -n "$STRIP"; then
  7305. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7306. else
  7307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7308. for as_dir in $PATH
  7309. do
  7310. IFS=$as_save_IFS
  7311. case $as_dir in #(((
  7312. '') as_dir=./ ;;
  7313. */) ;;
  7314. *) as_dir=$as_dir/ ;;
  7315. esac
  7316. for ac_exec_ext in '' $ac_executable_extensions; do
  7317. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7318. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7319. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7320. break 2
  7321. fi
  7322. done
  7323. done
  7324. IFS=$as_save_IFS
  7325. fi ;;
  7326. esac
  7327. fi
  7328. STRIP=$ac_cv_prog_STRIP
  7329. if test -n "$STRIP"; then
  7330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7331. printf "%s\n" "$STRIP" >&6; }
  7332. else
  7333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7334. printf "%s\n" "no" >&6; }
  7335. fi
  7336. fi
  7337. if test -z "$ac_cv_prog_STRIP"; then
  7338. ac_ct_STRIP=$STRIP
  7339. # Extract the first word of "strip", so it can be a program name with args.
  7340. set dummy strip; ac_word=$2
  7341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7342. printf %s "checking for $ac_word... " >&6; }
  7343. if test ${ac_cv_prog_ac_ct_STRIP+y}
  7344. then :
  7345. printf %s "(cached) " >&6
  7346. else case e in #(
  7347. e) if test -n "$ac_ct_STRIP"; then
  7348. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7349. else
  7350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7351. for as_dir in $PATH
  7352. do
  7353. IFS=$as_save_IFS
  7354. case $as_dir in #(((
  7355. '') as_dir=./ ;;
  7356. */) ;;
  7357. *) as_dir=$as_dir/ ;;
  7358. esac
  7359. for ac_exec_ext in '' $ac_executable_extensions; do
  7360. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7361. ac_cv_prog_ac_ct_STRIP="strip"
  7362. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7363. break 2
  7364. fi
  7365. done
  7366. done
  7367. IFS=$as_save_IFS
  7368. fi ;;
  7369. esac
  7370. fi
  7371. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7372. if test -n "$ac_ct_STRIP"; then
  7373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7374. printf "%s\n" "$ac_ct_STRIP" >&6; }
  7375. else
  7376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7377. printf "%s\n" "no" >&6; }
  7378. fi
  7379. if test "x$ac_ct_STRIP" = x; then
  7380. STRIP=":"
  7381. else
  7382. case $cross_compiling:$ac_tool_warned in
  7383. yes:)
  7384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7385. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7386. ac_tool_warned=yes ;;
  7387. esac
  7388. STRIP=$ac_ct_STRIP
  7389. fi
  7390. else
  7391. STRIP="$ac_cv_prog_STRIP"
  7392. fi
  7393. test -z "$STRIP" && STRIP=:
  7394. test -z "$RANLIB" && RANLIB=:
  7395. # Determine commands to create old-style static archives.
  7396. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7397. old_postinstall_cmds='chmod 644 $oldlib'
  7398. old_postuninstall_cmds=
  7399. if test -n "$RANLIB"; then
  7400. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7401. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7402. fi
  7403. case $host_os in
  7404. darwin*)
  7405. lock_old_archive_extraction=yes ;;
  7406. *)
  7407. lock_old_archive_extraction=no ;;
  7408. esac
  7409. # If no C compiler was specified, use CC.
  7410. LTCC=${LTCC-"$CC"}
  7411. # If no C compiler flags were specified, use CFLAGS.
  7412. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7413. # Allow CC to be a program name with arguments.
  7414. compiler=$CC
  7415. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7417. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  7418. if test ${lt_cv_sys_global_symbol_pipe+y}
  7419. then :
  7420. printf %s "(cached) " >&6
  7421. else case e in #(
  7422. e)
  7423. # These are sane defaults that work on at least a few old systems.
  7424. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7425. # Character class describing NM global symbol codes.
  7426. symcode='[BCDEGRST]'
  7427. # Regexp to match symbols that can be accessed directly from C.
  7428. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7429. # Define system-specific variables.
  7430. case $host_os in
  7431. aix*)
  7432. symcode='[BCDT]'
  7433. ;;
  7434. cygwin* | mingw* | windows* | pw32* | cegcc*)
  7435. symcode='[ABCDGISTW]'
  7436. ;;
  7437. hpux*)
  7438. if test ia64 = "$host_cpu"; then
  7439. symcode='[ABCDEGRST]'
  7440. fi
  7441. ;;
  7442. irix* | nonstopux*)
  7443. symcode='[BCDEGRST]'
  7444. ;;
  7445. osf*)
  7446. symcode='[BCDEGQRST]'
  7447. ;;
  7448. solaris*)
  7449. symcode='[BCDRT]'
  7450. ;;
  7451. sco3.2v5*)
  7452. symcode='[DT]'
  7453. ;;
  7454. sysv4.2uw2*)
  7455. symcode='[DT]'
  7456. ;;
  7457. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7458. symcode='[ABDT]'
  7459. ;;
  7460. sysv4)
  7461. symcode='[DFNSTU]'
  7462. ;;
  7463. esac
  7464. # If we're using GNU nm, then use its standard symbol codes.
  7465. case `$NM -V 2>&1` in
  7466. *GNU* | *'with BFD'*)
  7467. symcode='[ABCDGIRSTW]' ;;
  7468. esac
  7469. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7470. # Gets list of data symbols to import.
  7471. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  7472. # Adjust the below global symbol transforms to fixup imported variables.
  7473. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  7474. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7475. lt_c_name_lib_hook="\
  7476. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7477. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7478. else
  7479. # Disable hooks by default.
  7480. lt_cv_sys_global_symbol_to_import=
  7481. lt_cdecl_hook=
  7482. lt_c_name_hook=
  7483. lt_c_name_lib_hook=
  7484. fi
  7485. # Transform an extracted symbol line into a proper C declaration.
  7486. # Some systems (esp. on ia64) link data and code symbols differently,
  7487. # so use this general approach.
  7488. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  7489. $lt_cdecl_hook\
  7490. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7491. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7492. # Transform an extracted symbol line into symbol name and symbol address
  7493. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  7494. $lt_c_name_hook\
  7495. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7496. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7497. # Transform an extracted symbol line into symbol name with lib prefix and
  7498. # symbol address.
  7499. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  7500. $lt_c_name_lib_hook\
  7501. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7502. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  7503. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  7504. # Handle CRLF in mingw tool chain
  7505. opt_cr=
  7506. case $build_os in
  7507. mingw* | windows*)
  7508. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7509. ;;
  7510. esac
  7511. # Try without a prefix underscore, then with it.
  7512. for ac_symprfx in "" "_"; do
  7513. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7514. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7515. # Write the raw and C identifiers.
  7516. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7517. # Fake it for dumpbin and say T for any non-static function,
  7518. # D for any global variable and I for any imported variable.
  7519. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  7520. # which start with @ or ?.
  7521. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7522. " {last_section=section; section=\$ 3};"\
  7523. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7524. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7525. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  7526. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  7527. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  7528. " \$ 0!~/External *\|/{next};"\
  7529. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7530. " {if(hide[section]) next};"\
  7531. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  7532. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  7533. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  7534. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  7535. " ' prfx=^$ac_symprfx"
  7536. else
  7537. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7538. fi
  7539. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  7540. # Check to see that the pipe works correctly.
  7541. pipe_works=no
  7542. rm -f conftest*
  7543. cat > conftest.$ac_ext <<_LT_EOF
  7544. #ifdef __cplusplus
  7545. extern "C" {
  7546. #endif
  7547. char nm_test_var;
  7548. void nm_test_func(void);
  7549. void nm_test_func(void){}
  7550. #ifdef __cplusplus
  7551. }
  7552. #endif
  7553. int main(void){nm_test_var='a';nm_test_func();return(0);}
  7554. _LT_EOF
  7555. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7556. (eval $ac_compile) 2>&5
  7557. ac_status=$?
  7558. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7559. test $ac_status = 0; }; then
  7560. # Now try to grab the symbols.
  7561. nlist=conftest.nm
  7562. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  7563. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  7564. # Try sorting and uniquifying the output.
  7565. if sort "$nlist" | uniq > "$nlist"T; then
  7566. mv -f "$nlist"T "$nlist"
  7567. else
  7568. rm -f "$nlist"T
  7569. fi
  7570. # Make sure that we snagged all the symbols we need.
  7571. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7572. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7573. cat <<_LT_EOF > conftest.$ac_ext
  7574. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7575. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7576. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7577. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7578. # define LT_DLSYM_CONST
  7579. #elif defined __osf__
  7580. /* This system does not cope well with relocations in const data. */
  7581. # define LT_DLSYM_CONST
  7582. #else
  7583. # define LT_DLSYM_CONST const
  7584. #endif
  7585. #ifdef __cplusplus
  7586. extern "C" {
  7587. #endif
  7588. _LT_EOF
  7589. # Now generate the symbol file.
  7590. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7591. cat <<_LT_EOF >> conftest.$ac_ext
  7592. /* The mapping between symbol names and symbols. */
  7593. LT_DLSYM_CONST struct {
  7594. const char *name;
  7595. void *address;
  7596. }
  7597. lt__PROGRAM__LTX_preloaded_symbols[] =
  7598. {
  7599. { "@PROGRAM@", (void *) 0 },
  7600. _LT_EOF
  7601. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7602. cat <<\_LT_EOF >> conftest.$ac_ext
  7603. {0, (void *) 0}
  7604. };
  7605. /* This works around a problem in FreeBSD linker */
  7606. #ifdef FREEBSD_WORKAROUND
  7607. static const void *lt_preloaded_setup() {
  7608. return lt__PROGRAM__LTX_preloaded_symbols;
  7609. }
  7610. #endif
  7611. #ifdef __cplusplus
  7612. }
  7613. #endif
  7614. _LT_EOF
  7615. # Now try linking the two files.
  7616. mv conftest.$ac_objext conftstm.$ac_objext
  7617. lt_globsym_save_LIBS=$LIBS
  7618. lt_globsym_save_CFLAGS=$CFLAGS
  7619. LIBS=conftstm.$ac_objext
  7620. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7621. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7622. (eval $ac_link) 2>&5
  7623. ac_status=$?
  7624. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7625. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7626. pipe_works=yes
  7627. fi
  7628. LIBS=$lt_globsym_save_LIBS
  7629. CFLAGS=$lt_globsym_save_CFLAGS
  7630. else
  7631. echo "cannot find nm_test_func in $nlist" >&5
  7632. fi
  7633. else
  7634. echo "cannot find nm_test_var in $nlist" >&5
  7635. fi
  7636. else
  7637. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7638. fi
  7639. else
  7640. echo "$progname: failed program was:" >&5
  7641. cat conftest.$ac_ext >&5
  7642. fi
  7643. rm -rf conftest* conftst*
  7644. # Do not use the global_symbol_pipe unless it works.
  7645. if test yes = "$pipe_works"; then
  7646. break
  7647. else
  7648. lt_cv_sys_global_symbol_pipe=
  7649. fi
  7650. done
  7651. ;;
  7652. esac
  7653. fi
  7654. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7655. lt_cv_sys_global_symbol_to_cdecl=
  7656. fi
  7657. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7659. printf "%s\n" "failed" >&6; }
  7660. else
  7661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7662. printf "%s\n" "ok" >&6; }
  7663. fi
  7664. # Response file support.
  7665. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7666. nm_file_list_spec='@'
  7667. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7668. nm_file_list_spec='@'
  7669. fi
  7670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7671. printf %s "checking for sysroot... " >&6; }
  7672. # Check whether --with-sysroot was given.
  7673. if test ${with_sysroot+y}
  7674. then :
  7675. withval=$with_sysroot;
  7676. else case e in #(
  7677. e) with_sysroot=no ;;
  7678. esac
  7679. fi
  7680. lt_sysroot=
  7681. case $with_sysroot in #(
  7682. yes)
  7683. if test yes = "$GCC"; then
  7684. # Trim trailing / since we'll always append absolute paths and we want
  7685. # to avoid //, if only for less confusing output for the user.
  7686. lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
  7687. fi
  7688. ;; #(
  7689. /*)
  7690. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  7691. ;; #(
  7692. no|'')
  7693. ;; #(
  7694. *)
  7695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7696. printf "%s\n" "$with_sysroot" >&6; }
  7697. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7698. ;;
  7699. esac
  7700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7701. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  7702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7703. printf %s "checking for a working dd... " >&6; }
  7704. if test ${ac_cv_path_lt_DD+y}
  7705. then :
  7706. printf %s "(cached) " >&6
  7707. else case e in #(
  7708. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  7709. cat conftest.i conftest.i >conftest2.i
  7710. : ${lt_DD:=$DD}
  7711. if test -z "$lt_DD"; then
  7712. ac_path_lt_DD_found=false
  7713. # Loop through the user's path and test for each of PROGNAME-LIST
  7714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7715. for as_dir in $PATH
  7716. do
  7717. IFS=$as_save_IFS
  7718. case $as_dir in #(((
  7719. '') as_dir=./ ;;
  7720. */) ;;
  7721. *) as_dir=$as_dir/ ;;
  7722. esac
  7723. for ac_prog in dd
  7724. do
  7725. for ac_exec_ext in '' $ac_executable_extensions; do
  7726. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  7727. as_fn_executable_p "$ac_path_lt_DD" || continue
  7728. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7729. cmp -s conftest.i conftest.out \
  7730. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7731. fi
  7732. $ac_path_lt_DD_found && break 3
  7733. done
  7734. done
  7735. done
  7736. IFS=$as_save_IFS
  7737. if test -z "$ac_cv_path_lt_DD"; then
  7738. :
  7739. fi
  7740. else
  7741. ac_cv_path_lt_DD=$lt_DD
  7742. fi
  7743. rm -f conftest.i conftest2.i conftest.out ;;
  7744. esac
  7745. fi
  7746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7747. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  7748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7749. printf %s "checking how to truncate binary pipes... " >&6; }
  7750. if test ${lt_cv_truncate_bin+y}
  7751. then :
  7752. printf %s "(cached) " >&6
  7753. else case e in #(
  7754. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  7755. cat conftest.i conftest.i >conftest2.i
  7756. lt_cv_truncate_bin=
  7757. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7758. cmp -s conftest.i conftest.out \
  7759. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7760. fi
  7761. rm -f conftest.i conftest2.i conftest.out
  7762. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
  7763. esac
  7764. fi
  7765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7766. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  7767. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7768. func_cc_basename ()
  7769. {
  7770. for cc_temp in $*""; do
  7771. case $cc_temp in
  7772. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7773. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7774. \-*) ;;
  7775. *) break;;
  7776. esac
  7777. done
  7778. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7779. }
  7780. # Check whether --enable-libtool-lock was given.
  7781. if test ${enable_libtool_lock+y}
  7782. then :
  7783. enableval=$enable_libtool_lock;
  7784. fi
  7785. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7786. # Some flags need to be propagated to the compiler or linker for good
  7787. # libtool support.
  7788. case $host in
  7789. ia64-*-hpux*)
  7790. # Find out what ABI is being produced by ac_compile, and set mode
  7791. # options accordingly.
  7792. echo 'int i;' > conftest.$ac_ext
  7793. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7794. (eval $ac_compile) 2>&5
  7795. ac_status=$?
  7796. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7797. test $ac_status = 0; }; then
  7798. case `$FILECMD conftest.$ac_objext` in
  7799. *ELF-32*)
  7800. HPUX_IA64_MODE=32
  7801. ;;
  7802. *ELF-64*)
  7803. HPUX_IA64_MODE=64
  7804. ;;
  7805. esac
  7806. fi
  7807. rm -rf conftest*
  7808. ;;
  7809. *-*-irix6*)
  7810. # Find out what ABI is being produced by ac_compile, and set linker
  7811. # options accordingly.
  7812. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7813. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7814. (eval $ac_compile) 2>&5
  7815. ac_status=$?
  7816. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7817. test $ac_status = 0; }; then
  7818. if test yes = "$lt_cv_prog_gnu_ld"; then
  7819. case `$FILECMD conftest.$ac_objext` in
  7820. *32-bit*)
  7821. LD="${LD-ld} -melf32bsmip"
  7822. ;;
  7823. *N32*)
  7824. LD="${LD-ld} -melf32bmipn32"
  7825. ;;
  7826. *64-bit*)
  7827. LD="${LD-ld} -melf64bmip"
  7828. ;;
  7829. esac
  7830. else
  7831. case `$FILECMD conftest.$ac_objext` in
  7832. *32-bit*)
  7833. LD="${LD-ld} -32"
  7834. ;;
  7835. *N32*)
  7836. LD="${LD-ld} -n32"
  7837. ;;
  7838. *64-bit*)
  7839. LD="${LD-ld} -64"
  7840. ;;
  7841. esac
  7842. fi
  7843. fi
  7844. rm -rf conftest*
  7845. ;;
  7846. mips64*-*linux*)
  7847. # Find out what ABI is being produced by ac_compile, and set linker
  7848. # options accordingly.
  7849. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7850. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7851. (eval $ac_compile) 2>&5
  7852. ac_status=$?
  7853. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7854. test $ac_status = 0; }; then
  7855. emul=elf
  7856. case `$FILECMD conftest.$ac_objext` in
  7857. *32-bit*)
  7858. emul="${emul}32"
  7859. ;;
  7860. *64-bit*)
  7861. emul="${emul}64"
  7862. ;;
  7863. esac
  7864. case `$FILECMD conftest.$ac_objext` in
  7865. *MSB*)
  7866. emul="${emul}btsmip"
  7867. ;;
  7868. *LSB*)
  7869. emul="${emul}ltsmip"
  7870. ;;
  7871. esac
  7872. case `$FILECMD conftest.$ac_objext` in
  7873. *N32*)
  7874. emul="${emul}n32"
  7875. ;;
  7876. esac
  7877. LD="${LD-ld} -m $emul"
  7878. fi
  7879. rm -rf conftest*
  7880. ;;
  7881. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7882. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  7883. # Find out what ABI is being produced by ac_compile, and set linker
  7884. # options accordingly. Note that the listed cases only cover the
  7885. # situations where additional linker options are needed (such as when
  7886. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7887. # vice versa); the common cases where no linker options are needed do
  7888. # not appear in the list.
  7889. echo 'int i;' > conftest.$ac_ext
  7890. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7891. (eval $ac_compile) 2>&5
  7892. ac_status=$?
  7893. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7894. test $ac_status = 0; }; then
  7895. case `$FILECMD conftest.o` in
  7896. *32-bit*)
  7897. case $host in
  7898. x86_64-*kfreebsd*-gnu)
  7899. LD="${LD-ld} -m elf_i386_fbsd"
  7900. ;;
  7901. x86_64-*linux*|x86_64-gnu*)
  7902. case `$FILECMD conftest.o` in
  7903. *x86-64*)
  7904. LD="${LD-ld} -m elf32_x86_64"
  7905. ;;
  7906. *)
  7907. LD="${LD-ld} -m elf_i386"
  7908. ;;
  7909. esac
  7910. ;;
  7911. powerpc64le-*linux*)
  7912. LD="${LD-ld} -m elf32lppclinux"
  7913. ;;
  7914. powerpc64-*linux*)
  7915. LD="${LD-ld} -m elf32ppclinux"
  7916. ;;
  7917. s390x-*linux*)
  7918. LD="${LD-ld} -m elf_s390"
  7919. ;;
  7920. sparc64-*linux*)
  7921. LD="${LD-ld} -m elf32_sparc"
  7922. ;;
  7923. esac
  7924. ;;
  7925. *64-bit*)
  7926. case $host in
  7927. x86_64-*kfreebsd*-gnu)
  7928. LD="${LD-ld} -m elf_x86_64_fbsd"
  7929. ;;
  7930. x86_64-*linux*|x86_64-gnu*)
  7931. LD="${LD-ld} -m elf_x86_64"
  7932. ;;
  7933. powerpcle-*linux*)
  7934. LD="${LD-ld} -m elf64lppc"
  7935. ;;
  7936. powerpc-*linux*)
  7937. LD="${LD-ld} -m elf64ppc"
  7938. ;;
  7939. s390*-*linux*|s390*-*tpf*)
  7940. LD="${LD-ld} -m elf64_s390"
  7941. ;;
  7942. sparc*-*linux*)
  7943. LD="${LD-ld} -m elf64_sparc"
  7944. ;;
  7945. esac
  7946. ;;
  7947. esac
  7948. fi
  7949. rm -rf conftest*
  7950. ;;
  7951. *-*-sco3.2v5*)
  7952. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7953. SAVE_CFLAGS=$CFLAGS
  7954. CFLAGS="$CFLAGS -belf"
  7955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7956. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7957. if test ${lt_cv_cc_needs_belf+y}
  7958. then :
  7959. printf %s "(cached) " >&6
  7960. else case e in #(
  7961. e) ac_ext=c
  7962. ac_cpp='$CPP $CPPFLAGS'
  7963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7967. /* end confdefs.h. */
  7968. int
  7969. main (void)
  7970. {
  7971. ;
  7972. return 0;
  7973. }
  7974. _ACEOF
  7975. if ac_fn_c_try_link "$LINENO"
  7976. then :
  7977. lt_cv_cc_needs_belf=yes
  7978. else case e in #(
  7979. e) lt_cv_cc_needs_belf=no ;;
  7980. esac
  7981. fi
  7982. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7983. conftest$ac_exeext conftest.$ac_ext
  7984. ac_ext=c
  7985. ac_cpp='$CPP $CPPFLAGS'
  7986. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7987. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7988. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7989. ;;
  7990. esac
  7991. fi
  7992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7993. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7994. if test yes != "$lt_cv_cc_needs_belf"; then
  7995. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7996. CFLAGS=$SAVE_CFLAGS
  7997. fi
  7998. ;;
  7999. *-*solaris*)
  8000. # Find out what ABI is being produced by ac_compile, and set linker
  8001. # options accordingly.
  8002. echo 'int i;' > conftest.$ac_ext
  8003. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8004. (eval $ac_compile) 2>&5
  8005. ac_status=$?
  8006. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8007. test $ac_status = 0; }; then
  8008. case `$FILECMD conftest.o` in
  8009. *64-bit*)
  8010. case $lt_cv_prog_gnu_ld in
  8011. yes*)
  8012. case $host in
  8013. i?86-*-solaris*|x86_64-*-solaris*)
  8014. LD="${LD-ld} -m elf_x86_64"
  8015. ;;
  8016. sparc*-*-solaris*)
  8017. LD="${LD-ld} -m elf64_sparc"
  8018. ;;
  8019. esac
  8020. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8021. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8022. LD=${LD-ld}_sol2
  8023. fi
  8024. ;;
  8025. *)
  8026. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8027. LD="${LD-ld} -64"
  8028. fi
  8029. ;;
  8030. esac
  8031. ;;
  8032. esac
  8033. fi
  8034. rm -rf conftest*
  8035. ;;
  8036. esac
  8037. need_locks=$enable_libtool_lock
  8038. if test -n "$ac_tool_prefix"; then
  8039. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8040. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8042. printf %s "checking for $ac_word... " >&6; }
  8043. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  8044. then :
  8045. printf %s "(cached) " >&6
  8046. else case e in #(
  8047. e) if test -n "$MANIFEST_TOOL"; then
  8048. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8049. else
  8050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8051. for as_dir in $PATH
  8052. do
  8053. IFS=$as_save_IFS
  8054. case $as_dir in #(((
  8055. '') as_dir=./ ;;
  8056. */) ;;
  8057. *) as_dir=$as_dir/ ;;
  8058. esac
  8059. for ac_exec_ext in '' $ac_executable_extensions; do
  8060. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8061. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8062. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8063. break 2
  8064. fi
  8065. done
  8066. done
  8067. IFS=$as_save_IFS
  8068. fi ;;
  8069. esac
  8070. fi
  8071. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8072. if test -n "$MANIFEST_TOOL"; then
  8073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8074. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  8075. else
  8076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8077. printf "%s\n" "no" >&6; }
  8078. fi
  8079. fi
  8080. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8081. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8082. # Extract the first word of "mt", so it can be a program name with args.
  8083. set dummy mt; ac_word=$2
  8084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8085. printf %s "checking for $ac_word... " >&6; }
  8086. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  8087. then :
  8088. printf %s "(cached) " >&6
  8089. else case e in #(
  8090. e) if test -n "$ac_ct_MANIFEST_TOOL"; then
  8091. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8092. else
  8093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8094. for as_dir in $PATH
  8095. do
  8096. IFS=$as_save_IFS
  8097. case $as_dir in #(((
  8098. '') as_dir=./ ;;
  8099. */) ;;
  8100. *) as_dir=$as_dir/ ;;
  8101. esac
  8102. for ac_exec_ext in '' $ac_executable_extensions; do
  8103. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8104. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8105. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8106. break 2
  8107. fi
  8108. done
  8109. done
  8110. IFS=$as_save_IFS
  8111. fi ;;
  8112. esac
  8113. fi
  8114. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8115. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8117. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  8118. else
  8119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8120. printf "%s\n" "no" >&6; }
  8121. fi
  8122. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8123. MANIFEST_TOOL=":"
  8124. else
  8125. case $cross_compiling:$ac_tool_warned in
  8126. yes:)
  8127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8128. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8129. ac_tool_warned=yes ;;
  8130. esac
  8131. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8132. fi
  8133. else
  8134. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8135. fi
  8136. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8138. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8139. if test ${lt_cv_path_manifest_tool+y}
  8140. then :
  8141. printf %s "(cached) " >&6
  8142. else case e in #(
  8143. e) lt_cv_path_manifest_tool=no
  8144. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8145. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8146. cat conftest.err >&5
  8147. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8148. lt_cv_path_manifest_tool=yes
  8149. fi
  8150. rm -f conftest* ;;
  8151. esac
  8152. fi
  8153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
  8154. printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
  8155. if test yes != "$lt_cv_path_manifest_tool"; then
  8156. MANIFEST_TOOL=:
  8157. fi
  8158. case $host_os in
  8159. rhapsody* | darwin*)
  8160. if test -n "$ac_tool_prefix"; then
  8161. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8162. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8164. printf %s "checking for $ac_word... " >&6; }
  8165. if test ${ac_cv_prog_DSYMUTIL+y}
  8166. then :
  8167. printf %s "(cached) " >&6
  8168. else case e in #(
  8169. e) if test -n "$DSYMUTIL"; then
  8170. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8171. else
  8172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8173. for as_dir in $PATH
  8174. do
  8175. IFS=$as_save_IFS
  8176. case $as_dir in #(((
  8177. '') as_dir=./ ;;
  8178. */) ;;
  8179. *) as_dir=$as_dir/ ;;
  8180. esac
  8181. for ac_exec_ext in '' $ac_executable_extensions; do
  8182. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8183. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8184. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8185. break 2
  8186. fi
  8187. done
  8188. done
  8189. IFS=$as_save_IFS
  8190. fi ;;
  8191. esac
  8192. fi
  8193. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8194. if test -n "$DSYMUTIL"; then
  8195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8196. printf "%s\n" "$DSYMUTIL" >&6; }
  8197. else
  8198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8199. printf "%s\n" "no" >&6; }
  8200. fi
  8201. fi
  8202. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8203. ac_ct_DSYMUTIL=$DSYMUTIL
  8204. # Extract the first word of "dsymutil", so it can be a program name with args.
  8205. set dummy dsymutil; ac_word=$2
  8206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8207. printf %s "checking for $ac_word... " >&6; }
  8208. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  8209. then :
  8210. printf %s "(cached) " >&6
  8211. else case e in #(
  8212. e) if test -n "$ac_ct_DSYMUTIL"; then
  8213. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8214. else
  8215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8216. for as_dir in $PATH
  8217. do
  8218. IFS=$as_save_IFS
  8219. case $as_dir in #(((
  8220. '') as_dir=./ ;;
  8221. */) ;;
  8222. *) as_dir=$as_dir/ ;;
  8223. esac
  8224. for ac_exec_ext in '' $ac_executable_extensions; do
  8225. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8226. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8227. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8228. break 2
  8229. fi
  8230. done
  8231. done
  8232. IFS=$as_save_IFS
  8233. fi ;;
  8234. esac
  8235. fi
  8236. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8237. if test -n "$ac_ct_DSYMUTIL"; then
  8238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8239. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  8240. else
  8241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8242. printf "%s\n" "no" >&6; }
  8243. fi
  8244. if test "x$ac_ct_DSYMUTIL" = x; then
  8245. DSYMUTIL=":"
  8246. else
  8247. case $cross_compiling:$ac_tool_warned in
  8248. yes:)
  8249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8250. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8251. ac_tool_warned=yes ;;
  8252. esac
  8253. DSYMUTIL=$ac_ct_DSYMUTIL
  8254. fi
  8255. else
  8256. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8257. fi
  8258. if test -n "$ac_tool_prefix"; then
  8259. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8260. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8262. printf %s "checking for $ac_word... " >&6; }
  8263. if test ${ac_cv_prog_NMEDIT+y}
  8264. then :
  8265. printf %s "(cached) " >&6
  8266. else case e in #(
  8267. e) if test -n "$NMEDIT"; then
  8268. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8269. else
  8270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8271. for as_dir in $PATH
  8272. do
  8273. IFS=$as_save_IFS
  8274. case $as_dir in #(((
  8275. '') as_dir=./ ;;
  8276. */) ;;
  8277. *) as_dir=$as_dir/ ;;
  8278. esac
  8279. for ac_exec_ext in '' $ac_executable_extensions; do
  8280. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8281. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8282. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8283. break 2
  8284. fi
  8285. done
  8286. done
  8287. IFS=$as_save_IFS
  8288. fi ;;
  8289. esac
  8290. fi
  8291. NMEDIT=$ac_cv_prog_NMEDIT
  8292. if test -n "$NMEDIT"; then
  8293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8294. printf "%s\n" "$NMEDIT" >&6; }
  8295. else
  8296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8297. printf "%s\n" "no" >&6; }
  8298. fi
  8299. fi
  8300. if test -z "$ac_cv_prog_NMEDIT"; then
  8301. ac_ct_NMEDIT=$NMEDIT
  8302. # Extract the first word of "nmedit", so it can be a program name with args.
  8303. set dummy nmedit; ac_word=$2
  8304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8305. printf %s "checking for $ac_word... " >&6; }
  8306. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  8307. then :
  8308. printf %s "(cached) " >&6
  8309. else case e in #(
  8310. e) if test -n "$ac_ct_NMEDIT"; then
  8311. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8312. else
  8313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8314. for as_dir in $PATH
  8315. do
  8316. IFS=$as_save_IFS
  8317. case $as_dir in #(((
  8318. '') as_dir=./ ;;
  8319. */) ;;
  8320. *) as_dir=$as_dir/ ;;
  8321. esac
  8322. for ac_exec_ext in '' $ac_executable_extensions; do
  8323. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8324. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8325. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8326. break 2
  8327. fi
  8328. done
  8329. done
  8330. IFS=$as_save_IFS
  8331. fi ;;
  8332. esac
  8333. fi
  8334. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8335. if test -n "$ac_ct_NMEDIT"; then
  8336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8337. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  8338. else
  8339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8340. printf "%s\n" "no" >&6; }
  8341. fi
  8342. if test "x$ac_ct_NMEDIT" = x; then
  8343. NMEDIT=":"
  8344. else
  8345. case $cross_compiling:$ac_tool_warned in
  8346. yes:)
  8347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8348. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8349. ac_tool_warned=yes ;;
  8350. esac
  8351. NMEDIT=$ac_ct_NMEDIT
  8352. fi
  8353. else
  8354. NMEDIT="$ac_cv_prog_NMEDIT"
  8355. fi
  8356. if test -n "$ac_tool_prefix"; then
  8357. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8358. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8360. printf %s "checking for $ac_word... " >&6; }
  8361. if test ${ac_cv_prog_LIPO+y}
  8362. then :
  8363. printf %s "(cached) " >&6
  8364. else case e in #(
  8365. e) if test -n "$LIPO"; then
  8366. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8367. else
  8368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8369. for as_dir in $PATH
  8370. do
  8371. IFS=$as_save_IFS
  8372. case $as_dir in #(((
  8373. '') as_dir=./ ;;
  8374. */) ;;
  8375. *) as_dir=$as_dir/ ;;
  8376. esac
  8377. for ac_exec_ext in '' $ac_executable_extensions; do
  8378. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8379. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8380. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8381. break 2
  8382. fi
  8383. done
  8384. done
  8385. IFS=$as_save_IFS
  8386. fi ;;
  8387. esac
  8388. fi
  8389. LIPO=$ac_cv_prog_LIPO
  8390. if test -n "$LIPO"; then
  8391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8392. printf "%s\n" "$LIPO" >&6; }
  8393. else
  8394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8395. printf "%s\n" "no" >&6; }
  8396. fi
  8397. fi
  8398. if test -z "$ac_cv_prog_LIPO"; then
  8399. ac_ct_LIPO=$LIPO
  8400. # Extract the first word of "lipo", so it can be a program name with args.
  8401. set dummy lipo; ac_word=$2
  8402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8403. printf %s "checking for $ac_word... " >&6; }
  8404. if test ${ac_cv_prog_ac_ct_LIPO+y}
  8405. then :
  8406. printf %s "(cached) " >&6
  8407. else case e in #(
  8408. e) if test -n "$ac_ct_LIPO"; then
  8409. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8410. else
  8411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8412. for as_dir in $PATH
  8413. do
  8414. IFS=$as_save_IFS
  8415. case $as_dir in #(((
  8416. '') as_dir=./ ;;
  8417. */) ;;
  8418. *) as_dir=$as_dir/ ;;
  8419. esac
  8420. for ac_exec_ext in '' $ac_executable_extensions; do
  8421. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8422. ac_cv_prog_ac_ct_LIPO="lipo"
  8423. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8424. break 2
  8425. fi
  8426. done
  8427. done
  8428. IFS=$as_save_IFS
  8429. fi ;;
  8430. esac
  8431. fi
  8432. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8433. if test -n "$ac_ct_LIPO"; then
  8434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8435. printf "%s\n" "$ac_ct_LIPO" >&6; }
  8436. else
  8437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8438. printf "%s\n" "no" >&6; }
  8439. fi
  8440. if test "x$ac_ct_LIPO" = x; then
  8441. LIPO=":"
  8442. else
  8443. case $cross_compiling:$ac_tool_warned in
  8444. yes:)
  8445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8446. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8447. ac_tool_warned=yes ;;
  8448. esac
  8449. LIPO=$ac_ct_LIPO
  8450. fi
  8451. else
  8452. LIPO="$ac_cv_prog_LIPO"
  8453. fi
  8454. if test -n "$ac_tool_prefix"; then
  8455. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8456. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8458. printf %s "checking for $ac_word... " >&6; }
  8459. if test ${ac_cv_prog_OTOOL+y}
  8460. then :
  8461. printf %s "(cached) " >&6
  8462. else case e in #(
  8463. e) if test -n "$OTOOL"; then
  8464. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8465. else
  8466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8467. for as_dir in $PATH
  8468. do
  8469. IFS=$as_save_IFS
  8470. case $as_dir in #(((
  8471. '') as_dir=./ ;;
  8472. */) ;;
  8473. *) as_dir=$as_dir/ ;;
  8474. esac
  8475. for ac_exec_ext in '' $ac_executable_extensions; do
  8476. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8477. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8478. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8479. break 2
  8480. fi
  8481. done
  8482. done
  8483. IFS=$as_save_IFS
  8484. fi ;;
  8485. esac
  8486. fi
  8487. OTOOL=$ac_cv_prog_OTOOL
  8488. if test -n "$OTOOL"; then
  8489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8490. printf "%s\n" "$OTOOL" >&6; }
  8491. else
  8492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8493. printf "%s\n" "no" >&6; }
  8494. fi
  8495. fi
  8496. if test -z "$ac_cv_prog_OTOOL"; then
  8497. ac_ct_OTOOL=$OTOOL
  8498. # Extract the first word of "otool", so it can be a program name with args.
  8499. set dummy otool; ac_word=$2
  8500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8501. printf %s "checking for $ac_word... " >&6; }
  8502. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  8503. then :
  8504. printf %s "(cached) " >&6
  8505. else case e in #(
  8506. e) if test -n "$ac_ct_OTOOL"; then
  8507. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8508. else
  8509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8510. for as_dir in $PATH
  8511. do
  8512. IFS=$as_save_IFS
  8513. case $as_dir in #(((
  8514. '') as_dir=./ ;;
  8515. */) ;;
  8516. *) as_dir=$as_dir/ ;;
  8517. esac
  8518. for ac_exec_ext in '' $ac_executable_extensions; do
  8519. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8520. ac_cv_prog_ac_ct_OTOOL="otool"
  8521. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8522. break 2
  8523. fi
  8524. done
  8525. done
  8526. IFS=$as_save_IFS
  8527. fi ;;
  8528. esac
  8529. fi
  8530. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8531. if test -n "$ac_ct_OTOOL"; then
  8532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8533. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  8534. else
  8535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8536. printf "%s\n" "no" >&6; }
  8537. fi
  8538. if test "x$ac_ct_OTOOL" = x; then
  8539. OTOOL=":"
  8540. else
  8541. case $cross_compiling:$ac_tool_warned in
  8542. yes:)
  8543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8544. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8545. ac_tool_warned=yes ;;
  8546. esac
  8547. OTOOL=$ac_ct_OTOOL
  8548. fi
  8549. else
  8550. OTOOL="$ac_cv_prog_OTOOL"
  8551. fi
  8552. if test -n "$ac_tool_prefix"; then
  8553. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8554. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8556. printf %s "checking for $ac_word... " >&6; }
  8557. if test ${ac_cv_prog_OTOOL64+y}
  8558. then :
  8559. printf %s "(cached) " >&6
  8560. else case e in #(
  8561. e) if test -n "$OTOOL64"; then
  8562. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8563. else
  8564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8565. for as_dir in $PATH
  8566. do
  8567. IFS=$as_save_IFS
  8568. case $as_dir in #(((
  8569. '') as_dir=./ ;;
  8570. */) ;;
  8571. *) as_dir=$as_dir/ ;;
  8572. esac
  8573. for ac_exec_ext in '' $ac_executable_extensions; do
  8574. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8575. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8576. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8577. break 2
  8578. fi
  8579. done
  8580. done
  8581. IFS=$as_save_IFS
  8582. fi ;;
  8583. esac
  8584. fi
  8585. OTOOL64=$ac_cv_prog_OTOOL64
  8586. if test -n "$OTOOL64"; then
  8587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8588. printf "%s\n" "$OTOOL64" >&6; }
  8589. else
  8590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8591. printf "%s\n" "no" >&6; }
  8592. fi
  8593. fi
  8594. if test -z "$ac_cv_prog_OTOOL64"; then
  8595. ac_ct_OTOOL64=$OTOOL64
  8596. # Extract the first word of "otool64", so it can be a program name with args.
  8597. set dummy otool64; ac_word=$2
  8598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8599. printf %s "checking for $ac_word... " >&6; }
  8600. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  8601. then :
  8602. printf %s "(cached) " >&6
  8603. else case e in #(
  8604. e) if test -n "$ac_ct_OTOOL64"; then
  8605. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8606. else
  8607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8608. for as_dir in $PATH
  8609. do
  8610. IFS=$as_save_IFS
  8611. case $as_dir in #(((
  8612. '') as_dir=./ ;;
  8613. */) ;;
  8614. *) as_dir=$as_dir/ ;;
  8615. esac
  8616. for ac_exec_ext in '' $ac_executable_extensions; do
  8617. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8618. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8619. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8620. break 2
  8621. fi
  8622. done
  8623. done
  8624. IFS=$as_save_IFS
  8625. fi ;;
  8626. esac
  8627. fi
  8628. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8629. if test -n "$ac_ct_OTOOL64"; then
  8630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8631. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  8632. else
  8633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8634. printf "%s\n" "no" >&6; }
  8635. fi
  8636. if test "x$ac_ct_OTOOL64" = x; then
  8637. OTOOL64=":"
  8638. else
  8639. case $cross_compiling:$ac_tool_warned in
  8640. yes:)
  8641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8642. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8643. ac_tool_warned=yes ;;
  8644. esac
  8645. OTOOL64=$ac_ct_OTOOL64
  8646. fi
  8647. else
  8648. OTOOL64="$ac_cv_prog_OTOOL64"
  8649. fi
  8650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8651. printf %s "checking for -single_module linker flag... " >&6; }
  8652. if test ${lt_cv_apple_cc_single_mod+y}
  8653. then :
  8654. printf %s "(cached) " >&6
  8655. else case e in #(
  8656. e) lt_cv_apple_cc_single_mod=no
  8657. if test -z "$LT_MULTI_MODULE"; then
  8658. # By default we will add the -single_module flag. You can override
  8659. # by either setting the environment variable LT_MULTI_MODULE
  8660. # non-empty at configure time, or by adding -multi_module to the
  8661. # link flags.
  8662. rm -rf libconftest.dylib*
  8663. echo "int foo(void){return 1;}" > conftest.c
  8664. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8665. -dynamiclib -Wl,-single_module conftest.c" >&5
  8666. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8667. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8668. _lt_result=$?
  8669. # If there is a non-empty error log, and "single_module"
  8670. # appears in it, assume the flag caused a linker warning
  8671. if test -s conftest.err && $GREP single_module conftest.err; then
  8672. cat conftest.err >&5
  8673. # Otherwise, if the output was created with a 0 exit code from
  8674. # the compiler, it worked.
  8675. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  8676. lt_cv_apple_cc_single_mod=yes
  8677. else
  8678. cat conftest.err >&5
  8679. fi
  8680. rm -rf libconftest.dylib*
  8681. rm -f conftest.*
  8682. fi ;;
  8683. esac
  8684. fi
  8685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8686. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  8687. # Feature test to disable chained fixups since it is not
  8688. # compatible with '-undefined dynamic_lookup'
  8689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
  8690. printf %s "checking for -no_fixup_chains linker flag... " >&6; }
  8691. if test ${lt_cv_support_no_fixup_chains+y}
  8692. then :
  8693. printf %s "(cached) " >&6
  8694. else case e in #(
  8695. e) save_LDFLAGS=$LDFLAGS
  8696. LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
  8697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8698. /* end confdefs.h. */
  8699. int
  8700. main (void)
  8701. {
  8702. ;
  8703. return 0;
  8704. }
  8705. _ACEOF
  8706. if ac_fn_c_try_link "$LINENO"
  8707. then :
  8708. lt_cv_support_no_fixup_chains=yes
  8709. else case e in #(
  8710. e) lt_cv_support_no_fixup_chains=no
  8711. ;;
  8712. esac
  8713. fi
  8714. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8715. conftest$ac_exeext conftest.$ac_ext
  8716. LDFLAGS=$save_LDFLAGS
  8717. ;;
  8718. esac
  8719. fi
  8720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
  8721. printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
  8722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8723. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  8724. if test ${lt_cv_ld_exported_symbols_list+y}
  8725. then :
  8726. printf %s "(cached) " >&6
  8727. else case e in #(
  8728. e) lt_cv_ld_exported_symbols_list=no
  8729. save_LDFLAGS=$LDFLAGS
  8730. echo "_main" > conftest.sym
  8731. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8733. /* end confdefs.h. */
  8734. int
  8735. main (void)
  8736. {
  8737. ;
  8738. return 0;
  8739. }
  8740. _ACEOF
  8741. if ac_fn_c_try_link "$LINENO"
  8742. then :
  8743. lt_cv_ld_exported_symbols_list=yes
  8744. else case e in #(
  8745. e) lt_cv_ld_exported_symbols_list=no ;;
  8746. esac
  8747. fi
  8748. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8749. conftest$ac_exeext conftest.$ac_ext
  8750. LDFLAGS=$save_LDFLAGS
  8751. ;;
  8752. esac
  8753. fi
  8754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8755. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  8756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8757. printf %s "checking for -force_load linker flag... " >&6; }
  8758. if test ${lt_cv_ld_force_load+y}
  8759. then :
  8760. printf %s "(cached) " >&6
  8761. else case e in #(
  8762. e) lt_cv_ld_force_load=no
  8763. cat > conftest.c << _LT_EOF
  8764. int forced_loaded() { return 2;}
  8765. _LT_EOF
  8766. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8767. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8768. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  8769. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  8770. echo "$RANLIB libconftest.a" >&5
  8771. $RANLIB libconftest.a 2>&5
  8772. cat > conftest.c << _LT_EOF
  8773. int main(void) { return 0;}
  8774. _LT_EOF
  8775. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8776. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8777. _lt_result=$?
  8778. if test -s conftest.err && $GREP force_load conftest.err; then
  8779. cat conftest.err >&5
  8780. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8781. lt_cv_ld_force_load=yes
  8782. else
  8783. cat conftest.err >&5
  8784. fi
  8785. rm -f conftest.err libconftest.a conftest conftest.c
  8786. rm -rf conftest.dSYM
  8787. ;;
  8788. esac
  8789. fi
  8790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8791. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  8792. case $host_os in
  8793. rhapsody* | darwin1.[012])
  8794. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8795. darwin1.*)
  8796. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8797. darwin*)
  8798. case $MACOSX_DEPLOYMENT_TARGET,$host in
  8799. 10.[012],*|,*powerpc*-darwin[5-8]*)
  8800. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8801. *)
  8802. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
  8803. if test yes = "$lt_cv_support_no_fixup_chains"; then
  8804. as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
  8805. fi
  8806. ;;
  8807. esac
  8808. ;;
  8809. esac
  8810. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8811. _lt_dar_single_mod='$single_module'
  8812. fi
  8813. _lt_dar_needs_single_mod=no
  8814. case $host_os in
  8815. rhapsody* | darwin1.*)
  8816. _lt_dar_needs_single_mod=yes ;;
  8817. darwin*)
  8818. # When targeting Mac OS X 10.4 (darwin 8) or later,
  8819. # -single_module is the default and -multi_module is unsupported.
  8820. # The toolchain on macOS 10.14 (darwin 18) and later cannot
  8821. # target any OS version that needs -single_module.
  8822. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8823. 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
  8824. _lt_dar_needs_single_mod=yes ;;
  8825. esac
  8826. ;;
  8827. esac
  8828. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8829. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8830. else
  8831. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8832. fi
  8833. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8834. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8835. else
  8836. _lt_dsymutil=
  8837. fi
  8838. ;;
  8839. esac
  8840. # func_munge_path_list VARIABLE PATH
  8841. # -----------------------------------
  8842. # VARIABLE is name of variable containing _space_ separated list of
  8843. # directories to be munged by the contents of PATH, which is string
  8844. # having a format:
  8845. # "DIR[:DIR]:"
  8846. # string "DIR[ DIR]" will be prepended to VARIABLE
  8847. # ":DIR[:DIR]"
  8848. # string "DIR[ DIR]" will be appended to VARIABLE
  8849. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8850. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8851. # "DIRA[ DIRA]" will be appended to VARIABLE
  8852. # "DIR[:DIR]"
  8853. # VARIABLE will be replaced by "DIR[ DIR]"
  8854. func_munge_path_list ()
  8855. {
  8856. case x$2 in
  8857. x)
  8858. ;;
  8859. *:)
  8860. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8861. ;;
  8862. x:*)
  8863. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8864. ;;
  8865. *::*)
  8866. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8867. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8868. ;;
  8869. *)
  8870. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8871. ;;
  8872. esac
  8873. }
  8874. ac_header= ac_cache=
  8875. for ac_item in $ac_header_c_list
  8876. do
  8877. if test $ac_cache; then
  8878. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  8879. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  8880. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  8881. fi
  8882. ac_header= ac_cache=
  8883. elif test $ac_header; then
  8884. ac_cache=$ac_item
  8885. else
  8886. ac_header=$ac_item
  8887. fi
  8888. done
  8889. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  8890. then :
  8891. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  8892. fi
  8893. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8894. "
  8895. if test "x$ac_cv_header_dlfcn_h" = xyes
  8896. then :
  8897. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  8898. fi
  8899. # Set options
  8900. enable_dlopen=no
  8901. enable_win32_dll=no
  8902. # Check whether --enable-shared was given.
  8903. if test ${enable_shared+y}
  8904. then :
  8905. enableval=$enable_shared; p=${PACKAGE-default}
  8906. case $enableval in
  8907. yes) enable_shared=yes ;;
  8908. no) enable_shared=no ;;
  8909. *)
  8910. enable_shared=no
  8911. # Look at the argument we got. We use all the common list separators.
  8912. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8913. for pkg in $enableval; do
  8914. IFS=$lt_save_ifs
  8915. if test "X$pkg" = "X$p"; then
  8916. enable_shared=yes
  8917. fi
  8918. done
  8919. IFS=$lt_save_ifs
  8920. ;;
  8921. esac
  8922. else case e in #(
  8923. e) enable_shared=yes ;;
  8924. esac
  8925. fi
  8926. # Check whether --enable-static was given.
  8927. if test ${enable_static+y}
  8928. then :
  8929. enableval=$enable_static; p=${PACKAGE-default}
  8930. case $enableval in
  8931. yes) enable_static=yes ;;
  8932. no) enable_static=no ;;
  8933. *)
  8934. enable_static=no
  8935. # Look at the argument we got. We use all the common list separators.
  8936. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8937. for pkg in $enableval; do
  8938. IFS=$lt_save_ifs
  8939. if test "X$pkg" = "X$p"; then
  8940. enable_static=yes
  8941. fi
  8942. done
  8943. IFS=$lt_save_ifs
  8944. ;;
  8945. esac
  8946. else case e in #(
  8947. e) enable_static=yes ;;
  8948. esac
  8949. fi
  8950. # Check whether --enable-pic was given.
  8951. if test ${enable_pic+y}
  8952. then :
  8953. enableval=$enable_pic; lt_p=${PACKAGE-default}
  8954. case $enableval in
  8955. yes|no) pic_mode=$enableval ;;
  8956. *)
  8957. pic_mode=default
  8958. # Look at the argument we got. We use all the common list separators.
  8959. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8960. for lt_pkg in $enableval; do
  8961. IFS=$lt_save_ifs
  8962. if test "X$lt_pkg" = "X$lt_p"; then
  8963. pic_mode=yes
  8964. fi
  8965. done
  8966. IFS=$lt_save_ifs
  8967. ;;
  8968. esac
  8969. else case e in #(
  8970. e) # Check whether --with-pic was given.
  8971. if test ${with_pic+y}
  8972. then :
  8973. withval=$with_pic; lt_p=${PACKAGE-default}
  8974. case $withval in
  8975. yes|no) pic_mode=$withval ;;
  8976. *)
  8977. pic_mode=default
  8978. # Look at the argument we got. We use all the common list separators.
  8979. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8980. for lt_pkg in $withval; do
  8981. IFS=$lt_save_ifs
  8982. if test "X$lt_pkg" = "X$lt_p"; then
  8983. pic_mode=yes
  8984. fi
  8985. done
  8986. IFS=$lt_save_ifs
  8987. ;;
  8988. esac
  8989. else case e in #(
  8990. e) pic_mode=default ;;
  8991. esac
  8992. fi
  8993. ;;
  8994. esac
  8995. fi
  8996. # Check whether --enable-fast-install was given.
  8997. if test ${enable_fast_install+y}
  8998. then :
  8999. enableval=$enable_fast_install; p=${PACKAGE-default}
  9000. case $enableval in
  9001. yes) enable_fast_install=yes ;;
  9002. no) enable_fast_install=no ;;
  9003. *)
  9004. enable_fast_install=no
  9005. # Look at the argument we got. We use all the common list separators.
  9006. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9007. for pkg in $enableval; do
  9008. IFS=$lt_save_ifs
  9009. if test "X$pkg" = "X$p"; then
  9010. enable_fast_install=yes
  9011. fi
  9012. done
  9013. IFS=$lt_save_ifs
  9014. ;;
  9015. esac
  9016. else case e in #(
  9017. e) enable_fast_install=yes ;;
  9018. esac
  9019. fi
  9020. shared_archive_member_spec=
  9021. case $host,$enable_shared in
  9022. power*-*-aix[5-9]*,yes)
  9023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  9024. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  9025. # Check whether --enable-aix-soname was given.
  9026. if test ${enable_aix_soname+y}
  9027. then :
  9028. enableval=$enable_aix_soname; case $enableval in
  9029. aix|svr4|both)
  9030. ;;
  9031. *)
  9032. as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
  9033. ;;
  9034. esac
  9035. lt_cv_with_aix_soname=$enable_aix_soname
  9036. else case e in #(
  9037. e) # Check whether --with-aix-soname was given.
  9038. if test ${with_aix_soname+y}
  9039. then :
  9040. withval=$with_aix_soname; case $withval in
  9041. aix|svr4|both)
  9042. ;;
  9043. *)
  9044. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  9045. ;;
  9046. esac
  9047. lt_cv_with_aix_soname=$with_aix_soname
  9048. else case e in #(
  9049. e) if test ${lt_cv_with_aix_soname+y}
  9050. then :
  9051. printf %s "(cached) " >&6
  9052. else case e in #(
  9053. e) lt_cv_with_aix_soname=aix ;;
  9054. esac
  9055. fi
  9056. ;;
  9057. esac
  9058. fi
  9059. enable_aix_soname=$lt_cv_with_aix_soname ;;
  9060. esac
  9061. fi
  9062. with_aix_soname=$enable_aix_soname
  9063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  9064. printf "%s\n" "$with_aix_soname" >&6; }
  9065. if test aix != "$with_aix_soname"; then
  9066. # For the AIX way of multilib, we name the shared archive member
  9067. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  9068. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  9069. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  9070. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  9071. if test 64 = "${OBJECT_MODE-32}"; then
  9072. shared_archive_member_spec=shr_64
  9073. else
  9074. shared_archive_member_spec=shr
  9075. fi
  9076. fi
  9077. ;;
  9078. *)
  9079. with_aix_soname=aix
  9080. ;;
  9081. esac
  9082. # This can be used to rebuild libtool when needed
  9083. LIBTOOL_DEPS=$ltmain
  9084. # Always use our own libtool.
  9085. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9086. test -z "$LN_S" && LN_S="ln -s"
  9087. if test -n "${ZSH_VERSION+set}"; then
  9088. setopt NO_GLOB_SUBST
  9089. fi
  9090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9091. printf %s "checking for objdir... " >&6; }
  9092. if test ${lt_cv_objdir+y}
  9093. then :
  9094. printf %s "(cached) " >&6
  9095. else case e in #(
  9096. e) rm -f .libs 2>/dev/null
  9097. mkdir .libs 2>/dev/null
  9098. if test -d .libs; then
  9099. lt_cv_objdir=.libs
  9100. else
  9101. # MS-DOS does not allow filenames that begin with a dot.
  9102. lt_cv_objdir=_libs
  9103. fi
  9104. rmdir .libs 2>/dev/null ;;
  9105. esac
  9106. fi
  9107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9108. printf "%s\n" "$lt_cv_objdir" >&6; }
  9109. objdir=$lt_cv_objdir
  9110. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  9111. case $host_os in
  9112. aix3*)
  9113. # AIX sometimes has problems with the GCC collect2 program. For some
  9114. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9115. # vanish in a puff of smoke.
  9116. if test set != "${COLLECT_NAMES+set}"; then
  9117. COLLECT_NAMES=
  9118. export COLLECT_NAMES
  9119. fi
  9120. ;;
  9121. esac
  9122. # Global variables:
  9123. ofile=libtool
  9124. can_build_shared=yes
  9125. # All known linkers require a '.a' archive for static linking (except MSVC and
  9126. # ICC, which need '.lib').
  9127. libext=a
  9128. with_gnu_ld=$lt_cv_prog_gnu_ld
  9129. old_CC=$CC
  9130. old_CFLAGS=$CFLAGS
  9131. # Set sane defaults for various variables
  9132. test -z "$CC" && CC=cc
  9133. test -z "$LTCC" && LTCC=$CC
  9134. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9135. test -z "$LD" && LD=ld
  9136. test -z "$ac_objext" && ac_objext=o
  9137. func_cc_basename $compiler
  9138. cc_basename=$func_cc_basename_result
  9139. # Only perform the check for file, if the check method requires it
  9140. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9141. case $deplibs_check_method in
  9142. file_magic*)
  9143. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9145. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  9146. if test ${lt_cv_path_MAGIC_CMD+y}
  9147. then :
  9148. printf %s "(cached) " >&6
  9149. else case e in #(
  9150. e) case $MAGIC_CMD in
  9151. [\\/*] | ?:[\\/]*)
  9152. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9153. ;;
  9154. *)
  9155. lt_save_MAGIC_CMD=$MAGIC_CMD
  9156. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9157. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9158. for ac_dir in $ac_dummy; do
  9159. IFS=$lt_save_ifs
  9160. test -z "$ac_dir" && ac_dir=.
  9161. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  9162. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  9163. if test -n "$file_magic_test_file"; then
  9164. case $deplibs_check_method in
  9165. "file_magic "*)
  9166. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9167. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9168. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9169. $EGREP "$file_magic_regex" > /dev/null; then
  9170. :
  9171. else
  9172. cat <<_LT_EOF 1>&2
  9173. *** Warning: the command libtool uses to detect shared libraries,
  9174. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9175. *** The result is that libtool may fail to recognize shared libraries
  9176. *** as such. This will affect the creation of libtool libraries that
  9177. *** depend on shared libraries, but programs linked with such libtool
  9178. *** libraries will work regardless of this problem. Nevertheless, you
  9179. *** may want to report the problem to your system manager and/or to
  9180. *** bug-libtool@gnu.org
  9181. _LT_EOF
  9182. fi ;;
  9183. esac
  9184. fi
  9185. break
  9186. fi
  9187. done
  9188. IFS=$lt_save_ifs
  9189. MAGIC_CMD=$lt_save_MAGIC_CMD
  9190. ;;
  9191. esac ;;
  9192. esac
  9193. fi
  9194. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9195. if test -n "$MAGIC_CMD"; then
  9196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9197. printf "%s\n" "$MAGIC_CMD" >&6; }
  9198. else
  9199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9200. printf "%s\n" "no" >&6; }
  9201. fi
  9202. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9203. if test -n "$ac_tool_prefix"; then
  9204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9205. printf %s "checking for file... " >&6; }
  9206. if test ${lt_cv_path_MAGIC_CMD+y}
  9207. then :
  9208. printf %s "(cached) " >&6
  9209. else case e in #(
  9210. e) case $MAGIC_CMD in
  9211. [\\/*] | ?:[\\/]*)
  9212. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9213. ;;
  9214. *)
  9215. lt_save_MAGIC_CMD=$MAGIC_CMD
  9216. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9217. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9218. for ac_dir in $ac_dummy; do
  9219. IFS=$lt_save_ifs
  9220. test -z "$ac_dir" && ac_dir=.
  9221. if test -f "$ac_dir/file"; then
  9222. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  9223. if test -n "$file_magic_test_file"; then
  9224. case $deplibs_check_method in
  9225. "file_magic "*)
  9226. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9227. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9228. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9229. $EGREP "$file_magic_regex" > /dev/null; then
  9230. :
  9231. else
  9232. cat <<_LT_EOF 1>&2
  9233. *** Warning: the command libtool uses to detect shared libraries,
  9234. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9235. *** The result is that libtool may fail to recognize shared libraries
  9236. *** as such. This will affect the creation of libtool libraries that
  9237. *** depend on shared libraries, but programs linked with such libtool
  9238. *** libraries will work regardless of this problem. Nevertheless, you
  9239. *** may want to report the problem to your system manager and/or to
  9240. *** bug-libtool@gnu.org
  9241. _LT_EOF
  9242. fi ;;
  9243. esac
  9244. fi
  9245. break
  9246. fi
  9247. done
  9248. IFS=$lt_save_ifs
  9249. MAGIC_CMD=$lt_save_MAGIC_CMD
  9250. ;;
  9251. esac ;;
  9252. esac
  9253. fi
  9254. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9255. if test -n "$MAGIC_CMD"; then
  9256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9257. printf "%s\n" "$MAGIC_CMD" >&6; }
  9258. else
  9259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9260. printf "%s\n" "no" >&6; }
  9261. fi
  9262. else
  9263. MAGIC_CMD=:
  9264. fi
  9265. fi
  9266. fi
  9267. ;;
  9268. esac
  9269. # Use C for the default configuration in the libtool script
  9270. lt_save_CC=$CC
  9271. ac_ext=c
  9272. ac_cpp='$CPP $CPPFLAGS'
  9273. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9274. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9275. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9276. # Source file extension for C test sources.
  9277. ac_ext=c
  9278. # Object file extension for compiled C test sources.
  9279. objext=o
  9280. objext=$objext
  9281. # Code to be used in simple compile tests
  9282. lt_simple_compile_test_code="int some_variable = 0;"
  9283. # Code to be used in simple link tests
  9284. lt_simple_link_test_code='int main(void){return(0);}'
  9285. # If no C compiler was specified, use CC.
  9286. LTCC=${LTCC-"$CC"}
  9287. # If no C compiler flags were specified, use CFLAGS.
  9288. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9289. # Allow CC to be a program name with arguments.
  9290. compiler=$CC
  9291. # Save the default compiler, since it gets overwritten when the other
  9292. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9293. compiler_DEFAULT=$CC
  9294. # save warnings/boilerplate of simple test code
  9295. ac_outfile=conftest.$ac_objext
  9296. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9297. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9298. _lt_compiler_boilerplate=`cat conftest.err`
  9299. $RM conftest*
  9300. ac_outfile=conftest.$ac_objext
  9301. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9302. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9303. _lt_linker_boilerplate=`cat conftest.err`
  9304. $RM -r conftest*
  9305. ## CAVEAT EMPTOR:
  9306. ## There is no encapsulation within the following macros, do not change
  9307. ## the running order or otherwise move them around unless you know exactly
  9308. ## what you are doing...
  9309. if test -n "$compiler"; then
  9310. lt_prog_compiler_no_builtin_flag=
  9311. if test yes = "$GCC"; then
  9312. case $cc_basename in
  9313. nvcc*)
  9314. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9315. *)
  9316. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9317. esac
  9318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9319. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9320. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  9321. then :
  9322. printf %s "(cached) " >&6
  9323. else case e in #(
  9324. e) lt_cv_prog_compiler_rtti_exceptions=no
  9325. ac_outfile=conftest.$ac_objext
  9326. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9327. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  9328. # Insert the option either (1) after the last *FLAGS variable, or
  9329. # (2) before a word containing "conftest.", or (3) at the end.
  9330. # Note that $ac_compile itself does not contain backslashes and begins
  9331. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9332. # The option is referenced via a variable to avoid confusing sed.
  9333. lt_compile=`echo "$ac_compile" | $SED \
  9334. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9335. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9336. -e 's:$: $lt_compiler_flag:'`
  9337. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9338. (eval "$lt_compile" 2>conftest.err)
  9339. ac_status=$?
  9340. cat conftest.err >&5
  9341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9342. if (exit $ac_status) && test -s "$ac_outfile"; then
  9343. # The compiler can only warn and ignore the option if not recognized
  9344. # So say no if there are warnings other than the usual output.
  9345. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9346. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9347. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9348. lt_cv_prog_compiler_rtti_exceptions=yes
  9349. fi
  9350. fi
  9351. $RM conftest*
  9352. ;;
  9353. esac
  9354. fi
  9355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9356. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9357. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  9358. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9359. else
  9360. :
  9361. fi
  9362. fi
  9363. lt_prog_compiler_wl=
  9364. lt_prog_compiler_pic=
  9365. lt_prog_compiler_static=
  9366. if test yes = "$GCC"; then
  9367. lt_prog_compiler_wl='-Wl,'
  9368. lt_prog_compiler_static='-static'
  9369. case $host_os in
  9370. aix*)
  9371. # All AIX code is PIC.
  9372. if test ia64 = "$host_cpu"; then
  9373. # AIX 5 now supports IA64 processor
  9374. lt_prog_compiler_static='-Bstatic'
  9375. fi
  9376. lt_prog_compiler_pic='-fPIC'
  9377. ;;
  9378. amigaos*)
  9379. case $host_cpu in
  9380. powerpc)
  9381. # see comment about AmigaOS4 .so support
  9382. lt_prog_compiler_pic='-fPIC'
  9383. ;;
  9384. m68k)
  9385. # FIXME: we need at least 68020 code to build shared libraries, but
  9386. # adding the '-m68020' flag to GCC prevents building anything better,
  9387. # like '-m68040'.
  9388. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9389. ;;
  9390. esac
  9391. ;;
  9392. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9393. # PIC is the default for these OSes.
  9394. ;;
  9395. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  9396. # This hack is so that the source file can tell whether it is being
  9397. # built for inclusion in a dll (and should export symbols for example).
  9398. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9399. # (--disable-auto-import) libraries
  9400. lt_prog_compiler_pic='-DDLL_EXPORT'
  9401. case $host_os in
  9402. os2*)
  9403. lt_prog_compiler_static='$wl-static'
  9404. ;;
  9405. esac
  9406. ;;
  9407. darwin* | rhapsody*)
  9408. # PIC is the default on this platform
  9409. # Common symbols not allowed in MH_DYLIB files
  9410. lt_prog_compiler_pic='-fno-common'
  9411. ;;
  9412. haiku*)
  9413. # PIC is the default for Haiku.
  9414. # The "-static" flag exists, but is broken.
  9415. lt_prog_compiler_static=
  9416. ;;
  9417. hpux*)
  9418. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9419. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9420. # sets the default TLS model and affects inlining.
  9421. case $host_cpu in
  9422. hppa*64*)
  9423. # +Z the default
  9424. ;;
  9425. *)
  9426. lt_prog_compiler_pic='-fPIC'
  9427. ;;
  9428. esac
  9429. ;;
  9430. interix[3-9]*)
  9431. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9432. # Instead, we relocate shared libraries at runtime.
  9433. ;;
  9434. msdosdjgpp*)
  9435. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9436. # on systems that don't support them.
  9437. lt_prog_compiler_can_build_shared=no
  9438. enable_shared=no
  9439. ;;
  9440. *nto* | *qnx*)
  9441. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9442. # it will coredump.
  9443. lt_prog_compiler_pic='-fPIC -shared'
  9444. ;;
  9445. sysv4*MP*)
  9446. if test -d /usr/nec; then
  9447. lt_prog_compiler_pic=-Kconform_pic
  9448. fi
  9449. ;;
  9450. *)
  9451. lt_prog_compiler_pic='-fPIC'
  9452. ;;
  9453. esac
  9454. case $cc_basename in
  9455. nvcc*) # Cuda Compiler Driver 2.2
  9456. lt_prog_compiler_wl='-Xlinker '
  9457. if test -n "$lt_prog_compiler_pic"; then
  9458. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9459. fi
  9460. ;;
  9461. esac
  9462. else
  9463. # PORTME Check for flag to pass linker flags through the system compiler.
  9464. case $host_os in
  9465. aix*)
  9466. lt_prog_compiler_wl='-Wl,'
  9467. if test ia64 = "$host_cpu"; then
  9468. # AIX 5 now supports IA64 processor
  9469. lt_prog_compiler_static='-Bstatic'
  9470. else
  9471. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9472. fi
  9473. ;;
  9474. darwin* | rhapsody*)
  9475. # PIC is the default on this platform
  9476. # Common symbols not allowed in MH_DYLIB files
  9477. lt_prog_compiler_pic='-fno-common'
  9478. case $cc_basename in
  9479. nagfor*)
  9480. # NAG Fortran compiler
  9481. lt_prog_compiler_wl='-Wl,-Wl,,'
  9482. lt_prog_compiler_pic='-PIC'
  9483. lt_prog_compiler_static='-Bstatic'
  9484. ;;
  9485. esac
  9486. ;;
  9487. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  9488. # This hack is so that the source file can tell whether it is being
  9489. # built for inclusion in a dll (and should export symbols for example).
  9490. lt_prog_compiler_pic='-DDLL_EXPORT'
  9491. case $host_os in
  9492. os2*)
  9493. lt_prog_compiler_static='$wl-static'
  9494. ;;
  9495. esac
  9496. ;;
  9497. hpux9* | hpux10* | hpux11*)
  9498. lt_prog_compiler_wl='-Wl,'
  9499. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9500. # not for PA HP-UX.
  9501. case $host_cpu in
  9502. hppa*64*|ia64*)
  9503. # +Z the default
  9504. ;;
  9505. *)
  9506. lt_prog_compiler_pic='+Z'
  9507. ;;
  9508. esac
  9509. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9510. lt_prog_compiler_static='$wl-a ${wl}archive'
  9511. ;;
  9512. irix5* | irix6* | nonstopux*)
  9513. lt_prog_compiler_wl='-Wl,'
  9514. # PIC (with -KPIC) is the default.
  9515. lt_prog_compiler_static='-non_shared'
  9516. ;;
  9517. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9518. case $cc_basename in
  9519. # old Intel for x86_64, which still supported -KPIC.
  9520. ecc*)
  9521. lt_prog_compiler_wl='-Wl,'
  9522. lt_prog_compiler_pic='-KPIC'
  9523. lt_prog_compiler_static='-static'
  9524. ;;
  9525. *flang* | ftn | f18* | f95*)
  9526. # Flang compiler.
  9527. lt_prog_compiler_wl='-Wl,'
  9528. lt_prog_compiler_pic='-fPIC'
  9529. lt_prog_compiler_static='-static'
  9530. ;;
  9531. # flang / f18. f95 an alias for gfortran or flang on Debian
  9532. flang* | f18* | f95*)
  9533. lt_prog_compiler_wl='-Wl,'
  9534. lt_prog_compiler_pic='-fPIC'
  9535. lt_prog_compiler_static='-static'
  9536. ;;
  9537. # icc used to be incompatible with GCC.
  9538. # ICC 10 doesn't accept -KPIC any more.
  9539. icc* | ifort*)
  9540. lt_prog_compiler_wl='-Wl,'
  9541. lt_prog_compiler_pic='-fPIC'
  9542. lt_prog_compiler_static='-static'
  9543. ;;
  9544. # Lahey Fortran 8.1.
  9545. lf95*)
  9546. lt_prog_compiler_wl='-Wl,'
  9547. lt_prog_compiler_pic='--shared'
  9548. lt_prog_compiler_static='--static'
  9549. ;;
  9550. nagfor*)
  9551. # NAG Fortran compiler
  9552. lt_prog_compiler_wl='-Wl,-Wl,,'
  9553. lt_prog_compiler_pic='-PIC'
  9554. lt_prog_compiler_static='-Bstatic'
  9555. ;;
  9556. tcc*)
  9557. # Fabrice Bellard et al's Tiny C Compiler
  9558. lt_prog_compiler_wl='-Wl,'
  9559. lt_prog_compiler_pic='-fPIC'
  9560. lt_prog_compiler_static='-static'
  9561. ;;
  9562. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9563. # Portland Group compilers (*not* the Pentium gcc compiler,
  9564. # which looks to be a dead project)
  9565. lt_prog_compiler_wl='-Wl,'
  9566. lt_prog_compiler_pic='-fpic'
  9567. lt_prog_compiler_static='-Bstatic'
  9568. ;;
  9569. ccc*)
  9570. lt_prog_compiler_wl='-Wl,'
  9571. # All Alpha code is PIC.
  9572. lt_prog_compiler_static='-non_shared'
  9573. ;;
  9574. xl* | bgxl* | bgf* | mpixl*)
  9575. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9576. lt_prog_compiler_wl='-Wl,'
  9577. lt_prog_compiler_pic='-qpic'
  9578. lt_prog_compiler_static='-qstaticlink'
  9579. ;;
  9580. *)
  9581. case `$CC -V 2>&1 | $SED 5q` in
  9582. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9583. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9584. lt_prog_compiler_pic='-KPIC'
  9585. lt_prog_compiler_static='-Bstatic'
  9586. lt_prog_compiler_wl=''
  9587. ;;
  9588. *Sun\ F* | *Sun*Fortran*)
  9589. lt_prog_compiler_pic='-KPIC'
  9590. lt_prog_compiler_static='-Bstatic'
  9591. lt_prog_compiler_wl='-Qoption ld '
  9592. ;;
  9593. *Sun\ C*)
  9594. # Sun C 5.9
  9595. lt_prog_compiler_pic='-KPIC'
  9596. lt_prog_compiler_static='-Bstatic'
  9597. lt_prog_compiler_wl='-Wl,'
  9598. ;;
  9599. *Intel*\ [CF]*Compiler*)
  9600. lt_prog_compiler_wl='-Wl,'
  9601. lt_prog_compiler_pic='-fPIC'
  9602. lt_prog_compiler_static='-static'
  9603. ;;
  9604. *Portland\ Group*)
  9605. lt_prog_compiler_wl='-Wl,'
  9606. lt_prog_compiler_pic='-fpic'
  9607. lt_prog_compiler_static='-Bstatic'
  9608. ;;
  9609. esac
  9610. ;;
  9611. esac
  9612. ;;
  9613. newsos6)
  9614. lt_prog_compiler_pic='-KPIC'
  9615. lt_prog_compiler_static='-Bstatic'
  9616. ;;
  9617. *-mlibc)
  9618. lt_prog_compiler_wl='-Wl,'
  9619. lt_prog_compiler_pic='-fPIC'
  9620. lt_prog_compiler_static='-static'
  9621. ;;
  9622. *nto* | *qnx*)
  9623. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9624. # it will coredump.
  9625. lt_prog_compiler_pic='-fPIC -shared'
  9626. ;;
  9627. osf3* | osf4* | osf5*)
  9628. lt_prog_compiler_wl='-Wl,'
  9629. # All OSF/1 code is PIC.
  9630. lt_prog_compiler_static='-non_shared'
  9631. ;;
  9632. rdos*)
  9633. lt_prog_compiler_static='-non_shared'
  9634. ;;
  9635. serenity*)
  9636. ;;
  9637. solaris*)
  9638. lt_prog_compiler_pic='-KPIC'
  9639. lt_prog_compiler_static='-Bstatic'
  9640. case $cc_basename in
  9641. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9642. lt_prog_compiler_wl='-Qoption ld ';;
  9643. *)
  9644. lt_prog_compiler_wl='-Wl,';;
  9645. esac
  9646. ;;
  9647. sunos4*)
  9648. lt_prog_compiler_wl='-Qoption ld '
  9649. lt_prog_compiler_pic='-PIC'
  9650. lt_prog_compiler_static='-Bstatic'
  9651. ;;
  9652. sysv4 | sysv4.2uw2* | sysv4.3*)
  9653. lt_prog_compiler_wl='-Wl,'
  9654. lt_prog_compiler_pic='-KPIC'
  9655. lt_prog_compiler_static='-Bstatic'
  9656. ;;
  9657. sysv4*MP*)
  9658. if test -d /usr/nec; then
  9659. lt_prog_compiler_pic='-Kconform_pic'
  9660. lt_prog_compiler_static='-Bstatic'
  9661. fi
  9662. ;;
  9663. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9664. lt_prog_compiler_wl='-Wl,'
  9665. lt_prog_compiler_pic='-KPIC'
  9666. lt_prog_compiler_static='-Bstatic'
  9667. ;;
  9668. unicos*)
  9669. lt_prog_compiler_wl='-Wl,'
  9670. lt_prog_compiler_can_build_shared=no
  9671. ;;
  9672. uts4*)
  9673. lt_prog_compiler_pic='-pic'
  9674. lt_prog_compiler_static='-Bstatic'
  9675. ;;
  9676. *)
  9677. lt_prog_compiler_can_build_shared=no
  9678. ;;
  9679. esac
  9680. fi
  9681. case $host_os in
  9682. # For platforms that do not support PIC, -DPIC is meaningless:
  9683. *djgpp*)
  9684. lt_prog_compiler_pic=
  9685. ;;
  9686. *)
  9687. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9688. ;;
  9689. esac
  9690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9691. printf %s "checking for $compiler option to produce PIC... " >&6; }
  9692. if test ${lt_cv_prog_compiler_pic+y}
  9693. then :
  9694. printf %s "(cached) " >&6
  9695. else case e in #(
  9696. e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
  9697. esac
  9698. fi
  9699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9700. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  9701. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9702. #
  9703. # Check to make sure the PIC flag actually works.
  9704. #
  9705. if test -n "$lt_prog_compiler_pic"; then
  9706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9707. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9708. if test ${lt_cv_prog_compiler_pic_works+y}
  9709. then :
  9710. printf %s "(cached) " >&6
  9711. else case e in #(
  9712. e) lt_cv_prog_compiler_pic_works=no
  9713. ac_outfile=conftest.$ac_objext
  9714. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9715. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9716. # Insert the option either (1) after the last *FLAGS variable, or
  9717. # (2) before a word containing "conftest.", or (3) at the end.
  9718. # Note that $ac_compile itself does not contain backslashes and begins
  9719. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9720. # The option is referenced via a variable to avoid confusing sed.
  9721. lt_compile=`echo "$ac_compile" | $SED \
  9722. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9723. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9724. -e 's:$: $lt_compiler_flag:'`
  9725. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9726. (eval "$lt_compile" 2>conftest.err)
  9727. ac_status=$?
  9728. cat conftest.err >&5
  9729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9730. if (exit $ac_status) && test -s "$ac_outfile"; then
  9731. # The compiler can only warn and ignore the option if not recognized
  9732. # So say no if there are warnings other than the usual output.
  9733. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9734. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9735. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9736. lt_cv_prog_compiler_pic_works=yes
  9737. fi
  9738. fi
  9739. $RM conftest*
  9740. ;;
  9741. esac
  9742. fi
  9743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9744. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  9745. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9746. case $lt_prog_compiler_pic in
  9747. "" | " "*) ;;
  9748. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9749. esac
  9750. else
  9751. lt_prog_compiler_pic=
  9752. lt_prog_compiler_can_build_shared=no
  9753. fi
  9754. fi
  9755. #
  9756. # Check to make sure the static flag actually works.
  9757. #
  9758. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9760. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9761. if test ${lt_cv_prog_compiler_static_works+y}
  9762. then :
  9763. printf %s "(cached) " >&6
  9764. else case e in #(
  9765. e) lt_cv_prog_compiler_static_works=no
  9766. save_LDFLAGS=$LDFLAGS
  9767. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9768. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9769. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9770. # The linker can only warn and ignore the option if not recognized
  9771. # So say no if there are warnings
  9772. if test -s conftest.err; then
  9773. # Append any errors to the config.log.
  9774. cat conftest.err 1>&5
  9775. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9776. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9777. if diff conftest.exp conftest.er2 >/dev/null; then
  9778. lt_cv_prog_compiler_static_works=yes
  9779. fi
  9780. else
  9781. lt_cv_prog_compiler_static_works=yes
  9782. fi
  9783. fi
  9784. $RM -r conftest*
  9785. LDFLAGS=$save_LDFLAGS
  9786. ;;
  9787. esac
  9788. fi
  9789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9790. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  9791. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9792. :
  9793. else
  9794. lt_prog_compiler_static=
  9795. fi
  9796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9797. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9798. if test ${lt_cv_prog_compiler_c_o+y}
  9799. then :
  9800. printf %s "(cached) " >&6
  9801. else case e in #(
  9802. e) lt_cv_prog_compiler_c_o=no
  9803. $RM -r conftest 2>/dev/null
  9804. mkdir conftest
  9805. cd conftest
  9806. mkdir out
  9807. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9808. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9809. # Insert the option either (1) after the last *FLAGS variable, or
  9810. # (2) before a word containing "conftest.", or (3) at the end.
  9811. # Note that $ac_compile itself does not contain backslashes and begins
  9812. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9813. lt_compile=`echo "$ac_compile" | $SED \
  9814. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9815. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9816. -e 's:$: $lt_compiler_flag:'`
  9817. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9818. (eval "$lt_compile" 2>out/conftest.err)
  9819. ac_status=$?
  9820. cat out/conftest.err >&5
  9821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9822. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9823. then
  9824. # The compiler can only warn and ignore the option if not recognized
  9825. # So say no if there are warnings
  9826. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9827. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9828. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9829. lt_cv_prog_compiler_c_o=yes
  9830. fi
  9831. fi
  9832. chmod u+w . 2>&5
  9833. $RM conftest*
  9834. # SGI C++ compiler will create directory out/ii_files/ for
  9835. # template instantiation
  9836. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9837. $RM out/* && rmdir out
  9838. cd ..
  9839. $RM -r conftest
  9840. $RM conftest*
  9841. ;;
  9842. esac
  9843. fi
  9844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9845. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9847. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9848. if test ${lt_cv_prog_compiler_c_o+y}
  9849. then :
  9850. printf %s "(cached) " >&6
  9851. else case e in #(
  9852. e) lt_cv_prog_compiler_c_o=no
  9853. $RM -r conftest 2>/dev/null
  9854. mkdir conftest
  9855. cd conftest
  9856. mkdir out
  9857. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9858. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9859. # Insert the option either (1) after the last *FLAGS variable, or
  9860. # (2) before a word containing "conftest.", or (3) at the end.
  9861. # Note that $ac_compile itself does not contain backslashes and begins
  9862. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9863. lt_compile=`echo "$ac_compile" | $SED \
  9864. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9865. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9866. -e 's:$: $lt_compiler_flag:'`
  9867. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9868. (eval "$lt_compile" 2>out/conftest.err)
  9869. ac_status=$?
  9870. cat out/conftest.err >&5
  9871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9872. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9873. then
  9874. # The compiler can only warn and ignore the option if not recognized
  9875. # So say no if there are warnings
  9876. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9877. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9878. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9879. lt_cv_prog_compiler_c_o=yes
  9880. fi
  9881. fi
  9882. chmod u+w . 2>&5
  9883. $RM conftest*
  9884. # SGI C++ compiler will create directory out/ii_files/ for
  9885. # template instantiation
  9886. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9887. $RM out/* && rmdir out
  9888. cd ..
  9889. $RM -r conftest
  9890. $RM conftest*
  9891. ;;
  9892. esac
  9893. fi
  9894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9895. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9896. hard_links=nottested
  9897. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9898. # do not overwrite the value of need_locks provided by the user
  9899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9900. printf %s "checking if we can lock with hard links... " >&6; }
  9901. hard_links=yes
  9902. $RM conftest*
  9903. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9904. touch conftest.a
  9905. ln conftest.a conftest.b 2>&5 || hard_links=no
  9906. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9908. printf "%s\n" "$hard_links" >&6; }
  9909. if test no = "$hard_links"; then
  9910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9911. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9912. need_locks=warn
  9913. fi
  9914. else
  9915. need_locks=no
  9916. fi
  9917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9918. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9919. runpath_var=
  9920. allow_undefined_flag=
  9921. always_export_symbols=no
  9922. archive_cmds=
  9923. archive_expsym_cmds=
  9924. compiler_needs_object=no
  9925. enable_shared_with_static_runtimes=no
  9926. export_dynamic_flag_spec=
  9927. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9928. hardcode_automatic=no
  9929. hardcode_direct=no
  9930. hardcode_direct_absolute=no
  9931. hardcode_libdir_flag_spec=
  9932. hardcode_libdir_separator=
  9933. hardcode_minus_L=no
  9934. hardcode_shlibpath_var=unsupported
  9935. inherit_rpath=no
  9936. link_all_deplibs=unknown
  9937. module_cmds=
  9938. module_expsym_cmds=
  9939. old_archive_from_new_cmds=
  9940. old_archive_from_expsyms_cmds=
  9941. thread_safe_flag_spec=
  9942. whole_archive_flag_spec=
  9943. # include_expsyms should be a list of space-separated symbols to be *always*
  9944. # included in the symbol list
  9945. include_expsyms=
  9946. # exclude_expsyms can be an extended regexp of symbols to exclude
  9947. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9948. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9949. # as well as any symbol that contains 'd'.
  9950. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9951. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9952. # platforms (ab)use it in PIC code, but their linkers get confused if
  9953. # the symbol is explicitly referenced. Since portable code cannot
  9954. # rely on this symbol name, it's probably fine to never include it in
  9955. # preloaded symbol tables.
  9956. # Exclude shared library initialization/finalization symbols.
  9957. extract_expsyms_cmds=
  9958. case $host_os in
  9959. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9960. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  9961. # When not using gcc, we currently assume that we are using
  9962. # Microsoft Visual C++ or Intel C++ Compiler.
  9963. if test yes != "$GCC"; then
  9964. with_gnu_ld=no
  9965. fi
  9966. ;;
  9967. interix*)
  9968. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  9969. with_gnu_ld=yes
  9970. ;;
  9971. linux* | k*bsd*-gnu | gnu*)
  9972. link_all_deplibs=no
  9973. ;;
  9974. esac
  9975. ld_shlibs=yes
  9976. # On some targets, GNU ld is compatible enough with the native linker
  9977. # that we're better off using the native interface for both.
  9978. lt_use_gnu_ld_interface=no
  9979. if test yes = "$with_gnu_ld"; then
  9980. case $host_os in
  9981. aix*)
  9982. # The AIX port of GNU ld has always aspired to compatibility
  9983. # with the native linker. However, as the warning in the GNU ld
  9984. # block says, versions before 2.19.5* couldn't really create working
  9985. # shared libraries, regardless of the interface used.
  9986. case `$LD -v 2>&1` in
  9987. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9988. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9989. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9990. *)
  9991. lt_use_gnu_ld_interface=yes
  9992. ;;
  9993. esac
  9994. ;;
  9995. *)
  9996. lt_use_gnu_ld_interface=yes
  9997. ;;
  9998. esac
  9999. fi
  10000. if test yes = "$lt_use_gnu_ld_interface"; then
  10001. # If archive_cmds runs LD, not CC, wlarc should be empty
  10002. wlarc='$wl'
  10003. # Set some defaults for GNU ld with shared library support. These
  10004. # are reset later if shared libraries are not supported. Putting them
  10005. # here allows them to be overridden if necessary.
  10006. runpath_var=LD_RUN_PATH
  10007. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10008. export_dynamic_flag_spec='$wl--export-dynamic'
  10009. # ancient GNU ld didn't support --whole-archive et. al.
  10010. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10011. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  10012. else
  10013. whole_archive_flag_spec=
  10014. fi
  10015. supports_anon_versioning=no
  10016. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  10017. *GNU\ gold*) supports_anon_versioning=yes ;;
  10018. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10019. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10020. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10021. *\ 2.11.*) ;; # other 2.11 versions
  10022. *) supports_anon_versioning=yes ;;
  10023. esac
  10024. # See if GNU ld supports shared libraries.
  10025. case $host_os in
  10026. aix[3-9]*)
  10027. # On AIX/PPC, the GNU linker is very broken
  10028. if test ia64 != "$host_cpu"; then
  10029. ld_shlibs=no
  10030. cat <<_LT_EOF 1>&2
  10031. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10032. *** to be unable to reliably create shared libraries on AIX.
  10033. *** Therefore, libtool is disabling shared libraries support. If you
  10034. *** really care for shared libraries, you may want to install binutils
  10035. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10036. *** You will then need to restart the configuration process.
  10037. _LT_EOF
  10038. fi
  10039. ;;
  10040. amigaos*)
  10041. case $host_cpu in
  10042. powerpc)
  10043. # see comment about AmigaOS4 .so support
  10044. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10045. archive_expsym_cmds=''
  10046. ;;
  10047. m68k)
  10048. 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)'
  10049. hardcode_libdir_flag_spec='-L$libdir'
  10050. hardcode_minus_L=yes
  10051. ;;
  10052. esac
  10053. ;;
  10054. beos*)
  10055. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10056. allow_undefined_flag=unsupported
  10057. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10058. # support --undefined. This deserves some investigation. FIXME
  10059. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10060. else
  10061. ld_shlibs=no
  10062. fi
  10063. ;;
  10064. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10065. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10066. # as there is no search path for DLLs.
  10067. hardcode_libdir_flag_spec='-L$libdir'
  10068. export_dynamic_flag_spec='$wl--export-all-symbols'
  10069. allow_undefined_flag=unsupported
  10070. always_export_symbols=no
  10071. enable_shared_with_static_runtimes=yes
  10072. 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'
  10073. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10074. file_list_spec='@'
  10075. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10076. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10077. # If the export-symbols file already is a .def file, use it as
  10078. # is; otherwise, prepend EXPORTS...
  10079. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10080. cp $export_symbols $output_objdir/$soname.def;
  10081. else
  10082. echo EXPORTS > $output_objdir/$soname.def;
  10083. cat $export_symbols >> $output_objdir/$soname.def;
  10084. fi~
  10085. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10086. else
  10087. ld_shlibs=no
  10088. fi
  10089. ;;
  10090. haiku*)
  10091. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10092. link_all_deplibs=no
  10093. ;;
  10094. os2*)
  10095. hardcode_libdir_flag_spec='-L$libdir'
  10096. hardcode_minus_L=yes
  10097. allow_undefined_flag=unsupported
  10098. shrext_cmds=.dll
  10099. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10100. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10101. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10102. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10103. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10104. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10105. emximp -o $lib $output_objdir/$libname.def'
  10106. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10107. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10108. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10109. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10110. prefix_cmds="$SED"~
  10111. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10112. prefix_cmds="$prefix_cmds -e 1d";
  10113. fi~
  10114. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10115. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10116. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10117. emximp -o $lib $output_objdir/$libname.def'
  10118. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10119. enable_shared_with_static_runtimes=yes
  10120. file_list_spec='@'
  10121. ;;
  10122. interix[3-9]*)
  10123. hardcode_direct=no
  10124. hardcode_shlibpath_var=no
  10125. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10126. export_dynamic_flag_spec='$wl-E'
  10127. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10128. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10129. # default) and relocated if they conflict, which is a slow very memory
  10130. # consuming and fragmenting process. To avoid this, we pick a random,
  10131. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10132. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10133. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10134. 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'
  10135. ;;
  10136. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10137. tmp_diet=no
  10138. if test linux-dietlibc = "$host_os"; then
  10139. case $cc_basename in
  10140. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10141. esac
  10142. fi
  10143. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10144. && test no = "$tmp_diet"
  10145. then
  10146. tmp_addflag=' $pic_flag'
  10147. tmp_sharedflag='-shared'
  10148. case $cc_basename,$host_cpu in
  10149. pgcc*) # Portland Group C compiler
  10150. 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'
  10151. tmp_addflag=' $pic_flag'
  10152. ;;
  10153. pgf77* | pgf90* | pgf95* | pgfortran*)
  10154. # Portland Group f77 and f90 compilers
  10155. 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'
  10156. tmp_addflag=' $pic_flag -Mnomain' ;;
  10157. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10158. tmp_addflag=' -i_dynamic' ;;
  10159. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10160. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10161. ifc* | ifort*) # Intel Fortran compiler
  10162. tmp_addflag=' -nofor_main' ;;
  10163. lf95*) # Lahey Fortran 8.1
  10164. whole_archive_flag_spec=
  10165. tmp_sharedflag='--shared' ;;
  10166. nagfor*) # NAGFOR 5.3
  10167. tmp_sharedflag='-Wl,-shared' ;;
  10168. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10169. tmp_sharedflag='-qmkshrobj'
  10170. tmp_addflag= ;;
  10171. nvcc*) # Cuda Compiler Driver 2.2
  10172. 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'
  10173. compiler_needs_object=yes
  10174. ;;
  10175. esac
  10176. case `$CC -V 2>&1 | $SED 5q` in
  10177. *Sun\ C*) # Sun C 5.9
  10178. 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'
  10179. compiler_needs_object=yes
  10180. tmp_sharedflag='-G' ;;
  10181. *Sun\ F*) # Sun Fortran 8.3
  10182. tmp_sharedflag='-G' ;;
  10183. esac
  10184. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10185. if test yes = "$supports_anon_versioning"; then
  10186. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10187. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10188. echo "local: *; };" >> $output_objdir/$libname.ver~
  10189. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  10190. fi
  10191. case $cc_basename in
  10192. tcc*)
  10193. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10194. export_dynamic_flag_spec='-rdynamic'
  10195. ;;
  10196. xlf* | bgf* | bgxlf* | mpixlf*)
  10197. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10198. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10199. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10200. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10201. if test yes = "$supports_anon_versioning"; then
  10202. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10203. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10204. echo "local: *; };" >> $output_objdir/$libname.ver~
  10205. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10206. fi
  10207. ;;
  10208. esac
  10209. else
  10210. ld_shlibs=no
  10211. fi
  10212. ;;
  10213. *-mlibc)
  10214. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10215. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10216. ;;
  10217. netbsd* | netbsdelf*-gnu)
  10218. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10219. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10220. wlarc=
  10221. else
  10222. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10223. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10224. fi
  10225. ;;
  10226. solaris*)
  10227. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10228. ld_shlibs=no
  10229. cat <<_LT_EOF 1>&2
  10230. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10231. *** create shared libraries on Solaris systems. Therefore, libtool
  10232. *** is disabling shared libraries support. We urge you to upgrade GNU
  10233. *** binutils to release 2.9.1 or newer. Another option is to modify
  10234. *** your PATH or compiler configuration so that the native linker is
  10235. *** used, and then restart.
  10236. _LT_EOF
  10237. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10238. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10239. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10240. else
  10241. ld_shlibs=no
  10242. fi
  10243. ;;
  10244. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10245. case `$LD -v 2>&1` in
  10246. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10247. ld_shlibs=no
  10248. cat <<_LT_EOF 1>&2
  10249. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  10250. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10251. *** is disabling shared libraries support. We urge you to upgrade GNU
  10252. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10253. *** your PATH or compiler configuration so that the native linker is
  10254. *** used, and then restart.
  10255. _LT_EOF
  10256. ;;
  10257. *)
  10258. # For security reasons, it is highly recommended that you always
  10259. # use absolute paths for naming shared libraries, and exclude the
  10260. # DT_RUNPATH tag from executables and libraries. But doing so
  10261. # requires that you compile everything twice, which is a pain.
  10262. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10263. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10264. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10265. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10266. else
  10267. ld_shlibs=no
  10268. fi
  10269. ;;
  10270. esac
  10271. ;;
  10272. sunos4*)
  10273. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10274. wlarc=
  10275. hardcode_direct=yes
  10276. hardcode_shlibpath_var=no
  10277. ;;
  10278. *)
  10279. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10280. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10281. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10282. else
  10283. ld_shlibs=no
  10284. fi
  10285. ;;
  10286. esac
  10287. if test no = "$ld_shlibs"; then
  10288. runpath_var=
  10289. hardcode_libdir_flag_spec=
  10290. export_dynamic_flag_spec=
  10291. whole_archive_flag_spec=
  10292. fi
  10293. else
  10294. # PORTME fill in a description of your system's linker (not GNU ld)
  10295. case $host_os in
  10296. aix3*)
  10297. allow_undefined_flag=unsupported
  10298. always_export_symbols=yes
  10299. 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'
  10300. # Note: this linker hardcodes the directories in LIBPATH if there
  10301. # are no directories specified by -L.
  10302. hardcode_minus_L=yes
  10303. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  10304. # Neither direct hardcoding nor static linking is supported with a
  10305. # broken collect2.
  10306. hardcode_direct=unsupported
  10307. fi
  10308. ;;
  10309. aix[4-9]*)
  10310. if test ia64 = "$host_cpu"; then
  10311. # On IA64, the linker does run time linking by default, so we don't
  10312. # have to do anything special.
  10313. aix_use_runtimelinking=no
  10314. exp_sym_flag='-Bexport'
  10315. no_entry_flag=
  10316. else
  10317. # If we're using GNU nm, then we don't want the "-C" option.
  10318. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  10319. # Without the "-l" option, or with the "-B" option, AIX nm treats
  10320. # weak defined symbols like other global defined symbols, whereas
  10321. # GNU nm marks them as "W".
  10322. # While the 'weak' keyword is ignored in the Export File, we need
  10323. # it in the Import File for the 'aix-soname' feature, so we have
  10324. # to replace the "-B" option with "-P" for AIX nm.
  10325. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10326. 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'
  10327. else
  10328. 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 == "L") || (\$ 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'
  10329. fi
  10330. aix_use_runtimelinking=no
  10331. # Test if we are trying to use run time linking or normal
  10332. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10333. # have runtime linking enabled, and use it for executables.
  10334. # For shared libraries, we enable/disable runtime linking
  10335. # depending on the kind of the shared library created -
  10336. # when "with_aix_soname,aix_use_runtimelinking" is:
  10337. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  10338. # "aix,yes" lib.so shared, rtl:yes, for executables
  10339. # lib.a static archive
  10340. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  10341. # lib.a(lib.so.V) shared, rtl:no, for executables
  10342. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  10343. # lib.a(lib.so.V) shared, rtl:no
  10344. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  10345. # lib.a static archive
  10346. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10347. for ld_flag in $LDFLAGS; do
  10348. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  10349. aix_use_runtimelinking=yes
  10350. break
  10351. fi
  10352. done
  10353. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  10354. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  10355. # so we don't have lib.a shared libs to link our executables.
  10356. # We have to force runtime linking in this case.
  10357. aix_use_runtimelinking=yes
  10358. LDFLAGS="$LDFLAGS -Wl,-brtl"
  10359. fi
  10360. ;;
  10361. esac
  10362. exp_sym_flag='-bexport'
  10363. no_entry_flag='-bnoentry'
  10364. fi
  10365. # When large executables or shared objects are built, AIX ld can
  10366. # have problems creating the table of contents. If linking a library
  10367. # or program results in "error TOC overflow" add -mminimal-toc to
  10368. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10369. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10370. archive_cmds=''
  10371. hardcode_direct=yes
  10372. hardcode_direct_absolute=yes
  10373. hardcode_libdir_separator=':'
  10374. link_all_deplibs=yes
  10375. file_list_spec='$wl-f,'
  10376. case $with_aix_soname,$aix_use_runtimelinking in
  10377. aix,*) ;; # traditional, no import file
  10378. svr4,* | *,yes) # use import file
  10379. # The Import File defines what to hardcode.
  10380. hardcode_direct=no
  10381. hardcode_direct_absolute=no
  10382. ;;
  10383. esac
  10384. if test yes = "$GCC"; then
  10385. case $host_os in aix4.[012]|aix4.[012].*)
  10386. # We only want to do this on AIX 4.2 and lower, the check
  10387. # below for broken collect2 doesn't work under 4.3+
  10388. collect2name=`$CC -print-prog-name=collect2`
  10389. if test -f "$collect2name" &&
  10390. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10391. then
  10392. # We have reworked collect2
  10393. :
  10394. else
  10395. # We have old collect2
  10396. hardcode_direct=unsupported
  10397. # It fails to find uninstalled libraries when the uninstalled
  10398. # path is not listed in the libpath. Setting hardcode_minus_L
  10399. # to unsupported forces relinking
  10400. hardcode_minus_L=yes
  10401. hardcode_libdir_flag_spec='-L$libdir'
  10402. hardcode_libdir_separator=
  10403. fi
  10404. ;;
  10405. esac
  10406. shared_flag='-shared'
  10407. if test yes = "$aix_use_runtimelinking"; then
  10408. shared_flag="$shared_flag "'$wl-G'
  10409. fi
  10410. # Need to ensure runtime linking is disabled for the traditional
  10411. # shared library, or the linker may eventually find shared libraries
  10412. # /with/ Import File - we do not want to mix them.
  10413. shared_flag_aix='-shared'
  10414. shared_flag_svr4='-shared $wl-G'
  10415. else
  10416. # not using gcc
  10417. if test ia64 = "$host_cpu"; then
  10418. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10419. # chokes on -Wl,-G. The following line is correct:
  10420. shared_flag='-G'
  10421. else
  10422. if test yes = "$aix_use_runtimelinking"; then
  10423. shared_flag='$wl-G'
  10424. else
  10425. shared_flag='$wl-bM:SRE'
  10426. fi
  10427. shared_flag_aix='$wl-bM:SRE'
  10428. shared_flag_svr4='$wl-G'
  10429. fi
  10430. fi
  10431. export_dynamic_flag_spec='$wl-bexpall'
  10432. # It seems that -bexpall does not export symbols beginning with
  10433. # underscore (_), so it is better to generate a list of symbols to export.
  10434. always_export_symbols=yes
  10435. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  10436. # Warning - without using the other runtime loading flags (-brtl),
  10437. # -berok will link without error, but may produce a broken library.
  10438. allow_undefined_flag='-berok'
  10439. # Determine the default libpath from the value encoded in an
  10440. # empty executable.
  10441. if test set = "${lt_cv_aix_libpath+set}"; then
  10442. aix_libpath=$lt_cv_aix_libpath
  10443. else
  10444. if test ${lt_cv_aix_libpath_+y}
  10445. then :
  10446. printf %s "(cached) " >&6
  10447. else case e in #(
  10448. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10449. /* end confdefs.h. */
  10450. int
  10451. main (void)
  10452. {
  10453. ;
  10454. return 0;
  10455. }
  10456. _ACEOF
  10457. if ac_fn_c_try_link "$LINENO"
  10458. then :
  10459. lt_aix_libpath_sed='
  10460. /Import File Strings/,/^$/ {
  10461. /^0/ {
  10462. s/^0 *\([^ ]*\) *$/\1/
  10463. p
  10464. }
  10465. }'
  10466. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10467. # Check for a 64-bit object if we didn't find anything.
  10468. if test -z "$lt_cv_aix_libpath_"; then
  10469. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10470. fi
  10471. fi
  10472. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10473. conftest$ac_exeext conftest.$ac_ext
  10474. if test -z "$lt_cv_aix_libpath_"; then
  10475. lt_cv_aix_libpath_=/usr/lib:/lib
  10476. fi
  10477. ;;
  10478. esac
  10479. fi
  10480. aix_libpath=$lt_cv_aix_libpath_
  10481. fi
  10482. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10483. 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
  10484. else
  10485. if test ia64 = "$host_cpu"; then
  10486. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  10487. allow_undefined_flag="-z nodefs"
  10488. 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"
  10489. else
  10490. # Determine the default libpath from the value encoded in an
  10491. # empty executable.
  10492. if test set = "${lt_cv_aix_libpath+set}"; then
  10493. aix_libpath=$lt_cv_aix_libpath
  10494. else
  10495. if test ${lt_cv_aix_libpath_+y}
  10496. then :
  10497. printf %s "(cached) " >&6
  10498. else case e in #(
  10499. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10500. /* end confdefs.h. */
  10501. int
  10502. main (void)
  10503. {
  10504. ;
  10505. return 0;
  10506. }
  10507. _ACEOF
  10508. if ac_fn_c_try_link "$LINENO"
  10509. then :
  10510. lt_aix_libpath_sed='
  10511. /Import File Strings/,/^$/ {
  10512. /^0/ {
  10513. s/^0 *\([^ ]*\) *$/\1/
  10514. p
  10515. }
  10516. }'
  10517. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10518. # Check for a 64-bit object if we didn't find anything.
  10519. if test -z "$lt_cv_aix_libpath_"; then
  10520. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10521. fi
  10522. fi
  10523. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10524. conftest$ac_exeext conftest.$ac_ext
  10525. if test -z "$lt_cv_aix_libpath_"; then
  10526. lt_cv_aix_libpath_=/usr/lib:/lib
  10527. fi
  10528. ;;
  10529. esac
  10530. fi
  10531. aix_libpath=$lt_cv_aix_libpath_
  10532. fi
  10533. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10534. # Warning - without using the other run time loading flags,
  10535. # -berok will link without error, but may produce a broken library.
  10536. no_undefined_flag=' $wl-bernotok'
  10537. allow_undefined_flag=' $wl-berok'
  10538. if test yes = "$with_gnu_ld"; then
  10539. # We only use this code for GNU lds that support --whole-archive.
  10540. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  10541. else
  10542. # Exported symbols can be pulled into shared objects from archives
  10543. whole_archive_flag_spec='$convenience'
  10544. fi
  10545. archive_cmds_need_lc=yes
  10546. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  10547. # -brtl affects multiple linker settings, -berok does not and is overridden later
  10548. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  10549. if test svr4 != "$with_aix_soname"; then
  10550. # This is similar to how AIX traditionally builds its shared libraries.
  10551. 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'
  10552. fi
  10553. if test aix != "$with_aix_soname"; then
  10554. 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'
  10555. else
  10556. # used by -dlpreopen to get the symbols
  10557. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10558. fi
  10559. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10560. fi
  10561. fi
  10562. ;;
  10563. amigaos*)
  10564. case $host_cpu in
  10565. powerpc)
  10566. # see comment about AmigaOS4 .so support
  10567. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10568. archive_expsym_cmds=''
  10569. ;;
  10570. m68k)
  10571. 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)'
  10572. hardcode_libdir_flag_spec='-L$libdir'
  10573. hardcode_minus_L=yes
  10574. ;;
  10575. esac
  10576. ;;
  10577. bsdi[45]*)
  10578. export_dynamic_flag_spec=-rdynamic
  10579. ;;
  10580. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10581. # When not using gcc, we currently assume that we are using
  10582. # Microsoft Visual C++ or Intel C++ Compiler.
  10583. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10584. # no search path for DLLs.
  10585. case $cc_basename in
  10586. cl* | icl*)
  10587. # Native MSVC or ICC
  10588. hardcode_libdir_flag_spec=' '
  10589. allow_undefined_flag=unsupported
  10590. always_export_symbols=yes
  10591. file_list_spec='@'
  10592. # Tell ltmain to make .lib files, not .a files.
  10593. libext=lib
  10594. # Tell ltmain to make .dll files, not .so files.
  10595. shrext_cmds=.dll
  10596. # FIXME: Setting linknames here is a bad hack.
  10597. archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10598. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10599. cp "$export_symbols" "$output_objdir/$soname.def";
  10600. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10601. else
  10602. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10603. fi~
  10604. $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10605. linknames='
  10606. # The linker will not automatically build a static lib if we build a DLL.
  10607. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10608. enable_shared_with_static_runtimes=yes
  10609. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10610. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10611. # Don't use ranlib
  10612. old_postinstall_cmds='chmod 644 $oldlib'
  10613. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10614. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10615. case $lt_outputfile in
  10616. *.exe|*.EXE) ;;
  10617. *)
  10618. lt_outputfile=$lt_outputfile.exe
  10619. lt_tool_outputfile=$lt_tool_outputfile.exe
  10620. ;;
  10621. esac~
  10622. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10623. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10624. $RM "$lt_outputfile.manifest";
  10625. fi'
  10626. ;;
  10627. *)
  10628. # Assume MSVC and ICC wrapper
  10629. hardcode_libdir_flag_spec=' '
  10630. allow_undefined_flag=unsupported
  10631. # Tell ltmain to make .lib files, not .a files.
  10632. libext=lib
  10633. # Tell ltmain to make .dll files, not .so files.
  10634. shrext_cmds=.dll
  10635. # FIXME: Setting linknames here is a bad hack.
  10636. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10637. # The linker will automatically build a .lib file if we build a DLL.
  10638. old_archive_from_new_cmds='true'
  10639. # FIXME: Should let the user specify the lib program.
  10640. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10641. enable_shared_with_static_runtimes=yes
  10642. ;;
  10643. esac
  10644. ;;
  10645. darwin* | rhapsody*)
  10646. archive_cmds_need_lc=no
  10647. hardcode_direct=no
  10648. hardcode_automatic=yes
  10649. hardcode_shlibpath_var=unsupported
  10650. if test yes = "$lt_cv_ld_force_load"; then
  10651. 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\"`'
  10652. else
  10653. whole_archive_flag_spec=''
  10654. fi
  10655. link_all_deplibs=yes
  10656. allow_undefined_flag=$_lt_dar_allow_undefined
  10657. case $cc_basename in
  10658. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10659. *) _lt_dar_can_shared=$GCC ;;
  10660. esac
  10661. if test yes = "$_lt_dar_can_shared"; then
  10662. output_verbose_link_cmd=func_echo_all
  10663. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10664. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10665. 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"
  10666. 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"
  10667. else
  10668. ld_shlibs=no
  10669. fi
  10670. ;;
  10671. dgux*)
  10672. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10673. hardcode_libdir_flag_spec='-L$libdir'
  10674. hardcode_shlibpath_var=no
  10675. ;;
  10676. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10677. # support. Future versions do this automatically, but an explicit c++rt0.o
  10678. # does not break anything, and helps significantly (at the cost of a little
  10679. # extra space).
  10680. freebsd2.2*)
  10681. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10682. hardcode_libdir_flag_spec='-R$libdir'
  10683. hardcode_direct=yes
  10684. hardcode_shlibpath_var=no
  10685. ;;
  10686. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10687. freebsd2.*)
  10688. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10689. hardcode_direct=yes
  10690. hardcode_minus_L=yes
  10691. hardcode_shlibpath_var=no
  10692. ;;
  10693. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10694. freebsd* | dragonfly* | midnightbsd*)
  10695. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10696. hardcode_libdir_flag_spec='-R$libdir'
  10697. hardcode_direct=yes
  10698. hardcode_shlibpath_var=no
  10699. ;;
  10700. hpux9*)
  10701. if test yes = "$GCC"; then
  10702. 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'
  10703. else
  10704. 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'
  10705. fi
  10706. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10707. hardcode_libdir_separator=:
  10708. hardcode_direct=yes
  10709. # hardcode_minus_L: Not really in the search PATH,
  10710. # but as the default location of the library.
  10711. hardcode_minus_L=yes
  10712. export_dynamic_flag_spec='$wl-E'
  10713. ;;
  10714. hpux10*)
  10715. if test yes,no = "$GCC,$with_gnu_ld"; then
  10716. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10717. else
  10718. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10719. fi
  10720. if test no = "$with_gnu_ld"; then
  10721. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10722. hardcode_libdir_separator=:
  10723. hardcode_direct=yes
  10724. hardcode_direct_absolute=yes
  10725. export_dynamic_flag_spec='$wl-E'
  10726. # hardcode_minus_L: Not really in the search PATH,
  10727. # but as the default location of the library.
  10728. hardcode_minus_L=yes
  10729. fi
  10730. ;;
  10731. hpux11*)
  10732. if test yes,no = "$GCC,$with_gnu_ld"; then
  10733. case $host_cpu in
  10734. hppa*64*)
  10735. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10736. ;;
  10737. ia64*)
  10738. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10739. ;;
  10740. *)
  10741. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10742. ;;
  10743. esac
  10744. else
  10745. case $host_cpu in
  10746. hppa*64*)
  10747. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10748. ;;
  10749. ia64*)
  10750. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10751. ;;
  10752. *)
  10753. # Older versions of the 11.00 compiler do not understand -b yet
  10754. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10756. printf %s "checking if $CC understands -b... " >&6; }
  10757. if test ${lt_cv_prog_compiler__b+y}
  10758. then :
  10759. printf %s "(cached) " >&6
  10760. else case e in #(
  10761. e) lt_cv_prog_compiler__b=no
  10762. save_LDFLAGS=$LDFLAGS
  10763. LDFLAGS="$LDFLAGS -b"
  10764. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10765. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10766. # The linker can only warn and ignore the option if not recognized
  10767. # So say no if there are warnings
  10768. if test -s conftest.err; then
  10769. # Append any errors to the config.log.
  10770. cat conftest.err 1>&5
  10771. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10772. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10773. if diff conftest.exp conftest.er2 >/dev/null; then
  10774. lt_cv_prog_compiler__b=yes
  10775. fi
  10776. else
  10777. lt_cv_prog_compiler__b=yes
  10778. fi
  10779. fi
  10780. $RM -r conftest*
  10781. LDFLAGS=$save_LDFLAGS
  10782. ;;
  10783. esac
  10784. fi
  10785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10786. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  10787. if test yes = "$lt_cv_prog_compiler__b"; then
  10788. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10789. else
  10790. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10791. fi
  10792. ;;
  10793. esac
  10794. fi
  10795. if test no = "$with_gnu_ld"; then
  10796. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10797. hardcode_libdir_separator=:
  10798. case $host_cpu in
  10799. hppa*64*|ia64*)
  10800. hardcode_direct=no
  10801. hardcode_shlibpath_var=no
  10802. ;;
  10803. *)
  10804. hardcode_direct=yes
  10805. hardcode_direct_absolute=yes
  10806. export_dynamic_flag_spec='$wl-E'
  10807. # hardcode_minus_L: Not really in the search PATH,
  10808. # but as the default location of the library.
  10809. hardcode_minus_L=yes
  10810. ;;
  10811. esac
  10812. fi
  10813. ;;
  10814. irix5* | irix6* | nonstopux*)
  10815. if test yes = "$GCC"; then
  10816. 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'
  10817. # Try to use the -exported_symbol ld option, if it does not
  10818. # work, assume that -exports_file does not work either and
  10819. # implicitly export all symbols.
  10820. # This should be the same for all languages, so no per-tag cache variable.
  10821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10822. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10823. if test ${lt_cv_irix_exported_symbol+y}
  10824. then :
  10825. printf %s "(cached) " >&6
  10826. else case e in #(
  10827. e) save_LDFLAGS=$LDFLAGS
  10828. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10830. /* end confdefs.h. */
  10831. int foo (void) { return 0; }
  10832. _ACEOF
  10833. if ac_fn_c_try_link "$LINENO"
  10834. then :
  10835. lt_cv_irix_exported_symbol=yes
  10836. else case e in #(
  10837. e) lt_cv_irix_exported_symbol=no ;;
  10838. esac
  10839. fi
  10840. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10841. conftest$ac_exeext conftest.$ac_ext
  10842. LDFLAGS=$save_LDFLAGS ;;
  10843. esac
  10844. fi
  10845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10846. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10847. if test yes = "$lt_cv_irix_exported_symbol"; then
  10848. 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'
  10849. fi
  10850. link_all_deplibs=no
  10851. else
  10852. 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'
  10853. 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'
  10854. fi
  10855. archive_cmds_need_lc='no'
  10856. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10857. hardcode_libdir_separator=:
  10858. inherit_rpath=yes
  10859. link_all_deplibs=yes
  10860. ;;
  10861. linux*)
  10862. case $cc_basename in
  10863. tcc*)
  10864. # Fabrice Bellard et al's Tiny C Compiler
  10865. ld_shlibs=yes
  10866. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10867. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10868. ;;
  10869. esac
  10870. ;;
  10871. *-mlibc)
  10872. ;;
  10873. netbsd* | netbsdelf*-gnu)
  10874. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10875. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10876. else
  10877. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10878. fi
  10879. hardcode_libdir_flag_spec='-R$libdir'
  10880. hardcode_direct=yes
  10881. hardcode_shlibpath_var=no
  10882. ;;
  10883. newsos6)
  10884. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10885. hardcode_direct=yes
  10886. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10887. hardcode_libdir_separator=:
  10888. hardcode_shlibpath_var=no
  10889. ;;
  10890. *nto* | *qnx*)
  10891. ;;
  10892. openbsd*)
  10893. if test -f /usr/libexec/ld.so; then
  10894. hardcode_direct=yes
  10895. hardcode_shlibpath_var=no
  10896. hardcode_direct_absolute=yes
  10897. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10898. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10899. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10900. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10901. export_dynamic_flag_spec='$wl-E'
  10902. else
  10903. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10904. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10905. fi
  10906. else
  10907. ld_shlibs=no
  10908. fi
  10909. ;;
  10910. os2*)
  10911. hardcode_libdir_flag_spec='-L$libdir'
  10912. hardcode_minus_L=yes
  10913. allow_undefined_flag=unsupported
  10914. shrext_cmds=.dll
  10915. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10916. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10917. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10918. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10919. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10920. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10921. emximp -o $lib $output_objdir/$libname.def'
  10922. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10923. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10924. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10925. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10926. prefix_cmds="$SED"~
  10927. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10928. prefix_cmds="$prefix_cmds -e 1d";
  10929. fi~
  10930. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10931. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10932. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10933. emximp -o $lib $output_objdir/$libname.def'
  10934. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10935. enable_shared_with_static_runtimes=yes
  10936. file_list_spec='@'
  10937. ;;
  10938. osf3*)
  10939. if test yes = "$GCC"; then
  10940. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10941. 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'
  10942. else
  10943. allow_undefined_flag=' -expect_unresolved \*'
  10944. 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'
  10945. fi
  10946. archive_cmds_need_lc='no'
  10947. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10948. hardcode_libdir_separator=:
  10949. ;;
  10950. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10951. if test yes = "$GCC"; then
  10952. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10953. 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'
  10954. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10955. else
  10956. allow_undefined_flag=' -expect_unresolved \*'
  10957. 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'
  10958. 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~
  10959. $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'
  10960. # Both c and cxx compiler support -rpath directly
  10961. hardcode_libdir_flag_spec='-rpath $libdir'
  10962. fi
  10963. archive_cmds_need_lc='no'
  10964. hardcode_libdir_separator=:
  10965. ;;
  10966. serenity*)
  10967. ;;
  10968. solaris*)
  10969. no_undefined_flag=' -z defs'
  10970. if test yes = "$GCC"; then
  10971. wlarc='$wl'
  10972. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10973. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10974. $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'
  10975. else
  10976. case `$CC -V 2>&1` in
  10977. *"Compilers 5.0"*)
  10978. wlarc=''
  10979. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10980. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10981. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10982. ;;
  10983. *)
  10984. wlarc='$wl'
  10985. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10986. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10987. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10988. ;;
  10989. esac
  10990. fi
  10991. hardcode_libdir_flag_spec='-R$libdir'
  10992. hardcode_shlibpath_var=no
  10993. case $host_os in
  10994. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10995. *)
  10996. # The compiler driver will combine and reorder linker options,
  10997. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10998. # but is careful enough not to reorder.
  10999. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11000. if test yes = "$GCC"; then
  11001. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  11002. else
  11003. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  11004. fi
  11005. ;;
  11006. esac
  11007. link_all_deplibs=yes
  11008. ;;
  11009. sunos4*)
  11010. if test sequent = "$host_vendor"; then
  11011. # Use $CC to link under sequent, because it throws in some extra .o
  11012. # files that make .init and .fini sections work.
  11013. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11014. else
  11015. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11016. fi
  11017. hardcode_libdir_flag_spec='-L$libdir'
  11018. hardcode_direct=yes
  11019. hardcode_minus_L=yes
  11020. hardcode_shlibpath_var=no
  11021. ;;
  11022. sysv4)
  11023. case $host_vendor in
  11024. sni)
  11025. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11026. hardcode_direct=yes # is this really true???
  11027. ;;
  11028. siemens)
  11029. ## LD is ld it makes a PLAMLIB
  11030. ## CC just makes a GrossModule.
  11031. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11032. reload_cmds='$CC -r -o $output$reload_objs'
  11033. hardcode_direct=no
  11034. ;;
  11035. motorola)
  11036. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11037. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11038. ;;
  11039. esac
  11040. runpath_var='LD_RUN_PATH'
  11041. hardcode_shlibpath_var=no
  11042. ;;
  11043. sysv4.3*)
  11044. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11045. hardcode_shlibpath_var=no
  11046. export_dynamic_flag_spec='-Bexport'
  11047. ;;
  11048. sysv4*MP*)
  11049. if test -d /usr/nec; then
  11050. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11051. hardcode_shlibpath_var=no
  11052. runpath_var=LD_RUN_PATH
  11053. hardcode_runpath_var=yes
  11054. ld_shlibs=yes
  11055. fi
  11056. ;;
  11057. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11058. no_undefined_flag='$wl-z,text'
  11059. archive_cmds_need_lc=no
  11060. hardcode_shlibpath_var=no
  11061. runpath_var='LD_RUN_PATH'
  11062. if test yes = "$GCC"; then
  11063. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11064. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11065. else
  11066. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11067. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11068. fi
  11069. ;;
  11070. sysv5* | sco3.2v5* | sco5v6*)
  11071. # Note: We CANNOT use -z defs as we might desire, because we do not
  11072. # link with -lc, and that would cause any symbols used from libc to
  11073. # always be unresolved, which means just about no library would
  11074. # ever link correctly. If we're not using GNU ld we use -z text
  11075. # though, which does catch some bad symbols but isn't as heavy-handed
  11076. # as -z defs.
  11077. no_undefined_flag='$wl-z,text'
  11078. allow_undefined_flag='$wl-z,nodefs'
  11079. archive_cmds_need_lc=no
  11080. hardcode_shlibpath_var=no
  11081. hardcode_libdir_flag_spec='$wl-R,$libdir'
  11082. hardcode_libdir_separator=':'
  11083. link_all_deplibs=yes
  11084. export_dynamic_flag_spec='$wl-Bexport'
  11085. runpath_var='LD_RUN_PATH'
  11086. if test yes = "$GCC"; then
  11087. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11088. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11089. else
  11090. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11091. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11092. fi
  11093. ;;
  11094. uts4*)
  11095. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11096. hardcode_libdir_flag_spec='-L$libdir'
  11097. hardcode_shlibpath_var=no
  11098. ;;
  11099. *)
  11100. ld_shlibs=no
  11101. ;;
  11102. esac
  11103. if test sni = "$host_vendor"; then
  11104. case $host in
  11105. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11106. export_dynamic_flag_spec='$wl-Blargedynsym'
  11107. ;;
  11108. esac
  11109. fi
  11110. fi
  11111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11112. printf "%s\n" "$ld_shlibs" >&6; }
  11113. test no = "$ld_shlibs" && can_build_shared=no
  11114. with_gnu_ld=$with_gnu_ld
  11115. #
  11116. # Do we need to explicitly link libc?
  11117. #
  11118. case "x$archive_cmds_need_lc" in
  11119. x|xyes)
  11120. # Assume -lc should be added
  11121. archive_cmds_need_lc=yes
  11122. if test yes,yes = "$GCC,$enable_shared"; then
  11123. case $archive_cmds in
  11124. *'~'*)
  11125. # FIXME: we may have to deal with multi-command sequences.
  11126. ;;
  11127. '$CC '*)
  11128. # Test whether the compiler implicitly links with -lc since on some
  11129. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11130. # to ld, don't add -lc before -lgcc.
  11131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11132. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  11133. if test ${lt_cv_archive_cmds_need_lc+y}
  11134. then :
  11135. printf %s "(cached) " >&6
  11136. else case e in #(
  11137. e) $RM conftest*
  11138. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11139. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11140. (eval $ac_compile) 2>&5
  11141. ac_status=$?
  11142. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11143. test $ac_status = 0; } 2>conftest.err; then
  11144. soname=conftest
  11145. lib=conftest
  11146. libobjs=conftest.$ac_objext
  11147. deplibs=
  11148. wl=$lt_prog_compiler_wl
  11149. pic_flag=$lt_prog_compiler_pic
  11150. compiler_flags=-v
  11151. linker_flags=-v
  11152. verstring=
  11153. output_objdir=.
  11154. libname=conftest
  11155. lt_save_allow_undefined_flag=$allow_undefined_flag
  11156. allow_undefined_flag=
  11157. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11158. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11159. ac_status=$?
  11160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11161. test $ac_status = 0; }
  11162. then
  11163. lt_cv_archive_cmds_need_lc=no
  11164. else
  11165. lt_cv_archive_cmds_need_lc=yes
  11166. fi
  11167. allow_undefined_flag=$lt_save_allow_undefined_flag
  11168. else
  11169. cat conftest.err 1>&5
  11170. fi
  11171. $RM conftest*
  11172. ;;
  11173. esac
  11174. fi
  11175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11176. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  11177. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11178. ;;
  11179. esac
  11180. fi
  11181. ;;
  11182. esac
  11183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11184. printf %s "checking dynamic linker characteristics... " >&6; }
  11185. if test yes = "$GCC"; then
  11186. case $host_os in
  11187. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  11188. *) lt_awk_arg='/^libraries:/' ;;
  11189. esac
  11190. case $host_os in
  11191. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  11192. *) lt_sed_strip_eq='s|=/|/|g' ;;
  11193. esac
  11194. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11195. case $lt_search_path_spec in
  11196. *\;*)
  11197. # if the path contains ";" then we assume it to be the separator
  11198. # otherwise default to the standard path separator (i.e. ":") - it is
  11199. # assumed that no part of a normal pathname contains ";" but that should
  11200. # okay in the real world where ";" in dirpaths is itself problematic.
  11201. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11202. ;;
  11203. *)
  11204. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11205. ;;
  11206. esac
  11207. # Ok, now we have the path, separated by spaces, we can step through it
  11208. # and add multilib dir if necessary...
  11209. lt_tmp_lt_search_path_spec=
  11210. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11211. # ...but if some path component already ends with the multilib dir we assume
  11212. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  11213. case "$lt_multi_os_dir; $lt_search_path_spec " in
  11214. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  11215. lt_multi_os_dir=
  11216. ;;
  11217. esac
  11218. for lt_sys_path in $lt_search_path_spec; do
  11219. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  11220. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  11221. elif test -n "$lt_multi_os_dir"; then
  11222. test -d "$lt_sys_path" && \
  11223. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11224. fi
  11225. done
  11226. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11227. BEGIN {RS = " "; FS = "/|\n";} {
  11228. lt_foo = "";
  11229. lt_count = 0;
  11230. for (lt_i = NF; lt_i > 0; lt_i--) {
  11231. if ($lt_i != "" && $lt_i != ".") {
  11232. if ($lt_i == "..") {
  11233. lt_count++;
  11234. } else {
  11235. if (lt_count == 0) {
  11236. lt_foo = "/" $lt_i lt_foo;
  11237. } else {
  11238. lt_count--;
  11239. }
  11240. }
  11241. }
  11242. }
  11243. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11244. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11245. }'`
  11246. # AWK program above erroneously prepends '/' to C:/dos/paths
  11247. # for these hosts.
  11248. case $host_os in
  11249. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11250. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  11251. esac
  11252. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11253. else
  11254. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11255. fi
  11256. library_names_spec=
  11257. libname_spec='lib$name'
  11258. soname_spec=
  11259. shrext_cmds=.so
  11260. postinstall_cmds=
  11261. postuninstall_cmds=
  11262. finish_cmds=
  11263. finish_eval=
  11264. shlibpath_var=
  11265. shlibpath_overrides_runpath=unknown
  11266. version_type=none
  11267. dynamic_linker="$host_os ld.so"
  11268. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11269. need_lib_prefix=unknown
  11270. hardcode_into_libs=no
  11271. # when you set need_version to no, make sure it does not cause -set_version
  11272. # flags to be left without arguments
  11273. need_version=unknown
  11274. case $host_os in
  11275. aix3*)
  11276. version_type=linux # correct to gnu/linux during the next big refactor
  11277. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  11278. shlibpath_var=LIBPATH
  11279. # AIX 3 has no versioning support, so we append a major version to the name.
  11280. soname_spec='$libname$release$shared_ext$major'
  11281. ;;
  11282. aix[4-9]*)
  11283. version_type=linux # correct to gnu/linux during the next big refactor
  11284. need_lib_prefix=no
  11285. need_version=no
  11286. hardcode_into_libs=yes
  11287. if test ia64 = "$host_cpu"; then
  11288. # AIX 5 supports IA64
  11289. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  11290. shlibpath_var=LD_LIBRARY_PATH
  11291. else
  11292. # With GCC up to 2.95.x, collect2 would create an import file
  11293. # for dependence libraries. The import file would start with
  11294. # the line '#! .'. This would cause the generated library to
  11295. # depend on '.', always an invalid library. This was fixed in
  11296. # development snapshots of GCC prior to 3.0.
  11297. case $host_os in
  11298. aix4 | aix4.[01] | aix4.[01].*)
  11299. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11300. echo ' yes '
  11301. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  11302. :
  11303. else
  11304. can_build_shared=no
  11305. fi
  11306. ;;
  11307. esac
  11308. # Using Import Files as archive members, it is possible to support
  11309. # filename-based versioning of shared library archives on AIX. While
  11310. # this would work for both with and without runtime linking, it will
  11311. # prevent static linking of such archives. So we do filename-based
  11312. # shared library versioning with .so extension only, which is used
  11313. # when both runtime linking and shared linking is enabled.
  11314. # Unfortunately, runtime linking may impact performance, so we do
  11315. # not want this to be the default eventually. Also, we use the
  11316. # versioned .so libs for executables only if there is the -brtl
  11317. # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
  11318. # To allow for filename-based versioning support, we need to create
  11319. # libNAME.so.V as an archive file, containing:
  11320. # *) an Import File, referring to the versioned filename of the
  11321. # archive as well as the shared archive member, telling the
  11322. # bitwidth (32 or 64) of that shared object, and providing the
  11323. # list of exported symbols of that shared object, eventually
  11324. # decorated with the 'weak' keyword
  11325. # *) the shared object with the F_LOADONLY flag set, to really avoid
  11326. # it being seen by the linker.
  11327. # At run time we better use the real file rather than another symlink,
  11328. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  11329. case $with_aix_soname,$aix_use_runtimelinking in
  11330. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  11331. # soname into executable. Probably we can add versioning support to
  11332. # collect2, so additional links can be useful in future.
  11333. aix,yes) # traditional libtool
  11334. dynamic_linker='AIX unversionable lib.so'
  11335. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11336. # instead of lib<name>.a to let people know that these are not
  11337. # typical AIX shared libraries.
  11338. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11339. ;;
  11340. aix,no) # traditional AIX only
  11341. dynamic_linker='AIX lib.a(lib.so.V)'
  11342. # We preserve .a as extension for shared libraries through AIX4.2
  11343. # and later when we are not doing run time linking.
  11344. library_names_spec='$libname$release.a $libname.a'
  11345. soname_spec='$libname$release$shared_ext$major'
  11346. ;;
  11347. svr4,*) # full svr4 only
  11348. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  11349. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11350. # We do not specify a path in Import Files, so LIBPATH fires.
  11351. shlibpath_overrides_runpath=yes
  11352. ;;
  11353. *,yes) # both, prefer svr4
  11354. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  11355. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11356. # unpreferred sharedlib libNAME.a needs extra handling
  11357. 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"'
  11358. 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"'
  11359. # We do not specify a path in Import Files, so LIBPATH fires.
  11360. shlibpath_overrides_runpath=yes
  11361. ;;
  11362. *,no) # both, prefer aix
  11363. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  11364. library_names_spec='$libname$release.a $libname.a'
  11365. soname_spec='$libname$release$shared_ext$major'
  11366. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  11367. 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)'
  11368. 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"'
  11369. ;;
  11370. esac
  11371. shlibpath_var=LIBPATH
  11372. fi
  11373. ;;
  11374. amigaos*)
  11375. case $host_cpu in
  11376. powerpc)
  11377. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11378. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11379. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11380. ;;
  11381. m68k)
  11382. library_names_spec='$libname.ixlibrary $libname.a'
  11383. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11384. 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'
  11385. ;;
  11386. esac
  11387. ;;
  11388. beos*)
  11389. library_names_spec='$libname$shared_ext'
  11390. dynamic_linker="$host_os ld.so"
  11391. shlibpath_var=LIBRARY_PATH
  11392. ;;
  11393. bsdi[45]*)
  11394. version_type=linux # correct to gnu/linux during the next big refactor
  11395. need_version=no
  11396. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11397. soname_spec='$libname$release$shared_ext$major'
  11398. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11399. shlibpath_var=LD_LIBRARY_PATH
  11400. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11401. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11402. # the default ld.so.conf also contains /usr/contrib/lib and
  11403. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11404. # libtool to hard-code these into programs
  11405. ;;
  11406. cygwin* | mingw* | windows* | pw32* | cegcc*)
  11407. version_type=windows
  11408. shrext_cmds=.dll
  11409. need_version=no
  11410. need_lib_prefix=no
  11411. case $GCC,$cc_basename in
  11412. yes,*)
  11413. # gcc
  11414. library_names_spec='$libname.dll.a'
  11415. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11416. # If user builds GCC with multilib enabled,
  11417. # it should just install on $(libdir)
  11418. # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
  11419. if test xyes = x"$multilib"; then
  11420. postinstall_cmds='base_file=`basename \$file`~
  11421. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11422. dldir=$destdir/`dirname \$dlpath`~
  11423. $install_prog $dir/$dlname $destdir/$dlname~
  11424. chmod a+x $destdir/$dlname~
  11425. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11426. eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
  11427. fi'
  11428. else
  11429. postinstall_cmds='base_file=`basename \$file`~
  11430. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11431. dldir=$destdir/`dirname \$dlpath`~
  11432. test -d \$dldir || mkdir -p \$dldir~
  11433. $install_prog $dir/$dlname \$dldir/$dlname~
  11434. chmod a+x \$dldir/$dlname~
  11435. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11436. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11437. fi'
  11438. fi
  11439. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11440. dlpath=$dir/\$dldll~
  11441. $RM \$dlpath'
  11442. shlibpath_overrides_runpath=yes
  11443. case $host_os in
  11444. cygwin*)
  11445. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11446. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11447. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11448. ;;
  11449. mingw* | windows* | cegcc*)
  11450. # MinGW DLLs use traditional 'lib' prefix
  11451. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11452. ;;
  11453. pw32*)
  11454. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11455. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11456. ;;
  11457. esac
  11458. dynamic_linker='Win32 ld.exe'
  11459. ;;
  11460. *,cl* | *,icl*)
  11461. # Native MSVC or ICC
  11462. libname_spec='$name'
  11463. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11464. library_names_spec='$libname.dll.lib'
  11465. case $build_os in
  11466. mingw* | windows*)
  11467. sys_lib_search_path_spec=
  11468. lt_save_ifs=$IFS
  11469. IFS=';'
  11470. for lt_path in $LIB
  11471. do
  11472. IFS=$lt_save_ifs
  11473. # Let DOS variable expansion print the short 8.3 style file name.
  11474. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11475. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11476. done
  11477. IFS=$lt_save_ifs
  11478. # Convert to MSYS style.
  11479. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11480. ;;
  11481. cygwin*)
  11482. # Convert to unix form, then to dos form, then back to unix form
  11483. # but this time dos style (no spaces!) so that the unix form looks
  11484. # like /cygdrive/c/PROGRA~1:/cygdr...
  11485. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11486. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11487. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11488. ;;
  11489. *)
  11490. sys_lib_search_path_spec=$LIB
  11491. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11492. # It is most probably a Windows format PATH.
  11493. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11494. else
  11495. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11496. fi
  11497. # FIXME: find the short name or the path components, as spaces are
  11498. # common. (e.g. "Program Files" -> "PROGRA~1")
  11499. ;;
  11500. esac
  11501. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11502. postinstall_cmds='base_file=`basename \$file`~
  11503. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11504. dldir=$destdir/`dirname \$dlpath`~
  11505. test -d \$dldir || mkdir -p \$dldir~
  11506. $install_prog $dir/$dlname \$dldir/$dlname'
  11507. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11508. dlpath=$dir/\$dldll~
  11509. $RM \$dlpath'
  11510. shlibpath_overrides_runpath=yes
  11511. dynamic_linker='Win32 link.exe'
  11512. ;;
  11513. *)
  11514. # Assume MSVC and ICC wrapper
  11515. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  11516. dynamic_linker='Win32 ld.exe'
  11517. ;;
  11518. esac
  11519. # FIXME: first we should search . and the directory the executable is in
  11520. shlibpath_var=PATH
  11521. ;;
  11522. darwin* | rhapsody*)
  11523. dynamic_linker="$host_os dyld"
  11524. version_type=darwin
  11525. need_lib_prefix=no
  11526. need_version=no
  11527. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  11528. soname_spec='$libname$release$major$shared_ext'
  11529. shlibpath_overrides_runpath=yes
  11530. shlibpath_var=DYLD_LIBRARY_PATH
  11531. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11532. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11533. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11534. ;;
  11535. dgux*)
  11536. version_type=linux # correct to gnu/linux during the next big refactor
  11537. need_lib_prefix=no
  11538. need_version=no
  11539. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11540. soname_spec='$libname$release$shared_ext$major'
  11541. shlibpath_var=LD_LIBRARY_PATH
  11542. ;;
  11543. freebsd* | dragonfly* | midnightbsd*)
  11544. # DragonFly does not have aout. When/if they implement a new
  11545. # versioning mechanism, adjust this.
  11546. if test -x /usr/bin/objformat; then
  11547. objformat=`/usr/bin/objformat`
  11548. else
  11549. case $host_os in
  11550. freebsd[23].*) objformat=aout ;;
  11551. *) objformat=elf ;;
  11552. esac
  11553. fi
  11554. version_type=freebsd-$objformat
  11555. case $version_type in
  11556. freebsd-elf*)
  11557. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11558. soname_spec='$libname$release$shared_ext$major'
  11559. need_version=no
  11560. need_lib_prefix=no
  11561. ;;
  11562. freebsd-*)
  11563. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11564. need_version=yes
  11565. ;;
  11566. esac
  11567. case $host_cpu in
  11568. powerpc64)
  11569. # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
  11570. # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
  11571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11572. /* end confdefs.h. */
  11573. int test_pointer_size[sizeof (void *) - 5];
  11574. _ACEOF
  11575. if ac_fn_c_try_compile "$LINENO"
  11576. then :
  11577. shlibpath_var=LD_LIBRARY_PATH
  11578. else case e in #(
  11579. e) shlibpath_var=LD_32_LIBRARY_PATH ;;
  11580. esac
  11581. fi
  11582. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11583. ;;
  11584. *)
  11585. shlibpath_var=LD_LIBRARY_PATH
  11586. ;;
  11587. esac
  11588. case $host_os in
  11589. freebsd2.*)
  11590. shlibpath_overrides_runpath=yes
  11591. ;;
  11592. freebsd3.[01]* | freebsdelf3.[01]*)
  11593. shlibpath_overrides_runpath=yes
  11594. hardcode_into_libs=yes
  11595. ;;
  11596. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11597. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11598. shlibpath_overrides_runpath=no
  11599. hardcode_into_libs=yes
  11600. ;;
  11601. *) # from 4.6 on, and DragonFly
  11602. shlibpath_overrides_runpath=yes
  11603. hardcode_into_libs=yes
  11604. ;;
  11605. esac
  11606. ;;
  11607. haiku*)
  11608. version_type=linux # correct to gnu/linux during the next big refactor
  11609. need_lib_prefix=no
  11610. need_version=no
  11611. dynamic_linker="$host_os runtime_loader"
  11612. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11613. soname_spec='$libname$release$shared_ext$major'
  11614. shlibpath_var=LIBRARY_PATH
  11615. shlibpath_overrides_runpath=no
  11616. sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
  11617. sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
  11618. hardcode_into_libs=no
  11619. ;;
  11620. hpux9* | hpux10* | hpux11*)
  11621. # Give a soname corresponding to the major version so that dld.sl refuses to
  11622. # link against other versions.
  11623. version_type=sunos
  11624. need_lib_prefix=no
  11625. need_version=no
  11626. case $host_cpu in
  11627. ia64*)
  11628. shrext_cmds='.so'
  11629. hardcode_into_libs=yes
  11630. dynamic_linker="$host_os dld.so"
  11631. shlibpath_var=LD_LIBRARY_PATH
  11632. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11633. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11634. soname_spec='$libname$release$shared_ext$major'
  11635. if test 32 = "$HPUX_IA64_MODE"; then
  11636. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11637. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11638. else
  11639. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11640. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11641. fi
  11642. ;;
  11643. hppa*64*)
  11644. shrext_cmds='.sl'
  11645. hardcode_into_libs=yes
  11646. dynamic_linker="$host_os dld.sl"
  11647. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11648. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11649. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11650. soname_spec='$libname$release$shared_ext$major'
  11651. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11652. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11653. ;;
  11654. *)
  11655. shrext_cmds='.sl'
  11656. dynamic_linker="$host_os dld.sl"
  11657. shlibpath_var=SHLIB_PATH
  11658. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11659. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11660. soname_spec='$libname$release$shared_ext$major'
  11661. ;;
  11662. esac
  11663. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11664. postinstall_cmds='chmod 555 $lib'
  11665. # or fails outright, so override atomically:
  11666. install_override_mode=555
  11667. ;;
  11668. interix[3-9]*)
  11669. version_type=linux # correct to gnu/linux during the next big refactor
  11670. need_lib_prefix=no
  11671. need_version=no
  11672. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11673. soname_spec='$libname$release$shared_ext$major'
  11674. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11675. shlibpath_var=LD_LIBRARY_PATH
  11676. shlibpath_overrides_runpath=no
  11677. hardcode_into_libs=yes
  11678. ;;
  11679. irix5* | irix6* | nonstopux*)
  11680. case $host_os in
  11681. nonstopux*) version_type=nonstopux ;;
  11682. *)
  11683. if test yes = "$lt_cv_prog_gnu_ld"; then
  11684. version_type=linux # correct to gnu/linux during the next big refactor
  11685. else
  11686. version_type=irix
  11687. fi ;;
  11688. esac
  11689. need_lib_prefix=no
  11690. need_version=no
  11691. soname_spec='$libname$release$shared_ext$major'
  11692. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11693. case $host_os in
  11694. irix5* | nonstopux*)
  11695. libsuff= shlibsuff=
  11696. ;;
  11697. *)
  11698. case $LD in # libtool.m4 will add one of these switches to LD
  11699. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11700. libsuff= shlibsuff= libmagic=32-bit;;
  11701. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11702. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11703. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11704. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11705. *) libsuff= shlibsuff= libmagic=never-match;;
  11706. esac
  11707. ;;
  11708. esac
  11709. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11710. shlibpath_overrides_runpath=no
  11711. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11712. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11713. hardcode_into_libs=yes
  11714. ;;
  11715. # No shared lib support for Linux oldld, aout, or coff.
  11716. linux*oldld* | linux*aout* | linux*coff*)
  11717. dynamic_linker=no
  11718. ;;
  11719. linux*android*)
  11720. version_type=none # Android doesn't support versioned libraries.
  11721. need_lib_prefix=no
  11722. need_version=no
  11723. library_names_spec='$libname$release$shared_ext $libname$shared_ext'
  11724. soname_spec='$libname$release$shared_ext'
  11725. finish_cmds=
  11726. shlibpath_var=LD_LIBRARY_PATH
  11727. shlibpath_overrides_runpath=yes
  11728. # This implies no fast_install, which is unacceptable.
  11729. # Some rework will be needed to allow for fast_install
  11730. # before this can be enabled.
  11731. hardcode_into_libs=yes
  11732. dynamic_linker='Android linker'
  11733. # -rpath works at least for libraries that are not overridden by
  11734. # libraries installed in system locations.
  11735. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11736. ;;
  11737. # This must be glibc/ELF.
  11738. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11739. version_type=linux # correct to gnu/linux during the next big refactor
  11740. need_lib_prefix=no
  11741. need_version=no
  11742. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11743. soname_spec='$libname$release$shared_ext$major'
  11744. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11745. shlibpath_var=LD_LIBRARY_PATH
  11746. shlibpath_overrides_runpath=no
  11747. # Some binutils ld are patched to set DT_RUNPATH
  11748. if test ${lt_cv_shlibpath_overrides_runpath+y}
  11749. then :
  11750. printf %s "(cached) " >&6
  11751. else case e in #(
  11752. e) lt_cv_shlibpath_overrides_runpath=no
  11753. save_LDFLAGS=$LDFLAGS
  11754. save_libdir=$libdir
  11755. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11756. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11758. /* end confdefs.h. */
  11759. int
  11760. main (void)
  11761. {
  11762. ;
  11763. return 0;
  11764. }
  11765. _ACEOF
  11766. if ac_fn_c_try_link "$LINENO"
  11767. then :
  11768. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  11769. then :
  11770. lt_cv_shlibpath_overrides_runpath=yes
  11771. fi
  11772. fi
  11773. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11774. conftest$ac_exeext conftest.$ac_ext
  11775. LDFLAGS=$save_LDFLAGS
  11776. libdir=$save_libdir
  11777. ;;
  11778. esac
  11779. fi
  11780. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11781. # This implies no fast_install, which is unacceptable.
  11782. # Some rework will be needed to allow for fast_install
  11783. # before this can be enabled.
  11784. hardcode_into_libs=yes
  11785. # Ideally, we could use ldconfig to report *all* directories which are
  11786. # searched for libraries, however this is still not possible. Aside from not
  11787. # being certain /sbin/ldconfig is available, command
  11788. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11789. # even though it is searched at run-time. Try to do the best guess by
  11790. # appending ld.so.conf contents (and includes) to the search path.
  11791. if test -f /etc/ld.so.conf; then
  11792. 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' ' '`
  11793. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11794. fi
  11795. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11796. # powerpc, because MkLinux only supported shared libraries with the
  11797. # GNU dynamic linker. Since this was broken with cross compilers,
  11798. # most powerpc-linux boxes support dynamic linking these days and
  11799. # people can always --disable-shared, the test was removed, and we
  11800. # assume the GNU/Linux dynamic linker is in use.
  11801. dynamic_linker='GNU/Linux ld.so'
  11802. ;;
  11803. netbsdelf*-gnu)
  11804. version_type=linux
  11805. need_lib_prefix=no
  11806. need_version=no
  11807. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11808. soname_spec='$libname$release$shared_ext$major'
  11809. shlibpath_var=LD_LIBRARY_PATH
  11810. shlibpath_overrides_runpath=no
  11811. hardcode_into_libs=yes
  11812. dynamic_linker='NetBSD ld.elf_so'
  11813. ;;
  11814. netbsdelf*-gnu)
  11815. version_type=linux
  11816. need_lib_prefix=no
  11817. need_version=no
  11818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11819. soname_spec='${libname}${release}${shared_ext}$major'
  11820. shlibpath_var=LD_LIBRARY_PATH
  11821. shlibpath_overrides_runpath=no
  11822. hardcode_into_libs=yes
  11823. dynamic_linker='NetBSD ld.elf_so'
  11824. ;;
  11825. netbsd*)
  11826. version_type=sunos
  11827. need_lib_prefix=no
  11828. need_version=no
  11829. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11830. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11831. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11832. dynamic_linker='NetBSD (a.out) ld.so'
  11833. else
  11834. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11835. soname_spec='$libname$release$shared_ext$major'
  11836. dynamic_linker='NetBSD ld.elf_so'
  11837. fi
  11838. shlibpath_var=LD_LIBRARY_PATH
  11839. shlibpath_overrides_runpath=yes
  11840. hardcode_into_libs=yes
  11841. ;;
  11842. *-mlibc)
  11843. version_type=linux # correct to gnu/linux during the next big refactor
  11844. need_lib_prefix=no
  11845. need_version=no
  11846. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11847. soname_spec='$libname$release$shared_ext$major'
  11848. dynamic_linker='mlibc ld.so'
  11849. shlibpath_var=LD_LIBRARY_PATH
  11850. shlibpath_overrides_runpath=no
  11851. hardcode_into_libs=yes
  11852. ;;
  11853. newsos6)
  11854. version_type=linux # correct to gnu/linux during the next big refactor
  11855. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11856. shlibpath_var=LD_LIBRARY_PATH
  11857. shlibpath_overrides_runpath=yes
  11858. ;;
  11859. *nto* | *qnx*)
  11860. version_type=qnx
  11861. need_lib_prefix=no
  11862. need_version=no
  11863. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11864. soname_spec='$libname$release$shared_ext$major'
  11865. shlibpath_var=LD_LIBRARY_PATH
  11866. shlibpath_overrides_runpath=no
  11867. hardcode_into_libs=yes
  11868. dynamic_linker='ldqnx.so'
  11869. ;;
  11870. openbsd*)
  11871. version_type=sunos
  11872. sys_lib_dlsearch_path_spec=/usr/lib
  11873. need_lib_prefix=no
  11874. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11875. need_version=no
  11876. else
  11877. need_version=yes
  11878. fi
  11879. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11880. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11881. shlibpath_var=LD_LIBRARY_PATH
  11882. shlibpath_overrides_runpath=yes
  11883. ;;
  11884. os2*)
  11885. libname_spec='$name'
  11886. version_type=windows
  11887. shrext_cmds=.dll
  11888. need_version=no
  11889. need_lib_prefix=no
  11890. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11891. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11892. v=$($ECHO $release$versuffix | tr -d .-);
  11893. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11894. $ECHO $n$v`$shared_ext'
  11895. library_names_spec='${libname}_dll.$libext'
  11896. dynamic_linker='OS/2 ld.exe'
  11897. shlibpath_var=BEGINLIBPATH
  11898. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11899. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11900. postinstall_cmds='base_file=`basename \$file`~
  11901. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11902. dldir=$destdir/`dirname \$dlpath`~
  11903. test -d \$dldir || mkdir -p \$dldir~
  11904. $install_prog $dir/$dlname \$dldir/$dlname~
  11905. chmod a+x \$dldir/$dlname~
  11906. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11907. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11908. fi'
  11909. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11910. dlpath=$dir/\$dldll~
  11911. $RM \$dlpath'
  11912. ;;
  11913. osf3* | osf4* | osf5*)
  11914. version_type=osf
  11915. need_lib_prefix=no
  11916. need_version=no
  11917. soname_spec='$libname$release$shared_ext$major'
  11918. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11919. shlibpath_var=LD_LIBRARY_PATH
  11920. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11921. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11922. ;;
  11923. rdos*)
  11924. dynamic_linker=no
  11925. ;;
  11926. serenity*)
  11927. version_type=linux # correct to gnu/linux during the next big refactor
  11928. need_lib_prefix=no
  11929. need_version=no
  11930. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11931. soname_spec='$libname$release$shared_ext$major'
  11932. shlibpath_var=LD_LIBRARY_PATH
  11933. shlibpath_overrides_runpath=no
  11934. dynamic_linker='SerenityOS LibELF'
  11935. ;;
  11936. solaris*)
  11937. version_type=linux # correct to gnu/linux during the next big refactor
  11938. need_lib_prefix=no
  11939. need_version=no
  11940. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11941. soname_spec='$libname$release$shared_ext$major'
  11942. shlibpath_var=LD_LIBRARY_PATH
  11943. shlibpath_overrides_runpath=yes
  11944. hardcode_into_libs=yes
  11945. # ldd complains unless libraries are executable
  11946. postinstall_cmds='chmod +x $lib'
  11947. ;;
  11948. sunos4*)
  11949. version_type=sunos
  11950. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11951. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11952. shlibpath_var=LD_LIBRARY_PATH
  11953. shlibpath_overrides_runpath=yes
  11954. if test yes = "$with_gnu_ld"; then
  11955. need_lib_prefix=no
  11956. fi
  11957. need_version=yes
  11958. ;;
  11959. sysv4 | sysv4.3*)
  11960. version_type=linux # correct to gnu/linux during the next big refactor
  11961. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11962. soname_spec='$libname$release$shared_ext$major'
  11963. shlibpath_var=LD_LIBRARY_PATH
  11964. case $host_vendor in
  11965. sni)
  11966. shlibpath_overrides_runpath=no
  11967. need_lib_prefix=no
  11968. runpath_var=LD_RUN_PATH
  11969. ;;
  11970. siemens)
  11971. need_lib_prefix=no
  11972. ;;
  11973. motorola)
  11974. need_lib_prefix=no
  11975. need_version=no
  11976. shlibpath_overrides_runpath=no
  11977. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11978. ;;
  11979. esac
  11980. ;;
  11981. sysv4*MP*)
  11982. if test -d /usr/nec; then
  11983. version_type=linux # correct to gnu/linux during the next big refactor
  11984. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11985. soname_spec='$libname$shared_ext.$major'
  11986. shlibpath_var=LD_LIBRARY_PATH
  11987. fi
  11988. ;;
  11989. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11990. version_type=sco
  11991. need_lib_prefix=no
  11992. need_version=no
  11993. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11994. soname_spec='$libname$release$shared_ext$major'
  11995. shlibpath_var=LD_LIBRARY_PATH
  11996. shlibpath_overrides_runpath=yes
  11997. hardcode_into_libs=yes
  11998. if test yes = "$with_gnu_ld"; then
  11999. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12000. else
  12001. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12002. case $host_os in
  12003. sco3.2v5*)
  12004. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12005. ;;
  12006. esac
  12007. fi
  12008. sys_lib_dlsearch_path_spec='/usr/lib'
  12009. ;;
  12010. tpf*)
  12011. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12012. version_type=linux # correct to gnu/linux during the next big refactor
  12013. need_lib_prefix=no
  12014. need_version=no
  12015. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12016. shlibpath_var=LD_LIBRARY_PATH
  12017. shlibpath_overrides_runpath=no
  12018. hardcode_into_libs=yes
  12019. ;;
  12020. uts4*)
  12021. version_type=linux # correct to gnu/linux during the next big refactor
  12022. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12023. soname_spec='$libname$release$shared_ext$major'
  12024. shlibpath_var=LD_LIBRARY_PATH
  12025. ;;
  12026. emscripten*)
  12027. version_type=none
  12028. need_lib_prefix=no
  12029. need_version=no
  12030. library_names_spec='$libname$release$shared_ext'
  12031. soname_spec='$libname$release$shared_ext'
  12032. finish_cmds=
  12033. dynamic_linker="Emscripten linker"
  12034. lt_prog_compiler_wl=
  12035. lt_prog_compiler_pic=
  12036. lt_prog_compiler_static=
  12037. if test yes = "$GCC"; then
  12038. lt_prog_compiler_wl='-Wl,'
  12039. lt_prog_compiler_static='-static'
  12040. case $host_os in
  12041. aix*)
  12042. # All AIX code is PIC.
  12043. if test ia64 = "$host_cpu"; then
  12044. # AIX 5 now supports IA64 processor
  12045. lt_prog_compiler_static='-Bstatic'
  12046. fi
  12047. lt_prog_compiler_pic='-fPIC'
  12048. ;;
  12049. amigaos*)
  12050. case $host_cpu in
  12051. powerpc)
  12052. # see comment about AmigaOS4 .so support
  12053. lt_prog_compiler_pic='-fPIC'
  12054. ;;
  12055. m68k)
  12056. # FIXME: we need at least 68020 code to build shared libraries, but
  12057. # adding the '-m68020' flag to GCC prevents building anything better,
  12058. # like '-m68040'.
  12059. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  12060. ;;
  12061. esac
  12062. ;;
  12063. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12064. # PIC is the default for these OSes.
  12065. ;;
  12066. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  12067. # This hack is so that the source file can tell whether it is being
  12068. # built for inclusion in a dll (and should export symbols for example).
  12069. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12070. # (--disable-auto-import) libraries
  12071. lt_prog_compiler_pic='-DDLL_EXPORT'
  12072. case $host_os in
  12073. os2*)
  12074. lt_prog_compiler_static='$wl-static'
  12075. ;;
  12076. esac
  12077. ;;
  12078. darwin* | rhapsody*)
  12079. # PIC is the default on this platform
  12080. # Common symbols not allowed in MH_DYLIB files
  12081. lt_prog_compiler_pic='-fno-common'
  12082. ;;
  12083. haiku*)
  12084. # PIC is the default for Haiku.
  12085. # The "-static" flag exists, but is broken.
  12086. lt_prog_compiler_static=
  12087. ;;
  12088. hpux*)
  12089. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12090. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12091. # sets the default TLS model and affects inlining.
  12092. case $host_cpu in
  12093. hppa*64*)
  12094. # +Z the default
  12095. ;;
  12096. *)
  12097. lt_prog_compiler_pic='-fPIC'
  12098. ;;
  12099. esac
  12100. ;;
  12101. interix[3-9]*)
  12102. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12103. # Instead, we relocate shared libraries at runtime.
  12104. ;;
  12105. msdosdjgpp*)
  12106. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12107. # on systems that don't support them.
  12108. lt_prog_compiler_can_build_shared=no
  12109. enable_shared=no
  12110. ;;
  12111. *nto* | *qnx*)
  12112. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12113. # it will coredump.
  12114. lt_prog_compiler_pic='-fPIC -shared'
  12115. ;;
  12116. sysv4*MP*)
  12117. if test -d /usr/nec; then
  12118. lt_prog_compiler_pic=-Kconform_pic
  12119. fi
  12120. ;;
  12121. *)
  12122. lt_prog_compiler_pic='-fPIC'
  12123. ;;
  12124. esac
  12125. case $cc_basename in
  12126. nvcc*) # Cuda Compiler Driver 2.2
  12127. lt_prog_compiler_wl='-Xlinker '
  12128. if test -n "$lt_prog_compiler_pic"; then
  12129. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  12130. fi
  12131. ;;
  12132. esac
  12133. else
  12134. # PORTME Check for flag to pass linker flags through the system compiler.
  12135. case $host_os in
  12136. aix*)
  12137. lt_prog_compiler_wl='-Wl,'
  12138. if test ia64 = "$host_cpu"; then
  12139. # AIX 5 now supports IA64 processor
  12140. lt_prog_compiler_static='-Bstatic'
  12141. else
  12142. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  12143. fi
  12144. ;;
  12145. darwin* | rhapsody*)
  12146. # PIC is the default on this platform
  12147. # Common symbols not allowed in MH_DYLIB files
  12148. lt_prog_compiler_pic='-fno-common'
  12149. case $cc_basename in
  12150. nagfor*)
  12151. # NAG Fortran compiler
  12152. lt_prog_compiler_wl='-Wl,-Wl,,'
  12153. lt_prog_compiler_pic='-PIC'
  12154. lt_prog_compiler_static='-Bstatic'
  12155. ;;
  12156. esac
  12157. ;;
  12158. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  12159. # This hack is so that the source file can tell whether it is being
  12160. # built for inclusion in a dll (and should export symbols for example).
  12161. lt_prog_compiler_pic='-DDLL_EXPORT'
  12162. case $host_os in
  12163. os2*)
  12164. lt_prog_compiler_static='$wl-static'
  12165. ;;
  12166. esac
  12167. ;;
  12168. hpux9* | hpux10* | hpux11*)
  12169. lt_prog_compiler_wl='-Wl,'
  12170. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12171. # not for PA HP-UX.
  12172. case $host_cpu in
  12173. hppa*64*|ia64*)
  12174. # +Z the default
  12175. ;;
  12176. *)
  12177. lt_prog_compiler_pic='+Z'
  12178. ;;
  12179. esac
  12180. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12181. lt_prog_compiler_static='$wl-a ${wl}archive'
  12182. ;;
  12183. irix5* | irix6* | nonstopux*)
  12184. lt_prog_compiler_wl='-Wl,'
  12185. # PIC (with -KPIC) is the default.
  12186. lt_prog_compiler_static='-non_shared'
  12187. ;;
  12188. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12189. case $cc_basename in
  12190. # old Intel for x86_64, which still supported -KPIC.
  12191. ecc*)
  12192. lt_prog_compiler_wl='-Wl,'
  12193. lt_prog_compiler_pic='-KPIC'
  12194. lt_prog_compiler_static='-static'
  12195. ;;
  12196. *flang* | ftn | f18* | f95*)
  12197. # Flang compiler.
  12198. lt_prog_compiler_wl='-Wl,'
  12199. lt_prog_compiler_pic='-fPIC'
  12200. lt_prog_compiler_static='-static'
  12201. ;;
  12202. # flang / f18. f95 an alias for gfortran or flang on Debian
  12203. flang* | f18* | f95*)
  12204. lt_prog_compiler_wl='-Wl,'
  12205. lt_prog_compiler_pic='-fPIC'
  12206. lt_prog_compiler_static='-static'
  12207. ;;
  12208. # icc used to be incompatible with GCC.
  12209. # ICC 10 doesn't accept -KPIC any more.
  12210. icc* | ifort*)
  12211. lt_prog_compiler_wl='-Wl,'
  12212. lt_prog_compiler_pic='-fPIC'
  12213. lt_prog_compiler_static='-static'
  12214. ;;
  12215. # Lahey Fortran 8.1.
  12216. lf95*)
  12217. lt_prog_compiler_wl='-Wl,'
  12218. lt_prog_compiler_pic='--shared'
  12219. lt_prog_compiler_static='--static'
  12220. ;;
  12221. nagfor*)
  12222. # NAG Fortran compiler
  12223. lt_prog_compiler_wl='-Wl,-Wl,,'
  12224. lt_prog_compiler_pic='-PIC'
  12225. lt_prog_compiler_static='-Bstatic'
  12226. ;;
  12227. tcc*)
  12228. # Fabrice Bellard et al's Tiny C Compiler
  12229. lt_prog_compiler_wl='-Wl,'
  12230. lt_prog_compiler_pic='-fPIC'
  12231. lt_prog_compiler_static='-static'
  12232. ;;
  12233. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  12234. # Portland Group compilers (*not* the Pentium gcc compiler,
  12235. # which looks to be a dead project)
  12236. lt_prog_compiler_wl='-Wl,'
  12237. lt_prog_compiler_pic='-fpic'
  12238. lt_prog_compiler_static='-Bstatic'
  12239. ;;
  12240. ccc*)
  12241. lt_prog_compiler_wl='-Wl,'
  12242. # All Alpha code is PIC.
  12243. lt_prog_compiler_static='-non_shared'
  12244. ;;
  12245. xl* | bgxl* | bgf* | mpixl*)
  12246. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  12247. lt_prog_compiler_wl='-Wl,'
  12248. lt_prog_compiler_pic='-qpic'
  12249. lt_prog_compiler_static='-qstaticlink'
  12250. ;;
  12251. *)
  12252. case `$CC -V 2>&1 | $SED 5q` in
  12253. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  12254. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12255. lt_prog_compiler_pic='-KPIC'
  12256. lt_prog_compiler_static='-Bstatic'
  12257. lt_prog_compiler_wl=''
  12258. ;;
  12259. *Sun\ F* | *Sun*Fortran*)
  12260. lt_prog_compiler_pic='-KPIC'
  12261. lt_prog_compiler_static='-Bstatic'
  12262. lt_prog_compiler_wl='-Qoption ld '
  12263. ;;
  12264. *Sun\ C*)
  12265. # Sun C 5.9
  12266. lt_prog_compiler_pic='-KPIC'
  12267. lt_prog_compiler_static='-Bstatic'
  12268. lt_prog_compiler_wl='-Wl,'
  12269. ;;
  12270. *Intel*\ [CF]*Compiler*)
  12271. lt_prog_compiler_wl='-Wl,'
  12272. lt_prog_compiler_pic='-fPIC'
  12273. lt_prog_compiler_static='-static'
  12274. ;;
  12275. *Portland\ Group*)
  12276. lt_prog_compiler_wl='-Wl,'
  12277. lt_prog_compiler_pic='-fpic'
  12278. lt_prog_compiler_static='-Bstatic'
  12279. ;;
  12280. esac
  12281. ;;
  12282. esac
  12283. ;;
  12284. newsos6)
  12285. lt_prog_compiler_pic='-KPIC'
  12286. lt_prog_compiler_static='-Bstatic'
  12287. ;;
  12288. *-mlibc)
  12289. lt_prog_compiler_wl='-Wl,'
  12290. lt_prog_compiler_pic='-fPIC'
  12291. lt_prog_compiler_static='-static'
  12292. ;;
  12293. *nto* | *qnx*)
  12294. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12295. # it will coredump.
  12296. lt_prog_compiler_pic='-fPIC -shared'
  12297. ;;
  12298. osf3* | osf4* | osf5*)
  12299. lt_prog_compiler_wl='-Wl,'
  12300. # All OSF/1 code is PIC.
  12301. lt_prog_compiler_static='-non_shared'
  12302. ;;
  12303. rdos*)
  12304. lt_prog_compiler_static='-non_shared'
  12305. ;;
  12306. serenity*)
  12307. ;;
  12308. solaris*)
  12309. lt_prog_compiler_pic='-KPIC'
  12310. lt_prog_compiler_static='-Bstatic'
  12311. case $cc_basename in
  12312. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  12313. lt_prog_compiler_wl='-Qoption ld ';;
  12314. *)
  12315. lt_prog_compiler_wl='-Wl,';;
  12316. esac
  12317. ;;
  12318. sunos4*)
  12319. lt_prog_compiler_wl='-Qoption ld '
  12320. lt_prog_compiler_pic='-PIC'
  12321. lt_prog_compiler_static='-Bstatic'
  12322. ;;
  12323. sysv4 | sysv4.2uw2* | sysv4.3*)
  12324. lt_prog_compiler_wl='-Wl,'
  12325. lt_prog_compiler_pic='-KPIC'
  12326. lt_prog_compiler_static='-Bstatic'
  12327. ;;
  12328. sysv4*MP*)
  12329. if test -d /usr/nec; then
  12330. lt_prog_compiler_pic='-Kconform_pic'
  12331. lt_prog_compiler_static='-Bstatic'
  12332. fi
  12333. ;;
  12334. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12335. lt_prog_compiler_wl='-Wl,'
  12336. lt_prog_compiler_pic='-KPIC'
  12337. lt_prog_compiler_static='-Bstatic'
  12338. ;;
  12339. unicos*)
  12340. lt_prog_compiler_wl='-Wl,'
  12341. lt_prog_compiler_can_build_shared=no
  12342. ;;
  12343. uts4*)
  12344. lt_prog_compiler_pic='-pic'
  12345. lt_prog_compiler_static='-Bstatic'
  12346. ;;
  12347. *)
  12348. lt_prog_compiler_can_build_shared=no
  12349. ;;
  12350. esac
  12351. fi
  12352. case $host_os in
  12353. # For platforms that do not support PIC, -DPIC is meaningless:
  12354. *djgpp*)
  12355. lt_prog_compiler_pic=
  12356. ;;
  12357. *)
  12358. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  12359. ;;
  12360. esac
  12361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12362. printf %s "checking for $compiler option to produce PIC... " >&6; }
  12363. if test ${lt_cv_prog_compiler_pic+y}
  12364. then :
  12365. printf %s "(cached) " >&6
  12366. else case e in #(
  12367. e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
  12368. esac
  12369. fi
  12370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  12371. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  12372. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  12373. #
  12374. # Check to make sure the PIC flag actually works.
  12375. #
  12376. if test -n "$lt_prog_compiler_pic"; then
  12377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  12378. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  12379. if test ${lt_cv_prog_compiler_pic_works+y}
  12380. then :
  12381. printf %s "(cached) " >&6
  12382. else case e in #(
  12383. e) lt_cv_prog_compiler_pic_works=no
  12384. ac_outfile=conftest.$ac_objext
  12385. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12386. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  12387. # Insert the option either (1) after the last *FLAGS variable, or
  12388. # (2) before a word containing "conftest.", or (3) at the end.
  12389. # Note that $ac_compile itself does not contain backslashes and begins
  12390. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12391. # The option is referenced via a variable to avoid confusing sed.
  12392. lt_compile=`echo "$ac_compile" | $SED \
  12393. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12394. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12395. -e 's:$: $lt_compiler_flag:'`
  12396. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12397. (eval "$lt_compile" 2>conftest.err)
  12398. ac_status=$?
  12399. cat conftest.err >&5
  12400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12401. if (exit $ac_status) && test -s "$ac_outfile"; then
  12402. # The compiler can only warn and ignore the option if not recognized
  12403. # So say no if there are warnings other than the usual output.
  12404. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12405. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12406. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12407. lt_cv_prog_compiler_pic_works=yes
  12408. fi
  12409. fi
  12410. $RM conftest*
  12411. ;;
  12412. esac
  12413. fi
  12414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  12415. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  12416. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  12417. case $lt_prog_compiler_pic in
  12418. "" | " "*) ;;
  12419. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  12420. esac
  12421. else
  12422. lt_prog_compiler_pic=
  12423. lt_prog_compiler_can_build_shared=no
  12424. fi
  12425. fi
  12426. #
  12427. # Check to make sure the static flag actually works.
  12428. #
  12429. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  12430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12431. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12432. if test ${lt_cv_prog_compiler_static_works+y}
  12433. then :
  12434. printf %s "(cached) " >&6
  12435. else case e in #(
  12436. e) lt_cv_prog_compiler_static_works=no
  12437. save_LDFLAGS=$LDFLAGS
  12438. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12439. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12440. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12441. # The linker can only warn and ignore the option if not recognized
  12442. # So say no if there are warnings
  12443. if test -s conftest.err; then
  12444. # Append any errors to the config.log.
  12445. cat conftest.err 1>&5
  12446. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12447. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12448. if diff conftest.exp conftest.er2 >/dev/null; then
  12449. lt_cv_prog_compiler_static_works=yes
  12450. fi
  12451. else
  12452. lt_cv_prog_compiler_static_works=yes
  12453. fi
  12454. fi
  12455. $RM -r conftest*
  12456. LDFLAGS=$save_LDFLAGS
  12457. ;;
  12458. esac
  12459. fi
  12460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  12461. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  12462. if test yes = "$lt_cv_prog_compiler_static_works"; then
  12463. :
  12464. else
  12465. lt_prog_compiler_static=
  12466. fi
  12467. ='-fPIC'
  12468. archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
  12469. archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
  12470. archive_cmds_need_lc=no
  12471. no_undefined_flag=
  12472. ;;
  12473. *)
  12474. dynamic_linker=no
  12475. ;;
  12476. esac
  12477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12478. printf "%s\n" "$dynamic_linker" >&6; }
  12479. test no = "$dynamic_linker" && can_build_shared=no
  12480. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12481. if test yes = "$GCC"; then
  12482. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12483. fi
  12484. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  12485. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  12486. fi
  12487. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  12488. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  12489. fi
  12490. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  12491. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  12492. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  12493. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  12494. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  12495. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  12496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12497. printf %s "checking how to hardcode library paths into programs... " >&6; }
  12498. hardcode_action=
  12499. if test -n "$hardcode_libdir_flag_spec" ||
  12500. test -n "$runpath_var" ||
  12501. test yes = "$hardcode_automatic"; then
  12502. # We can hardcode non-existent directories.
  12503. if test no != "$hardcode_direct" &&
  12504. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12505. # have to relink, otherwise we might link with an installed library
  12506. # when we should be linking with a yet-to-be-installed one
  12507. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  12508. test no != "$hardcode_minus_L"; then
  12509. # Linking always hardcodes the temporary library directory.
  12510. hardcode_action=relink
  12511. else
  12512. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12513. hardcode_action=immediate
  12514. fi
  12515. else
  12516. # We cannot hardcode anything, or else we can only hardcode existing
  12517. # directories.
  12518. hardcode_action=unsupported
  12519. fi
  12520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12521. printf "%s\n" "$hardcode_action" >&6; }
  12522. if test relink = "$hardcode_action" ||
  12523. test yes = "$inherit_rpath"; then
  12524. # Fast installation is not supported
  12525. enable_fast_install=no
  12526. elif test yes = "$shlibpath_overrides_runpath" ||
  12527. test no = "$enable_shared"; then
  12528. # Fast installation is not necessary
  12529. enable_fast_install=needless
  12530. fi
  12531. if test yes != "$enable_dlopen"; then
  12532. enable_dlopen=unknown
  12533. enable_dlopen_self=unknown
  12534. enable_dlopen_self_static=unknown
  12535. else
  12536. lt_cv_dlopen=no
  12537. lt_cv_dlopen_libs=
  12538. case $host_os in
  12539. beos*)
  12540. lt_cv_dlopen=load_add_on
  12541. lt_cv_dlopen_libs=
  12542. lt_cv_dlopen_self=yes
  12543. ;;
  12544. mingw* | windows* | pw32* | cegcc*)
  12545. lt_cv_dlopen=LoadLibrary
  12546. lt_cv_dlopen_libs=
  12547. ;;
  12548. cygwin*)
  12549. lt_cv_dlopen=dlopen
  12550. lt_cv_dlopen_libs=
  12551. ;;
  12552. darwin*)
  12553. # if libdl is installed we need to link against it
  12554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12555. printf %s "checking for dlopen in -ldl... " >&6; }
  12556. if test ${ac_cv_lib_dl_dlopen+y}
  12557. then :
  12558. printf %s "(cached) " >&6
  12559. else case e in #(
  12560. e) ac_check_lib_save_LIBS=$LIBS
  12561. LIBS="-ldl $LIBS"
  12562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12563. /* end confdefs.h. */
  12564. /* Override any GCC internal prototype to avoid an error.
  12565. Use char because int might match the return type of a GCC
  12566. builtin and then its argument prototype would still apply.
  12567. The 'extern "C"' is for builds by C++ compilers;
  12568. although this is not generally supported in C code supporting it here
  12569. has little cost and some practical benefit (sr 110532). */
  12570. #ifdef __cplusplus
  12571. extern "C"
  12572. #endif
  12573. char dlopen (void);
  12574. int
  12575. main (void)
  12576. {
  12577. return dlopen ();
  12578. ;
  12579. return 0;
  12580. }
  12581. _ACEOF
  12582. if ac_fn_c_try_link "$LINENO"
  12583. then :
  12584. ac_cv_lib_dl_dlopen=yes
  12585. else case e in #(
  12586. e) ac_cv_lib_dl_dlopen=no ;;
  12587. esac
  12588. fi
  12589. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12590. conftest$ac_exeext conftest.$ac_ext
  12591. LIBS=$ac_check_lib_save_LIBS ;;
  12592. esac
  12593. fi
  12594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12595. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  12596. if test "x$ac_cv_lib_dl_dlopen" = xyes
  12597. then :
  12598. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12599. else case e in #(
  12600. e)
  12601. lt_cv_dlopen=dyld
  12602. lt_cv_dlopen_libs=
  12603. lt_cv_dlopen_self=yes
  12604. ;;
  12605. esac
  12606. fi
  12607. ;;
  12608. tpf*)
  12609. # Don't try to run any link tests for TPF. We know it's impossible
  12610. # because TPF is a cross-compiler, and we know how we open DSOs.
  12611. lt_cv_dlopen=dlopen
  12612. lt_cv_dlopen_libs=
  12613. lt_cv_dlopen_self=no
  12614. ;;
  12615. *)
  12616. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12617. if test "x$ac_cv_func_shl_load" = xyes
  12618. then :
  12619. lt_cv_dlopen=shl_load
  12620. else case e in #(
  12621. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12622. printf %s "checking for shl_load in -ldld... " >&6; }
  12623. if test ${ac_cv_lib_dld_shl_load+y}
  12624. then :
  12625. printf %s "(cached) " >&6
  12626. else case e in #(
  12627. e) ac_check_lib_save_LIBS=$LIBS
  12628. LIBS="-ldld $LIBS"
  12629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12630. /* end confdefs.h. */
  12631. /* Override any GCC internal prototype to avoid an error.
  12632. Use char because int might match the return type of a GCC
  12633. builtin and then its argument prototype would still apply.
  12634. The 'extern "C"' is for builds by C++ compilers;
  12635. although this is not generally supported in C code supporting it here
  12636. has little cost and some practical benefit (sr 110532). */
  12637. #ifdef __cplusplus
  12638. extern "C"
  12639. #endif
  12640. char shl_load (void);
  12641. int
  12642. main (void)
  12643. {
  12644. return shl_load ();
  12645. ;
  12646. return 0;
  12647. }
  12648. _ACEOF
  12649. if ac_fn_c_try_link "$LINENO"
  12650. then :
  12651. ac_cv_lib_dld_shl_load=yes
  12652. else case e in #(
  12653. e) ac_cv_lib_dld_shl_load=no ;;
  12654. esac
  12655. fi
  12656. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12657. conftest$ac_exeext conftest.$ac_ext
  12658. LIBS=$ac_check_lib_save_LIBS ;;
  12659. esac
  12660. fi
  12661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12662. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  12663. if test "x$ac_cv_lib_dld_shl_load" = xyes
  12664. then :
  12665. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  12666. else case e in #(
  12667. e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12668. if test "x$ac_cv_func_dlopen" = xyes
  12669. then :
  12670. lt_cv_dlopen=dlopen
  12671. else case e in #(
  12672. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12673. printf %s "checking for dlopen in -ldl... " >&6; }
  12674. if test ${ac_cv_lib_dl_dlopen+y}
  12675. then :
  12676. printf %s "(cached) " >&6
  12677. else case e in #(
  12678. e) ac_check_lib_save_LIBS=$LIBS
  12679. LIBS="-ldl $LIBS"
  12680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12681. /* end confdefs.h. */
  12682. /* Override any GCC internal prototype to avoid an error.
  12683. Use char because int might match the return type of a GCC
  12684. builtin and then its argument prototype would still apply.
  12685. The 'extern "C"' is for builds by C++ compilers;
  12686. although this is not generally supported in C code supporting it here
  12687. has little cost and some practical benefit (sr 110532). */
  12688. #ifdef __cplusplus
  12689. extern "C"
  12690. #endif
  12691. char dlopen (void);
  12692. int
  12693. main (void)
  12694. {
  12695. return dlopen ();
  12696. ;
  12697. return 0;
  12698. }
  12699. _ACEOF
  12700. if ac_fn_c_try_link "$LINENO"
  12701. then :
  12702. ac_cv_lib_dl_dlopen=yes
  12703. else case e in #(
  12704. e) ac_cv_lib_dl_dlopen=no ;;
  12705. esac
  12706. fi
  12707. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12708. conftest$ac_exeext conftest.$ac_ext
  12709. LIBS=$ac_check_lib_save_LIBS ;;
  12710. esac
  12711. fi
  12712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12713. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  12714. if test "x$ac_cv_lib_dl_dlopen" = xyes
  12715. then :
  12716. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12717. else case e in #(
  12718. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12719. printf %s "checking for dlopen in -lsvld... " >&6; }
  12720. if test ${ac_cv_lib_svld_dlopen+y}
  12721. then :
  12722. printf %s "(cached) " >&6
  12723. else case e in #(
  12724. e) ac_check_lib_save_LIBS=$LIBS
  12725. LIBS="-lsvld $LIBS"
  12726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12727. /* end confdefs.h. */
  12728. /* Override any GCC internal prototype to avoid an error.
  12729. Use char because int might match the return type of a GCC
  12730. builtin and then its argument prototype would still apply.
  12731. The 'extern "C"' is for builds by C++ compilers;
  12732. although this is not generally supported in C code supporting it here
  12733. has little cost and some practical benefit (sr 110532). */
  12734. #ifdef __cplusplus
  12735. extern "C"
  12736. #endif
  12737. char dlopen (void);
  12738. int
  12739. main (void)
  12740. {
  12741. return dlopen ();
  12742. ;
  12743. return 0;
  12744. }
  12745. _ACEOF
  12746. if ac_fn_c_try_link "$LINENO"
  12747. then :
  12748. ac_cv_lib_svld_dlopen=yes
  12749. else case e in #(
  12750. e) ac_cv_lib_svld_dlopen=no ;;
  12751. esac
  12752. fi
  12753. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12754. conftest$ac_exeext conftest.$ac_ext
  12755. LIBS=$ac_check_lib_save_LIBS ;;
  12756. esac
  12757. fi
  12758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12759. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  12760. if test "x$ac_cv_lib_svld_dlopen" = xyes
  12761. then :
  12762. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  12763. else case e in #(
  12764. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12765. printf %s "checking for dld_link in -ldld... " >&6; }
  12766. if test ${ac_cv_lib_dld_dld_link+y}
  12767. then :
  12768. printf %s "(cached) " >&6
  12769. else case e in #(
  12770. e) ac_check_lib_save_LIBS=$LIBS
  12771. LIBS="-ldld $LIBS"
  12772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12773. /* end confdefs.h. */
  12774. /* Override any GCC internal prototype to avoid an error.
  12775. Use char because int might match the return type of a GCC
  12776. builtin and then its argument prototype would still apply.
  12777. The 'extern "C"' is for builds by C++ compilers;
  12778. although this is not generally supported in C code supporting it here
  12779. has little cost and some practical benefit (sr 110532). */
  12780. #ifdef __cplusplus
  12781. extern "C"
  12782. #endif
  12783. char dld_link (void);
  12784. int
  12785. main (void)
  12786. {
  12787. return dld_link ();
  12788. ;
  12789. return 0;
  12790. }
  12791. _ACEOF
  12792. if ac_fn_c_try_link "$LINENO"
  12793. then :
  12794. ac_cv_lib_dld_dld_link=yes
  12795. else case e in #(
  12796. e) ac_cv_lib_dld_dld_link=no ;;
  12797. esac
  12798. fi
  12799. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12800. conftest$ac_exeext conftest.$ac_ext
  12801. LIBS=$ac_check_lib_save_LIBS ;;
  12802. esac
  12803. fi
  12804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12805. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  12806. if test "x$ac_cv_lib_dld_dld_link" = xyes
  12807. then :
  12808. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12809. fi
  12810. ;;
  12811. esac
  12812. fi
  12813. ;;
  12814. esac
  12815. fi
  12816. ;;
  12817. esac
  12818. fi
  12819. ;;
  12820. esac
  12821. fi
  12822. ;;
  12823. esac
  12824. fi
  12825. ;;
  12826. esac
  12827. if test no = "$lt_cv_dlopen"; then
  12828. enable_dlopen=no
  12829. else
  12830. enable_dlopen=yes
  12831. fi
  12832. case $lt_cv_dlopen in
  12833. dlopen)
  12834. save_CPPFLAGS=$CPPFLAGS
  12835. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12836. save_LDFLAGS=$LDFLAGS
  12837. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12838. save_LIBS=$LIBS
  12839. LIBS="$lt_cv_dlopen_libs $LIBS"
  12840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12841. printf %s "checking whether a program can dlopen itself... " >&6; }
  12842. if test ${lt_cv_dlopen_self+y}
  12843. then :
  12844. printf %s "(cached) " >&6
  12845. else case e in #(
  12846. e) if test yes = "$cross_compiling"; then :
  12847. lt_cv_dlopen_self=cross
  12848. else
  12849. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12850. lt_status=$lt_dlunknown
  12851. cat > conftest.$ac_ext <<_LT_EOF
  12852. #line $LINENO "configure"
  12853. #include "confdefs.h"
  12854. #if HAVE_DLFCN_H
  12855. #include <dlfcn.h>
  12856. #endif
  12857. #include <stdio.h>
  12858. #ifdef RTLD_GLOBAL
  12859. # define LT_DLGLOBAL RTLD_GLOBAL
  12860. #else
  12861. # ifdef DL_GLOBAL
  12862. # define LT_DLGLOBAL DL_GLOBAL
  12863. # else
  12864. # define LT_DLGLOBAL 0
  12865. # endif
  12866. #endif
  12867. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12868. find out it does not work in some platform. */
  12869. #ifndef LT_DLLAZY_OR_NOW
  12870. # ifdef RTLD_LAZY
  12871. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12872. # else
  12873. # ifdef DL_LAZY
  12874. # define LT_DLLAZY_OR_NOW DL_LAZY
  12875. # else
  12876. # ifdef RTLD_NOW
  12877. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12878. # else
  12879. # ifdef DL_NOW
  12880. # define LT_DLLAZY_OR_NOW DL_NOW
  12881. # else
  12882. # define LT_DLLAZY_OR_NOW 0
  12883. # endif
  12884. # endif
  12885. # endif
  12886. # endif
  12887. #endif
  12888. /* When -fvisibility=hidden is used, assume the code has been annotated
  12889. correspondingly for the symbols needed. */
  12890. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12891. int fnord (void) __attribute__((visibility("default")));
  12892. #endif
  12893. int fnord (void) { return 42; }
  12894. int main (void)
  12895. {
  12896. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12897. int status = $lt_dlunknown;
  12898. if (self)
  12899. {
  12900. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12901. else
  12902. {
  12903. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12904. else puts (dlerror ());
  12905. }
  12906. /* dlclose (self); */
  12907. }
  12908. else
  12909. puts (dlerror ());
  12910. return status;
  12911. }
  12912. _LT_EOF
  12913. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12914. (eval $ac_link) 2>&5
  12915. ac_status=$?
  12916. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12917. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12918. (./conftest; exit; ) >&5 2>/dev/null
  12919. lt_status=$?
  12920. case x$lt_status in
  12921. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12922. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12923. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12924. esac
  12925. else :
  12926. # compilation failed
  12927. lt_cv_dlopen_self=no
  12928. fi
  12929. fi
  12930. rm -fr conftest*
  12931. ;;
  12932. esac
  12933. fi
  12934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12935. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  12936. if test yes = "$lt_cv_dlopen_self"; then
  12937. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12939. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  12940. if test ${lt_cv_dlopen_self_static+y}
  12941. then :
  12942. printf %s "(cached) " >&6
  12943. else case e in #(
  12944. e) if test yes = "$cross_compiling"; then :
  12945. lt_cv_dlopen_self_static=cross
  12946. else
  12947. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12948. lt_status=$lt_dlunknown
  12949. cat > conftest.$ac_ext <<_LT_EOF
  12950. #line $LINENO "configure"
  12951. #include "confdefs.h"
  12952. #if HAVE_DLFCN_H
  12953. #include <dlfcn.h>
  12954. #endif
  12955. #include <stdio.h>
  12956. #ifdef RTLD_GLOBAL
  12957. # define LT_DLGLOBAL RTLD_GLOBAL
  12958. #else
  12959. # ifdef DL_GLOBAL
  12960. # define LT_DLGLOBAL DL_GLOBAL
  12961. # else
  12962. # define LT_DLGLOBAL 0
  12963. # endif
  12964. #endif
  12965. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12966. find out it does not work in some platform. */
  12967. #ifndef LT_DLLAZY_OR_NOW
  12968. # ifdef RTLD_LAZY
  12969. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12970. # else
  12971. # ifdef DL_LAZY
  12972. # define LT_DLLAZY_OR_NOW DL_LAZY
  12973. # else
  12974. # ifdef RTLD_NOW
  12975. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12976. # else
  12977. # ifdef DL_NOW
  12978. # define LT_DLLAZY_OR_NOW DL_NOW
  12979. # else
  12980. # define LT_DLLAZY_OR_NOW 0
  12981. # endif
  12982. # endif
  12983. # endif
  12984. # endif
  12985. #endif
  12986. /* When -fvisibility=hidden is used, assume the code has been annotated
  12987. correspondingly for the symbols needed. */
  12988. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12989. int fnord (void) __attribute__((visibility("default")));
  12990. #endif
  12991. int fnord (void) { return 42; }
  12992. int main (void)
  12993. {
  12994. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12995. int status = $lt_dlunknown;
  12996. if (self)
  12997. {
  12998. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12999. else
  13000. {
  13001. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13002. else puts (dlerror ());
  13003. }
  13004. /* dlclose (self); */
  13005. }
  13006. else
  13007. puts (dlerror ());
  13008. return status;
  13009. }
  13010. _LT_EOF
  13011. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13012. (eval $ac_link) 2>&5
  13013. ac_status=$?
  13014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13015. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13016. (./conftest; exit; ) >&5 2>/dev/null
  13017. lt_status=$?
  13018. case x$lt_status in
  13019. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  13020. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  13021. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  13022. esac
  13023. else :
  13024. # compilation failed
  13025. lt_cv_dlopen_self_static=no
  13026. fi
  13027. fi
  13028. rm -fr conftest*
  13029. ;;
  13030. esac
  13031. fi
  13032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  13033. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  13034. fi
  13035. CPPFLAGS=$save_CPPFLAGS
  13036. LDFLAGS=$save_LDFLAGS
  13037. LIBS=$save_LIBS
  13038. ;;
  13039. esac
  13040. case $lt_cv_dlopen_self in
  13041. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  13042. *) enable_dlopen_self=unknown ;;
  13043. esac
  13044. case $lt_cv_dlopen_self_static in
  13045. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  13046. *) enable_dlopen_self_static=unknown ;;
  13047. esac
  13048. fi
  13049. striplib=
  13050. old_striplib=
  13051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  13052. printf %s "checking whether stripping libraries is possible... " >&6; }
  13053. if test -z "$STRIP"; then
  13054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13055. printf "%s\n" "no" >&6; }
  13056. else
  13057. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  13058. old_striplib="$STRIP --strip-debug"
  13059. striplib="$STRIP --strip-unneeded"
  13060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13061. printf "%s\n" "yes" >&6; }
  13062. else
  13063. case $host_os in
  13064. darwin*)
  13065. # FIXME - insert some real tests, host_os isn't really good enough
  13066. striplib="$STRIP -x"
  13067. old_striplib="$STRIP -S"
  13068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13069. printf "%s\n" "yes" >&6; }
  13070. ;;
  13071. freebsd*)
  13072. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  13073. old_striplib="$STRIP --strip-debug"
  13074. striplib="$STRIP --strip-unneeded"
  13075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13076. printf "%s\n" "yes" >&6; }
  13077. else
  13078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13079. printf "%s\n" "no" >&6; }
  13080. fi
  13081. ;;
  13082. *)
  13083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13084. printf "%s\n" "no" >&6; }
  13085. ;;
  13086. esac
  13087. fi
  13088. fi
  13089. # Report what library types will actually be built
  13090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  13091. printf %s "checking if libtool supports shared libraries... " >&6; }
  13092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  13093. printf "%s\n" "$can_build_shared" >&6; }
  13094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  13095. printf %s "checking whether to build shared libraries... " >&6; }
  13096. test no = "$can_build_shared" && enable_shared=no
  13097. # On AIX, shared libraries and static libraries use the same namespace, and
  13098. # are all built from PIC.
  13099. case $host_os in
  13100. aix3*)
  13101. test yes = "$enable_shared" && enable_static=no
  13102. if test -n "$RANLIB"; then
  13103. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13104. postinstall_cmds='$RANLIB $lib'
  13105. fi
  13106. ;;
  13107. aix[4-9]*)
  13108. if test ia64 != "$host_cpu"; then
  13109. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  13110. yes,aix,yes) ;; # shared object as lib.so file only
  13111. yes,svr4,*) ;; # shared object as lib.so archive member only
  13112. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  13113. esac
  13114. fi
  13115. ;;
  13116. esac
  13117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  13118. printf "%s\n" "$enable_shared" >&6; }
  13119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  13120. printf %s "checking whether to build static libraries... " >&6; }
  13121. # Make sure either enable_shared or enable_static is yes.
  13122. test yes = "$enable_shared" || enable_static=yes
  13123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  13124. printf "%s\n" "$enable_static" >&6; }
  13125. fi
  13126. ac_ext=c
  13127. ac_cpp='$CPP $CPPFLAGS'
  13128. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13129. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13130. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13131. CC=$lt_save_CC
  13132. ac_config_commands="$ac_config_commands libtool"
  13133. # Only expand once:
  13134. ac_ext=c
  13135. ac_cpp='$CPP $CPPFLAGS'
  13136. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13137. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13138. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13139. if test -n "$ac_tool_prefix"; then
  13140. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  13141. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  13142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13143. printf %s "checking for $ac_word... " >&6; }
  13144. if test ${ac_cv_prog_CC+y}
  13145. then :
  13146. printf %s "(cached) " >&6
  13147. else case e in #(
  13148. e) if test -n "$CC"; then
  13149. ac_cv_prog_CC="$CC" # Let the user override the test.
  13150. else
  13151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13152. for as_dir in $PATH
  13153. do
  13154. IFS=$as_save_IFS
  13155. case $as_dir in #(((
  13156. '') as_dir=./ ;;
  13157. */) ;;
  13158. *) as_dir=$as_dir/ ;;
  13159. esac
  13160. for ac_exec_ext in '' $ac_executable_extensions; do
  13161. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13162. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  13163. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13164. break 2
  13165. fi
  13166. done
  13167. done
  13168. IFS=$as_save_IFS
  13169. fi ;;
  13170. esac
  13171. fi
  13172. CC=$ac_cv_prog_CC
  13173. if test -n "$CC"; then
  13174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  13175. printf "%s\n" "$CC" >&6; }
  13176. else
  13177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13178. printf "%s\n" "no" >&6; }
  13179. fi
  13180. fi
  13181. if test -z "$ac_cv_prog_CC"; then
  13182. ac_ct_CC=$CC
  13183. # Extract the first word of "gcc", so it can be a program name with args.
  13184. set dummy gcc; ac_word=$2
  13185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13186. printf %s "checking for $ac_word... " >&6; }
  13187. if test ${ac_cv_prog_ac_ct_CC+y}
  13188. then :
  13189. printf %s "(cached) " >&6
  13190. else case e in #(
  13191. e) if test -n "$ac_ct_CC"; then
  13192. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  13193. else
  13194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13195. for as_dir in $PATH
  13196. do
  13197. IFS=$as_save_IFS
  13198. case $as_dir in #(((
  13199. '') as_dir=./ ;;
  13200. */) ;;
  13201. *) as_dir=$as_dir/ ;;
  13202. esac
  13203. for ac_exec_ext in '' $ac_executable_extensions; do
  13204. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13205. ac_cv_prog_ac_ct_CC="gcc"
  13206. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13207. break 2
  13208. fi
  13209. done
  13210. done
  13211. IFS=$as_save_IFS
  13212. fi ;;
  13213. esac
  13214. fi
  13215. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  13216. if test -n "$ac_ct_CC"; then
  13217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  13218. printf "%s\n" "$ac_ct_CC" >&6; }
  13219. else
  13220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13221. printf "%s\n" "no" >&6; }
  13222. fi
  13223. if test "x$ac_ct_CC" = x; then
  13224. CC=""
  13225. else
  13226. case $cross_compiling:$ac_tool_warned in
  13227. yes:)
  13228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13229. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13230. ac_tool_warned=yes ;;
  13231. esac
  13232. CC=$ac_ct_CC
  13233. fi
  13234. else
  13235. CC="$ac_cv_prog_CC"
  13236. fi
  13237. if test -z "$CC"; then
  13238. if test -n "$ac_tool_prefix"; then
  13239. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  13240. set dummy ${ac_tool_prefix}cc; ac_word=$2
  13241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13242. printf %s "checking for $ac_word... " >&6; }
  13243. if test ${ac_cv_prog_CC+y}
  13244. then :
  13245. printf %s "(cached) " >&6
  13246. else case e in #(
  13247. e) if test -n "$CC"; then
  13248. ac_cv_prog_CC="$CC" # Let the user override the test.
  13249. else
  13250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13251. for as_dir in $PATH
  13252. do
  13253. IFS=$as_save_IFS
  13254. case $as_dir in #(((
  13255. '') as_dir=./ ;;
  13256. */) ;;
  13257. *) as_dir=$as_dir/ ;;
  13258. esac
  13259. for ac_exec_ext in '' $ac_executable_extensions; do
  13260. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13261. ac_cv_prog_CC="${ac_tool_prefix}cc"
  13262. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13263. break 2
  13264. fi
  13265. done
  13266. done
  13267. IFS=$as_save_IFS
  13268. fi ;;
  13269. esac
  13270. fi
  13271. CC=$ac_cv_prog_CC
  13272. if test -n "$CC"; then
  13273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  13274. printf "%s\n" "$CC" >&6; }
  13275. else
  13276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13277. printf "%s\n" "no" >&6; }
  13278. fi
  13279. fi
  13280. fi
  13281. if test -z "$CC"; then
  13282. # Extract the first word of "cc", so it can be a program name with args.
  13283. set dummy cc; ac_word=$2
  13284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13285. printf %s "checking for $ac_word... " >&6; }
  13286. if test ${ac_cv_prog_CC+y}
  13287. then :
  13288. printf %s "(cached) " >&6
  13289. else case e in #(
  13290. e) if test -n "$CC"; then
  13291. ac_cv_prog_CC="$CC" # Let the user override the test.
  13292. else
  13293. ac_prog_rejected=no
  13294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13295. for as_dir in $PATH
  13296. do
  13297. IFS=$as_save_IFS
  13298. case $as_dir in #(((
  13299. '') as_dir=./ ;;
  13300. */) ;;
  13301. *) as_dir=$as_dir/ ;;
  13302. esac
  13303. for ac_exec_ext in '' $ac_executable_extensions; do
  13304. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13305. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  13306. ac_prog_rejected=yes
  13307. continue
  13308. fi
  13309. ac_cv_prog_CC="cc"
  13310. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13311. break 2
  13312. fi
  13313. done
  13314. done
  13315. IFS=$as_save_IFS
  13316. if test $ac_prog_rejected = yes; then
  13317. # We found a bogon in the path, so make sure we never use it.
  13318. set dummy $ac_cv_prog_CC
  13319. shift
  13320. if test $# != 0; then
  13321. # We chose a different compiler from the bogus one.
  13322. # However, it has the same basename, so the bogon will be chosen
  13323. # first if we set CC to just the basename; use the full file name.
  13324. shift
  13325. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  13326. fi
  13327. fi
  13328. fi ;;
  13329. esac
  13330. fi
  13331. CC=$ac_cv_prog_CC
  13332. if test -n "$CC"; then
  13333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  13334. printf "%s\n" "$CC" >&6; }
  13335. else
  13336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13337. printf "%s\n" "no" >&6; }
  13338. fi
  13339. fi
  13340. if test -z "$CC"; then
  13341. if test -n "$ac_tool_prefix"; then
  13342. for ac_prog in cl.exe
  13343. do
  13344. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  13345. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  13346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13347. printf %s "checking for $ac_word... " >&6; }
  13348. if test ${ac_cv_prog_CC+y}
  13349. then :
  13350. printf %s "(cached) " >&6
  13351. else case e in #(
  13352. e) if test -n "$CC"; then
  13353. ac_cv_prog_CC="$CC" # Let the user override the test.
  13354. else
  13355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13356. for as_dir in $PATH
  13357. do
  13358. IFS=$as_save_IFS
  13359. case $as_dir in #(((
  13360. '') as_dir=./ ;;
  13361. */) ;;
  13362. *) as_dir=$as_dir/ ;;
  13363. esac
  13364. for ac_exec_ext in '' $ac_executable_extensions; do
  13365. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13366. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  13367. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13368. break 2
  13369. fi
  13370. done
  13371. done
  13372. IFS=$as_save_IFS
  13373. fi ;;
  13374. esac
  13375. fi
  13376. CC=$ac_cv_prog_CC
  13377. if test -n "$CC"; then
  13378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  13379. printf "%s\n" "$CC" >&6; }
  13380. else
  13381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13382. printf "%s\n" "no" >&6; }
  13383. fi
  13384. test -n "$CC" && break
  13385. done
  13386. fi
  13387. if test -z "$CC"; then
  13388. ac_ct_CC=$CC
  13389. for ac_prog in cl.exe
  13390. do
  13391. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13392. set dummy $ac_prog; ac_word=$2
  13393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13394. printf %s "checking for $ac_word... " >&6; }
  13395. if test ${ac_cv_prog_ac_ct_CC+y}
  13396. then :
  13397. printf %s "(cached) " >&6
  13398. else case e in #(
  13399. e) if test -n "$ac_ct_CC"; then
  13400. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  13401. else
  13402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13403. for as_dir in $PATH
  13404. do
  13405. IFS=$as_save_IFS
  13406. case $as_dir in #(((
  13407. '') as_dir=./ ;;
  13408. */) ;;
  13409. *) as_dir=$as_dir/ ;;
  13410. esac
  13411. for ac_exec_ext in '' $ac_executable_extensions; do
  13412. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13413. ac_cv_prog_ac_ct_CC="$ac_prog"
  13414. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13415. break 2
  13416. fi
  13417. done
  13418. done
  13419. IFS=$as_save_IFS
  13420. fi ;;
  13421. esac
  13422. fi
  13423. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  13424. if test -n "$ac_ct_CC"; then
  13425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  13426. printf "%s\n" "$ac_ct_CC" >&6; }
  13427. else
  13428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13429. printf "%s\n" "no" >&6; }
  13430. fi
  13431. test -n "$ac_ct_CC" && break
  13432. done
  13433. if test "x$ac_ct_CC" = x; then
  13434. CC=""
  13435. else
  13436. case $cross_compiling:$ac_tool_warned in
  13437. yes:)
  13438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13439. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13440. ac_tool_warned=yes ;;
  13441. esac
  13442. CC=$ac_ct_CC
  13443. fi
  13444. fi
  13445. fi
  13446. if test -z "$CC"; then
  13447. if test -n "$ac_tool_prefix"; then
  13448. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  13449. set dummy ${ac_tool_prefix}clang; ac_word=$2
  13450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13451. printf %s "checking for $ac_word... " >&6; }
  13452. if test ${ac_cv_prog_CC+y}
  13453. then :
  13454. printf %s "(cached) " >&6
  13455. else case e in #(
  13456. e) if test -n "$CC"; then
  13457. ac_cv_prog_CC="$CC" # Let the user override the test.
  13458. else
  13459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13460. for as_dir in $PATH
  13461. do
  13462. IFS=$as_save_IFS
  13463. case $as_dir in #(((
  13464. '') as_dir=./ ;;
  13465. */) ;;
  13466. *) as_dir=$as_dir/ ;;
  13467. esac
  13468. for ac_exec_ext in '' $ac_executable_extensions; do
  13469. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13470. ac_cv_prog_CC="${ac_tool_prefix}clang"
  13471. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13472. break 2
  13473. fi
  13474. done
  13475. done
  13476. IFS=$as_save_IFS
  13477. fi ;;
  13478. esac
  13479. fi
  13480. CC=$ac_cv_prog_CC
  13481. if test -n "$CC"; then
  13482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  13483. printf "%s\n" "$CC" >&6; }
  13484. else
  13485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13486. printf "%s\n" "no" >&6; }
  13487. fi
  13488. fi
  13489. if test -z "$ac_cv_prog_CC"; then
  13490. ac_ct_CC=$CC
  13491. # Extract the first word of "clang", so it can be a program name with args.
  13492. set dummy clang; ac_word=$2
  13493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13494. printf %s "checking for $ac_word... " >&6; }
  13495. if test ${ac_cv_prog_ac_ct_CC+y}
  13496. then :
  13497. printf %s "(cached) " >&6
  13498. else case e in #(
  13499. e) if test -n "$ac_ct_CC"; then
  13500. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  13501. else
  13502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13503. for as_dir in $PATH
  13504. do
  13505. IFS=$as_save_IFS
  13506. case $as_dir in #(((
  13507. '') as_dir=./ ;;
  13508. */) ;;
  13509. *) as_dir=$as_dir/ ;;
  13510. esac
  13511. for ac_exec_ext in '' $ac_executable_extensions; do
  13512. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13513. ac_cv_prog_ac_ct_CC="clang"
  13514. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13515. break 2
  13516. fi
  13517. done
  13518. done
  13519. IFS=$as_save_IFS
  13520. fi ;;
  13521. esac
  13522. fi
  13523. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  13524. if test -n "$ac_ct_CC"; then
  13525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  13526. printf "%s\n" "$ac_ct_CC" >&6; }
  13527. else
  13528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13529. printf "%s\n" "no" >&6; }
  13530. fi
  13531. if test "x$ac_ct_CC" = x; then
  13532. CC=""
  13533. else
  13534. case $cross_compiling:$ac_tool_warned in
  13535. yes:)
  13536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13537. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13538. ac_tool_warned=yes ;;
  13539. esac
  13540. CC=$ac_ct_CC
  13541. fi
  13542. else
  13543. CC="$ac_cv_prog_CC"
  13544. fi
  13545. fi
  13546. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  13547. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  13548. as_fn_error $? "no acceptable C compiler found in \$PATH
  13549. See 'config.log' for more details" "$LINENO" 5; }
  13550. # Provide some information about the compiler.
  13551. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  13552. set X $ac_compile
  13553. ac_compiler=$2
  13554. for ac_option in --version -v -V -qversion -version; do
  13555. { { ac_try="$ac_compiler $ac_option >&5"
  13556. case "(($ac_try" in
  13557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13558. *) ac_try_echo=$ac_try;;
  13559. esac
  13560. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13561. printf "%s\n" "$ac_try_echo"; } >&5
  13562. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  13563. ac_status=$?
  13564. if test -s conftest.err; then
  13565. sed '10a\
  13566. ... rest of stderr output deleted ...
  13567. 10q' conftest.err >conftest.er1
  13568. cat conftest.er1 >&5
  13569. fi
  13570. rm -f conftest.er1 conftest.err
  13571. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13572. test $ac_status = 0; }
  13573. done
  13574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  13575. printf %s "checking whether the compiler supports GNU C... " >&6; }
  13576. if test ${ac_cv_c_compiler_gnu+y}
  13577. then :
  13578. printf %s "(cached) " >&6
  13579. else case e in #(
  13580. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13581. /* end confdefs.h. */
  13582. int
  13583. main (void)
  13584. {
  13585. #ifndef __GNUC__
  13586. choke me
  13587. #endif
  13588. ;
  13589. return 0;
  13590. }
  13591. _ACEOF
  13592. if ac_fn_c_try_compile "$LINENO"
  13593. then :
  13594. ac_compiler_gnu=yes
  13595. else case e in #(
  13596. e) ac_compiler_gnu=no ;;
  13597. esac
  13598. fi
  13599. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13600. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  13601. ;;
  13602. esac
  13603. fi
  13604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  13605. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  13606. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13607. if test $ac_compiler_gnu = yes; then
  13608. GCC=yes
  13609. else
  13610. GCC=
  13611. fi
  13612. ac_test_CFLAGS=${CFLAGS+y}
  13613. ac_save_CFLAGS=$CFLAGS
  13614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  13615. printf %s "checking whether $CC accepts -g... " >&6; }
  13616. if test ${ac_cv_prog_cc_g+y}
  13617. then :
  13618. printf %s "(cached) " >&6
  13619. else case e in #(
  13620. e) ac_save_c_werror_flag=$ac_c_werror_flag
  13621. ac_c_werror_flag=yes
  13622. ac_cv_prog_cc_g=no
  13623. CFLAGS="-g"
  13624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13625. /* end confdefs.h. */
  13626. int
  13627. main (void)
  13628. {
  13629. ;
  13630. return 0;
  13631. }
  13632. _ACEOF
  13633. if ac_fn_c_try_compile "$LINENO"
  13634. then :
  13635. ac_cv_prog_cc_g=yes
  13636. else case e in #(
  13637. e) CFLAGS=""
  13638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13639. /* end confdefs.h. */
  13640. int
  13641. main (void)
  13642. {
  13643. ;
  13644. return 0;
  13645. }
  13646. _ACEOF
  13647. if ac_fn_c_try_compile "$LINENO"
  13648. then :
  13649. else case e in #(
  13650. e) ac_c_werror_flag=$ac_save_c_werror_flag
  13651. CFLAGS="-g"
  13652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13653. /* end confdefs.h. */
  13654. int
  13655. main (void)
  13656. {
  13657. ;
  13658. return 0;
  13659. }
  13660. _ACEOF
  13661. if ac_fn_c_try_compile "$LINENO"
  13662. then :
  13663. ac_cv_prog_cc_g=yes
  13664. fi
  13665. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  13666. esac
  13667. fi
  13668. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  13669. esac
  13670. fi
  13671. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13672. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  13673. esac
  13674. fi
  13675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  13676. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  13677. if test $ac_test_CFLAGS; then
  13678. CFLAGS=$ac_save_CFLAGS
  13679. elif test $ac_cv_prog_cc_g = yes; then
  13680. if test "$GCC" = yes; then
  13681. CFLAGS="-g -O2"
  13682. else
  13683. CFLAGS="-g"
  13684. fi
  13685. else
  13686. if test "$GCC" = yes; then
  13687. CFLAGS="-O2"
  13688. else
  13689. CFLAGS=
  13690. fi
  13691. fi
  13692. ac_prog_cc_stdc=no
  13693. if test x$ac_prog_cc_stdc = xno
  13694. then :
  13695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  13696. printf %s "checking for $CC option to enable C11 features... " >&6; }
  13697. if test ${ac_cv_prog_cc_c11+y}
  13698. then :
  13699. printf %s "(cached) " >&6
  13700. else case e in #(
  13701. e) ac_cv_prog_cc_c11=no
  13702. ac_save_CC=$CC
  13703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13704. /* end confdefs.h. */
  13705. $ac_c_conftest_c11_program
  13706. _ACEOF
  13707. for ac_arg in '' -std=gnu11
  13708. do
  13709. CC="$ac_save_CC $ac_arg"
  13710. if ac_fn_c_try_compile "$LINENO"
  13711. then :
  13712. ac_cv_prog_cc_c11=$ac_arg
  13713. fi
  13714. rm -f core conftest.err conftest.$ac_objext conftest.beam
  13715. test "x$ac_cv_prog_cc_c11" != "xno" && break
  13716. done
  13717. rm -f conftest.$ac_ext
  13718. CC=$ac_save_CC ;;
  13719. esac
  13720. fi
  13721. if test "x$ac_cv_prog_cc_c11" = xno
  13722. then :
  13723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  13724. printf "%s\n" "unsupported" >&6; }
  13725. else case e in #(
  13726. e) if test "x$ac_cv_prog_cc_c11" = x
  13727. then :
  13728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  13729. printf "%s\n" "none needed" >&6; }
  13730. else case e in #(
  13731. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  13732. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  13733. CC="$CC $ac_cv_prog_cc_c11" ;;
  13734. esac
  13735. fi
  13736. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  13737. ac_prog_cc_stdc=c11 ;;
  13738. esac
  13739. fi
  13740. fi
  13741. if test x$ac_prog_cc_stdc = xno
  13742. then :
  13743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  13744. printf %s "checking for $CC option to enable C99 features... " >&6; }
  13745. if test ${ac_cv_prog_cc_c99+y}
  13746. then :
  13747. printf %s "(cached) " >&6
  13748. else case e in #(
  13749. e) ac_cv_prog_cc_c99=no
  13750. ac_save_CC=$CC
  13751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13752. /* end confdefs.h. */
  13753. $ac_c_conftest_c99_program
  13754. _ACEOF
  13755. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  13756. do
  13757. CC="$ac_save_CC $ac_arg"
  13758. if ac_fn_c_try_compile "$LINENO"
  13759. then :
  13760. ac_cv_prog_cc_c99=$ac_arg
  13761. fi
  13762. rm -f core conftest.err conftest.$ac_objext conftest.beam
  13763. test "x$ac_cv_prog_cc_c99" != "xno" && break
  13764. done
  13765. rm -f conftest.$ac_ext
  13766. CC=$ac_save_CC ;;
  13767. esac
  13768. fi
  13769. if test "x$ac_cv_prog_cc_c99" = xno
  13770. then :
  13771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  13772. printf "%s\n" "unsupported" >&6; }
  13773. else case e in #(
  13774. e) if test "x$ac_cv_prog_cc_c99" = x
  13775. then :
  13776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  13777. printf "%s\n" "none needed" >&6; }
  13778. else case e in #(
  13779. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  13780. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  13781. CC="$CC $ac_cv_prog_cc_c99" ;;
  13782. esac
  13783. fi
  13784. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  13785. ac_prog_cc_stdc=c99 ;;
  13786. esac
  13787. fi
  13788. fi
  13789. if test x$ac_prog_cc_stdc = xno
  13790. then :
  13791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  13792. printf %s "checking for $CC option to enable C89 features... " >&6; }
  13793. if test ${ac_cv_prog_cc_c89+y}
  13794. then :
  13795. printf %s "(cached) " >&6
  13796. else case e in #(
  13797. e) ac_cv_prog_cc_c89=no
  13798. ac_save_CC=$CC
  13799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13800. /* end confdefs.h. */
  13801. $ac_c_conftest_c89_program
  13802. _ACEOF
  13803. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  13804. do
  13805. CC="$ac_save_CC $ac_arg"
  13806. if ac_fn_c_try_compile "$LINENO"
  13807. then :
  13808. ac_cv_prog_cc_c89=$ac_arg
  13809. fi
  13810. rm -f core conftest.err conftest.$ac_objext conftest.beam
  13811. test "x$ac_cv_prog_cc_c89" != "xno" && break
  13812. done
  13813. rm -f conftest.$ac_ext
  13814. CC=$ac_save_CC ;;
  13815. esac
  13816. fi
  13817. if test "x$ac_cv_prog_cc_c89" = xno
  13818. then :
  13819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  13820. printf "%s\n" "unsupported" >&6; }
  13821. else case e in #(
  13822. e) if test "x$ac_cv_prog_cc_c89" = x
  13823. then :
  13824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  13825. printf "%s\n" "none needed" >&6; }
  13826. else case e in #(
  13827. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  13828. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  13829. CC="$CC $ac_cv_prog_cc_c89" ;;
  13830. esac
  13831. fi
  13832. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  13833. ac_prog_cc_stdc=c89 ;;
  13834. esac
  13835. fi
  13836. fi
  13837. ac_ext=c
  13838. ac_cpp='$CPP $CPPFLAGS'
  13839. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13840. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13841. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13842. ac_ext=c
  13843. ac_cpp='$CPP $CPPFLAGS'
  13844. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13845. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13846. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  13848. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  13849. if test ${am_cv_prog_cc_c_o+y}
  13850. then :
  13851. printf %s "(cached) " >&6
  13852. else case e in #(
  13853. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13854. /* end confdefs.h. */
  13855. int
  13856. main (void)
  13857. {
  13858. ;
  13859. return 0;
  13860. }
  13861. _ACEOF
  13862. # Make sure it works both with $CC and with simple cc.
  13863. # Following AC_PROG_CC_C_O, we do the test twice because some
  13864. # compilers refuse to overwrite an existing .o file with -o,
  13865. # though they will create one.
  13866. am_cv_prog_cc_c_o=yes
  13867. for am_i in 1 2; do
  13868. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  13869. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  13870. ac_status=$?
  13871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13872. (exit $ac_status); } \
  13873. && test -f conftest2.$ac_objext; then
  13874. : OK
  13875. else
  13876. am_cv_prog_cc_c_o=no
  13877. break
  13878. fi
  13879. done
  13880. rm -f core conftest*
  13881. unset am_i ;;
  13882. esac
  13883. fi
  13884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  13885. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  13886. if test "$am_cv_prog_cc_c_o" != yes; then
  13887. # Losing compiler, so override with the script.
  13888. # FIXME: It is wrong to rewrite CC.
  13889. # But if we don't then we get into trouble of one sort or another.
  13890. # A longer-term fix would be to have automake use am__CC in this case,
  13891. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13892. CC="$am_aux_dir/compile $CC"
  13893. fi
  13894. ac_ext=c
  13895. ac_cpp='$CPP $CPPFLAGS'
  13896. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13897. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13898. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13899. depcc="$CC" am_compiler_list=
  13900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13901. printf %s "checking dependency style of $depcc... " >&6; }
  13902. if test ${am_cv_CC_dependencies_compiler_type+y}
  13903. then :
  13904. printf %s "(cached) " >&6
  13905. else case e in #(
  13906. e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13907. # We make a subdir and do the tests there. Otherwise we can end up
  13908. # making bogus files that we don't know about and never remove. For
  13909. # instance it was reported that on HP-UX the gcc test will end up
  13910. # making a dummy file named 'D' -- because '-MD' means "put the output
  13911. # in D".
  13912. rm -rf conftest.dir
  13913. mkdir conftest.dir
  13914. # Copy depcomp to subdir because otherwise we won't find it if we're
  13915. # using a relative directory.
  13916. cp "$am_depcomp" conftest.dir
  13917. cd conftest.dir
  13918. # We will build objects and dependencies in a subdirectory because
  13919. # it helps to detect inapplicable dependency modes. For instance
  13920. # both Tru64's cc and ICC support -MD to output dependencies as a
  13921. # side effect of compilation, but ICC will put the dependencies in
  13922. # the current directory while Tru64 will put them in the object
  13923. # directory.
  13924. mkdir sub
  13925. am_cv_CC_dependencies_compiler_type=none
  13926. if test "$am_compiler_list" = ""; then
  13927. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13928. fi
  13929. am__universal=false
  13930. case " $depcc " in #(
  13931. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13932. esac
  13933. for depmode in $am_compiler_list; do
  13934. # Setup a source with many dependencies, because some compilers
  13935. # like to wrap large dependency lists on column 80 (with \), and
  13936. # we should not choose a depcomp mode which is confused by this.
  13937. #
  13938. # We need to recreate these files for each test, as the compiler may
  13939. # overwrite some of them when testing with obscure command lines.
  13940. # This happens at least with the AIX C compiler.
  13941. : > sub/conftest.c
  13942. for i in 1 2 3 4 5 6; do
  13943. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13944. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  13945. # Solaris 10 /bin/sh.
  13946. echo '/* dummy */' > sub/conftst$i.h
  13947. done
  13948. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13949. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  13950. # mode. It turns out that the SunPro C++ compiler does not properly
  13951. # handle '-M -o', and we need to detect this. Also, some Intel
  13952. # versions had trouble with output in subdirs.
  13953. am__obj=sub/conftest.${OBJEXT-o}
  13954. am__minus_obj="-o $am__obj"
  13955. case $depmode in
  13956. gcc)
  13957. # This depmode causes a compiler race in universal mode.
  13958. test "$am__universal" = false || continue
  13959. ;;
  13960. nosideeffect)
  13961. # After this tag, mechanisms are not by side-effect, so they'll
  13962. # only be used when explicitly requested.
  13963. if test "x$enable_dependency_tracking" = xyes; then
  13964. continue
  13965. else
  13966. break
  13967. fi
  13968. ;;
  13969. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13970. # This compiler won't grok '-c -o', but also, the minuso test has
  13971. # not run yet. These depmodes are late enough in the game, and
  13972. # so weak that their functioning should not be impacted.
  13973. am__obj=conftest.${OBJEXT-o}
  13974. am__minus_obj=
  13975. ;;
  13976. none) break ;;
  13977. esac
  13978. if depmode=$depmode \
  13979. source=sub/conftest.c object=$am__obj \
  13980. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13981. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13982. >/dev/null 2>conftest.err &&
  13983. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13984. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13985. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13986. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13987. # icc doesn't choke on unknown options, it will just issue warnings
  13988. # or remarks (even with -Werror). So we grep stderr for any message
  13989. # that says an option was ignored or not supported.
  13990. # When given -MP, icc 7.0 and 7.1 complain thus:
  13991. # icc: Command line warning: ignoring option '-M'; no argument required
  13992. # The diagnosis changed in icc 8.0:
  13993. # icc: Command line remark: option '-MP' not supported
  13994. if (grep 'ignoring option' conftest.err ||
  13995. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13996. am_cv_CC_dependencies_compiler_type=$depmode
  13997. break
  13998. fi
  13999. fi
  14000. done
  14001. cd ..
  14002. rm -rf conftest.dir
  14003. else
  14004. am_cv_CC_dependencies_compiler_type=none
  14005. fi
  14006. ;;
  14007. esac
  14008. fi
  14009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  14010. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  14011. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  14012. if
  14013. test "x$enable_dependency_tracking" != xno \
  14014. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  14015. am__fastdepCC_TRUE=
  14016. am__fastdepCC_FALSE='#'
  14017. else
  14018. am__fastdepCC_TRUE='#'
  14019. am__fastdepCC_FALSE=
  14020. fi
  14021. ac_ext=cpp
  14022. ac_cpp='$CXXCPP $CPPFLAGS'
  14023. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14024. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14025. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14026. if test -z "$CXX"; then
  14027. if test -n "$CCC"; then
  14028. CXX=$CCC
  14029. else
  14030. if test -n "$ac_tool_prefix"; then
  14031. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  14032. do
  14033. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  14034. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  14035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14036. printf %s "checking for $ac_word... " >&6; }
  14037. if test ${ac_cv_prog_CXX+y}
  14038. then :
  14039. printf %s "(cached) " >&6
  14040. else case e in #(
  14041. e) if test -n "$CXX"; then
  14042. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  14043. else
  14044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14045. for as_dir in $PATH
  14046. do
  14047. IFS=$as_save_IFS
  14048. case $as_dir in #(((
  14049. '') as_dir=./ ;;
  14050. */) ;;
  14051. *) as_dir=$as_dir/ ;;
  14052. esac
  14053. for ac_exec_ext in '' $ac_executable_extensions; do
  14054. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14055. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  14056. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14057. break 2
  14058. fi
  14059. done
  14060. done
  14061. IFS=$as_save_IFS
  14062. fi ;;
  14063. esac
  14064. fi
  14065. CXX=$ac_cv_prog_CXX
  14066. if test -n "$CXX"; then
  14067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  14068. printf "%s\n" "$CXX" >&6; }
  14069. else
  14070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14071. printf "%s\n" "no" >&6; }
  14072. fi
  14073. test -n "$CXX" && break
  14074. done
  14075. fi
  14076. if test -z "$CXX"; then
  14077. ac_ct_CXX=$CXX
  14078. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  14079. do
  14080. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14081. set dummy $ac_prog; ac_word=$2
  14082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14083. printf %s "checking for $ac_word... " >&6; }
  14084. if test ${ac_cv_prog_ac_ct_CXX+y}
  14085. then :
  14086. printf %s "(cached) " >&6
  14087. else case e in #(
  14088. e) if test -n "$ac_ct_CXX"; then
  14089. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  14090. else
  14091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14092. for as_dir in $PATH
  14093. do
  14094. IFS=$as_save_IFS
  14095. case $as_dir in #(((
  14096. '') as_dir=./ ;;
  14097. */) ;;
  14098. *) as_dir=$as_dir/ ;;
  14099. esac
  14100. for ac_exec_ext in '' $ac_executable_extensions; do
  14101. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14102. ac_cv_prog_ac_ct_CXX="$ac_prog"
  14103. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14104. break 2
  14105. fi
  14106. done
  14107. done
  14108. IFS=$as_save_IFS
  14109. fi ;;
  14110. esac
  14111. fi
  14112. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  14113. if test -n "$ac_ct_CXX"; then
  14114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  14115. printf "%s\n" "$ac_ct_CXX" >&6; }
  14116. else
  14117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14118. printf "%s\n" "no" >&6; }
  14119. fi
  14120. test -n "$ac_ct_CXX" && break
  14121. done
  14122. if test "x$ac_ct_CXX" = x; then
  14123. CXX="g++"
  14124. else
  14125. case $cross_compiling:$ac_tool_warned in
  14126. yes:)
  14127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14128. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14129. ac_tool_warned=yes ;;
  14130. esac
  14131. CXX=$ac_ct_CXX
  14132. fi
  14133. fi
  14134. fi
  14135. fi
  14136. # Provide some information about the compiler.
  14137. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  14138. set X $ac_compile
  14139. ac_compiler=$2
  14140. for ac_option in --version -v -V -qversion; do
  14141. { { ac_try="$ac_compiler $ac_option >&5"
  14142. case "(($ac_try" in
  14143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14144. *) ac_try_echo=$ac_try;;
  14145. esac
  14146. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14147. printf "%s\n" "$ac_try_echo"; } >&5
  14148. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  14149. ac_status=$?
  14150. if test -s conftest.err; then
  14151. sed '10a\
  14152. ... rest of stderr output deleted ...
  14153. 10q' conftest.err >conftest.er1
  14154. cat conftest.er1 >&5
  14155. fi
  14156. rm -f conftest.er1 conftest.err
  14157. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14158. test $ac_status = 0; }
  14159. done
  14160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  14161. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  14162. if test ${ac_cv_cxx_compiler_gnu+y}
  14163. then :
  14164. printf %s "(cached) " >&6
  14165. else case e in #(
  14166. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14167. /* end confdefs.h. */
  14168. int
  14169. main (void)
  14170. {
  14171. #ifndef __GNUC__
  14172. choke me
  14173. #endif
  14174. ;
  14175. return 0;
  14176. }
  14177. _ACEOF
  14178. if ac_fn_cxx_try_compile "$LINENO"
  14179. then :
  14180. ac_compiler_gnu=yes
  14181. else case e in #(
  14182. e) ac_compiler_gnu=no ;;
  14183. esac
  14184. fi
  14185. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14186. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  14187. ;;
  14188. esac
  14189. fi
  14190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  14191. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  14192. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14193. if test $ac_compiler_gnu = yes; then
  14194. GXX=yes
  14195. else
  14196. GXX=
  14197. fi
  14198. ac_test_CXXFLAGS=${CXXFLAGS+y}
  14199. ac_save_CXXFLAGS=$CXXFLAGS
  14200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  14201. printf %s "checking whether $CXX accepts -g... " >&6; }
  14202. if test ${ac_cv_prog_cxx_g+y}
  14203. then :
  14204. printf %s "(cached) " >&6
  14205. else case e in #(
  14206. e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  14207. ac_cxx_werror_flag=yes
  14208. ac_cv_prog_cxx_g=no
  14209. CXXFLAGS="-g"
  14210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14211. /* end confdefs.h. */
  14212. int
  14213. main (void)
  14214. {
  14215. ;
  14216. return 0;
  14217. }
  14218. _ACEOF
  14219. if ac_fn_cxx_try_compile "$LINENO"
  14220. then :
  14221. ac_cv_prog_cxx_g=yes
  14222. else case e in #(
  14223. e) CXXFLAGS=""
  14224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14225. /* end confdefs.h. */
  14226. int
  14227. main (void)
  14228. {
  14229. ;
  14230. return 0;
  14231. }
  14232. _ACEOF
  14233. if ac_fn_cxx_try_compile "$LINENO"
  14234. then :
  14235. else case e in #(
  14236. e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  14237. CXXFLAGS="-g"
  14238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14239. /* end confdefs.h. */
  14240. int
  14241. main (void)
  14242. {
  14243. ;
  14244. return 0;
  14245. }
  14246. _ACEOF
  14247. if ac_fn_cxx_try_compile "$LINENO"
  14248. then :
  14249. ac_cv_prog_cxx_g=yes
  14250. fi
  14251. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  14252. esac
  14253. fi
  14254. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  14255. esac
  14256. fi
  14257. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14258. ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
  14259. esac
  14260. fi
  14261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  14262. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  14263. if test $ac_test_CXXFLAGS; then
  14264. CXXFLAGS=$ac_save_CXXFLAGS
  14265. elif test $ac_cv_prog_cxx_g = yes; then
  14266. if test "$GXX" = yes; then
  14267. CXXFLAGS="-g -O2"
  14268. else
  14269. CXXFLAGS="-g"
  14270. fi
  14271. else
  14272. if test "$GXX" = yes; then
  14273. CXXFLAGS="-O2"
  14274. else
  14275. CXXFLAGS=
  14276. fi
  14277. fi
  14278. ac_prog_cxx_stdcxx=no
  14279. if test x$ac_prog_cxx_stdcxx = xno
  14280. then :
  14281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  14282. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  14283. if test ${ac_cv_prog_cxx_cxx11+y}
  14284. then :
  14285. printf %s "(cached) " >&6
  14286. else case e in #(
  14287. e) ac_cv_prog_cxx_cxx11=no
  14288. ac_save_CXX=$CXX
  14289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14290. /* end confdefs.h. */
  14291. $ac_cxx_conftest_cxx11_program
  14292. _ACEOF
  14293. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  14294. do
  14295. CXX="$ac_save_CXX $ac_arg"
  14296. if ac_fn_cxx_try_compile "$LINENO"
  14297. then :
  14298. ac_cv_prog_cxx_cxx11=$ac_arg
  14299. fi
  14300. rm -f core conftest.err conftest.$ac_objext conftest.beam
  14301. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  14302. done
  14303. rm -f conftest.$ac_ext
  14304. CXX=$ac_save_CXX ;;
  14305. esac
  14306. fi
  14307. if test "x$ac_cv_prog_cxx_cxx11" = xno
  14308. then :
  14309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  14310. printf "%s\n" "unsupported" >&6; }
  14311. else case e in #(
  14312. e) if test "x$ac_cv_prog_cxx_cxx11" = x
  14313. then :
  14314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  14315. printf "%s\n" "none needed" >&6; }
  14316. else case e in #(
  14317. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  14318. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  14319. CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
  14320. esac
  14321. fi
  14322. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  14323. ac_prog_cxx_stdcxx=cxx11 ;;
  14324. esac
  14325. fi
  14326. fi
  14327. if test x$ac_prog_cxx_stdcxx = xno
  14328. then :
  14329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  14330. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  14331. if test ${ac_cv_prog_cxx_cxx98+y}
  14332. then :
  14333. printf %s "(cached) " >&6
  14334. else case e in #(
  14335. e) ac_cv_prog_cxx_cxx98=no
  14336. ac_save_CXX=$CXX
  14337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14338. /* end confdefs.h. */
  14339. $ac_cxx_conftest_cxx98_program
  14340. _ACEOF
  14341. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  14342. do
  14343. CXX="$ac_save_CXX $ac_arg"
  14344. if ac_fn_cxx_try_compile "$LINENO"
  14345. then :
  14346. ac_cv_prog_cxx_cxx98=$ac_arg
  14347. fi
  14348. rm -f core conftest.err conftest.$ac_objext conftest.beam
  14349. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  14350. done
  14351. rm -f conftest.$ac_ext
  14352. CXX=$ac_save_CXX ;;
  14353. esac
  14354. fi
  14355. if test "x$ac_cv_prog_cxx_cxx98" = xno
  14356. then :
  14357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  14358. printf "%s\n" "unsupported" >&6; }
  14359. else case e in #(
  14360. e) if test "x$ac_cv_prog_cxx_cxx98" = x
  14361. then :
  14362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  14363. printf "%s\n" "none needed" >&6; }
  14364. else case e in #(
  14365. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  14366. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  14367. CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
  14368. esac
  14369. fi
  14370. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  14371. ac_prog_cxx_stdcxx=cxx98 ;;
  14372. esac
  14373. fi
  14374. fi
  14375. ac_ext=c
  14376. ac_cpp='$CPP $CPPFLAGS'
  14377. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14378. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14379. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14380. depcc="$CXX" am_compiler_list=
  14381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  14382. printf %s "checking dependency style of $depcc... " >&6; }
  14383. if test ${am_cv_CXX_dependencies_compiler_type+y}
  14384. then :
  14385. printf %s "(cached) " >&6
  14386. else case e in #(
  14387. e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  14388. # We make a subdir and do the tests there. Otherwise we can end up
  14389. # making bogus files that we don't know about and never remove. For
  14390. # instance it was reported that on HP-UX the gcc test will end up
  14391. # making a dummy file named 'D' -- because '-MD' means "put the output
  14392. # in D".
  14393. rm -rf conftest.dir
  14394. mkdir conftest.dir
  14395. # Copy depcomp to subdir because otherwise we won't find it if we're
  14396. # using a relative directory.
  14397. cp "$am_depcomp" conftest.dir
  14398. cd conftest.dir
  14399. # We will build objects and dependencies in a subdirectory because
  14400. # it helps to detect inapplicable dependency modes. For instance
  14401. # both Tru64's cc and ICC support -MD to output dependencies as a
  14402. # side effect of compilation, but ICC will put the dependencies in
  14403. # the current directory while Tru64 will put them in the object
  14404. # directory.
  14405. mkdir sub
  14406. am_cv_CXX_dependencies_compiler_type=none
  14407. if test "$am_compiler_list" = ""; then
  14408. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  14409. fi
  14410. am__universal=false
  14411. case " $depcc " in #(
  14412. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  14413. esac
  14414. for depmode in $am_compiler_list; do
  14415. # Setup a source with many dependencies, because some compilers
  14416. # like to wrap large dependency lists on column 80 (with \), and
  14417. # we should not choose a depcomp mode which is confused by this.
  14418. #
  14419. # We need to recreate these files for each test, as the compiler may
  14420. # overwrite some of them when testing with obscure command lines.
  14421. # This happens at least with the AIX C compiler.
  14422. : > sub/conftest.c
  14423. for i in 1 2 3 4 5 6; do
  14424. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  14425. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  14426. # Solaris 10 /bin/sh.
  14427. echo '/* dummy */' > sub/conftst$i.h
  14428. done
  14429. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  14430. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  14431. # mode. It turns out that the SunPro C++ compiler does not properly
  14432. # handle '-M -o', and we need to detect this. Also, some Intel
  14433. # versions had trouble with output in subdirs.
  14434. am__obj=sub/conftest.${OBJEXT-o}
  14435. am__minus_obj="-o $am__obj"
  14436. case $depmode in
  14437. gcc)
  14438. # This depmode causes a compiler race in universal mode.
  14439. test "$am__universal" = false || continue
  14440. ;;
  14441. nosideeffect)
  14442. # After this tag, mechanisms are not by side-effect, so they'll
  14443. # only be used when explicitly requested.
  14444. if test "x$enable_dependency_tracking" = xyes; then
  14445. continue
  14446. else
  14447. break
  14448. fi
  14449. ;;
  14450. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  14451. # This compiler won't grok '-c -o', but also, the minuso test has
  14452. # not run yet. These depmodes are late enough in the game, and
  14453. # so weak that their functioning should not be impacted.
  14454. am__obj=conftest.${OBJEXT-o}
  14455. am__minus_obj=
  14456. ;;
  14457. none) break ;;
  14458. esac
  14459. if depmode=$depmode \
  14460. source=sub/conftest.c object=$am__obj \
  14461. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  14462. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  14463. >/dev/null 2>conftest.err &&
  14464. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  14465. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  14466. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  14467. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  14468. # icc doesn't choke on unknown options, it will just issue warnings
  14469. # or remarks (even with -Werror). So we grep stderr for any message
  14470. # that says an option was ignored or not supported.
  14471. # When given -MP, icc 7.0 and 7.1 complain thus:
  14472. # icc: Command line warning: ignoring option '-M'; no argument required
  14473. # The diagnosis changed in icc 8.0:
  14474. # icc: Command line remark: option '-MP' not supported
  14475. if (grep 'ignoring option' conftest.err ||
  14476. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  14477. am_cv_CXX_dependencies_compiler_type=$depmode
  14478. break
  14479. fi
  14480. fi
  14481. done
  14482. cd ..
  14483. rm -rf conftest.dir
  14484. else
  14485. am_cv_CXX_dependencies_compiler_type=none
  14486. fi
  14487. ;;
  14488. esac
  14489. fi
  14490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  14491. printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
  14492. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  14493. if
  14494. test "x$enable_dependency_tracking" != xno \
  14495. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  14496. am__fastdepCXX_TRUE=
  14497. am__fastdepCXX_FALSE='#'
  14498. else
  14499. am__fastdepCXX_TRUE='#'
  14500. am__fastdepCXX_FALSE=
  14501. fi
  14502. func_stripname_cnf ()
  14503. {
  14504. case $2 in
  14505. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  14506. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  14507. esac
  14508. } # func_stripname_cnf
  14509. if test -n "$CXX" && ( test no != "$CXX" &&
  14510. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  14511. (test g++ != "$CXX"))); then
  14512. ac_ext=cpp
  14513. ac_cpp='$CXXCPP $CPPFLAGS'
  14514. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14515. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14516. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  14518. printf %s "checking how to run the C++ preprocessor... " >&6; }
  14519. if test -z "$CXXCPP"; then
  14520. if test ${ac_cv_prog_CXXCPP+y}
  14521. then :
  14522. printf %s "(cached) " >&6
  14523. else case e in #(
  14524. e) # Double quotes because $CXX needs to be expanded
  14525. for CXXCPP in "$CXX -E" cpp /lib/cpp
  14526. do
  14527. ac_preproc_ok=false
  14528. for ac_cxx_preproc_warn_flag in '' yes
  14529. do
  14530. # Use a header file that comes with gcc, so configuring glibc
  14531. # with a fresh cross-compiler works.
  14532. # On the NeXT, cc -E runs the code through the compiler's parser,
  14533. # not just through cpp. "Syntax error" is here to catch this case.
  14534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14535. /* end confdefs.h. */
  14536. #include <limits.h>
  14537. Syntax error
  14538. _ACEOF
  14539. if ac_fn_cxx_try_cpp "$LINENO"
  14540. then :
  14541. else case e in #(
  14542. e) # Broken: fails on valid input.
  14543. continue ;;
  14544. esac
  14545. fi
  14546. rm -f conftest.err conftest.i conftest.$ac_ext
  14547. # OK, works on sane cases. Now check whether nonexistent headers
  14548. # can be detected and how.
  14549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14550. /* end confdefs.h. */
  14551. #include <ac_nonexistent.h>
  14552. _ACEOF
  14553. if ac_fn_cxx_try_cpp "$LINENO"
  14554. then :
  14555. # Broken: success on invalid input.
  14556. continue
  14557. else case e in #(
  14558. e) # Passes both tests.
  14559. ac_preproc_ok=:
  14560. break ;;
  14561. esac
  14562. fi
  14563. rm -f conftest.err conftest.i conftest.$ac_ext
  14564. done
  14565. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14566. rm -f conftest.i conftest.err conftest.$ac_ext
  14567. if $ac_preproc_ok
  14568. then :
  14569. break
  14570. fi
  14571. done
  14572. ac_cv_prog_CXXCPP=$CXXCPP
  14573. ;;
  14574. esac
  14575. fi
  14576. CXXCPP=$ac_cv_prog_CXXCPP
  14577. else
  14578. ac_cv_prog_CXXCPP=$CXXCPP
  14579. fi
  14580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  14581. printf "%s\n" "$CXXCPP" >&6; }
  14582. ac_preproc_ok=false
  14583. for ac_cxx_preproc_warn_flag in '' yes
  14584. do
  14585. # Use a header file that comes with gcc, so configuring glibc
  14586. # with a fresh cross-compiler works.
  14587. # On the NeXT, cc -E runs the code through the compiler's parser,
  14588. # not just through cpp. "Syntax error" is here to catch this case.
  14589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14590. /* end confdefs.h. */
  14591. #include <limits.h>
  14592. Syntax error
  14593. _ACEOF
  14594. if ac_fn_cxx_try_cpp "$LINENO"
  14595. then :
  14596. else case e in #(
  14597. e) # Broken: fails on valid input.
  14598. continue ;;
  14599. esac
  14600. fi
  14601. rm -f conftest.err conftest.i conftest.$ac_ext
  14602. # OK, works on sane cases. Now check whether nonexistent headers
  14603. # can be detected and how.
  14604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14605. /* end confdefs.h. */
  14606. #include <ac_nonexistent.h>
  14607. _ACEOF
  14608. if ac_fn_cxx_try_cpp "$LINENO"
  14609. then :
  14610. # Broken: success on invalid input.
  14611. continue
  14612. else case e in #(
  14613. e) # Passes both tests.
  14614. ac_preproc_ok=:
  14615. break ;;
  14616. esac
  14617. fi
  14618. rm -f conftest.err conftest.i conftest.$ac_ext
  14619. done
  14620. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14621. rm -f conftest.i conftest.err conftest.$ac_ext
  14622. if $ac_preproc_ok
  14623. then :
  14624. else case e in #(
  14625. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  14626. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  14627. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  14628. See 'config.log' for more details" "$LINENO" 5; } ;;
  14629. esac
  14630. fi
  14631. ac_ext=c
  14632. ac_cpp='$CPP $CPPFLAGS'
  14633. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14634. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14635. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14636. else
  14637. _lt_caught_CXX_error=yes
  14638. fi
  14639. ac_ext=cpp
  14640. ac_cpp='$CXXCPP $CPPFLAGS'
  14641. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14642. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14643. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14644. archive_cmds_need_lc_CXX=no
  14645. allow_undefined_flag_CXX=
  14646. always_export_symbols_CXX=no
  14647. archive_expsym_cmds_CXX=
  14648. compiler_needs_object_CXX=no
  14649. export_dynamic_flag_spec_CXX=
  14650. hardcode_direct_CXX=no
  14651. hardcode_direct_absolute_CXX=no
  14652. hardcode_libdir_flag_spec_CXX=
  14653. hardcode_libdir_separator_CXX=
  14654. hardcode_minus_L_CXX=no
  14655. hardcode_shlibpath_var_CXX=unsupported
  14656. hardcode_automatic_CXX=no
  14657. inherit_rpath_CXX=no
  14658. module_cmds_CXX=
  14659. module_expsym_cmds_CXX=
  14660. link_all_deplibs_CXX=unknown
  14661. old_archive_cmds_CXX=$old_archive_cmds
  14662. reload_flag_CXX=$reload_flag
  14663. reload_cmds_CXX=$reload_cmds
  14664. no_undefined_flag_CXX=
  14665. whole_archive_flag_spec_CXX=
  14666. enable_shared_with_static_runtimes_CXX=no
  14667. # Source file extension for C++ test sources.
  14668. ac_ext=cpp
  14669. # Object file extension for compiled C++ test sources.
  14670. objext=o
  14671. objext_CXX=$objext
  14672. # No sense in running all these tests if we already determined that
  14673. # the CXX compiler isn't working. Some variables (like enable_shared)
  14674. # are currently assumed to apply to all compilers on this platform,
  14675. # and will be corrupted by setting them based on a non-working compiler.
  14676. if test yes != "$_lt_caught_CXX_error"; then
  14677. # Code to be used in simple compile tests
  14678. lt_simple_compile_test_code="int some_variable = 0;"
  14679. # Code to be used in simple link tests
  14680. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  14681. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14682. # If no C compiler was specified, use CC.
  14683. LTCC=${LTCC-"$CC"}
  14684. # If no C compiler flags were specified, use CFLAGS.
  14685. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14686. # Allow CC to be a program name with arguments.
  14687. compiler=$CC
  14688. # save warnings/boilerplate of simple test code
  14689. ac_outfile=conftest.$ac_objext
  14690. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14691. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14692. _lt_compiler_boilerplate=`cat conftest.err`
  14693. $RM conftest*
  14694. ac_outfile=conftest.$ac_objext
  14695. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14696. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14697. _lt_linker_boilerplate=`cat conftest.err`
  14698. $RM -r conftest*
  14699. # Allow CC to be a program name with arguments.
  14700. lt_save_CC=$CC
  14701. lt_save_CFLAGS=$CFLAGS
  14702. lt_save_LD=$LD
  14703. lt_save_GCC=$GCC
  14704. GCC=$GXX
  14705. lt_save_with_gnu_ld=$with_gnu_ld
  14706. lt_save_path_LD=$lt_cv_path_LD
  14707. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  14708. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  14709. else
  14710. $as_unset lt_cv_prog_gnu_ld
  14711. fi
  14712. if test -n "${lt_cv_path_LDCXX+set}"; then
  14713. lt_cv_path_LD=$lt_cv_path_LDCXX
  14714. else
  14715. $as_unset lt_cv_path_LD
  14716. fi
  14717. test -z "${LDCXX+set}" || LD=$LDCXX
  14718. CC=${CXX-"c++"}
  14719. CFLAGS=$CXXFLAGS
  14720. compiler=$CC
  14721. compiler_CXX=$CC
  14722. func_cc_basename $compiler
  14723. cc_basename=$func_cc_basename_result
  14724. if test -n "$compiler"; then
  14725. # We don't want -fno-exception when compiling C++ code, so set the
  14726. # no_builtin_flag separately
  14727. if test yes = "$GXX"; then
  14728. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  14729. else
  14730. lt_prog_compiler_no_builtin_flag_CXX=
  14731. fi
  14732. if test yes = "$GXX"; then
  14733. # Set up default GNU C++ configuration
  14734. # Check whether --with-gnu-ld was given.
  14735. if test ${with_gnu_ld+y}
  14736. then :
  14737. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  14738. else case e in #(
  14739. e) with_gnu_ld=no ;;
  14740. esac
  14741. fi
  14742. ac_prog=ld
  14743. if test yes = "$GCC"; then
  14744. # Check if gcc -print-prog-name=ld gives a path.
  14745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  14746. printf %s "checking for ld used by $CC... " >&6; }
  14747. case $host in
  14748. *-*-mingw* | *-*-windows*)
  14749. # gcc leaves a trailing carriage return, which upsets mingw
  14750. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  14751. *)
  14752. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  14753. esac
  14754. case $ac_prog in
  14755. # Accept absolute paths.
  14756. [\\/]* | ?:[\\/]*)
  14757. re_direlt='/[^/][^/]*/\.\./'
  14758. # Canonicalize the pathname of ld
  14759. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  14760. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  14761. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  14762. done
  14763. test -z "$LD" && LD=$ac_prog
  14764. ;;
  14765. "")
  14766. # If it fails, then pretend we aren't using GCC.
  14767. ac_prog=ld
  14768. ;;
  14769. *)
  14770. # If it is relative, then search for the first ld in PATH.
  14771. with_gnu_ld=unknown
  14772. ;;
  14773. esac
  14774. elif test yes = "$with_gnu_ld"; then
  14775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  14776. printf %s "checking for GNU ld... " >&6; }
  14777. else
  14778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  14779. printf %s "checking for non-GNU ld... " >&6; }
  14780. fi
  14781. if test ${lt_cv_path_LD+y}
  14782. then :
  14783. printf %s "(cached) " >&6
  14784. else case e in #(
  14785. e) if test -z "$LD"; then
  14786. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  14787. for ac_dir in $PATH; do
  14788. IFS=$lt_save_ifs
  14789. test -z "$ac_dir" && ac_dir=.
  14790. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  14791. lt_cv_path_LD=$ac_dir/$ac_prog
  14792. # Check to see if the program is GNU ld. I'd rather use --version,
  14793. # but apparently some variants of GNU ld only accept -v.
  14794. # Break only if it was the GNU/non-GNU ld that we prefer.
  14795. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  14796. *GNU* | *'with BFD'*)
  14797. test no != "$with_gnu_ld" && break
  14798. ;;
  14799. *)
  14800. test yes != "$with_gnu_ld" && break
  14801. ;;
  14802. esac
  14803. fi
  14804. done
  14805. IFS=$lt_save_ifs
  14806. else
  14807. lt_cv_path_LD=$LD # Let the user override the test with a path.
  14808. fi ;;
  14809. esac
  14810. fi
  14811. LD=$lt_cv_path_LD
  14812. if test -n "$LD"; then
  14813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  14814. printf "%s\n" "$LD" >&6; }
  14815. else
  14816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14817. printf "%s\n" "no" >&6; }
  14818. fi
  14819. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  14820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  14821. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  14822. if test ${lt_cv_prog_gnu_ld+y}
  14823. then :
  14824. printf %s "(cached) " >&6
  14825. else case e in #(
  14826. e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
  14827. case `$LD -v 2>&1 </dev/null` in
  14828. *GNU* | *'with BFD'*)
  14829. lt_cv_prog_gnu_ld=yes
  14830. ;;
  14831. *)
  14832. lt_cv_prog_gnu_ld=no
  14833. ;;
  14834. esac ;;
  14835. esac
  14836. fi
  14837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  14838. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  14839. with_gnu_ld=$lt_cv_prog_gnu_ld
  14840. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  14841. # archiving commands below assume that GNU ld is being used.
  14842. if test yes = "$with_gnu_ld"; then
  14843. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14844. 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'
  14845. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14846. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14847. # If archive_cmds runs LD, not CC, wlarc should be empty
  14848. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  14849. # investigate it a little bit more. (MM)
  14850. wlarc='$wl'
  14851. # ancient GNU ld didn't support --whole-archive et. al.
  14852. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  14853. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  14854. else
  14855. whole_archive_flag_spec_CXX=
  14856. fi
  14857. else
  14858. with_gnu_ld=no
  14859. wlarc=
  14860. # A generic and very simple default shared library creation
  14861. # command for GNU C++ for the case where it uses the native
  14862. # linker, instead of GNU ld. If possible, this setting should
  14863. # overridden to take advantage of the native linker features on
  14864. # the platform it is being used on.
  14865. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  14866. fi
  14867. # Commands to make compiler produce verbose output that lists
  14868. # what "hidden" libraries, object files and flags are used when
  14869. # linking a shared library.
  14870. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  14871. else
  14872. GXX=no
  14873. with_gnu_ld=no
  14874. wlarc=
  14875. fi
  14876. # PORTME: fill in a description of your system's C++ link characteristics
  14877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14878. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14879. ld_shlibs_CXX=yes
  14880. case $host_os in
  14881. aix3*)
  14882. # FIXME: insert proper C++ library support
  14883. ld_shlibs_CXX=no
  14884. ;;
  14885. aix[4-9]*)
  14886. if test ia64 = "$host_cpu"; then
  14887. # On IA64, the linker does run time linking by default, so we don't
  14888. # have to do anything special.
  14889. aix_use_runtimelinking=no
  14890. exp_sym_flag='-Bexport'
  14891. no_entry_flag=
  14892. else
  14893. aix_use_runtimelinking=no
  14894. # Test if we are trying to use run time linking or normal
  14895. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14896. # have runtime linking enabled, and use it for executables.
  14897. # For shared libraries, we enable/disable runtime linking
  14898. # depending on the kind of the shared library created -
  14899. # when "with_aix_soname,aix_use_runtimelinking" is:
  14900. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  14901. # "aix,yes" lib.so shared, rtl:yes, for executables
  14902. # lib.a static archive
  14903. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  14904. # lib.a(lib.so.V) shared, rtl:no, for executables
  14905. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  14906. # lib.a(lib.so.V) shared, rtl:no
  14907. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  14908. # lib.a static archive
  14909. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  14910. for ld_flag in $LDFLAGS; do
  14911. case $ld_flag in
  14912. *-brtl*)
  14913. aix_use_runtimelinking=yes
  14914. break
  14915. ;;
  14916. esac
  14917. done
  14918. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  14919. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  14920. # so we don't have lib.a shared libs to link our executables.
  14921. # We have to force runtime linking in this case.
  14922. aix_use_runtimelinking=yes
  14923. LDFLAGS="$LDFLAGS -Wl,-brtl"
  14924. fi
  14925. ;;
  14926. esac
  14927. exp_sym_flag='-bexport'
  14928. no_entry_flag='-bnoentry'
  14929. fi
  14930. # When large executables or shared objects are built, AIX ld can
  14931. # have problems creating the table of contents. If linking a library
  14932. # or program results in "error TOC overflow" add -mminimal-toc to
  14933. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14934. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14935. archive_cmds_CXX=''
  14936. hardcode_direct_CXX=yes
  14937. hardcode_direct_absolute_CXX=yes
  14938. hardcode_libdir_separator_CXX=':'
  14939. link_all_deplibs_CXX=yes
  14940. file_list_spec_CXX='$wl-f,'
  14941. case $with_aix_soname,$aix_use_runtimelinking in
  14942. aix,*) ;; # no import file
  14943. svr4,* | *,yes) # use import file
  14944. # The Import File defines what to hardcode.
  14945. hardcode_direct_CXX=no
  14946. hardcode_direct_absolute_CXX=no
  14947. ;;
  14948. esac
  14949. if test yes = "$GXX"; then
  14950. case $host_os in aix4.[012]|aix4.[012].*)
  14951. # We only want to do this on AIX 4.2 and lower, the check
  14952. # below for broken collect2 doesn't work under 4.3+
  14953. collect2name=`$CC -print-prog-name=collect2`
  14954. if test -f "$collect2name" &&
  14955. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  14956. then
  14957. # We have reworked collect2
  14958. :
  14959. else
  14960. # We have old collect2
  14961. hardcode_direct_CXX=unsupported
  14962. # It fails to find uninstalled libraries when the uninstalled
  14963. # path is not listed in the libpath. Setting hardcode_minus_L
  14964. # to unsupported forces relinking
  14965. hardcode_minus_L_CXX=yes
  14966. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14967. hardcode_libdir_separator_CXX=
  14968. fi
  14969. esac
  14970. shared_flag='-shared'
  14971. if test yes = "$aix_use_runtimelinking"; then
  14972. shared_flag=$shared_flag' $wl-G'
  14973. fi
  14974. # Need to ensure runtime linking is disabled for the traditional
  14975. # shared library, or the linker may eventually find shared libraries
  14976. # /with/ Import File - we do not want to mix them.
  14977. shared_flag_aix='-shared'
  14978. shared_flag_svr4='-shared $wl-G'
  14979. else
  14980. # not using gcc
  14981. if test ia64 = "$host_cpu"; then
  14982. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14983. # chokes on -Wl,-G. The following line is correct:
  14984. shared_flag='-G'
  14985. else
  14986. if test yes = "$aix_use_runtimelinking"; then
  14987. shared_flag='$wl-G'
  14988. else
  14989. shared_flag='$wl-bM:SRE'
  14990. fi
  14991. shared_flag_aix='$wl-bM:SRE'
  14992. shared_flag_svr4='$wl-G'
  14993. fi
  14994. fi
  14995. export_dynamic_flag_spec_CXX='$wl-bexpall'
  14996. # It seems that -bexpall does not export symbols beginning with
  14997. # underscore (_), so it is better to generate a list of symbols to
  14998. # export.
  14999. always_export_symbols_CXX=yes
  15000. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  15001. # Warning - without using the other runtime loading flags (-brtl),
  15002. # -berok will link without error, but may produce a broken library.
  15003. # The "-G" linker flag allows undefined symbols.
  15004. no_undefined_flag_CXX='-bernotok'
  15005. # Determine the default libpath from the value encoded in an empty
  15006. # executable.
  15007. if test set = "${lt_cv_aix_libpath+set}"; then
  15008. aix_libpath=$lt_cv_aix_libpath
  15009. else
  15010. if test ${lt_cv_aix_libpath__CXX+y}
  15011. then :
  15012. printf %s "(cached) " >&6
  15013. else case e in #(
  15014. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15015. /* end confdefs.h. */
  15016. int
  15017. main (void)
  15018. {
  15019. ;
  15020. return 0;
  15021. }
  15022. _ACEOF
  15023. if ac_fn_cxx_try_link "$LINENO"
  15024. then :
  15025. lt_aix_libpath_sed='
  15026. /Import File Strings/,/^$/ {
  15027. /^0/ {
  15028. s/^0 *\([^ ]*\) *$/\1/
  15029. p
  15030. }
  15031. }'
  15032. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15033. # Check for a 64-bit object if we didn't find anything.
  15034. if test -z "$lt_cv_aix_libpath__CXX"; then
  15035. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15036. fi
  15037. fi
  15038. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15039. conftest$ac_exeext conftest.$ac_ext
  15040. if test -z "$lt_cv_aix_libpath__CXX"; then
  15041. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  15042. fi
  15043. ;;
  15044. esac
  15045. fi
  15046. aix_libpath=$lt_cv_aix_libpath__CXX
  15047. fi
  15048. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  15049. 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
  15050. else
  15051. if test ia64 = "$host_cpu"; then
  15052. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  15053. allow_undefined_flag_CXX="-z nodefs"
  15054. 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"
  15055. else
  15056. # Determine the default libpath from the value encoded in an
  15057. # empty executable.
  15058. if test set = "${lt_cv_aix_libpath+set}"; then
  15059. aix_libpath=$lt_cv_aix_libpath
  15060. else
  15061. if test ${lt_cv_aix_libpath__CXX+y}
  15062. then :
  15063. printf %s "(cached) " >&6
  15064. else case e in #(
  15065. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15066. /* end confdefs.h. */
  15067. int
  15068. main (void)
  15069. {
  15070. ;
  15071. return 0;
  15072. }
  15073. _ACEOF
  15074. if ac_fn_cxx_try_link "$LINENO"
  15075. then :
  15076. lt_aix_libpath_sed='
  15077. /Import File Strings/,/^$/ {
  15078. /^0/ {
  15079. s/^0 *\([^ ]*\) *$/\1/
  15080. p
  15081. }
  15082. }'
  15083. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15084. # Check for a 64-bit object if we didn't find anything.
  15085. if test -z "$lt_cv_aix_libpath__CXX"; then
  15086. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15087. fi
  15088. fi
  15089. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15090. conftest$ac_exeext conftest.$ac_ext
  15091. if test -z "$lt_cv_aix_libpath__CXX"; then
  15092. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  15093. fi
  15094. ;;
  15095. esac
  15096. fi
  15097. aix_libpath=$lt_cv_aix_libpath__CXX
  15098. fi
  15099. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  15100. # Warning - without using the other run time loading flags,
  15101. # -berok will link without error, but may produce a broken library.
  15102. no_undefined_flag_CXX=' $wl-bernotok'
  15103. allow_undefined_flag_CXX=' $wl-berok'
  15104. if test yes = "$with_gnu_ld"; then
  15105. # We only use this code for GNU lds that support --whole-archive.
  15106. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  15107. else
  15108. # Exported symbols can be pulled into shared objects from archives
  15109. whole_archive_flag_spec_CXX='$convenience'
  15110. fi
  15111. archive_cmds_need_lc_CXX=yes
  15112. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  15113. # -brtl affects multiple linker settings, -berok does not and is overridden later
  15114. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  15115. if test svr4 != "$with_aix_soname"; then
  15116. # This is similar to how AIX traditionally builds its shared
  15117. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  15118. 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'
  15119. fi
  15120. if test aix != "$with_aix_soname"; then
  15121. 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'
  15122. else
  15123. # used by -dlpreopen to get the symbols
  15124. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  15125. fi
  15126. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  15127. fi
  15128. fi
  15129. ;;
  15130. beos*)
  15131. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  15132. allow_undefined_flag_CXX=unsupported
  15133. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15134. # support --undefined. This deserves some investigation. FIXME
  15135. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15136. else
  15137. ld_shlibs_CXX=no
  15138. fi
  15139. ;;
  15140. chorus*)
  15141. case $cc_basename in
  15142. *)
  15143. # FIXME: insert proper C++ library support
  15144. ld_shlibs_CXX=no
  15145. ;;
  15146. esac
  15147. ;;
  15148. cygwin* | mingw* | windows* | pw32* | cegcc*)
  15149. case $GXX,$cc_basename in
  15150. ,cl* | no,cl* | ,icl* | no,icl*)
  15151. # Native MSVC or ICC
  15152. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15153. # no search path for DLLs.
  15154. hardcode_libdir_flag_spec_CXX=' '
  15155. allow_undefined_flag_CXX=unsupported
  15156. always_export_symbols_CXX=yes
  15157. file_list_spec_CXX='@'
  15158. # Tell ltmain to make .lib files, not .a files.
  15159. libext=lib
  15160. # Tell ltmain to make .dll files, not .so files.
  15161. shrext_cmds=.dll
  15162. # FIXME: Setting linknames here is a bad hack.
  15163. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  15164. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  15165. cp "$export_symbols" "$output_objdir/$soname.def";
  15166. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  15167. else
  15168. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  15169. fi~
  15170. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  15171. linknames='
  15172. # The linker will not automatically build a static lib if we build a DLL.
  15173. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  15174. enable_shared_with_static_runtimes_CXX=yes
  15175. # Don't use ranlib
  15176. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  15177. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  15178. lt_tool_outputfile="@TOOL_OUTPUT@"~
  15179. case $lt_outputfile in
  15180. *.exe|*.EXE) ;;
  15181. *)
  15182. lt_outputfile=$lt_outputfile.exe
  15183. lt_tool_outputfile=$lt_tool_outputfile.exe
  15184. ;;
  15185. esac~
  15186. func_to_tool_file "$lt_outputfile"~
  15187. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  15188. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  15189. $RM "$lt_outputfile.manifest";
  15190. fi'
  15191. ;;
  15192. *)
  15193. # g++
  15194. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  15195. # as there is no search path for DLLs.
  15196. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15197. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  15198. allow_undefined_flag_CXX=unsupported
  15199. always_export_symbols_CXX=no
  15200. enable_shared_with_static_runtimes_CXX=yes
  15201. file_list_spec_CXX='@'
  15202. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  15203. 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'
  15204. # If the export-symbols file already is a .def file, use it as
  15205. # is; otherwise, prepend EXPORTS...
  15206. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  15207. cp $export_symbols $output_objdir/$soname.def;
  15208. else
  15209. echo EXPORTS > $output_objdir/$soname.def;
  15210. cat $export_symbols >> $output_objdir/$soname.def;
  15211. fi~
  15212. $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'
  15213. else
  15214. ld_shlibs_CXX=no
  15215. fi
  15216. ;;
  15217. esac
  15218. ;;
  15219. darwin* | rhapsody*)
  15220. archive_cmds_need_lc_CXX=no
  15221. hardcode_direct_CXX=no
  15222. hardcode_automatic_CXX=yes
  15223. hardcode_shlibpath_var_CXX=unsupported
  15224. if test yes = "$lt_cv_ld_force_load"; then
  15225. 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\"`'
  15226. else
  15227. whole_archive_flag_spec_CXX=''
  15228. fi
  15229. link_all_deplibs_CXX=yes
  15230. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  15231. case $cc_basename in
  15232. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  15233. *) _lt_dar_can_shared=$GCC ;;
  15234. esac
  15235. if test yes = "$_lt_dar_can_shared"; then
  15236. output_verbose_link_cmd=func_echo_all
  15237. 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"
  15238. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  15239. 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"
  15240. 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"
  15241. if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
  15242. 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"
  15243. 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"
  15244. fi
  15245. else
  15246. ld_shlibs_CXX=no
  15247. fi
  15248. ;;
  15249. os2*)
  15250. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15251. hardcode_minus_L_CXX=yes
  15252. allow_undefined_flag_CXX=unsupported
  15253. shrext_cmds=.dll
  15254. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  15255. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  15256. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  15257. $ECHO EXPORTS >> $output_objdir/$libname.def~
  15258. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  15259. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  15260. emximp -o $lib $output_objdir/$libname.def'
  15261. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  15262. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  15263. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  15264. $ECHO EXPORTS >> $output_objdir/$libname.def~
  15265. prefix_cmds="$SED"~
  15266. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  15267. prefix_cmds="$prefix_cmds -e 1d";
  15268. fi~
  15269. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  15270. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  15271. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  15272. emximp -o $lib $output_objdir/$libname.def'
  15273. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  15274. enable_shared_with_static_runtimes_CXX=yes
  15275. file_list_spec_CXX='@'
  15276. ;;
  15277. dgux*)
  15278. case $cc_basename in
  15279. ec++*)
  15280. # FIXME: insert proper C++ library support
  15281. ld_shlibs_CXX=no
  15282. ;;
  15283. ghcx*)
  15284. # Green Hills C++ Compiler
  15285. # FIXME: insert proper C++ library support
  15286. ld_shlibs_CXX=no
  15287. ;;
  15288. *)
  15289. # FIXME: insert proper C++ library support
  15290. ld_shlibs_CXX=no
  15291. ;;
  15292. esac
  15293. ;;
  15294. freebsd2.*)
  15295. # C++ shared libraries reported to be fairly broken before
  15296. # switch to ELF
  15297. ld_shlibs_CXX=no
  15298. ;;
  15299. freebsd-elf*)
  15300. archive_cmds_need_lc_CXX=no
  15301. ;;
  15302. freebsd* | dragonfly* | midnightbsd*)
  15303. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  15304. # conventions
  15305. ld_shlibs_CXX=yes
  15306. ;;
  15307. haiku*)
  15308. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15309. link_all_deplibs_CXX=no
  15310. ;;
  15311. hpux9*)
  15312. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  15313. hardcode_libdir_separator_CXX=:
  15314. export_dynamic_flag_spec_CXX='$wl-E'
  15315. hardcode_direct_CXX=yes
  15316. hardcode_minus_L_CXX=yes # Not in the search PATH,
  15317. # but as the default
  15318. # location of the library.
  15319. case $cc_basename in
  15320. CC*)
  15321. # FIXME: insert proper C++ library support
  15322. ld_shlibs_CXX=no
  15323. ;;
  15324. aCC*)
  15325. 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'
  15326. # Commands to make compiler produce verbose output that lists
  15327. # what "hidden" libraries, object files and flags are used when
  15328. # linking a shared library.
  15329. #
  15330. # There doesn't appear to be a way to prevent this compiler from
  15331. # explicitly linking system object files so we need to strip them
  15332. # from the output so that they don't get included in the library
  15333. # dependencies.
  15334. 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"'
  15335. ;;
  15336. *)
  15337. if test yes = "$GXX"; then
  15338. 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'
  15339. else
  15340. # FIXME: insert proper C++ library support
  15341. ld_shlibs_CXX=no
  15342. fi
  15343. ;;
  15344. esac
  15345. ;;
  15346. hpux10*|hpux11*)
  15347. if test no = "$with_gnu_ld"; then
  15348. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  15349. hardcode_libdir_separator_CXX=:
  15350. case $host_cpu in
  15351. hppa*64*|ia64*)
  15352. ;;
  15353. *)
  15354. export_dynamic_flag_spec_CXX='$wl-E'
  15355. ;;
  15356. esac
  15357. fi
  15358. case $host_cpu in
  15359. hppa*64*|ia64*)
  15360. hardcode_direct_CXX=no
  15361. hardcode_shlibpath_var_CXX=no
  15362. ;;
  15363. *)
  15364. hardcode_direct_CXX=yes
  15365. hardcode_direct_absolute_CXX=yes
  15366. hardcode_minus_L_CXX=yes # Not in the search PATH,
  15367. # but as the default
  15368. # location of the library.
  15369. ;;
  15370. esac
  15371. case $cc_basename in
  15372. CC*)
  15373. # FIXME: insert proper C++ library support
  15374. ld_shlibs_CXX=no
  15375. ;;
  15376. aCC*)
  15377. case $host_cpu in
  15378. hppa*64*)
  15379. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15380. ;;
  15381. ia64*)
  15382. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15383. ;;
  15384. *)
  15385. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15386. ;;
  15387. esac
  15388. # Commands to make compiler produce verbose output that lists
  15389. # what "hidden" libraries, object files and flags are used when
  15390. # linking a shared library.
  15391. #
  15392. # There doesn't appear to be a way to prevent this compiler from
  15393. # explicitly linking system object files so we need to strip them
  15394. # from the output so that they don't get included in the library
  15395. # dependencies.
  15396. 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"'
  15397. ;;
  15398. *)
  15399. if test yes = "$GXX"; then
  15400. if test no = "$with_gnu_ld"; then
  15401. case $host_cpu in
  15402. hppa*64*)
  15403. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15404. ;;
  15405. ia64*)
  15406. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15407. ;;
  15408. *)
  15409. 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'
  15410. ;;
  15411. esac
  15412. fi
  15413. else
  15414. # FIXME: insert proper C++ library support
  15415. ld_shlibs_CXX=no
  15416. fi
  15417. ;;
  15418. esac
  15419. ;;
  15420. interix[3-9]*)
  15421. hardcode_direct_CXX=no
  15422. hardcode_shlibpath_var_CXX=no
  15423. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15424. export_dynamic_flag_spec_CXX='$wl-E'
  15425. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15426. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15427. # default) and relocated if they conflict, which is a slow very memory
  15428. # consuming and fragmenting process. To avoid this, we pick a random,
  15429. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15430. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15431. 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'
  15432. 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'
  15433. ;;
  15434. irix5* | irix6*)
  15435. case $cc_basename in
  15436. CC*)
  15437. # SGI C++
  15438. 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'
  15439. # Archives containing C++ object files must be created using
  15440. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  15441. # necessary to make sure instantiated templates are included
  15442. # in the archive.
  15443. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  15444. ;;
  15445. *)
  15446. if test yes = "$GXX"; then
  15447. if test no = "$with_gnu_ld"; then
  15448. 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'
  15449. else
  15450. 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'
  15451. fi
  15452. fi
  15453. link_all_deplibs_CXX=yes
  15454. ;;
  15455. esac
  15456. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15457. hardcode_libdir_separator_CXX=:
  15458. inherit_rpath_CXX=yes
  15459. ;;
  15460. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15461. case $cc_basename in
  15462. KCC*)
  15463. # Kuck and Associates, Inc. (KAI) C++ Compiler
  15464. # KCC will only create a shared library if the output file
  15465. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  15466. # to its proper name (with version) after linking.
  15467. 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'
  15468. 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'
  15469. # Commands to make compiler produce verbose output that lists
  15470. # what "hidden" libraries, object files and flags are used when
  15471. # linking a shared library.
  15472. #
  15473. # There doesn't appear to be a way to prevent this compiler from
  15474. # explicitly linking system object files so we need to strip them
  15475. # from the output so that they don't get included in the library
  15476. # dependencies.
  15477. 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"'
  15478. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15479. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15480. # Archives containing C++ object files must be created using
  15481. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  15482. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  15483. ;;
  15484. icpc* | ecpc* )
  15485. # Intel C++
  15486. with_gnu_ld=yes
  15487. # version 8.0 and above of icpc choke on multiply defined symbols
  15488. # if we add $predep_objects and $postdep_objects, however 7.1 and
  15489. # earlier do not add the objects themselves.
  15490. case `$CC -V 2>&1` in
  15491. *"Version 7."*)
  15492. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15493. 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'
  15494. ;;
  15495. *) # Version 8.0 or newer
  15496. tmp_idyn=
  15497. case $host_cpu in
  15498. ia64*) tmp_idyn=' -i_dynamic';;
  15499. esac
  15500. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15501. 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'
  15502. ;;
  15503. esac
  15504. archive_cmds_need_lc_CXX=no
  15505. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15506. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15507. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  15508. ;;
  15509. pgCC* | pgcpp*)
  15510. # Portland Group C++ compiler
  15511. case `$CC -V` in
  15512. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  15513. prelink_cmds_CXX='tpldir=Template.dir~
  15514. rm -rf $tpldir~
  15515. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  15516. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  15517. old_archive_cmds_CXX='tpldir=Template.dir~
  15518. rm -rf $tpldir~
  15519. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  15520. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  15521. $RANLIB $oldlib'
  15522. archive_cmds_CXX='tpldir=Template.dir~
  15523. rm -rf $tpldir~
  15524. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  15525. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15526. archive_expsym_cmds_CXX='tpldir=Template.dir~
  15527. rm -rf $tpldir~
  15528. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  15529. $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'
  15530. ;;
  15531. *) # Version 6 and above use weak symbols
  15532. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15533. 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'
  15534. ;;
  15535. esac
  15536. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  15537. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15538. 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'
  15539. ;;
  15540. cxx*)
  15541. # Compaq C++
  15542. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15543. 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'
  15544. runpath_var=LD_RUN_PATH
  15545. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  15546. hardcode_libdir_separator_CXX=:
  15547. # Commands to make compiler produce verbose output that lists
  15548. # what "hidden" libraries, object files and flags are used when
  15549. # linking a shared library.
  15550. #
  15551. # There doesn't appear to be a way to prevent this compiler from
  15552. # explicitly linking system object files so we need to strip them
  15553. # from the output so that they don't get included in the library
  15554. # dependencies.
  15555. 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'
  15556. ;;
  15557. xl* | mpixl* | bgxl*)
  15558. # IBM XL 8.0 on PPC, with GNU ld
  15559. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15560. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15561. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15562. if test yes = "$supports_anon_versioning"; then
  15563. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  15564. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15565. echo "local: *; };" >> $output_objdir/$libname.ver~
  15566. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  15567. fi
  15568. ;;
  15569. *)
  15570. case `$CC -V 2>&1 | $SED 5q` in
  15571. *Sun\ C*)
  15572. # Sun C++ 5.9
  15573. no_undefined_flag_CXX=' -zdefs'
  15574. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15575. 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'
  15576. hardcode_libdir_flag_spec_CXX='-R$libdir'
  15577. 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'
  15578. compiler_needs_object_CXX=yes
  15579. # Not sure whether something based on
  15580. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  15581. # would be better.
  15582. output_verbose_link_cmd='func_echo_all'
  15583. # Archives containing C++ object files must be created using
  15584. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  15585. # necessary to make sure instantiated templates are included
  15586. # in the archive.
  15587. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  15588. ;;
  15589. esac
  15590. ;;
  15591. esac
  15592. ;;
  15593. lynxos*)
  15594. # FIXME: insert proper C++ library support
  15595. ld_shlibs_CXX=no
  15596. ;;
  15597. m88k*)
  15598. # FIXME: insert proper C++ library support
  15599. ld_shlibs_CXX=no
  15600. ;;
  15601. mvs*)
  15602. case $cc_basename in
  15603. cxx*)
  15604. # FIXME: insert proper C++ library support
  15605. ld_shlibs_CXX=no
  15606. ;;
  15607. *)
  15608. # FIXME: insert proper C++ library support
  15609. ld_shlibs_CXX=no
  15610. ;;
  15611. esac
  15612. ;;
  15613. *-mlibc)
  15614. ld_shlibs_CXX=yes
  15615. ;;
  15616. netbsd*)
  15617. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15618. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  15619. wlarc=
  15620. hardcode_libdir_flag_spec_CXX='-R$libdir'
  15621. hardcode_direct_CXX=yes
  15622. hardcode_shlibpath_var_CXX=no
  15623. fi
  15624. # Workaround some broken pre-1.5 toolchains
  15625. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  15626. ;;
  15627. *nto* | *qnx*)
  15628. ld_shlibs_CXX=yes
  15629. ;;
  15630. openbsd*)
  15631. if test -f /usr/libexec/ld.so; then
  15632. hardcode_direct_CXX=yes
  15633. hardcode_shlibpath_var_CXX=no
  15634. hardcode_direct_absolute_CXX=yes
  15635. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  15636. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15637. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  15638. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  15639. export_dynamic_flag_spec_CXX='$wl-E'
  15640. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  15641. fi
  15642. output_verbose_link_cmd=func_echo_all
  15643. else
  15644. ld_shlibs_CXX=no
  15645. fi
  15646. ;;
  15647. osf3* | osf4* | osf5*)
  15648. case $cc_basename in
  15649. KCC*)
  15650. # Kuck and Associates, Inc. (KAI) C++ Compiler
  15651. # KCC will only create a shared library if the output file
  15652. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  15653. # to its proper name (with version) after linking.
  15654. 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'
  15655. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15656. hardcode_libdir_separator_CXX=:
  15657. # Archives containing C++ object files must be created using
  15658. # the KAI C++ compiler.
  15659. case $host in
  15660. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  15661. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  15662. esac
  15663. ;;
  15664. RCC*)
  15665. # Rational C++ 2.4.1
  15666. # FIXME: insert proper C++ library support
  15667. ld_shlibs_CXX=no
  15668. ;;
  15669. cxx*)
  15670. case $host in
  15671. osf3*)
  15672. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  15673. 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'
  15674. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15675. ;;
  15676. *)
  15677. allow_undefined_flag_CXX=' -expect_unresolved \*'
  15678. 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'
  15679. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  15680. echo "-hidden">> $lib.exp~
  15681. $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~
  15682. $RM $lib.exp'
  15683. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  15684. ;;
  15685. esac
  15686. hardcode_libdir_separator_CXX=:
  15687. # Commands to make compiler produce verbose output that lists
  15688. # what "hidden" libraries, object files and flags are used when
  15689. # linking a shared library.
  15690. #
  15691. # There doesn't appear to be a way to prevent this compiler from
  15692. # explicitly linking system object files so we need to strip them
  15693. # from the output so that they don't get included in the library
  15694. # dependencies.
  15695. 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"'
  15696. ;;
  15697. *)
  15698. if test yes,no = "$GXX,$with_gnu_ld"; then
  15699. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  15700. case $host in
  15701. osf3*)
  15702. 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'
  15703. ;;
  15704. *)
  15705. 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'
  15706. ;;
  15707. esac
  15708. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15709. hardcode_libdir_separator_CXX=:
  15710. # Commands to make compiler produce verbose output that lists
  15711. # what "hidden" libraries, object files and flags are used when
  15712. # linking a shared library.
  15713. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  15714. else
  15715. # FIXME: insert proper C++ library support
  15716. ld_shlibs_CXX=no
  15717. fi
  15718. ;;
  15719. esac
  15720. ;;
  15721. psos*)
  15722. # FIXME: insert proper C++ library support
  15723. ld_shlibs_CXX=no
  15724. ;;
  15725. serenity*)
  15726. ;;
  15727. sunos4*)
  15728. case $cc_basename in
  15729. CC*)
  15730. # Sun C++ 4.x
  15731. # FIXME: insert proper C++ library support
  15732. ld_shlibs_CXX=no
  15733. ;;
  15734. lcc*)
  15735. # Lucid
  15736. # FIXME: insert proper C++ library support
  15737. ld_shlibs_CXX=no
  15738. ;;
  15739. *)
  15740. # FIXME: insert proper C++ library support
  15741. ld_shlibs_CXX=no
  15742. ;;
  15743. esac
  15744. ;;
  15745. solaris*)
  15746. case $cc_basename in
  15747. CC* | sunCC*)
  15748. # Sun C++ 4.2, 5.x and Centerline C++
  15749. archive_cmds_need_lc_CXX=yes
  15750. no_undefined_flag_CXX=' -zdefs'
  15751. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15752. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15753. $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'
  15754. hardcode_libdir_flag_spec_CXX='-R$libdir'
  15755. hardcode_shlibpath_var_CXX=no
  15756. case $host_os in
  15757. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15758. *)
  15759. # The compiler driver will combine and reorder linker options,
  15760. # but understands '-z linker_flag'.
  15761. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15762. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  15763. ;;
  15764. esac
  15765. link_all_deplibs_CXX=yes
  15766. output_verbose_link_cmd='func_echo_all'
  15767. # Archives containing C++ object files must be created using
  15768. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  15769. # necessary to make sure instantiated templates are included
  15770. # in the archive.
  15771. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  15772. ;;
  15773. gcx*)
  15774. # Green Hills C++ Compiler
  15775. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  15776. # The C++ compiler must be used to create the archive.
  15777. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  15778. ;;
  15779. *)
  15780. # GNU C++ compiler with Solaris linker
  15781. if test yes,no = "$GXX,$with_gnu_ld"; then
  15782. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  15783. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  15784. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  15785. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15786. $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'
  15787. # Commands to make compiler produce verbose output that lists
  15788. # what "hidden" libraries, object files and flags are used when
  15789. # linking a shared library.
  15790. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  15791. else
  15792. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  15793. # platform.
  15794. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  15795. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15796. $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'
  15797. # Commands to make compiler produce verbose output that lists
  15798. # what "hidden" libraries, object files and flags are used when
  15799. # linking a shared library.
  15800. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
  15801. fi
  15802. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  15803. case $host_os in
  15804. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15805. *)
  15806. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  15807. ;;
  15808. esac
  15809. fi
  15810. ;;
  15811. esac
  15812. ;;
  15813. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  15814. no_undefined_flag_CXX='$wl-z,text'
  15815. archive_cmds_need_lc_CXX=no
  15816. hardcode_shlibpath_var_CXX=no
  15817. runpath_var='LD_RUN_PATH'
  15818. case $cc_basename in
  15819. CC*)
  15820. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15821. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15822. ;;
  15823. *)
  15824. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15825. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15826. ;;
  15827. esac
  15828. ;;
  15829. sysv5* | sco3.2v5* | sco5v6*)
  15830. # Note: We CANNOT use -z defs as we might desire, because we do not
  15831. # link with -lc, and that would cause any symbols used from libc to
  15832. # always be unresolved, which means just about no library would
  15833. # ever link correctly. If we're not using GNU ld we use -z text
  15834. # though, which does catch some bad symbols but isn't as heavy-handed
  15835. # as -z defs.
  15836. no_undefined_flag_CXX='$wl-z,text'
  15837. allow_undefined_flag_CXX='$wl-z,nodefs'
  15838. archive_cmds_need_lc_CXX=no
  15839. hardcode_shlibpath_var_CXX=no
  15840. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  15841. hardcode_libdir_separator_CXX=':'
  15842. link_all_deplibs_CXX=yes
  15843. export_dynamic_flag_spec_CXX='$wl-Bexport'
  15844. runpath_var='LD_RUN_PATH'
  15845. case $cc_basename in
  15846. CC*)
  15847. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15848. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15849. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  15850. '"$old_archive_cmds_CXX"
  15851. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  15852. '"$reload_cmds_CXX"
  15853. ;;
  15854. *)
  15855. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15856. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15857. ;;
  15858. esac
  15859. ;;
  15860. tandem*)
  15861. case $cc_basename in
  15862. NCC*)
  15863. # NonStop-UX NCC 3.20
  15864. # FIXME: insert proper C++ library support
  15865. ld_shlibs_CXX=no
  15866. ;;
  15867. *)
  15868. # FIXME: insert proper C++ library support
  15869. ld_shlibs_CXX=no
  15870. ;;
  15871. esac
  15872. ;;
  15873. vxworks*)
  15874. # FIXME: insert proper C++ library support
  15875. ld_shlibs_CXX=no
  15876. ;;
  15877. *)
  15878. # FIXME: insert proper C++ library support
  15879. ld_shlibs_CXX=no
  15880. ;;
  15881. esac
  15882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  15883. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  15884. test no = "$ld_shlibs_CXX" && can_build_shared=no
  15885. GCC_CXX=$GXX
  15886. LD_CXX=$LD
  15887. ## CAVEAT EMPTOR:
  15888. ## There is no encapsulation within the following macros, do not change
  15889. ## the running order or otherwise move them around unless you know exactly
  15890. ## what you are doing...
  15891. # Dependencies to place before and after the object being linked:
  15892. predep_objects_CXX=
  15893. postdep_objects_CXX=
  15894. predeps_CXX=
  15895. postdeps_CXX=
  15896. compiler_lib_search_path_CXX=
  15897. cat > conftest.$ac_ext <<_LT_EOF
  15898. class Foo
  15899. {
  15900. public:
  15901. Foo (void) { a = 0; }
  15902. private:
  15903. int a;
  15904. };
  15905. _LT_EOF
  15906. _lt_libdeps_save_CFLAGS=$CFLAGS
  15907. case "$CC $CFLAGS " in #(
  15908. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  15909. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  15910. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  15911. esac
  15912. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  15913. (eval $ac_compile) 2>&5
  15914. ac_status=$?
  15915. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15916. test $ac_status = 0; }; then
  15917. # Parse the compiler output and extract the necessary
  15918. # objects, libraries and library flags.
  15919. # Sentinel used to keep track of whether or not we are before
  15920. # the conftest object file.
  15921. pre_test_object_deps_done=no
  15922. for p in `eval "$output_verbose_link_cmd"`; do
  15923. case $prev$p in
  15924. -L* | -R* | -l*)
  15925. # Some compilers place space between "-{L,R,l}" and the path.
  15926. # Remove the space.
  15927. if test x-L = x"$p" ||
  15928. test x-R = x"$p" ||
  15929. test x-l = x"$p"; then
  15930. prev=$p
  15931. continue
  15932. fi
  15933. # Expand the sysroot to ease extracting the directories later.
  15934. if test -z "$prev"; then
  15935. case $p in
  15936. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  15937. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  15938. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  15939. esac
  15940. fi
  15941. case $p in
  15942. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  15943. esac
  15944. if test no = "$pre_test_object_deps_done"; then
  15945. case $prev in
  15946. -L | -R)
  15947. # Internal compiler library paths should come after those
  15948. # provided the user. The postdeps already come after the
  15949. # user supplied libs so there is no need to process them.
  15950. if test -z "$compiler_lib_search_path_CXX"; then
  15951. compiler_lib_search_path_CXX=$prev$p
  15952. else
  15953. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  15954. fi
  15955. ;;
  15956. # The "-l" case would never come before the object being
  15957. # linked, so don't bother handling this case.
  15958. esac
  15959. else
  15960. if test -z "$postdeps_CXX"; then
  15961. postdeps_CXX=$prev$p
  15962. else
  15963. postdeps_CXX="${postdeps_CXX} $prev$p"
  15964. fi
  15965. fi
  15966. prev=
  15967. ;;
  15968. *.lto.$objext) ;; # Ignore GCC LTO objects
  15969. *.$objext)
  15970. # This assumes that the test object file only shows up
  15971. # once in the compiler output.
  15972. if test "$p" = "conftest.$objext"; then
  15973. pre_test_object_deps_done=yes
  15974. continue
  15975. fi
  15976. if test no = "$pre_test_object_deps_done"; then
  15977. if test -z "$predep_objects_CXX"; then
  15978. predep_objects_CXX=$p
  15979. else
  15980. predep_objects_CXX="$predep_objects_CXX $p"
  15981. fi
  15982. else
  15983. if test -z "$postdep_objects_CXX"; then
  15984. postdep_objects_CXX=$p
  15985. else
  15986. postdep_objects_CXX="$postdep_objects_CXX $p"
  15987. fi
  15988. fi
  15989. ;;
  15990. *) ;; # Ignore the rest.
  15991. esac
  15992. done
  15993. # Clean up.
  15994. rm -f a.out a.exe
  15995. else
  15996. echo "libtool.m4: error: problem compiling CXX test program"
  15997. fi
  15998. $RM -f confest.$objext
  15999. CFLAGS=$_lt_libdeps_save_CFLAGS
  16000. # PORTME: override above test on systems where it is broken
  16001. case $host_os in
  16002. interix[3-9]*)
  16003. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  16004. # hack all around it, let's just trust "g++" to DTRT.
  16005. predep_objects_CXX=
  16006. postdep_objects_CXX=
  16007. postdeps_CXX=
  16008. ;;
  16009. esac
  16010. case " $postdeps_CXX " in
  16011. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  16012. esac
  16013. compiler_lib_search_dirs_CXX=
  16014. if test -n "${compiler_lib_search_path_CXX}"; then
  16015. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  16016. fi
  16017. lt_prog_compiler_wl_CXX=
  16018. lt_prog_compiler_pic_CXX=
  16019. lt_prog_compiler_static_CXX=
  16020. # C++ specific cases for pic, static, wl, etc.
  16021. if test yes = "$GXX"; then
  16022. lt_prog_compiler_wl_CXX='-Wl,'
  16023. lt_prog_compiler_static_CXX='-static'
  16024. case $host_os in
  16025. aix*)
  16026. # All AIX code is PIC.
  16027. if test ia64 = "$host_cpu"; then
  16028. # AIX 5 now supports IA64 processor
  16029. lt_prog_compiler_static_CXX='-Bstatic'
  16030. fi
  16031. lt_prog_compiler_pic_CXX='-fPIC'
  16032. ;;
  16033. amigaos*)
  16034. case $host_cpu in
  16035. powerpc)
  16036. # see comment about AmigaOS4 .so support
  16037. lt_prog_compiler_pic_CXX='-fPIC'
  16038. ;;
  16039. m68k)
  16040. # FIXME: we need at least 68020 code to build shared libraries, but
  16041. # adding the '-m68020' flag to GCC prevents building anything better,
  16042. # like '-m68040'.
  16043. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  16044. ;;
  16045. esac
  16046. ;;
  16047. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  16048. # PIC is the default for these OSes.
  16049. ;;
  16050. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  16051. # This hack is so that the source file can tell whether it is being
  16052. # built for inclusion in a dll (and should export symbols for example).
  16053. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  16054. # (--disable-auto-import) libraries
  16055. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  16056. case $host_os in
  16057. os2*)
  16058. lt_prog_compiler_static_CXX='$wl-static'
  16059. ;;
  16060. esac
  16061. ;;
  16062. darwin* | rhapsody*)
  16063. # PIC is the default on this platform
  16064. # Common symbols not allowed in MH_DYLIB files
  16065. lt_prog_compiler_pic_CXX='-fno-common'
  16066. ;;
  16067. *djgpp*)
  16068. # DJGPP does not support shared libraries at all
  16069. lt_prog_compiler_pic_CXX=
  16070. ;;
  16071. haiku*)
  16072. # PIC is the default for Haiku.
  16073. # The "-static" flag exists, but is broken.
  16074. lt_prog_compiler_static_CXX=
  16075. ;;
  16076. interix[3-9]*)
  16077. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  16078. # Instead, we relocate shared libraries at runtime.
  16079. ;;
  16080. sysv4*MP*)
  16081. if test -d /usr/nec; then
  16082. lt_prog_compiler_pic_CXX=-Kconform_pic
  16083. fi
  16084. ;;
  16085. hpux*)
  16086. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  16087. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  16088. # sets the default TLS model and affects inlining.
  16089. case $host_cpu in
  16090. hppa*64*)
  16091. ;;
  16092. *)
  16093. lt_prog_compiler_pic_CXX='-fPIC'
  16094. ;;
  16095. esac
  16096. ;;
  16097. *qnx* | *nto*)
  16098. # QNX uses GNU C++, but need to define -shared option too, otherwise
  16099. # it will coredump.
  16100. lt_prog_compiler_pic_CXX='-fPIC -shared'
  16101. ;;
  16102. *)
  16103. lt_prog_compiler_pic_CXX='-fPIC'
  16104. ;;
  16105. esac
  16106. else
  16107. case $host_os in
  16108. aix[4-9]*)
  16109. # All AIX code is PIC.
  16110. if test ia64 = "$host_cpu"; then
  16111. # AIX 5 now supports IA64 processor
  16112. lt_prog_compiler_static_CXX='-Bstatic'
  16113. else
  16114. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  16115. fi
  16116. ;;
  16117. chorus*)
  16118. case $cc_basename in
  16119. cxch68*)
  16120. # Green Hills C++ Compiler
  16121. # _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"
  16122. ;;
  16123. esac
  16124. ;;
  16125. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  16126. # This hack is so that the source file can tell whether it is being
  16127. # built for inclusion in a dll (and should export symbols for example).
  16128. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  16129. ;;
  16130. dgux*)
  16131. case $cc_basename in
  16132. ec++*)
  16133. lt_prog_compiler_pic_CXX='-KPIC'
  16134. ;;
  16135. ghcx*)
  16136. # Green Hills C++ Compiler
  16137. lt_prog_compiler_pic_CXX='-pic'
  16138. ;;
  16139. *)
  16140. ;;
  16141. esac
  16142. ;;
  16143. freebsd* | dragonfly* | midnightbsd*)
  16144. # FreeBSD uses GNU C++
  16145. ;;
  16146. hpux9* | hpux10* | hpux11*)
  16147. case $cc_basename in
  16148. CC*)
  16149. lt_prog_compiler_wl_CXX='-Wl,'
  16150. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  16151. if test ia64 != "$host_cpu"; then
  16152. lt_prog_compiler_pic_CXX='+Z'
  16153. fi
  16154. ;;
  16155. aCC*)
  16156. lt_prog_compiler_wl_CXX='-Wl,'
  16157. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  16158. case $host_cpu in
  16159. hppa*64*|ia64*)
  16160. # +Z the default
  16161. ;;
  16162. *)
  16163. lt_prog_compiler_pic_CXX='+Z'
  16164. ;;
  16165. esac
  16166. ;;
  16167. *)
  16168. ;;
  16169. esac
  16170. ;;
  16171. interix*)
  16172. # This is c89, which is MS Visual C++ (no shared libs)
  16173. # Anyone wants to do a port?
  16174. ;;
  16175. irix5* | irix6* | nonstopux*)
  16176. case $cc_basename in
  16177. CC*)
  16178. lt_prog_compiler_wl_CXX='-Wl,'
  16179. lt_prog_compiler_static_CXX='-non_shared'
  16180. # CC pic flag -KPIC is the default.
  16181. ;;
  16182. *)
  16183. ;;
  16184. esac
  16185. ;;
  16186. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  16187. case $cc_basename in
  16188. KCC*)
  16189. # KAI C++ Compiler
  16190. lt_prog_compiler_wl_CXX='--backend -Wl,'
  16191. lt_prog_compiler_pic_CXX='-fPIC'
  16192. ;;
  16193. ecpc* )
  16194. # old Intel C++ for x86_64, which still supported -KPIC.
  16195. lt_prog_compiler_wl_CXX='-Wl,'
  16196. lt_prog_compiler_pic_CXX='-KPIC'
  16197. lt_prog_compiler_static_CXX='-static'
  16198. ;;
  16199. icpc* )
  16200. # Intel C++, used to be incompatible with GCC.
  16201. # ICC 10 doesn't accept -KPIC any more.
  16202. lt_prog_compiler_wl_CXX='-Wl,'
  16203. lt_prog_compiler_pic_CXX='-fPIC'
  16204. lt_prog_compiler_static_CXX='-static'
  16205. ;;
  16206. pgCC* | pgcpp*)
  16207. # Portland Group C++ compiler
  16208. lt_prog_compiler_wl_CXX='-Wl,'
  16209. lt_prog_compiler_pic_CXX='-fpic'
  16210. lt_prog_compiler_static_CXX='-Bstatic'
  16211. ;;
  16212. cxx*)
  16213. # Compaq C++
  16214. # Make sure the PIC flag is empty. It appears that all Alpha
  16215. # Linux and Compaq Tru64 Unix objects are PIC.
  16216. lt_prog_compiler_pic_CXX=
  16217. lt_prog_compiler_static_CXX='-non_shared'
  16218. ;;
  16219. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  16220. # IBM XL 8.0, 9.0 on PPC and BlueGene
  16221. lt_prog_compiler_wl_CXX='-Wl,'
  16222. lt_prog_compiler_pic_CXX='-qpic'
  16223. lt_prog_compiler_static_CXX='-qstaticlink'
  16224. ;;
  16225. *)
  16226. case `$CC -V 2>&1 | $SED 5q` in
  16227. *Sun\ C*)
  16228. # Sun C++ 5.9
  16229. lt_prog_compiler_pic_CXX='-KPIC'
  16230. lt_prog_compiler_static_CXX='-Bstatic'
  16231. lt_prog_compiler_wl_CXX='-Qoption ld '
  16232. ;;
  16233. esac
  16234. ;;
  16235. esac
  16236. ;;
  16237. lynxos*)
  16238. ;;
  16239. m88k*)
  16240. ;;
  16241. mvs*)
  16242. case $cc_basename in
  16243. cxx*)
  16244. lt_prog_compiler_pic_CXX='-W c,exportall'
  16245. ;;
  16246. *)
  16247. ;;
  16248. esac
  16249. ;;
  16250. netbsd* | netbsdelf*-gnu)
  16251. ;;
  16252. *-mlibc)
  16253. ;;
  16254. *qnx* | *nto*)
  16255. # QNX uses GNU C++, but need to define -shared option too, otherwise
  16256. # it will coredump.
  16257. lt_prog_compiler_pic_CXX='-fPIC -shared'
  16258. ;;
  16259. osf3* | osf4* | osf5*)
  16260. case $cc_basename in
  16261. KCC*)
  16262. lt_prog_compiler_wl_CXX='--backend -Wl,'
  16263. ;;
  16264. RCC*)
  16265. # Rational C++ 2.4.1
  16266. lt_prog_compiler_pic_CXX='-pic'
  16267. ;;
  16268. cxx*)
  16269. # Digital/Compaq C++
  16270. lt_prog_compiler_wl_CXX='-Wl,'
  16271. # Make sure the PIC flag is empty. It appears that all Alpha
  16272. # Linux and Compaq Tru64 Unix objects are PIC.
  16273. lt_prog_compiler_pic_CXX=
  16274. lt_prog_compiler_static_CXX='-non_shared'
  16275. ;;
  16276. *)
  16277. ;;
  16278. esac
  16279. ;;
  16280. psos*)
  16281. ;;
  16282. serenity*)
  16283. ;;
  16284. solaris*)
  16285. case $cc_basename in
  16286. CC* | sunCC*)
  16287. # Sun C++ 4.2, 5.x and Centerline C++
  16288. lt_prog_compiler_pic_CXX='-KPIC'
  16289. lt_prog_compiler_static_CXX='-Bstatic'
  16290. lt_prog_compiler_wl_CXX='-Qoption ld '
  16291. ;;
  16292. gcx*)
  16293. # Green Hills C++ Compiler
  16294. lt_prog_compiler_pic_CXX='-PIC'
  16295. ;;
  16296. *)
  16297. ;;
  16298. esac
  16299. ;;
  16300. sunos4*)
  16301. case $cc_basename in
  16302. CC*)
  16303. # Sun C++ 4.x
  16304. lt_prog_compiler_pic_CXX='-pic'
  16305. lt_prog_compiler_static_CXX='-Bstatic'
  16306. ;;
  16307. lcc*)
  16308. # Lucid
  16309. lt_prog_compiler_pic_CXX='-pic'
  16310. ;;
  16311. *)
  16312. ;;
  16313. esac
  16314. ;;
  16315. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  16316. case $cc_basename in
  16317. CC*)
  16318. lt_prog_compiler_wl_CXX='-Wl,'
  16319. lt_prog_compiler_pic_CXX='-KPIC'
  16320. lt_prog_compiler_static_CXX='-Bstatic'
  16321. ;;
  16322. esac
  16323. ;;
  16324. tandem*)
  16325. case $cc_basename in
  16326. NCC*)
  16327. # NonStop-UX NCC 3.20
  16328. lt_prog_compiler_pic_CXX='-KPIC'
  16329. ;;
  16330. *)
  16331. ;;
  16332. esac
  16333. ;;
  16334. vxworks*)
  16335. ;;
  16336. *)
  16337. lt_prog_compiler_can_build_shared_CXX=no
  16338. ;;
  16339. esac
  16340. fi
  16341. case $host_os in
  16342. # For platforms that do not support PIC, -DPIC is meaningless:
  16343. *djgpp*)
  16344. lt_prog_compiler_pic_CXX=
  16345. ;;
  16346. *)
  16347. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  16348. ;;
  16349. esac
  16350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  16351. printf %s "checking for $compiler option to produce PIC... " >&6; }
  16352. if test ${lt_cv_prog_compiler_pic_CXX+y}
  16353. then :
  16354. printf %s "(cached) " >&6
  16355. else case e in #(
  16356. e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
  16357. esac
  16358. fi
  16359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  16360. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  16361. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  16362. #
  16363. # Check to make sure the PIC flag actually works.
  16364. #
  16365. if test -n "$lt_prog_compiler_pic_CXX"; then
  16366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  16367. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  16368. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  16369. then :
  16370. printf %s "(cached) " >&6
  16371. else case e in #(
  16372. e) lt_cv_prog_compiler_pic_works_CXX=no
  16373. ac_outfile=conftest.$ac_objext
  16374. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16375. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  16376. # Insert the option either (1) after the last *FLAGS variable, or
  16377. # (2) before a word containing "conftest.", or (3) at the end.
  16378. # Note that $ac_compile itself does not contain backslashes and begins
  16379. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16380. # The option is referenced via a variable to avoid confusing sed.
  16381. lt_compile=`echo "$ac_compile" | $SED \
  16382. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16383. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16384. -e 's:$: $lt_compiler_flag:'`
  16385. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  16386. (eval "$lt_compile" 2>conftest.err)
  16387. ac_status=$?
  16388. cat conftest.err >&5
  16389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16390. if (exit $ac_status) && test -s "$ac_outfile"; then
  16391. # The compiler can only warn and ignore the option if not recognized
  16392. # So say no if there are warnings other than the usual output.
  16393. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  16394. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16395. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  16396. lt_cv_prog_compiler_pic_works_CXX=yes
  16397. fi
  16398. fi
  16399. $RM conftest*
  16400. ;;
  16401. esac
  16402. fi
  16403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  16404. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  16405. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  16406. case $lt_prog_compiler_pic_CXX in
  16407. "" | " "*) ;;
  16408. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  16409. esac
  16410. else
  16411. lt_prog_compiler_pic_CXX=
  16412. lt_prog_compiler_can_build_shared_CXX=no
  16413. fi
  16414. fi
  16415. #
  16416. # Check to make sure the static flag actually works.
  16417. #
  16418. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  16419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  16420. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  16421. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  16422. then :
  16423. printf %s "(cached) " >&6
  16424. else case e in #(
  16425. e) lt_cv_prog_compiler_static_works_CXX=no
  16426. save_LDFLAGS=$LDFLAGS
  16427. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  16428. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  16429. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  16430. # The linker can only warn and ignore the option if not recognized
  16431. # So say no if there are warnings
  16432. if test -s conftest.err; then
  16433. # Append any errors to the config.log.
  16434. cat conftest.err 1>&5
  16435. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  16436. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16437. if diff conftest.exp conftest.er2 >/dev/null; then
  16438. lt_cv_prog_compiler_static_works_CXX=yes
  16439. fi
  16440. else
  16441. lt_cv_prog_compiler_static_works_CXX=yes
  16442. fi
  16443. fi
  16444. $RM -r conftest*
  16445. LDFLAGS=$save_LDFLAGS
  16446. ;;
  16447. esac
  16448. fi
  16449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  16450. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  16451. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  16452. :
  16453. else
  16454. lt_prog_compiler_static_CXX=
  16455. fi
  16456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  16457. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  16458. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  16459. then :
  16460. printf %s "(cached) " >&6
  16461. else case e in #(
  16462. e) lt_cv_prog_compiler_c_o_CXX=no
  16463. $RM -r conftest 2>/dev/null
  16464. mkdir conftest
  16465. cd conftest
  16466. mkdir out
  16467. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16468. lt_compiler_flag="-o out/conftest2.$ac_objext"
  16469. # Insert the option either (1) after the last *FLAGS variable, or
  16470. # (2) before a word containing "conftest.", or (3) at the end.
  16471. # Note that $ac_compile itself does not contain backslashes and begins
  16472. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16473. lt_compile=`echo "$ac_compile" | $SED \
  16474. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16475. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16476. -e 's:$: $lt_compiler_flag:'`
  16477. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  16478. (eval "$lt_compile" 2>out/conftest.err)
  16479. ac_status=$?
  16480. cat out/conftest.err >&5
  16481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16482. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  16483. then
  16484. # The compiler can only warn and ignore the option if not recognized
  16485. # So say no if there are warnings
  16486. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  16487. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  16488. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  16489. lt_cv_prog_compiler_c_o_CXX=yes
  16490. fi
  16491. fi
  16492. chmod u+w . 2>&5
  16493. $RM conftest*
  16494. # SGI C++ compiler will create directory out/ii_files/ for
  16495. # template instantiation
  16496. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  16497. $RM out/* && rmdir out
  16498. cd ..
  16499. $RM -r conftest
  16500. $RM conftest*
  16501. ;;
  16502. esac
  16503. fi
  16504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  16505. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  16506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  16507. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  16508. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  16509. then :
  16510. printf %s "(cached) " >&6
  16511. else case e in #(
  16512. e) lt_cv_prog_compiler_c_o_CXX=no
  16513. $RM -r conftest 2>/dev/null
  16514. mkdir conftest
  16515. cd conftest
  16516. mkdir out
  16517. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16518. lt_compiler_flag="-o out/conftest2.$ac_objext"
  16519. # Insert the option either (1) after the last *FLAGS variable, or
  16520. # (2) before a word containing "conftest.", or (3) at the end.
  16521. # Note that $ac_compile itself does not contain backslashes and begins
  16522. # with a dollar sign (not a hyphen), so the echo should work correctly.
  16523. lt_compile=`echo "$ac_compile" | $SED \
  16524. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16525. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16526. -e 's:$: $lt_compiler_flag:'`
  16527. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  16528. (eval "$lt_compile" 2>out/conftest.err)
  16529. ac_status=$?
  16530. cat out/conftest.err >&5
  16531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16532. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  16533. then
  16534. # The compiler can only warn and ignore the option if not recognized
  16535. # So say no if there are warnings
  16536. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  16537. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  16538. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  16539. lt_cv_prog_compiler_c_o_CXX=yes
  16540. fi
  16541. fi
  16542. chmod u+w . 2>&5
  16543. $RM conftest*
  16544. # SGI C++ compiler will create directory out/ii_files/ for
  16545. # template instantiation
  16546. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  16547. $RM out/* && rmdir out
  16548. cd ..
  16549. $RM -r conftest
  16550. $RM conftest*
  16551. ;;
  16552. esac
  16553. fi
  16554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  16555. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  16556. hard_links=nottested
  16557. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  16558. # do not overwrite the value of need_locks provided by the user
  16559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  16560. printf %s "checking if we can lock with hard links... " >&6; }
  16561. hard_links=yes
  16562. $RM conftest*
  16563. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16564. touch conftest.a
  16565. ln conftest.a conftest.b 2>&5 || hard_links=no
  16566. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  16568. printf "%s\n" "$hard_links" >&6; }
  16569. if test no = "$hard_links"; then
  16570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  16571. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  16572. need_locks=warn
  16573. fi
  16574. else
  16575. need_locks=no
  16576. fi
  16577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  16578. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  16579. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  16580. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  16581. case $host_os in
  16582. aix[4-9]*)
  16583. # If we're using GNU nm, then we don't want the "-C" option.
  16584. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  16585. # Without the "-l" option, or with the "-B" option, AIX nm treats
  16586. # weak defined symbols like other global defined symbols, whereas
  16587. # GNU nm marks them as "W".
  16588. # While the 'weak' keyword is ignored in the Export File, we need
  16589. # it in the Import File for the 'aix-soname' feature, so we have
  16590. # to replace the "-B" option with "-P" for AIX nm.
  16591. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  16592. 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'
  16593. else
  16594. 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 == "L") || (\$ 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'
  16595. fi
  16596. ;;
  16597. pw32*)
  16598. export_symbols_cmds_CXX=$ltdll_cmds
  16599. ;;
  16600. cygwin* | mingw* | windows* | cegcc*)
  16601. case $cc_basename in
  16602. cl* | icl*)
  16603. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  16604. ;;
  16605. *)
  16606. 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'
  16607. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  16608. ;;
  16609. esac
  16610. ;;
  16611. linux* | k*bsd*-gnu | gnu*)
  16612. link_all_deplibs_CXX=no
  16613. ;;
  16614. *)
  16615. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  16616. ;;
  16617. esac
  16618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  16619. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  16620. test no = "$ld_shlibs_CXX" && can_build_shared=no
  16621. with_gnu_ld_CXX=$with_gnu_ld
  16622. #
  16623. # Do we need to explicitly link libc?
  16624. #
  16625. case "x$archive_cmds_need_lc_CXX" in
  16626. x|xyes)
  16627. # Assume -lc should be added
  16628. archive_cmds_need_lc_CXX=yes
  16629. if test yes,yes = "$GCC,$enable_shared"; then
  16630. case $archive_cmds_CXX in
  16631. *'~'*)
  16632. # FIXME: we may have to deal with multi-command sequences.
  16633. ;;
  16634. '$CC '*)
  16635. # Test whether the compiler implicitly links with -lc since on some
  16636. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16637. # to ld, don't add -lc before -lgcc.
  16638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  16639. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  16640. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  16641. then :
  16642. printf %s "(cached) " >&6
  16643. else case e in #(
  16644. e) $RM conftest*
  16645. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16646. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16647. (eval $ac_compile) 2>&5
  16648. ac_status=$?
  16649. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16650. test $ac_status = 0; } 2>conftest.err; then
  16651. soname=conftest
  16652. lib=conftest
  16653. libobjs=conftest.$ac_objext
  16654. deplibs=
  16655. wl=$lt_prog_compiler_wl_CXX
  16656. pic_flag=$lt_prog_compiler_pic_CXX
  16657. compiler_flags=-v
  16658. linker_flags=-v
  16659. verstring=
  16660. output_objdir=.
  16661. libname=conftest
  16662. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  16663. allow_undefined_flag_CXX=
  16664. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  16665. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16666. ac_status=$?
  16667. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16668. test $ac_status = 0; }
  16669. then
  16670. lt_cv_archive_cmds_need_lc_CXX=no
  16671. else
  16672. lt_cv_archive_cmds_need_lc_CXX=yes
  16673. fi
  16674. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  16675. else
  16676. cat conftest.err 1>&5
  16677. fi
  16678. $RM conftest*
  16679. ;;
  16680. esac
  16681. fi
  16682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  16683. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  16684. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  16685. ;;
  16686. esac
  16687. fi
  16688. ;;
  16689. esac
  16690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  16691. printf %s "checking dynamic linker characteristics... " >&6; }
  16692. library_names_spec=
  16693. libname_spec='lib$name'
  16694. soname_spec=
  16695. shrext_cmds=.so
  16696. postinstall_cmds=
  16697. postuninstall_cmds=
  16698. finish_cmds=
  16699. finish_eval=
  16700. shlibpath_var=
  16701. shlibpath_overrides_runpath=unknown
  16702. version_type=none
  16703. dynamic_linker="$host_os ld.so"
  16704. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16705. need_lib_prefix=unknown
  16706. hardcode_into_libs=no
  16707. # when you set need_version to no, make sure it does not cause -set_version
  16708. # flags to be left without arguments
  16709. need_version=unknown
  16710. case $host_os in
  16711. aix3*)
  16712. version_type=linux # correct to gnu/linux during the next big refactor
  16713. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  16714. shlibpath_var=LIBPATH
  16715. # AIX 3 has no versioning support, so we append a major version to the name.
  16716. soname_spec='$libname$release$shared_ext$major'
  16717. ;;
  16718. aix[4-9]*)
  16719. version_type=linux # correct to gnu/linux during the next big refactor
  16720. need_lib_prefix=no
  16721. need_version=no
  16722. hardcode_into_libs=yes
  16723. if test ia64 = "$host_cpu"; then
  16724. # AIX 5 supports IA64
  16725. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  16726. shlibpath_var=LD_LIBRARY_PATH
  16727. else
  16728. # With GCC up to 2.95.x, collect2 would create an import file
  16729. # for dependence libraries. The import file would start with
  16730. # the line '#! .'. This would cause the generated library to
  16731. # depend on '.', always an invalid library. This was fixed in
  16732. # development snapshots of GCC prior to 3.0.
  16733. case $host_os in
  16734. aix4 | aix4.[01] | aix4.[01].*)
  16735. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16736. echo ' yes '
  16737. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  16738. :
  16739. else
  16740. can_build_shared=no
  16741. fi
  16742. ;;
  16743. esac
  16744. # Using Import Files as archive members, it is possible to support
  16745. # filename-based versioning of shared library archives on AIX. While
  16746. # this would work for both with and without runtime linking, it will
  16747. # prevent static linking of such archives. So we do filename-based
  16748. # shared library versioning with .so extension only, which is used
  16749. # when both runtime linking and shared linking is enabled.
  16750. # Unfortunately, runtime linking may impact performance, so we do
  16751. # not want this to be the default eventually. Also, we use the
  16752. # versioned .so libs for executables only if there is the -brtl
  16753. # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
  16754. # To allow for filename-based versioning support, we need to create
  16755. # libNAME.so.V as an archive file, containing:
  16756. # *) an Import File, referring to the versioned filename of the
  16757. # archive as well as the shared archive member, telling the
  16758. # bitwidth (32 or 64) of that shared object, and providing the
  16759. # list of exported symbols of that shared object, eventually
  16760. # decorated with the 'weak' keyword
  16761. # *) the shared object with the F_LOADONLY flag set, to really avoid
  16762. # it being seen by the linker.
  16763. # At run time we better use the real file rather than another symlink,
  16764. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  16765. case $with_aix_soname,$aix_use_runtimelinking in
  16766. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  16767. # soname into executable. Probably we can add versioning support to
  16768. # collect2, so additional links can be useful in future.
  16769. aix,yes) # traditional libtool
  16770. dynamic_linker='AIX unversionable lib.so'
  16771. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16772. # instead of lib<name>.a to let people know that these are not
  16773. # typical AIX shared libraries.
  16774. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16775. ;;
  16776. aix,no) # traditional AIX only
  16777. dynamic_linker='AIX lib.a(lib.so.V)'
  16778. # We preserve .a as extension for shared libraries through AIX4.2
  16779. # and later when we are not doing run time linking.
  16780. library_names_spec='$libname$release.a $libname.a'
  16781. soname_spec='$libname$release$shared_ext$major'
  16782. ;;
  16783. svr4,*) # full svr4 only
  16784. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  16785. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  16786. # We do not specify a path in Import Files, so LIBPATH fires.
  16787. shlibpath_overrides_runpath=yes
  16788. ;;
  16789. *,yes) # both, prefer svr4
  16790. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  16791. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  16792. # unpreferred sharedlib libNAME.a needs extra handling
  16793. 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"'
  16794. 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"'
  16795. # We do not specify a path in Import Files, so LIBPATH fires.
  16796. shlibpath_overrides_runpath=yes
  16797. ;;
  16798. *,no) # both, prefer aix
  16799. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  16800. library_names_spec='$libname$release.a $libname.a'
  16801. soname_spec='$libname$release$shared_ext$major'
  16802. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  16803. 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)'
  16804. 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"'
  16805. ;;
  16806. esac
  16807. shlibpath_var=LIBPATH
  16808. fi
  16809. ;;
  16810. amigaos*)
  16811. case $host_cpu in
  16812. powerpc)
  16813. # Since July 2007 AmigaOS4 officially supports .so libraries.
  16814. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  16815. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16816. ;;
  16817. m68k)
  16818. library_names_spec='$libname.ixlibrary $libname.a'
  16819. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16820. 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'
  16821. ;;
  16822. esac
  16823. ;;
  16824. beos*)
  16825. library_names_spec='$libname$shared_ext'
  16826. dynamic_linker="$host_os ld.so"
  16827. shlibpath_var=LIBRARY_PATH
  16828. ;;
  16829. bsdi[45]*)
  16830. version_type=linux # correct to gnu/linux during the next big refactor
  16831. need_version=no
  16832. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16833. soname_spec='$libname$release$shared_ext$major'
  16834. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16835. shlibpath_var=LD_LIBRARY_PATH
  16836. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16837. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16838. # the default ld.so.conf also contains /usr/contrib/lib and
  16839. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16840. # libtool to hard-code these into programs
  16841. ;;
  16842. cygwin* | mingw* | windows* | pw32* | cegcc*)
  16843. version_type=windows
  16844. shrext_cmds=.dll
  16845. need_version=no
  16846. need_lib_prefix=no
  16847. case $GCC,$cc_basename in
  16848. yes,*)
  16849. # gcc
  16850. library_names_spec='$libname.dll.a'
  16851. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16852. # If user builds GCC with multilib enabled,
  16853. # it should just install on $(libdir)
  16854. # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
  16855. if test xyes = x"$multilib"; then
  16856. postinstall_cmds='base_file=`basename \$file`~
  16857. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  16858. dldir=$destdir/`dirname \$dlpath`~
  16859. $install_prog $dir/$dlname $destdir/$dlname~
  16860. chmod a+x $destdir/$dlname~
  16861. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  16862. eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
  16863. fi'
  16864. else
  16865. postinstall_cmds='base_file=`basename \$file`~
  16866. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  16867. dldir=$destdir/`dirname \$dlpath`~
  16868. test -d \$dldir || mkdir -p \$dldir~
  16869. $install_prog $dir/$dlname \$dldir/$dlname~
  16870. chmod a+x \$dldir/$dlname~
  16871. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  16872. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  16873. fi'
  16874. fi
  16875. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16876. dlpath=$dir/\$dldll~
  16877. $RM \$dlpath'
  16878. shlibpath_overrides_runpath=yes
  16879. case $host_os in
  16880. cygwin*)
  16881. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16882. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16883. ;;
  16884. mingw* | windows* | cegcc*)
  16885. # MinGW DLLs use traditional 'lib' prefix
  16886. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16887. ;;
  16888. pw32*)
  16889. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16890. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16891. ;;
  16892. esac
  16893. dynamic_linker='Win32 ld.exe'
  16894. ;;
  16895. *,cl* | *,icl*)
  16896. # Native MSVC or ICC
  16897. libname_spec='$name'
  16898. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  16899. library_names_spec='$libname.dll.lib'
  16900. case $build_os in
  16901. mingw* | windows*)
  16902. sys_lib_search_path_spec=
  16903. lt_save_ifs=$IFS
  16904. IFS=';'
  16905. for lt_path in $LIB
  16906. do
  16907. IFS=$lt_save_ifs
  16908. # Let DOS variable expansion print the short 8.3 style file name.
  16909. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  16910. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  16911. done
  16912. IFS=$lt_save_ifs
  16913. # Convert to MSYS style.
  16914. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  16915. ;;
  16916. cygwin*)
  16917. # Convert to unix form, then to dos form, then back to unix form
  16918. # but this time dos style (no spaces!) so that the unix form looks
  16919. # like /cygdrive/c/PROGRA~1:/cygdr...
  16920. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  16921. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  16922. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16923. ;;
  16924. *)
  16925. sys_lib_search_path_spec=$LIB
  16926. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  16927. # It is most probably a Windows format PATH.
  16928. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16929. else
  16930. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16931. fi
  16932. # FIXME: find the short name or the path components, as spaces are
  16933. # common. (e.g. "Program Files" -> "PROGRA~1")
  16934. ;;
  16935. esac
  16936. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16937. postinstall_cmds='base_file=`basename \$file`~
  16938. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  16939. dldir=$destdir/`dirname \$dlpath`~
  16940. test -d \$dldir || mkdir -p \$dldir~
  16941. $install_prog $dir/$dlname \$dldir/$dlname'
  16942. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16943. dlpath=$dir/\$dldll~
  16944. $RM \$dlpath'
  16945. shlibpath_overrides_runpath=yes
  16946. dynamic_linker='Win32 link.exe'
  16947. ;;
  16948. *)
  16949. # Assume MSVC and ICC wrapper
  16950. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  16951. dynamic_linker='Win32 ld.exe'
  16952. ;;
  16953. esac
  16954. # FIXME: first we should search . and the directory the executable is in
  16955. shlibpath_var=PATH
  16956. ;;
  16957. darwin* | rhapsody*)
  16958. dynamic_linker="$host_os dyld"
  16959. version_type=darwin
  16960. need_lib_prefix=no
  16961. need_version=no
  16962. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  16963. soname_spec='$libname$release$major$shared_ext'
  16964. shlibpath_overrides_runpath=yes
  16965. shlibpath_var=DYLD_LIBRARY_PATH
  16966. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16967. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16968. ;;
  16969. dgux*)
  16970. version_type=linux # correct to gnu/linux during the next big refactor
  16971. need_lib_prefix=no
  16972. need_version=no
  16973. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16974. soname_spec='$libname$release$shared_ext$major'
  16975. shlibpath_var=LD_LIBRARY_PATH
  16976. ;;
  16977. freebsd* | dragonfly* | midnightbsd*)
  16978. # DragonFly does not have aout. When/if they implement a new
  16979. # versioning mechanism, adjust this.
  16980. if test -x /usr/bin/objformat; then
  16981. objformat=`/usr/bin/objformat`
  16982. else
  16983. case $host_os in
  16984. freebsd[23].*) objformat=aout ;;
  16985. *) objformat=elf ;;
  16986. esac
  16987. fi
  16988. version_type=freebsd-$objformat
  16989. case $version_type in
  16990. freebsd-elf*)
  16991. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16992. soname_spec='$libname$release$shared_ext$major'
  16993. need_version=no
  16994. need_lib_prefix=no
  16995. ;;
  16996. freebsd-*)
  16997. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16998. need_version=yes
  16999. ;;
  17000. esac
  17001. case $host_cpu in
  17002. powerpc64)
  17003. # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
  17004. # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
  17005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17006. /* end confdefs.h. */
  17007. int test_pointer_size[sizeof (void *) - 5];
  17008. _ACEOF
  17009. if ac_fn_cxx_try_compile "$LINENO"
  17010. then :
  17011. shlibpath_var=LD_LIBRARY_PATH
  17012. else case e in #(
  17013. e) shlibpath_var=LD_32_LIBRARY_PATH ;;
  17014. esac
  17015. fi
  17016. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17017. ;;
  17018. *)
  17019. shlibpath_var=LD_LIBRARY_PATH
  17020. ;;
  17021. esac
  17022. case $host_os in
  17023. freebsd2.*)
  17024. shlibpath_overrides_runpath=yes
  17025. ;;
  17026. freebsd3.[01]* | freebsdelf3.[01]*)
  17027. shlibpath_overrides_runpath=yes
  17028. hardcode_into_libs=yes
  17029. ;;
  17030. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  17031. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  17032. shlibpath_overrides_runpath=no
  17033. hardcode_into_libs=yes
  17034. ;;
  17035. *) # from 4.6 on, and DragonFly
  17036. shlibpath_overrides_runpath=yes
  17037. hardcode_into_libs=yes
  17038. ;;
  17039. esac
  17040. ;;
  17041. haiku*)
  17042. version_type=linux # correct to gnu/linux during the next big refactor
  17043. need_lib_prefix=no
  17044. need_version=no
  17045. dynamic_linker="$host_os runtime_loader"
  17046. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17047. soname_spec='$libname$release$shared_ext$major'
  17048. shlibpath_var=LIBRARY_PATH
  17049. shlibpath_overrides_runpath=no
  17050. sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
  17051. sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
  17052. hardcode_into_libs=no
  17053. ;;
  17054. hpux9* | hpux10* | hpux11*)
  17055. # Give a soname corresponding to the major version so that dld.sl refuses to
  17056. # link against other versions.
  17057. version_type=sunos
  17058. need_lib_prefix=no
  17059. need_version=no
  17060. case $host_cpu in
  17061. ia64*)
  17062. shrext_cmds='.so'
  17063. hardcode_into_libs=yes
  17064. dynamic_linker="$host_os dld.so"
  17065. shlibpath_var=LD_LIBRARY_PATH
  17066. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17067. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17068. soname_spec='$libname$release$shared_ext$major'
  17069. if test 32 = "$HPUX_IA64_MODE"; then
  17070. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  17071. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  17072. else
  17073. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  17074. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  17075. fi
  17076. ;;
  17077. hppa*64*)
  17078. shrext_cmds='.sl'
  17079. hardcode_into_libs=yes
  17080. dynamic_linker="$host_os dld.sl"
  17081. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  17082. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17083. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17084. soname_spec='$libname$release$shared_ext$major'
  17085. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  17086. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17087. ;;
  17088. *)
  17089. shrext_cmds='.sl'
  17090. dynamic_linker="$host_os dld.sl"
  17091. shlibpath_var=SHLIB_PATH
  17092. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  17093. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17094. soname_spec='$libname$release$shared_ext$major'
  17095. ;;
  17096. esac
  17097. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  17098. postinstall_cmds='chmod 555 $lib'
  17099. # or fails outright, so override atomically:
  17100. install_override_mode=555
  17101. ;;
  17102. interix[3-9]*)
  17103. version_type=linux # correct to gnu/linux during the next big refactor
  17104. need_lib_prefix=no
  17105. need_version=no
  17106. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17107. soname_spec='$libname$release$shared_ext$major'
  17108. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  17109. shlibpath_var=LD_LIBRARY_PATH
  17110. shlibpath_overrides_runpath=no
  17111. hardcode_into_libs=yes
  17112. ;;
  17113. irix5* | irix6* | nonstopux*)
  17114. case $host_os in
  17115. nonstopux*) version_type=nonstopux ;;
  17116. *)
  17117. if test yes = "$lt_cv_prog_gnu_ld"; then
  17118. version_type=linux # correct to gnu/linux during the next big refactor
  17119. else
  17120. version_type=irix
  17121. fi ;;
  17122. esac
  17123. need_lib_prefix=no
  17124. need_version=no
  17125. soname_spec='$libname$release$shared_ext$major'
  17126. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  17127. case $host_os in
  17128. irix5* | nonstopux*)
  17129. libsuff= shlibsuff=
  17130. ;;
  17131. *)
  17132. case $LD in # libtool.m4 will add one of these switches to LD
  17133. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  17134. libsuff= shlibsuff= libmagic=32-bit;;
  17135. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  17136. libsuff=32 shlibsuff=N32 libmagic=N32;;
  17137. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  17138. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  17139. *) libsuff= shlibsuff= libmagic=never-match;;
  17140. esac
  17141. ;;
  17142. esac
  17143. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  17144. shlibpath_overrides_runpath=no
  17145. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  17146. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  17147. hardcode_into_libs=yes
  17148. ;;
  17149. # No shared lib support for Linux oldld, aout, or coff.
  17150. linux*oldld* | linux*aout* | linux*coff*)
  17151. dynamic_linker=no
  17152. ;;
  17153. linux*android*)
  17154. version_type=none # Android doesn't support versioned libraries.
  17155. need_lib_prefix=no
  17156. need_version=no
  17157. library_names_spec='$libname$release$shared_ext $libname$shared_ext'
  17158. soname_spec='$libname$release$shared_ext'
  17159. finish_cmds=
  17160. shlibpath_var=LD_LIBRARY_PATH
  17161. shlibpath_overrides_runpath=yes
  17162. # This implies no fast_install, which is unacceptable.
  17163. # Some rework will be needed to allow for fast_install
  17164. # before this can be enabled.
  17165. hardcode_into_libs=yes
  17166. dynamic_linker='Android linker'
  17167. # -rpath works at least for libraries that are not overridden by
  17168. # libraries installed in system locations.
  17169. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  17170. ;;
  17171. # This must be glibc/ELF.
  17172. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  17173. version_type=linux # correct to gnu/linux during the next big refactor
  17174. need_lib_prefix=no
  17175. need_version=no
  17176. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17177. soname_spec='$libname$release$shared_ext$major'
  17178. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  17179. shlibpath_var=LD_LIBRARY_PATH
  17180. shlibpath_overrides_runpath=no
  17181. # Some binutils ld are patched to set DT_RUNPATH
  17182. if test ${lt_cv_shlibpath_overrides_runpath+y}
  17183. then :
  17184. printf %s "(cached) " >&6
  17185. else case e in #(
  17186. e) lt_cv_shlibpath_overrides_runpath=no
  17187. save_LDFLAGS=$LDFLAGS
  17188. save_libdir=$libdir
  17189. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  17190. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  17191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17192. /* end confdefs.h. */
  17193. int
  17194. main (void)
  17195. {
  17196. ;
  17197. return 0;
  17198. }
  17199. _ACEOF
  17200. if ac_fn_cxx_try_link "$LINENO"
  17201. then :
  17202. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  17203. then :
  17204. lt_cv_shlibpath_overrides_runpath=yes
  17205. fi
  17206. fi
  17207. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17208. conftest$ac_exeext conftest.$ac_ext
  17209. LDFLAGS=$save_LDFLAGS
  17210. libdir=$save_libdir
  17211. ;;
  17212. esac
  17213. fi
  17214. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  17215. # This implies no fast_install, which is unacceptable.
  17216. # Some rework will be needed to allow for fast_install
  17217. # before this can be enabled.
  17218. hardcode_into_libs=yes
  17219. # Ideally, we could use ldconfig to report *all* directories which are
  17220. # searched for libraries, however this is still not possible. Aside from not
  17221. # being certain /sbin/ldconfig is available, command
  17222. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  17223. # even though it is searched at run-time. Try to do the best guess by
  17224. # appending ld.so.conf contents (and includes) to the search path.
  17225. if test -f /etc/ld.so.conf; then
  17226. 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' ' '`
  17227. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  17228. fi
  17229. # We used to test for /lib/ld.so.1 and disable shared libraries on
  17230. # powerpc, because MkLinux only supported shared libraries with the
  17231. # GNU dynamic linker. Since this was broken with cross compilers,
  17232. # most powerpc-linux boxes support dynamic linking these days and
  17233. # people can always --disable-shared, the test was removed, and we
  17234. # assume the GNU/Linux dynamic linker is in use.
  17235. dynamic_linker='GNU/Linux ld.so'
  17236. ;;
  17237. netbsdelf*-gnu)
  17238. version_type=linux
  17239. need_lib_prefix=no
  17240. need_version=no
  17241. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17242. soname_spec='$libname$release$shared_ext$major'
  17243. shlibpath_var=LD_LIBRARY_PATH
  17244. shlibpath_overrides_runpath=no
  17245. hardcode_into_libs=yes
  17246. dynamic_linker='NetBSD ld.elf_so'
  17247. ;;
  17248. netbsdelf*-gnu)
  17249. version_type=linux
  17250. need_lib_prefix=no
  17251. need_version=no
  17252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17253. soname_spec='${libname}${release}${shared_ext}$major'
  17254. shlibpath_var=LD_LIBRARY_PATH
  17255. shlibpath_overrides_runpath=no
  17256. hardcode_into_libs=yes
  17257. dynamic_linker='NetBSD ld.elf_so'
  17258. ;;
  17259. netbsd*)
  17260. version_type=sunos
  17261. need_lib_prefix=no
  17262. need_version=no
  17263. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  17264. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  17265. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17266. dynamic_linker='NetBSD (a.out) ld.so'
  17267. else
  17268. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17269. soname_spec='$libname$release$shared_ext$major'
  17270. dynamic_linker='NetBSD ld.elf_so'
  17271. fi
  17272. shlibpath_var=LD_LIBRARY_PATH
  17273. shlibpath_overrides_runpath=yes
  17274. hardcode_into_libs=yes
  17275. ;;
  17276. *-mlibc)
  17277. version_type=linux # correct to gnu/linux during the next big refactor
  17278. need_lib_prefix=no
  17279. need_version=no
  17280. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17281. soname_spec='$libname$release$shared_ext$major'
  17282. dynamic_linker='mlibc ld.so'
  17283. shlibpath_var=LD_LIBRARY_PATH
  17284. shlibpath_overrides_runpath=no
  17285. hardcode_into_libs=yes
  17286. ;;
  17287. newsos6)
  17288. version_type=linux # correct to gnu/linux during the next big refactor
  17289. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17290. shlibpath_var=LD_LIBRARY_PATH
  17291. shlibpath_overrides_runpath=yes
  17292. ;;
  17293. *nto* | *qnx*)
  17294. version_type=qnx
  17295. need_lib_prefix=no
  17296. need_version=no
  17297. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17298. soname_spec='$libname$release$shared_ext$major'
  17299. shlibpath_var=LD_LIBRARY_PATH
  17300. shlibpath_overrides_runpath=no
  17301. hardcode_into_libs=yes
  17302. dynamic_linker='ldqnx.so'
  17303. ;;
  17304. openbsd*)
  17305. version_type=sunos
  17306. sys_lib_dlsearch_path_spec=/usr/lib
  17307. need_lib_prefix=no
  17308. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  17309. need_version=no
  17310. else
  17311. need_version=yes
  17312. fi
  17313. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  17314. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17315. shlibpath_var=LD_LIBRARY_PATH
  17316. shlibpath_overrides_runpath=yes
  17317. ;;
  17318. os2*)
  17319. libname_spec='$name'
  17320. version_type=windows
  17321. shrext_cmds=.dll
  17322. need_version=no
  17323. need_lib_prefix=no
  17324. # OS/2 can only load a DLL with a base name of 8 characters or less.
  17325. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  17326. v=$($ECHO $release$versuffix | tr -d .-);
  17327. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  17328. $ECHO $n$v`$shared_ext'
  17329. library_names_spec='${libname}_dll.$libext'
  17330. dynamic_linker='OS/2 ld.exe'
  17331. shlibpath_var=BEGINLIBPATH
  17332. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  17333. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17334. postinstall_cmds='base_file=`basename \$file`~
  17335. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  17336. dldir=$destdir/`dirname \$dlpath`~
  17337. test -d \$dldir || mkdir -p \$dldir~
  17338. $install_prog $dir/$dlname \$dldir/$dlname~
  17339. chmod a+x \$dldir/$dlname~
  17340. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  17341. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  17342. fi'
  17343. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  17344. dlpath=$dir/\$dldll~
  17345. $RM \$dlpath'
  17346. ;;
  17347. osf3* | osf4* | osf5*)
  17348. version_type=osf
  17349. need_lib_prefix=no
  17350. need_version=no
  17351. soname_spec='$libname$release$shared_ext$major'
  17352. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17353. shlibpath_var=LD_LIBRARY_PATH
  17354. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  17355. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17356. ;;
  17357. rdos*)
  17358. dynamic_linker=no
  17359. ;;
  17360. serenity*)
  17361. version_type=linux # correct to gnu/linux during the next big refactor
  17362. need_lib_prefix=no
  17363. need_version=no
  17364. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17365. soname_spec='$libname$release$shared_ext$major'
  17366. shlibpath_var=LD_LIBRARY_PATH
  17367. shlibpath_overrides_runpath=no
  17368. dynamic_linker='SerenityOS LibELF'
  17369. ;;
  17370. solaris*)
  17371. version_type=linux # correct to gnu/linux during the next big refactor
  17372. need_lib_prefix=no
  17373. need_version=no
  17374. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17375. soname_spec='$libname$release$shared_ext$major'
  17376. shlibpath_var=LD_LIBRARY_PATH
  17377. shlibpath_overrides_runpath=yes
  17378. hardcode_into_libs=yes
  17379. # ldd complains unless libraries are executable
  17380. postinstall_cmds='chmod +x $lib'
  17381. ;;
  17382. sunos4*)
  17383. version_type=sunos
  17384. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  17385. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  17386. shlibpath_var=LD_LIBRARY_PATH
  17387. shlibpath_overrides_runpath=yes
  17388. if test yes = "$with_gnu_ld"; then
  17389. need_lib_prefix=no
  17390. fi
  17391. need_version=yes
  17392. ;;
  17393. sysv4 | sysv4.3*)
  17394. version_type=linux # correct to gnu/linux during the next big refactor
  17395. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17396. soname_spec='$libname$release$shared_ext$major'
  17397. shlibpath_var=LD_LIBRARY_PATH
  17398. case $host_vendor in
  17399. sni)
  17400. shlibpath_overrides_runpath=no
  17401. need_lib_prefix=no
  17402. runpath_var=LD_RUN_PATH
  17403. ;;
  17404. siemens)
  17405. need_lib_prefix=no
  17406. ;;
  17407. motorola)
  17408. need_lib_prefix=no
  17409. need_version=no
  17410. shlibpath_overrides_runpath=no
  17411. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  17412. ;;
  17413. esac
  17414. ;;
  17415. sysv4*MP*)
  17416. if test -d /usr/nec; then
  17417. version_type=linux # correct to gnu/linux during the next big refactor
  17418. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  17419. soname_spec='$libname$shared_ext.$major'
  17420. shlibpath_var=LD_LIBRARY_PATH
  17421. fi
  17422. ;;
  17423. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17424. version_type=sco
  17425. need_lib_prefix=no
  17426. need_version=no
  17427. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  17428. soname_spec='$libname$release$shared_ext$major'
  17429. shlibpath_var=LD_LIBRARY_PATH
  17430. shlibpath_overrides_runpath=yes
  17431. hardcode_into_libs=yes
  17432. if test yes = "$with_gnu_ld"; then
  17433. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  17434. else
  17435. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  17436. case $host_os in
  17437. sco3.2v5*)
  17438. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  17439. ;;
  17440. esac
  17441. fi
  17442. sys_lib_dlsearch_path_spec='/usr/lib'
  17443. ;;
  17444. tpf*)
  17445. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  17446. version_type=linux # correct to gnu/linux during the next big refactor
  17447. need_lib_prefix=no
  17448. need_version=no
  17449. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17450. shlibpath_var=LD_LIBRARY_PATH
  17451. shlibpath_overrides_runpath=no
  17452. hardcode_into_libs=yes
  17453. ;;
  17454. uts4*)
  17455. version_type=linux # correct to gnu/linux during the next big refactor
  17456. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17457. soname_spec='$libname$release$shared_ext$major'
  17458. shlibpath_var=LD_LIBRARY_PATH
  17459. ;;
  17460. emscripten*)
  17461. version_type=none
  17462. need_lib_prefix=no
  17463. need_version=no
  17464. library_names_spec='$libname$release$shared_ext'
  17465. soname_spec='$libname$release$shared_ext'
  17466. finish_cmds=
  17467. dynamic_linker="Emscripten linker"
  17468. lt_prog_compiler_wl_CXX=
  17469. lt_prog_compiler_pic_CXX=
  17470. lt_prog_compiler_static_CXX=
  17471. # C++ specific cases for pic, static, wl, etc.
  17472. if test yes = "$GXX"; then
  17473. lt_prog_compiler_wl_CXX='-Wl,'
  17474. lt_prog_compiler_static_CXX='-static'
  17475. case $host_os in
  17476. aix*)
  17477. # All AIX code is PIC.
  17478. if test ia64 = "$host_cpu"; then
  17479. # AIX 5 now supports IA64 processor
  17480. lt_prog_compiler_static_CXX='-Bstatic'
  17481. fi
  17482. lt_prog_compiler_pic_CXX='-fPIC'
  17483. ;;
  17484. amigaos*)
  17485. case $host_cpu in
  17486. powerpc)
  17487. # see comment about AmigaOS4 .so support
  17488. lt_prog_compiler_pic_CXX='-fPIC'
  17489. ;;
  17490. m68k)
  17491. # FIXME: we need at least 68020 code to build shared libraries, but
  17492. # adding the '-m68020' flag to GCC prevents building anything better,
  17493. # like '-m68040'.
  17494. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  17495. ;;
  17496. esac
  17497. ;;
  17498. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  17499. # PIC is the default for these OSes.
  17500. ;;
  17501. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  17502. # This hack is so that the source file can tell whether it is being
  17503. # built for inclusion in a dll (and should export symbols for example).
  17504. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  17505. # (--disable-auto-import) libraries
  17506. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  17507. case $host_os in
  17508. os2*)
  17509. lt_prog_compiler_static_CXX='$wl-static'
  17510. ;;
  17511. esac
  17512. ;;
  17513. darwin* | rhapsody*)
  17514. # PIC is the default on this platform
  17515. # Common symbols not allowed in MH_DYLIB files
  17516. lt_prog_compiler_pic_CXX='-fno-common'
  17517. ;;
  17518. *djgpp*)
  17519. # DJGPP does not support shared libraries at all
  17520. lt_prog_compiler_pic_CXX=
  17521. ;;
  17522. haiku*)
  17523. # PIC is the default for Haiku.
  17524. # The "-static" flag exists, but is broken.
  17525. lt_prog_compiler_static_CXX=
  17526. ;;
  17527. interix[3-9]*)
  17528. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  17529. # Instead, we relocate shared libraries at runtime.
  17530. ;;
  17531. sysv4*MP*)
  17532. if test -d /usr/nec; then
  17533. lt_prog_compiler_pic_CXX=-Kconform_pic
  17534. fi
  17535. ;;
  17536. hpux*)
  17537. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  17538. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  17539. # sets the default TLS model and affects inlining.
  17540. case $host_cpu in
  17541. hppa*64*)
  17542. ;;
  17543. *)
  17544. lt_prog_compiler_pic_CXX='-fPIC'
  17545. ;;
  17546. esac
  17547. ;;
  17548. *qnx* | *nto*)
  17549. # QNX uses GNU C++, but need to define -shared option too, otherwise
  17550. # it will coredump.
  17551. lt_prog_compiler_pic_CXX='-fPIC -shared'
  17552. ;;
  17553. *)
  17554. lt_prog_compiler_pic_CXX='-fPIC'
  17555. ;;
  17556. esac
  17557. else
  17558. case $host_os in
  17559. aix[4-9]*)
  17560. # All AIX code is PIC.
  17561. if test ia64 = "$host_cpu"; then
  17562. # AIX 5 now supports IA64 processor
  17563. lt_prog_compiler_static_CXX='-Bstatic'
  17564. else
  17565. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  17566. fi
  17567. ;;
  17568. chorus*)
  17569. case $cc_basename in
  17570. cxch68*)
  17571. # Green Hills C++ Compiler
  17572. # _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"
  17573. ;;
  17574. esac
  17575. ;;
  17576. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  17577. # This hack is so that the source file can tell whether it is being
  17578. # built for inclusion in a dll (and should export symbols for example).
  17579. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  17580. ;;
  17581. dgux*)
  17582. case $cc_basename in
  17583. ec++*)
  17584. lt_prog_compiler_pic_CXX='-KPIC'
  17585. ;;
  17586. ghcx*)
  17587. # Green Hills C++ Compiler
  17588. lt_prog_compiler_pic_CXX='-pic'
  17589. ;;
  17590. *)
  17591. ;;
  17592. esac
  17593. ;;
  17594. freebsd* | dragonfly* | midnightbsd*)
  17595. # FreeBSD uses GNU C++
  17596. ;;
  17597. hpux9* | hpux10* | hpux11*)
  17598. case $cc_basename in
  17599. CC*)
  17600. lt_prog_compiler_wl_CXX='-Wl,'
  17601. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  17602. if test ia64 != "$host_cpu"; then
  17603. lt_prog_compiler_pic_CXX='+Z'
  17604. fi
  17605. ;;
  17606. aCC*)
  17607. lt_prog_compiler_wl_CXX='-Wl,'
  17608. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  17609. case $host_cpu in
  17610. hppa*64*|ia64*)
  17611. # +Z the default
  17612. ;;
  17613. *)
  17614. lt_prog_compiler_pic_CXX='+Z'
  17615. ;;
  17616. esac
  17617. ;;
  17618. *)
  17619. ;;
  17620. esac
  17621. ;;
  17622. interix*)
  17623. # This is c89, which is MS Visual C++ (no shared libs)
  17624. # Anyone wants to do a port?
  17625. ;;
  17626. irix5* | irix6* | nonstopux*)
  17627. case $cc_basename in
  17628. CC*)
  17629. lt_prog_compiler_wl_CXX='-Wl,'
  17630. lt_prog_compiler_static_CXX='-non_shared'
  17631. # CC pic flag -KPIC is the default.
  17632. ;;
  17633. *)
  17634. ;;
  17635. esac
  17636. ;;
  17637. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  17638. case $cc_basename in
  17639. KCC*)
  17640. # KAI C++ Compiler
  17641. lt_prog_compiler_wl_CXX='--backend -Wl,'
  17642. lt_prog_compiler_pic_CXX='-fPIC'
  17643. ;;
  17644. ecpc* )
  17645. # old Intel C++ for x86_64, which still supported -KPIC.
  17646. lt_prog_compiler_wl_CXX='-Wl,'
  17647. lt_prog_compiler_pic_CXX='-KPIC'
  17648. lt_prog_compiler_static_CXX='-static'
  17649. ;;
  17650. icpc* )
  17651. # Intel C++, used to be incompatible with GCC.
  17652. # ICC 10 doesn't accept -KPIC any more.
  17653. lt_prog_compiler_wl_CXX='-Wl,'
  17654. lt_prog_compiler_pic_CXX='-fPIC'
  17655. lt_prog_compiler_static_CXX='-static'
  17656. ;;
  17657. pgCC* | pgcpp*)
  17658. # Portland Group C++ compiler
  17659. lt_prog_compiler_wl_CXX='-Wl,'
  17660. lt_prog_compiler_pic_CXX='-fpic'
  17661. lt_prog_compiler_static_CXX='-Bstatic'
  17662. ;;
  17663. cxx*)
  17664. # Compaq C++
  17665. # Make sure the PIC flag is empty. It appears that all Alpha
  17666. # Linux and Compaq Tru64 Unix objects are PIC.
  17667. lt_prog_compiler_pic_CXX=
  17668. lt_prog_compiler_static_CXX='-non_shared'
  17669. ;;
  17670. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  17671. # IBM XL 8.0, 9.0 on PPC and BlueGene
  17672. lt_prog_compiler_wl_CXX='-Wl,'
  17673. lt_prog_compiler_pic_CXX='-qpic'
  17674. lt_prog_compiler_static_CXX='-qstaticlink'
  17675. ;;
  17676. *)
  17677. case `$CC -V 2>&1 | $SED 5q` in
  17678. *Sun\ C*)
  17679. # Sun C++ 5.9
  17680. lt_prog_compiler_pic_CXX='-KPIC'
  17681. lt_prog_compiler_static_CXX='-Bstatic'
  17682. lt_prog_compiler_wl_CXX='-Qoption ld '
  17683. ;;
  17684. esac
  17685. ;;
  17686. esac
  17687. ;;
  17688. lynxos*)
  17689. ;;
  17690. m88k*)
  17691. ;;
  17692. mvs*)
  17693. case $cc_basename in
  17694. cxx*)
  17695. lt_prog_compiler_pic_CXX='-W c,exportall'
  17696. ;;
  17697. *)
  17698. ;;
  17699. esac
  17700. ;;
  17701. netbsd* | netbsdelf*-gnu)
  17702. ;;
  17703. *-mlibc)
  17704. ;;
  17705. *qnx* | *nto*)
  17706. # QNX uses GNU C++, but need to define -shared option too, otherwise
  17707. # it will coredump.
  17708. lt_prog_compiler_pic_CXX='-fPIC -shared'
  17709. ;;
  17710. osf3* | osf4* | osf5*)
  17711. case $cc_basename in
  17712. KCC*)
  17713. lt_prog_compiler_wl_CXX='--backend -Wl,'
  17714. ;;
  17715. RCC*)
  17716. # Rational C++ 2.4.1
  17717. lt_prog_compiler_pic_CXX='-pic'
  17718. ;;
  17719. cxx*)
  17720. # Digital/Compaq C++
  17721. lt_prog_compiler_wl_CXX='-Wl,'
  17722. # Make sure the PIC flag is empty. It appears that all Alpha
  17723. # Linux and Compaq Tru64 Unix objects are PIC.
  17724. lt_prog_compiler_pic_CXX=
  17725. lt_prog_compiler_static_CXX='-non_shared'
  17726. ;;
  17727. *)
  17728. ;;
  17729. esac
  17730. ;;
  17731. psos*)
  17732. ;;
  17733. serenity*)
  17734. ;;
  17735. solaris*)
  17736. case $cc_basename in
  17737. CC* | sunCC*)
  17738. # Sun C++ 4.2, 5.x and Centerline C++
  17739. lt_prog_compiler_pic_CXX='-KPIC'
  17740. lt_prog_compiler_static_CXX='-Bstatic'
  17741. lt_prog_compiler_wl_CXX='-Qoption ld '
  17742. ;;
  17743. gcx*)
  17744. # Green Hills C++ Compiler
  17745. lt_prog_compiler_pic_CXX='-PIC'
  17746. ;;
  17747. *)
  17748. ;;
  17749. esac
  17750. ;;
  17751. sunos4*)
  17752. case $cc_basename in
  17753. CC*)
  17754. # Sun C++ 4.x
  17755. lt_prog_compiler_pic_CXX='-pic'
  17756. lt_prog_compiler_static_CXX='-Bstatic'
  17757. ;;
  17758. lcc*)
  17759. # Lucid
  17760. lt_prog_compiler_pic_CXX='-pic'
  17761. ;;
  17762. *)
  17763. ;;
  17764. esac
  17765. ;;
  17766. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  17767. case $cc_basename in
  17768. CC*)
  17769. lt_prog_compiler_wl_CXX='-Wl,'
  17770. lt_prog_compiler_pic_CXX='-KPIC'
  17771. lt_prog_compiler_static_CXX='-Bstatic'
  17772. ;;
  17773. esac
  17774. ;;
  17775. tandem*)
  17776. case $cc_basename in
  17777. NCC*)
  17778. # NonStop-UX NCC 3.20
  17779. lt_prog_compiler_pic_CXX='-KPIC'
  17780. ;;
  17781. *)
  17782. ;;
  17783. esac
  17784. ;;
  17785. vxworks*)
  17786. ;;
  17787. *)
  17788. lt_prog_compiler_can_build_shared_CXX=no
  17789. ;;
  17790. esac
  17791. fi
  17792. case $host_os in
  17793. # For platforms that do not support PIC, -DPIC is meaningless:
  17794. *djgpp*)
  17795. lt_prog_compiler_pic_CXX=
  17796. ;;
  17797. *)
  17798. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  17799. ;;
  17800. esac
  17801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  17802. printf %s "checking for $compiler option to produce PIC... " >&6; }
  17803. if test ${lt_cv_prog_compiler_pic_CXX+y}
  17804. then :
  17805. printf %s "(cached) " >&6
  17806. else case e in #(
  17807. e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
  17808. esac
  17809. fi
  17810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  17811. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  17812. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  17813. #
  17814. # Check to make sure the PIC flag actually works.
  17815. #
  17816. if test -n "$lt_prog_compiler_pic_CXX"; then
  17817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  17818. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  17819. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  17820. then :
  17821. printf %s "(cached) " >&6
  17822. else case e in #(
  17823. e) lt_cv_prog_compiler_pic_works_CXX=no
  17824. ac_outfile=conftest.$ac_objext
  17825. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17826. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  17827. # Insert the option either (1) after the last *FLAGS variable, or
  17828. # (2) before a word containing "conftest.", or (3) at the end.
  17829. # Note that $ac_compile itself does not contain backslashes and begins
  17830. # with a dollar sign (not a hyphen), so the echo should work correctly.
  17831. # The option is referenced via a variable to avoid confusing sed.
  17832. lt_compile=`echo "$ac_compile" | $SED \
  17833. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17834. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17835. -e 's:$: $lt_compiler_flag:'`
  17836. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  17837. (eval "$lt_compile" 2>conftest.err)
  17838. ac_status=$?
  17839. cat conftest.err >&5
  17840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17841. if (exit $ac_status) && test -s "$ac_outfile"; then
  17842. # The compiler can only warn and ignore the option if not recognized
  17843. # So say no if there are warnings other than the usual output.
  17844. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  17845. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17846. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  17847. lt_cv_prog_compiler_pic_works_CXX=yes
  17848. fi
  17849. fi
  17850. $RM conftest*
  17851. ;;
  17852. esac
  17853. fi
  17854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  17855. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  17856. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  17857. case $lt_prog_compiler_pic_CXX in
  17858. "" | " "*) ;;
  17859. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  17860. esac
  17861. else
  17862. lt_prog_compiler_pic_CXX=
  17863. lt_prog_compiler_can_build_shared_CXX=no
  17864. fi
  17865. fi
  17866. #
  17867. # Check to make sure the static flag actually works.
  17868. #
  17869. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  17870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  17871. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  17872. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  17873. then :
  17874. printf %s "(cached) " >&6
  17875. else case e in #(
  17876. e) lt_cv_prog_compiler_static_works_CXX=no
  17877. save_LDFLAGS=$LDFLAGS
  17878. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  17879. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  17880. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  17881. # The linker can only warn and ignore the option if not recognized
  17882. # So say no if there are warnings
  17883. if test -s conftest.err; then
  17884. # Append any errors to the config.log.
  17885. cat conftest.err 1>&5
  17886. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  17887. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17888. if diff conftest.exp conftest.er2 >/dev/null; then
  17889. lt_cv_prog_compiler_static_works_CXX=yes
  17890. fi
  17891. else
  17892. lt_cv_prog_compiler_static_works_CXX=yes
  17893. fi
  17894. fi
  17895. $RM -r conftest*
  17896. LDFLAGS=$save_LDFLAGS
  17897. ;;
  17898. esac
  17899. fi
  17900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  17901. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  17902. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  17903. :
  17904. else
  17905. lt_prog_compiler_static_CXX=
  17906. fi
  17907. ='-fPIC'
  17908. archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
  17909. archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
  17910. archive_cmds_need_lc_CXX=no
  17911. no_undefined_flag_CXX=
  17912. ;;
  17913. *)
  17914. dynamic_linker=no
  17915. ;;
  17916. esac
  17917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  17918. printf "%s\n" "$dynamic_linker" >&6; }
  17919. test no = "$dynamic_linker" && can_build_shared=no
  17920. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17921. if test yes = "$GCC"; then
  17922. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17923. fi
  17924. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  17925. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  17926. fi
  17927. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  17928. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  17929. fi
  17930. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  17931. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  17932. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  17933. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  17934. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  17935. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  17936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  17937. printf %s "checking how to hardcode library paths into programs... " >&6; }
  17938. hardcode_action_CXX=
  17939. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  17940. test -n "$runpath_var_CXX" ||
  17941. test yes = "$hardcode_automatic_CXX"; then
  17942. # We can hardcode non-existent directories.
  17943. if test no != "$hardcode_direct_CXX" &&
  17944. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  17945. # have to relink, otherwise we might link with an installed library
  17946. # when we should be linking with a yet-to-be-installed one
  17947. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  17948. test no != "$hardcode_minus_L_CXX"; then
  17949. # Linking always hardcodes the temporary library directory.
  17950. hardcode_action_CXX=relink
  17951. else
  17952. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  17953. hardcode_action_CXX=immediate
  17954. fi
  17955. else
  17956. # We cannot hardcode anything, or else we can only hardcode existing
  17957. # directories.
  17958. hardcode_action_CXX=unsupported
  17959. fi
  17960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  17961. printf "%s\n" "$hardcode_action_CXX" >&6; }
  17962. if test relink = "$hardcode_action_CXX" ||
  17963. test yes = "$inherit_rpath_CXX"; then
  17964. # Fast installation is not supported
  17965. enable_fast_install=no
  17966. elif test yes = "$shlibpath_overrides_runpath" ||
  17967. test no = "$enable_shared"; then
  17968. # Fast installation is not necessary
  17969. enable_fast_install=needless
  17970. fi
  17971. fi # test -n "$compiler"
  17972. CC=$lt_save_CC
  17973. CFLAGS=$lt_save_CFLAGS
  17974. LDCXX=$LD
  17975. LD=$lt_save_LD
  17976. GCC=$lt_save_GCC
  17977. with_gnu_ld=$lt_save_with_gnu_ld
  17978. lt_cv_path_LDCXX=$lt_cv_path_LD
  17979. lt_cv_path_LD=$lt_save_path_LD
  17980. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  17981. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  17982. fi # test yes != "$_lt_caught_CXX_error"
  17983. ac_ext=c
  17984. ac_cpp='$CPP $CPPFLAGS'
  17985. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17986. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17987. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17988. ac_ext=c
  17989. ac_cpp='$CPP $CPPFLAGS'
  17990. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17991. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17992. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  17994. printf %s "checking how to run the C preprocessor... " >&6; }
  17995. # On Suns, sometimes $CPP names a directory.
  17996. if test -n "$CPP" && test -d "$CPP"; then
  17997. CPP=
  17998. fi
  17999. if test -z "$CPP"; then
  18000. if test ${ac_cv_prog_CPP+y}
  18001. then :
  18002. printf %s "(cached) " >&6
  18003. else case e in #(
  18004. e) # Double quotes because $CC needs to be expanded
  18005. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  18006. do
  18007. ac_preproc_ok=false
  18008. for ac_c_preproc_warn_flag in '' yes
  18009. do
  18010. # Use a header file that comes with gcc, so configuring glibc
  18011. # with a fresh cross-compiler works.
  18012. # On the NeXT, cc -E runs the code through the compiler's parser,
  18013. # not just through cpp. "Syntax error" is here to catch this case.
  18014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18015. /* end confdefs.h. */
  18016. #include <limits.h>
  18017. Syntax error
  18018. _ACEOF
  18019. if ac_fn_c_try_cpp "$LINENO"
  18020. then :
  18021. else case e in #(
  18022. e) # Broken: fails on valid input.
  18023. continue ;;
  18024. esac
  18025. fi
  18026. rm -f conftest.err conftest.i conftest.$ac_ext
  18027. # OK, works on sane cases. Now check whether nonexistent headers
  18028. # can be detected and how.
  18029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18030. /* end confdefs.h. */
  18031. #include <ac_nonexistent.h>
  18032. _ACEOF
  18033. if ac_fn_c_try_cpp "$LINENO"
  18034. then :
  18035. # Broken: success on invalid input.
  18036. continue
  18037. else case e in #(
  18038. e) # Passes both tests.
  18039. ac_preproc_ok=:
  18040. break ;;
  18041. esac
  18042. fi
  18043. rm -f conftest.err conftest.i conftest.$ac_ext
  18044. done
  18045. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18046. rm -f conftest.i conftest.err conftest.$ac_ext
  18047. if $ac_preproc_ok
  18048. then :
  18049. break
  18050. fi
  18051. done
  18052. ac_cv_prog_CPP=$CPP
  18053. ;;
  18054. esac
  18055. fi
  18056. CPP=$ac_cv_prog_CPP
  18057. else
  18058. ac_cv_prog_CPP=$CPP
  18059. fi
  18060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  18061. printf "%s\n" "$CPP" >&6; }
  18062. ac_preproc_ok=false
  18063. for ac_c_preproc_warn_flag in '' yes
  18064. do
  18065. # Use a header file that comes with gcc, so configuring glibc
  18066. # with a fresh cross-compiler works.
  18067. # On the NeXT, cc -E runs the code through the compiler's parser,
  18068. # not just through cpp. "Syntax error" is here to catch this case.
  18069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18070. /* end confdefs.h. */
  18071. #include <limits.h>
  18072. Syntax error
  18073. _ACEOF
  18074. if ac_fn_c_try_cpp "$LINENO"
  18075. then :
  18076. else case e in #(
  18077. e) # Broken: fails on valid input.
  18078. continue ;;
  18079. esac
  18080. fi
  18081. rm -f conftest.err conftest.i conftest.$ac_ext
  18082. # OK, works on sane cases. Now check whether nonexistent headers
  18083. # can be detected and how.
  18084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18085. /* end confdefs.h. */
  18086. #include <ac_nonexistent.h>
  18087. _ACEOF
  18088. if ac_fn_c_try_cpp "$LINENO"
  18089. then :
  18090. # Broken: success on invalid input.
  18091. continue
  18092. else case e in #(
  18093. e) # Passes both tests.
  18094. ac_preproc_ok=:
  18095. break ;;
  18096. esac
  18097. fi
  18098. rm -f conftest.err conftest.i conftest.$ac_ext
  18099. done
  18100. # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18101. rm -f conftest.i conftest.err conftest.$ac_ext
  18102. if $ac_preproc_ok
  18103. then :
  18104. else case e in #(
  18105. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  18106. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  18107. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  18108. See 'config.log' for more details" "$LINENO" 5; } ;;
  18109. esac
  18110. fi
  18111. ac_ext=c
  18112. ac_cpp='$CPP $CPPFLAGS'
  18113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  18117. printf %s "checking whether ln -s works... " >&6; }
  18118. LN_S=$as_ln_s
  18119. if test "$LN_S" = "ln -s"; then
  18120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18121. printf "%s\n" "yes" >&6; }
  18122. else
  18123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  18124. printf "%s\n" "no, using $LN_S" >&6; }
  18125. fi
  18126. for ac_prog in gawk mawk nawk awk
  18127. do
  18128. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18129. set dummy $ac_prog; ac_word=$2
  18130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18131. printf %s "checking for $ac_word... " >&6; }
  18132. if test ${ac_cv_prog_AWK+y}
  18133. then :
  18134. printf %s "(cached) " >&6
  18135. else case e in #(
  18136. e) if test -n "$AWK"; then
  18137. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  18138. else
  18139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18140. for as_dir in $PATH
  18141. do
  18142. IFS=$as_save_IFS
  18143. case $as_dir in #(((
  18144. '') as_dir=./ ;;
  18145. */) ;;
  18146. *) as_dir=$as_dir/ ;;
  18147. esac
  18148. for ac_exec_ext in '' $ac_executable_extensions; do
  18149. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18150. ac_cv_prog_AWK="$ac_prog"
  18151. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18152. break 2
  18153. fi
  18154. done
  18155. done
  18156. IFS=$as_save_IFS
  18157. fi ;;
  18158. esac
  18159. fi
  18160. AWK=$ac_cv_prog_AWK
  18161. if test -n "$AWK"; then
  18162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  18163. printf "%s\n" "$AWK" >&6; }
  18164. else
  18165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18166. printf "%s\n" "no" >&6; }
  18167. fi
  18168. test -n "$AWK" && break
  18169. done
  18170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  18171. printf %s "checking for a sed that does not truncate output... " >&6; }
  18172. if test ${ac_cv_path_SED+y}
  18173. then :
  18174. printf %s "(cached) " >&6
  18175. else case e in #(
  18176. e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  18177. for ac_i in 1 2 3 4 5 6 7; do
  18178. ac_script="$ac_script$as_nl$ac_script"
  18179. done
  18180. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  18181. { ac_script=; unset ac_script;}
  18182. if test -z "$SED"; then
  18183. ac_path_SED_found=false
  18184. # Loop through the user's path and test for each of PROGNAME-LIST
  18185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18186. for as_dir in $PATH
  18187. do
  18188. IFS=$as_save_IFS
  18189. case $as_dir in #(((
  18190. '') as_dir=./ ;;
  18191. */) ;;
  18192. *) as_dir=$as_dir/ ;;
  18193. esac
  18194. for ac_prog in sed gsed
  18195. do
  18196. for ac_exec_ext in '' $ac_executable_extensions; do
  18197. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  18198. as_fn_executable_p "$ac_path_SED" || continue
  18199. # Check for GNU ac_path_SED and select it if it is found.
  18200. # Check for GNU $ac_path_SED
  18201. case `"$ac_path_SED" --version 2>&1` in #(
  18202. *GNU*)
  18203. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  18204. #(
  18205. *)
  18206. ac_count=0
  18207. printf %s 0123456789 >"conftest.in"
  18208. while :
  18209. do
  18210. cat "conftest.in" "conftest.in" >"conftest.tmp"
  18211. mv "conftest.tmp" "conftest.in"
  18212. cp "conftest.in" "conftest.nl"
  18213. printf "%s\n" '' >> "conftest.nl"
  18214. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  18215. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  18216. as_fn_arith $ac_count + 1 && ac_count=$as_val
  18217. if test $ac_count -gt ${ac_path_SED_max-0}; then
  18218. # Best one so far, save it but keep looking for a better one
  18219. ac_cv_path_SED="$ac_path_SED"
  18220. ac_path_SED_max=$ac_count
  18221. fi
  18222. # 10*(2^10) chars as input seems more than enough
  18223. test $ac_count -gt 10 && break
  18224. done
  18225. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  18226. esac
  18227. $ac_path_SED_found && break 3
  18228. done
  18229. done
  18230. done
  18231. IFS=$as_save_IFS
  18232. if test -z "$ac_cv_path_SED"; then
  18233. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  18234. fi
  18235. else
  18236. ac_cv_path_SED=$SED
  18237. fi
  18238. ;;
  18239. esac
  18240. fi
  18241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  18242. printf "%s\n" "$ac_cv_path_SED" >&6; }
  18243. SED="$ac_cv_path_SED"
  18244. rm -f conftest.sed
  18245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  18246. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  18247. set x ${MAKE-make}
  18248. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  18249. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  18250. then :
  18251. printf %s "(cached) " >&6
  18252. else case e in #(
  18253. e) cat >conftest.make <<\_ACEOF
  18254. SHELL = /bin/sh
  18255. all:
  18256. @echo '@@@%%%=$(MAKE)=@@@%%%'
  18257. _ACEOF
  18258. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18259. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  18260. *@@@%%%=?*=@@@%%%*)
  18261. eval ac_cv_prog_make_${ac_make}_set=yes;;
  18262. *)
  18263. eval ac_cv_prog_make_${ac_make}_set=no;;
  18264. esac
  18265. rm -f conftest.make ;;
  18266. esac
  18267. fi
  18268. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  18269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18270. printf "%s\n" "yes" >&6; }
  18271. SET_MAKE=
  18272. else
  18273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18274. printf "%s\n" "no" >&6; }
  18275. SET_MAKE="MAKE=${MAKE-make}"
  18276. fi
  18277. # Extract the first word of "printf", so it can be a program name with args.
  18278. set dummy printf; ac_word=$2
  18279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18280. printf %s "checking for $ac_word... " >&6; }
  18281. if test ${ac_cv_path_PRINTF+y}
  18282. then :
  18283. printf %s "(cached) " >&6
  18284. else case e in #(
  18285. e) case $PRINTF in
  18286. [\\/]* | ?:[\\/]*)
  18287. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  18288. ;;
  18289. *)
  18290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18291. for as_dir in $PATH
  18292. do
  18293. IFS=$as_save_IFS
  18294. case $as_dir in #(((
  18295. '') as_dir=./ ;;
  18296. */) ;;
  18297. *) as_dir=$as_dir/ ;;
  18298. esac
  18299. for ac_exec_ext in '' $ac_executable_extensions; do
  18300. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18301. ac_cv_path_PRINTF="$as_dir$ac_word$ac_exec_ext"
  18302. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18303. break 2
  18304. fi
  18305. done
  18306. done
  18307. IFS=$as_save_IFS
  18308. ;;
  18309. esac ;;
  18310. esac
  18311. fi
  18312. PRINTF=$ac_cv_path_PRINTF
  18313. if test -n "$PRINTF"; then
  18314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  18315. printf "%s\n" "$PRINTF" >&6; }
  18316. else
  18317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18318. printf "%s\n" "no" >&6; }
  18319. fi
  18320. # Extract the first word of "echo", so it can be a program name with args.
  18321. set dummy echo; ac_word=$2
  18322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18323. printf %s "checking for $ac_word... " >&6; }
  18324. if test ${ac_cv_path_ECHO+y}
  18325. then :
  18326. printf %s "(cached) " >&6
  18327. else case e in #(
  18328. e) case $ECHO in
  18329. [\\/]* | ?:[\\/]*)
  18330. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  18331. ;;
  18332. *)
  18333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18334. for as_dir in $PATH
  18335. do
  18336. IFS=$as_save_IFS
  18337. case $as_dir in #(((
  18338. '') as_dir=./ ;;
  18339. */) ;;
  18340. *) as_dir=$as_dir/ ;;
  18341. esac
  18342. for ac_exec_ext in '' $ac_executable_extensions; do
  18343. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18344. ac_cv_path_ECHO="$as_dir$ac_word$ac_exec_ext"
  18345. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18346. break 2
  18347. fi
  18348. done
  18349. done
  18350. IFS=$as_save_IFS
  18351. ;;
  18352. esac ;;
  18353. esac
  18354. fi
  18355. ECHO=$ac_cv_path_ECHO
  18356. if test -n "$ECHO"; then
  18357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  18358. printf "%s\n" "$ECHO" >&6; }
  18359. else
  18360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18361. printf "%s\n" "no" >&6; }
  18362. fi
  18363. # Extract the first word of "cut", so it can be a program name with args.
  18364. set dummy cut; ac_word=$2
  18365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18366. printf %s "checking for $ac_word... " >&6; }
  18367. if test ${ac_cv_path_CUT+y}
  18368. then :
  18369. printf %s "(cached) " >&6
  18370. else case e in #(
  18371. e) case $CUT in
  18372. [\\/]* | ?:[\\/]*)
  18373. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  18374. ;;
  18375. *)
  18376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18377. for as_dir in $PATH
  18378. do
  18379. IFS=$as_save_IFS
  18380. case $as_dir in #(((
  18381. '') as_dir=./ ;;
  18382. */) ;;
  18383. *) as_dir=$as_dir/ ;;
  18384. esac
  18385. for ac_exec_ext in '' $ac_executable_extensions; do
  18386. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18387. ac_cv_path_CUT="$as_dir$ac_word$ac_exec_ext"
  18388. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18389. break 2
  18390. fi
  18391. done
  18392. done
  18393. IFS=$as_save_IFS
  18394. ;;
  18395. esac ;;
  18396. esac
  18397. fi
  18398. CUT=$ac_cv_path_CUT
  18399. if test -n "$CUT"; then
  18400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  18401. printf "%s\n" "$CUT" >&6; }
  18402. else
  18403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18404. printf "%s\n" "no" >&6; }
  18405. fi
  18406. # Extract the first word of "autogen", so it can be a program name with args.
  18407. set dummy autogen; ac_word=$2
  18408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18409. printf %s "checking for $ac_word... " >&6; }
  18410. if test ${ac_cv_path_AUTOGEN+y}
  18411. then :
  18412. printf %s "(cached) " >&6
  18413. else case e in #(
  18414. e) case $AUTOGEN in
  18415. [\\/]* | ?:[\\/]*)
  18416. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  18417. ;;
  18418. *)
  18419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18420. for as_dir in $PATH
  18421. do
  18422. IFS=$as_save_IFS
  18423. case $as_dir in #(((
  18424. '') as_dir=./ ;;
  18425. */) ;;
  18426. *) as_dir=$as_dir/ ;;
  18427. esac
  18428. for ac_exec_ext in '' $ac_executable_extensions; do
  18429. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18430. ac_cv_path_AUTOGEN="$as_dir$ac_word$ac_exec_ext"
  18431. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18432. break 2
  18433. fi
  18434. done
  18435. done
  18436. IFS=$as_save_IFS
  18437. ;;
  18438. esac ;;
  18439. esac
  18440. fi
  18441. AUTOGEN=$ac_cv_path_AUTOGEN
  18442. if test -n "$AUTOGEN"; then
  18443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  18444. printf "%s\n" "$AUTOGEN" >&6; }
  18445. else
  18446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18447. printf "%s\n" "no" >&6; }
  18448. fi
  18449. # Extract the first word of "groff", so it can be a program name with args.
  18450. set dummy groff; ac_word=$2
  18451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18452. printf %s "checking for $ac_word... " >&6; }
  18453. if test ${ac_cv_path_GROFF+y}
  18454. then :
  18455. printf %s "(cached) " >&6
  18456. else case e in #(
  18457. e) case $GROFF in
  18458. [\\/]* | ?:[\\/]*)
  18459. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  18460. ;;
  18461. *)
  18462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18463. for as_dir in $PATH
  18464. do
  18465. IFS=$as_save_IFS
  18466. case $as_dir in #(((
  18467. '') as_dir=./ ;;
  18468. */) ;;
  18469. *) as_dir=$as_dir/ ;;
  18470. esac
  18471. for ac_exec_ext in '' $ac_executable_extensions; do
  18472. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18473. ac_cv_path_GROFF="$as_dir$ac_word$ac_exec_ext"
  18474. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18475. break 2
  18476. fi
  18477. done
  18478. done
  18479. IFS=$as_save_IFS
  18480. ;;
  18481. esac ;;
  18482. esac
  18483. fi
  18484. GROFF=$ac_cv_path_GROFF
  18485. if test -n "$GROFF"; then
  18486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  18487. printf "%s\n" "$GROFF" >&6; }
  18488. else
  18489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18490. printf "%s\n" "no" >&6; }
  18491. fi
  18492. # Extract the first word of "depmod", so it can be a program name with args.
  18493. set dummy depmod; ac_word=$2
  18494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18495. printf %s "checking for $ac_word... " >&6; }
  18496. if test ${ac_cv_path_depmod+y}
  18497. then :
  18498. printf %s "(cached) " >&6
  18499. else case e in #(
  18500. e) case $depmod in
  18501. [\\/]* | ?:[\\/]*)
  18502. ac_cv_path_depmod="$depmod" # Let the user override the test with a path.
  18503. ;;
  18504. *)
  18505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18506. as_dummy="$PATH:/sbin"
  18507. for as_dir in $as_dummy
  18508. do
  18509. IFS=$as_save_IFS
  18510. case $as_dir in #(((
  18511. '') as_dir=./ ;;
  18512. */) ;;
  18513. *) as_dir=$as_dir/ ;;
  18514. esac
  18515. for ac_exec_ext in '' $ac_executable_extensions; do
  18516. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18517. ac_cv_path_depmod="$as_dir$ac_word$ac_exec_ext"
  18518. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18519. break 2
  18520. fi
  18521. done
  18522. done
  18523. IFS=$as_save_IFS
  18524. test -z "$ac_cv_path_depmod" && ac_cv_path_depmod="/sbin/depmod"
  18525. ;;
  18526. esac ;;
  18527. esac
  18528. fi
  18529. depmod=$ac_cv_path_depmod
  18530. if test -n "$depmod"; then
  18531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $depmod" >&5
  18532. printf "%s\n" "$depmod" >&6; }
  18533. else
  18534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18535. printf "%s\n" "no" >&6; }
  18536. fi
  18537. # Extract the first word of "insmod", so it can be a program name with args.
  18538. set dummy insmod; ac_word=$2
  18539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18540. printf %s "checking for $ac_word... " >&6; }
  18541. if test ${ac_cv_path_insmod+y}
  18542. then :
  18543. printf %s "(cached) " >&6
  18544. else case e in #(
  18545. e) case $insmod in
  18546. [\\/]* | ?:[\\/]*)
  18547. ac_cv_path_insmod="$insmod" # Let the user override the test with a path.
  18548. ;;
  18549. *)
  18550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18551. as_dummy="$PATH:/sbin"
  18552. for as_dir in $as_dummy
  18553. do
  18554. IFS=$as_save_IFS
  18555. case $as_dir in #(((
  18556. '') as_dir=./ ;;
  18557. */) ;;
  18558. *) as_dir=$as_dir/ ;;
  18559. esac
  18560. for ac_exec_ext in '' $ac_executable_extensions; do
  18561. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18562. ac_cv_path_insmod="$as_dir$ac_word$ac_exec_ext"
  18563. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18564. break 2
  18565. fi
  18566. done
  18567. done
  18568. IFS=$as_save_IFS
  18569. test -z "$ac_cv_path_insmod" && ac_cv_path_insmod="/sbin/insmod"
  18570. ;;
  18571. esac ;;
  18572. esac
  18573. fi
  18574. insmod=$ac_cv_path_insmod
  18575. if test -n "$insmod"; then
  18576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $insmod" >&5
  18577. printf "%s\n" "$insmod" >&6; }
  18578. else
  18579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18580. printf "%s\n" "no" >&6; }
  18581. fi
  18582. # Extract the first word of "rmmod", so it can be a program name with args.
  18583. set dummy rmmod; ac_word=$2
  18584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18585. printf %s "checking for $ac_word... " >&6; }
  18586. if test ${ac_cv_path_rmmod+y}
  18587. then :
  18588. printf %s "(cached) " >&6
  18589. else case e in #(
  18590. e) case $rmmod in
  18591. [\\/]* | ?:[\\/]*)
  18592. ac_cv_path_rmmod="$rmmod" # Let the user override the test with a path.
  18593. ;;
  18594. *)
  18595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18596. as_dummy="$PATH:/sbin"
  18597. for as_dir in $as_dummy
  18598. do
  18599. IFS=$as_save_IFS
  18600. case $as_dir in #(((
  18601. '') as_dir=./ ;;
  18602. */) ;;
  18603. *) as_dir=$as_dir/ ;;
  18604. esac
  18605. for ac_exec_ext in '' $ac_executable_extensions; do
  18606. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18607. ac_cv_path_rmmod="$as_dir$ac_word$ac_exec_ext"
  18608. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18609. break 2
  18610. fi
  18611. done
  18612. done
  18613. IFS=$as_save_IFS
  18614. test -z "$ac_cv_path_rmmod" && ac_cv_path_rmmod="/sbin/rmmod"
  18615. ;;
  18616. esac ;;
  18617. esac
  18618. fi
  18619. rmmod=$ac_cv_path_rmmod
  18620. if test -n "$rmmod"; then
  18621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rmmod" >&5
  18622. printf "%s\n" "$rmmod" >&6; }
  18623. else
  18624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18625. printf "%s\n" "no" >&6; }
  18626. fi
  18627. case "${enable_local_libopts+set}" in
  18628. set) ;;
  18629. *) enable_local_libopts=yes ;;
  18630. esac
  18631. case "${enable_libopts_install+set}" in
  18632. set) ;;
  18633. *) enable_libopts_install=no ;;
  18634. esac
  18635. AUTOGEN_VERSION="unknown - man pages will not be built"
  18636. if test -n "${AUTOGEN}" ; then
  18637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}" >&5
  18638. printf %s "checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}... " >&6; }
  18639. AUTOGEN_VERSION=$(${AUTOGEN} -v | ${CUT} -d' ' -f 4)
  18640. AUTOGEN_MAJOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1)
  18641. AUTOGEN_MINOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2)
  18642. AUTOGEN_BUILD=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 3)
  18643. if test -z "$AUTOGEN_BUILD"; then
  18644. AUTOGEN_BUILD=0
  18645. fi
  18646. if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 4) ||
  18647. (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18) ||
  18648. test ${AUTOGEN_MAJOR} -lt 5 ; then
  18649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18650. printf "%s\n" "no" >&6; }
  18651. if test ! "x$enable_local_libopts" = "xyes"; then
  18652. as_fn_error $? "${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.4 or higher" "$LINENO" 5
  18653. fi
  18654. AUTOGEN_VERSION="${AUTOGEN_VERSION} - downlevel"
  18655. else
  18656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18657. printf "%s\n" "yes" >&6; }
  18658. fi
  18659. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  18660. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  18661. 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
  18662. fi
  18663. fi
  18664. else
  18665. if test ! -f src/tcpreplay_opts.c ; then
  18666. 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
  18667. fi
  18668. fi
  18669. printf "%s\n" "#define AUTOGEN_VERSION \${AUTOGEN_VERSION}" >>confdefs.h
  18670. if test "x$enable_local_libopts" = "xyes" ; then
  18671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using included libopts tearoff" >&5
  18672. printf "%s\n" "$as_me: Using included libopts tearoff" >&6;}
  18673. else
  18674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using system libopts" >&5
  18675. printf "%s\n" "$as_me: Using system libopts" >&6;}
  18676. fi
  18677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  18678. printf %s "checking for egrep... " >&6; }
  18679. if test ${ac_cv_path_EGREP+y}
  18680. then :
  18681. printf %s "(cached) " >&6
  18682. else case e in #(
  18683. e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  18684. then ac_cv_path_EGREP="$GREP -E"
  18685. else
  18686. if test -z "$EGREP"; then
  18687. ac_path_EGREP_found=false
  18688. # Loop through the user's path and test for each of PROGNAME-LIST
  18689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18690. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  18691. do
  18692. IFS=$as_save_IFS
  18693. case $as_dir in #(((
  18694. '') as_dir=./ ;;
  18695. */) ;;
  18696. *) as_dir=$as_dir/ ;;
  18697. esac
  18698. for ac_prog in egrep
  18699. do
  18700. for ac_exec_ext in '' $ac_executable_extensions; do
  18701. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  18702. as_fn_executable_p "$ac_path_EGREP" || continue
  18703. # Check for GNU ac_path_EGREP and select it if it is found.
  18704. # Check for GNU $ac_path_EGREP
  18705. case `"$ac_path_EGREP" --version 2>&1` in #(
  18706. *GNU*)
  18707. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  18708. #(
  18709. *)
  18710. ac_count=0
  18711. printf %s 0123456789 >"conftest.in"
  18712. while :
  18713. do
  18714. cat "conftest.in" "conftest.in" >"conftest.tmp"
  18715. mv "conftest.tmp" "conftest.in"
  18716. cp "conftest.in" "conftest.nl"
  18717. printf "%s\n" 'EGREP' >> "conftest.nl"
  18718. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  18719. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  18720. as_fn_arith $ac_count + 1 && ac_count=$as_val
  18721. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  18722. # Best one so far, save it but keep looking for a better one
  18723. ac_cv_path_EGREP="$ac_path_EGREP"
  18724. ac_path_EGREP_max=$ac_count
  18725. fi
  18726. # 10*(2^10) chars as input seems more than enough
  18727. test $ac_count -gt 10 && break
  18728. done
  18729. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  18730. esac
  18731. $ac_path_EGREP_found && break 3
  18732. done
  18733. done
  18734. done
  18735. IFS=$as_save_IFS
  18736. if test -z "$ac_cv_path_EGREP"; then
  18737. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  18738. fi
  18739. else
  18740. ac_cv_path_EGREP=$EGREP
  18741. fi
  18742. fi ;;
  18743. esac
  18744. fi
  18745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  18746. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  18747. EGREP="$ac_cv_path_EGREP"
  18748. EGREP_TRADITIONAL=$EGREP
  18749. ac_cv_path_EGREP_TRADITIONAL=$EGREP
  18750. ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  18751. if test "x$ac_cv_header_sys_mkdev_h" = xyes
  18752. then :
  18753. printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  18754. fi
  18755. if test $ac_cv_header_sys_mkdev_h = no; then
  18756. ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  18757. if test "x$ac_cv_header_sys_sysmacros_h" = xyes
  18758. then :
  18759. printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  18760. fi
  18761. fi
  18762. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  18763. if test "x$ac_cv_type__Bool" = xyes
  18764. then :
  18765. printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
  18766. fi
  18767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
  18768. printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
  18769. if test ${ac_cv_header_stdbool_h+y}
  18770. then :
  18771. printf %s "(cached) " >&6
  18772. else case e in #(
  18773. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18774. /* end confdefs.h. */
  18775. #include <stdbool.h>
  18776. /* "true" and "false" should be usable in #if expressions and
  18777. integer constant expressions, and "bool" should be a valid
  18778. type name.
  18779. Although C99 requires bool, true, and false to be macros,
  18780. C23 and C++11 overrule that, so do not test for that.
  18781. Although C99 requires __bool_true_false_are_defined and
  18782. _Bool, C23 says they are obsolescent, so do not require
  18783. them. */
  18784. #if !true
  18785. #error "'true' is not true"
  18786. #endif
  18787. #if true != 1
  18788. #error "'true' is not equal to 1"
  18789. #endif
  18790. char b[true == 1 ? 1 : -1];
  18791. char c[true];
  18792. #if false
  18793. #error "'false' is not false"
  18794. #endif
  18795. #if false != 0
  18796. #error "'false' is not equal to 0"
  18797. #endif
  18798. char d[false == 0 ? 1 : -1];
  18799. enum { e = false, f = true, g = false * true, h = true * 256 };
  18800. char i[(bool) 0.5 == true ? 1 : -1];
  18801. char j[(bool) 0.0 == false ? 1 : -1];
  18802. char k[sizeof (bool) > 0 ? 1 : -1];
  18803. struct sb { bool s: 1; bool t; } s;
  18804. char l[sizeof s.t > 0 ? 1 : -1];
  18805. /* The following fails for
  18806. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  18807. bool m[h];
  18808. char n[sizeof m == h * sizeof m[0] ? 1 : -1];
  18809. char o[-1 - (bool) 0 < 0 ? 1 : -1];
  18810. /* Catch a bug in an HP-UX C compiler. See
  18811. https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  18812. https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
  18813. */
  18814. bool p = true;
  18815. bool *pp = &p;
  18816. int
  18817. main (void)
  18818. {
  18819. bool ps = &s;
  18820. *pp |= p;
  18821. *pp |= ! p;
  18822. /* Refer to every declared value, so they cannot be
  18823. discarded as unused. */
  18824. return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
  18825. + !l + !m + !n + !o + !p + !pp + !ps);
  18826. ;
  18827. return 0;
  18828. }
  18829. _ACEOF
  18830. if ac_fn_c_try_compile "$LINENO"
  18831. then :
  18832. ac_cv_header_stdbool_h=yes
  18833. else case e in #(
  18834. e) ac_cv_header_stdbool_h=no ;;
  18835. esac
  18836. fi
  18837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  18838. esac
  18839. fi
  18840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  18841. printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
  18842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  18843. printf %s "checking for inline... " >&6; }
  18844. if test ${ac_cv_c_inline+y}
  18845. then :
  18846. printf %s "(cached) " >&6
  18847. else case e in #(
  18848. e) ac_cv_c_inline=no
  18849. for ac_kw in inline __inline__ __inline; do
  18850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18851. /* end confdefs.h. */
  18852. #ifndef __cplusplus
  18853. typedef int foo_t;
  18854. static $ac_kw foo_t static_foo (void) {return 0; }
  18855. $ac_kw foo_t foo (void) {return 0; }
  18856. #endif
  18857. _ACEOF
  18858. if ac_fn_c_try_compile "$LINENO"
  18859. then :
  18860. ac_cv_c_inline=$ac_kw
  18861. fi
  18862. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18863. test "$ac_cv_c_inline" != no && break
  18864. done
  18865. ;;
  18866. esac
  18867. fi
  18868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  18869. printf "%s\n" "$ac_cv_c_inline" >&6; }
  18870. case $ac_cv_c_inline in
  18871. inline | yes) ;;
  18872. *)
  18873. case $ac_cv_c_inline in
  18874. no) ac_val=;;
  18875. *) ac_val=$ac_cv_c_inline;;
  18876. esac
  18877. cat >>confdefs.h <<_ACEOF
  18878. #ifndef __cplusplus
  18879. #define inline $ac_val
  18880. #endif
  18881. _ACEOF
  18882. ;;
  18883. esac
  18884. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  18885. case $ac_cv_c_int16_t in #(
  18886. no|yes) ;; #(
  18887. *)
  18888. printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
  18889. ;;
  18890. esac
  18891. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  18892. case $ac_cv_c_int32_t in #(
  18893. no|yes) ;; #(
  18894. *)
  18895. printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
  18896. ;;
  18897. esac
  18898. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  18899. case $ac_cv_c_int64_t in #(
  18900. no|yes) ;; #(
  18901. *)
  18902. printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
  18903. ;;
  18904. esac
  18905. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  18906. case $ac_cv_c_int8_t in #(
  18907. no|yes) ;; #(
  18908. *)
  18909. printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
  18910. ;;
  18911. esac
  18912. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  18913. if test "x$ac_cv_type_off_t" = xyes
  18914. then :
  18915. else case e in #(
  18916. e)
  18917. printf "%s\n" "#define off_t long int" >>confdefs.h
  18918. ;;
  18919. esac
  18920. fi
  18921. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  18922. "
  18923. if test "x$ac_cv_type_pid_t" = xyes
  18924. then :
  18925. else case e in #(
  18926. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18927. /* end confdefs.h. */
  18928. #if defined _WIN64 && !defined __CYGWIN__
  18929. LLP64
  18930. #endif
  18931. int
  18932. main (void)
  18933. {
  18934. ;
  18935. return 0;
  18936. }
  18937. _ACEOF
  18938. if ac_fn_c_try_compile "$LINENO"
  18939. then :
  18940. ac_pid_type='int'
  18941. else case e in #(
  18942. e) ac_pid_type='__int64' ;;
  18943. esac
  18944. fi
  18945. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18946. printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
  18947. ;;
  18948. esac
  18949. fi
  18950. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  18951. if test "x$ac_cv_type_size_t" = xyes
  18952. then :
  18953. else case e in #(
  18954. e)
  18955. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  18956. ;;
  18957. esac
  18958. fi
  18959. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  18960. if test "x$ac_cv_type_ssize_t" = xyes
  18961. then :
  18962. else case e in #(
  18963. e)
  18964. printf "%s\n" "#define ssize_t int" >>confdefs.h
  18965. ;;
  18966. esac
  18967. fi
  18968. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  18969. case $ac_cv_c_uint16_t in #(
  18970. no|yes) ;; #(
  18971. *)
  18972. printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
  18973. ;;
  18974. esac
  18975. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  18976. case $ac_cv_c_uint32_t in #(
  18977. no|yes) ;; #(
  18978. *)
  18979. printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
  18980. printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
  18981. ;;
  18982. esac
  18983. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  18984. case $ac_cv_c_uint64_t in #(
  18985. no|yes) ;; #(
  18986. *)
  18987. printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
  18988. printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
  18989. ;;
  18990. esac
  18991. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  18992. case $ac_cv_c_uint8_t in #(
  18993. no|yes) ;; #(
  18994. *)
  18995. printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
  18996. printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
  18997. ;;
  18998. esac
  18999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  19000. printf %s "checking for an ANSI C-conforming const... " >&6; }
  19001. if test ${ac_cv_c_const+y}
  19002. then :
  19003. printf %s "(cached) " >&6
  19004. else case e in #(
  19005. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19006. /* end confdefs.h. */
  19007. int
  19008. main (void)
  19009. {
  19010. #ifndef __cplusplus
  19011. /* Ultrix mips cc rejects this sort of thing. */
  19012. typedef int charset[2];
  19013. const charset cs = { 0, 0 };
  19014. /* SunOS 4.1.1 cc rejects this. */
  19015. char const *const *pcpcc;
  19016. char **ppc;
  19017. /* NEC SVR4.0.2 mips cc rejects this. */
  19018. struct point {int x, y;};
  19019. static struct point const zero = {0,0};
  19020. /* IBM XL C 1.02.0.0 rejects this.
  19021. It does not let you subtract one const X* pointer from another in
  19022. an arm of an if-expression whose if-part is not a constant
  19023. expression */
  19024. const char *g = "string";
  19025. pcpcc = &g + (g ? g-g : 0);
  19026. /* HPUX 7.0 cc rejects these. */
  19027. ++pcpcc;
  19028. ppc = (char**) pcpcc;
  19029. pcpcc = (char const *const *) ppc;
  19030. { /* SCO 3.2v4 cc rejects this sort of thing. */
  19031. char tx;
  19032. char *t = &tx;
  19033. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19034. *t++ = 0;
  19035. if (s) return 0;
  19036. }
  19037. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19038. int x[] = {25, 17};
  19039. const int *foo = &x[0];
  19040. ++foo;
  19041. }
  19042. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19043. typedef const int *iptr;
  19044. iptr p = 0;
  19045. ++p;
  19046. }
  19047. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  19048. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19049. struct s { int j; const int *ap[3]; } bx;
  19050. struct s *b = &bx; b->j = 5;
  19051. }
  19052. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19053. const int foo = 10;
  19054. if (!foo) return 0;
  19055. }
  19056. return !cs[0] && !zero.x;
  19057. #endif
  19058. ;
  19059. return 0;
  19060. }
  19061. _ACEOF
  19062. if ac_fn_c_try_compile "$LINENO"
  19063. then :
  19064. ac_cv_c_const=yes
  19065. else case e in #(
  19066. e) ac_cv_c_const=no ;;
  19067. esac
  19068. fi
  19069. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  19070. esac
  19071. fi
  19072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  19073. printf "%s\n" "$ac_cv_c_const" >&6; }
  19074. if test $ac_cv_c_const = no; then
  19075. printf "%s\n" "#define const /**/" >>confdefs.h
  19076. fi
  19077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  19078. printf %s "checking for inline... " >&6; }
  19079. if test ${ac_cv_c_inline+y}
  19080. then :
  19081. printf %s "(cached) " >&6
  19082. else case e in #(
  19083. e) ac_cv_c_inline=no
  19084. for ac_kw in inline __inline__ __inline; do
  19085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19086. /* end confdefs.h. */
  19087. #ifndef __cplusplus
  19088. typedef int foo_t;
  19089. static $ac_kw foo_t static_foo (void) {return 0; }
  19090. $ac_kw foo_t foo (void) {return 0; }
  19091. #endif
  19092. _ACEOF
  19093. if ac_fn_c_try_compile "$LINENO"
  19094. then :
  19095. ac_cv_c_inline=$ac_kw
  19096. fi
  19097. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19098. test "$ac_cv_c_inline" != no && break
  19099. done
  19100. ;;
  19101. esac
  19102. fi
  19103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  19104. printf "%s\n" "$ac_cv_c_inline" >&6; }
  19105. case $ac_cv_c_inline in
  19106. inline | yes) ;;
  19107. *)
  19108. case $ac_cv_c_inline in
  19109. no) ac_val=;;
  19110. *) ac_val=$ac_cv_c_inline;;
  19111. esac
  19112. cat >>confdefs.h <<_ACEOF
  19113. #ifndef __cplusplus
  19114. #define inline $ac_val
  19115. #endif
  19116. _ACEOF
  19117. ;;
  19118. esac
  19119. # Check whether --enable-largefile was given.
  19120. if test ${enable_largefile+y}
  19121. then :
  19122. enableval=$enable_largefile;
  19123. fi
  19124. if test "$enable_largefile,$enable_year2038" != no,no
  19125. then :
  19126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
  19127. printf %s "checking for $CPPFLAGS option for large files... " >&6; }
  19128. if test ${ac_cv_sys_largefile_opts+y}
  19129. then :
  19130. printf %s "(cached) " >&6
  19131. else case e in #(
  19132. e) ac_save_CPPFLAGS=$CPPFLAGS
  19133. ac_opt_found=no
  19134. for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
  19135. if test x"$ac_opt" != x"none needed"
  19136. then :
  19137. CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
  19138. fi
  19139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19140. /* end confdefs.h. */
  19141. #include <sys/types.h>
  19142. #ifndef FTYPE
  19143. # define FTYPE off_t
  19144. #endif
  19145. /* Check that FTYPE can represent 2**63 - 1 correctly.
  19146. We can't simply define LARGE_FTYPE to be 9223372036854775807,
  19147. since some C++ compilers masquerading as C compilers
  19148. incorrectly reject 9223372036854775807. */
  19149. #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
  19150. int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
  19151. && LARGE_FTYPE % 2147483647 == 1)
  19152. ? 1 : -1];
  19153. int
  19154. main (void)
  19155. {
  19156. ;
  19157. return 0;
  19158. }
  19159. _ACEOF
  19160. if ac_fn_c_try_compile "$LINENO"
  19161. then :
  19162. if test x"$ac_opt" = x"none needed"
  19163. then :
  19164. # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
  19165. CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
  19166. if ac_fn_c_try_compile "$LINENO"
  19167. then :
  19168. else case e in #(
  19169. e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
  19170. if ac_fn_c_try_compile "$LINENO"
  19171. then :
  19172. ac_opt='-D_FILE_OFFSET_BITS=64'
  19173. fi
  19174. rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
  19175. esac
  19176. fi
  19177. rm -f core conftest.err conftest.$ac_objext conftest.beam
  19178. fi
  19179. ac_cv_sys_largefile_opts=$ac_opt
  19180. ac_opt_found=yes
  19181. fi
  19182. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19183. test $ac_opt_found = no || break
  19184. done
  19185. CPPFLAGS=$ac_save_CPPFLAGS
  19186. test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
  19187. esac
  19188. fi
  19189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
  19190. printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
  19191. ac_have_largefile=yes
  19192. case $ac_cv_sys_largefile_opts in #(
  19193. "none needed") :
  19194. ;; #(
  19195. "supported through gnulib") :
  19196. ;; #(
  19197. "support not detected") :
  19198. ac_have_largefile=no ;; #(
  19199. "-D_FILE_OFFSET_BITS=64") :
  19200. printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
  19201. ;; #(
  19202. "-D_LARGE_FILES=1") :
  19203. printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
  19204. ;; #(
  19205. *) :
  19206. as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
  19207. esac
  19208. if test "$enable_year2038" != no
  19209. then :
  19210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
  19211. printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
  19212. if test ${ac_cv_sys_year2038_opts+y}
  19213. then :
  19214. printf %s "(cached) " >&6
  19215. else case e in #(
  19216. e) ac_save_CPPFLAGS="$CPPFLAGS"
  19217. ac_opt_found=no
  19218. for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
  19219. if test x"$ac_opt" != x"none needed"
  19220. then :
  19221. CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
  19222. fi
  19223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19224. /* end confdefs.h. */
  19225. #include <time.h>
  19226. /* Check that time_t can represent 2**32 - 1 correctly. */
  19227. #define LARGE_TIME_T \\
  19228. ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
  19229. int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
  19230. && LARGE_TIME_T % 65537 == 0)
  19231. ? 1 : -1];
  19232. int
  19233. main (void)
  19234. {
  19235. ;
  19236. return 0;
  19237. }
  19238. _ACEOF
  19239. if ac_fn_c_try_compile "$LINENO"
  19240. then :
  19241. ac_cv_sys_year2038_opts="$ac_opt"
  19242. ac_opt_found=yes
  19243. fi
  19244. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19245. test $ac_opt_found = no || break
  19246. done
  19247. CPPFLAGS="$ac_save_CPPFLAGS"
  19248. test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
  19249. esac
  19250. fi
  19251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
  19252. printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
  19253. ac_have_year2038=yes
  19254. case $ac_cv_sys_year2038_opts in #(
  19255. "none needed") :
  19256. ;; #(
  19257. "support not detected") :
  19258. ac_have_year2038=no ;; #(
  19259. "-D_TIME_BITS=64") :
  19260. printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
  19261. ;; #(
  19262. "-D__MINGW_USE_VC2005_COMPAT") :
  19263. printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
  19264. ;; #(
  19265. "-U_USE_32_BIT_TIME_T"*) :
  19266. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  19267. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  19268. as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
  19269. will stop working after mid-January 2038. Remove
  19270. _USE_32BIT_TIME_T from the compiler flags.
  19271. See 'config.log' for more details" "$LINENO" 5; } ;; #(
  19272. *) :
  19273. as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
  19274. esac
  19275. fi
  19276. fi
  19277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
  19278. printf %s "checking for declarations of fseeko and ftello... " >&6; }
  19279. if test ${ac_cv_func_fseeko_ftello+y}
  19280. then :
  19281. printf %s "(cached) " >&6
  19282. else case e in #(
  19283. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19284. /* end confdefs.h. */
  19285. #if defined __hpux && !defined _LARGEFILE_SOURCE
  19286. # include <limits.h>
  19287. # if LONG_MAX >> 31 == 0
  19288. # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
  19289. # endif
  19290. #endif
  19291. #include <sys/types.h> /* for off_t */
  19292. #include <stdio.h>
  19293. int
  19294. main (void)
  19295. {
  19296. int (*fp1) (FILE *, off_t, int) = fseeko;
  19297. off_t (*fp2) (FILE *) = ftello;
  19298. return fseeko (stdin, 0, 0)
  19299. && fp1 (stdin, 0, 0)
  19300. && ftello (stdin) >= 0
  19301. && fp2 (stdin) >= 0;
  19302. ;
  19303. return 0;
  19304. }
  19305. _ACEOF
  19306. if ac_fn_c_try_compile "$LINENO"
  19307. then :
  19308. ac_cv_func_fseeko_ftello=yes
  19309. else case e in #(
  19310. e) ac_save_CPPFLAGS="$CPPFLAGS"
  19311. CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
  19312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19313. /* end confdefs.h. */
  19314. #if defined __hpux && !defined _LARGEFILE_SOURCE
  19315. # include <limits.h>
  19316. # if LONG_MAX >> 31 == 0
  19317. # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
  19318. # endif
  19319. #endif
  19320. #include <sys/types.h> /* for off_t */
  19321. #include <stdio.h>
  19322. int
  19323. main (void)
  19324. {
  19325. int (*fp1) (FILE *, off_t, int) = fseeko;
  19326. off_t (*fp2) (FILE *) = ftello;
  19327. return fseeko (stdin, 0, 0)
  19328. && fp1 (stdin, 0, 0)
  19329. && ftello (stdin) >= 0
  19330. && fp2 (stdin) >= 0;
  19331. ;
  19332. return 0;
  19333. }
  19334. _ACEOF
  19335. if ac_fn_c_try_compile "$LINENO"
  19336. then :
  19337. ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
  19338. else case e in #(
  19339. e) ac_cv_func_fseeko_ftello=no ;;
  19340. esac
  19341. fi
  19342. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  19343. esac
  19344. fi
  19345. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  19346. esac
  19347. fi
  19348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
  19349. printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
  19350. if test "$ac_cv_func_fseeko_ftello" != no
  19351. then :
  19352. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  19353. fi
  19354. if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
  19355. then :
  19356. printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
  19357. fi
  19358. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  19359. if test "x$ac_cv_type_u_int8_t" = xyes
  19360. then :
  19361. else case e in #(
  19362. e)
  19363. printf "%s\n" "#define u_int8_t uint8_t" >>confdefs.h
  19364. ;;
  19365. esac
  19366. fi
  19367. ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
  19368. if test "x$ac_cv_type_u_char" = xyes
  19369. then :
  19370. else case e in #(
  19371. e)
  19372. printf "%s\n" "#define u_char uint8_t" >>confdefs.h
  19373. ;;
  19374. esac
  19375. fi
  19376. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  19377. if test "x$ac_cv_type_u_int16_t" = xyes
  19378. then :
  19379. else case e in #(
  19380. e)
  19381. printf "%s\n" "#define u_int16_t uint16_t" >>confdefs.h
  19382. ;;
  19383. esac
  19384. fi
  19385. ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
  19386. if test "x$ac_cv_type_u_short" = xyes
  19387. then :
  19388. else case e in #(
  19389. e)
  19390. printf "%s\n" "#define u_short uint16_t" >>confdefs.h
  19391. ;;
  19392. esac
  19393. fi
  19394. ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
  19395. if test "x$ac_cv_type_u_int" = xyes
  19396. then :
  19397. else case e in #(
  19398. e)
  19399. printf "%s\n" "#define u_int uint32_t" >>confdefs.h
  19400. ;;
  19401. esac
  19402. fi
  19403. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  19404. if test "x$ac_cv_type_u_int32_t" = xyes
  19405. then :
  19406. else case e in #(
  19407. e)
  19408. printf "%s\n" "#define u_int32_t uint32_t" >>confdefs.h
  19409. ;;
  19410. esac
  19411. fi
  19412. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  19413. if test "x$ac_cv_type_u_int64_t" = xyes
  19414. then :
  19415. else case e in #(
  19416. e)
  19417. printf "%s\n" "#define u_int64_t uint64_t" >>confdefs.h
  19418. ;;
  19419. esac
  19420. fi
  19421. # required by C23 standard
  19422. CFLAGS="-D_DEFAULT_SOURCE $CFLAGS"
  19423. wno_format=""
  19424. wno_macro_redefined=""
  19425. case $host in
  19426. *-apple-darwin*)
  19427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-macro-redefined" >&5
  19428. printf %s "checking for $CC -Wno-macro-redefined... " >&6; }
  19429. OLD_CFLAGS=$CFLAGS
  19430. CFLAGS="$CFLAGS -Wno-macro-redefined -Werror"
  19431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19432. /* end confdefs.h. */
  19433. #include <stdlib.h>
  19434. int main(int argc, char *argv[]) { return(0); }
  19435. _ACEOF
  19436. if ac_fn_c_try_compile "$LINENO"
  19437. then :
  19438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19439. printf "%s\n" "yes" >&6; }
  19440. wno_macro_redefined="-Wno-macro-redefined"
  19441. else case e in #(
  19442. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19443. printf "%s\n" "no" >&6; } ;;
  19444. esac
  19445. fi
  19446. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format" >&5
  19448. printf %s "checking for $CC -Wno-format... " >&6; }
  19449. CFLAGS="$OLD_CFLAGS $wno_macro_redefined"
  19450. CFLAGS="$CFLAGS -Wno-format -Werror"
  19451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19452. /* end confdefs.h. */
  19453. #include <stdlib.h>
  19454. int main(int argc, char *argv[]) { return(0); }
  19455. _ACEOF
  19456. if ac_fn_c_try_compile "$LINENO"
  19457. then :
  19458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19459. printf "%s\n" "yes" >&6; }
  19460. wno_format="-Wno-format"
  19461. else case e in #(
  19462. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19463. printf "%s\n" "no" >&6; } ;;
  19464. esac
  19465. fi
  19466. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19467. CFLAGS="$OLD_CFLAGS $wno_format"
  19468. ;;
  19469. esac
  19470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC -Wextra support" >&5
  19471. printf %s "checking for $CC -Wextra support... " >&6; }
  19472. OLD_CFLAGS=$CFLAGS
  19473. CFLAGS="$CFLAGS -Wextra -Werror"
  19474. wextra=""
  19475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19476. /* end confdefs.h. */
  19477. #include <stdlib.h>
  19478. int main(int argc, char *argv[]) { return(0); }
  19479. _ACEOF
  19480. if ac_fn_c_try_compile "$LINENO"
  19481. then :
  19482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19483. printf "%s\n" "yes" >&6; }
  19484. wextra="-Wextra"
  19485. else case e in #(
  19486. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19487. printf "%s\n" "no" >&6; } ;;
  19488. esac
  19489. fi
  19490. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19491. CFLAGS="$OLD_CFLAGS $wextra"
  19492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-variadic-macros support" >&5
  19493. printf %s "checking for $CC -Wno-variadic-macros support... " >&6; }
  19494. OLD_CFLAGS=$CFLAGS
  19495. CFLAGS="$CFLAGS -Wno-variadic-macros -Werror"
  19496. wno_variadic_macros=""
  19497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19498. /* end confdefs.h. */
  19499. #include <stdlib.h>
  19500. int main(int argc, char *argv[]) { return(0); }
  19501. _ACEOF
  19502. if ac_fn_c_try_compile "$LINENO"
  19503. then :
  19504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19505. printf "%s\n" "yes" >&6; }
  19506. wno_variadic_macros="-Wno-variadic-macros"
  19507. else case e in #(
  19508. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19509. printf "%s\n" "no" >&6; } ;;
  19510. esac
  19511. fi
  19512. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19513. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  19514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC -Wfatal-errors support" >&5
  19515. printf %s "checking for $CC -Wfatal-errors support... " >&6; }
  19516. OLD_CFLAGS=$CFLAGS
  19517. CFLAGS="$CFLAGS -Wfatal-errors -Werror"
  19518. wfatal_errors=""
  19519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19520. /* end confdefs.h. */
  19521. #include <stdlib.h>
  19522. int main(int argc, char *argv[]) { return(0); }
  19523. _ACEOF
  19524. if ac_fn_c_try_compile "$LINENO"
  19525. then :
  19526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19527. printf "%s\n" "yes" >&6; }
  19528. wfatal_errors="-Wfatal-errors"
  19529. else case e in #(
  19530. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19531. printf "%s\n" "no" >&6; } ;;
  19532. esac
  19533. fi
  19534. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19535. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  19536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format-contains-nul support" >&5
  19537. printf %s "checking for $CC -Wno-format-contains-nul support... " >&6; }
  19538. OLD_CFLAGS=$CFLAGS
  19539. CFLAGS="$CFLAGS -Wno-format-contains-nul -Werror"
  19540. wno_format_contains_nul=""
  19541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19542. /* end confdefs.h. */
  19543. #include <stdlib.h>
  19544. int main(int argc, char *argv[]) { return(0); }
  19545. _ACEOF
  19546. if ac_fn_c_try_compile "$LINENO"
  19547. then :
  19548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19549. printf "%s\n" "yes" >&6; }
  19550. wno_format_contains_nul="-Wno-format-contains-nul"
  19551. else case e in #(
  19552. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19553. printf "%s\n" "no" >&6; } ;;
  19554. esac
  19555. fi
  19556. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19557. CFLAGS="$OLD_CFLAGS $wno_format_contains_nul"
  19558. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  19559. if test "x$ac_cv_header_fcntl_h" = xyes
  19560. then :
  19561. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  19562. fi
  19563. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  19564. if test "x$ac_cv_header_stddef_h" = xyes
  19565. then :
  19566. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  19567. fi
  19568. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  19569. if test "x$ac_cv_header_sys_socket_h" = xyes
  19570. then :
  19571. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  19572. fi
  19573. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
  19574. if test "x$ac_cv_header_arpa_inet_h" = xyes
  19575. then :
  19576. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  19577. fi
  19578. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  19579. if test "x$ac_cv_header_sys_time_h" = xyes
  19580. then :
  19581. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  19582. fi
  19583. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  19584. if test "x$ac_cv_header_signal_h" = xyes
  19585. then :
  19586. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  19587. fi
  19588. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  19589. if test "x$ac_cv_header_string_h" = xyes
  19590. then :
  19591. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  19592. fi
  19593. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  19594. if test "x$ac_cv_header_strings_h" = xyes
  19595. then :
  19596. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  19597. fi
  19598. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  19599. if test "x$ac_cv_header_sys_types_h" = xyes
  19600. then :
  19601. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  19602. fi
  19603. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  19604. if test "x$ac_cv_header_stdint_h" = xyes
  19605. then :
  19606. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  19607. fi
  19608. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
  19609. if test "x$ac_cv_header_sys_select_h" = xyes
  19610. then :
  19611. printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  19612. fi
  19613. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  19614. if test "x$ac_cv_header_netinet_in_h" = xyes
  19615. then :
  19616. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  19617. fi
  19618. ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
  19619. if test "x$ac_cv_header_netinet_in_systm_h" = xyes
  19620. then :
  19621. printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
  19622. fi
  19623. ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  19624. if test "x$ac_cv_header_poll_h" = xyes
  19625. then :
  19626. printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
  19627. fi
  19628. ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  19629. if test "x$ac_cv_header_sys_poll_h" = xyes
  19630. then :
  19631. printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  19632. fi
  19633. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  19634. if test "x$ac_cv_header_unistd_h" = xyes
  19635. then :
  19636. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  19637. fi
  19638. ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
  19639. if test "x$ac_cv_header_sys_param_h" = xyes
  19640. then :
  19641. printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
  19642. fi
  19643. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  19644. if test "x$ac_cv_header_inttypes_h" = xyes
  19645. then :
  19646. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  19647. fi
  19648. ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
  19649. if test "x$ac_cv_header_libintl_h" = xyes
  19650. then :
  19651. printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
  19652. fi
  19653. ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
  19654. if test "x$ac_cv_header_sys_file_h" = xyes
  19655. then :
  19656. printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
  19657. fi
  19658. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
  19659. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  19660. then :
  19661. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
  19662. fi
  19663. ac_fn_c_check_header_compile "$LINENO" "sys/systeminfo.h" "ac_cv_header_sys_systeminfo_h" "$ac_includes_default"
  19664. if test "x$ac_cv_header_sys_systeminfo_h" = xyes
  19665. then :
  19666. printf "%s\n" "#define HAVE_SYS_SYSTEMINFO_H 1" >>confdefs.h
  19667. fi
  19668. ac_fn_c_check_header_compile "$LINENO" "sys/io.h" "ac_cv_header_sys_io_h" "$ac_includes_default"
  19669. if test "x$ac_cv_header_sys_io_h" = xyes
  19670. then :
  19671. printf "%s\n" "#define HAVE_SYS_IO_H 1" >>confdefs.h
  19672. fi
  19673. ac_fn_c_check_header_compile "$LINENO" "architecture/i386/pio.h" "ac_cv_header_architecture_i386_pio_h" "$ac_includes_default"
  19674. if test "x$ac_cv_header_architecture_i386_pio_h" = xyes
  19675. then :
  19676. printf "%s\n" "#define HAVE_ARCHITECTURE_I386_PIO_H 1" >>confdefs.h
  19677. fi
  19678. ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
  19679. if test "x$ac_cv_header_sched_h" = xyes
  19680. then :
  19681. printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
  19682. fi
  19683. ac_fn_c_check_header_compile "$LINENO" "fts.h" "ac_cv_header_fts_h" "$ac_includes_default"
  19684. if test "x$ac_cv_header_fts_h" = xyes
  19685. then :
  19686. printf "%s\n" "#define HAVE_FTS_H 1" >>confdefs.h
  19687. fi
  19688. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  19689. if test "x$ac_cv_type__Bool" = xyes
  19690. then :
  19691. printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
  19692. fi
  19693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
  19694. printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
  19695. if test ${ac_cv_header_stdbool_h+y}
  19696. then :
  19697. printf %s "(cached) " >&6
  19698. else case e in #(
  19699. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19700. /* end confdefs.h. */
  19701. #include <stdbool.h>
  19702. /* "true" and "false" should be usable in #if expressions and
  19703. integer constant expressions, and "bool" should be a valid
  19704. type name.
  19705. Although C99 requires bool, true, and false to be macros,
  19706. C23 and C++11 overrule that, so do not test for that.
  19707. Although C99 requires __bool_true_false_are_defined and
  19708. _Bool, C23 says they are obsolescent, so do not require
  19709. them. */
  19710. #if !true
  19711. #error "'true' is not true"
  19712. #endif
  19713. #if true != 1
  19714. #error "'true' is not equal to 1"
  19715. #endif
  19716. char b[true == 1 ? 1 : -1];
  19717. char c[true];
  19718. #if false
  19719. #error "'false' is not false"
  19720. #endif
  19721. #if false != 0
  19722. #error "'false' is not equal to 0"
  19723. #endif
  19724. char d[false == 0 ? 1 : -1];
  19725. enum { e = false, f = true, g = false * true, h = true * 256 };
  19726. char i[(bool) 0.5 == true ? 1 : -1];
  19727. char j[(bool) 0.0 == false ? 1 : -1];
  19728. char k[sizeof (bool) > 0 ? 1 : -1];
  19729. struct sb { bool s: 1; bool t; } s;
  19730. char l[sizeof s.t > 0 ? 1 : -1];
  19731. /* The following fails for
  19732. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  19733. bool m[h];
  19734. char n[sizeof m == h * sizeof m[0] ? 1 : -1];
  19735. char o[-1 - (bool) 0 < 0 ? 1 : -1];
  19736. /* Catch a bug in an HP-UX C compiler. See
  19737. https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  19738. https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
  19739. */
  19740. bool p = true;
  19741. bool *pp = &p;
  19742. int
  19743. main (void)
  19744. {
  19745. bool ps = &s;
  19746. *pp |= p;
  19747. *pp |= ! p;
  19748. /* Refer to every declared value, so they cannot be
  19749. discarded as unused. */
  19750. return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
  19751. + !l + !m + !n + !o + !p + !pp + !ps);
  19752. ;
  19753. return 0;
  19754. }
  19755. _ACEOF
  19756. if ac_fn_c_try_compile "$LINENO"
  19757. then :
  19758. ac_cv_header_stdbool_h=yes
  19759. else case e in #(
  19760. e) ac_cv_header_stdbool_h=no ;;
  19761. esac
  19762. fi
  19763. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  19764. esac
  19765. fi
  19766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  19767. printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
  19768. if test $ac_cv_header_stdbool_h = yes; then
  19769. printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
  19770. fi
  19771. ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
  19772. #if HAVE_SYS_PARAM_H
  19773. #include <sys/param.h>
  19774. #endif
  19775. #if HAVE_SYS_TYPES_H
  19776. #include <sys/types.h>
  19777. #endif
  19778. #if HAVE_SYS_SOCKET_H
  19779. #include <sys/socket.h>
  19780. #endif
  19781. "
  19782. if test "x$ac_cv_header_sys_sysctl_h" = xyes
  19783. then :
  19784. printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
  19785. fi
  19786. ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
  19787. #if HAVE_SYS_PARAM_H
  19788. #include <sys/param.h>
  19789. #endif
  19790. #if HAVE_SYS_TYPES_H
  19791. #include <sys/types.h>
  19792. #endif
  19793. #if HAVE_SYS_SOCKET_H
  19794. #include <sys/socket.h>
  19795. #endif
  19796. "
  19797. if test "x$ac_cv_header_net_route_h" = xyes
  19798. then :
  19799. printf "%s\n" "#define HAVE_NET_ROUTE_H 1" >>confdefs.h
  19800. fi
  19801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  19802. printf %s "checking for socket in -lsocket... " >&6; }
  19803. if test ${ac_cv_lib_socket_socket+y}
  19804. then :
  19805. printf %s "(cached) " >&6
  19806. else case e in #(
  19807. e) ac_check_lib_save_LIBS=$LIBS
  19808. LIBS="-lsocket $LIBS"
  19809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19810. /* end confdefs.h. */
  19811. /* Override any GCC internal prototype to avoid an error.
  19812. Use char because int might match the return type of a GCC
  19813. builtin and then its argument prototype would still apply.
  19814. The 'extern "C"' is for builds by C++ compilers;
  19815. although this is not generally supported in C code supporting it here
  19816. has little cost and some practical benefit (sr 110532). */
  19817. #ifdef __cplusplus
  19818. extern "C"
  19819. #endif
  19820. char socket (void);
  19821. int
  19822. main (void)
  19823. {
  19824. return socket ();
  19825. ;
  19826. return 0;
  19827. }
  19828. _ACEOF
  19829. if ac_fn_c_try_link "$LINENO"
  19830. then :
  19831. ac_cv_lib_socket_socket=yes
  19832. else case e in #(
  19833. e) ac_cv_lib_socket_socket=no ;;
  19834. esac
  19835. fi
  19836. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19837. conftest$ac_exeext conftest.$ac_ext
  19838. LIBS=$ac_check_lib_save_LIBS ;;
  19839. esac
  19840. fi
  19841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  19842. printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
  19843. if test "x$ac_cv_lib_socket_socket" = xyes
  19844. then :
  19845. printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
  19846. LIBS="-lsocket $LIBS"
  19847. fi
  19848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  19849. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  19850. if test ${ac_cv_lib_nsl_gethostbyname+y}
  19851. then :
  19852. printf %s "(cached) " >&6
  19853. else case e in #(
  19854. e) ac_check_lib_save_LIBS=$LIBS
  19855. LIBS="-lnsl $LIBS"
  19856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19857. /* end confdefs.h. */
  19858. /* Override any GCC internal prototype to avoid an error.
  19859. Use char because int might match the return type of a GCC
  19860. builtin and then its argument prototype would still apply.
  19861. The 'extern "C"' is for builds by C++ compilers;
  19862. although this is not generally supported in C code supporting it here
  19863. has little cost and some practical benefit (sr 110532). */
  19864. #ifdef __cplusplus
  19865. extern "C"
  19866. #endif
  19867. char gethostbyname (void);
  19868. int
  19869. main (void)
  19870. {
  19871. return gethostbyname ();
  19872. ;
  19873. return 0;
  19874. }
  19875. _ACEOF
  19876. if ac_fn_c_try_link "$LINENO"
  19877. then :
  19878. ac_cv_lib_nsl_gethostbyname=yes
  19879. else case e in #(
  19880. e) ac_cv_lib_nsl_gethostbyname=no ;;
  19881. esac
  19882. fi
  19883. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19884. conftest$ac_exeext conftest.$ac_ext
  19885. LIBS=$ac_check_lib_save_LIBS ;;
  19886. esac
  19887. fi
  19888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  19889. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  19890. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  19891. then :
  19892. printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
  19893. LIBS="-lnsl $LIBS"
  19894. fi
  19895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  19896. printf %s "checking for nanosleep in -lrt... " >&6; }
  19897. if test ${ac_cv_lib_rt_nanosleep+y}
  19898. then :
  19899. printf %s "(cached) " >&6
  19900. else case e in #(
  19901. e) ac_check_lib_save_LIBS=$LIBS
  19902. LIBS="-lrt $LIBS"
  19903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19904. /* end confdefs.h. */
  19905. /* Override any GCC internal prototype to avoid an error.
  19906. Use char because int might match the return type of a GCC
  19907. builtin and then its argument prototype would still apply.
  19908. The 'extern "C"' is for builds by C++ compilers;
  19909. although this is not generally supported in C code supporting it here
  19910. has little cost and some practical benefit (sr 110532). */
  19911. #ifdef __cplusplus
  19912. extern "C"
  19913. #endif
  19914. char nanosleep (void);
  19915. int
  19916. main (void)
  19917. {
  19918. return nanosleep ();
  19919. ;
  19920. return 0;
  19921. }
  19922. _ACEOF
  19923. if ac_fn_c_try_link "$LINENO"
  19924. then :
  19925. ac_cv_lib_rt_nanosleep=yes
  19926. else case e in #(
  19927. e) ac_cv_lib_rt_nanosleep=no ;;
  19928. esac
  19929. fi
  19930. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19931. conftest$ac_exeext conftest.$ac_ext
  19932. LIBS=$ac_check_lib_save_LIBS ;;
  19933. esac
  19934. fi
  19935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  19936. printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
  19937. if test "x$ac_cv_lib_rt_nanosleep" = xyes
  19938. then :
  19939. printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
  19940. LIBS="-lrt $LIBS"
  19941. fi
  19942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for resolv in -lresolv" >&5
  19943. printf %s "checking for resolv in -lresolv... " >&6; }
  19944. if test ${ac_cv_lib_resolv_resolv+y}
  19945. then :
  19946. printf %s "(cached) " >&6
  19947. else case e in #(
  19948. e) ac_check_lib_save_LIBS=$LIBS
  19949. LIBS="-lresolv $LIBS"
  19950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19951. /* end confdefs.h. */
  19952. /* Override any GCC internal prototype to avoid an error.
  19953. Use char because int might match the return type of a GCC
  19954. builtin and then its argument prototype would still apply.
  19955. The 'extern "C"' is for builds by C++ compilers;
  19956. although this is not generally supported in C code supporting it here
  19957. has little cost and some practical benefit (sr 110532). */
  19958. #ifdef __cplusplus
  19959. extern "C"
  19960. #endif
  19961. char resolv (void);
  19962. int
  19963. main (void)
  19964. {
  19965. return resolv ();
  19966. ;
  19967. return 0;
  19968. }
  19969. _ACEOF
  19970. if ac_fn_c_try_link "$LINENO"
  19971. then :
  19972. ac_cv_lib_resolv_resolv=yes
  19973. else case e in #(
  19974. e) ac_cv_lib_resolv_resolv=no ;;
  19975. esac
  19976. fi
  19977. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19978. conftest$ac_exeext conftest.$ac_ext
  19979. LIBS=$ac_check_lib_save_LIBS ;;
  19980. esac
  19981. fi
  19982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_resolv" >&5
  19983. printf "%s\n" "$ac_cv_lib_resolv_resolv" >&6; }
  19984. if test "x$ac_cv_lib_resolv_resolv" = xyes
  19985. then :
  19986. printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
  19987. LIBS="-lresolv $LIBS"
  19988. fi
  19989. ac_func=
  19990. for ac_item in $ac_func_c_list
  19991. do
  19992. if test $ac_func; then
  19993. ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  19994. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  19995. echo "#define $ac_item 1" >> confdefs.h
  19996. fi
  19997. ac_func=
  19998. else
  19999. ac_func=$ac_item
  20000. fi
  20001. done
  20002. if test "x$ac_cv_func_fork" = xyes; then
  20003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  20004. printf %s "checking for working fork... " >&6; }
  20005. if test ${ac_cv_func_fork_works+y}
  20006. then :
  20007. printf %s "(cached) " >&6
  20008. else case e in #(
  20009. e) if test "$cross_compiling" = yes
  20010. then :
  20011. ac_cv_func_fork_works=cross
  20012. else case e in #(
  20013. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20014. /* end confdefs.h. */
  20015. $ac_includes_default
  20016. int
  20017. main (void)
  20018. {
  20019. /* By R. Kuhlmann. */
  20020. return fork () < 0;
  20021. ;
  20022. return 0;
  20023. }
  20024. _ACEOF
  20025. if ac_fn_c_try_run "$LINENO"
  20026. then :
  20027. ac_cv_func_fork_works=yes
  20028. else case e in #(
  20029. e) ac_cv_func_fork_works=no ;;
  20030. esac
  20031. fi
  20032. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20033. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  20034. esac
  20035. fi
  20036. ;;
  20037. esac
  20038. fi
  20039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  20040. printf "%s\n" "$ac_cv_func_fork_works" >&6; }
  20041. else
  20042. ac_cv_func_fork_works=$ac_cv_func_fork
  20043. fi
  20044. if test "x$ac_cv_func_fork_works" = xcross; then
  20045. case $host in
  20046. *-*-amigaos* | *-*-msdosdjgpp*)
  20047. # Override, as these systems have only a dummy fork() stub
  20048. ac_cv_func_fork_works=no
  20049. ;;
  20050. *)
  20051. ac_cv_func_fork_works=yes
  20052. ;;
  20053. esac
  20054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  20055. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  20056. fi
  20057. ac_cv_func_vfork_works=$ac_cv_func_vfork
  20058. if test "x$ac_cv_func_vfork" = xyes; then
  20059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  20060. printf %s "checking for working vfork... " >&6; }
  20061. if test ${ac_cv_func_vfork_works+y}
  20062. then :
  20063. printf %s "(cached) " >&6
  20064. else case e in #(
  20065. e) if test "$cross_compiling" = yes
  20066. then :
  20067. ac_cv_func_vfork_works=cross
  20068. else case e in #(
  20069. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20070. /* end confdefs.h. */
  20071. /* Thanks to Paul Eggert for this test. */
  20072. $ac_includes_default
  20073. #include <signal.h>
  20074. #include <sys/wait.h>
  20075. #ifdef HAVE_VFORK_H
  20076. # include <vfork.h>
  20077. #endif
  20078. static void
  20079. do_nothing (int sig)
  20080. {
  20081. (void) sig;
  20082. }
  20083. /* On some sparc systems, changes by the child to local and incoming
  20084. argument registers are propagated back to the parent. The compiler
  20085. is told about this with #include <vfork.h>, but some compilers
  20086. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  20087. static variable whose address is put into a register that is
  20088. clobbered by the vfork. */
  20089. static void
  20090. sparc_address_test (int arg)
  20091. {
  20092. static pid_t child;
  20093. if (!child) {
  20094. child = vfork ();
  20095. if (child < 0) {
  20096. perror ("vfork");
  20097. _exit(2);
  20098. }
  20099. if (!child) {
  20100. arg = getpid();
  20101. write(-1, "", 0);
  20102. _exit (arg);
  20103. }
  20104. }
  20105. }
  20106. int
  20107. main (void)
  20108. {
  20109. pid_t parent = getpid ();
  20110. pid_t child;
  20111. sparc_address_test (0);
  20112. /* On Solaris 2.4, changes by the child to the signal handler
  20113. also munge signal handlers in the parent. To detect this,
  20114. start by putting the parent's handler in a known state. */
  20115. signal (SIGTERM, SIG_DFL);
  20116. child = vfork ();
  20117. if (child == 0) {
  20118. /* Here is another test for sparc vfork register problems. This
  20119. test uses lots of local variables, at least as many local
  20120. variables as main has allocated so far including compiler
  20121. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  20122. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  20123. reuse the register of parent for one of the local variables,
  20124. since it will think that parent can't possibly be used any more
  20125. in this routine. Assigning to the local variable will thus
  20126. munge parent in the parent process. */
  20127. pid_t
  20128. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  20129. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  20130. /* Convince the compiler that p..p7 are live; otherwise, it might
  20131. use the same hardware register for all 8 local variables. */
  20132. if (p != p1 || p != p2 || p != p3 || p != p4
  20133. || p != p5 || p != p6 || p != p7)
  20134. _exit(1);
  20135. /* Alter the child's signal handler. */
  20136. if (signal (SIGTERM, do_nothing) != SIG_DFL)
  20137. _exit(1);
  20138. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  20139. from child file descriptors. If the child closes a descriptor
  20140. before it execs or exits, this munges the parent's descriptor
  20141. as well. Test for this by closing stdout in the child. */
  20142. _exit(close(fileno(stdout)) != 0);
  20143. } else {
  20144. int status;
  20145. struct stat st;
  20146. while (wait(&status) != child)
  20147. ;
  20148. return (
  20149. /* Was there some problem with vforking? */
  20150. child < 0
  20151. /* Did the child munge the parent's signal handler? */
  20152. || signal (SIGTERM, SIG_DFL) != SIG_DFL
  20153. /* Did the child fail? (This shouldn't happen.) */
  20154. || status
  20155. /* Did the vfork/compiler bug occur? */
  20156. || parent != getpid()
  20157. /* Did the file descriptor bug occur? */
  20158. || fstat(fileno(stdout), &st) != 0
  20159. );
  20160. }
  20161. }
  20162. _ACEOF
  20163. if ac_fn_c_try_run "$LINENO"
  20164. then :
  20165. ac_cv_func_vfork_works=yes
  20166. else case e in #(
  20167. e) ac_cv_func_vfork_works=no ;;
  20168. esac
  20169. fi
  20170. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20171. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  20172. esac
  20173. fi
  20174. ;;
  20175. esac
  20176. fi
  20177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  20178. printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
  20179. fi;
  20180. if test "x$ac_cv_func_fork_works" = xcross; then
  20181. ac_cv_func_vfork_works=$ac_cv_func_vfork
  20182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  20183. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  20184. fi
  20185. if test "x$ac_cv_func_vfork_works" = xyes; then
  20186. printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  20187. else
  20188. printf "%s\n" "#define vfork fork" >>confdefs.h
  20189. fi
  20190. if test "x$ac_cv_func_fork_works" = xyes; then
  20191. printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
  20192. fi
  20193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  20194. printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
  20195. if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
  20196. then :
  20197. printf %s "(cached) " >&6
  20198. else case e in #(
  20199. e) rm -f conftest.sym conftest.file
  20200. echo >conftest.file
  20201. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  20202. if test "$cross_compiling" = yes
  20203. then :
  20204. case "$host_os" in # ((
  20205. # Guess yes on glibc systems.
  20206. *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
  20207. # If we don't know, assume the worst.
  20208. *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
  20209. esac
  20210. else case e in #(
  20211. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20212. /* end confdefs.h. */
  20213. $ac_includes_default
  20214. int
  20215. main (void)
  20216. {
  20217. struct stat sbuf;
  20218. /* Linux will dereference the symlink and fail, as required by POSIX.
  20219. That is better in the sense that it means we will not
  20220. have to compile and use the lstat wrapper. */
  20221. return lstat ("conftest.sym/", &sbuf) == 0;
  20222. ;
  20223. return 0;
  20224. }
  20225. _ACEOF
  20226. if ac_fn_c_try_run "$LINENO"
  20227. then :
  20228. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  20229. else case e in #(
  20230. e) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
  20231. esac
  20232. fi
  20233. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20234. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  20235. esac
  20236. fi
  20237. else
  20238. # If the 'ln -s' command failed, then we probably don't even
  20239. # have an lstat function.
  20240. ac_cv_func_lstat_dereferences_slashed_symlink=no
  20241. fi
  20242. rm -f conftest.sym conftest.file
  20243. ;;
  20244. esac
  20245. fi
  20246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  20247. printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  20248. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  20249. printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
  20250. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  20251. case " $LIBOBJS " in
  20252. *" lstat.$ac_objext "* ) ;;
  20253. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  20254. ;;
  20255. esac
  20256. fi
  20257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  20258. printf %s "checking for working memcmp... " >&6; }
  20259. if test ${ac_cv_func_memcmp_working+y}
  20260. then :
  20261. printf %s "(cached) " >&6
  20262. else case e in #(
  20263. e) if test "$cross_compiling" = yes
  20264. then :
  20265. ac_cv_func_memcmp_working=no
  20266. else case e in #(
  20267. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20268. /* end confdefs.h. */
  20269. $ac_includes_default
  20270. int
  20271. main (void)
  20272. {
  20273. /* Some versions of memcmp are not 8-bit clean. */
  20274. char c0 = '\100', c1 = '\200', c2 = '\201';
  20275. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  20276. return 1;
  20277. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  20278. or more and with at least one buffer not starting on a 4-byte boundary.
  20279. William Lewis provided this test program. */
  20280. {
  20281. char foo[21];
  20282. char bar[21];
  20283. int i;
  20284. for (i = 0; i < 4; i++)
  20285. {
  20286. char *a = foo + i;
  20287. char *b = bar + i;
  20288. strcpy (a, "--------01111111");
  20289. strcpy (b, "--------10000000");
  20290. if (memcmp (a, b, 16) >= 0)
  20291. return 1;
  20292. }
  20293. return 0;
  20294. }
  20295. ;
  20296. return 0;
  20297. }
  20298. _ACEOF
  20299. if ac_fn_c_try_run "$LINENO"
  20300. then :
  20301. ac_cv_func_memcmp_working=yes
  20302. else case e in #(
  20303. e) ac_cv_func_memcmp_working=no ;;
  20304. esac
  20305. fi
  20306. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20307. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  20308. esac
  20309. fi
  20310. ;;
  20311. esac
  20312. fi
  20313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  20314. printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
  20315. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  20316. *" memcmp.$ac_objext "* ) ;;
  20317. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  20318. ;;
  20319. esac
  20320. if test "x$ac_cv_func_vprintf" = xno
  20321. then :
  20322. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  20323. if test "x$ac_cv_func__doprnt" = xyes
  20324. then :
  20325. printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
  20326. fi
  20327. fi
  20328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  20329. printf %s "checking for working mktime... " >&6; }
  20330. if test ${ac_cv_func_working_mktime+y}
  20331. then :
  20332. printf %s "(cached) " >&6
  20333. else case e in #(
  20334. e) if test "$cross_compiling" = yes
  20335. then :
  20336. ac_cv_func_working_mktime=no
  20337. else case e in #(
  20338. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20339. /* end confdefs.h. */
  20340. /* Test program from Paul Eggert and Tony Leneis. */
  20341. #include <time.h>
  20342. #ifdef HAVE_SYS_TIME_H
  20343. # include <sys/time.h>
  20344. #endif
  20345. #include <limits.h>
  20346. #include <stdlib.h>
  20347. #ifdef HAVE_UNISTD_H
  20348. # include <unistd.h>
  20349. #endif
  20350. #ifndef HAVE_ALARM
  20351. # define alarm(X) /* empty */
  20352. #endif
  20353. /* Work around redefinition to rpl_putenv by other config tests. */
  20354. #undef putenv
  20355. static time_t time_t_max;
  20356. static time_t time_t_min;
  20357. /* Values we'll use to set the TZ environment variable. */
  20358. static const char *tz_strings[] = {
  20359. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  20360. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  20361. };
  20362. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  20363. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  20364. Based on a problem report from Andreas Jaeger. */
  20365. static int
  20366. spring_forward_gap (void)
  20367. {
  20368. /* glibc (up to about 1998-10-07) failed this test. */
  20369. struct tm tm;
  20370. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  20371. instead of "TZ=America/Vancouver" in order to detect the bug even
  20372. on systems that don't support the Olson extension, or don't have the
  20373. full zoneinfo tables installed. */
  20374. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  20375. tm.tm_year = 98;
  20376. tm.tm_mon = 3;
  20377. tm.tm_mday = 5;
  20378. tm.tm_hour = 2;
  20379. tm.tm_min = 0;
  20380. tm.tm_sec = 0;
  20381. tm.tm_isdst = -1;
  20382. return mktime (&tm) != (time_t) -1;
  20383. }
  20384. static int
  20385. mktime_test1 (time_t now)
  20386. {
  20387. struct tm *lt;
  20388. return ! (lt = localtime (&now)) || mktime (lt) == now;
  20389. }
  20390. static int
  20391. mktime_test (time_t now)
  20392. {
  20393. return (mktime_test1 (now)
  20394. && mktime_test1 ((time_t) (time_t_max - now))
  20395. && mktime_test1 ((time_t) (time_t_min + now)));
  20396. }
  20397. static int
  20398. irix_6_4_bug (void)
  20399. {
  20400. /* Based on code from Ariel Faigon. */
  20401. struct tm tm;
  20402. tm.tm_year = 96;
  20403. tm.tm_mon = 3;
  20404. tm.tm_mday = 0;
  20405. tm.tm_hour = 0;
  20406. tm.tm_min = 0;
  20407. tm.tm_sec = 0;
  20408. tm.tm_isdst = -1;
  20409. mktime (&tm);
  20410. return tm.tm_mon == 2 && tm.tm_mday == 31;
  20411. }
  20412. static int
  20413. bigtime_test (int j)
  20414. {
  20415. struct tm tm;
  20416. time_t now;
  20417. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  20418. now = mktime (&tm);
  20419. if (now != (time_t) -1)
  20420. {
  20421. struct tm *lt = localtime (&now);
  20422. if (! (lt
  20423. && lt->tm_year == tm.tm_year
  20424. && lt->tm_mon == tm.tm_mon
  20425. && lt->tm_mday == tm.tm_mday
  20426. && lt->tm_hour == tm.tm_hour
  20427. && lt->tm_min == tm.tm_min
  20428. && lt->tm_sec == tm.tm_sec
  20429. && lt->tm_yday == tm.tm_yday
  20430. && lt->tm_wday == tm.tm_wday
  20431. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  20432. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  20433. return 0;
  20434. }
  20435. return 1;
  20436. }
  20437. static int
  20438. year_2050_test (void)
  20439. {
  20440. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  20441. ignoring leap seconds. */
  20442. unsigned long int answer = 2527315200UL;
  20443. struct tm tm;
  20444. time_t t;
  20445. tm.tm_year = 2050 - 1900;
  20446. tm.tm_mon = 2 - 1;
  20447. tm.tm_mday = 1;
  20448. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  20449. tm.tm_isdst = -1;
  20450. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  20451. instead of "TZ=America/Vancouver" in order to detect the bug even
  20452. on systems that don't support the Olson extension, or don't have the
  20453. full zoneinfo tables installed. */
  20454. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  20455. t = mktime (&tm);
  20456. /* Check that the result is either a failure, or close enough
  20457. to the correct answer that we can assume the discrepancy is
  20458. due to leap seconds. */
  20459. return (t == (time_t) -1
  20460. || (0 < t && answer - 120 <= t && t <= answer + 120));
  20461. }
  20462. int
  20463. main (void)
  20464. {
  20465. time_t t, delta;
  20466. int i, j;
  20467. /* This test makes some buggy mktime implementations loop.
  20468. Give up after 60 seconds; a mktime slower than that
  20469. isn't worth using anyway. */
  20470. alarm (60);
  20471. for (;;)
  20472. {
  20473. t = (time_t_max << 1) + 1;
  20474. if (t <= time_t_max)
  20475. break;
  20476. time_t_max = t;
  20477. }
  20478. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  20479. delta = time_t_max / 997; /* a suitable prime number */
  20480. for (i = 0; i < N_STRINGS; i++)
  20481. {
  20482. if (tz_strings[i])
  20483. putenv ((char*) tz_strings[i]);
  20484. for (t = 0; t <= time_t_max - delta; t += delta)
  20485. if (! mktime_test (t))
  20486. return 1;
  20487. if (! (mktime_test ((time_t) 1)
  20488. && mktime_test ((time_t) (60 * 60))
  20489. && mktime_test ((time_t) (60 * 60 * 24))))
  20490. return 1;
  20491. for (j = 1; ; j <<= 1)
  20492. if (! bigtime_test (j))
  20493. return 1;
  20494. else if (INT_MAX / 2 < j)
  20495. break;
  20496. if (! bigtime_test (INT_MAX))
  20497. return 1;
  20498. }
  20499. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  20500. }
  20501. _ACEOF
  20502. if ac_fn_c_try_run "$LINENO"
  20503. then :
  20504. ac_cv_func_working_mktime=yes
  20505. else case e in #(
  20506. e) ac_cv_func_working_mktime=no ;;
  20507. esac
  20508. fi
  20509. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20510. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  20511. esac
  20512. fi
  20513. ;;
  20514. esac
  20515. fi
  20516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  20517. printf "%s\n" "$ac_cv_func_working_mktime" >&6; }
  20518. if test $ac_cv_func_working_mktime = no; then
  20519. case " $LIBOBJS " in
  20520. *" mktime.$ac_objext "* ) ;;
  20521. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  20522. ;;
  20523. esac
  20524. fi
  20525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  20526. printf %s "checking for working mmap... " >&6; }
  20527. if test ${ac_cv_func_mmap_fixed_mapped+y}
  20528. then :
  20529. printf %s "(cached) " >&6
  20530. else case e in #(
  20531. e) if test "$cross_compiling" = yes
  20532. then :
  20533. case "$host_os" in # ((
  20534. # Guess yes on platforms where we know the result.
  20535. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  20536. # If we don't know, assume the worst.
  20537. *) ac_cv_func_mmap_fixed_mapped=no ;;
  20538. esac
  20539. else case e in #(
  20540. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20541. /* end confdefs.h. */
  20542. $ac_includes_default
  20543. /* malloc might have been renamed as rpl_malloc. */
  20544. #undef malloc
  20545. /* Thanks to Mike Haertel and Jim Avera for this test.
  20546. Here is a matrix of mmap possibilities:
  20547. mmap private not fixed
  20548. mmap private fixed at somewhere currently unmapped
  20549. mmap private fixed at somewhere already mapped
  20550. mmap shared not fixed
  20551. mmap shared fixed at somewhere currently unmapped
  20552. mmap shared fixed at somewhere already mapped
  20553. For private mappings, we should verify that changes cannot be read()
  20554. back from the file, nor mmap's back from the file at a different
  20555. address. (There have been systems where private was not correctly
  20556. implemented like the infamous i386 svr4.0, and systems where the
  20557. VM page cache was not coherent with the file system buffer cache
  20558. like early versions of FreeBSD and possibly contemporary NetBSD.)
  20559. For shared mappings, we should conversely verify that changes get
  20560. propagated back to all the places they're supposed to be. */
  20561. #include <fcntl.h>
  20562. #include <sys/mman.h>
  20563. #ifndef getpagesize
  20564. /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
  20565. been removed from POSIX and is limited to page sizes that fit in 'int'. */
  20566. # ifdef _SC_PAGESIZE
  20567. # define getpagesize() sysconf (_SC_PAGESIZE)
  20568. # elif defined _SC_PAGE_SIZE
  20569. # define getpagesize() sysconf (_SC_PAGE_SIZE)
  20570. # elif HAVE_GETPAGESIZE
  20571. int getpagesize ();
  20572. # else
  20573. # ifdef HAVE_SYS_PARAM_H
  20574. # include <sys/param.h>
  20575. # ifdef EXEC_PAGESIZE
  20576. # define getpagesize() EXEC_PAGESIZE
  20577. # else /* no EXEC_PAGESIZE */
  20578. # ifdef NBPG
  20579. # define getpagesize() NBPG * CLSIZE
  20580. # ifndef CLSIZE
  20581. # define CLSIZE 1
  20582. # endif /* no CLSIZE */
  20583. # else /* no NBPG */
  20584. # ifdef NBPC
  20585. # define getpagesize() NBPC
  20586. # else /* no NBPC */
  20587. # ifdef PAGESIZE
  20588. # define getpagesize() PAGESIZE
  20589. # endif /* PAGESIZE */
  20590. # endif /* no NBPC */
  20591. # endif /* no NBPG */
  20592. # endif /* no EXEC_PAGESIZE */
  20593. # else /* no HAVE_SYS_PARAM_H */
  20594. # define getpagesize() 8192 /* punt totally */
  20595. # endif /* no HAVE_SYS_PARAM_H */
  20596. # endif
  20597. #endif
  20598. int
  20599. main (void)
  20600. {
  20601. char *data, *data2, *data3;
  20602. const char *cdata2;
  20603. long i, pagesize;
  20604. int fd, fd2;
  20605. pagesize = getpagesize ();
  20606. /* First, make a file with some known garbage in it. */
  20607. data = (char *) malloc (pagesize);
  20608. if (!data)
  20609. return 1;
  20610. for (i = 0; i < pagesize; ++i)
  20611. *(data + i) = rand ();
  20612. umask (0);
  20613. fd = creat ("conftest.mmap", 0600);
  20614. if (fd < 0)
  20615. return 2;
  20616. if (write (fd, data, pagesize) != pagesize)
  20617. return 3;
  20618. close (fd);
  20619. /* Next, check that the tail of a page is zero-filled. File must have
  20620. non-zero length, otherwise we risk SIGBUS for entire page. */
  20621. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  20622. if (fd2 < 0)
  20623. return 4;
  20624. cdata2 = "";
  20625. if (write (fd2, cdata2, 1) != 1)
  20626. return 5;
  20627. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  20628. if (data2 == MAP_FAILED)
  20629. return 6;
  20630. for (i = 0; i < pagesize; ++i)
  20631. if (*(data2 + i))
  20632. return 7;
  20633. close (fd2);
  20634. /* 'return 8;' not currently used. */
  20635. /* Next, try to mmap the file at a fixed address which already has
  20636. something else allocated at it. If we can, also make sure that
  20637. we see the same garbage. */
  20638. fd = open ("conftest.mmap", O_RDWR);
  20639. if (fd < 0)
  20640. return 9;
  20641. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  20642. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  20643. return 10;
  20644. for (i = 0; i < pagesize; ++i)
  20645. if (*(data + i) != *(data2 + i))
  20646. return 11;
  20647. /* Finally, make sure that changes to the mapped area do not
  20648. percolate back to the file as seen by read(). (This is a bug on
  20649. some variants of i386 svr4.0.) */
  20650. for (i = 0; i < pagesize; ++i)
  20651. *(data2 + i) = *(data2 + i) + 1;
  20652. data3 = (char *) malloc (pagesize);
  20653. if (!data3)
  20654. return 12;
  20655. if (read (fd, data3, pagesize) != pagesize)
  20656. return 13;
  20657. for (i = 0; i < pagesize; ++i)
  20658. if (*(data + i) != *(data3 + i))
  20659. return 14;
  20660. close (fd);
  20661. free (data);
  20662. free (data3);
  20663. return 0;
  20664. }
  20665. _ACEOF
  20666. if ac_fn_c_try_run "$LINENO"
  20667. then :
  20668. ac_cv_func_mmap_fixed_mapped=yes
  20669. else case e in #(
  20670. e) ac_cv_func_mmap_fixed_mapped=no ;;
  20671. esac
  20672. fi
  20673. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20674. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  20675. esac
  20676. fi
  20677. ;;
  20678. esac
  20679. fi
  20680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  20681. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  20682. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  20683. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  20684. fi
  20685. rm -f conftest.mmap conftest.txt
  20686. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
  20687. if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes
  20688. then :
  20689. printf "%s\n" "#define HAVE_STRUCT_TIMEVAL_TV_SEC 1" >>confdefs.h
  20690. fi
  20691. ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
  20692. if test "x$ac_cv_func_alarm" = xyes
  20693. then :
  20694. printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
  20695. fi
  20696. ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
  20697. if test "x$ac_cv_func_atexit" = xyes
  20698. then :
  20699. printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
  20700. fi
  20701. ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
  20702. if test "x$ac_cv_func_bzero" = xyes
  20703. then :
  20704. printf "%s\n" "#define HAVE_BZERO 1" >>confdefs.h
  20705. fi
  20706. ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
  20707. if test "x$ac_cv_func_dup2" = xyes
  20708. then :
  20709. printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
  20710. fi
  20711. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20712. if test "x$ac_cv_func_gethostbyname" = xyes
  20713. then :
  20714. printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
  20715. fi
  20716. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  20717. if test "x$ac_cv_func_getpagesize" = xyes
  20718. then :
  20719. printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
  20720. fi
  20721. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  20722. if test "x$ac_cv_func_gettimeofday" = xyes
  20723. then :
  20724. printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
  20725. fi
  20726. ac_fn_c_check_func "$LINENO" "ctime" "ac_cv_func_ctime"
  20727. if test "x$ac_cv_func_ctime" = xyes
  20728. then :
  20729. printf "%s\n" "#define HAVE_CTIME 1" >>confdefs.h
  20730. fi
  20731. ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
  20732. if test "x$ac_cv_func_inet_ntoa" = xyes
  20733. then :
  20734. printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h
  20735. fi
  20736. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  20737. if test "x$ac_cv_func_memmove" = xyes
  20738. then :
  20739. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  20740. fi
  20741. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  20742. if test "x$ac_cv_func_memset" = xyes
  20743. then :
  20744. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  20745. fi
  20746. ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
  20747. if test "x$ac_cv_func_munmap" = xyes
  20748. then :
  20749. printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
  20750. fi
  20751. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  20752. if test "x$ac_cv_func_pow" = xyes
  20753. then :
  20754. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20755. fi
  20756. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  20757. if test "x$ac_cv_func_putenv" = xyes
  20758. then :
  20759. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  20760. fi
  20761. ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
  20762. if test "x$ac_cv_func_realpath" = xyes
  20763. then :
  20764. printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
  20765. fi
  20766. ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
  20767. if test "x$ac_cv_func_regcomp" = xyes
  20768. then :
  20769. printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
  20770. fi
  20771. ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
  20772. if test "x$ac_cv_func_strdup" = xyes
  20773. then :
  20774. printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
  20775. fi
  20776. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  20777. if test "x$ac_cv_func_select" = xyes
  20778. then :
  20779. printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
  20780. fi
  20781. ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
  20782. if test "x$ac_cv_func_socket" = xyes
  20783. then :
  20784. printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
  20785. fi
  20786. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  20787. if test "x$ac_cv_func_strcasecmp" = xyes
  20788. then :
  20789. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  20790. fi
  20791. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  20792. if test "x$ac_cv_func_strchr" = xyes
  20793. then :
  20794. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  20795. fi
  20796. ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
  20797. if test "x$ac_cv_func_strcspn" = xyes
  20798. then :
  20799. printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
  20800. fi
  20801. ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
  20802. if test "x$ac_cv_func_strdup" = xyes
  20803. then :
  20804. printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
  20805. fi
  20806. ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
  20807. if test "x$ac_cv_func_strerror" = xyes
  20808. then :
  20809. printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
  20810. fi
  20811. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  20812. if test "x$ac_cv_func_strtol" = xyes
  20813. then :
  20814. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  20815. fi
  20816. ac_fn_c_check_func "$LINENO" "strncpy" "ac_cv_func_strncpy"
  20817. if test "x$ac_cv_func_strncpy" = xyes
  20818. then :
  20819. printf "%s\n" "#define HAVE_STRNCPY 1" >>confdefs.h
  20820. fi
  20821. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  20822. if test "x$ac_cv_func_strtoull" = xyes
  20823. then :
  20824. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  20825. fi
  20826. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  20827. if test "x$ac_cv_func_poll" = xyes
  20828. then :
  20829. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  20830. fi
  20831. ac_fn_c_check_func "$LINENO" "ntohll" "ac_cv_func_ntohll"
  20832. if test "x$ac_cv_func_ntohll" = xyes
  20833. then :
  20834. printf "%s\n" "#define HAVE_NTOHLL 1" >>confdefs.h
  20835. fi
  20836. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  20837. if test "x$ac_cv_func_mmap" = xyes
  20838. then :
  20839. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  20840. fi
  20841. ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  20842. if test "x$ac_cv_func_snprintf" = xyes
  20843. then :
  20844. printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
  20845. fi
  20846. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  20847. if test "x$ac_cv_func_vsnprintf" = xyes
  20848. then :
  20849. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  20850. fi
  20851. ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
  20852. if test "x$ac_cv_func_strsignal" = xyes
  20853. then :
  20854. printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
  20855. fi
  20856. ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
  20857. if test "x$ac_cv_func_strpbrk" = xyes
  20858. then :
  20859. printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
  20860. fi
  20861. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  20862. if test "x$ac_cv_func_strrchr" = xyes
  20863. then :
  20864. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  20865. fi
  20866. ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
  20867. if test "x$ac_cv_func_strspn" = xyes
  20868. then :
  20869. printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
  20870. fi
  20871. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  20872. if test "x$ac_cv_func_strstr" = xyes
  20873. then :
  20874. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  20875. fi
  20876. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  20877. if test "x$ac_cv_func_strtoul" = xyes
  20878. then :
  20879. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  20880. fi
  20881. ac_fn_c_check_func "$LINENO" "ioperm" "ac_cv_func_ioperm"
  20882. if test "x$ac_cv_func_ioperm" = xyes
  20883. then :
  20884. printf "%s\n" "#define HAVE_IOPERM 1" >>confdefs.h
  20885. fi
  20886. for ac_func in strlcpy
  20887. do :
  20888. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  20889. if test "x$ac_cv_func_strlcpy" = xyes
  20890. then :
  20891. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  20892. have_strlcpy=true
  20893. else case e in #(
  20894. e) have_strlcpy=false ;;
  20895. esac
  20896. fi
  20897. done
  20898. if test x$have_strlcpy = xtrue; then
  20899. SYSTEM_STRLCPY_TRUE=
  20900. SYSTEM_STRLCPY_FALSE='#'
  20901. else
  20902. SYSTEM_STRLCPY_TRUE='#'
  20903. SYSTEM_STRLCPY_FALSE=
  20904. fi
  20905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  20906. printf %s "checking whether byte ordering is bigendian... " >&6; }
  20907. if test ${ac_cv_c_bigendian+y}
  20908. then :
  20909. printf %s "(cached) " >&6
  20910. else case e in #(
  20911. e) ac_cv_c_bigendian=unknown
  20912. # See if we're dealing with a universal compiler.
  20913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20914. /* end confdefs.h. */
  20915. #ifndef __APPLE_CC__
  20916. not a universal capable compiler
  20917. #endif
  20918. typedef int dummy;
  20919. _ACEOF
  20920. if ac_fn_c_try_compile "$LINENO"
  20921. then :
  20922. # Check for potential -arch flags. It is not universal unless
  20923. # there are at least two -arch flags with different values.
  20924. ac_arch=
  20925. ac_prev=
  20926. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  20927. if test -n "$ac_prev"; then
  20928. case $ac_word in
  20929. i?86 | x86_64 | ppc | ppc64)
  20930. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  20931. ac_arch=$ac_word
  20932. else
  20933. ac_cv_c_bigendian=universal
  20934. break
  20935. fi
  20936. ;;
  20937. esac
  20938. ac_prev=
  20939. elif test "x$ac_word" = "x-arch"; then
  20940. ac_prev=arch
  20941. fi
  20942. done
  20943. fi
  20944. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20945. if test $ac_cv_c_bigendian = unknown; then
  20946. # See if sys/param.h defines the BYTE_ORDER macro.
  20947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20948. /* end confdefs.h. */
  20949. #include <sys/types.h>
  20950. #include <sys/param.h>
  20951. int
  20952. main (void)
  20953. {
  20954. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
  20955. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
  20956. && LITTLE_ENDIAN)
  20957. bogus endian macros
  20958. #endif
  20959. ;
  20960. return 0;
  20961. }
  20962. _ACEOF
  20963. if ac_fn_c_try_compile "$LINENO"
  20964. then :
  20965. # It does; now see whether it defined to BIG_ENDIAN or not.
  20966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20967. /* end confdefs.h. */
  20968. #include <sys/types.h>
  20969. #include <sys/param.h>
  20970. int
  20971. main (void)
  20972. {
  20973. #if BYTE_ORDER != BIG_ENDIAN
  20974. not big endian
  20975. #endif
  20976. ;
  20977. return 0;
  20978. }
  20979. _ACEOF
  20980. if ac_fn_c_try_compile "$LINENO"
  20981. then :
  20982. ac_cv_c_bigendian=yes
  20983. else case e in #(
  20984. e) ac_cv_c_bigendian=no ;;
  20985. esac
  20986. fi
  20987. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20988. fi
  20989. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20990. fi
  20991. if test $ac_cv_c_bigendian = unknown; then
  20992. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  20993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20994. /* end confdefs.h. */
  20995. #include <limits.h>
  20996. int
  20997. main (void)
  20998. {
  20999. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  21000. bogus endian macros
  21001. #endif
  21002. ;
  21003. return 0;
  21004. }
  21005. _ACEOF
  21006. if ac_fn_c_try_compile "$LINENO"
  21007. then :
  21008. # It does; now see whether it defined to _BIG_ENDIAN or not.
  21009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21010. /* end confdefs.h. */
  21011. #include <limits.h>
  21012. int
  21013. main (void)
  21014. {
  21015. #ifndef _BIG_ENDIAN
  21016. not big endian
  21017. #endif
  21018. ;
  21019. return 0;
  21020. }
  21021. _ACEOF
  21022. if ac_fn_c_try_compile "$LINENO"
  21023. then :
  21024. ac_cv_c_bigendian=yes
  21025. else case e in #(
  21026. e) ac_cv_c_bigendian=no ;;
  21027. esac
  21028. fi
  21029. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21030. fi
  21031. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21032. fi
  21033. if test $ac_cv_c_bigendian = unknown; then
  21034. # Compile a test program.
  21035. if test "$cross_compiling" = yes
  21036. then :
  21037. # Try to guess by grepping values from an object file.
  21038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21039. /* end confdefs.h. */
  21040. unsigned short int ascii_mm[] =
  21041. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  21042. unsigned short int ascii_ii[] =
  21043. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  21044. int use_ascii (int i) {
  21045. return ascii_mm[i] + ascii_ii[i];
  21046. }
  21047. unsigned short int ebcdic_ii[] =
  21048. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  21049. unsigned short int ebcdic_mm[] =
  21050. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  21051. int use_ebcdic (int i) {
  21052. return ebcdic_mm[i] + ebcdic_ii[i];
  21053. }
  21054. int
  21055. main (int argc, char **argv)
  21056. {
  21057. /* Intimidate the compiler so that it does not
  21058. optimize the arrays away. */
  21059. char *p = argv[0];
  21060. ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
  21061. ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
  21062. return use_ascii (argc) == use_ebcdic (*p);
  21063. }
  21064. _ACEOF
  21065. if ac_fn_c_try_link "$LINENO"
  21066. then :
  21067. if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
  21068. ac_cv_c_bigendian=yes
  21069. fi
  21070. if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
  21071. if test "$ac_cv_c_bigendian" = unknown; then
  21072. ac_cv_c_bigendian=no
  21073. else
  21074. # finding both strings is unlikely to happen, but who knows?
  21075. ac_cv_c_bigendian=unknown
  21076. fi
  21077. fi
  21078. fi
  21079. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21080. conftest$ac_exeext conftest.$ac_ext
  21081. else case e in #(
  21082. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21083. /* end confdefs.h. */
  21084. $ac_includes_default
  21085. int
  21086. main (void)
  21087. {
  21088. /* Are we little or big endian? From Harbison&Steele. */
  21089. union
  21090. {
  21091. long int l;
  21092. char c[sizeof (long int)];
  21093. } u;
  21094. u.l = 1;
  21095. return u.c[sizeof (long int) - 1] == 1;
  21096. ;
  21097. return 0;
  21098. }
  21099. _ACEOF
  21100. if ac_fn_c_try_run "$LINENO"
  21101. then :
  21102. ac_cv_c_bigendian=no
  21103. else case e in #(
  21104. e) ac_cv_c_bigendian=yes ;;
  21105. esac
  21106. fi
  21107. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21108. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  21109. esac
  21110. fi
  21111. fi ;;
  21112. esac
  21113. fi
  21114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  21115. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  21116. case $ac_cv_c_bigendian in #(
  21117. yes)
  21118. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  21119. ;; #(
  21120. no)
  21121. ;; #(
  21122. universal)
  21123. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  21124. ;; #(
  21125. *)
  21126. as_fn_error $? "unknown endianness
  21127. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  21128. esac
  21129. if test x$ac_cv_c_bigendian = xyes ; then
  21130. WORDS_BIGENDIAN_TRUE=
  21131. WORDS_BIGENDIAN_FALSE='#'
  21132. else
  21133. WORDS_BIGENDIAN_TRUE='#'
  21134. WORDS_BIGENDIAN_FALSE=
  21135. fi
  21136. # Check whether --enable-asan was given.
  21137. if test ${enable_asan+y}
  21138. then :
  21139. enableval=$enable_asan;
  21140. fi
  21141. if test "x$enable_asan" = "xyes"; then
  21142. build_asan=yes
  21143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __asan_report_error in -lasan" >&5
  21144. printf %s "checking for __asan_report_error in -lasan... " >&6; }
  21145. if test ${ac_cv_lib_asan___asan_report_error+y}
  21146. then :
  21147. printf %s "(cached) " >&6
  21148. else case e in #(
  21149. e) ac_check_lib_save_LIBS=$LIBS
  21150. LIBS="-lasan $LIBS"
  21151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21152. /* end confdefs.h. */
  21153. /* Override any GCC internal prototype to avoid an error.
  21154. Use char because int might match the return type of a GCC
  21155. builtin and then its argument prototype would still apply.
  21156. The 'extern "C"' is for builds by C++ compilers;
  21157. although this is not generally supported in C code supporting it here
  21158. has little cost and some practical benefit (sr 110532). */
  21159. #ifdef __cplusplus
  21160. extern "C"
  21161. #endif
  21162. char __asan_report_error (void);
  21163. int
  21164. main (void)
  21165. {
  21166. return __asan_report_error ();
  21167. ;
  21168. return 0;
  21169. }
  21170. _ACEOF
  21171. if ac_fn_c_try_link "$LINENO"
  21172. then :
  21173. ac_cv_lib_asan___asan_report_error=yes
  21174. else case e in #(
  21175. e) ac_cv_lib_asan___asan_report_error=no ;;
  21176. esac
  21177. fi
  21178. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21179. conftest$ac_exeext conftest.$ac_ext
  21180. LIBS=$ac_check_lib_save_LIBS ;;
  21181. esac
  21182. fi
  21183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asan___asan_report_error" >&5
  21184. printf "%s\n" "$ac_cv_lib_asan___asan_report_error" >&6; }
  21185. if test "x$ac_cv_lib_asan___asan_report_error" = xyes
  21186. then :
  21187. printf "%s\n" "#define HAVE_LIBASAN 1" >>confdefs.h
  21188. LIBS="-lasan $LIBS"
  21189. else case e in #(
  21190. e) as_fn_error $? "libasan.so not found, this is required for --enable-asan" "$LINENO" 5 ;;
  21191. esac
  21192. fi
  21193. CFLAGS="${CFLAGS} -O1 -g -fsanitize=address -fno-omit-frame-pointer"
  21194. LDFLAGS="-fsanitize=address ${LDFLAGS}"
  21195. else
  21196. build_asan=no
  21197. fi
  21198. # Check whether --enable-tsan was given.
  21199. if test ${enable_tsan+y}
  21200. then :
  21201. enableval=$enable_tsan;
  21202. fi
  21203. if test "x$enable_tsan" = "xyes"; then
  21204. build_tsan=yes
  21205. CFLAGS="${CFLAGS} -O1 -g -fsanitize=thread -fno-omit-frame-pointer"
  21206. LDFLAGS="-fsanitize=thread ${LDFLAGS}"
  21207. else
  21208. build_tsan=no
  21209. fi
  21210. if test "$build_asan" = "yes" -a "$build_tsan" = "yes" ; then
  21211. as_fn_error $? "--enable-asan and --eanble-tsan are mutually exclusive" "$LINENO" 5
  21212. fi
  21213. debug=no
  21214. debug_flag=NDEBUG
  21215. debug_run_time_flag=
  21216. # Check whether --enable-debug was given.
  21217. if test ${enable_debug+y}
  21218. then :
  21219. enableval=$enable_debug; if test x$enableval = xyes; then
  21220. debug=yes
  21221. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  21222. CFLAGS="${CFLAGS} -g -O0 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul $wno_format"
  21223. # We may also want to add:
  21224. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  21225. debug_flag=DEBUG
  21226. debug_run_time_flag=--dbug=1
  21227. printf "%s\n" "#define DEBUG 1" >>confdefs.h
  21228. fi
  21229. fi
  21230. extra_debug=no
  21231. extra_debug_flag=NEXTRA_DBUG
  21232. # Check whether --enable-extra-debug was given.
  21233. if test ${enable_extra_debug+y}
  21234. then :
  21235. enableval=$enable_extra_debug; if test x$enableval = xyes; then
  21236. extra_debug=yes
  21237. extra_debug_flag=EXTRA_DEBUG
  21238. printf "%s\n" "#define EXTRA_DEBUG 1" >>confdefs.h
  21239. fi
  21240. fi
  21241. timestamp_trace=no
  21242. # Check whether --enable-timestamp-trace was given.
  21243. if test ${enable_timestamp_trace+y}
  21244. then :
  21245. enableval=$enable_timestamp_trace; if test x$enableval = xyes; then
  21246. timestamp_trace=yes
  21247. CFLAGS="${CFLAGS} -DTIMESTAMP_TRACE"
  21248. printf "%s\n" "#define TIMESTAMP_TRACE 1" >>confdefs.h
  21249. fi
  21250. fi
  21251. # Check whether --enable-dmalloc was given.
  21252. if test ${enable_dmalloc+y}
  21253. then :
  21254. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  21255. dmalloc=yes
  21256. printf "%s\n" "#define ENABLE_DMALLOC 1" >>confdefs.h
  21257. printf "%s\n" "#define DMALLOC_FUNC_CHECK 1" >>confdefs.h
  21258. CFLAGS="${CFLAGS} -I/opt/local/include"
  21259. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  21260. fi
  21261. fi
  21262. # Check whether --enable-pedantic was given.
  21263. if test ${enable_pedantic+y}
  21264. then :
  21265. enableval=$enable_pedantic; if test x$enableval = xyes; then
  21266. CFLAGS="$CFLAGS -pedantic"
  21267. fi
  21268. fi
  21269. # Check whether --enable-efence was given.
  21270. if test ${enable_efence+y}
  21271. then :
  21272. enableval=$enable_efence; if test x$enableval = xyes; then
  21273. CFLAGS="$CFLAGS -lefence"
  21274. printf "%s\n" "#define EFENCE 1" >>confdefs.h
  21275. fi
  21276. fi
  21277. # Check whether --enable-gprof was given.
  21278. if test ${enable_gprof+y}
  21279. then :
  21280. enableval=$enable_gprof; if test x$enableval = xyes; then
  21281. if test $debug = yes; then
  21282. CFLAGS="$CFLAGS -pg"
  21283. else
  21284. # GPROF requires gdb
  21285. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  21286. fi
  21287. printf "%s\n" "#define GPROF 1" >>confdefs.h
  21288. fi
  21289. fi
  21290. enable_pcap_config=no
  21291. # Check whether --enable-pcapconfig was given.
  21292. if test ${enable_pcapconfig+y}
  21293. then :
  21294. enableval=$enable_pcapconfig;
  21295. if test $enableval = yes; then
  21296. enable_pcap_config=yes
  21297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling libpcap discovery via pcap_config" >&5
  21298. printf "%s\n" "$as_me: Enabling libpcap discovery via pcap_config" >&6;}
  21299. else
  21300. enable_pcap_config=no
  21301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling libpcap discovery via pcap_config" >&5
  21302. printf "%s\n" "$as_me: Disabling libpcap discovery via pcap_config" >&6;}
  21303. fi
  21304. else case e in #(
  21305. e)
  21306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Bypassing libpcap discovery via pcap_config" >&5
  21307. printf "%s\n" "$as_me: Bypassing libpcap discovery via pcap_config" >&6;}
  21308. ;;
  21309. esac
  21310. fi
  21311. use64bit_counters=yes
  21312. # Check whether --enable-64bits was given.
  21313. if test ${enable_64bits+y}
  21314. then :
  21315. enableval=$enable_64bits;
  21316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using u_int32_t for packet counters" >&5
  21317. printf "%s\n" "$as_me: Using u_int32_t for packet counters" >&6;}
  21318. else case e in #(
  21319. e)
  21320. printf "%s\n" "#define ENABLE_64BITS 1" >>confdefs.h
  21321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using u_int64_t for packet counters" >&5
  21322. printf "%s\n" "$as_me: Using u_int64_t for packet counters" >&6;}
  21323. ;;
  21324. esac
  21325. fi
  21326. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  21327. # so we can use _U_ to flag unused function arguments and not get warnings
  21328. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  21329. # function argument will compile with non-GCC compilers.
  21330. #
  21331. if test "x$GCC" = "xyes" ; then
  21332. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  21333. else
  21334. CFLAGS="-D_U_=\"\" $CFLAGS"
  21335. fi
  21336. # Check whether --enable-force-bpf was given.
  21337. if test ${enable_force_bpf+y}
  21338. then :
  21339. enableval=$enable_force_bpf;
  21340. printf "%s\n" "#define FORCE_INJECT_BPF 1" >>confdefs.h
  21341. fi
  21342. # Check whether --enable-force-pf was given.
  21343. if test ${enable_force_pf+y}
  21344. then :
  21345. enableval=$enable_force_pf;
  21346. printf "%s\n" "#define FORCE_INJECT_PF 1" >>confdefs.h
  21347. fi
  21348. # Check whether --enable-force-libdnet was given.
  21349. if test ${enable_force_libdnet+y}
  21350. then :
  21351. enableval=$enable_force_libdnet;
  21352. printf "%s\n" "#define FORCE_INJECT_LIBDNET 1" >>confdefs.h
  21353. fi
  21354. # Check whether --enable-force-libxdp was given.
  21355. if test ${enable_force_libxdp+y}
  21356. then :
  21357. enableval=$enable_force_libxdp;
  21358. printf "%s\n" "#define FORCE_INJECT_LIBXDP 1" >>confdefs.h
  21359. fi
  21360. # Check whether --enable-force-inject was given.
  21361. if test ${enable_force_inject+y}
  21362. then :
  21363. enableval=$enable_force_inject;
  21364. printf "%s\n" "#define FORCE_INJECT_PCAP_INJECT 1" >>confdefs.h
  21365. fi
  21366. # Check whether --enable-force-sendpacket was given.
  21367. if test ${enable_force_sendpacket+y}
  21368. then :
  21369. enableval=$enable_force_sendpacket;
  21370. printf "%s\n" "#define FORCE_INJECT_PCAP_SENDPACKET 1" >>confdefs.h
  21371. fi
  21372. static_link=no
  21373. dynamic_link=yes
  21374. # Check whether --enable-static-link was given.
  21375. if test ${enable_static_link+y}
  21376. then :
  21377. enableval=$enable_static_link;
  21378. if test $enableval = yes; then
  21379. static_link=yes
  21380. dynamic_link=no
  21381. fi
  21382. fi
  21383. # Check whether --enable-dynamic-link was given.
  21384. if test ${enable_dynamic_link+y}
  21385. then :
  21386. enableval=$enable_dynamic_link;
  21387. if test $enableval = no; then
  21388. dynamic_link=no
  21389. static_link=yes
  21390. elif test $static_link = yes; then
  21391. as_fn_error $? "Cannot specify both --enable-dynamic-link and --enable-static-link" "$LINENO" 5
  21392. fi
  21393. fi
  21394. if test $static_link = yes; then
  21395. printf "%s\n" "#define ENABLE_STATIC_LINK 1" >>confdefs.h
  21396. else
  21397. printf "%s\n" "#define ENABLE_DYNAMIC_LINK 1" >>confdefs.h
  21398. fi
  21399. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  21400. if test "x$ac_cv_func_inet_aton" = xyes
  21401. then :
  21402. printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
  21403. inet_aton=yes
  21404. else case e in #(
  21405. e)
  21406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lnetwork" >&5
  21407. printf %s "checking for inet_aton in -lnetwork... " >&6; }
  21408. if test ${ac_cv_lib_network_inet_aton+y}
  21409. then :
  21410. printf %s "(cached) " >&6
  21411. else case e in #(
  21412. e) ac_check_lib_save_LIBS=$LIBS
  21413. LIBS="-lnetwork $LIBS"
  21414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21415. /* end confdefs.h. */
  21416. /* Override any GCC internal prototype to avoid an error.
  21417. Use char because int might match the return type of a GCC
  21418. builtin and then its argument prototype would still apply.
  21419. The 'extern "C"' is for builds by C++ compilers;
  21420. although this is not generally supported in C code supporting it here
  21421. has little cost and some practical benefit (sr 110532). */
  21422. #ifdef __cplusplus
  21423. extern "C"
  21424. #endif
  21425. char inet_aton (void);
  21426. int
  21427. main (void)
  21428. {
  21429. return inet_aton ();
  21430. ;
  21431. return 0;
  21432. }
  21433. _ACEOF
  21434. if ac_fn_c_try_link "$LINENO"
  21435. then :
  21436. ac_cv_lib_network_inet_aton=yes
  21437. else case e in #(
  21438. e) ac_cv_lib_network_inet_aton=no ;;
  21439. esac
  21440. fi
  21441. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21442. conftest$ac_exeext conftest.$ac_ext
  21443. LIBS=$ac_check_lib_save_LIBS ;;
  21444. esac
  21445. fi
  21446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_aton" >&5
  21447. printf "%s\n" "$ac_cv_lib_network_inet_aton" >&6; }
  21448. if test "x$ac_cv_lib_network_inet_aton" = xyes
  21449. then :
  21450. printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
  21451. use_libnetwork=yes
  21452. else case e in #(
  21453. e) inet_aton=no
  21454. ;;
  21455. esac
  21456. fi
  21457. ;;
  21458. esac
  21459. fi
  21460. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  21461. if test "x$ac_cv_func_inet_pton" = xyes
  21462. then :
  21463. printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
  21464. inet_pton=yes
  21465. else case e in #(
  21466. e)
  21467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lnetwork" >&5
  21468. printf %s "checking for inet_pton in -lnetwork... " >&6; }
  21469. if test ${ac_cv_lib_network_inet_pton+y}
  21470. then :
  21471. printf %s "(cached) " >&6
  21472. else case e in #(
  21473. e) ac_check_lib_save_LIBS=$LIBS
  21474. LIBS="-lnetwork $LIBS"
  21475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21476. /* end confdefs.h. */
  21477. /* Override any GCC internal prototype to avoid an error.
  21478. Use char because int might match the return type of a GCC
  21479. builtin and then its argument prototype would still apply.
  21480. The 'extern "C"' is for builds by C++ compilers;
  21481. although this is not generally supported in C code supporting it here
  21482. has little cost and some practical benefit (sr 110532). */
  21483. #ifdef __cplusplus
  21484. extern "C"
  21485. #endif
  21486. char inet_pton (void);
  21487. int
  21488. main (void)
  21489. {
  21490. return inet_pton ();
  21491. ;
  21492. return 0;
  21493. }
  21494. _ACEOF
  21495. if ac_fn_c_try_link "$LINENO"
  21496. then :
  21497. ac_cv_lib_network_inet_pton=yes
  21498. else case e in #(
  21499. e) ac_cv_lib_network_inet_pton=no ;;
  21500. esac
  21501. fi
  21502. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21503. conftest$ac_exeext conftest.$ac_ext
  21504. LIBS=$ac_check_lib_save_LIBS ;;
  21505. esac
  21506. fi
  21507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_pton" >&5
  21508. printf "%s\n" "$ac_cv_lib_network_inet_pton" >&6; }
  21509. if test "x$ac_cv_lib_network_inet_pton" = xyes
  21510. then :
  21511. printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
  21512. use_libnetwork=yes
  21513. else case e in #(
  21514. e) inet_pton=no
  21515. ;;
  21516. esac
  21517. fi
  21518. ;;
  21519. esac
  21520. fi
  21521. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  21522. if test "x$ac_cv_func_inet_ntop" = xyes
  21523. then :
  21524. printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
  21525. inet_ntop=yes
  21526. else case e in #(
  21527. e)
  21528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lnetwork" >&5
  21529. printf %s "checking for inet_ntop in -lnetwork... " >&6; }
  21530. if test ${ac_cv_lib_network_inet_ntop+y}
  21531. then :
  21532. printf %s "(cached) " >&6
  21533. else case e in #(
  21534. e) ac_check_lib_save_LIBS=$LIBS
  21535. LIBS="-lnetwork $LIBS"
  21536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21537. /* end confdefs.h. */
  21538. /* Override any GCC internal prototype to avoid an error.
  21539. Use char because int might match the return type of a GCC
  21540. builtin and then its argument prototype would still apply.
  21541. The 'extern "C"' is for builds by C++ compilers;
  21542. although this is not generally supported in C code supporting it here
  21543. has little cost and some practical benefit (sr 110532). */
  21544. #ifdef __cplusplus
  21545. extern "C"
  21546. #endif
  21547. char inet_ntop (void);
  21548. int
  21549. main (void)
  21550. {
  21551. return inet_ntop ();
  21552. ;
  21553. return 0;
  21554. }
  21555. _ACEOF
  21556. if ac_fn_c_try_link "$LINENO"
  21557. then :
  21558. ac_cv_lib_network_inet_ntop=yes
  21559. else case e in #(
  21560. e) ac_cv_lib_network_inet_ntop=no ;;
  21561. esac
  21562. fi
  21563. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21564. conftest$ac_exeext conftest.$ac_ext
  21565. LIBS=$ac_check_lib_save_LIBS ;;
  21566. esac
  21567. fi
  21568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntop" >&5
  21569. printf "%s\n" "$ac_cv_lib_network_inet_ntop" >&6; }
  21570. if test "x$ac_cv_lib_network_inet_ntop" = xyes
  21571. then :
  21572. printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
  21573. use_libnetwork=yes
  21574. else case e in #(
  21575. e) inet_ntop=no
  21576. ;;
  21577. esac
  21578. fi
  21579. ;;
  21580. esac
  21581. fi
  21582. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  21583. as_fn_error $? "We need either inet_ntop or inet_pton" "$LINENO" 5
  21584. fi
  21585. if test "$use_libnetwork" = "yes" ; then
  21586. LIBS="-lnetwork $LIBS"
  21587. fi
  21588. ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
  21589. if test "x$ac_cv_func_inet_addr" = xyes
  21590. then :
  21591. printf "%s\n" "#define HAVE_INET_ADDR 1" >>confdefs.h
  21592. inet_addr=yes
  21593. else case e in #(
  21594. e) inet_addr=no ;;
  21595. esac
  21596. fi
  21597. if test x$inet_addr = xno ; then
  21598. as_fn_error $? "We need inet_addr. See bug 26" "$LINENO" 5
  21599. fi
  21600. ac_fn_c_check_func "$LINENO" "fts_read" "ac_cv_func_fts_read"
  21601. if test "x$ac_cv_func_fts_read" = xyes
  21602. then :
  21603. else case e in #(
  21604. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fts_read in -lbsd" >&5
  21605. printf %s "checking for fts_read in -lbsd... " >&6; }
  21606. if test ${ac_cv_lib_bsd_fts_read+y}
  21607. then :
  21608. printf %s "(cached) " >&6
  21609. else case e in #(
  21610. e) ac_check_lib_save_LIBS=$LIBS
  21611. LIBS="-lbsd $LIBS"
  21612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21613. /* end confdefs.h. */
  21614. /* Override any GCC internal prototype to avoid an error.
  21615. Use char because int might match the return type of a GCC
  21616. builtin and then its argument prototype would still apply.
  21617. The 'extern "C"' is for builds by C++ compilers;
  21618. although this is not generally supported in C code supporting it here
  21619. has little cost and some practical benefit (sr 110532). */
  21620. #ifdef __cplusplus
  21621. extern "C"
  21622. #endif
  21623. char fts_read (void);
  21624. int
  21625. main (void)
  21626. {
  21627. return fts_read ();
  21628. ;
  21629. return 0;
  21630. }
  21631. _ACEOF
  21632. if ac_fn_c_try_link "$LINENO"
  21633. then :
  21634. ac_cv_lib_bsd_fts_read=yes
  21635. else case e in #(
  21636. e) ac_cv_lib_bsd_fts_read=no ;;
  21637. esac
  21638. fi
  21639. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21640. conftest$ac_exeext conftest.$ac_ext
  21641. LIBS=$ac_check_lib_save_LIBS ;;
  21642. esac
  21643. fi
  21644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_fts_read" >&5
  21645. printf "%s\n" "$ac_cv_lib_bsd_fts_read" >&6; }
  21646. if test "x$ac_cv_lib_bsd_fts_read" = xyes
  21647. then :
  21648. printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
  21649. LIBS="-lbsd $LIBS"
  21650. fi
  21651. ;;
  21652. esac
  21653. fi
  21654. have_tuntap=no
  21655. # Check whether --enable-tuntap was given.
  21656. if test ${enable_tuntap+y}
  21657. then :
  21658. enableval=$enable_tuntap; :
  21659. else case e in #(
  21660. e) case "$build_os" in
  21661. linux*)
  21662. ac_fn_c_check_header_compile "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
  21663. if test "x$ac_cv_header_linux_if_tun_h" = xyes
  21664. then :
  21665. have_tuntap=yes
  21666. fi
  21667. ;;
  21668. *)
  21669. ac_fn_c_check_header_compile "$LINENO" "net/if_tun.h" "ac_cv_header_net_if_tun_h" "$ac_includes_default"
  21670. if test "x$ac_cv_header_net_if_tun_h" = xyes
  21671. then :
  21672. have_tuntap=yes
  21673. fi
  21674. ;;
  21675. esac ;;
  21676. esac
  21677. fi
  21678. if test $have_tuntap = yes ; then
  21679. printf "%s\n" "#define HAVE_TUNTAP 1" >>confdefs.h
  21680. fi
  21681. foundpcap=no
  21682. pf_ring_found=no
  21683. pf_ring_lib=${with_pfring_lib}
  21684. using_pcap_config=no
  21685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  21686. printf %s "checking for libpcap... " >&6; }
  21687. # Check whether --with-libpcap was given.
  21688. if test ${with_libpcap+y}
  21689. then :
  21690. withval=$with_libpcap;
  21691. testdir=$withval
  21692. for incl in ${testdir}/include/pcap.h ${testdir}/pcap.h ${testdir}/pcap/pcap.h; do
  21693. if ! test -f "${incl}"; then
  21694. continue
  21695. fi
  21696. LPCAPINC=${incl}
  21697. LPCAPINCDIR=${testdir}
  21698. if test $dynamic_link = yes; then
  21699. for ext in .dylib .so .tbd ; do
  21700. for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  21701. sharefile=$(ls ${testdir}/$dir/libpcap${ext}* 2> /dev/null | sort | head -n1)
  21702. if test -n "${sharefile}"; then
  21703. LPCAP_LD_LIBRARY_PATH="$(dirname ${sharefile})"
  21704. LPCAPLIB="-L$LPCAP_LD_LIBRARY_PATH -lpcap"
  21705. foundpcap=$testdir
  21706. break 2
  21707. fi
  21708. done
  21709. done
  21710. else
  21711. for ext in ${libext} .a .A.tbd ; do
  21712. for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  21713. staticfile=$(ls ${testdir}/$dir/libpcap${ext} 2> /dev/null | sort | head -n1)
  21714. if test -n "${staticfile}"; then
  21715. LPCAPLIB="${staticfile}"
  21716. foundpcap=${testdir}
  21717. break 2
  21718. fi
  21719. done
  21720. done
  21721. fi
  21722. if test $foundpcap = no; then
  21723. as_fn_error $? "\"Unable to find matching library for header file in ${testdir}\"" "$LINENO" 5
  21724. fi
  21725. break
  21726. done
  21727. else case e in #(
  21728. e)
  21729. #
  21730. # Look for pcap-config.
  21731. #
  21732. # I wish this option could be the default, but it is only enabled with --enable-pcapconfig
  21733. #
  21734. # The issue is that libpcap is one of those libraries that is nearly impossible to set up
  21735. # properly across all platforms. The 'pcap-config' script is shipped with new versions of libpcap,
  21736. # and was created to address portability issues. Unfortunately, the script is not updated properly
  21737. # outside of the base distribution. Examples: PF_RING requires 'pthreads', 'numa' and 'rt', but
  21738. # this is not reflect that in the script. OS X Xcode 10.11 SDK creates its own very broken
  21739. # 'pcap-config' script that only occasionally works for dynamic definitions, and definitely
  21740. # does not work for static.
  21741. #
  21742. # The ability to enable this script exists for corner cases where libpcap distributions starts
  21743. # using even more libraries than I am currently not aware of. Originally, you only had to worry
  21744. # about 'nl', but now we have to be prepared to add 'nl-3', 'nl-genl-3' and 'dbus-1' to make
  21745. # libpcap functional. In the future, there may be more.
  21746. #
  21747. # (sigh)
  21748. #
  21749. # So, in the future if libpcap changes and stops working, try setting --enable-pcapconfig. It
  21750. # it may work for you.
  21751. if test $enable_pcap_config = yes; then
  21752. if test -n "$ac_tool_prefix"; then
  21753. # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
  21754. set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
  21755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21756. printf %s "checking for $ac_word... " >&6; }
  21757. if test ${ac_cv_path_PCAP_CONFIG+y}
  21758. then :
  21759. printf %s "(cached) " >&6
  21760. else case e in #(
  21761. e) case $PCAP_CONFIG in
  21762. [\\/]* | ?:[\\/]*)
  21763. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  21764. ;;
  21765. *)
  21766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21767. for as_dir in $PATH
  21768. do
  21769. IFS=$as_save_IFS
  21770. case $as_dir in #(((
  21771. '') as_dir=./ ;;
  21772. */) ;;
  21773. *) as_dir=$as_dir/ ;;
  21774. esac
  21775. for ac_exec_ext in '' $ac_executable_extensions; do
  21776. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21777. ac_cv_path_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext"
  21778. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21779. break 2
  21780. fi
  21781. done
  21782. done
  21783. IFS=$as_save_IFS
  21784. ;;
  21785. esac ;;
  21786. esac
  21787. fi
  21788. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  21789. if test -n "$PCAP_CONFIG"; then
  21790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  21791. printf "%s\n" "$PCAP_CONFIG" >&6; }
  21792. else
  21793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21794. printf "%s\n" "no" >&6; }
  21795. fi
  21796. fi
  21797. if test -z "$ac_cv_path_PCAP_CONFIG"; then
  21798. ac_pt_PCAP_CONFIG=$PCAP_CONFIG
  21799. # Extract the first word of "pcap-config", so it can be a program name with args.
  21800. set dummy pcap-config; ac_word=$2
  21801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21802. printf %s "checking for $ac_word... " >&6; }
  21803. if test ${ac_cv_path_ac_pt_PCAP_CONFIG+y}
  21804. then :
  21805. printf %s "(cached) " >&6
  21806. else case e in #(
  21807. e) case $ac_pt_PCAP_CONFIG in
  21808. [\\/]* | ?:[\\/]*)
  21809. ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
  21810. ;;
  21811. *)
  21812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21813. for as_dir in $PATH
  21814. do
  21815. IFS=$as_save_IFS
  21816. case $as_dir in #(((
  21817. '') as_dir=./ ;;
  21818. */) ;;
  21819. *) as_dir=$as_dir/ ;;
  21820. esac
  21821. for ac_exec_ext in '' $ac_executable_extensions; do
  21822. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21823. ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext"
  21824. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21825. break 2
  21826. fi
  21827. done
  21828. done
  21829. IFS=$as_save_IFS
  21830. ;;
  21831. esac ;;
  21832. esac
  21833. fi
  21834. ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
  21835. if test -n "$ac_pt_PCAP_CONFIG"; then
  21836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
  21837. printf "%s\n" "$ac_pt_PCAP_CONFIG" >&6; }
  21838. else
  21839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21840. printf "%s\n" "no" >&6; }
  21841. fi
  21842. if test "x$ac_pt_PCAP_CONFIG" = x; then
  21843. PCAP_CONFIG=""
  21844. else
  21845. case $cross_compiling:$ac_tool_warned in
  21846. yes:)
  21847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21848. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21849. ac_tool_warned=yes ;;
  21850. esac
  21851. PCAP_CONFIG=$ac_pt_PCAP_CONFIG
  21852. fi
  21853. else
  21854. PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
  21855. fi
  21856. if test -n "$PCAP_CONFIG"; then
  21857. #
  21858. # Found - use it to get the include flags for
  21859. # libpcap and the flags to link with libpcap.
  21860. #
  21861. # Please read section 11.6 "Shell Substitutions"
  21862. # in the autoconf manual before doing anything
  21863. # to this that involves quoting. Especially note
  21864. # the statement "There is just no portable way to use
  21865. # double-quoted strings inside double-quoted back-quoted
  21866. # expressions (pfew!)."
  21867. #
  21868. if test $dynamic_link = yes; then
  21869. LPCAPLIB=$($PCAP_CONFIG --libs)
  21870. else
  21871. LPCAPLIB=$($PCAP_CONFIG --libs --static)
  21872. fi
  21873. CFLAGS="$CFLAGS $($PCAP_CONFIG --cflags)"
  21874. if test -n "$LPCAPLIB"; then
  21875. foundpcap=yes
  21876. using_pcap_config=yes
  21877. else
  21878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libpcap using pcap-config" >&5
  21879. printf "%s\n" "$as_me: WARNING: Unable to find libpcap using pcap-config" >&2;}
  21880. fi
  21881. fi
  21882. fi
  21883. if test ! $foundpcap = yes; then
  21884. #
  21885. # Not found; look for pcap.
  21886. #
  21887. for testdir in /usr/local /opt/local /usr /wpdpack $MACOSX_SDK_PATH/usr /usr/local/opt/libpcap ; do
  21888. if test -f "${testdir}/include/pcap.h"; then
  21889. LPCAPINC="${testdir}/include/pcap.h"
  21890. LPCAPINCDIR="${testdir}/include"
  21891. if test $dynamic_link = yes; then
  21892. for ext in .dylib .so .tbd; do
  21893. for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  21894. sharefile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  21895. if test -n "${sharefile}"; then
  21896. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  21897. foundpcap=$testdir
  21898. break
  21899. fi
  21900. done
  21901. if ! test $foundpcap = no; then
  21902. break
  21903. fi
  21904. done
  21905. fi
  21906. if test $foundpcap = no ; then
  21907. for ext in ${libext} .a .A.tbd ; do
  21908. for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  21909. staticfile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  21910. if test -n "${staticfile}"; then
  21911. LPCAPLIB="${staticfile}"
  21912. foundpcap=$testdir
  21913. break
  21914. fi
  21915. done
  21916. if ! test $foundpcap = no; then
  21917. break
  21918. fi
  21919. done
  21920. fi
  21921. if test $foundpcap = no -a -f "${testdir}/lib/libwpcap.${libext}" ; then
  21922. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  21923. printf "%s\n" "#define HAVE_WINPCAP 1" >>confdefs.h
  21924. foundpcap=$testdir
  21925. fi
  21926. fi
  21927. if ! test $foundpcap = no; then
  21928. break
  21929. fi
  21930. done
  21931. fi
  21932. ;;
  21933. esac
  21934. fi
  21935. if test $foundpcap = no ; then
  21936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21937. printf "%s\n" "no" >&6; }
  21938. as_fn_error $? "libpcap not found" "$LINENO" 5
  21939. else
  21940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $foundpcap" >&5
  21941. printf "%s\n" "$foundpcap" >&6; }
  21942. fi
  21943. ## could be PF_RING
  21944. #
  21945. # library is static and in PF_RING build tree
  21946. #
  21947. # Need access to libpfring library
  21948. # and must find an associated libpfring.a
  21949. if test -n "${with_pfring_lib}"; then
  21950. if test -f ${with_pfring_lib}; then
  21951. pf_ring_lib=${with_pfring_lib}
  21952. pf_ring_found=yes
  21953. else
  21954. as_fn_error $? "\"Unable to find PF_RING library ${with_pfring_lib}\"" "$LINENO" 5
  21955. fi
  21956. fi
  21957. # libpcap can require libnl
  21958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nl_handle_alloc" >&5
  21959. printf %s "checking for library containing nl_handle_alloc... " >&6; }
  21960. if test ${ac_cv_search_nl_handle_alloc+y}
  21961. then :
  21962. printf %s "(cached) " >&6
  21963. else case e in #(
  21964. e) ac_func_search_save_LIBS=$LIBS
  21965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21966. /* end confdefs.h. */
  21967. /* Override any GCC internal prototype to avoid an error.
  21968. Use char because int might match the return type of a GCC
  21969. builtin and then its argument prototype would still apply.
  21970. The 'extern "C"' is for builds by C++ compilers;
  21971. although this is not generally supported in C code supporting it here
  21972. has little cost and some practical benefit (sr 110532). */
  21973. #ifdef __cplusplus
  21974. extern "C"
  21975. #endif
  21976. char nl_handle_alloc (void);
  21977. int
  21978. main (void)
  21979. {
  21980. return nl_handle_alloc ();
  21981. ;
  21982. return 0;
  21983. }
  21984. _ACEOF
  21985. for ac_lib in '' nl
  21986. do
  21987. if test -z "$ac_lib"; then
  21988. ac_res="none required"
  21989. else
  21990. ac_res=-l$ac_lib
  21991. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  21992. fi
  21993. if ac_fn_c_try_link "$LINENO"
  21994. then :
  21995. ac_cv_search_nl_handle_alloc=$ac_res
  21996. fi
  21997. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21998. conftest$ac_exeext
  21999. if test ${ac_cv_search_nl_handle_alloc+y}
  22000. then :
  22001. break
  22002. fi
  22003. done
  22004. if test ${ac_cv_search_nl_handle_alloc+y}
  22005. then :
  22006. else case e in #(
  22007. e) ac_cv_search_nl_handle_alloc=no ;;
  22008. esac
  22009. fi
  22010. rm conftest.$ac_ext
  22011. LIBS=$ac_func_search_save_LIBS ;;
  22012. esac
  22013. fi
  22014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_handle_alloc" >&5
  22015. printf "%s\n" "$ac_cv_search_nl_handle_alloc" >&6; }
  22016. ac_res=$ac_cv_search_nl_handle_alloc
  22017. if test "$ac_res" != no
  22018. then :
  22019. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  22020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Unable to find nl library - may be needed by libpcap" >&5
  22021. printf "%s\n" "$as_me: Unable to find nl library - may be needed by libpcap" >&6;}
  22022. fi
  22023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bpf_object__open_file in -lbpf" >&5
  22024. printf %s "checking for bpf_object__open_file in -lbpf... " >&6; }
  22025. if test ${ac_cv_lib_bpf_bpf_object__open_file+y}
  22026. then :
  22027. printf %s "(cached) " >&6
  22028. else case e in #(
  22029. e) ac_check_lib_save_LIBS=$LIBS
  22030. LIBS="-lbpf $LIBS"
  22031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22032. /* end confdefs.h. */
  22033. /* Override any GCC internal prototype to avoid an error.
  22034. Use char because int might match the return type of a GCC
  22035. builtin and then its argument prototype would still apply.
  22036. The 'extern "C"' is for builds by C++ compilers;
  22037. although this is not generally supported in C code supporting it here
  22038. has little cost and some practical benefit (sr 110532). */
  22039. #ifdef __cplusplus
  22040. extern "C"
  22041. #endif
  22042. char bpf_object__open_file (void);
  22043. int
  22044. main (void)
  22045. {
  22046. return bpf_object__open_file ();
  22047. ;
  22048. return 0;
  22049. }
  22050. _ACEOF
  22051. if ac_fn_c_try_link "$LINENO"
  22052. then :
  22053. ac_cv_lib_bpf_bpf_object__open_file=yes
  22054. else case e in #(
  22055. e) ac_cv_lib_bpf_bpf_object__open_file=no ;;
  22056. esac
  22057. fi
  22058. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22059. conftest$ac_exeext conftest.$ac_ext
  22060. LIBS=$ac_check_lib_save_LIBS ;;
  22061. esac
  22062. fi
  22063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bpf_bpf_object__open_file" >&5
  22064. printf "%s\n" "$ac_cv_lib_bpf_bpf_object__open_file" >&6; }
  22065. if test "x$ac_cv_lib_bpf_bpf_object__open_file" = xyes
  22066. then :
  22067. printf "%s\n" "#define HAVE_LIBBPF 1" >>confdefs.h
  22068. LIBS="-lbpf $LIBS"
  22069. else case e in #(
  22070. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Unable to find libbpf library " >&5
  22071. printf "%s\n" "$as_me: Unable to find libbpf library " >&6;} ;;
  22072. esac
  22073. fi
  22074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xsk_umem__delete in -lxdp" >&5
  22075. printf %s "checking for xsk_umem__delete in -lxdp... " >&6; }
  22076. if test ${ac_cv_lib_xdp_xsk_umem__delete+y}
  22077. then :
  22078. printf %s "(cached) " >&6
  22079. else case e in #(
  22080. e) ac_check_lib_save_LIBS=$LIBS
  22081. LIBS="-lxdp $LIBS"
  22082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22083. /* end confdefs.h. */
  22084. /* Override any GCC internal prototype to avoid an error.
  22085. Use char because int might match the return type of a GCC
  22086. builtin and then its argument prototype would still apply.
  22087. The 'extern "C"' is for builds by C++ compilers;
  22088. although this is not generally supported in C code supporting it here
  22089. has little cost and some practical benefit (sr 110532). */
  22090. #ifdef __cplusplus
  22091. extern "C"
  22092. #endif
  22093. char xsk_umem__delete (void);
  22094. int
  22095. main (void)
  22096. {
  22097. return xsk_umem__delete ();
  22098. ;
  22099. return 0;
  22100. }
  22101. _ACEOF
  22102. if ac_fn_c_try_link "$LINENO"
  22103. then :
  22104. ac_cv_lib_xdp_xsk_umem__delete=yes
  22105. else case e in #(
  22106. e) ac_cv_lib_xdp_xsk_umem__delete=no ;;
  22107. esac
  22108. fi
  22109. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22110. conftest$ac_exeext conftest.$ac_ext
  22111. LIBS=$ac_check_lib_save_LIBS ;;
  22112. esac
  22113. fi
  22114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xdp_xsk_umem__delete" >&5
  22115. printf "%s\n" "$ac_cv_lib_xdp_xsk_umem__delete" >&6; }
  22116. if test "x$ac_cv_lib_xdp_xsk_umem__delete" = xyes
  22117. then :
  22118. printf "%s\n" "#define HAVE_LIBXDP 1" >>confdefs.h
  22119. LIBS="-lxdp $LIBS"
  22120. else case e in #(
  22121. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Unable to find libxdp library " >&5
  22122. printf "%s\n" "$as_me: Unable to find libxdp library " >&6;} ;;
  22123. esac
  22124. fi
  22125. ##
  22126. ## If not automatically configured,
  22127. ## check for newer and full-featured libpcap's
  22128. ##
  22129. if ! test $using_pcap_config = yes; then
  22130. ## newer libpcap requires dbus and latest nl (e.g. -lnl-genl-3 -lnl-3 -ldbus-1)
  22131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl" >&5
  22132. printf %s "checking for nl_cache_alloc in -lnl... " >&6; }
  22133. if test ${ac_cv_lib_nl_nl_cache_alloc+y}
  22134. then :
  22135. printf %s "(cached) " >&6
  22136. else case e in #(
  22137. e) ac_check_lib_save_LIBS=$LIBS
  22138. LIBS="-lnl $LIBS"
  22139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22140. /* end confdefs.h. */
  22141. /* Override any GCC internal prototype to avoid an error.
  22142. Use char because int might match the return type of a GCC
  22143. builtin and then its argument prototype would still apply.
  22144. The 'extern "C"' is for builds by C++ compilers;
  22145. although this is not generally supported in C code supporting it here
  22146. has little cost and some practical benefit (sr 110532). */
  22147. #ifdef __cplusplus
  22148. extern "C"
  22149. #endif
  22150. char nl_cache_alloc (void);
  22151. int
  22152. main (void)
  22153. {
  22154. return nl_cache_alloc ();
  22155. ;
  22156. return 0;
  22157. }
  22158. _ACEOF
  22159. if ac_fn_c_try_link "$LINENO"
  22160. then :
  22161. ac_cv_lib_nl_nl_cache_alloc=yes
  22162. else case e in #(
  22163. e) ac_cv_lib_nl_nl_cache_alloc=no ;;
  22164. esac
  22165. fi
  22166. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22167. conftest$ac_exeext conftest.$ac_ext
  22168. LIBS=$ac_check_lib_save_LIBS ;;
  22169. esac
  22170. fi
  22171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_cache_alloc" >&5
  22172. printf "%s\n" "$ac_cv_lib_nl_nl_cache_alloc" >&6; }
  22173. if test "x$ac_cv_lib_nl_nl_cache_alloc" = xyes
  22174. then :
  22175. nl_found=yes
  22176. fi
  22177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genl_connect in -lnl-genl-3" >&5
  22178. printf %s "checking for genl_connect in -lnl-genl-3... " >&6; }
  22179. if test ${ac_cv_lib_nl_genl_3_genl_connect+y}
  22180. then :
  22181. printf %s "(cached) " >&6
  22182. else case e in #(
  22183. e) ac_check_lib_save_LIBS=$LIBS
  22184. LIBS="-lnl-genl-3 $LIBS"
  22185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22186. /* end confdefs.h. */
  22187. /* Override any GCC internal prototype to avoid an error.
  22188. Use char because int might match the return type of a GCC
  22189. builtin and then its argument prototype would still apply.
  22190. The 'extern "C"' is for builds by C++ compilers;
  22191. although this is not generally supported in C code supporting it here
  22192. has little cost and some practical benefit (sr 110532). */
  22193. #ifdef __cplusplus
  22194. extern "C"
  22195. #endif
  22196. char genl_connect (void);
  22197. int
  22198. main (void)
  22199. {
  22200. return genl_connect ();
  22201. ;
  22202. return 0;
  22203. }
  22204. _ACEOF
  22205. if ac_fn_c_try_link "$LINENO"
  22206. then :
  22207. ac_cv_lib_nl_genl_3_genl_connect=yes
  22208. else case e in #(
  22209. e) ac_cv_lib_nl_genl_3_genl_connect=no ;;
  22210. esac
  22211. fi
  22212. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22213. conftest$ac_exeext conftest.$ac_ext
  22214. LIBS=$ac_check_lib_save_LIBS ;;
  22215. esac
  22216. fi
  22217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_genl_3_genl_connect" >&5
  22218. printf "%s\n" "$ac_cv_lib_nl_genl_3_genl_connect" >&6; }
  22219. if test "x$ac_cv_lib_nl_genl_3_genl_connect" = xyes
  22220. then :
  22221. nl_genl_3_found=yes
  22222. fi
  22223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl-3" >&5
  22224. printf %s "checking for nl_cache_alloc in -lnl-3... " >&6; }
  22225. if test ${ac_cv_lib_nl_3_nl_cache_alloc+y}
  22226. then :
  22227. printf %s "(cached) " >&6
  22228. else case e in #(
  22229. e) ac_check_lib_save_LIBS=$LIBS
  22230. LIBS="-lnl-3 $LIBS"
  22231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22232. /* end confdefs.h. */
  22233. /* Override any GCC internal prototype to avoid an error.
  22234. Use char because int might match the return type of a GCC
  22235. builtin and then its argument prototype would still apply.
  22236. The 'extern "C"' is for builds by C++ compilers;
  22237. although this is not generally supported in C code supporting it here
  22238. has little cost and some practical benefit (sr 110532). */
  22239. #ifdef __cplusplus
  22240. extern "C"
  22241. #endif
  22242. char nl_cache_alloc (void);
  22243. int
  22244. main (void)
  22245. {
  22246. return nl_cache_alloc ();
  22247. ;
  22248. return 0;
  22249. }
  22250. _ACEOF
  22251. if ac_fn_c_try_link "$LINENO"
  22252. then :
  22253. ac_cv_lib_nl_3_nl_cache_alloc=yes
  22254. else case e in #(
  22255. e) ac_cv_lib_nl_3_nl_cache_alloc=no ;;
  22256. esac
  22257. fi
  22258. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22259. conftest$ac_exeext conftest.$ac_ext
  22260. LIBS=$ac_check_lib_save_LIBS ;;
  22261. esac
  22262. fi
  22263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_cache_alloc" >&5
  22264. printf "%s\n" "$ac_cv_lib_nl_3_nl_cache_alloc" >&6; }
  22265. if test "x$ac_cv_lib_nl_3_nl_cache_alloc" = xyes
  22266. then :
  22267. nl_3_found=yes
  22268. fi
  22269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus_malloc in -ldbus-1" >&5
  22270. printf %s "checking for dbus_malloc in -ldbus-1... " >&6; }
  22271. if test ${ac_cv_lib_dbus_1_dbus_malloc+y}
  22272. then :
  22273. printf %s "(cached) " >&6
  22274. else case e in #(
  22275. e) ac_check_lib_save_LIBS=$LIBS
  22276. LIBS="-ldbus-1 $LIBS"
  22277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22278. /* end confdefs.h. */
  22279. /* Override any GCC internal prototype to avoid an error.
  22280. Use char because int might match the return type of a GCC
  22281. builtin and then its argument prototype would still apply.
  22282. The 'extern "C"' is for builds by C++ compilers;
  22283. although this is not generally supported in C code supporting it here
  22284. has little cost and some practical benefit (sr 110532). */
  22285. #ifdef __cplusplus
  22286. extern "C"
  22287. #endif
  22288. char dbus_malloc (void);
  22289. int
  22290. main (void)
  22291. {
  22292. return dbus_malloc ();
  22293. ;
  22294. return 0;
  22295. }
  22296. _ACEOF
  22297. if ac_fn_c_try_link "$LINENO"
  22298. then :
  22299. ac_cv_lib_dbus_1_dbus_malloc=yes
  22300. else case e in #(
  22301. e) ac_cv_lib_dbus_1_dbus_malloc=no ;;
  22302. esac
  22303. fi
  22304. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22305. conftest$ac_exeext conftest.$ac_ext
  22306. LIBS=$ac_check_lib_save_LIBS ;;
  22307. esac
  22308. fi
  22309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_malloc" >&5
  22310. printf "%s\n" "$ac_cv_lib_dbus_1_dbus_malloc" >&6; }
  22311. if test "x$ac_cv_lib_dbus_1_dbus_malloc" = xyes
  22312. then :
  22313. dbus_1_found=yes
  22314. fi
  22315. if test "$nl_found" = "yes"; then
  22316. LPCAPLIB="$LPCAPLIB -lnl"
  22317. fi
  22318. if test "$nl_genl_3_found" = "yes"; then
  22319. LPCAPLIB="$LPCAPLIB -lnl-genl-3"
  22320. fi
  22321. if test "$nl_3_found" = "yes"; then
  22322. LPCAPLIB="$LPCAPLIB -lnl-3"
  22323. fi
  22324. if test "$dbus_1_found" = "yes"; then
  22325. LPCAPLIB="$LPCAPLIB -ldbus-1"
  22326. fi
  22327. ## See if prereqs for PF_RING exist
  22328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
  22329. printf %s "checking for numa_available in -lnuma... " >&6; }
  22330. if test ${ac_cv_lib_numa_numa_available+y}
  22331. then :
  22332. printf %s "(cached) " >&6
  22333. else case e in #(
  22334. e) ac_check_lib_save_LIBS=$LIBS
  22335. LIBS="-lnuma $LIBS"
  22336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22337. /* end confdefs.h. */
  22338. /* Override any GCC internal prototype to avoid an error.
  22339. Use char because int might match the return type of a GCC
  22340. builtin and then its argument prototype would still apply.
  22341. The 'extern "C"' is for builds by C++ compilers;
  22342. although this is not generally supported in C code supporting it here
  22343. has little cost and some practical benefit (sr 110532). */
  22344. #ifdef __cplusplus
  22345. extern "C"
  22346. #endif
  22347. char numa_available (void);
  22348. int
  22349. main (void)
  22350. {
  22351. return numa_available ();
  22352. ;
  22353. return 0;
  22354. }
  22355. _ACEOF
  22356. if ac_fn_c_try_link "$LINENO"
  22357. then :
  22358. ac_cv_lib_numa_numa_available=yes
  22359. else case e in #(
  22360. e) ac_cv_lib_numa_numa_available=no ;;
  22361. esac
  22362. fi
  22363. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22364. conftest$ac_exeext conftest.$ac_ext
  22365. LIBS=$ac_check_lib_save_LIBS ;;
  22366. esac
  22367. fi
  22368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
  22369. printf "%s\n" "$ac_cv_lib_numa_numa_available" >&6; }
  22370. if test "x$ac_cv_lib_numa_numa_available" = xyes
  22371. then :
  22372. numa_found=yes
  22373. fi
  22374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  22375. printf %s "checking for pthread_create in -lpthread... " >&6; }
  22376. if test ${ac_cv_lib_pthread_pthread_create+y}
  22377. then :
  22378. printf %s "(cached) " >&6
  22379. else case e in #(
  22380. e) ac_check_lib_save_LIBS=$LIBS
  22381. LIBS="-lpthread $LIBS"
  22382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22383. /* end confdefs.h. */
  22384. /* Override any GCC internal prototype to avoid an error.
  22385. Use char because int might match the return type of a GCC
  22386. builtin and then its argument prototype would still apply.
  22387. The 'extern "C"' is for builds by C++ compilers;
  22388. although this is not generally supported in C code supporting it here
  22389. has little cost and some practical benefit (sr 110532). */
  22390. #ifdef __cplusplus
  22391. extern "C"
  22392. #endif
  22393. char pthread_create (void);
  22394. int
  22395. main (void)
  22396. {
  22397. return pthread_create ();
  22398. ;
  22399. return 0;
  22400. }
  22401. _ACEOF
  22402. if ac_fn_c_try_link "$LINENO"
  22403. then :
  22404. ac_cv_lib_pthread_pthread_create=yes
  22405. else case e in #(
  22406. e) ac_cv_lib_pthread_pthread_create=no ;;
  22407. esac
  22408. fi
  22409. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22410. conftest$ac_exeext conftest.$ac_ext
  22411. LIBS=$ac_check_lib_save_LIBS ;;
  22412. esac
  22413. fi
  22414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  22415. printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
  22416. if test "x$ac_cv_lib_pthread_pthread_create" = xyes
  22417. then :
  22418. pthread_found=yes
  22419. fi
  22420. if test $pf_ring_found = yes; then
  22421. if ! test "${numa_found}" = "yes"; then
  22422. as_fn_error $? "PF_RING requires libnuma and/or libnuma-dev" "$LINENO" 5
  22423. fi
  22424. if ! test "${pthread_found}" = "yes"; then
  22425. as_fn_error $? "PF_RING requires libpthread" "$LINENO" 5
  22426. fi
  22427. LPCAPLIB="$LPCAPLIB ${pf_ring_lib} -lnuma -lpthread -lrt"
  22428. fi
  22429. fi
  22430. OLDLIBS="$LIBS"
  22431. if test -n "$LPCAPINCDIR"; then
  22432. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  22433. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  22434. else
  22435. OLDCFLAGS="$CFLAGS"
  22436. LPCAPINCDIR=$(echo $CFLAGS | sed -e 's/^\-I//')
  22437. if test -d "$LPCAPINCDIR/pcap"; then
  22438. LPCAPINC="$LPCAPINCDIR/pcap/pcap.h"
  22439. else
  22440. LPCAPINC="$LPCAPINCDIR/pcap.h"
  22441. fi
  22442. fi
  22443. LIBS="$LPCAPLIB"
  22444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_get_pfring_id" >&5
  22445. printf %s "checking for library containing pcap_get_pfring_id... " >&6; }
  22446. if test ${ac_cv_search_pcap_get_pfring_id+y}
  22447. then :
  22448. printf %s "(cached) " >&6
  22449. else case e in #(
  22450. e) ac_func_search_save_LIBS=$LIBS
  22451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22452. /* end confdefs.h. */
  22453. /* Override any GCC internal prototype to avoid an error.
  22454. Use char because int might match the return type of a GCC
  22455. builtin and then its argument prototype would still apply.
  22456. The 'extern "C"' is for builds by C++ compilers;
  22457. although this is not generally supported in C code supporting it here
  22458. has little cost and some practical benefit (sr 110532). */
  22459. #ifdef __cplusplus
  22460. extern "C"
  22461. #endif
  22462. char pcap_get_pfring_id (void);
  22463. int
  22464. main (void)
  22465. {
  22466. return pcap_get_pfring_id ();
  22467. ;
  22468. return 0;
  22469. }
  22470. _ACEOF
  22471. for ac_lib in '' pcap
  22472. do
  22473. if test -z "$ac_lib"; then
  22474. ac_res="none required"
  22475. else
  22476. ac_res=-l$ac_lib
  22477. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  22478. fi
  22479. if ac_fn_c_try_link "$LINENO"
  22480. then :
  22481. ac_cv_search_pcap_get_pfring_id=$ac_res
  22482. fi
  22483. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22484. conftest$ac_exeext
  22485. if test ${ac_cv_search_pcap_get_pfring_id+y}
  22486. then :
  22487. break
  22488. fi
  22489. done
  22490. if test ${ac_cv_search_pcap_get_pfring_id+y}
  22491. then :
  22492. else case e in #(
  22493. e) ac_cv_search_pcap_get_pfring_id=no ;;
  22494. esac
  22495. fi
  22496. rm conftest.$ac_ext
  22497. LIBS=$ac_func_search_save_LIBS ;;
  22498. esac
  22499. fi
  22500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_get_pfring_id" >&5
  22501. printf "%s\n" "$ac_cv_search_pcap_get_pfring_id" >&6; }
  22502. ac_res=$ac_cv_search_pcap_get_pfring_id
  22503. if test "$ac_res" != no
  22504. then :
  22505. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  22506. printf "%s\n" "#define HAVE_PF_RING_PCAP /**/" >>confdefs.h
  22507. fi
  22508. ## Does libpcap work with selected libraries?
  22509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5
  22510. printf %s "checking for library containing pcap_close... " >&6; }
  22511. if test ${ac_cv_search_pcap_close+y}
  22512. then :
  22513. printf %s "(cached) " >&6
  22514. else case e in #(
  22515. e) ac_func_search_save_LIBS=$LIBS
  22516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22517. /* end confdefs.h. */
  22518. /* Override any GCC internal prototype to avoid an error.
  22519. Use char because int might match the return type of a GCC
  22520. builtin and then its argument prototype would still apply.
  22521. The 'extern "C"' is for builds by C++ compilers;
  22522. although this is not generally supported in C code supporting it here
  22523. has little cost and some practical benefit (sr 110532). */
  22524. #ifdef __cplusplus
  22525. extern "C"
  22526. #endif
  22527. char pcap_close (void);
  22528. int
  22529. main (void)
  22530. {
  22531. return pcap_close ();
  22532. ;
  22533. return 0;
  22534. }
  22535. _ACEOF
  22536. for ac_lib in '' pcap
  22537. do
  22538. if test -z "$ac_lib"; then
  22539. ac_res="none required"
  22540. else
  22541. ac_res=-l$ac_lib
  22542. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  22543. fi
  22544. if ac_fn_c_try_link "$LINENO"
  22545. then :
  22546. ac_cv_search_pcap_close=$ac_res
  22547. fi
  22548. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22549. conftest$ac_exeext
  22550. if test ${ac_cv_search_pcap_close+y}
  22551. then :
  22552. break
  22553. fi
  22554. done
  22555. if test ${ac_cv_search_pcap_close+y}
  22556. then :
  22557. else case e in #(
  22558. e) ac_cv_search_pcap_close=no ;;
  22559. esac
  22560. fi
  22561. rm conftest.$ac_ext
  22562. LIBS=$ac_func_search_save_LIBS ;;
  22563. esac
  22564. fi
  22565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5
  22566. printf "%s\n" "$ac_cv_search_pcap_close" >&6; }
  22567. ac_res=$ac_cv_search_pcap_close
  22568. if test "$ac_res" != no
  22569. then :
  22570. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  22571. else case e in #(
  22572. e) as_fn_error $? "Unable to link libpcap in ${foundpcap}" "$LINENO" 5 ;;
  22573. esac
  22574. fi
  22575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libpcap version" >&5
  22576. printf %s "checking libpcap version... " >&6; }
  22577. libpcap_version=unknown
  22578. libpcap_version_096=no
  22579. cat >conftest.c <<EOF
  22580. #include <string.h>
  22581. #include <stdio.h>
  22582. #include "$LPCAPINC"
  22583. /*
  22584. * simple proggy to get the version of libpcap
  22585. */
  22586. int main() {
  22587. printf("%s\n", pcap_lib_version());
  22588. return 0;
  22589. }
  22590. EOF
  22591. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LPCAPLIB \
  22592. conftest.c $LIBS >/dev/null 2>&1
  22593. if test -x conftest -a "$cross_compiling" != "yes"; then
  22594. full_libpcap_version=$(LD_LIBRARY_PATH="$LPCAP_LD_LIBRARY_PATH" ./conftest)
  22595. libpcap_version=$(echo "$full_libpcap_version" | ${CUT} -d' ' -f3)
  22596. pcap_version_ok=yes
  22597. fi
  22598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libpcap_version" >&5
  22599. printf "%s\n" "$libpcap_version" >&6; }
  22600. rm -rf conftest.* core core.conftest 2>&1 > /dev/null
  22601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valid libpcap version" >&5
  22602. printf %s "checking for valid libpcap version... " >&6; }
  22603. if test x$libpcap_version != xunknown; then
  22604. libpcap_major=$(echo ${libpcap_version} | ${CUT} -d '.' -f1)
  22605. libpcap_minor=$(echo ${libpcap_version} | ${CUT} -d '.' -f2)
  22606. libpcap_build=$(echo ${libpcap_version} | ${CUT} -d '.' -f3)
  22607. if test $libpcap_major -eq 0 && \
  22608. (test $libpcap_minor -lt 7 || \
  22609. (test $libpcap_minor -eq 7 && test $libpcap_build -lt 2))
  22610. then
  22611. as_fn_error $? "Libpcap versions < 0.7.2 are not supported
  22612. Please upgrade to version 0.7.2 or better. Your version is $libpcap_version" "$LINENO" 5
  22613. fi
  22614. if test $libpcap_major -gt 0 || \
  22615. (test $libpcap_minor -eq 9 && test $libpcap_build -ge 6)
  22616. then
  22617. libpcap_version_096=yes
  22618. fi
  22619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22620. printf "%s\n" "yes" >&6; }
  22621. else
  22622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  22623. printf "%s\n" "unknown" >&6; }
  22624. fi
  22625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_setnonblock" >&5
  22626. printf %s "checking for pcap_setnonblock... " >&6; }
  22627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22628. /* end confdefs.h. */
  22629. #include <stdio.h>
  22630. #include <stdlib.h>
  22631. #include <string.h>
  22632. #include "$LPCAPINC"
  22633. int
  22634. main (void)
  22635. {
  22636. pcap_t *p;
  22637. char *errbuf;
  22638. pcap_setnonblock(p, 1, errbuf);
  22639. exit(0);
  22640. ;
  22641. return 0;
  22642. }
  22643. _ACEOF
  22644. if ac_fn_c_try_link "$LINENO"
  22645. then :
  22646. have_pcap_setnonblock=yes
  22647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22648. printf "%s\n" "yes" >&6; }
  22649. else case e in #(
  22650. e)
  22651. have_pcap_setnonblock=no
  22652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22653. printf "%s\n" "no" >&6; }
  22654. ;;
  22655. esac
  22656. fi
  22657. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22658. conftest$ac_exeext conftest.$ac_ext
  22659. if test $have_pcap_setnonblock = yes ; then
  22660. printf "%s\n" "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h
  22661. fi
  22662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description" >&5
  22663. printf %s "checking for pcap_datalink_val_to_description... " >&6; }
  22664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22665. /* end confdefs.h. */
  22666. #include <stdio.h>
  22667. #include <stdlib.h>
  22668. #include <string.h>
  22669. #include "$LPCAPINC"
  22670. int
  22671. main (void)
  22672. {
  22673. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  22674. exit(0);
  22675. exit(1);
  22676. ;
  22677. return 0;
  22678. }
  22679. _ACEOF
  22680. if ac_fn_c_try_link "$LINENO"
  22681. then :
  22682. have_dlt_to_desc=yes
  22683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22684. printf "%s\n" "yes" >&6; }
  22685. else case e in #(
  22686. e)
  22687. have_dlt_to_desc=no
  22688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22689. printf "%s\n" "no" >&6; }
  22690. ;;
  22691. esac
  22692. fi
  22693. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22694. conftest$ac_exeext conftest.$ac_ext
  22695. if test $have_dlt_to_desc = yes ; then
  22696. printf "%s\n" "#define HAVE_DLT_VAL_TO_DESC 1" >>confdefs.h
  22697. fi
  22698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_get_selectable_fd" >&5
  22699. printf %s "checking for pcap_get_selectable_fd... " >&6; }
  22700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22701. /* end confdefs.h. */
  22702. #include <stdio.h>
  22703. #include <stdlib.h>
  22704. #include <string.h>
  22705. #include "$LPCAPINC"
  22706. int
  22707. main (void)
  22708. {
  22709. int f;
  22710. pcap_t *p;
  22711. f = pcap_get_selectable_fd(p);
  22712. exit(0);
  22713. ;
  22714. return 0;
  22715. }
  22716. _ACEOF
  22717. if ac_fn_c_try_link "$LINENO"
  22718. then :
  22719. have_pcap_get_selectable_fd=yes
  22720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22721. printf "%s\n" "yes" >&6; }
  22722. else case e in #(
  22723. e)
  22724. have_pcap_get_selectable_fd=no
  22725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22726. printf "%s\n" "no" >&6; }
  22727. ;;
  22728. esac
  22729. fi
  22730. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22731. conftest$ac_exeext conftest.$ac_ext
  22732. if test x$have_pcap_get_selectable_fd = xyes ; then
  22733. printf "%s\n" "#define HAVE_PCAP_GET_SELECTABLE_FD 1" >>confdefs.h
  22734. fi
  22735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen" >&5
  22736. printf %s "checking for pcap_dump_fopen... " >&6; }
  22737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22738. /* end confdefs.h. */
  22739. #include <stdio.h>
  22740. #include <stdlib.h>
  22741. #include <string.h>
  22742. #include "$LPCAPINC"
  22743. int
  22744. main (void)
  22745. {
  22746. pcap_dumper_t *dump;
  22747. pcap_t *pcap;
  22748. FILE *foo;
  22749. dump = pcap_dump_fopen(pcap, foo);
  22750. ;
  22751. return 0;
  22752. }
  22753. _ACEOF
  22754. if ac_fn_c_try_link "$LINENO"
  22755. then :
  22756. have_pcap_dump_fopen=yes
  22757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22758. printf "%s\n" "yes" >&6; }
  22759. else case e in #(
  22760. e)
  22761. have_pcap_dump_fopen=no
  22762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22763. printf "%s\n" "no" >&6; }
  22764. ;;
  22765. esac
  22766. fi
  22767. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22768. conftest$ac_exeext conftest.$ac_ext
  22769. if test $have_pcap_dump_fopen = yes ; then
  22770. printf "%s\n" "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
  22771. else
  22772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --verbose mode requires libpcap >= 0.9.0" >&5
  22773. printf "%s\n" "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  22774. fi
  22775. have_pcap_inject=no
  22776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_inject sending support" >&5
  22777. printf %s "checking for pcap_inject sending support... " >&6; }
  22778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22779. /* end confdefs.h. */
  22780. #include <stdio.h>
  22781. #include <stdlib.h>
  22782. #include <string.h>
  22783. #include "$LPCAPINC"
  22784. int
  22785. main (void)
  22786. {
  22787. pcap_t *pcap;
  22788. char *buf;
  22789. pcap_inject(pcap, (void *)buf, 0);
  22790. ;
  22791. return 0;
  22792. }
  22793. _ACEOF
  22794. if ac_fn_c_try_link "$LINENO"
  22795. then :
  22796. have_pcap_inject=yes
  22797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22798. printf "%s\n" "yes" >&6; }
  22799. else case e in #(
  22800. e)
  22801. have_pcap_inject=no
  22802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22803. printf "%s\n" "no" >&6; }
  22804. ;;
  22805. esac
  22806. fi
  22807. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22808. conftest$ac_exeext conftest.$ac_ext
  22809. if test $have_pcap_inject = yes ; then
  22810. printf "%s\n" "#define HAVE_PCAP_INJECT 1" >>confdefs.h
  22811. fi
  22812. have_pcap_sendpacket=no
  22813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_sendpacket sending support" >&5
  22814. printf %s "checking for pcap_sendpacket sending support... " >&6; }
  22815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22816. /* end confdefs.h. */
  22817. #include <stdio.h>
  22818. #include <stdlib.h>
  22819. #include <string.h>
  22820. #include "$LPCAPINC"
  22821. int
  22822. main (void)
  22823. {
  22824. pcap_t *pcap;
  22825. u_char *buf;
  22826. pcap_sendpacket(pcap, buf, 0);
  22827. ;
  22828. return 0;
  22829. }
  22830. _ACEOF
  22831. if ac_fn_c_try_link "$LINENO"
  22832. then :
  22833. have_pcap_sendpacket=yes
  22834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22835. printf "%s\n" "yes" >&6; }
  22836. else case e in #(
  22837. e)
  22838. have_pcap_sendpacket=no
  22839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22840. printf "%s\n" "no" >&6; }
  22841. ;;
  22842. esac
  22843. fi
  22844. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22845. conftest$ac_exeext conftest.$ac_ext
  22846. if test $have_pcap_sendpacket = yes ; then
  22847. printf "%s\n" "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h
  22848. fi
  22849. have_pcap_breakloop=no
  22850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_breakloop" >&5
  22851. printf %s "checking for pcap_breakloop... " >&6; }
  22852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22853. /* end confdefs.h. */
  22854. #include <stdio.h>
  22855. #include <stdlib.h>
  22856. #include <string.h>
  22857. #include "$LPCAPINC"
  22858. int
  22859. main (void)
  22860. {
  22861. pcap_t *pcap;
  22862. pcap_sendpacket(pcap);
  22863. ;
  22864. return 0;
  22865. }
  22866. _ACEOF
  22867. if ac_fn_c_try_link "$LINENO"
  22868. then :
  22869. have_pcap_breakloop=yes
  22870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22871. printf "%s\n" "yes" >&6; }
  22872. else case e in #(
  22873. e)
  22874. have_pcap_breakloop=no
  22875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22876. printf "%s\n" "no" >&6; }
  22877. ;;
  22878. esac
  22879. fi
  22880. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22881. conftest$ac_exeext conftest.$ac_ext
  22882. if test $have_pcap_breakloop = yes ; then
  22883. printf "%s\n" "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
  22884. fi
  22885. have_pcap_version=no
  22886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_version" >&5
  22887. printf %s "checking for pcap_version... " >&6; }
  22888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22889. /* end confdefs.h. */
  22890. #include <stdio.h>
  22891. #include <stdlib.h>
  22892. #include <string.h>
  22893. #include "$LPCAPINC"
  22894. extern char pcap_version[];
  22895. int
  22896. main (void)
  22897. {
  22898. printf("%s", pcap_version);
  22899. ;
  22900. return 0;
  22901. }
  22902. _ACEOF
  22903. if ac_fn_c_try_link "$LINENO"
  22904. then :
  22905. printf "%s\n" "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  22906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22907. printf "%s\n" "yes" >&6; }
  22908. else case e in #(
  22909. e)
  22910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22911. printf "%s\n" "no" >&6; }
  22912. ;;
  22913. esac
  22914. fi
  22915. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22916. conftest$ac_exeext conftest.$ac_ext
  22917. have_pcap_snapshot=no
  22918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_snapshot" >&5
  22919. printf %s "checking for pcap_snapshot... " >&6; }
  22920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22921. /* end confdefs.h. */
  22922. #include <stdio.h>
  22923. #include <stdlib.h>
  22924. #include <string.h>
  22925. #include "$LPCAPINC"
  22926. int
  22927. main (void)
  22928. {
  22929. pcap_t *p;
  22930. int len;
  22931. len = pcap_snapshot(p);
  22932. exit(0);
  22933. ;
  22934. return 0;
  22935. }
  22936. _ACEOF
  22937. if ac_fn_c_try_link "$LINENO"
  22938. then :
  22939. have_pcap_snapshot=yes
  22940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22941. printf "%s\n" "yes" >&6; }
  22942. else case e in #(
  22943. e)
  22944. have_pcap_snapshot=no
  22945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22946. printf "%s\n" "no" >&6; }
  22947. ;;
  22948. esac
  22949. fi
  22950. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22951. conftest$ac_exeext conftest.$ac_ext
  22952. if test $have_pcap_snapshot = yes ; then
  22953. printf "%s\n" "#define HAVE_PCAP_SNAPSHOT 1" >>confdefs.h
  22954. fi
  22955. have_pcap_open_offline_with_tstamp_precision=no
  22956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline_with_tstamp_precision support" >&5
  22957. printf %s "checking for pcap_open_offline_with_tstamp_precision support... " >&6; }
  22958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22959. /* end confdefs.h. */
  22960. #include <stdio.h>
  22961. #include <stdlib.h>
  22962. #include <string.h>
  22963. #include "$LPCAPINC"
  22964. int
  22965. main (void)
  22966. {
  22967. pcap_t *pcap;
  22968. char ebuf[PCAP_ERRBUF_SIZE];
  22969. pcap = pcap_open_offline_with_tstamp_precision("fake.pcap", PCAP_TSTAMP_PRECISION_NANO, &ebuf[0]);
  22970. ;
  22971. return 0;
  22972. }
  22973. _ACEOF
  22974. if ac_fn_c_try_link "$LINENO"
  22975. then :
  22976. have_pcap_open_offline_with_tstamp_precision=yes
  22977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22978. printf "%s\n" "yes" >&6; }
  22979. else case e in #(
  22980. e)
  22981. have_pcap_open_offline_with_tstamp_precision=no
  22982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22983. printf "%s\n" "no" >&6; }
  22984. ;;
  22985. esac
  22986. fi
  22987. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22988. conftest$ac_exeext conftest.$ac_ext
  22989. if test $have_pcap_open_offline_with_tstamp_precision = yes ; then
  22990. printf "%s\n" "#define HAVE_PCAP_OPEN_OFFLINE_WITH_TSTAMP_PRECISION 1" >>confdefs.h
  22991. printf "%s\n" "#define PCAP_TSTAMP_US_TO_NS_MULTIPLIER 1" >>confdefs.h
  22992. printf "%s\n" "#define PCAP_TSTAMP_US_TO_US_DIVISOR 1000" >>confdefs.h
  22993. else
  22994. printf "%s\n" "#define PCAP_TSTAMP_US_TO_NS_MULTIPLIER 1000" >>confdefs.h
  22995. printf "%s\n" "#define PCAP_TSTAMP_US_TO_US_DIVISOR 1" >>confdefs.h
  22996. fi
  22997. # Tcpbridge requires libpcap and pcap_sendpacket()
  22998. enable_tcpbridge=no
  22999. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  23000. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  23001. if test x$have_bpf = xno; then
  23002. printf "%s\n" "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  23003. enable_tcpbridge=yes
  23004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  23005. printf "%s\n" "$as_me: Building tcpbridge" >&6;}
  23006. # BPF systems need to also have pcap_setnonblock()
  23007. elif test x$have_pcap_setnonblock = xyes ; then
  23008. printf "%s\n" "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  23009. enable_tcpbridge=yes
  23010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  23011. printf "%s\n" "$as_me: Building tcpbridge" >&6;}
  23012. else
  23013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  23014. printf "%s\n" "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  23015. fi
  23016. fi
  23017. if test x$enable_tcpbridge = xyes ; then
  23018. COMPILE_TCPBRIDGE_TRUE=
  23019. COMPILE_TCPBRIDGE_FALSE='#'
  23020. else
  23021. COMPILE_TCPBRIDGE_TRUE='#'
  23022. COMPILE_TCPBRIDGE_FALSE=
  23023. fi
  23024. # tcpliveplay requires linux OS to function properly
  23025. enable_tcpliveplay=no
  23026. case $host in
  23027. *-*-linux*)
  23028. printf "%s\n" "#define ENABLE_TCPLIVEPLAY 1" >>confdefs.h
  23029. enable_tcpliveplay=yes
  23030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Building tcpliveplay" >&5
  23031. printf "%s\n" "$as_me: Building tcpliveplay" >&6;}
  23032. ;;
  23033. *)
  23034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&5
  23035. printf "%s\n" "$as_me: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&2;}
  23036. ;;
  23037. esac
  23038. if test x$enable_tcpliveplay = xyes ; then
  23039. COMPILE_TCPLIVEPLAY_TRUE=
  23040. COMPILE_TCPLIVEPLAY_FALSE='#'
  23041. else
  23042. COMPILE_TCPLIVEPLAY_TRUE='#'
  23043. COMPILE_TCPLIVEPLAY_FALSE=
  23044. fi
  23045. have_netmap=no
  23046. enable_netmap=no
  23047. trynetmapdir=
  23048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for netmap socket sending support" >&5
  23049. printf %s "checking for netmap socket sending support... " >&6; }
  23050. # Check whether --with-netmap was given.
  23051. if test ${with_netmap+y}
  23052. then :
  23053. withval=$with_netmap; trynetmapdir=$withval
  23054. fi
  23055. NETMAP_SEARCH_DIRS=
  23056. if test "$cross_compiling" = yes; then
  23057. if test "x$trynetmapdir" != "x"; then
  23058. NETMAP_SEARCH_DIRS=$trynetmapdir
  23059. fi
  23060. else
  23061. 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"
  23062. fi
  23063. for testdir in $NETMAP_SEARCH_DIRS; do
  23064. if test -f "${testdir}/sys/net/netmap.h" ; then
  23065. NETMAPINC="${testdir}/sys/net/netmap.h"
  23066. NETMAPUSERINC="${testdir}/sys/net/netmap_user.h"
  23067. NETMAPINCDIR="${testdir}/sys"
  23068. have_netmap="yes $testdir"
  23069. enable_netmap=yes
  23070. else
  23071. if test -f "${testdir}/net/netmap.h" ; then
  23072. NETMAPINC="${testdir}/net/netmap.h"
  23073. NETMAPUSERINC="${testdir}/net/netmap_user.h"
  23074. NETMAPINCDIR="${testdir}"
  23075. have_netmap="yes $testdir"
  23076. enable_netmap=yes
  23077. fi
  23078. fi
  23079. if test "$have_netmap" != no ; then
  23080. NETMAPFLAGS="-DHAVE_NETMAP"
  23081. OLDCFLAGS="$CFLAGS -I$NETMAPINCDIR"
  23082. CFLAGS="$CFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  23083. printf "%s\n" "#define HAVE_NETMAP 1" >>confdefs.h
  23084. have_netmap="yes $testdir"
  23085. enable_netmap=yes
  23086. break;
  23087. fi
  23088. done
  23089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_netmap" >&5
  23090. printf "%s\n" "$have_netmap" >&6; }
  23091. if test x$enable_netmap = xyes ; then
  23092. COMPILE_NETMAP_TRUE=
  23093. COMPILE_NETMAP_FALSE='#'
  23094. else
  23095. COMPILE_NETMAP_TRUE='#'
  23096. COMPILE_NETMAP_FALSE=
  23097. fi
  23098. if test "x$NETMAPINCDIR" != "x"; then
  23099. OLDCPPFLAGS="$CPPFLAGS"
  23100. CPPFLAGS="$CPPFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  23101. have_nm_open=no
  23102. have_nm_nr_reg_mask=no
  23103. have_nm_nr_flags=no
  23104. have_nmring_head_tail=no
  23105. if test "$have_netmap" != no ; then
  23106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  23107. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  23108. if test ${ac_cv_c_undeclared_builtin_options+y}
  23109. then :
  23110. printf %s "(cached) " >&6
  23111. else case e in #(
  23112. e) ac_save_CFLAGS=$CFLAGS
  23113. ac_cv_c_undeclared_builtin_options='cannot detect'
  23114. for ac_arg in '' -fno-builtin; do
  23115. CFLAGS="$ac_save_CFLAGS $ac_arg"
  23116. # This test program should *not* compile successfully.
  23117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23118. /* end confdefs.h. */
  23119. int
  23120. main (void)
  23121. {
  23122. (void) strchr;
  23123. ;
  23124. return 0;
  23125. }
  23126. _ACEOF
  23127. if ac_fn_c_try_compile "$LINENO"
  23128. then :
  23129. else case e in #(
  23130. e) # This test program should compile successfully.
  23131. # No library function is consistently available on
  23132. # freestanding implementations, so test against a dummy
  23133. # declaration. Include always-available headers on the
  23134. # off chance that they somehow elicit warnings.
  23135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23136. /* end confdefs.h. */
  23137. #include <float.h>
  23138. #include <limits.h>
  23139. #include <stdarg.h>
  23140. #include <stddef.h>
  23141. extern void ac_decl (int, char *);
  23142. int
  23143. main (void)
  23144. {
  23145. (void) ac_decl (0, (char *) 0);
  23146. (void) ac_decl;
  23147. ;
  23148. return 0;
  23149. }
  23150. _ACEOF
  23151. if ac_fn_c_try_compile "$LINENO"
  23152. then :
  23153. if test x"$ac_arg" = x
  23154. then :
  23155. ac_cv_c_undeclared_builtin_options='none needed'
  23156. else case e in #(
  23157. e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
  23158. esac
  23159. fi
  23160. break
  23161. fi
  23162. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  23163. esac
  23164. fi
  23165. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23166. done
  23167. CFLAGS=$ac_save_CFLAGS
  23168. ;;
  23169. esac
  23170. fi
  23171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  23172. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  23173. case $ac_cv_c_undeclared_builtin_options in #(
  23174. 'cannot detect') :
  23175. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  23176. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  23177. as_fn_error $? "cannot make $CC report undeclared builtins
  23178. See 'config.log' for more details" "$LINENO" 5; } ;; #(
  23179. 'none needed') :
  23180. ac_c_undeclared_builtin_options='' ;; #(
  23181. *) :
  23182. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  23183. esac
  23184. ac_fn_check_decl "$LINENO" "nm_open" "ac_cv_have_decl_nm_open" "
  23185. #include <stdio.h>
  23186. #include \"${NETMAPUSERINC}\"
  23187. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  23188. if test "x$ac_cv_have_decl_nm_open" = xyes
  23189. then :
  23190. have_nm_open=yes
  23191. fi
  23192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for netmap NR_REG_MASK definition" >&5
  23193. printf %s "checking for netmap NR_REG_MASK definition... " >&6; }
  23194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23195. /* end confdefs.h. */
  23196. #include <stdint.h>
  23197. #include <sys/socket.h>
  23198. #include <net/if.h>
  23199. #include <net/netmap.h>
  23200. int
  23201. main (void)
  23202. {
  23203. #ifdef NR_REG_MASK
  23204. /* OK */
  23205. #else
  23206. # error NR_REG_MASK not found
  23207. #endif
  23208. ;
  23209. return 0;
  23210. }
  23211. _ACEOF
  23212. if ac_fn_c_try_compile "$LINENO"
  23213. then :
  23214. have_nm_nr_reg_mask=yes
  23215. fi
  23216. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_reg_mask" >&5
  23218. printf "%s\n" "$have_nm_nr_reg_mask" >&6; }
  23219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for netmap nr_flags definition" >&5
  23220. printf %s "checking for netmap nr_flags definition... " >&6; }
  23221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23222. /* end confdefs.h. */
  23223. #include <stdint.h>
  23224. #include <sys/socket.h>
  23225. #include <net/if.h>
  23226. #include <net/netmap.h>
  23227. int
  23228. main (void)
  23229. {
  23230. struct nmreq nmr;
  23231. nmr.nr_flags = 0;
  23232. ;
  23233. return 0;
  23234. }
  23235. _ACEOF
  23236. if ac_fn_c_try_compile "$LINENO"
  23237. then :
  23238. have_nm_nr_flags=yes
  23239. fi
  23240. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_flags" >&5
  23242. printf "%s\n" "$have_nm_nr_flags" >&6; }
  23243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for netmap ring head/tail definitions" >&5
  23244. printf %s "checking for netmap ring head/tail definitions... " >&6; }
  23245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23246. /* end confdefs.h. */
  23247. #include <stdint.h>
  23248. #include <sys/socket.h>
  23249. #include <net/if.h>
  23250. #include <net/netmap.h>
  23251. int
  23252. main (void)
  23253. {
  23254. struct netmap_ring r;
  23255. r.head = r.tail = 0;
  23256. ;
  23257. return 0;
  23258. }
  23259. _ACEOF
  23260. if ac_fn_c_try_compile "$LINENO"
  23261. then :
  23262. have_nmring_head_tail=yes
  23263. fi
  23264. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nmring_head_tail" >&5
  23266. printf "%s\n" "$have_nmring_head_tail" >&6; }
  23267. fi
  23268. if test "$have_nm_open" = yes ; then
  23269. printf "%s\n" "#define HAVE_NETMAP_NM_OPEN 1" >>confdefs.h
  23270. fi
  23271. if test "$have_nm_nr_reg_mask" = yes ; then
  23272. printf "%s\n" "#define HAVE_NETMAP_NR_REG 1" >>confdefs.h
  23273. fi
  23274. if test "$have_nm_nr_flags" = yes ; then
  23275. printf "%s\n" "#define HAVE_NETMAP_NR_FLAGS 1" >>confdefs.h
  23276. fi
  23277. if test "$have_nmring_head_tail" = yes ; then
  23278. printf "%s\n" "#define HAVE_NETMAP_RING_HEAD_TAIL 1" >>confdefs.h
  23279. fi
  23280. CPPFLAGS="$OLDCPPFLAGS"
  23281. fi
  23282. have_pf=no
  23283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PF_PACKET socket sending support" >&5
  23284. printf %s "checking for PF_PACKET socket sending support... " >&6; }
  23285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23286. /* end confdefs.h. */
  23287. #include <sys/socket.h>
  23288. #include <netpacket/packet.h>
  23289. #include <net/ethernet.h> /* the L2 protocols */
  23290. #include <netinet/in.h> /* htons */
  23291. int
  23292. main (void)
  23293. {
  23294. int pf_socket;
  23295. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  23296. ;
  23297. return 0;
  23298. }
  23299. _ACEOF
  23300. if ac_fn_c_try_compile "$LINENO"
  23301. then :
  23302. printf "%s\n" "#define HAVE_PF_PACKET 1" >>confdefs.h
  23303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23304. printf "%s\n" "yes" >&6; }
  23305. have_pf=yes
  23306. else case e in #(
  23307. e)
  23308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23309. printf "%s\n" "no" >&6; }
  23310. ;;
  23311. esac
  23312. fi
  23313. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23314. have_libxdp=no
  23315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXDP XDP packet sending support" >&5
  23316. printf %s "checking for LIBXDP XDP packet sending support... " >&6; }
  23317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23318. /* end confdefs.h. */
  23319. #include <stdlib.h>
  23320. #include <xdp/xsk.h>
  23321. #include <sys/socket.h>
  23322. int
  23323. main (void)
  23324. {
  23325. struct xsk_socket {
  23326. struct xsk_ring_cons *rx;
  23327. struct xsk_ring_prod *tx;
  23328. struct xsk_ctx *ctx;
  23329. struct xsk_socket_config config;
  23330. int fd;
  23331. };
  23332. struct xsk_socket xsk;
  23333. struct xsk_ring_cons *rxr = NULL;
  23334. struct xsk_ring_prod *txr = NULL;
  23335. int queue_id = 0;
  23336. xsk_socket__create(&xsk, "lo", queue_id, NULL, rxr, txr, NULL);
  23337. socket(AF_XDP, SOCK_RAW, 0);
  23338. ;
  23339. return 0;
  23340. }
  23341. _ACEOF
  23342. if ac_fn_c_try_compile "$LINENO"
  23343. then :
  23344. printf "%s\n" "#define HAVE_LIBXDP 1" >>confdefs.h
  23345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23346. printf "%s\n" "yes" >&6; }
  23347. have_libxdp=yes
  23348. else case e in #(
  23349. e)
  23350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23351. printf "%s\n" "no" >&6; }
  23352. ;;
  23353. esac
  23354. fi
  23355. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23356. have_tx_ring=no
  23357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TX_RING socket sending support" >&5
  23358. printf %s "checking for TX_RING socket sending support... " >&6; }
  23359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23360. /* end confdefs.h. */
  23361. #include <sys/socket.h>
  23362. #include <netpacket/packet.h>
  23363. #include <net/ethernet.h> /* the L2 protocols */
  23364. #include <netinet/in.h> /* htons */
  23365. #include <linux/if_packet.h>
  23366. int
  23367. main (void)
  23368. {
  23369. int test;
  23370. test = TP_STATUS_WRONG_FORMAT
  23371. ;
  23372. return 0;
  23373. }
  23374. _ACEOF
  23375. if ac_fn_c_try_compile "$LINENO"
  23376. then :
  23377. printf "%s\n" "#define HAVE_TX_RING 1" >>confdefs.h
  23378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23379. printf "%s\n" "yes" >&6; }
  23380. have_tx_ring=yes
  23381. else case e in #(
  23382. e)
  23383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23384. printf "%s\n" "no" >&6; }
  23385. ;;
  23386. esac
  23387. fi
  23388. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23389. ac_fn_c_check_header_compile "$LINENO" "bpf/libbpf.h" "ac_cv_header_bpf_libbpf_h" "$ac_includes_default"
  23390. if test "x$ac_cv_header_bpf_libbpf_h" = xyes
  23391. then :
  23392. printf "%s\n" "#define HAVE_BPF_LIBBPF_H 1" >>confdefs.h
  23393. fi
  23394. ac_fn_c_check_header_compile "$LINENO" "bpf/bpf.h" "ac_cv_header_bpf_bpf_h" "$ac_includes_default"
  23395. if test "x$ac_cv_header_bpf_bpf_h" = xyes
  23396. then :
  23397. printf "%s\n" "#define HAVE_BPF_BPF_H 1" >>confdefs.h
  23398. fi
  23399. ac_fn_c_check_header_compile "$LINENO" "xdp/libxdp.h" "ac_cv_header_xdp_libxdp_h" "$ac_includes_default"
  23400. if test "x$ac_cv_header_xdp_libxdp_h" = xyes
  23401. then :
  23402. printf "%s\n" "#define HAVE_XDP_LIBXDP_H 1" >>confdefs.h
  23403. fi
  23404. for ac_header in net/bpf.h
  23405. do :
  23406. ac_fn_c_check_header_compile "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
  23407. if test "x$ac_cv_header_net_bpf_h" = xyes
  23408. then :
  23409. printf "%s\n" "#define HAVE_NET_BPF_H 1" >>confdefs.h
  23410. have_bpf=yes
  23411. else case e in #(
  23412. e) have_bpf=no ;;
  23413. esac
  23414. fi
  23415. done
  23416. if test $have_bpf = yes ; then
  23417. printf "%s\n" "#define HAVE_BPF 1" >>confdefs.h
  23418. fi
  23419. founddnet=no
  23420. have_libdnet=no
  23421. libdnet_version=
  23422. enable_fragroute=no
  23423. trydnetdir=/usr/local
  23424. if test $have_cygwin = no ; then
  23425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
  23426. printf %s "checking for libdnet... " >&6; }
  23427. # Check whether --with-libdnet was given.
  23428. if test ${with_libdnet+y}
  23429. then :
  23430. withval=$with_libdnet; trydnetdir=$withval
  23431. fi
  23432. if test $trydnetdir != no; then
  23433. case "$build_os" in
  23434. linux*)
  23435. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  23436. if test -x ${testdir}/bin/dumbnet-config -a $founddnet = no ; then
  23437. LDNETINC="$($testdir/bin/dumbnet-config --cflags)"
  23438. LDNETLIB="$($testdir/bin/dumbnet-config --libs)"
  23439. libdnet_version="$($testdir/bin/dumbnet-config --version) (libdumbnet)"
  23440. founddnet=$testdir
  23441. fi
  23442. done
  23443. ;;
  23444. esac
  23445. if test $founddnet = no ; then
  23446. for testdir in $trydnetdir /usr/local /opt/local $MACOSX_SDK_PATH/usr /usr ; do
  23447. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  23448. LDNETINC="$($testdir/bin/dnet-config --cflags)"
  23449. LDNETLIB="$($testdir/bin/dnet-config --libs)"
  23450. libdnet_version="$($testdir/bin/dnet-config --version)"
  23451. founddnet=$testdir
  23452. fi
  23453. done
  23454. fi
  23455. fi
  23456. if test $founddnet = no ; then
  23457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23458. printf "%s\n" "no" >&6; }
  23459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libdnet not found, disabling fragroute feature" >&5
  23460. printf "%s\n" "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  23461. else
  23462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $founddnet" >&5
  23463. printf "%s\n" "$founddnet" >&6; }
  23464. enable_fragroute=yes
  23465. have_libdnet=yes
  23466. printf "%s\n" "#define HAVE_LIBDNET 1" >>confdefs.h
  23467. old_cflags=$CFLAGS
  23468. CFLAGS=$LDNETINC
  23469. ac_fn_c_check_header_compile "$LINENO" "dumbnet.h" "ac_cv_header_dumbnet_h" "$ac_includes_default"
  23470. if test "x$ac_cv_header_dumbnet_h" = xyes
  23471. then :
  23472. printf "%s\n" "#define HAVE_DUMBNET_H 1" >>confdefs.h
  23473. fi
  23474. ac_fn_c_check_header_compile "$LINENO" "dnet.h" "ac_cv_header_dnet_h" "$ac_includes_default"
  23475. if test "x$ac_cv_header_dnet_h" = xyes
  23476. then :
  23477. printf "%s\n" "#define HAVE_DNET_H 1" >>confdefs.h
  23478. fi
  23479. CFLAGS=$old_cflags
  23480. fi
  23481. else
  23482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  23483. printf "%s\n" "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  23484. fi
  23485. printf "%s\n" "#define LIBDNET_VERSION \"$libdnet_version\"" >>confdefs.h
  23486. if test x$founddnet != xno; then
  23487. COMPILE_FRAGROUTE_TRUE=
  23488. COMPILE_FRAGROUTE_FALSE='#'
  23489. else
  23490. COMPILE_FRAGROUTE_TRUE='#'
  23491. COMPILE_FRAGROUTE_FALSE=
  23492. fi
  23493. if test x$founddnet != xno ; then
  23494. printf "%s\n" "#define ENABLE_FRAGROUTE 1" >>confdefs.h
  23495. fi
  23496. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  23497. -a $have_libdnet = no -a $have_pf = no ; then
  23498. as_fn_error $? "Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" "$LINENO" 5
  23499. fi
  23500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL in libpcap" >&5
  23501. printf %s "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  23502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23503. /* end confdefs.h. */
  23504. #include "$LPCAPINC"
  23505. int
  23506. main (void)
  23507. {
  23508. int foo;
  23509. foo = DLT_LINUX_SLL
  23510. ;
  23511. return 0;
  23512. }
  23513. _ACEOF
  23514. if ac_fn_c_try_compile "$LINENO"
  23515. then :
  23516. printf "%s\n" "#define HAVE_DLT_LINUX_SLL 1" >>confdefs.h
  23517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23518. printf "%s\n" "yes" >&6; }
  23519. else case e in #(
  23520. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23521. printf "%s\n" "no" >&6; }
  23522. ;;
  23523. esac
  23524. fi
  23525. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL2 in libpcap" >&5
  23527. printf %s "checking for DLT_LINUX_SLL2 in libpcap... " >&6; }
  23528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23529. /* end confdefs.h. */
  23530. #include "$LPCAPINC"
  23531. int
  23532. main (void)
  23533. {
  23534. int foo;
  23535. foo = DLT_LINUX_SLL2
  23536. ;
  23537. return 0;
  23538. }
  23539. _ACEOF
  23540. if ac_fn_c_try_compile "$LINENO"
  23541. then :
  23542. printf "%s\n" "#define HAVE_DLT_LINUX_SLL2 1" >>confdefs.h
  23543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23544. printf "%s\n" "yes" >&6; }
  23545. else case e in #(
  23546. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23547. printf "%s\n" "no" >&6; }
  23548. ;;
  23549. esac
  23550. fi
  23551. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DLT_C_HDLC in libpcap" >&5
  23553. printf %s "checking for DLT_C_HDLC in libpcap... " >&6; }
  23554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23555. /* end confdefs.h. */
  23556. #include "$LPCAPINC"
  23557. int
  23558. main (void)
  23559. {
  23560. int foo;
  23561. foo = DLT_C_HDLC
  23562. ;
  23563. return 0;
  23564. }
  23565. _ACEOF
  23566. if ac_fn_c_try_compile "$LINENO"
  23567. then :
  23568. printf "%s\n" "#define HAVE_DLT_C_HDLC 1" >>confdefs.h
  23569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23570. printf "%s\n" "yes" >&6; }
  23571. else case e in #(
  23572. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23573. printf "%s\n" "no" >&6; }
  23574. ;;
  23575. esac
  23576. fi
  23577. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23578. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  23579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PCAP_BPF_H_FILE" >&5
  23580. printf %s "checking for $PCAP_BPF_H_FILE... " >&6; }
  23581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23582. /* end confdefs.h. */
  23583. #include <sys/types.h>
  23584. #include <sys/time.h>
  23585. #include <stdint.h>
  23586. #include "$PCAP_BPF_H_FILE"
  23587. int
  23588. main (void)
  23589. {
  23590. int foo;
  23591. foo = BPF_MAJOR_VERSION;
  23592. ;
  23593. return 0;
  23594. }
  23595. _ACEOF
  23596. if ac_fn_c_try_compile "$LINENO"
  23597. then :
  23598. printf "%s\n" "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  23599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23600. printf "%s\n" "yes" >&6; }
  23601. else case e in #(
  23602. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23603. printf "%s\n" "no" >&6; }
  23604. ;;
  23605. esac
  23606. fi
  23607. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23608. foundbpfheader=no
  23609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpcap bpf header" >&5
  23610. printf %s "checking for libpcap bpf header... " >&6; }
  23611. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  23612. if test -f "${testfile}" -a $foundbpfheader = no ; then
  23613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23614. /* end confdefs.h. */
  23615. #include <sys/types.h>
  23616. #include <sys/time.h>
  23617. #include <stdint.h>
  23618. #include "$testfile"
  23619. int
  23620. main (void)
  23621. {
  23622. int foo;
  23623. foo = BPF_MAJOR_VERSION;
  23624. ;
  23625. return 0;
  23626. }
  23627. _ACEOF
  23628. if ac_fn_c_try_compile "$LINENO"
  23629. then :
  23630. foundbpfheader=yes
  23631. PCAP_BPF_H_FILE=$testfile
  23632. printf "%s\n" "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  23633. fi
  23634. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23635. fi
  23636. done
  23637. if test $foundbpfheader != no; then
  23638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $testfile" >&5
  23639. printf "%s\n" "$testfile" >&6; }
  23640. else
  23641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23642. printf "%s\n" "no" >&6; }
  23643. fi
  23644. have_pcap_netmap=no
  23645. if test $foundpcap != no ; then
  23646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for netmap libpcap" >&5
  23647. printf %s "checking for netmap libpcap... " >&6; }
  23648. PCAP_NETMAP_C_FILE="$LPCAPINCDIR/pcap-netmap.c"
  23649. if test -f "${PCAP_NETMAP_C_FILE}" ; then
  23650. printf "%s\n" "#define HAVE_LIBPCAP_NETMAP 1" >>confdefs.h
  23651. have_pcap_netmap=yes
  23652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23653. printf "%s\n" "yes" >&6; }
  23654. else
  23655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23656. printf "%s\n" "no" >&6; }
  23657. fi
  23658. fi
  23659. LIBS="$OLDLIBS"
  23660. CFLAGS="$OLDCFLAGS"
  23661. pcapnav_ver=no
  23662. pcncfg=no
  23663. # Check whether --with-pcapnav-config was given.
  23664. if test ${with_pcapnav_config+y}
  23665. then :
  23666. withval=$with_pcapnav_config; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcapnav-config" >&5
  23667. printf %s "checking for pcapnav-config... " >&6; }
  23668. if test -x $withval ; then
  23669. pcncfg=$withval
  23670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  23671. printf "%s\n" "$pcncfg" >&6; }
  23672. elif test x$withval = xno ; then
  23673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23674. printf "%s\n" "no" >&6; }
  23675. else
  23676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  23677. printf "%s\n" "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  23678. fi
  23679. else case e in #(
  23680. e) # Extract the first word of "pcapnav-config", so it can be a program name with args.
  23681. set dummy pcapnav-config; ac_word=$2
  23682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23683. printf %s "checking for $ac_word... " >&6; }
  23684. if test ${ac_cv_path_pcncfg+y}
  23685. then :
  23686. printf %s "(cached) " >&6
  23687. else case e in #(
  23688. e) case $pcncfg in
  23689. [\\/]* | ?:[\\/]*)
  23690. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  23691. ;;
  23692. *)
  23693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23694. for as_dir in $PATH
  23695. do
  23696. IFS=$as_save_IFS
  23697. case $as_dir in #(((
  23698. '') as_dir=./ ;;
  23699. */) ;;
  23700. *) as_dir=$as_dir/ ;;
  23701. esac
  23702. for ac_exec_ext in '' $ac_executable_extensions; do
  23703. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  23704. ac_cv_path_pcncfg="$as_dir$ac_word$ac_exec_ext"
  23705. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  23706. break 2
  23707. fi
  23708. done
  23709. done
  23710. IFS=$as_save_IFS
  23711. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  23712. ;;
  23713. esac ;;
  23714. esac
  23715. fi
  23716. pcncfg=$ac_cv_path_pcncfg
  23717. if test -n "$pcncfg"; then
  23718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  23719. printf "%s\n" "$pcncfg" >&6; }
  23720. else
  23721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23722. printf "%s\n" "no" >&6; }
  23723. fi
  23724. ;;
  23725. esac
  23726. fi
  23727. if test $pcncfg != no ; then
  23728. LNAVLIB=$($pcncfg --libs)
  23729. LNAV_CFLAGS=$($pcncfg --cflags)
  23730. PCAPNAV_VERSION=$($pcncfg --version)
  23731. printf "%s\n" "#define PCAPNAV_VERSION \"$PCAPNAV_VERSION\"" >>confdefs.h
  23732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpcapnav version" >&5
  23733. printf %s "checking for libpcapnav version... " >&6; }
  23734. if test "$cross_compiling" = yes
  23735. then :
  23736. libpcapnav_ver=no
  23737. else case e in #(
  23738. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23739. /* end confdefs.h. */
  23740. #include <string.h>
  23741. #define PCAPNAV_TEST "0.4"
  23742. /*
  23743. * simple proggy to test the version of libpcapnav
  23744. * returns zero if version >= 0.4
  23745. * or one otherwise
  23746. */
  23747. int
  23748. main (int argc, char *argv[])
  23749. {
  23750. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  23751. return 0;
  23752. return 1;
  23753. }
  23754. _ACEOF
  23755. if ac_fn_c_try_run "$LINENO"
  23756. then :
  23757. libpcapnav_ver=yes
  23758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: >= 0.4" >&5
  23759. printf "%s\n" ">= 0.4" >&6; }
  23760. else case e in #(
  23761. e) libpcapnav_ver=no
  23762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: < 0.4" >&5
  23763. printf "%s\n" "< 0.4" >&6; } ;;
  23764. esac
  23765. fi
  23766. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23767. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  23768. esac
  23769. fi
  23770. if test x$libpcapnav_ver = xno ; then
  23771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libpcapnav versions < 0.4 are not supported.
  23772. Please upgrade to version 0.4 or better.
  23773. Disabling offset jump feature." >&5
  23774. printf "%s\n" "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  23775. Please upgrade to version 0.4 or better.
  23776. Disabling offset jump feature." >&2;}
  23777. else
  23778. printf "%s\n" "#define HAVE_PCAPNAV 1" >>confdefs.h
  23779. fi
  23780. fi # checking pcapnav version
  23781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for requires strict byte alignment" >&5
  23782. printf %s "checking for requires strict byte alignment... " >&6; }
  23783. if test ${unaligned_cv_fail+y}
  23784. then :
  23785. printf %s "(cached) " >&6
  23786. else case e in #(
  23787. e)
  23788. case "$host_os" in
  23789. darwin*)
  23790. # macOS M1 test fails due to lack of fork() so just hard code it
  23791. unaligned_cv_fail=no
  23792. ;;
  23793. *)
  23794. case "$host_cpu" in
  23795. # XXX: should also check that they don't do weird things
  23796. alpha*|arm*|hp*|mips*|sparc*|ia64)
  23797. unaligned_cv_fail=yes
  23798. ;;
  23799. *)
  23800. cat >conftest.c <<EOF
  23801. #include <sys/types.h>
  23802. #include <sys/wait.h>
  23803. #include <stdio.h>
  23804. #include <unistd.h>
  23805. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  23806. int main() {
  23807. unsigned int i;
  23808. pid_t pid;
  23809. int status;
  23810. /* avoid "core dumped" message */
  23811. pid = fork();
  23812. if (pid < 0)
  23813. return 2;
  23814. if (pid > 0) {
  23815. /* parent */
  23816. pid = waitpid(pid, &status, 0);
  23817. if (pid < 0)
  23818. return 3;
  23819. return !WIFEXITED(status);
  23820. }
  23821. /* child */
  23822. i = *(unsigned int *)&a[1];
  23823. printf("%d\n", i);
  23824. return 0;
  23825. }
  23826. EOF
  23827. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  23828. conftest.c $LIBS >/dev/null 2>&1
  23829. if test ! -x conftest -o "$cross_compiling" = "yes" ; then
  23830. unaligned_cv_fail=yes
  23831. else
  23832. ./conftest >conftest.out
  23833. if test ! -s conftest.out ; then
  23834. unaligned_cv_fail=yes
  23835. else
  23836. unaligned_cv_fail=no
  23837. fi
  23838. fi
  23839. rm -f conftest* core core.conftest
  23840. ;;
  23841. esac
  23842. ;;
  23843. esac
  23844. ;;
  23845. esac
  23846. fi
  23847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unaligned_cv_fail" >&5
  23848. printf "%s\n" "$unaligned_cv_fail" >&6; }
  23849. if test $unaligned_cv_fail = yes ; then
  23850. printf "%s\n" "#define FORCE_ALIGN 1" >>confdefs.h
  23851. fi
  23852. tcpdump_path=no
  23853. # Check whether --with-tcpdump was given.
  23854. if test ${with_tcpdump+y}
  23855. then :
  23856. withval=$with_tcpdump; if test -x $withval ; then
  23857. tcpdump_path=$withval
  23858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using tcpdump in $tcpdump_path" >&5
  23859. printf "%s\n" "Using tcpdump in $tcpdump_path" >&6; }
  23860. else
  23861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Error: $withval does not exist or is not executable" >&5
  23862. printf "%s\n" "Error: $withval does not exist or is not executable" >&6; }
  23863. fi
  23864. else case e in #(
  23865. e) # Extract the first word of "tcpdump", so it can be a program name with args.
  23866. set dummy tcpdump; ac_word=$2
  23867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23868. printf %s "checking for $ac_word... " >&6; }
  23869. if test ${ac_cv_path_tcpdump_path+y}
  23870. then :
  23871. printf %s "(cached) " >&6
  23872. else case e in #(
  23873. e) case $tcpdump_path in
  23874. [\\/]* | ?:[\\/]*)
  23875. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  23876. ;;
  23877. *)
  23878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23879. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  23880. for as_dir in $as_dummy
  23881. do
  23882. IFS=$as_save_IFS
  23883. case $as_dir in #(((
  23884. '') as_dir=./ ;;
  23885. */) ;;
  23886. *) as_dir=$as_dir/ ;;
  23887. esac
  23888. for ac_exec_ext in '' $ac_executable_extensions; do
  23889. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  23890. ac_cv_path_tcpdump_path="$as_dir$ac_word$ac_exec_ext"
  23891. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  23892. break 2
  23893. fi
  23894. done
  23895. done
  23896. IFS=$as_save_IFS
  23897. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  23898. ;;
  23899. esac ;;
  23900. esac
  23901. fi
  23902. tcpdump_path=$ac_cv_path_tcpdump_path
  23903. if test -n "$tcpdump_path"; then
  23904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcpdump_path" >&5
  23905. printf "%s\n" "$tcpdump_path" >&6; }
  23906. else
  23907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23908. printf "%s\n" "no" >&6; }
  23909. fi
  23910. ;;
  23911. esac
  23912. fi
  23913. if test "$tcpdump_path" = "no"; then
  23914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  23915. Disabling --verbose" >&5
  23916. printf "%s\n" "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  23917. Disabling --verbose" >&2;}
  23918. else
  23919. printf "%s\n" "#define HAVE_TCPDUMP 1" >>confdefs.h
  23920. printf "%s\n" "#define TCPDUMP_BINARY \"$tcpdump_path\"" >>confdefs.h
  23921. fi
  23922. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  23923. ENABLE_TCPDUMP_TRUE=
  23924. ENABLE_TCPDUMP_FALSE='#'
  23925. else
  23926. ENABLE_TCPDUMP_TRUE='#'
  23927. ENABLE_TCPDUMP_FALSE=
  23928. fi
  23929. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  23930. printf "%s\n" "#define ENABLE_VERBOSE 1" >>confdefs.h
  23931. else
  23932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libpcap does not support --verbose" >&5
  23933. printf "%s\n" "$as_me: WARNING: Your version of libpcap does not support --verbose" >&2;}
  23934. fi
  23935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 'make test' profile" >&5
  23936. printf %s "checking for 'make test' profile... " >&6; }
  23937. if test "$host" = "$build" ; then
  23938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23939. printf "%s\n" "yes" >&6; }
  23940. else
  23941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to do tests when cross-compiling" >&5
  23942. printf "%s\n" "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  23943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Unable to do tests when cross-compiling" >&5
  23944. printf "%s\n" "Unable to do tests when cross-compiling" >&6; }
  23945. fi
  23946. # Check whether --with-testnic was given.
  23947. if test ${with_testnic+y}
  23948. then :
  23949. withval=$with_testnic; nic1=$withval
  23950. nic2=$withval
  23951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using --with-testnic=$withval" >&5
  23952. printf "%s\n" "Using --with-testnic=$withval" >&6; }
  23953. else case e in #(
  23954. e)
  23955. case $host in
  23956. *-*-linux*)
  23957. nic1=eth0
  23958. nic2=eth0
  23959. ;;
  23960. *-*-solaris*)
  23961. nic1=hme0
  23962. nic2=hme0
  23963. ;;
  23964. *-*-sunos*)
  23965. nic1=hme0
  23966. nic2=hme0
  23967. ;;
  23968. *-apple-darwin*)
  23969. nic1=en0
  23970. nic2=en0
  23971. ;;
  23972. *-*-openbsd*)
  23973. nic1=xl0
  23974. nic2=xl0
  23975. ;;
  23976. *-*-freebsd*)
  23977. nic1=em0
  23978. nic2=em0
  23979. ;;
  23980. *-*-cygwin)
  23981. nic1=%0
  23982. nic2=%0
  23983. ;;
  23984. *)
  23985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host is unknown! Using first non-loopback interface" >&5
  23986. printf "%s\n" "$host is unknown! Using first non-loopback interface" >&6; }
  23987. nic1=%0
  23988. nic2=%0
  23989. ;;
  23990. esac ;;
  23991. esac
  23992. fi
  23993. # Check whether --enable-test_hexdump was given.
  23994. if test ${enable_test_hexdump+y}
  23995. then :
  23996. enableval=$enable_test_hexdump;
  23997. fi
  23998. if test "x$enable_test_hexdump" = "xyes"; then
  23999. test_hexdump=yes
  24000. else
  24001. test_hexdump=no
  24002. fi
  24003. disable_pcap_findalldevs=no
  24004. osx_frameworks=no
  24005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OS version" >&5
  24006. printf %s "checking for OS version... " >&6; }
  24007. case $host in
  24008. *-*-linux*)
  24009. printf "%s\n" "#define HAVE_LINUX 1" >>confdefs.h
  24010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  24011. printf "%s\n" "Linux" >&6; }
  24012. ;;
  24013. *-*-solaris*)
  24014. printf "%s\n" "#define HAVE_SOLARIS 1" >>confdefs.h
  24015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
  24016. printf "%s\n" "Solaris" >&6; }
  24017. ;;
  24018. *-*-sunos*)
  24019. printf "%s\n" "#define HAVE_SUNOS 1" >>confdefs.h
  24020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
  24021. printf "%s\n" "SunOS" >&6; }
  24022. ;;
  24023. *-apple-darwin*)
  24024. if test x$libpcap_version_096 = xno ; then
  24025. disable_pcap_findalldevs=yes
  24026. fi
  24027. osx_frameworks=yes
  24028. printf "%s\n" "#define HAVE_DARWIN 1" >>confdefs.h
  24029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Apple macOS" >&5
  24030. printf "%s\n" "Apple macOS" >&6; }
  24031. ;;
  24032. *-*-openbsd*)
  24033. printf "%s\n" "#define HAVE_OPENBSD 1" >>confdefs.h
  24034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  24035. printf "%s\n" "OpenBSD" >&6; }
  24036. ;;
  24037. *-*-freebsd*)
  24038. printf "%s\n" "#define HAVE_FREEBSD 1" >>confdefs.h
  24039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
  24040. printf "%s\n" "FreeBSD" >&6; }
  24041. ;;
  24042. *-*-cygwin)
  24043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Win32/Cygwin" >&5
  24044. printf "%s\n" "Win32/Cygwin" >&6; }
  24045. printf "%s\n" "#define HAVE_CYGWIN 1" >>confdefs.h
  24046. ;;
  24047. *)
  24048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host is unknown!" >&5
  24049. printf "%s\n" "$host is unknown!" >&6; }
  24050. ;;
  24051. esac
  24052. if test "$osx_frameworks" = "yes"; then
  24053. ENABLE_OSX_FRAMEWORKS_TRUE=
  24054. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  24055. else
  24056. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  24057. ENABLE_OSX_FRAMEWORKS_FALSE=
  24058. fi
  24059. # Check whether --with-testnic2 was given.
  24060. if test ${with_testnic2+y}
  24061. then :
  24062. withval=$with_testnic2; nic2=$withval
  24063. fi
  24064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using $nic1 for 1st test network interface card" >&5
  24065. printf "%s\n" "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  24066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using $nic2 for 2nd test network interface card" >&5
  24067. printf "%s\n" "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  24068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if it's ok to use pcap_findalldevs()" >&5
  24069. printf %s "checking if it's ok to use pcap_findalldevs()... " >&6; }
  24070. if test x$disable_pcap_findalldevs = xno ; then
  24071. printf "%s\n" "#define ENABLE_PCAP_FINDALLDEVS 1" >>confdefs.h
  24072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24073. printf "%s\n" "yes" >&6; }
  24074. else
  24075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24076. printf "%s\n" "no" >&6; }
  24077. fi
  24078. ac_header_dirent=no
  24079. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  24080. as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
  24081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  24082. printf %s "checking for $ac_hdr that defines DIR... " >&6; }
  24083. if eval test \${$as_ac_Header+y}
  24084. then :
  24085. printf %s "(cached) " >&6
  24086. else case e in #(
  24087. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24088. /* end confdefs.h. */
  24089. #include <sys/types.h>
  24090. #include <$ac_hdr>
  24091. int
  24092. main (void)
  24093. {
  24094. if ((DIR *) 0)
  24095. return 0;
  24096. ;
  24097. return 0;
  24098. }
  24099. _ACEOF
  24100. if ac_fn_c_try_compile "$LINENO"
  24101. then :
  24102. eval "$as_ac_Header=yes"
  24103. else case e in #(
  24104. e) eval "$as_ac_Header=no" ;;
  24105. esac
  24106. fi
  24107. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  24108. esac
  24109. fi
  24110. eval ac_res=\$$as_ac_Header
  24111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24112. printf "%s\n" "$ac_res" >&6; }
  24113. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  24114. then :
  24115. cat >>confdefs.h <<_ACEOF
  24116. #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
  24117. _ACEOF
  24118. ac_header_dirent=$ac_hdr; break
  24119. fi
  24120. done
  24121. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  24122. if test $ac_header_dirent = dirent.h; then
  24123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  24124. printf %s "checking for library containing opendir... " >&6; }
  24125. if test ${ac_cv_search_opendir+y}
  24126. then :
  24127. printf %s "(cached) " >&6
  24128. else case e in #(
  24129. e) ac_func_search_save_LIBS=$LIBS
  24130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24131. /* end confdefs.h. */
  24132. /* Override any GCC internal prototype to avoid an error.
  24133. Use char because int might match the return type of a GCC
  24134. builtin and then its argument prototype would still apply.
  24135. The 'extern "C"' is for builds by C++ compilers;
  24136. although this is not generally supported in C code supporting it here
  24137. has little cost and some practical benefit (sr 110532). */
  24138. #ifdef __cplusplus
  24139. extern "C"
  24140. #endif
  24141. char opendir (void);
  24142. int
  24143. main (void)
  24144. {
  24145. return opendir ();
  24146. ;
  24147. return 0;
  24148. }
  24149. _ACEOF
  24150. for ac_lib in '' dir
  24151. do
  24152. if test -z "$ac_lib"; then
  24153. ac_res="none required"
  24154. else
  24155. ac_res=-l$ac_lib
  24156. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24157. fi
  24158. if ac_fn_c_try_link "$LINENO"
  24159. then :
  24160. ac_cv_search_opendir=$ac_res
  24161. fi
  24162. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24163. conftest$ac_exeext
  24164. if test ${ac_cv_search_opendir+y}
  24165. then :
  24166. break
  24167. fi
  24168. done
  24169. if test ${ac_cv_search_opendir+y}
  24170. then :
  24171. else case e in #(
  24172. e) ac_cv_search_opendir=no ;;
  24173. esac
  24174. fi
  24175. rm conftest.$ac_ext
  24176. LIBS=$ac_func_search_save_LIBS ;;
  24177. esac
  24178. fi
  24179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  24180. printf "%s\n" "$ac_cv_search_opendir" >&6; }
  24181. ac_res=$ac_cv_search_opendir
  24182. if test "$ac_res" != no
  24183. then :
  24184. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24185. fi
  24186. else
  24187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  24188. printf %s "checking for library containing opendir... " >&6; }
  24189. if test ${ac_cv_search_opendir+y}
  24190. then :
  24191. printf %s "(cached) " >&6
  24192. else case e in #(
  24193. e) ac_func_search_save_LIBS=$LIBS
  24194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24195. /* end confdefs.h. */
  24196. /* Override any GCC internal prototype to avoid an error.
  24197. Use char because int might match the return type of a GCC
  24198. builtin and then its argument prototype would still apply.
  24199. The 'extern "C"' is for builds by C++ compilers;
  24200. although this is not generally supported in C code supporting it here
  24201. has little cost and some practical benefit (sr 110532). */
  24202. #ifdef __cplusplus
  24203. extern "C"
  24204. #endif
  24205. char opendir (void);
  24206. int
  24207. main (void)
  24208. {
  24209. return opendir ();
  24210. ;
  24211. return 0;
  24212. }
  24213. _ACEOF
  24214. for ac_lib in '' x
  24215. do
  24216. if test -z "$ac_lib"; then
  24217. ac_res="none required"
  24218. else
  24219. ac_res=-l$ac_lib
  24220. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24221. fi
  24222. if ac_fn_c_try_link "$LINENO"
  24223. then :
  24224. ac_cv_search_opendir=$ac_res
  24225. fi
  24226. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24227. conftest$ac_exeext
  24228. if test ${ac_cv_search_opendir+y}
  24229. then :
  24230. break
  24231. fi
  24232. done
  24233. if test ${ac_cv_search_opendir+y}
  24234. then :
  24235. else case e in #(
  24236. e) ac_cv_search_opendir=no ;;
  24237. esac
  24238. fi
  24239. rm conftest.$ac_ext
  24240. LIBS=$ac_func_search_save_LIBS ;;
  24241. esac
  24242. fi
  24243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  24244. printf "%s\n" "$ac_cv_search_opendir" >&6; }
  24245. ac_res=$ac_cv_search_opendir
  24246. if test "$ac_res" != no
  24247. then :
  24248. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24249. fi
  24250. fi
  24251. # =================
  24252. # AC_CHECK_HEADERS
  24253. # =================
  24254. ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  24255. if test "x$ac_cv_header_sys_mman_h" = xyes
  24256. then :
  24257. printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
  24258. fi
  24259. ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
  24260. if test "x$ac_cv_header_sys_param_h" = xyes
  24261. then :
  24262. printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
  24263. fi
  24264. ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  24265. if test "x$ac_cv_header_sys_poll_h" = xyes
  24266. then :
  24267. printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  24268. fi
  24269. ac_fn_c_check_header_compile "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
  24270. if test "x$ac_cv_header_sys_procset_h" = xyes
  24271. then :
  24272. printf "%s\n" "#define HAVE_SYS_PROCSET_H 1" >>confdefs.h
  24273. fi
  24274. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
  24275. if test "x$ac_cv_header_sys_select_h" = xyes
  24276. then :
  24277. printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  24278. fi
  24279. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  24280. if test "x$ac_cv_header_sys_socket_h" = xyes
  24281. then :
  24282. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  24283. fi
  24284. ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default"
  24285. if test "x$ac_cv_header_sys_stropts_h" = xyes
  24286. then :
  24287. printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h
  24288. fi
  24289. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  24290. if test "x$ac_cv_header_sys_time_h" = xyes
  24291. then :
  24292. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  24293. fi
  24294. ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
  24295. if test "x$ac_cv_header_sys_un_h" = xyes
  24296. then :
  24297. printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
  24298. fi
  24299. ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
  24300. if test "x$ac_cv_header_sys_wait_h" = xyes
  24301. then :
  24302. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  24303. fi
  24304. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  24305. if test "x$ac_cv_header_dlfcn_h" = xyes
  24306. then :
  24307. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  24308. fi
  24309. ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
  24310. if test "x$ac_cv_header_errno_h" = xyes
  24311. then :
  24312. printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
  24313. fi
  24314. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  24315. if test "x$ac_cv_header_fcntl_h" = xyes
  24316. then :
  24317. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  24318. fi
  24319. ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
  24320. if test "x$ac_cv_header_libgen_h" = xyes
  24321. then :
  24322. printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
  24323. fi
  24324. ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
  24325. if test "x$ac_cv_header_libintl_h" = xyes
  24326. then :
  24327. printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
  24328. fi
  24329. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  24330. if test "x$ac_cv_header_memory_h" = xyes
  24331. then :
  24332. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  24333. fi
  24334. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  24335. if test "x$ac_cv_header_netinet_in_h" = xyes
  24336. then :
  24337. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  24338. fi
  24339. ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
  24340. if test "x$ac_cv_header_setjmp_h" = xyes
  24341. then :
  24342. printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
  24343. fi
  24344. ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
  24345. if test "x$ac_cv_header_stdbool_h" = xyes
  24346. then :
  24347. printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
  24348. fi
  24349. ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
  24350. if test "x$ac_cv_header_sysexits_h" = xyes
  24351. then :
  24352. printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
  24353. fi
  24354. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  24355. if test "x$ac_cv_header_unistd_h" = xyes
  24356. then :
  24357. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  24358. fi
  24359. ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
  24360. if test "x$ac_cv_header_utime_h" = xyes
  24361. then :
  24362. printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
  24363. fi
  24364. for ac_header in stdarg.h varargs.h
  24365. do :
  24366. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  24367. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  24368. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  24369. then :
  24370. cat >>confdefs.h <<_ACEOF
  24371. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  24372. _ACEOF
  24373. lo_have_arg_hdr=true;break
  24374. else case e in #(
  24375. e) lo_have_arg_hdr=false ;;
  24376. esac
  24377. fi
  24378. done
  24379. for ac_header in string.h strings.h
  24380. do :
  24381. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  24382. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  24383. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  24384. then :
  24385. cat >>confdefs.h <<_ACEOF
  24386. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  24387. _ACEOF
  24388. lo_have_str_hdr=true;break
  24389. else case e in #(
  24390. e) lo_have_str_hdr=false ;;
  24391. esac
  24392. fi
  24393. done
  24394. for ac_header in limits.h sys/limits.h values.h
  24395. do :
  24396. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  24397. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  24398. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  24399. then :
  24400. cat >>confdefs.h <<_ACEOF
  24401. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  24402. _ACEOF
  24403. lo_have_lim_hdr=true;break
  24404. else case e in #(
  24405. e) lo_have_lim_hdr=false ;;
  24406. esac
  24407. fi
  24408. done
  24409. for ac_header in inttypes.h stdint.h
  24410. do :
  24411. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  24412. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  24413. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  24414. then :
  24415. cat >>confdefs.h <<_ACEOF
  24416. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  24417. _ACEOF
  24418. lo_have_typ_hdr=true;break
  24419. else case e in #(
  24420. e) lo_have_typ_hdr=false ;;
  24421. esac
  24422. fi
  24423. done
  24424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  24425. printf %s "checking for working stdnoreturn.h... " >&6; }
  24426. if test ${gl_cv_header_working_stdnoreturn_h+y}
  24427. then :
  24428. printf %s "(cached) " >&6
  24429. else case e in #(
  24430. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24431. /* end confdefs.h. */
  24432. #include <stdlib.h>
  24433. #include <stdnoreturn.h>
  24434. /* Do not check for 'noreturn' after the return type.
  24435. C11 allows it, but it's rarely done that way
  24436. and circa-2012 bleeding-edge GCC rejects it when given
  24437. -Werror=old-style-declaration. */
  24438. noreturn void foo1 (void) { exit (0); }
  24439. _Noreturn void foo2 (void) { exit (0); }
  24440. int testit (int argc, char **argv) {
  24441. if (argc & 1)
  24442. return 0;
  24443. (argv[0][0] ? foo1 : foo2) ();
  24444. }
  24445. int
  24446. main (void)
  24447. {
  24448. ;
  24449. return 0;
  24450. }
  24451. _ACEOF
  24452. if ac_fn_c_try_compile "$LINENO"
  24453. then :
  24454. gl_cv_header_working_stdnoreturn_h=yes
  24455. else case e in #(
  24456. e) gl_cv_header_working_stdnoreturn_h=no ;;
  24457. esac
  24458. fi
  24459. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  24460. esac
  24461. fi
  24462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  24463. printf "%s\n" "$gl_cv_header_working_stdnoreturn_h" >&6; }
  24464. if test $gl_cv_header_working_stdnoreturn_h = yes; then
  24465. STDNORETURN_H=''
  24466. else
  24467. STDNORETURN_H='stdnoreturn.h'
  24468. fi
  24469. if test -n "$STDNORETURN_H"; then
  24470. GL_GENERATE_STDNORETURN_H_TRUE=
  24471. GL_GENERATE_STDNORETURN_H_FALSE='#'
  24472. else
  24473. GL_GENERATE_STDNORETURN_H_TRUE='#'
  24474. GL_GENERATE_STDNORETURN_H_FALSE=
  24475. fi
  24476. # ----------------------------------------------------------------------
  24477. # check for various programs used during the build.
  24478. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  24479. # ----------------------------------------------------------------------
  24480. ac_fn_c_check_header_compile "$LINENO" "runetype.h" "ac_cv_header_runetype_h" "
  24481. $ac_includes_default
  24482. #if HAVE_RUNETYPE_H
  24483. # include <runetype.h>
  24484. #endif
  24485. "
  24486. if test "x$ac_cv_header_runetype_h" = xyes
  24487. then :
  24488. printf "%s\n" "#define HAVE_RUNETYPE_H 1" >>confdefs.h
  24489. fi
  24490. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "
  24491. $ac_includes_default
  24492. #if HAVE_RUNETYPE_H
  24493. # include <runetype.h>
  24494. #endif
  24495. "
  24496. if test "x$ac_cv_header_wchar_h" = xyes
  24497. then :
  24498. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  24499. fi
  24500. # Check whether --enable-nls was given.
  24501. if test ${enable_nls+y}
  24502. then :
  24503. enableval=$enable_nls;
  24504. fi
  24505. if test "x$enable_nls" != "xno" && \
  24506. test "X${ac_cv_header_libintl_h}" = Xyes
  24507. then :
  24508. printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
  24509. fi
  24510. # --------------------------------------------
  24511. # Verify certain entries from AC_CHECK_HEADERS
  24512. # --------------------------------------------
  24513. ${lo_have_arg_hdr} || \
  24514. as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
  24515. ${lo_have_str_hdr} || \
  24516. as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
  24517. ${lo_have_lim_hdr} || \
  24518. as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  24519. ${lo_have_typ_hdr} || \
  24520. as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
  24521. for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  24522. do eval as_ac_var=\${ac_cv_header_${f}_h}
  24523. test "X${as_ac_var}" = Xyes || {
  24524. as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
  24525. }
  24526. done
  24527. test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
  24528. echo '#include <stdint.h>' > inttypes.h
  24529. # ----------------------------------------------------------------------
  24530. # Checks for typedefs
  24531. # ----------------------------------------------------------------------
  24532. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  24533. if test "x$ac_cv_type_wchar_t" = xyes
  24534. then :
  24535. printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
  24536. fi
  24537. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  24538. $ac_includes_default
  24539. #if HAVE_RUNETYPE_H
  24540. # include <runetype.h>
  24541. #endif
  24542. #if HAVE_WCHAR_H
  24543. # include <wchar.h>
  24544. #endif
  24545. "
  24546. if test "x$ac_cv_type_wint_t" = xyes
  24547. then :
  24548. printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
  24549. fi
  24550. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  24551. if test "x$ac_cv_type_int8_t" = xyes
  24552. then :
  24553. printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
  24554. fi
  24555. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  24556. if test "x$ac_cv_type_uint8_t" = xyes
  24557. then :
  24558. printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
  24559. fi
  24560. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  24561. if test "x$ac_cv_type_int16_t" = xyes
  24562. then :
  24563. printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
  24564. fi
  24565. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  24566. if test "x$ac_cv_type_uint16_t" = xyes
  24567. then :
  24568. printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
  24569. fi
  24570. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  24571. if test "x$ac_cv_type_int32_t" = xyes
  24572. then :
  24573. printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
  24574. fi
  24575. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  24576. if test "x$ac_cv_type_uint32_t" = xyes
  24577. then :
  24578. printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
  24579. fi
  24580. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  24581. if test "x$ac_cv_type_intptr_t" = xyes
  24582. then :
  24583. printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
  24584. fi
  24585. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  24586. if test "x$ac_cv_type_uintptr_t" = xyes
  24587. then :
  24588. printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
  24589. fi
  24590. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  24591. if test "x$ac_cv_type_uint_t" = xyes
  24592. then :
  24593. printf "%s\n" "#define HAVE_UINT_T 1" >>confdefs.h
  24594. fi
  24595. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  24596. if test "x$ac_cv_type_pid_t" = xyes
  24597. then :
  24598. printf "%s\n" "#define HAVE_PID_T 1" >>confdefs.h
  24599. fi
  24600. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  24601. if test "x$ac_cv_type_size_t" = xyes
  24602. then :
  24603. printf "%s\n" "#define HAVE_SIZE_T 1" >>confdefs.h
  24604. fi
  24605. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  24606. if test "x$ac_cv_type_ptrdiff_t" = xyes
  24607. then :
  24608. printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
  24609. fi
  24610. # The cast to long int works around a bug in the HP C Compiler
  24611. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24612. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  24613. # This bug is HP SR number 8606223364.
  24614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  24615. printf %s "checking size of char *... " >&6; }
  24616. if test ${ac_cv_sizeof_char_p+y}
  24617. then :
  24618. printf %s "(cached) " >&6
  24619. else case e in #(
  24620. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"
  24621. then :
  24622. else case e in #(
  24623. e) if test "$ac_cv_type_char_p" = yes; then
  24624. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  24625. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  24626. as_fn_error 77 "cannot compute sizeof (char *)
  24627. See 'config.log' for more details" "$LINENO" 5; }
  24628. else
  24629. ac_cv_sizeof_char_p=0
  24630. fi ;;
  24631. esac
  24632. fi
  24633. ;;
  24634. esac
  24635. fi
  24636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  24637. printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }
  24638. printf "%s\n" "#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p" >>confdefs.h
  24639. # The cast to long int works around a bug in the HP C Compiler
  24640. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24641. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  24642. # This bug is HP SR number 8606223364.
  24643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  24644. printf %s "checking size of int... " >&6; }
  24645. if test ${ac_cv_sizeof_int+y}
  24646. then :
  24647. printf %s "(cached) " >&6
  24648. else case e in #(
  24649. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
  24650. then :
  24651. else case e in #(
  24652. e) if test "$ac_cv_type_int" = yes; then
  24653. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  24654. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  24655. as_fn_error 77 "cannot compute sizeof (int)
  24656. See 'config.log' for more details" "$LINENO" 5; }
  24657. else
  24658. ac_cv_sizeof_int=0
  24659. fi ;;
  24660. esac
  24661. fi
  24662. ;;
  24663. esac
  24664. fi
  24665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  24666. printf "%s\n" "$ac_cv_sizeof_int" >&6; }
  24667. printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
  24668. # The cast to long int works around a bug in the HP C Compiler
  24669. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24670. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  24671. # This bug is HP SR number 8606223364.
  24672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  24673. printf %s "checking size of long... " >&6; }
  24674. if test ${ac_cv_sizeof_long+y}
  24675. then :
  24676. printf %s "(cached) " >&6
  24677. else case e in #(
  24678. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
  24679. then :
  24680. else case e in #(
  24681. e) if test "$ac_cv_type_long" = yes; then
  24682. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  24683. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  24684. as_fn_error 77 "cannot compute sizeof (long)
  24685. See 'config.log' for more details" "$LINENO" 5; }
  24686. else
  24687. ac_cv_sizeof_long=0
  24688. fi ;;
  24689. esac
  24690. fi
  24691. ;;
  24692. esac
  24693. fi
  24694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  24695. printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  24696. printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
  24697. # The cast to long int works around a bug in the HP C Compiler
  24698. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24699. # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
  24700. # This bug is HP SR number 8606223364.
  24701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  24702. printf %s "checking size of short... " >&6; }
  24703. if test ${ac_cv_sizeof_short+y}
  24704. then :
  24705. printf %s "(cached) " >&6
  24706. else case e in #(
  24707. e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
  24708. then :
  24709. else case e in #(
  24710. e) if test "$ac_cv_type_short" = yes; then
  24711. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  24712. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  24713. as_fn_error 77 "cannot compute sizeof (short)
  24714. See 'config.log' for more details" "$LINENO" 5; }
  24715. else
  24716. ac_cv_sizeof_short=0
  24717. fi ;;
  24718. esac
  24719. fi
  24720. ;;
  24721. esac
  24722. fi
  24723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  24724. printf "%s\n" "$ac_cv_sizeof_short" >&6; }
  24725. printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
  24726. # ------------
  24727. # AC_CHECK_LIB
  24728. # ------------
  24729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  24730. printf %s "checking for pathfind in -lgen... " >&6; }
  24731. if test ${ac_cv_lib_gen_pathfind+y}
  24732. then :
  24733. printf %s "(cached) " >&6
  24734. else case e in #(
  24735. e) ac_check_lib_save_LIBS=$LIBS
  24736. LIBS="-lgen $LIBS"
  24737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24738. /* end confdefs.h. */
  24739. /* Override any GCC internal prototype to avoid an error.
  24740. Use char because int might match the return type of a GCC
  24741. builtin and then its argument prototype would still apply.
  24742. The 'extern "C"' is for builds by C++ compilers;
  24743. although this is not generally supported in C code supporting it here
  24744. has little cost and some practical benefit (sr 110532). */
  24745. #ifdef __cplusplus
  24746. extern "C"
  24747. #endif
  24748. char pathfind (void);
  24749. int
  24750. main (void)
  24751. {
  24752. return pathfind ();
  24753. ;
  24754. return 0;
  24755. }
  24756. _ACEOF
  24757. if ac_fn_c_try_link "$LINENO"
  24758. then :
  24759. ac_cv_lib_gen_pathfind=yes
  24760. else case e in #(
  24761. e) ac_cv_lib_gen_pathfind=no ;;
  24762. esac
  24763. fi
  24764. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24765. conftest$ac_exeext conftest.$ac_ext
  24766. LIBS=$ac_check_lib_save_LIBS ;;
  24767. esac
  24768. fi
  24769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  24770. printf "%s\n" "$ac_cv_lib_gen_pathfind" >&6; }
  24771. if test "x$ac_cv_lib_gen_pathfind" = xyes
  24772. then :
  24773. printf "%s\n" "#define HAVE_LIBGEN 1" >>confdefs.h
  24774. LIBS="-lgen $LIBS"
  24775. fi
  24776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  24777. printf %s "checking for gettext in -lintl... " >&6; }
  24778. if test ${ac_cv_lib_intl_gettext+y}
  24779. then :
  24780. printf %s "(cached) " >&6
  24781. else case e in #(
  24782. e) ac_check_lib_save_LIBS=$LIBS
  24783. LIBS="-lintl $LIBS"
  24784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24785. /* end confdefs.h. */
  24786. /* Override any GCC internal prototype to avoid an error.
  24787. Use char because int might match the return type of a GCC
  24788. builtin and then its argument prototype would still apply.
  24789. The 'extern "C"' is for builds by C++ compilers;
  24790. although this is not generally supported in C code supporting it here
  24791. has little cost and some practical benefit (sr 110532). */
  24792. #ifdef __cplusplus
  24793. extern "C"
  24794. #endif
  24795. char gettext (void);
  24796. int
  24797. main (void)
  24798. {
  24799. return gettext ();
  24800. ;
  24801. return 0;
  24802. }
  24803. _ACEOF
  24804. if ac_fn_c_try_link "$LINENO"
  24805. then :
  24806. ac_cv_lib_intl_gettext=yes
  24807. else case e in #(
  24808. e) ac_cv_lib_intl_gettext=no ;;
  24809. esac
  24810. fi
  24811. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24812. conftest$ac_exeext conftest.$ac_ext
  24813. LIBS=$ac_check_lib_save_LIBS ;;
  24814. esac
  24815. fi
  24816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  24817. printf "%s\n" "$ac_cv_lib_intl_gettext" >&6; }
  24818. if test "x$ac_cv_lib_intl_gettext" = xyes
  24819. then :
  24820. printf "%s\n" "#define HAVE_LIBINTL 1" >>confdefs.h
  24821. LIBS="-lintl $LIBS"
  24822. fi
  24823. if test "x$ac_cv_func_vprintf" = xno
  24824. then :
  24825. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  24826. if test "x$ac_cv_func__doprnt" = xyes
  24827. then :
  24828. printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
  24829. fi
  24830. fi
  24831. if test "x$ac_cv_func_fork" = xyes; then
  24832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  24833. printf %s "checking for working fork... " >&6; }
  24834. if test ${ac_cv_func_fork_works+y}
  24835. then :
  24836. printf %s "(cached) " >&6
  24837. else case e in #(
  24838. e) if test "$cross_compiling" = yes
  24839. then :
  24840. ac_cv_func_fork_works=cross
  24841. else case e in #(
  24842. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24843. /* end confdefs.h. */
  24844. $ac_includes_default
  24845. int
  24846. main (void)
  24847. {
  24848. /* By R. Kuhlmann. */
  24849. return fork () < 0;
  24850. ;
  24851. return 0;
  24852. }
  24853. _ACEOF
  24854. if ac_fn_c_try_run "$LINENO"
  24855. then :
  24856. ac_cv_func_fork_works=yes
  24857. else case e in #(
  24858. e) ac_cv_func_fork_works=no ;;
  24859. esac
  24860. fi
  24861. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  24862. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  24863. esac
  24864. fi
  24865. ;;
  24866. esac
  24867. fi
  24868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  24869. printf "%s\n" "$ac_cv_func_fork_works" >&6; }
  24870. else
  24871. ac_cv_func_fork_works=$ac_cv_func_fork
  24872. fi
  24873. if test "x$ac_cv_func_fork_works" = xcross; then
  24874. case $host in
  24875. *-*-amigaos* | *-*-msdosdjgpp*)
  24876. # Override, as these systems have only a dummy fork() stub
  24877. ac_cv_func_fork_works=no
  24878. ;;
  24879. *)
  24880. ac_cv_func_fork_works=yes
  24881. ;;
  24882. esac
  24883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  24884. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  24885. fi
  24886. ac_cv_func_vfork_works=$ac_cv_func_vfork
  24887. if test "x$ac_cv_func_vfork" = xyes; then
  24888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  24889. printf %s "checking for working vfork... " >&6; }
  24890. if test ${ac_cv_func_vfork_works+y}
  24891. then :
  24892. printf %s "(cached) " >&6
  24893. else case e in #(
  24894. e) if test "$cross_compiling" = yes
  24895. then :
  24896. ac_cv_func_vfork_works=cross
  24897. else case e in #(
  24898. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24899. /* end confdefs.h. */
  24900. /* Thanks to Paul Eggert for this test. */
  24901. $ac_includes_default
  24902. #include <signal.h>
  24903. #include <sys/wait.h>
  24904. #ifdef HAVE_VFORK_H
  24905. # include <vfork.h>
  24906. #endif
  24907. static void
  24908. do_nothing (int sig)
  24909. {
  24910. (void) sig;
  24911. }
  24912. /* On some sparc systems, changes by the child to local and incoming
  24913. argument registers are propagated back to the parent. The compiler
  24914. is told about this with #include <vfork.h>, but some compilers
  24915. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  24916. static variable whose address is put into a register that is
  24917. clobbered by the vfork. */
  24918. static void
  24919. sparc_address_test (int arg)
  24920. {
  24921. static pid_t child;
  24922. if (!child) {
  24923. child = vfork ();
  24924. if (child < 0) {
  24925. perror ("vfork");
  24926. _exit(2);
  24927. }
  24928. if (!child) {
  24929. arg = getpid();
  24930. write(-1, "", 0);
  24931. _exit (arg);
  24932. }
  24933. }
  24934. }
  24935. int
  24936. main (void)
  24937. {
  24938. pid_t parent = getpid ();
  24939. pid_t child;
  24940. sparc_address_test (0);
  24941. /* On Solaris 2.4, changes by the child to the signal handler
  24942. also munge signal handlers in the parent. To detect this,
  24943. start by putting the parent's handler in a known state. */
  24944. signal (SIGTERM, SIG_DFL);
  24945. child = vfork ();
  24946. if (child == 0) {
  24947. /* Here is another test for sparc vfork register problems. This
  24948. test uses lots of local variables, at least as many local
  24949. variables as main has allocated so far including compiler
  24950. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  24951. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  24952. reuse the register of parent for one of the local variables,
  24953. since it will think that parent can't possibly be used any more
  24954. in this routine. Assigning to the local variable will thus
  24955. munge parent in the parent process. */
  24956. pid_t
  24957. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  24958. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  24959. /* Convince the compiler that p..p7 are live; otherwise, it might
  24960. use the same hardware register for all 8 local variables. */
  24961. if (p != p1 || p != p2 || p != p3 || p != p4
  24962. || p != p5 || p != p6 || p != p7)
  24963. _exit(1);
  24964. /* Alter the child's signal handler. */
  24965. if (signal (SIGTERM, do_nothing) != SIG_DFL)
  24966. _exit(1);
  24967. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  24968. from child file descriptors. If the child closes a descriptor
  24969. before it execs or exits, this munges the parent's descriptor
  24970. as well. Test for this by closing stdout in the child. */
  24971. _exit(close(fileno(stdout)) != 0);
  24972. } else {
  24973. int status;
  24974. struct stat st;
  24975. while (wait(&status) != child)
  24976. ;
  24977. return (
  24978. /* Was there some problem with vforking? */
  24979. child < 0
  24980. /* Did the child munge the parent's signal handler? */
  24981. || signal (SIGTERM, SIG_DFL) != SIG_DFL
  24982. /* Did the child fail? (This shouldn't happen.) */
  24983. || status
  24984. /* Did the vfork/compiler bug occur? */
  24985. || parent != getpid()
  24986. /* Did the file descriptor bug occur? */
  24987. || fstat(fileno(stdout), &st) != 0
  24988. );
  24989. }
  24990. }
  24991. _ACEOF
  24992. if ac_fn_c_try_run "$LINENO"
  24993. then :
  24994. ac_cv_func_vfork_works=yes
  24995. else case e in #(
  24996. e) ac_cv_func_vfork_works=no ;;
  24997. esac
  24998. fi
  24999. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25000. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  25001. esac
  25002. fi
  25003. ;;
  25004. esac
  25005. fi
  25006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  25007. printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
  25008. fi;
  25009. if test "x$ac_cv_func_fork_works" = xcross; then
  25010. ac_cv_func_vfork_works=$ac_cv_func_vfork
  25011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  25012. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  25013. fi
  25014. if test "x$ac_cv_func_vfork_works" = xyes; then
  25015. printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  25016. else
  25017. printf "%s\n" "#define vfork fork" >>confdefs.h
  25018. fi
  25019. if test "x$ac_cv_func_fork_works" = xyes; then
  25020. printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
  25021. fi
  25022. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  25023. if test "x$ac_cv_func_mmap" = xyes
  25024. then :
  25025. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  25026. fi
  25027. ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
  25028. if test "x$ac_cv_func_canonicalize_file_name" = xyes
  25029. then :
  25030. printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
  25031. fi
  25032. ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  25033. if test "x$ac_cv_func_snprintf" = xyes
  25034. then :
  25035. printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
  25036. fi
  25037. ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
  25038. if test "x$ac_cv_func_strdup" = xyes
  25039. then :
  25040. printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
  25041. fi
  25042. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  25043. if test "x$ac_cv_func_strchr" = xyes
  25044. then :
  25045. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  25046. fi
  25047. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  25048. if test "x$ac_cv_func_strrchr" = xyes
  25049. then :
  25050. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  25051. fi
  25052. ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
  25053. if test "x$ac_cv_func_strsignal" = xyes
  25054. then :
  25055. printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
  25056. fi
  25057. ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
  25058. if test "x$ac_cv_func_fchmod" = xyes
  25059. then :
  25060. printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
  25061. fi
  25062. ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
  25063. if test "x$ac_cv_func_fstat" = xyes
  25064. then :
  25065. printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h
  25066. fi
  25067. ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
  25068. if test "x$ac_cv_func_chmod" = xyes
  25069. then :
  25070. printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
  25071. fi
  25072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  25073. printf %s "checking for a sed that does not truncate output... " >&6; }
  25074. if test ${ac_cv_path_SED+y}
  25075. then :
  25076. printf %s "(cached) " >&6
  25077. else case e in #(
  25078. e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  25079. for ac_i in 1 2 3 4 5 6 7; do
  25080. ac_script="$ac_script$as_nl$ac_script"
  25081. done
  25082. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  25083. { ac_script=; unset ac_script;}
  25084. if test -z "$SED"; then
  25085. ac_path_SED_found=false
  25086. # Loop through the user's path and test for each of PROGNAME-LIST
  25087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25088. for as_dir in $PATH
  25089. do
  25090. IFS=$as_save_IFS
  25091. case $as_dir in #(((
  25092. '') as_dir=./ ;;
  25093. */) ;;
  25094. *) as_dir=$as_dir/ ;;
  25095. esac
  25096. for ac_prog in sed gsed
  25097. do
  25098. for ac_exec_ext in '' $ac_executable_extensions; do
  25099. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  25100. as_fn_executable_p "$ac_path_SED" || continue
  25101. # Check for GNU ac_path_SED and select it if it is found.
  25102. # Check for GNU $ac_path_SED
  25103. case `"$ac_path_SED" --version 2>&1` in #(
  25104. *GNU*)
  25105. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  25106. #(
  25107. *)
  25108. ac_count=0
  25109. printf %s 0123456789 >"conftest.in"
  25110. while :
  25111. do
  25112. cat "conftest.in" "conftest.in" >"conftest.tmp"
  25113. mv "conftest.tmp" "conftest.in"
  25114. cp "conftest.in" "conftest.nl"
  25115. printf "%s\n" '' >> "conftest.nl"
  25116. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  25117. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  25118. as_fn_arith $ac_count + 1 && ac_count=$as_val
  25119. if test $ac_count -gt ${ac_path_SED_max-0}; then
  25120. # Best one so far, save it but keep looking for a better one
  25121. ac_cv_path_SED="$ac_path_SED"
  25122. ac_path_SED_max=$ac_count
  25123. fi
  25124. # 10*(2^10) chars as input seems more than enough
  25125. test $ac_count -gt 10 && break
  25126. done
  25127. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  25128. esac
  25129. $ac_path_SED_found && break 3
  25130. done
  25131. done
  25132. done
  25133. IFS=$as_save_IFS
  25134. if test -z "$ac_cv_path_SED"; then
  25135. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  25136. fi
  25137. else
  25138. ac_cv_path_SED=$SED
  25139. fi
  25140. ;;
  25141. esac
  25142. fi
  25143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  25144. printf "%s\n" "$ac_cv_path_SED" >&6; }
  25145. SED="$ac_cv_path_SED"
  25146. rm -f conftest.sed
  25147. while :
  25148. do
  25149. POSIX_SHELL=`which bash`
  25150. test -x "$POSIX_SHELL" && break
  25151. POSIX_SHELL=`which dash`
  25152. test -x "$POSIX_SHELL" && break
  25153. POSIX_SHELL=/usr/xpg4/bin/sh
  25154. test -x "$POSIX_SHELL" && break
  25155. POSIX_SHELL=`/bin/sh -c '
  25156. exec 2>/dev/null
  25157. if ! true ; then exit 1 ; fi
  25158. echo /bin/sh'`
  25159. test -x "$POSIX_SHELL" && break
  25160. as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  25161. done
  25162. printf "%s\n" "#define POSIX_SHELL \"${POSIX_SHELL}\"" >>confdefs.h
  25163. LIBOPTS_BUILD_BLOCKED=''
  25164. NEED_LIBOPTS_DIR=''
  25165. # Check whether --enable-local-libopts was given.
  25166. if test ${enable_local_libopts+y}
  25167. then :
  25168. enableval=$enable_local_libopts;
  25169. if test x$enableval = xyes ; then
  25170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  25171. printf "%s\n" "$as_me: Using supplied libopts tearoff" >&6;}
  25172. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  25173. NEED_LIBOPTS_DIR=true
  25174. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  25175. fi
  25176. fi
  25177. # Check whether --enable-libopts-install was given.
  25178. if test ${enable_libopts_install+y}
  25179. then :
  25180. enableval=$enable_libopts_install;
  25181. fi
  25182. if test "X${enable_libopts_install}" = Xyes; then
  25183. INSTALL_LIBOPTS_TRUE=
  25184. INSTALL_LIBOPTS_FALSE='#'
  25185. else
  25186. INSTALL_LIBOPTS_TRUE='#'
  25187. INSTALL_LIBOPTS_FALSE=
  25188. fi
  25189. if test -z "${NEED_LIBOPTS_DIR}" ; then
  25190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  25191. printf %s "checking whether autoopts-config can be found... " >&6; }
  25192. # Check whether --with-autoopts-config was given.
  25193. if test ${with_autoopts_config+y}
  25194. then :
  25195. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  25196. else case e in #(
  25197. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  25198. printf %s "checking whether autoopts-config is specified... " >&6; }
  25199. if test ${lo_cv_with_autoopts_config+y}
  25200. then :
  25201. printf %s "(cached) " >&6
  25202. else case e in #(
  25203. e) if autoopts-config --help 2>/dev/null 1>&2
  25204. then lo_cv_with_autoopts_config=autoopts-config
  25205. elif libopts-config --help 2>/dev/null 1>&2
  25206. then lo_cv_with_autoopts_config=libopts-config
  25207. else lo_cv_with_autoopts_config=no ; fi ;;
  25208. esac
  25209. fi
  25210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  25211. printf "%s\n" "$lo_cv_with_autoopts_config" >&6; }
  25212. ;;
  25213. esac
  25214. fi
  25215. # end of AC_ARG_WITH
  25216. if test ${lo_cv_test_autoopts+y}
  25217. then :
  25218. printf %s "(cached) " >&6
  25219. else case e in #(
  25220. e)
  25221. if test -z "${lo_cv_with_autoopts_config}" \
  25222. -o X"${lo_cv_with_autoopts_config}" = Xno
  25223. then
  25224. if autoopts-config --help 2>/dev/null 1>&2
  25225. then lo_cv_with_autoopts_config=autoopts-config
  25226. elif libopts-config --help 2>/dev/null 1>&2
  25227. then lo_cv_with_autoopts_config=libopts-config
  25228. else lo_cv_with_autoopts_config=false ; fi
  25229. fi
  25230. lo_cv_test_autoopts=`
  25231. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  25232. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  25233. then lo_cv_test_autoopts=no ; fi
  25234. ;;
  25235. esac
  25236. fi
  25237. # end of CACHE_VAL
  25238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  25239. printf "%s\n" "${lo_cv_test_autoopts}" >&6; }
  25240. if test "X${lo_cv_test_autoopts}" != Xno
  25241. then
  25242. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  25243. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  25244. else
  25245. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  25246. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  25247. NEED_LIBOPTS_DIR=true
  25248. fi
  25249. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  25250. if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
  25251. NEED_LIBOPTS_DIR=''
  25252. fi
  25253. if test -n "${NEED_LIBOPTS_DIR}"; then
  25254. NEED_LIBOPTS_TRUE=
  25255. NEED_LIBOPTS_FALSE='#'
  25256. else
  25257. NEED_LIBOPTS_TRUE='#'
  25258. NEED_LIBOPTS_FALSE=
  25259. fi
  25260. LIBOPTS_DIR=libopts
  25261. # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
  25262. if test -z "$NEED_LIBOPTS_TRUE"; then :
  25263. # Check to see if a reg expr header is specified.
  25264. # Check whether --with-regex-header was given.
  25265. if test ${with_regex_header+y}
  25266. then :
  25267. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  25268. else case e in #(
  25269. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  25270. printf %s "checking whether a reg expr header is specified... " >&6; }
  25271. if test ${libopts_cv_with_regex_header+y}
  25272. then :
  25273. printf %s "(cached) " >&6
  25274. else case e in #(
  25275. e) libopts_cv_with_regex_header=no ;;
  25276. esac
  25277. fi
  25278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  25279. printf "%s\n" "$libopts_cv_with_regex_header" >&6; }
  25280. ;;
  25281. esac
  25282. fi
  25283. # end of AC_ARG_WITH
  25284. if test "X${libopts_cv_with_regex_header}" != Xno
  25285. then
  25286. printf "%s\n" "#define REGEX_HEADER <${libopts_cv_with_regex_header}>" >>confdefs.h
  25287. else
  25288. printf "%s\n" "#define REGEX_HEADER <regex.h>" >>confdefs.h
  25289. fi
  25290. # Check to see if a working libregex can be found.
  25291. # Check whether --with-libregex was given.
  25292. if test ${with_libregex+y}
  25293. then :
  25294. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  25295. else case e in #(
  25296. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  25297. printf %s "checking whether with-libregex was specified... " >&6; }
  25298. if test ${libopts_cv_with_libregex_root+y}
  25299. then :
  25300. printf %s "(cached) " >&6
  25301. else case e in #(
  25302. e) libopts_cv_with_libregex_root=no ;;
  25303. esac
  25304. fi
  25305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  25306. printf "%s\n" "$libopts_cv_with_libregex_root" >&6; }
  25307. ;;
  25308. esac
  25309. fi
  25310. # end of AC_ARG_WITH libregex
  25311. if test "${with_libregex+set}" = set && \
  25312. test "X${withval}" = Xno
  25313. then ## disabled by request
  25314. libopts_cv_with_libregex_root=no
  25315. libopts_cv_with_libregex_cflags=no
  25316. libopts_cv_with_libregex_libs=no
  25317. else
  25318. # Check whether --with-libregex-cflags was given.
  25319. if test ${with_libregex_cflags+y}
  25320. then :
  25321. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
  25322. else case e in #(
  25323. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  25324. printf %s "checking whether with-libregex-cflags was specified... " >&6; }
  25325. if test ${libopts_cv_with_libregex_cflags+y}
  25326. then :
  25327. printf %s "(cached) " >&6
  25328. else case e in #(
  25329. e) libopts_cv_with_libregex_cflags=no ;;
  25330. esac
  25331. fi
  25332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  25333. printf "%s\n" "$libopts_cv_with_libregex_cflags" >&6; }
  25334. ;;
  25335. esac
  25336. fi
  25337. # end of AC_ARG_WITH libregex-cflags
  25338. # Check whether --with-libregex-libs was given.
  25339. if test ${with_libregex_libs+y}
  25340. then :
  25341. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
  25342. else case e in #(
  25343. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  25344. printf %s "checking whether with-libregex-libs was specified... " >&6; }
  25345. if test ${libopts_cv_with_libregex_libs+y}
  25346. then :
  25347. printf %s "(cached) " >&6
  25348. else case e in #(
  25349. e) libopts_cv_with_libregex_libs=no ;;
  25350. esac
  25351. fi
  25352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  25353. printf "%s\n" "$libopts_cv_with_libregex_libs" >&6; }
  25354. ;;
  25355. esac
  25356. fi
  25357. # end of AC_ARG_WITH libregex-libs
  25358. case "X${libopts_cv_with_libregex_cflags}" in
  25359. Xyes|Xno|X )
  25360. case "X${libopts_cv_with_libregex_root}" in
  25361. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  25362. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  25363. esac
  25364. esac
  25365. case "X${libopts_cv_with_libregex_libs}" in
  25366. Xyes|Xno|X )
  25367. case "X${libopts_cv_with_libregex_root}" in
  25368. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  25369. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
  25370. esac
  25371. esac
  25372. libopts_save_CPPFLAGS="${CPPFLAGS}"
  25373. libopts_save_LIBS="${LIBS}"
  25374. case "X${libopts_cv_with_libregex_cflags}" in
  25375. Xyes|Xno|X )
  25376. libopts_cv_with_libregex_cflags="" ;;
  25377. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  25378. esac
  25379. case "X${libopts_cv_with_libregex_libs}" in
  25380. Xyes|Xno|X )
  25381. libopts_cv_with_libregex_libs="" ;;
  25382. * )
  25383. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  25384. esac
  25385. LIBREGEX_CFLAGS=""
  25386. LIBREGEX_LIBS=""
  25387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  25388. printf %s "checking whether libregex functions properly... " >&6; }
  25389. if test ${libopts_cv_with_libregex+y}
  25390. then :
  25391. printf %s "(cached) " >&6
  25392. else case e in #(
  25393. e)
  25394. if test "$cross_compiling" = yes
  25395. then :
  25396. libopts_cv_with_libregex=no
  25397. else case e in #(
  25398. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25399. /* end confdefs.h. */
  25400. #include <stdio.h>
  25401. #include <stdlib.h>
  25402. #include <sys/types.h>
  25403. #include REGEX_HEADER
  25404. static regex_t re;
  25405. void comp_re(char const * pzPat) {
  25406. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  25407. if (res == 0) return;
  25408. exit( res ); }
  25409. int main() {
  25410. regmatch_t m[2];
  25411. comp_re( "^.*\$" );
  25412. comp_re( "()|no.*" );
  25413. comp_re( "." );
  25414. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  25415. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  25416. fputs( "error: regex -->.<-- did not match\n", stderr );
  25417. return 1;
  25418. }
  25419. return 0; }
  25420. _ACEOF
  25421. if ac_fn_c_try_run "$LINENO"
  25422. then :
  25423. libopts_cv_with_libregex=yes
  25424. else case e in #(
  25425. e) libopts_cv_with_libregex=no ;;
  25426. esac
  25427. fi
  25428. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25429. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  25430. esac
  25431. fi
  25432. # end of AC_RUN_IFELSE
  25433. ;;
  25434. esac
  25435. fi
  25436. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  25437. fi ## disabled by request
  25438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  25439. printf "%s\n" "${libopts_cv_with_libregex}" >&6; }
  25440. if test "X${libopts_cv_with_libregex}" != Xno
  25441. then
  25442. printf "%s\n" "#define WITH_LIBREGEX 1" >>confdefs.h
  25443. else
  25444. CPPFLAGS="${libopts_save_CPPFLAGS}"
  25445. LIBS="${libopts_save_LIBS}"
  25446. libopts_cv_with_libregex_root=no
  25447. libopts_cv_with_libregex_cflags=no
  25448. libopts_cv_with_libregex_libs=no
  25449. libopts_cv_with_libregex=no
  25450. fi
  25451. # Check to see if pathfind(3) works.
  25452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  25453. printf %s "checking whether pathfind(3) works... " >&6; }
  25454. if test ${libopts_cv_run_pathfind+y}
  25455. then :
  25456. printf %s "(cached) " >&6
  25457. else case e in #(
  25458. e)
  25459. if test "$cross_compiling" = yes
  25460. then :
  25461. libopts_cv_run_pathfind=no
  25462. else case e in #(
  25463. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25464. /* end confdefs.h. */
  25465. #include <string.h>
  25466. #include <stdlib.h>
  25467. int main (int argc, char ** argv) {
  25468. char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
  25469. return (pz == 0) ? 1 : 0;
  25470. }
  25471. _ACEOF
  25472. if ac_fn_c_try_run "$LINENO"
  25473. then :
  25474. libopts_cv_run_pathfind=yes
  25475. else case e in #(
  25476. e) libopts_cv_run_pathfind=no ;;
  25477. esac
  25478. fi
  25479. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25480. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  25481. esac
  25482. fi
  25483. # end of RUN_IFELSE
  25484. ;;
  25485. esac
  25486. fi
  25487. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  25488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  25489. printf "%s\n" "${libopts_cv_run_pathfind}" >&6; }
  25490. if test "X${libopts_cv_run_pathfind}" != Xno
  25491. then
  25492. printf "%s\n" "#define HAVE_PATHFIND 1" >>confdefs.h
  25493. fi
  25494. # Check to see if /dev/zero is readable device.
  25495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  25496. printf %s "checking whether /dev/zero is readable device... " >&6; }
  25497. if test ${libopts_cv_test_dev_zero+y}
  25498. then :
  25499. printf %s "(cached) " >&6
  25500. else case e in #(
  25501. e)
  25502. libopts_cv_test_dev_zero=`exec 2> /dev/null
  25503. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  25504. test -z "${dzero}" && exit 1
  25505. echo ${dzero}`
  25506. if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
  25507. then libopts_cv_test_dev_zero=no
  25508. fi
  25509. ;;
  25510. esac
  25511. fi
  25512. # end of CACHE_VAL of libopts_cv_test_dev_zero
  25513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  25514. printf "%s\n" "${libopts_cv_test_dev_zero}" >&6; }
  25515. if test "X${libopts_cv_test_dev_zero}" != Xno
  25516. then
  25517. printf "%s\n" "#define HAVE_DEV_ZERO 1" >>confdefs.h
  25518. fi
  25519. # Check to see if we have a functional realpath(3C).
  25520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  25521. printf %s "checking whether we have a functional realpath(3C)... " >&6; }
  25522. if test ${libopts_cv_run_realpath+y}
  25523. then :
  25524. printf %s "(cached) " >&6
  25525. else case e in #(
  25526. e)
  25527. if test "$cross_compiling" = yes
  25528. then :
  25529. libopts_cv_run_realpath=no
  25530. else case e in #(
  25531. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25532. /* end confdefs.h. */
  25533. #include <limits.h>
  25534. #include <stdlib.h>
  25535. int main (int argc, char ** argv) {
  25536. #ifndef PATH_MAX
  25537. choke me!!
  25538. #else
  25539. char zPath[PATH_MAX+1];
  25540. #endif
  25541. char *pz = realpath(argv[0], zPath);
  25542. return (pz == zPath) ? 0 : 1;
  25543. }
  25544. _ACEOF
  25545. if ac_fn_c_try_run "$LINENO"
  25546. then :
  25547. libopts_cv_run_realpath=yes
  25548. else case e in #(
  25549. e) libopts_cv_run_realpath=no ;;
  25550. esac
  25551. fi
  25552. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25553. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  25554. esac
  25555. fi
  25556. # end of RUN_IFELSE
  25557. ;;
  25558. esac
  25559. fi
  25560. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  25561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  25562. printf "%s\n" "${libopts_cv_run_realpath}" >&6; }
  25563. if test "X${libopts_cv_run_realpath}" != Xno
  25564. then
  25565. printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
  25566. fi
  25567. # Check to see if strftime() works.
  25568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  25569. printf %s "checking whether strftime() works... " >&6; }
  25570. if test ${libopts_cv_run_strftime+y}
  25571. then :
  25572. printf %s "(cached) " >&6
  25573. else case e in #(
  25574. e)
  25575. if test "$cross_compiling" = yes
  25576. then :
  25577. libopts_cv_run_strftime=no
  25578. else case e in #(
  25579. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25580. /* end confdefs.h. */
  25581. #include <time.h>
  25582. #include <string.h>
  25583. char t_buf[ 64 ];
  25584. int main() {
  25585. static char const z[] = "Thursday Aug 28 240";
  25586. struct tm tm;
  25587. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  25588. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  25589. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  25590. tm.tm_mday = 28; /* day of the month [1, 31] */
  25591. tm.tm_mon = 7; /* months since January [0, 11] */
  25592. tm.tm_year = 86; /* years since 1900 */
  25593. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  25594. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  25595. tm.tm_isdst = 1; /* flag for daylight savings time */
  25596. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  25597. return (strcmp( t_buf, z ) != 0); }
  25598. _ACEOF
  25599. if ac_fn_c_try_run "$LINENO"
  25600. then :
  25601. libopts_cv_run_strftime=yes
  25602. else case e in #(
  25603. e) libopts_cv_run_strftime=no ;;
  25604. esac
  25605. fi
  25606. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25607. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  25608. esac
  25609. fi
  25610. # end of RUN_IFELSE
  25611. ;;
  25612. esac
  25613. fi
  25614. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  25615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  25616. printf "%s\n" "${libopts_cv_run_strftime}" >&6; }
  25617. if test "X${libopts_cv_run_strftime}" != Xno
  25618. then
  25619. printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
  25620. fi
  25621. # Check to see if fopen accepts "b" mode.
  25622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  25623. printf %s "checking whether fopen accepts \"b\" mode... " >&6; }
  25624. if test ${libopts_cv_run_fopen_binary+y}
  25625. then :
  25626. printf %s "(cached) " >&6
  25627. else case e in #(
  25628. e)
  25629. if test "$cross_compiling" = yes
  25630. then :
  25631. libopts_cv_run_fopen_binary=no
  25632. else case e in #(
  25633. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25634. /* end confdefs.h. */
  25635. #include <stdio.h>
  25636. int main (int argc, char ** argv) {
  25637. FILE * fp = fopen("conftest.$ac_ext", "rb");
  25638. return (fp == NULL) ? 1 : fclose(fp); }
  25639. _ACEOF
  25640. if ac_fn_c_try_run "$LINENO"
  25641. then :
  25642. libopts_cv_run_fopen_binary=yes
  25643. else case e in #(
  25644. e) libopts_cv_run_fopen_binary=no ;;
  25645. esac
  25646. fi
  25647. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25648. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  25649. esac
  25650. fi
  25651. # end of RUN_IFELSE
  25652. ;;
  25653. esac
  25654. fi
  25655. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  25656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  25657. printf "%s\n" "${libopts_cv_run_fopen_binary}" >&6; }
  25658. if test "X${libopts_cv_run_fopen_binary}" != Xno
  25659. then
  25660. printf "%s\n" "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  25661. else
  25662. printf "%s\n" "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  25663. fi
  25664. # Check to see if fopen accepts "t" mode.
  25665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  25666. printf %s "checking whether fopen accepts \"t\" mode... " >&6; }
  25667. if test ${libopts_cv_run_fopen_text+y}
  25668. then :
  25669. printf %s "(cached) " >&6
  25670. else case e in #(
  25671. e)
  25672. if test "$cross_compiling" = yes
  25673. then :
  25674. libopts_cv_run_fopen_text=no
  25675. else case e in #(
  25676. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25677. /* end confdefs.h. */
  25678. #include <stdio.h>
  25679. int main (int argc, char ** argv) {
  25680. FILE * fp = fopen("conftest.$ac_ext", "rt");
  25681. return (fp == NULL) ? 1 : fclose(fp); }
  25682. _ACEOF
  25683. if ac_fn_c_try_run "$LINENO"
  25684. then :
  25685. libopts_cv_run_fopen_text=yes
  25686. else case e in #(
  25687. e) libopts_cv_run_fopen_text=no ;;
  25688. esac
  25689. fi
  25690. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25691. conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  25692. esac
  25693. fi
  25694. # end of RUN_IFELSE
  25695. ;;
  25696. esac
  25697. fi
  25698. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  25699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  25700. printf "%s\n" "${libopts_cv_run_fopen_text}" >&6; }
  25701. if test "X${libopts_cv_run_fopen_text}" != Xno
  25702. then
  25703. printf "%s\n" "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  25704. else
  25705. printf "%s\n" "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  25706. fi
  25707. # Check to see if not wanting optional option args.
  25708. # Check whether --enable-optional-args was given.
  25709. if test ${enable_optional_args+y}
  25710. then :
  25711. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  25712. else case e in #(
  25713. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  25714. printf %s "checking whether not wanting optional option args... " >&6; }
  25715. if test ${libopts_cv_enable_optional_args+y}
  25716. then :
  25717. printf %s "(cached) " >&6
  25718. else case e in #(
  25719. e) libopts_cv_enable_optional_args=yes ;;
  25720. esac
  25721. fi
  25722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  25723. printf "%s\n" "$libopts_cv_enable_optional_args" >&6; }
  25724. ;;
  25725. esac
  25726. fi
  25727. # end of AC_ARG_ENABLE
  25728. if test "X${libopts_cv_enable_optional_args}" = Xno
  25729. then
  25730. printf "%s\n" "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  25731. fi
  25732. fi
  25733. ac_config_files="$ac_config_files libopts/Makefile"
  25734. # end of AC_DEFUN of LIBOPTS_CHECK
  25735. 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"
  25736. cat >confcache <<\_ACEOF
  25737. # This file is a shell script that caches the results of configure
  25738. # tests run on this system so they can be shared between configure
  25739. # scripts and configure runs, see configure's option --config-cache.
  25740. # It is not useful on other systems. If it contains results you don't
  25741. # want to keep, you may remove or edit it.
  25742. #
  25743. # config.status only pays attention to the cache file if you give it
  25744. # the --recheck option to rerun configure.
  25745. #
  25746. # 'ac_cv_env_foo' variables (set or unset) will be overridden when
  25747. # loading this file, other *unset* 'ac_cv_foo' will be assigned the
  25748. # following values.
  25749. _ACEOF
  25750. # The following way of writing the cache mishandles newlines in values,
  25751. # but we know of no workaround that is simple, portable, and efficient.
  25752. # So, we kill variables containing newlines.
  25753. # Ultrix sh set writes to stderr and can't be redirected directly,
  25754. # and sets the high bit in the cache file unless we assign to the vars.
  25755. (
  25756. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25757. eval ac_val=\$$ac_var
  25758. case $ac_val in #(
  25759. *${as_nl}*)
  25760. case $ac_var in #(
  25761. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25762. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25763. esac
  25764. case $ac_var in #(
  25765. _ | IFS | as_nl) ;; #(
  25766. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25767. *) { eval $ac_var=; unset $ac_var;} ;;
  25768. esac ;;
  25769. esac
  25770. done
  25771. (set) 2>&1 |
  25772. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25773. *${as_nl}ac_space=\ *)
  25774. # 'set' does not quote correctly, so add quotes: double-quote
  25775. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25776. sed -n \
  25777. "s/'/'\\\\''/g;
  25778. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25779. ;; #(
  25780. *)
  25781. # 'set' quotes correctly as required by POSIX, so do not add quotes.
  25782. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25783. ;;
  25784. esac |
  25785. sort
  25786. ) |
  25787. sed '
  25788. /^ac_cv_env_/b end
  25789. t clear
  25790. :clear
  25791. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25792. t end
  25793. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25794. :end' >>confcache
  25795. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25796. if test -w "$cache_file"; then
  25797. if test "x$cache_file" != "x/dev/null"; then
  25798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25799. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25800. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25801. cat confcache >"$cache_file"
  25802. else
  25803. case $cache_file in #(
  25804. */* | ?:*)
  25805. mv -f confcache "$cache_file"$$ &&
  25806. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25807. *)
  25808. mv -f confcache "$cache_file" ;;
  25809. esac
  25810. fi
  25811. fi
  25812. else
  25813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25814. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25815. fi
  25816. fi
  25817. rm -f confcache
  25818. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25819. # Let make expand exec_prefix.
  25820. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25821. DEFS=-DHAVE_CONFIG_H
  25822. ac_libobjs=
  25823. ac_ltlibobjs=
  25824. U=
  25825. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25826. # 1. Remove the extension, and $U if already installed.
  25827. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25828. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25829. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25830. # will be set to the directory where LIBOBJS objects are built.
  25831. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25832. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25833. done
  25834. LIBOBJS=$ac_libobjs
  25835. LTLIBOBJS=$ac_ltlibobjs
  25836. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  25837. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  25838. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25839. fi
  25840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  25841. printf %s "checking that generated files are newer than configure... " >&6; }
  25842. if test -n "$am_sleep_pid"; then
  25843. # Hide warnings about reused PIDs.
  25844. wait $am_sleep_pid 2>/dev/null
  25845. fi
  25846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  25847. printf "%s\n" "done" >&6; }
  25848. case $enable_silent_rules in # (((
  25849. yes) AM_DEFAULT_VERBOSITY=0;;
  25850. no) AM_DEFAULT_VERBOSITY=1;;
  25851. esac
  25852. if test $am_cv_make_support_nested_variables = yes; then
  25853. AM_V='$(V)'
  25854. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  25855. else
  25856. AM_V=$AM_DEFAULT_VERBOSITY
  25857. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  25858. fi
  25859. if test -n "$EXEEXT"; then
  25860. am__EXEEXT_TRUE=
  25861. am__EXEEXT_FALSE='#'
  25862. else
  25863. am__EXEEXT_TRUE='#'
  25864. am__EXEEXT_FALSE=
  25865. fi
  25866. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  25867. as_fn_error $? "conditional \"AMDEP\" was never defined.
  25868. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25869. fi
  25870. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  25871. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  25872. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25873. fi
  25874. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  25875. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  25876. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25877. fi
  25878. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  25879. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  25880. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25881. fi
  25882. # Check whether --enable-year2038 was given.
  25883. if test ${enable_year2038+y}
  25884. then :
  25885. enableval=$enable_year2038;
  25886. fi
  25887. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  25888. as_fn_error $? "conditional \"SYSTEM_STRLCPY\" was never defined.
  25889. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25890. fi
  25891. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  25892. as_fn_error $? "conditional \"WORDS_BIGENDIAN\" was never defined.
  25893. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25894. fi
  25895. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  25896. as_fn_error $? "conditional \"COMPILE_TCPBRIDGE\" was never defined.
  25897. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25898. fi
  25899. if test -z "${COMPILE_TCPLIVEPLAY_TRUE}" && test -z "${COMPILE_TCPLIVEPLAY_FALSE}"; then
  25900. as_fn_error $? "conditional \"COMPILE_TCPLIVEPLAY\" was never defined.
  25901. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25902. fi
  25903. if test -z "${COMPILE_NETMAP_TRUE}" && test -z "${COMPILE_NETMAP_FALSE}"; then
  25904. as_fn_error $? "conditional \"COMPILE_NETMAP\" was never defined.
  25905. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25906. fi
  25907. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  25908. as_fn_error $? "conditional \"COMPILE_FRAGROUTE\" was never defined.
  25909. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25910. fi
  25911. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  25912. as_fn_error $? "conditional \"ENABLE_TCPDUMP\" was never defined.
  25913. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25914. fi
  25915. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  25916. as_fn_error $? "conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  25917. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25918. fi
  25919. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  25920. as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  25921. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25922. fi
  25923. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  25924. as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  25925. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25926. fi
  25927. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  25928. as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  25929. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25930. fi
  25931. : "${CONFIG_STATUS=./config.status}"
  25932. ac_write_fail=0
  25933. ac_clean_files_save=$ac_clean_files
  25934. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25936. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25937. as_write_fail=0
  25938. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25939. #! $SHELL
  25940. # Generated by $as_me.
  25941. # Run this file to recreate the current configuration.
  25942. # Compiler output produced by configure, useful for debugging
  25943. # configure, is in config.log if it exists.
  25944. debug=false
  25945. ac_cs_recheck=false
  25946. ac_cs_silent=false
  25947. SHELL=\${CONFIG_SHELL-$SHELL}
  25948. export SHELL
  25949. _ASEOF
  25950. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25951. ## -------------------- ##
  25952. ## M4sh Initialization. ##
  25953. ## -------------------- ##
  25954. # Be more Bourne compatible
  25955. DUALCASE=1; export DUALCASE # for MKS sh
  25956. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25957. then :
  25958. emulate sh
  25959. NULLCMD=:
  25960. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25961. # is contrary to our usage. Disable this feature.
  25962. alias -g '${1+"$@"}'='"$@"'
  25963. setopt NO_GLOB_SUBST
  25964. else case e in #(
  25965. e) case `(set -o) 2>/dev/null` in #(
  25966. *posix*) :
  25967. set -o posix ;; #(
  25968. *) :
  25969. ;;
  25970. esac ;;
  25971. esac
  25972. fi
  25973. # Reset variables that may have inherited troublesome values from
  25974. # the environment.
  25975. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25976. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25977. # side effect of setting IFS to empty, thus disabling word splitting.)
  25978. # Quoting is to prevent editors from complaining about space-tab.
  25979. as_nl='
  25980. '
  25981. export as_nl
  25982. IFS=" "" $as_nl"
  25983. PS1='$ '
  25984. PS2='> '
  25985. PS4='+ '
  25986. # Ensure predictable behavior from utilities with locale-dependent output.
  25987. LC_ALL=C
  25988. export LC_ALL
  25989. LANGUAGE=C
  25990. export LANGUAGE
  25991. # We cannot yet rely on "unset" to work, but we need these variables
  25992. # to be unset--not just set to an empty or harmless value--now, to
  25993. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25994. # also avoids known problems related to "unset" and subshell syntax
  25995. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25996. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25997. do eval test \${$as_var+y} \
  25998. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25999. done
  26000. # Ensure that fds 0, 1, and 2 are open.
  26001. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26002. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26003. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26004. # The user is always right.
  26005. if ${PATH_SEPARATOR+false} :; then
  26006. PATH_SEPARATOR=:
  26007. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26008. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26009. PATH_SEPARATOR=';'
  26010. }
  26011. fi
  26012. # Find who we are. Look in the path if we contain no directory separator.
  26013. as_myself=
  26014. case $0 in #((
  26015. *[\\/]* ) as_myself=$0 ;;
  26016. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26017. for as_dir in $PATH
  26018. do
  26019. IFS=$as_save_IFS
  26020. case $as_dir in #(((
  26021. '') as_dir=./ ;;
  26022. */) ;;
  26023. *) as_dir=$as_dir/ ;;
  26024. esac
  26025. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26026. done
  26027. IFS=$as_save_IFS
  26028. ;;
  26029. esac
  26030. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  26031. # in which case we are not to be found in the path.
  26032. if test "x$as_myself" = x; then
  26033. as_myself=$0
  26034. fi
  26035. if test ! -f "$as_myself"; then
  26036. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26037. exit 1
  26038. fi
  26039. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26040. # ----------------------------------------
  26041. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26042. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26043. # script with STATUS, using 1 if that was 0.
  26044. as_fn_error ()
  26045. {
  26046. as_status=$1; test $as_status -eq 0 && as_status=1
  26047. if test "$4"; then
  26048. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26050. fi
  26051. printf "%s\n" "$as_me: error: $2" >&2
  26052. as_fn_exit $as_status
  26053. } # as_fn_error
  26054. # as_fn_set_status STATUS
  26055. # -----------------------
  26056. # Set $? to STATUS, without forking.
  26057. as_fn_set_status ()
  26058. {
  26059. return $1
  26060. } # as_fn_set_status
  26061. # as_fn_exit STATUS
  26062. # -----------------
  26063. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26064. as_fn_exit ()
  26065. {
  26066. set +e
  26067. as_fn_set_status $1
  26068. exit $1
  26069. } # as_fn_exit
  26070. # as_fn_unset VAR
  26071. # ---------------
  26072. # Portably unset VAR.
  26073. as_fn_unset ()
  26074. {
  26075. { eval $1=; unset $1;}
  26076. }
  26077. as_unset=as_fn_unset
  26078. # as_fn_append VAR VALUE
  26079. # ----------------------
  26080. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26081. # advantage of any shell optimizations that allow amortized linear growth over
  26082. # repeated appends, instead of the typical quadratic growth present in naive
  26083. # implementations.
  26084. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26085. then :
  26086. eval 'as_fn_append ()
  26087. {
  26088. eval $1+=\$2
  26089. }'
  26090. else case e in #(
  26091. e) as_fn_append ()
  26092. {
  26093. eval $1=\$$1\$2
  26094. } ;;
  26095. esac
  26096. fi # as_fn_append
  26097. # as_fn_arith ARG...
  26098. # ------------------
  26099. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26100. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26101. # must be portable across $(()) and expr.
  26102. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26103. then :
  26104. eval 'as_fn_arith ()
  26105. {
  26106. as_val=$(( $* ))
  26107. }'
  26108. else case e in #(
  26109. e) as_fn_arith ()
  26110. {
  26111. as_val=`expr "$@" || test $? -eq 1`
  26112. } ;;
  26113. esac
  26114. fi # as_fn_arith
  26115. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26116. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26117. as_expr=expr
  26118. else
  26119. as_expr=false
  26120. fi
  26121. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26122. as_basename=basename
  26123. else
  26124. as_basename=false
  26125. fi
  26126. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26127. as_dirname=dirname
  26128. else
  26129. as_dirname=false
  26130. fi
  26131. as_me=`$as_basename -- "$0" ||
  26132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26133. X"$0" : 'X\(//\)$' \| \
  26134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26135. printf "%s\n" X/"$0" |
  26136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26137. s//\1/
  26138. q
  26139. }
  26140. /^X\/\(\/\/\)$/{
  26141. s//\1/
  26142. q
  26143. }
  26144. /^X\/\(\/\).*/{
  26145. s//\1/
  26146. q
  26147. }
  26148. s/.*/./; q'`
  26149. # Avoid depending upon Character Ranges.
  26150. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26151. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26152. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26153. as_cr_digits='0123456789'
  26154. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26155. # Determine whether it's possible to make 'echo' print without a newline.
  26156. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26157. # for compatibility with existing Makefiles.
  26158. ECHO_C= ECHO_N= ECHO_T=
  26159. case `echo -n x` in #(((((
  26160. -n*)
  26161. case `echo 'xy\c'` in
  26162. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26163. xy) ECHO_C='\c';;
  26164. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26165. ECHO_T=' ';;
  26166. esac;;
  26167. *)
  26168. ECHO_N='-n';;
  26169. esac
  26170. # For backward compatibility with old third-party macros, we provide
  26171. # the shell variables $as_echo and $as_echo_n. New code should use
  26172. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26173. as_echo='printf %s\n'
  26174. as_echo_n='printf %s'
  26175. rm -f conf$$ conf$$.exe conf$$.file
  26176. if test -d conf$$.dir; then
  26177. rm -f conf$$.dir/conf$$.file
  26178. else
  26179. rm -f conf$$.dir
  26180. mkdir conf$$.dir 2>/dev/null
  26181. fi
  26182. if (echo >conf$$.file) 2>/dev/null; then
  26183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26184. as_ln_s='ln -s'
  26185. # ... but there are two gotchas:
  26186. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  26187. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  26188. # In both cases, we have to default to 'cp -pR'.
  26189. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26190. as_ln_s='cp -pR'
  26191. elif ln conf$$.file conf$$ 2>/dev/null; then
  26192. as_ln_s=ln
  26193. else
  26194. as_ln_s='cp -pR'
  26195. fi
  26196. else
  26197. as_ln_s='cp -pR'
  26198. fi
  26199. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26200. rmdir conf$$.dir 2>/dev/null
  26201. # as_fn_mkdir_p
  26202. # -------------
  26203. # Create "$as_dir" as a directory, including parents if necessary.
  26204. as_fn_mkdir_p ()
  26205. {
  26206. case $as_dir in #(
  26207. -*) as_dir=./$as_dir;;
  26208. esac
  26209. test -d "$as_dir" || eval $as_mkdir_p || {
  26210. as_dirs=
  26211. while :; do
  26212. case $as_dir in #(
  26213. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26214. *) as_qdir=$as_dir;;
  26215. esac
  26216. as_dirs="'$as_qdir' $as_dirs"
  26217. as_dir=`$as_dirname -- "$as_dir" ||
  26218. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26219. X"$as_dir" : 'X\(//\)[^/]' \| \
  26220. X"$as_dir" : 'X\(//\)$' \| \
  26221. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26222. printf "%s\n" X"$as_dir" |
  26223. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26224. s//\1/
  26225. q
  26226. }
  26227. /^X\(\/\/\)[^/].*/{
  26228. s//\1/
  26229. q
  26230. }
  26231. /^X\(\/\/\)$/{
  26232. s//\1/
  26233. q
  26234. }
  26235. /^X\(\/\).*/{
  26236. s//\1/
  26237. q
  26238. }
  26239. s/.*/./; q'`
  26240. test -d "$as_dir" && break
  26241. done
  26242. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26243. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26244. } # as_fn_mkdir_p
  26245. if mkdir -p . 2>/dev/null; then
  26246. as_mkdir_p='mkdir -p "$as_dir"'
  26247. else
  26248. test -d ./-p && rmdir ./-p
  26249. as_mkdir_p=false
  26250. fi
  26251. # as_fn_executable_p FILE
  26252. # -----------------------
  26253. # Test if FILE is an executable regular file.
  26254. as_fn_executable_p ()
  26255. {
  26256. test -f "$1" && test -x "$1"
  26257. } # as_fn_executable_p
  26258. as_test_x='test -x'
  26259. as_executable_p=as_fn_executable_p
  26260. # Sed expression to map a string onto a valid CPP name.
  26261. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  26262. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  26263. # Sed expression to map a string onto a valid variable name.
  26264. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  26265. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  26266. exec 6>&1
  26267. ## ----------------------------------- ##
  26268. ## Main body of $CONFIG_STATUS script. ##
  26269. ## ----------------------------------- ##
  26270. _ASEOF
  26271. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26272. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26273. # Save the log message, to keep $0 and so on meaningful, and to
  26274. # report actual input values of CONFIG_FILES etc. instead of their
  26275. # values after options handling.
  26276. ac_log="
  26277. This file was extended by tcpreplay $as_me 4.5.2, which was
  26278. generated by GNU Autoconf 2.72. Invocation command line was
  26279. CONFIG_FILES = $CONFIG_FILES
  26280. CONFIG_HEADERS = $CONFIG_HEADERS
  26281. CONFIG_LINKS = $CONFIG_LINKS
  26282. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26283. $ $0 $@
  26284. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26285. "
  26286. _ACEOF
  26287. case $ac_config_files in *"
  26288. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26289. esac
  26290. case $ac_config_headers in *"
  26291. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26292. esac
  26293. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26294. # Files that config.status was made for.
  26295. config_files="$ac_config_files"
  26296. config_headers="$ac_config_headers"
  26297. config_commands="$ac_config_commands"
  26298. _ACEOF
  26299. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26300. ac_cs_usage="\
  26301. '$as_me' instantiates files and other configuration actions
  26302. from templates according to the current configuration. Unless the files
  26303. and actions are specified as TAGs, all are instantiated by default.
  26304. Usage: $0 [OPTION]... [TAG]...
  26305. -h, --help print this help, then exit
  26306. -V, --version print version number and configuration settings, then exit
  26307. --config print configuration, then exit
  26308. -q, --quiet, --silent
  26309. do not print progress messages
  26310. -d, --debug don't remove temporary files
  26311. --recheck update $as_me by reconfiguring in the same conditions
  26312. --file=FILE[:TEMPLATE]
  26313. instantiate the configuration file FILE
  26314. --header=FILE[:TEMPLATE]
  26315. instantiate the configuration header FILE
  26316. Configuration files:
  26317. $config_files
  26318. Configuration headers:
  26319. $config_headers
  26320. Configuration commands:
  26321. $config_commands
  26322. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  26323. tcpreplay home page: <http://tcpreplay.sourceforge.net/>."
  26324. _ACEOF
  26325. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26326. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26327. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26328. ac_cs_config='$ac_cs_config_escaped'
  26329. ac_cs_version="\\
  26330. tcpreplay config.status 4.5.2
  26331. configured by $0, generated by GNU Autoconf 2.72,
  26332. with options \\"\$ac_cs_config\\"
  26333. Copyright (C) 2023 Free Software Foundation, Inc.
  26334. This config.status script is free software; the Free Software Foundation
  26335. gives unlimited permission to copy, distribute and modify it."
  26336. ac_pwd='$ac_pwd'
  26337. srcdir='$srcdir'
  26338. INSTALL='$INSTALL'
  26339. MKDIR_P='$MKDIR_P'
  26340. AWK='$AWK'
  26341. test -n "\$AWK" || AWK=awk
  26342. _ACEOF
  26343. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26344. # The default lists apply if the user does not specify any file.
  26345. ac_need_defaults=:
  26346. while test $# != 0
  26347. do
  26348. case $1 in
  26349. --*=?*)
  26350. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26351. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26352. ac_shift=:
  26353. ;;
  26354. --*=)
  26355. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26356. ac_optarg=
  26357. ac_shift=:
  26358. ;;
  26359. *)
  26360. ac_option=$1
  26361. ac_optarg=$2
  26362. ac_shift=shift
  26363. ;;
  26364. esac
  26365. case $ac_option in
  26366. # Handling of the options.
  26367. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26368. ac_cs_recheck=: ;;
  26369. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26370. printf "%s\n" "$ac_cs_version"; exit ;;
  26371. --config | --confi | --conf | --con | --co | --c )
  26372. printf "%s\n" "$ac_cs_config"; exit ;;
  26373. --debug | --debu | --deb | --de | --d | -d )
  26374. debug=: ;;
  26375. --file | --fil | --fi | --f )
  26376. $ac_shift
  26377. case $ac_optarg in
  26378. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26379. '') as_fn_error $? "missing file argument" ;;
  26380. esac
  26381. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26382. ac_need_defaults=false;;
  26383. --header | --heade | --head | --hea )
  26384. $ac_shift
  26385. case $ac_optarg in
  26386. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26387. esac
  26388. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26389. ac_need_defaults=false;;
  26390. --he | --h)
  26391. # Conflict between --help and --header
  26392. as_fn_error $? "ambiguous option: '$1'
  26393. Try '$0 --help' for more information.";;
  26394. --help | --hel | -h )
  26395. printf "%s\n" "$ac_cs_usage"; exit ;;
  26396. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26397. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26398. ac_cs_silent=: ;;
  26399. # This is an error.
  26400. -*) as_fn_error $? "unrecognized option: '$1'
  26401. Try '$0 --help' for more information." ;;
  26402. *) as_fn_append ac_config_targets " $1"
  26403. ac_need_defaults=false ;;
  26404. esac
  26405. shift
  26406. done
  26407. ac_configure_extra_args=
  26408. if $ac_cs_silent; then
  26409. exec 6>/dev/null
  26410. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26411. fi
  26412. _ACEOF
  26413. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26414. if \$ac_cs_recheck; then
  26415. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26416. shift
  26417. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26418. CONFIG_SHELL='$SHELL'
  26419. export CONFIG_SHELL
  26420. exec "\$@"
  26421. fi
  26422. _ACEOF
  26423. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26424. exec 5>>config.log
  26425. {
  26426. echo
  26427. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26428. ## Running $as_me. ##
  26429. _ASBOX
  26430. printf "%s\n" "$ac_log"
  26431. } >&5
  26432. _ACEOF
  26433. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26434. #
  26435. # INIT-COMMANDS
  26436. #
  26437. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  26438. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26439. # if CDPATH is set.
  26440. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26441. sed_quote_subst='$sed_quote_subst'
  26442. double_quote_subst='$double_quote_subst'
  26443. delay_variable_subst='$delay_variable_subst'
  26444. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26445. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26446. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26447. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26448. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26449. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26450. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26451. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26452. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26453. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26454. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26455. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26456. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26457. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26458. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26459. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26460. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26461. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26462. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26463. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26464. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26465. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26466. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26467. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26468. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26469. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26470. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26471. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26472. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26473. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26474. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26475. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26476. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26477. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26478. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  26479. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26480. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26481. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26482. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26483. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26484. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26485. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26486. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26487. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  26488. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26489. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26490. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26491. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26492. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26493. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26494. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26495. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26496. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26497. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26498. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26499. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26500. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26501. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26502. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26503. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26504. 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"`'
  26505. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26506. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26507. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26508. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26509. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26510. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26511. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26512. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26513. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26514. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26515. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26516. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26517. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26518. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26519. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26520. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26521. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26522. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26523. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26524. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26525. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26526. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26527. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26528. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26529. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26530. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26531. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26532. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26533. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26534. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26535. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26536. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26537. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26538. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26539. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26540. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26541. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26542. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26543. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26544. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26545. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26546. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26547. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26548. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26549. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26550. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26551. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26552. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26553. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26554. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26555. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26556. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26557. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26558. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26559. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26560. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26561. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26562. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26563. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26564. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26565. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26566. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26567. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26568. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26569. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26570. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26571. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26572. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26573. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26574. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26575. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26576. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26577. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26578. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26579. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26580. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26581. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26582. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26583. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26584. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26585. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26586. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26587. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26588. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26589. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26590. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26591. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26592. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26593. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26594. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26595. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26596. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26597. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26598. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26599. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26600. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26601. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26602. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26603. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26604. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26605. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26606. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26607. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26608. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26609. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26610. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26611. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26612. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26613. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26614. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26615. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26616. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26617. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26618. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26619. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26620. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26621. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26622. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26623. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26624. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26625. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26626. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26627. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26628. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26629. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26630. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26631. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26632. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26633. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26634. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26635. LTCC='$LTCC'
  26636. LTCFLAGS='$LTCFLAGS'
  26637. compiler='$compiler_DEFAULT'
  26638. # A function that is used when there is no print builtin or printf.
  26639. func_fallback_echo ()
  26640. {
  26641. eval 'cat <<_LTECHO_EOF
  26642. \$1
  26643. _LTECHO_EOF'
  26644. }
  26645. # Quote evaled strings.
  26646. for var in SHELL \
  26647. ECHO \
  26648. PATH_SEPARATOR \
  26649. SED \
  26650. GREP \
  26651. EGREP \
  26652. FGREP \
  26653. LD \
  26654. NM \
  26655. LN_S \
  26656. lt_SP2NL \
  26657. lt_NL2SP \
  26658. reload_flag \
  26659. FILECMD \
  26660. OBJDUMP \
  26661. deplibs_check_method \
  26662. file_magic_cmd \
  26663. file_magic_glob \
  26664. want_nocaseglob \
  26665. DLLTOOL \
  26666. sharedlib_from_linklib_cmd \
  26667. AR \
  26668. archiver_list_spec \
  26669. STRIP \
  26670. RANLIB \
  26671. CC \
  26672. CFLAGS \
  26673. compiler \
  26674. lt_cv_sys_global_symbol_pipe \
  26675. lt_cv_sys_global_symbol_to_cdecl \
  26676. lt_cv_sys_global_symbol_to_import \
  26677. lt_cv_sys_global_symbol_to_c_name_address \
  26678. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26679. lt_cv_nm_interface \
  26680. nm_file_list_spec \
  26681. lt_cv_truncate_bin \
  26682. lt_prog_compiler_no_builtin_flag \
  26683. lt_prog_compiler_pic \
  26684. lt_prog_compiler_wl \
  26685. lt_prog_compiler_static \
  26686. lt_cv_prog_compiler_c_o \
  26687. need_locks \
  26688. MANIFEST_TOOL \
  26689. DSYMUTIL \
  26690. NMEDIT \
  26691. LIPO \
  26692. OTOOL \
  26693. OTOOL64 \
  26694. shrext_cmds \
  26695. export_dynamic_flag_spec \
  26696. whole_archive_flag_spec \
  26697. compiler_needs_object \
  26698. with_gnu_ld \
  26699. allow_undefined_flag \
  26700. no_undefined_flag \
  26701. hardcode_libdir_flag_spec \
  26702. hardcode_libdir_separator \
  26703. exclude_expsyms \
  26704. include_expsyms \
  26705. file_list_spec \
  26706. variables_saved_for_relink \
  26707. libname_spec \
  26708. library_names_spec \
  26709. soname_spec \
  26710. install_override_mode \
  26711. finish_eval \
  26712. old_striplib \
  26713. striplib \
  26714. compiler_lib_search_dirs \
  26715. predep_objects \
  26716. postdep_objects \
  26717. predeps \
  26718. postdeps \
  26719. compiler_lib_search_path \
  26720. LD_CXX \
  26721. reload_flag_CXX \
  26722. compiler_CXX \
  26723. lt_prog_compiler_no_builtin_flag_CXX \
  26724. lt_prog_compiler_pic_CXX \
  26725. lt_prog_compiler_wl_CXX \
  26726. lt_prog_compiler_static_CXX \
  26727. lt_cv_prog_compiler_c_o_CXX \
  26728. export_dynamic_flag_spec_CXX \
  26729. whole_archive_flag_spec_CXX \
  26730. compiler_needs_object_CXX \
  26731. with_gnu_ld_CXX \
  26732. allow_undefined_flag_CXX \
  26733. no_undefined_flag_CXX \
  26734. hardcode_libdir_flag_spec_CXX \
  26735. hardcode_libdir_separator_CXX \
  26736. exclude_expsyms_CXX \
  26737. include_expsyms_CXX \
  26738. file_list_spec_CXX \
  26739. compiler_lib_search_dirs_CXX \
  26740. predep_objects_CXX \
  26741. postdep_objects_CXX \
  26742. predeps_CXX \
  26743. postdeps_CXX \
  26744. compiler_lib_search_path_CXX; do
  26745. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26746. *[\\\\\\\`\\"\\\$]*)
  26747. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26748. ;;
  26749. *)
  26750. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26751. ;;
  26752. esac
  26753. done
  26754. # Double-quote double-evaled strings.
  26755. for var in reload_cmds \
  26756. old_postinstall_cmds \
  26757. old_postuninstall_cmds \
  26758. old_archive_cmds \
  26759. extract_expsyms_cmds \
  26760. old_archive_from_new_cmds \
  26761. old_archive_from_expsyms_cmds \
  26762. archive_cmds \
  26763. archive_expsym_cmds \
  26764. module_cmds \
  26765. module_expsym_cmds \
  26766. export_symbols_cmds \
  26767. prelink_cmds \
  26768. postlink_cmds \
  26769. postinstall_cmds \
  26770. postuninstall_cmds \
  26771. finish_cmds \
  26772. sys_lib_search_path_spec \
  26773. configure_time_dlsearch_path \
  26774. configure_time_lt_sys_library_path \
  26775. reload_cmds_CXX \
  26776. old_archive_cmds_CXX \
  26777. old_archive_from_new_cmds_CXX \
  26778. old_archive_from_expsyms_cmds_CXX \
  26779. archive_cmds_CXX \
  26780. archive_expsym_cmds_CXX \
  26781. module_cmds_CXX \
  26782. module_expsym_cmds_CXX \
  26783. export_symbols_cmds_CXX \
  26784. prelink_cmds_CXX \
  26785. postlink_cmds_CXX; do
  26786. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26787. *[\\\\\\\`\\"\\\$]*)
  26788. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26789. ;;
  26790. *)
  26791. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26792. ;;
  26793. esac
  26794. done
  26795. ac_aux_dir='$ac_aux_dir'
  26796. # See if we are running on zsh, and set the options that allow our
  26797. # commands through without removal of \ escapes INIT.
  26798. if test -n "\${ZSH_VERSION+set}"; then
  26799. setopt NO_GLOB_SUBST
  26800. fi
  26801. PACKAGE='$PACKAGE'
  26802. VERSION='$VERSION'
  26803. RM='$RM'
  26804. ofile='$ofile'
  26805. _ACEOF
  26806. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26807. # Handling of arguments.
  26808. for ac_config_target in $ac_config_targets
  26809. do
  26810. case $ac_config_target in
  26811. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  26812. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  26813. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26814. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  26815. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  26816. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  26817. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  26818. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  26819. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  26820. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  26821. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  26822. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  26823. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  26824. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  26825. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  26826. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  26827. *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  26828. esac
  26829. done
  26830. # If the user did not use the arguments to specify the items to instantiate,
  26831. # then the envvar interface is used. Set only those that are not.
  26832. # We use the long form for the default assignment because of an extremely
  26833. # bizarre bug on SunOS 4.1.3.
  26834. if $ac_need_defaults; then
  26835. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26836. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26837. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26838. fi
  26839. # Have a temporary directory for convenience. Make it in the build tree
  26840. # simply because there is no reason against having it here, and in addition,
  26841. # creating and moving files from /tmp can sometimes cause problems.
  26842. # Hook for its removal unless debugging.
  26843. # Note that there is a small window in which the directory will not be cleaned:
  26844. # after its creation but before its name has been assigned to '$tmp'.
  26845. $debug ||
  26846. {
  26847. tmp= ac_tmp=
  26848. trap 'exit_status=$?
  26849. : "${ac_tmp:=$tmp}"
  26850. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26851. ' 0
  26852. trap 'as_fn_exit 1' 1 2 13 15
  26853. }
  26854. # Create a (secure) tmp directory for tmp files.
  26855. {
  26856. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26857. test -d "$tmp"
  26858. } ||
  26859. {
  26860. tmp=./conf$$-$RANDOM
  26861. (umask 077 && mkdir "$tmp")
  26862. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26863. ac_tmp=$tmp
  26864. # Set up the scripts for CONFIG_FILES section.
  26865. # No need to generate them if there are no CONFIG_FILES.
  26866. # This happens for instance with './config.status config.h'.
  26867. if test -n "$CONFIG_FILES"; then
  26868. ac_cr=`echo X | tr X '\015'`
  26869. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26870. # But we know of no other shell where ac_cr would be empty at this
  26871. # point, so we can use a bashism as a fallback.
  26872. if test "x$ac_cr" = x; then
  26873. eval ac_cr=\$\'\\r\'
  26874. fi
  26875. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26876. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26877. ac_cs_awk_cr='\\r'
  26878. else
  26879. ac_cs_awk_cr=$ac_cr
  26880. fi
  26881. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26882. _ACEOF
  26883. {
  26884. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26885. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26886. echo "_ACEOF"
  26887. } >conf$$subs.sh ||
  26888. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26889. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26890. ac_delim='%!_!# '
  26891. for ac_last_try in false false false false false :; do
  26892. . ./conf$$subs.sh ||
  26893. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26894. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26895. if test $ac_delim_n = $ac_delim_num; then
  26896. break
  26897. elif $ac_last_try; then
  26898. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26899. else
  26900. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26901. fi
  26902. done
  26903. rm -f conf$$subs.sh
  26904. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26905. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26906. _ACEOF
  26907. sed -n '
  26908. h
  26909. s/^/S["/; s/!.*/"]=/
  26910. p
  26911. g
  26912. s/^[^!]*!//
  26913. :repl
  26914. t repl
  26915. s/'"$ac_delim"'$//
  26916. t delim
  26917. :nl
  26918. h
  26919. s/\(.\{148\}\)..*/\1/
  26920. t more1
  26921. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26922. p
  26923. n
  26924. b repl
  26925. :more1
  26926. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26927. p
  26928. g
  26929. s/.\{148\}//
  26930. t nl
  26931. :delim
  26932. h
  26933. s/\(.\{148\}\)..*/\1/
  26934. t more2
  26935. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26936. p
  26937. b
  26938. :more2
  26939. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26940. p
  26941. g
  26942. s/.\{148\}//
  26943. t delim
  26944. ' <conf$$subs.awk | sed '
  26945. /^[^""]/{
  26946. N
  26947. s/\n//
  26948. }
  26949. ' >>$CONFIG_STATUS || ac_write_fail=1
  26950. rm -f conf$$subs.awk
  26951. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26952. _ACAWK
  26953. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26954. for (key in S) S_is_set[key] = 1
  26955. FS = ""
  26956. }
  26957. {
  26958. line = $ 0
  26959. nfields = split(line, field, "@")
  26960. substed = 0
  26961. len = length(field[1])
  26962. for (i = 2; i < nfields; i++) {
  26963. key = field[i]
  26964. keylen = length(key)
  26965. if (S_is_set[key]) {
  26966. value = S[key]
  26967. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26968. len += length(value) + length(field[++i])
  26969. substed = 1
  26970. } else
  26971. len += 1 + keylen
  26972. }
  26973. print line
  26974. }
  26975. _ACAWK
  26976. _ACEOF
  26977. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26978. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26979. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26980. else
  26981. cat
  26982. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26983. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26984. _ACEOF
  26985. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26986. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26987. # trailing colons and then remove the whole line if VPATH becomes empty
  26988. # (actually we leave an empty line to preserve line numbers).
  26989. if test "x$srcdir" = x.; then
  26990. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26991. h
  26992. s///
  26993. s/^/:/
  26994. s/[ ]*$/:/
  26995. s/:\$(srcdir):/:/g
  26996. s/:\${srcdir}:/:/g
  26997. s/:@srcdir@:/:/g
  26998. s/^:*//
  26999. s/:*$//
  27000. x
  27001. s/\(=[ ]*\).*/\1/
  27002. G
  27003. s/\n//
  27004. s/^[^=]*=[ ]*$//
  27005. }'
  27006. fi
  27007. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27008. fi # test -n "$CONFIG_FILES"
  27009. # Set up the scripts for CONFIG_HEADERS section.
  27010. # No need to generate them if there are no CONFIG_HEADERS.
  27011. # This happens for instance with './config.status Makefile'.
  27012. if test -n "$CONFIG_HEADERS"; then
  27013. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27014. BEGIN {
  27015. _ACEOF
  27016. # Transform confdefs.h into an awk script 'defines.awk', embedded as
  27017. # here-document in config.status, that substitutes the proper values into
  27018. # config.h.in to produce config.h.
  27019. # Create a delimiter string that does not exist in confdefs.h, to ease
  27020. # handling of long lines.
  27021. ac_delim='%!_!# '
  27022. for ac_last_try in false false :; do
  27023. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27024. if test -z "$ac_tt"; then
  27025. break
  27026. elif $ac_last_try; then
  27027. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27028. else
  27029. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27030. fi
  27031. done
  27032. # For the awk script, D is an array of macro values keyed by name,
  27033. # likewise P contains macro parameters if any. Preserve backslash
  27034. # newline sequences.
  27035. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27036. sed -n '
  27037. s/.\{148\}/&'"$ac_delim"'/g
  27038. t rset
  27039. :rset
  27040. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27041. t def
  27042. d
  27043. :def
  27044. s/\\$//
  27045. t bsnl
  27046. s/["\\]/\\&/g
  27047. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27048. D["\1"]=" \3"/p
  27049. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27050. d
  27051. :bsnl
  27052. s/["\\]/\\&/g
  27053. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27054. D["\1"]=" \3\\\\\\n"\\/p
  27055. t cont
  27056. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27057. t cont
  27058. d
  27059. :cont
  27060. n
  27061. s/.\{148\}/&'"$ac_delim"'/g
  27062. t clear
  27063. :clear
  27064. s/\\$//
  27065. t bsnlc
  27066. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27067. d
  27068. :bsnlc
  27069. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27070. b cont
  27071. ' <confdefs.h | sed '
  27072. s/'"$ac_delim"'/"\\\
  27073. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27074. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27075. for (key in D) D_is_set[key] = 1
  27076. FS = ""
  27077. }
  27078. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27079. line = \$ 0
  27080. split(line, arg, " ")
  27081. if (arg[1] == "#") {
  27082. defundef = arg[2]
  27083. mac1 = arg[3]
  27084. } else {
  27085. defundef = substr(arg[1], 2)
  27086. mac1 = arg[2]
  27087. }
  27088. split(mac1, mac2, "(") #)
  27089. macro = mac2[1]
  27090. prefix = substr(line, 1, index(line, defundef) - 1)
  27091. if (D_is_set[macro]) {
  27092. # Preserve the white space surrounding the "#".
  27093. print prefix "define", macro P[macro] D[macro]
  27094. next
  27095. } else {
  27096. # Replace #undef with comments. This is necessary, for example,
  27097. # in the case of _POSIX_SOURCE, which is predefined and required
  27098. # on some systems where configure will not decide to define it.
  27099. if (defundef == "undef") {
  27100. print "/*", prefix defundef, macro, "*/"
  27101. next
  27102. }
  27103. }
  27104. }
  27105. { print }
  27106. _ACAWK
  27107. _ACEOF
  27108. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27109. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27110. fi # test -n "$CONFIG_HEADERS"
  27111. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27112. shift
  27113. for ac_tag
  27114. do
  27115. case $ac_tag in
  27116. :[FHLC]) ac_mode=$ac_tag; continue;;
  27117. esac
  27118. case $ac_mode$ac_tag in
  27119. :[FHL]*:*);;
  27120. :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  27121. :[FH]-) ac_tag=-:-;;
  27122. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27123. esac
  27124. ac_save_IFS=$IFS
  27125. IFS=:
  27126. set x $ac_tag
  27127. IFS=$ac_save_IFS
  27128. shift
  27129. ac_file=$1
  27130. shift
  27131. case $ac_mode in
  27132. :L) ac_source=$1;;
  27133. :[FH])
  27134. ac_file_inputs=
  27135. for ac_f
  27136. do
  27137. case $ac_f in
  27138. -) ac_f="$ac_tmp/stdin";;
  27139. *) # Look for the file first in the build tree, then in the source tree
  27140. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27141. # because $ac_f cannot contain ':'.
  27142. test -f "$ac_f" ||
  27143. case $ac_f in
  27144. [\\/$]*) false;;
  27145. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27146. esac ||
  27147. as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
  27148. esac
  27149. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27150. as_fn_append ac_file_inputs " '$ac_f'"
  27151. done
  27152. # Let's still pretend it is 'configure' which instantiates (i.e., don't
  27153. # use $as_me), people would be surprised to read:
  27154. # /* config.h. Generated by config.status. */
  27155. configure_input='Generated from '`
  27156. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27157. `' by configure.'
  27158. if test x"$ac_file" != x-; then
  27159. configure_input="$ac_file. $configure_input"
  27160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27161. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27162. fi
  27163. # Neutralize special characters interpreted by sed in replacement strings.
  27164. case $configure_input in #(
  27165. *\&* | *\|* | *\\* )
  27166. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27167. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27168. *) ac_sed_conf_input=$configure_input;;
  27169. esac
  27170. case $ac_tag in
  27171. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27172. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27173. esac
  27174. ;;
  27175. esac
  27176. ac_dir=`$as_dirname -- "$ac_file" ||
  27177. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27178. X"$ac_file" : 'X\(//\)[^/]' \| \
  27179. X"$ac_file" : 'X\(//\)$' \| \
  27180. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27181. printf "%s\n" X"$ac_file" |
  27182. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27183. s//\1/
  27184. q
  27185. }
  27186. /^X\(\/\/\)[^/].*/{
  27187. s//\1/
  27188. q
  27189. }
  27190. /^X\(\/\/\)$/{
  27191. s//\1/
  27192. q
  27193. }
  27194. /^X\(\/\).*/{
  27195. s//\1/
  27196. q
  27197. }
  27198. s/.*/./; q'`
  27199. as_dir="$ac_dir"; as_fn_mkdir_p
  27200. ac_builddir=.
  27201. case "$ac_dir" in
  27202. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27203. *)
  27204. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27205. # A ".." for each directory in $ac_dir_suffix.
  27206. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27207. case $ac_top_builddir_sub in
  27208. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27209. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27210. esac ;;
  27211. esac
  27212. ac_abs_top_builddir=$ac_pwd
  27213. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27214. # for backward compatibility:
  27215. ac_top_builddir=$ac_top_build_prefix
  27216. case $srcdir in
  27217. .) # We are building in place.
  27218. ac_srcdir=.
  27219. ac_top_srcdir=$ac_top_builddir_sub
  27220. ac_abs_top_srcdir=$ac_pwd ;;
  27221. [\\/]* | ?:[\\/]* ) # Absolute name.
  27222. ac_srcdir=$srcdir$ac_dir_suffix;
  27223. ac_top_srcdir=$srcdir
  27224. ac_abs_top_srcdir=$srcdir ;;
  27225. *) # Relative name.
  27226. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27227. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27228. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27229. esac
  27230. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27231. case $ac_mode in
  27232. :F)
  27233. #
  27234. # CONFIG_FILE
  27235. #
  27236. case $INSTALL in
  27237. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27238. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27239. esac
  27240. ac_MKDIR_P=$MKDIR_P
  27241. case $MKDIR_P in
  27242. [\\/$]* | ?:[\\/]* ) ;;
  27243. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  27244. esac
  27245. _ACEOF
  27246. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27247. # If the template does not know about datarootdir, expand it.
  27248. # FIXME: This hack should be removed a few years after 2.60.
  27249. ac_datarootdir_hack=; ac_datarootdir_seen=
  27250. ac_sed_dataroot='
  27251. /datarootdir/ {
  27252. p
  27253. q
  27254. }
  27255. /@datadir@/p
  27256. /@docdir@/p
  27257. /@infodir@/p
  27258. /@localedir@/p
  27259. /@mandir@/p'
  27260. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27261. *datarootdir*) ac_datarootdir_seen=yes;;
  27262. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27264. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27265. _ACEOF
  27266. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27267. ac_datarootdir_hack='
  27268. s&@datadir@&$datadir&g
  27269. s&@docdir@&$docdir&g
  27270. s&@infodir@&$infodir&g
  27271. s&@localedir@&$localedir&g
  27272. s&@mandir@&$mandir&g
  27273. s&\\\${datarootdir}&$datarootdir&g' ;;
  27274. esac
  27275. _ACEOF
  27276. # Neutralize VPATH when '$srcdir' = '.'.
  27277. # Shell code in configure.ac might set extrasub.
  27278. # FIXME: do we really want to maintain this feature?
  27279. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27280. ac_sed_extra="$ac_vpsub
  27281. $extrasub
  27282. _ACEOF
  27283. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27284. :t
  27285. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27286. s|@configure_input@|$ac_sed_conf_input|;t t
  27287. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27288. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27289. s&@srcdir@&$ac_srcdir&;t t
  27290. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27291. s&@top_srcdir@&$ac_top_srcdir&;t t
  27292. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27293. s&@builddir@&$ac_builddir&;t t
  27294. s&@abs_builddir@&$ac_abs_builddir&;t t
  27295. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27296. s&@INSTALL@&$ac_INSTALL&;t t
  27297. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  27298. $ac_datarootdir_hack
  27299. "
  27300. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27301. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27302. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27303. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27304. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27305. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  27307. which seems to be undefined. Please make sure it is defined" >&5
  27308. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  27309. which seems to be undefined. Please make sure it is defined" >&2;}
  27310. rm -f "$ac_tmp/stdin"
  27311. case $ac_file in
  27312. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27313. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27314. esac \
  27315. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27316. ;;
  27317. :H)
  27318. #
  27319. # CONFIG_HEADER
  27320. #
  27321. if test x"$ac_file" != x-; then
  27322. {
  27323. printf "%s\n" "/* $configure_input */" >&1 \
  27324. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27325. } >"$ac_tmp/config.h" \
  27326. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27327. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27329. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27330. else
  27331. rm -f "$ac_file"
  27332. mv "$ac_tmp/config.h" "$ac_file" \
  27333. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27334. fi
  27335. else
  27336. printf "%s\n" "/* $configure_input */" >&1 \
  27337. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27338. || as_fn_error $? "could not create -" "$LINENO" 5
  27339. fi
  27340. # Compute "$ac_file"'s index in $config_headers.
  27341. _am_arg="$ac_file"
  27342. _am_stamp_count=1
  27343. for _am_header in $config_headers :; do
  27344. case $_am_header in
  27345. $_am_arg | $_am_arg:* )
  27346. break ;;
  27347. * )
  27348. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  27349. esac
  27350. done
  27351. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  27352. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27353. X"$_am_arg" : 'X\(//\)[^/]' \| \
  27354. X"$_am_arg" : 'X\(//\)$' \| \
  27355. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  27356. printf "%s\n" X"$_am_arg" |
  27357. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27358. s//\1/
  27359. q
  27360. }
  27361. /^X\(\/\/\)[^/].*/{
  27362. s//\1/
  27363. q
  27364. }
  27365. /^X\(\/\/\)$/{
  27366. s//\1/
  27367. q
  27368. }
  27369. /^X\(\/\).*/{
  27370. s//\1/
  27371. q
  27372. }
  27373. s/.*/./; q'`/stamp-h$_am_stamp_count
  27374. ;;
  27375. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27376. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27377. ;;
  27378. esac
  27379. case $ac_file$ac_mode in
  27380. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  27381. # Older Autoconf quotes --file arguments for eval, but not when files
  27382. # are listed without --file. Let's play safe and only enable the eval
  27383. # if we detect the quoting.
  27384. # TODO: see whether this extra hack can be removed once we start
  27385. # requiring Autoconf 2.70 or later.
  27386. case $CONFIG_FILES in #(
  27387. *\'*) :
  27388. eval set x "$CONFIG_FILES" ;; #(
  27389. *) :
  27390. set x $CONFIG_FILES ;; #(
  27391. *) :
  27392. ;;
  27393. esac
  27394. shift
  27395. # Used to flag and report bootstrapping failures.
  27396. am_rc=0
  27397. for am_mf
  27398. do
  27399. # Strip MF so we end up with the name of the file.
  27400. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  27401. # Check whether this is an Automake generated Makefile which includes
  27402. # dependency-tracking related rules and includes.
  27403. # Grep'ing the whole file directly is not great: AIX grep has a line
  27404. # limit of 2048, but all sed's we know have understand at least 4000.
  27405. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  27406. || continue
  27407. am_dirpart=`$as_dirname -- "$am_mf" ||
  27408. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27409. X"$am_mf" : 'X\(//\)[^/]' \| \
  27410. X"$am_mf" : 'X\(//\)$' \| \
  27411. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  27412. printf "%s\n" X"$am_mf" |
  27413. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27414. s//\1/
  27415. q
  27416. }
  27417. /^X\(\/\/\)[^/].*/{
  27418. s//\1/
  27419. q
  27420. }
  27421. /^X\(\/\/\)$/{
  27422. s//\1/
  27423. q
  27424. }
  27425. /^X\(\/\).*/{
  27426. s//\1/
  27427. q
  27428. }
  27429. s/.*/./; q'`
  27430. am_filepart=`$as_basename -- "$am_mf" ||
  27431. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  27432. X"$am_mf" : 'X\(//\)$' \| \
  27433. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  27434. printf "%s\n" X/"$am_mf" |
  27435. sed '/^.*\/\([^/][^/]*\)\/*$/{
  27436. s//\1/
  27437. q
  27438. }
  27439. /^X\/\(\/\/\)$/{
  27440. s//\1/
  27441. q
  27442. }
  27443. /^X\/\(\/\).*/{
  27444. s//\1/
  27445. q
  27446. }
  27447. s/.*/./; q'`
  27448. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  27449. && sed -e '/# am--include-marker/d' "$am_filepart" \
  27450. | $MAKE -f - am--depfiles" >&5
  27451. (cd "$am_dirpart" \
  27452. && sed -e '/# am--include-marker/d' "$am_filepart" \
  27453. | $MAKE -f - am--depfiles) >&5 2>&5
  27454. ac_status=$?
  27455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27456. (exit $ac_status); } || am_rc=$?
  27457. done
  27458. if test $am_rc -ne 0; then
  27459. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  27460. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  27461. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  27462. for automatic dependency tracking. If GNU make was not used, consider
  27463. re-running the configure script with MAKE=\"gmake\" (or whatever is
  27464. necessary). You can also try re-running configure with the
  27465. '--disable-dependency-tracking' option to at least be able to build
  27466. the package (albeit without support for automatic dependency tracking).
  27467. See 'config.log' for more details" "$LINENO" 5; }
  27468. fi
  27469. { am_dirpart=; unset am_dirpart;}
  27470. { am_filepart=; unset am_filepart;}
  27471. { am_mf=; unset am_mf;}
  27472. { am_rc=; unset am_rc;}
  27473. rm -f conftest-deps.mk
  27474. }
  27475. ;;
  27476. "libtool":C)
  27477. # See if we are running on zsh, and set the options that allow our
  27478. # commands through without removal of \ escapes.
  27479. if test -n "${ZSH_VERSION+set}"; then
  27480. setopt NO_GLOB_SUBST
  27481. fi
  27482. cfgfile=${ofile}T
  27483. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27484. $RM "$cfgfile"
  27485. cat <<_LT_EOF >> "$cfgfile"
  27486. #! $SHELL
  27487. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27488. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27489. # Provide generalized library-building support services.
  27490. # Written by Gordon Matzigkeit, 1996
  27491. # Copyright (C) 2024 Free Software Foundation, Inc.
  27492. # This is free software; see the source for copying conditions. There is NO
  27493. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27494. # GNU Libtool is free software; you can redistribute it and/or modify
  27495. # it under the terms of the GNU General Public License as published by
  27496. # the Free Software Foundation; either version 2 of the License, or
  27497. # (at your option) any later version.
  27498. #
  27499. # As a special exception to the GNU General Public License, if you
  27500. # distribute this file as part of a program or library that is built
  27501. # using GNU Libtool, you may include this file under the same
  27502. # distribution terms that you use for the rest of that program.
  27503. #
  27504. # GNU Libtool is distributed in the hope that it will be useful, but
  27505. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27506. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27507. # GNU General Public License for more details.
  27508. #
  27509. # You should have received a copy of the GNU General Public License
  27510. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27511. # The names of the tagged configurations supported by this script.
  27512. available_tags='CXX '
  27513. # Configured defaults for sys_lib_dlsearch_path munging.
  27514. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27515. # ### BEGIN LIBTOOL CONFIG
  27516. # Which release of libtool.m4 was used?
  27517. macro_version=$macro_version
  27518. macro_revision=$macro_revision
  27519. # Whether or not to build shared libraries.
  27520. build_libtool_libs=$enable_shared
  27521. # Whether or not to build static libraries.
  27522. build_old_libs=$enable_static
  27523. # What type of objects to build.
  27524. pic_mode=$pic_mode
  27525. # Whether or not to optimize for fast installation.
  27526. fast_install=$enable_fast_install
  27527. # Shared archive member basename,for filename based shared library versioning on AIX.
  27528. shared_archive_member_spec=$shared_archive_member_spec
  27529. # Shell to use when invoking shell scripts.
  27530. SHELL=$lt_SHELL
  27531. # An echo program that protects backslashes.
  27532. ECHO=$lt_ECHO
  27533. # The PATH separator for the build system.
  27534. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27535. # The host system.
  27536. host_alias=$host_alias
  27537. host=$host
  27538. host_os=$host_os
  27539. # The build system.
  27540. build_alias=$build_alias
  27541. build=$build
  27542. build_os=$build_os
  27543. # A sed program that does not truncate output.
  27544. SED=$lt_SED
  27545. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27546. Xsed="\$SED -e 1s/^X//"
  27547. # A grep program that handles long lines.
  27548. GREP=$lt_GREP
  27549. # An ERE matcher.
  27550. EGREP=$lt_EGREP
  27551. # A literal string matcher.
  27552. FGREP=$lt_FGREP
  27553. # A BSD- or MS-compatible name lister.
  27554. NM=$lt_NM
  27555. # Whether we need soft or hard links.
  27556. LN_S=$lt_LN_S
  27557. # What is the maximum length of a command?
  27558. max_cmd_len=$max_cmd_len
  27559. # Object file suffix (normally "o").
  27560. objext=$ac_objext
  27561. # Executable file suffix (normally "").
  27562. exeext=$exeext
  27563. # whether the shell understands "unset".
  27564. lt_unset=$lt_unset
  27565. # turn spaces into newlines.
  27566. SP2NL=$lt_lt_SP2NL
  27567. # turn newlines into spaces.
  27568. NL2SP=$lt_lt_NL2SP
  27569. # convert \$build file names to \$host format.
  27570. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27571. # convert \$build files to toolchain format.
  27572. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27573. # A file(cmd) program that detects file types.
  27574. FILECMD=$lt_FILECMD
  27575. # An object symbol dumper.
  27576. OBJDUMP=$lt_OBJDUMP
  27577. # Method to check whether dependent libraries are shared objects.
  27578. deplibs_check_method=$lt_deplibs_check_method
  27579. # Command to use when deplibs_check_method = "file_magic".
  27580. file_magic_cmd=$lt_file_magic_cmd
  27581. # How to find potential files when deplibs_check_method = "file_magic".
  27582. file_magic_glob=$lt_file_magic_glob
  27583. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27584. want_nocaseglob=$lt_want_nocaseglob
  27585. # DLL creation program.
  27586. DLLTOOL=$lt_DLLTOOL
  27587. # Command to associate shared and link libraries.
  27588. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27589. # The archiver.
  27590. AR=$lt_AR
  27591. # Flags to create an archive (by configure).
  27592. lt_ar_flags=$lt_ar_flags
  27593. # Flags to create an archive.
  27594. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  27595. # How to feed a file listing to the archiver.
  27596. archiver_list_spec=$lt_archiver_list_spec
  27597. # A symbol stripping program.
  27598. STRIP=$lt_STRIP
  27599. # Commands used to install an old-style archive.
  27600. RANLIB=$lt_RANLIB
  27601. old_postinstall_cmds=$lt_old_postinstall_cmds
  27602. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27603. # Whether to use a lock for old archive extraction.
  27604. lock_old_archive_extraction=$lock_old_archive_extraction
  27605. # A C compiler.
  27606. LTCC=$lt_CC
  27607. # LTCC compiler flags.
  27608. LTCFLAGS=$lt_CFLAGS
  27609. # Take the output of nm and produce a listing of raw symbols and C names.
  27610. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27611. # Transform the output of nm in a proper C declaration.
  27612. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27613. # Transform the output of nm into a list of symbols to manually relocate.
  27614. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27615. # Transform the output of nm in a C name address pair.
  27616. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27617. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27618. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27619. # The name lister interface.
  27620. nm_interface=$lt_lt_cv_nm_interface
  27621. # Specify filename containing input files for \$NM.
  27622. nm_file_list_spec=$lt_nm_file_list_spec
  27623. # The root where to search for dependent libraries,and where our libraries should be installed.
  27624. lt_sysroot=$lt_sysroot
  27625. # Command to truncate a binary pipe.
  27626. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27627. # The name of the directory that contains temporary libtool files.
  27628. objdir=$objdir
  27629. # Used to examine libraries when file_magic_cmd begins with "file".
  27630. MAGIC_CMD=$MAGIC_CMD
  27631. # Must we lock files when doing compilation?
  27632. need_locks=$lt_need_locks
  27633. # Manifest tool.
  27634. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27635. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27636. DSYMUTIL=$lt_DSYMUTIL
  27637. # Tool to change global to local symbols on Mac OS X.
  27638. NMEDIT=$lt_NMEDIT
  27639. # Tool to manipulate fat objects and archives on Mac OS X.
  27640. LIPO=$lt_LIPO
  27641. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27642. OTOOL=$lt_OTOOL
  27643. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27644. OTOOL64=$lt_OTOOL64
  27645. # Old archive suffix (normally "a").
  27646. libext=$libext
  27647. # Shared library suffix (normally ".so").
  27648. shrext_cmds=$lt_shrext_cmds
  27649. # The commands to extract the exported symbol list from a shared archive.
  27650. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27651. # Variables whose values should be saved in libtool wrapper scripts and
  27652. # restored at link time.
  27653. variables_saved_for_relink=$lt_variables_saved_for_relink
  27654. # Do we need the "lib" prefix for modules?
  27655. need_lib_prefix=$need_lib_prefix
  27656. # Do we need a version for libraries?
  27657. need_version=$need_version
  27658. # Library versioning type.
  27659. version_type=$version_type
  27660. # Shared library runtime path variable.
  27661. runpath_var=$runpath_var
  27662. # Shared library path variable.
  27663. shlibpath_var=$shlibpath_var
  27664. # Is shlibpath searched before the hard-coded library search path?
  27665. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27666. # Format of library name prefix.
  27667. libname_spec=$lt_libname_spec
  27668. # List of archive names. First name is the real one, the rest are links.
  27669. # The last name is the one that the linker finds with -lNAME
  27670. library_names_spec=$lt_library_names_spec
  27671. # The coded name of the library, if different from the real name.
  27672. soname_spec=$lt_soname_spec
  27673. # Permission mode override for installation of shared libraries.
  27674. install_override_mode=$lt_install_override_mode
  27675. # Command to use after installation of a shared archive.
  27676. postinstall_cmds=$lt_postinstall_cmds
  27677. # Command to use after uninstallation of a shared archive.
  27678. postuninstall_cmds=$lt_postuninstall_cmds
  27679. # Commands used to finish a libtool library installation in a directory.
  27680. finish_cmds=$lt_finish_cmds
  27681. # As "finish_cmds", except a single script fragment to be evaled but
  27682. # not shown.
  27683. finish_eval=$lt_finish_eval
  27684. # Whether we should hardcode library paths into libraries.
  27685. hardcode_into_libs=$hardcode_into_libs
  27686. # Compile-time system search path for libraries.
  27687. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27688. # Detected run-time system search path for libraries.
  27689. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27690. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27691. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27692. # Whether dlopen is supported.
  27693. dlopen_support=$enable_dlopen
  27694. # Whether dlopen of programs is supported.
  27695. dlopen_self=$enable_dlopen_self
  27696. # Whether dlopen of statically linked programs is supported.
  27697. dlopen_self_static=$enable_dlopen_self_static
  27698. # Commands to strip libraries.
  27699. old_striplib=$lt_old_striplib
  27700. striplib=$lt_striplib
  27701. # The linker used to build libraries.
  27702. LD=$lt_LD
  27703. # How to create reloadable object files.
  27704. reload_flag=$lt_reload_flag
  27705. reload_cmds=$lt_reload_cmds
  27706. # Commands used to build an old-style archive.
  27707. old_archive_cmds=$lt_old_archive_cmds
  27708. # A language specific compiler.
  27709. CC=$lt_compiler
  27710. # Is the compiler the GNU compiler?
  27711. with_gcc=$GCC
  27712. # Compiler flag to turn off builtin functions.
  27713. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27714. # Additional compiler flags for building library objects.
  27715. pic_flag=$lt_lt_prog_compiler_pic
  27716. # How to pass a linker flag through the compiler.
  27717. wl=$lt_lt_prog_compiler_wl
  27718. # Compiler flag to prevent dynamic linking.
  27719. link_static_flag=$lt_lt_prog_compiler_static
  27720. # Does compiler simultaneously support -c and -o options?
  27721. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27722. # Whether or not to add -lc for building shared libraries.
  27723. build_libtool_need_lc=$archive_cmds_need_lc
  27724. # Whether or not to disallow shared libs when runtime libs are static.
  27725. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27726. # Compiler flag to allow reflexive dlopens.
  27727. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27728. # Compiler flag to generate shared objects directly from archives.
  27729. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27730. # Whether the compiler copes with passing no objects directly.
  27731. compiler_needs_object=$lt_compiler_needs_object
  27732. # Create an old-style archive from a shared archive.
  27733. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27734. # Create a temporary old-style archive to link instead of a shared archive.
  27735. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27736. # Commands used to build a shared archive.
  27737. archive_cmds=$lt_archive_cmds
  27738. archive_expsym_cmds=$lt_archive_expsym_cmds
  27739. # Commands used to build a loadable module if different from building
  27740. # a shared archive.
  27741. module_cmds=$lt_module_cmds
  27742. module_expsym_cmds=$lt_module_expsym_cmds
  27743. # Whether we are building with GNU ld or not.
  27744. with_gnu_ld=$lt_with_gnu_ld
  27745. # Flag that allows shared libraries with undefined symbols to be built.
  27746. allow_undefined_flag=$lt_allow_undefined_flag
  27747. # Flag that enforces no undefined symbols.
  27748. no_undefined_flag=$lt_no_undefined_flag
  27749. # Flag to hardcode \$libdir into a binary during linking.
  27750. # This must work even if \$libdir does not exist
  27751. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27752. # Whether we need a single "-rpath" flag with a separated argument.
  27753. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27754. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27755. # DIR into the resulting binary.
  27756. hardcode_direct=$hardcode_direct
  27757. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27758. # DIR into the resulting binary and the resulting library dependency is
  27759. # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
  27760. # library is relocated.
  27761. hardcode_direct_absolute=$hardcode_direct_absolute
  27762. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27763. # into the resulting binary.
  27764. hardcode_minus_L=$hardcode_minus_L
  27765. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27766. # into the resulting binary.
  27767. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27768. # Set to "yes" if building a shared library automatically hardcodes DIR
  27769. # into the library and all subsequent libraries and executables linked
  27770. # against it.
  27771. hardcode_automatic=$hardcode_automatic
  27772. # Set to yes if linker adds runtime paths of dependent libraries
  27773. # to runtime path list.
  27774. inherit_rpath=$inherit_rpath
  27775. # Whether libtool must link a program against all its dependency libraries.
  27776. link_all_deplibs=$link_all_deplibs
  27777. # Set to "yes" if exported symbols are required.
  27778. always_export_symbols=$always_export_symbols
  27779. # The commands to list exported symbols.
  27780. export_symbols_cmds=$lt_export_symbols_cmds
  27781. # Symbols that should not be listed in the preloaded symbols.
  27782. exclude_expsyms=$lt_exclude_expsyms
  27783. # Symbols that must always be exported.
  27784. include_expsyms=$lt_include_expsyms
  27785. # Commands necessary for linking programs (against libraries) with templates.
  27786. prelink_cmds=$lt_prelink_cmds
  27787. # Commands necessary for finishing linking programs.
  27788. postlink_cmds=$lt_postlink_cmds
  27789. # Specify filename containing input files.
  27790. file_list_spec=$lt_file_list_spec
  27791. # How to hardcode a shared library path into an executable.
  27792. hardcode_action=$hardcode_action
  27793. # The directories searched by this compiler when creating a shared library.
  27794. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27795. # Dependencies to place before and after the objects being linked to
  27796. # create a shared library.
  27797. predep_objects=$lt_predep_objects
  27798. postdep_objects=$lt_postdep_objects
  27799. predeps=$lt_predeps
  27800. postdeps=$lt_postdeps
  27801. # The library search path used internally by the compiler when linking
  27802. # a shared library.
  27803. compiler_lib_search_path=$lt_compiler_lib_search_path
  27804. # ### END LIBTOOL CONFIG
  27805. _LT_EOF
  27806. cat <<'_LT_EOF' >> "$cfgfile"
  27807. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27808. # func_munge_path_list VARIABLE PATH
  27809. # -----------------------------------
  27810. # VARIABLE is name of variable containing _space_ separated list of
  27811. # directories to be munged by the contents of PATH, which is string
  27812. # having a format:
  27813. # "DIR[:DIR]:"
  27814. # string "DIR[ DIR]" will be prepended to VARIABLE
  27815. # ":DIR[:DIR]"
  27816. # string "DIR[ DIR]" will be appended to VARIABLE
  27817. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27818. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27819. # "DIRA[ DIRA]" will be appended to VARIABLE
  27820. # "DIR[:DIR]"
  27821. # VARIABLE will be replaced by "DIR[ DIR]"
  27822. func_munge_path_list ()
  27823. {
  27824. case x$2 in
  27825. x)
  27826. ;;
  27827. *:)
  27828. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27829. ;;
  27830. x:*)
  27831. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27832. ;;
  27833. *::*)
  27834. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27835. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27836. ;;
  27837. *)
  27838. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27839. ;;
  27840. esac
  27841. }
  27842. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27843. func_cc_basename ()
  27844. {
  27845. for cc_temp in $*""; do
  27846. case $cc_temp in
  27847. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27848. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27849. \-*) ;;
  27850. *) break;;
  27851. esac
  27852. done
  27853. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27854. }
  27855. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27856. _LT_EOF
  27857. case $host_os in
  27858. aix3*)
  27859. cat <<\_LT_EOF >> "$cfgfile"
  27860. # AIX sometimes has problems with the GCC collect2 program. For some
  27861. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27862. # vanish in a puff of smoke.
  27863. if test set != "${COLLECT_NAMES+set}"; then
  27864. COLLECT_NAMES=
  27865. export COLLECT_NAMES
  27866. fi
  27867. _LT_EOF
  27868. ;;
  27869. esac
  27870. ltmain=$ac_aux_dir/ltmain.sh
  27871. # We use sed instead of cat because bash on DJGPP gets confused if
  27872. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27873. # text mode, it properly converts lines to CR/LF. This bash problem
  27874. # is reportedly fixed, but why not run on old versions too?
  27875. $SED '$q' "$ltmain" >> "$cfgfile" \
  27876. || (rm -f "$cfgfile"; exit 1)
  27877. mv -f "$cfgfile" "$ofile" ||
  27878. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27879. chmod +x "$ofile"
  27880. cat <<_LT_EOF >> "$ofile"
  27881. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27882. # The linker used to build libraries.
  27883. LD=$lt_LD_CXX
  27884. # How to create reloadable object files.
  27885. reload_flag=$lt_reload_flag_CXX
  27886. reload_cmds=$lt_reload_cmds_CXX
  27887. # Commands used to build an old-style archive.
  27888. old_archive_cmds=$lt_old_archive_cmds_CXX
  27889. # A language specific compiler.
  27890. CC=$lt_compiler_CXX
  27891. # Is the compiler the GNU compiler?
  27892. with_gcc=$GCC_CXX
  27893. # Compiler flag to turn off builtin functions.
  27894. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27895. # Additional compiler flags for building library objects.
  27896. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27897. # How to pass a linker flag through the compiler.
  27898. wl=$lt_lt_prog_compiler_wl_CXX
  27899. # Compiler flag to prevent dynamic linking.
  27900. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27901. # Does compiler simultaneously support -c and -o options?
  27902. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27903. # Whether or not to add -lc for building shared libraries.
  27904. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27905. # Whether or not to disallow shared libs when runtime libs are static.
  27906. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27907. # Compiler flag to allow reflexive dlopens.
  27908. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27909. # Compiler flag to generate shared objects directly from archives.
  27910. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27911. # Whether the compiler copes with passing no objects directly.
  27912. compiler_needs_object=$lt_compiler_needs_object_CXX
  27913. # Create an old-style archive from a shared archive.
  27914. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27915. # Create a temporary old-style archive to link instead of a shared archive.
  27916. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27917. # Commands used to build a shared archive.
  27918. archive_cmds=$lt_archive_cmds_CXX
  27919. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27920. # Commands used to build a loadable module if different from building
  27921. # a shared archive.
  27922. module_cmds=$lt_module_cmds_CXX
  27923. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27924. # Whether we are building with GNU ld or not.
  27925. with_gnu_ld=$lt_with_gnu_ld_CXX
  27926. # Flag that allows shared libraries with undefined symbols to be built.
  27927. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27928. # Flag that enforces no undefined symbols.
  27929. no_undefined_flag=$lt_no_undefined_flag_CXX
  27930. # Flag to hardcode \$libdir into a binary during linking.
  27931. # This must work even if \$libdir does not exist
  27932. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27933. # Whether we need a single "-rpath" flag with a separated argument.
  27934. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27935. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27936. # DIR into the resulting binary.
  27937. hardcode_direct=$hardcode_direct_CXX
  27938. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27939. # DIR into the resulting binary and the resulting library dependency is
  27940. # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
  27941. # library is relocated.
  27942. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27943. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27944. # into the resulting binary.
  27945. hardcode_minus_L=$hardcode_minus_L_CXX
  27946. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27947. # into the resulting binary.
  27948. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27949. # Set to "yes" if building a shared library automatically hardcodes DIR
  27950. # into the library and all subsequent libraries and executables linked
  27951. # against it.
  27952. hardcode_automatic=$hardcode_automatic_CXX
  27953. # Set to yes if linker adds runtime paths of dependent libraries
  27954. # to runtime path list.
  27955. inherit_rpath=$inherit_rpath_CXX
  27956. # Whether libtool must link a program against all its dependency libraries.
  27957. link_all_deplibs=$link_all_deplibs_CXX
  27958. # Set to "yes" if exported symbols are required.
  27959. always_export_symbols=$always_export_symbols_CXX
  27960. # The commands to list exported symbols.
  27961. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27962. # Symbols that should not be listed in the preloaded symbols.
  27963. exclude_expsyms=$lt_exclude_expsyms_CXX
  27964. # Symbols that must always be exported.
  27965. include_expsyms=$lt_include_expsyms_CXX
  27966. # Commands necessary for linking programs (against libraries) with templates.
  27967. prelink_cmds=$lt_prelink_cmds_CXX
  27968. # Commands necessary for finishing linking programs.
  27969. postlink_cmds=$lt_postlink_cmds_CXX
  27970. # Specify filename containing input files.
  27971. file_list_spec=$lt_file_list_spec_CXX
  27972. # How to hardcode a shared library path into an executable.
  27973. hardcode_action=$hardcode_action_CXX
  27974. # The directories searched by this compiler when creating a shared library.
  27975. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27976. # Dependencies to place before and after the objects being linked to
  27977. # create a shared library.
  27978. predep_objects=$lt_predep_objects_CXX
  27979. postdep_objects=$lt_postdep_objects_CXX
  27980. predeps=$lt_predeps_CXX
  27981. postdeps=$lt_postdeps_CXX
  27982. # The library search path used internally by the compiler when linking
  27983. # a shared library.
  27984. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27985. # ### END LIBTOOL TAG CONFIG: CXX
  27986. _LT_EOF
  27987. ;;
  27988. esac
  27989. done # for ac_tag
  27990. as_fn_exit 0
  27991. _ACEOF
  27992. ac_clean_files=$ac_clean_files_save
  27993. test $ac_write_fail = 0 ||
  27994. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27995. # configure is writing to config.log, and then calls config.status.
  27996. # config.status does its own redirection, appending to config.log.
  27997. # Unfortunately, on DOS this fails, as config.log is still kept open
  27998. # by configure, so config.status won't be able to write to it; its
  27999. # output is simply discarded. So we exec the FD to /dev/null,
  28000. # effectively closing config.log, so it can be properly (re)opened and
  28001. # appended to by config.status. When coming back to configure, we
  28002. # need to make the FD available again.
  28003. if test "$no_create" != yes; then
  28004. ac_cs_success=:
  28005. ac_config_status_args=
  28006. test "$silent" = yes &&
  28007. ac_config_status_args="$ac_config_status_args --quiet"
  28008. exec 5>/dev/null
  28009. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28010. exec 5>>config.log
  28011. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28012. # would make configure fail if this is the last instruction.
  28013. $ac_cs_success || as_fn_exit 1
  28014. fi
  28015. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28017. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28018. fi
  28019. # Configuration results
  28020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
  28021. ##########################################################################
  28022. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  28023. ##########################################################################
  28024. libpcap: ${foundpcap} (${libpcap_version})
  28025. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  28026. libdnet: ${founddnet} ${libdnet_version}
  28027. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  28028. Use libopts tearoff: ${enable_local_libopts}
  28029. 64bit counter support: ${use64bit_counters}
  28030. tcpdump binary path: ${tcpdump_path}
  28031. fragroute support: ${enable_fragroute}
  28032. tcpbridge support: ${enable_tcpbridge}
  28033. tcpliveplay support: ${enable_tcpliveplay}
  28034. Supported Packet Injection Methods (*):
  28035. Linux TX_RING: ${have_tx_ring}
  28036. Linux PF_PACKET: ${have_pf}
  28037. BSD BPF: ${have_bpf}
  28038. libdnet: ${have_libdnet}
  28039. pcap_inject: ${have_pcap_inject}
  28040. pcap_sendpacket: ${have_pcap_sendpacket} **
  28041. pcap_netmap ${have_pcap_netmap}
  28042. Linux/BSD netmap: ${have_netmap}
  28043. Tuntap device support: ${have_tuntap}
  28044. LIBXDP for AF_XDP socket: ${have_libxdp}
  28045. * In order of preference; see configure --help to override
  28046. ** Required for tcpbridge
  28047. " >&5
  28048. printf "%s\n" "
  28049. ##########################################################################
  28050. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  28051. ##########################################################################
  28052. libpcap: ${foundpcap} (${libpcap_version})
  28053. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  28054. libdnet: ${founddnet} ${libdnet_version}
  28055. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  28056. Use libopts tearoff: ${enable_local_libopts}
  28057. 64bit counter support: ${use64bit_counters}
  28058. tcpdump binary path: ${tcpdump_path}
  28059. fragroute support: ${enable_fragroute}
  28060. tcpbridge support: ${enable_tcpbridge}
  28061. tcpliveplay support: ${enable_tcpliveplay}
  28062. Supported Packet Injection Methods (*):
  28063. Linux TX_RING: ${have_tx_ring}
  28064. Linux PF_PACKET: ${have_pf}
  28065. BSD BPF: ${have_bpf}
  28066. libdnet: ${have_libdnet}
  28067. pcap_inject: ${have_pcap_inject}
  28068. pcap_sendpacket: ${have_pcap_sendpacket} **
  28069. pcap_netmap ${have_pcap_netmap}
  28070. Linux/BSD netmap: ${have_netmap}
  28071. Tuntap device support: ${have_tuntap}
  28072. LIBXDP for AF_XDP socket: ${have_libxdp}
  28073. * In order of preference; see configure --help to override
  28074. ** Required for tcpbridge
  28075. " >&6; }
  28076. case $host in
  28077. *-*-cygwin)
  28078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Windows/Cygwin support is still somewhat experimental.
  28079. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&5
  28080. printf "%s\n" "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  28081. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&2;}
  28082. ;;
  28083. esac