configure 321 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for pcap 1.9.0-PRE-GIT.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME='pcap'
  531. PACKAGE_TARNAME='pcap'
  532. PACKAGE_VERSION='1.9.0-PRE-GIT'
  533. PACKAGE_STRING='pcap 1.9.0-PRE-GIT'
  534. PACKAGE_BUGREPORT=''
  535. PACKAGE_URL=''
  536. ac_unique_file="pcap.c"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='LTLIBOBJS
  573. INSTALL_DATA
  574. INSTALL_SCRIPT
  575. INSTALL_PROGRAM
  576. RDMA_SRC
  577. PCAP_SUPPORT_RDMASNIFF
  578. DBUS_SRC
  579. PCAP_SUPPORT_DBUS
  580. PKGCONFIG
  581. BT_MONITOR_SRC
  582. BT_SRC
  583. PCAP_SUPPORT_BT
  584. NETMAP_SRC
  585. PCAP_SUPPORT_NETMAP
  586. NETFILTER_SRC
  587. PCAP_SUPPORT_NETFILTER
  588. USB_SRC
  589. PCAP_SUPPORT_USB
  590. EXTRA_NETWORK_LIBS
  591. RPCAPD_LIBS
  592. INSTALL_RPCAPD
  593. BUILD_RPCAPD
  594. PTHREAD_LIBS
  595. MAN_ADMIN_COMMANDS
  596. MAN_MISC_INFO
  597. MAN_FILE_FORMATS
  598. DYEXT
  599. SSRC
  600. ADDLARCHIVEOBJS
  601. ADDLOBJS
  602. V_YACC
  603. V_RPATH_OPT
  604. V_SONAME_OPT
  605. V_SHLIB_OPT
  606. V_SHLIB_CMD
  607. V_SHLIB_CCOPT
  608. V_PCAP
  609. V_LEX
  610. V_INCLS
  611. V_FINDALLDEVS
  612. V_DEFS
  613. V_CCOPT
  614. MKDEP
  615. DEPENDENCY_CFLAG
  616. LN_S
  617. AR
  618. RANLIB
  619. YFLAGS
  620. YACC
  621. LEXLIB
  622. LEX_OUTPUT_ROOT
  623. LEX
  624. PCAP_SUPPORT_PACKET_RING
  625. VALGRINDTEST_SRC
  626. LIBOBJS
  627. EGREP
  628. GREP
  629. CPP
  630. OBJEXT
  631. EXEEXT
  632. ac_ct_CC
  633. CPPFLAGS
  634. LDFLAGS
  635. CFLAGS
  636. CC
  637. SHLICC2
  638. target_os
  639. target_vendor
  640. target_cpu
  641. target
  642. host_os
  643. host_vendor
  644. host_cpu
  645. host
  646. build_os
  647. build_vendor
  648. build_cpu
  649. build
  650. target_alias
  651. host_alias
  652. build_alias
  653. LIBS
  654. ECHO_T
  655. ECHO_N
  656. ECHO_C
  657. DEFS
  658. mandir
  659. localedir
  660. libdir
  661. psdir
  662. pdfdir
  663. dvidir
  664. htmldir
  665. infodir
  666. docdir
  667. oldincludedir
  668. includedir
  669. localstatedir
  670. sharedstatedir
  671. sysconfdir
  672. datadir
  673. datarootdir
  674. libexecdir
  675. sbindir
  676. bindir
  677. program_transform_name
  678. prefix
  679. exec_prefix
  680. PACKAGE_URL
  681. PACKAGE_BUGREPORT
  682. PACKAGE_STRING
  683. PACKAGE_VERSION
  684. PACKAGE_TARNAME
  685. PACKAGE_NAME
  686. PATH_SEPARATOR
  687. SHELL'
  688. ac_subst_files=''
  689. ac_user_opts='
  690. enable_option_checking
  691. with_gcc
  692. enable_largefile
  693. enable_protochain
  694. with_sita
  695. with_pcap
  696. with_libnl
  697. enable_packet_ring
  698. enable_ipv6
  699. with_dag
  700. with_dag_includes
  701. with_dag_libraries
  702. with_septel
  703. with_snf
  704. with_snf_includes
  705. with_snf_libraries
  706. with_turbocap
  707. enable_remote
  708. enable_optimizer_dbg
  709. enable_yydebug
  710. enable_universal
  711. enable_shared
  712. enable_usb
  713. enable_netmap
  714. enable_bluetooth
  715. enable_dbus
  716. enable_rdma
  717. '
  718. ac_precious_vars='build_alias
  719. host_alias
  720. target_alias
  721. CC
  722. CFLAGS
  723. LDFLAGS
  724. LIBS
  725. CPPFLAGS
  726. CPP
  727. YACC
  728. YFLAGS'
  729. # Initialize some variables set by options.
  730. ac_init_help=
  731. ac_init_version=false
  732. ac_unrecognized_opts=
  733. ac_unrecognized_sep=
  734. # The variables have the same names as the options, with
  735. # dashes changed to underlines.
  736. cache_file=/dev/null
  737. exec_prefix=NONE
  738. no_create=
  739. no_recursion=
  740. prefix=NONE
  741. program_prefix=NONE
  742. program_suffix=NONE
  743. program_transform_name=s,x,x,
  744. silent=
  745. site=
  746. srcdir=
  747. verbose=
  748. x_includes=NONE
  749. x_libraries=NONE
  750. # Installation directory options.
  751. # These are left unexpanded so users can "make install exec_prefix=/foo"
  752. # and all the variables that are supposed to be based on exec_prefix
  753. # by default will actually change.
  754. # Use braces instead of parens because sh, perl, etc. also accept them.
  755. # (The list follows the same order as the GNU Coding Standards.)
  756. bindir='${exec_prefix}/bin'
  757. sbindir='${exec_prefix}/sbin'
  758. libexecdir='${exec_prefix}/libexec'
  759. datarootdir='${prefix}/share'
  760. datadir='${datarootdir}'
  761. sysconfdir='${prefix}/etc'
  762. sharedstatedir='${prefix}/com'
  763. localstatedir='${prefix}/var'
  764. includedir='${prefix}/include'
  765. oldincludedir='/usr/include'
  766. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  767. infodir='${datarootdir}/info'
  768. htmldir='${docdir}'
  769. dvidir='${docdir}'
  770. pdfdir='${docdir}'
  771. psdir='${docdir}'
  772. libdir='${exec_prefix}/lib'
  773. localedir='${datarootdir}/locale'
  774. mandir='${datarootdir}/man'
  775. ac_prev=
  776. ac_dashdash=
  777. for ac_option
  778. do
  779. # If the previous option needs an argument, assign it.
  780. if test -n "$ac_prev"; then
  781. eval $ac_prev=\$ac_option
  782. ac_prev=
  783. continue
  784. fi
  785. case $ac_option in
  786. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  787. *=) ac_optarg= ;;
  788. *) ac_optarg=yes ;;
  789. esac
  790. # Accept the important Cygnus configure options, so we can diagnose typos.
  791. case $ac_dashdash$ac_option in
  792. --)
  793. ac_dashdash=yes ;;
  794. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  795. ac_prev=bindir ;;
  796. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  797. bindir=$ac_optarg ;;
  798. -build | --build | --buil | --bui | --bu)
  799. ac_prev=build_alias ;;
  800. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  801. build_alias=$ac_optarg ;;
  802. -cache-file | --cache-file | --cache-fil | --cache-fi \
  803. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  804. ac_prev=cache_file ;;
  805. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  806. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  807. cache_file=$ac_optarg ;;
  808. --config-cache | -C)
  809. cache_file=config.cache ;;
  810. -datadir | --datadir | --datadi | --datad)
  811. ac_prev=datadir ;;
  812. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  813. datadir=$ac_optarg ;;
  814. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  815. | --dataroo | --dataro | --datar)
  816. ac_prev=datarootdir ;;
  817. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  818. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  819. datarootdir=$ac_optarg ;;
  820. -disable-* | --disable-*)
  821. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  822. # Reject names that are not valid shell variable names.
  823. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  824. as_fn_error $? "invalid feature name: $ac_useropt"
  825. ac_useropt_orig=$ac_useropt
  826. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  827. case $ac_user_opts in
  828. *"
  829. "enable_$ac_useropt"
  830. "*) ;;
  831. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  832. ac_unrecognized_sep=', ';;
  833. esac
  834. eval enable_$ac_useropt=no ;;
  835. -docdir | --docdir | --docdi | --doc | --do)
  836. ac_prev=docdir ;;
  837. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  838. docdir=$ac_optarg ;;
  839. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  840. ac_prev=dvidir ;;
  841. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  842. dvidir=$ac_optarg ;;
  843. -enable-* | --enable-*)
  844. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  845. # Reject names that are not valid shell variable names.
  846. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  847. as_fn_error $? "invalid feature name: $ac_useropt"
  848. ac_useropt_orig=$ac_useropt
  849. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  850. case $ac_user_opts in
  851. *"
  852. "enable_$ac_useropt"
  853. "*) ;;
  854. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  855. ac_unrecognized_sep=', ';;
  856. esac
  857. eval enable_$ac_useropt=\$ac_optarg ;;
  858. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  859. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  860. | --exec | --exe | --ex)
  861. ac_prev=exec_prefix ;;
  862. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  863. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  864. | --exec=* | --exe=* | --ex=*)
  865. exec_prefix=$ac_optarg ;;
  866. -gas | --gas | --ga | --g)
  867. # Obsolete; use --with-gas.
  868. with_gas=yes ;;
  869. -help | --help | --hel | --he | -h)
  870. ac_init_help=long ;;
  871. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  872. ac_init_help=recursive ;;
  873. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  874. ac_init_help=short ;;
  875. -host | --host | --hos | --ho)
  876. ac_prev=host_alias ;;
  877. -host=* | --host=* | --hos=* | --ho=*)
  878. host_alias=$ac_optarg ;;
  879. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  880. ac_prev=htmldir ;;
  881. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  882. | --ht=*)
  883. htmldir=$ac_optarg ;;
  884. -includedir | --includedir | --includedi | --included | --include \
  885. | --includ | --inclu | --incl | --inc)
  886. ac_prev=includedir ;;
  887. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  888. | --includ=* | --inclu=* | --incl=* | --inc=*)
  889. includedir=$ac_optarg ;;
  890. -infodir | --infodir | --infodi | --infod | --info | --inf)
  891. ac_prev=infodir ;;
  892. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  893. infodir=$ac_optarg ;;
  894. -libdir | --libdir | --libdi | --libd)
  895. ac_prev=libdir ;;
  896. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  897. libdir=$ac_optarg ;;
  898. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  899. | --libexe | --libex | --libe)
  900. ac_prev=libexecdir ;;
  901. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  902. | --libexe=* | --libex=* | --libe=*)
  903. libexecdir=$ac_optarg ;;
  904. -localedir | --localedir | --localedi | --localed | --locale)
  905. ac_prev=localedir ;;
  906. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  907. localedir=$ac_optarg ;;
  908. -localstatedir | --localstatedir | --localstatedi | --localstated \
  909. | --localstate | --localstat | --localsta | --localst | --locals)
  910. ac_prev=localstatedir ;;
  911. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  912. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  913. localstatedir=$ac_optarg ;;
  914. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  915. ac_prev=mandir ;;
  916. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  917. mandir=$ac_optarg ;;
  918. -nfp | --nfp | --nf)
  919. # Obsolete; use --without-fp.
  920. with_fp=no ;;
  921. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  922. | --no-cr | --no-c | -n)
  923. no_create=yes ;;
  924. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  925. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  926. no_recursion=yes ;;
  927. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  928. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  929. | --oldin | --oldi | --old | --ol | --o)
  930. ac_prev=oldincludedir ;;
  931. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  932. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  933. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  934. oldincludedir=$ac_optarg ;;
  935. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  936. ac_prev=prefix ;;
  937. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  938. prefix=$ac_optarg ;;
  939. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  940. | --program-pre | --program-pr | --program-p)
  941. ac_prev=program_prefix ;;
  942. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  943. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  944. program_prefix=$ac_optarg ;;
  945. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  946. | --program-suf | --program-su | --program-s)
  947. ac_prev=program_suffix ;;
  948. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  949. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  950. program_suffix=$ac_optarg ;;
  951. -program-transform-name | --program-transform-name \
  952. | --program-transform-nam | --program-transform-na \
  953. | --program-transform-n | --program-transform- \
  954. | --program-transform | --program-transfor \
  955. | --program-transfo | --program-transf \
  956. | --program-trans | --program-tran \
  957. | --progr-tra | --program-tr | --program-t)
  958. ac_prev=program_transform_name ;;
  959. -program-transform-name=* | --program-transform-name=* \
  960. | --program-transform-nam=* | --program-transform-na=* \
  961. | --program-transform-n=* | --program-transform-=* \
  962. | --program-transform=* | --program-transfor=* \
  963. | --program-transfo=* | --program-transf=* \
  964. | --program-trans=* | --program-tran=* \
  965. | --progr-tra=* | --program-tr=* | --program-t=*)
  966. program_transform_name=$ac_optarg ;;
  967. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  968. ac_prev=pdfdir ;;
  969. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  970. pdfdir=$ac_optarg ;;
  971. -psdir | --psdir | --psdi | --psd | --ps)
  972. ac_prev=psdir ;;
  973. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  974. psdir=$ac_optarg ;;
  975. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  976. | -silent | --silent | --silen | --sile | --sil)
  977. silent=yes ;;
  978. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  979. ac_prev=sbindir ;;
  980. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  981. | --sbi=* | --sb=*)
  982. sbindir=$ac_optarg ;;
  983. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  984. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  985. | --sharedst | --shareds | --shared | --share | --shar \
  986. | --sha | --sh)
  987. ac_prev=sharedstatedir ;;
  988. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  989. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  990. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  991. | --sha=* | --sh=*)
  992. sharedstatedir=$ac_optarg ;;
  993. -site | --site | --sit)
  994. ac_prev=site ;;
  995. -site=* | --site=* | --sit=*)
  996. site=$ac_optarg ;;
  997. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  998. ac_prev=srcdir ;;
  999. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1000. srcdir=$ac_optarg ;;
  1001. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1002. | --syscon | --sysco | --sysc | --sys | --sy)
  1003. ac_prev=sysconfdir ;;
  1004. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1005. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1006. sysconfdir=$ac_optarg ;;
  1007. -target | --target | --targe | --targ | --tar | --ta | --t)
  1008. ac_prev=target_alias ;;
  1009. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1010. target_alias=$ac_optarg ;;
  1011. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1012. verbose=yes ;;
  1013. -version | --version | --versio | --versi | --vers | -V)
  1014. ac_init_version=: ;;
  1015. -with-* | --with-*)
  1016. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1017. # Reject names that are not valid shell variable names.
  1018. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1019. as_fn_error $? "invalid package name: $ac_useropt"
  1020. ac_useropt_orig=$ac_useropt
  1021. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1022. case $ac_user_opts in
  1023. *"
  1024. "with_$ac_useropt"
  1025. "*) ;;
  1026. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1027. ac_unrecognized_sep=', ';;
  1028. esac
  1029. eval with_$ac_useropt=\$ac_optarg ;;
  1030. -without-* | --without-*)
  1031. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1032. # Reject names that are not valid shell variable names.
  1033. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1034. as_fn_error $? "invalid package name: $ac_useropt"
  1035. ac_useropt_orig=$ac_useropt
  1036. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1037. case $ac_user_opts in
  1038. *"
  1039. "with_$ac_useropt"
  1040. "*) ;;
  1041. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1042. ac_unrecognized_sep=', ';;
  1043. esac
  1044. eval with_$ac_useropt=no ;;
  1045. --x)
  1046. # Obsolete; use --with-x.
  1047. with_x=yes ;;
  1048. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1049. | --x-incl | --x-inc | --x-in | --x-i)
  1050. ac_prev=x_includes ;;
  1051. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1052. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1053. x_includes=$ac_optarg ;;
  1054. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1055. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1056. ac_prev=x_libraries ;;
  1057. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1058. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1059. x_libraries=$ac_optarg ;;
  1060. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1061. Try \`$0 --help' for more information"
  1062. ;;
  1063. *=*)
  1064. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1065. # Reject names that are not valid shell variable names.
  1066. case $ac_envvar in #(
  1067. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1068. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1069. esac
  1070. eval $ac_envvar=\$ac_optarg
  1071. export $ac_envvar ;;
  1072. *)
  1073. # FIXME: should be removed in autoconf 3.0.
  1074. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1075. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1076. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1077. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1078. ;;
  1079. esac
  1080. done
  1081. if test -n "$ac_prev"; then
  1082. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1083. as_fn_error $? "missing argument to $ac_option"
  1084. fi
  1085. if test -n "$ac_unrecognized_opts"; then
  1086. case $enable_option_checking in
  1087. no) ;;
  1088. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1089. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1090. esac
  1091. fi
  1092. # Check all directory arguments for consistency.
  1093. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1094. datadir sysconfdir sharedstatedir localstatedir includedir \
  1095. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1096. libdir localedir mandir
  1097. do
  1098. eval ac_val=\$$ac_var
  1099. # Remove trailing slashes.
  1100. case $ac_val in
  1101. */ )
  1102. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1103. eval $ac_var=\$ac_val;;
  1104. esac
  1105. # Be sure to have absolute directory names.
  1106. case $ac_val in
  1107. [\\/$]* | ?:[\\/]* ) continue;;
  1108. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1109. esac
  1110. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1111. done
  1112. # There might be people who depend on the old broken behavior: `$host'
  1113. # used to hold the argument of --host etc.
  1114. # FIXME: To remove some day.
  1115. build=$build_alias
  1116. host=$host_alias
  1117. target=$target_alias
  1118. # FIXME: To remove some day.
  1119. if test "x$host_alias" != x; then
  1120. if test "x$build_alias" = x; then
  1121. cross_compiling=maybe
  1122. elif test "x$build_alias" != "x$host_alias"; then
  1123. cross_compiling=yes
  1124. fi
  1125. fi
  1126. ac_tool_prefix=
  1127. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1128. test "$silent" = yes && exec 6>/dev/null
  1129. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1130. ac_ls_di=`ls -di .` &&
  1131. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1132. as_fn_error $? "working directory cannot be determined"
  1133. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1134. as_fn_error $? "pwd does not report name of working directory"
  1135. # Find the source files, if location was not specified.
  1136. if test -z "$srcdir"; then
  1137. ac_srcdir_defaulted=yes
  1138. # Try the directory containing this script, then the parent directory.
  1139. ac_confdir=`$as_dirname -- "$as_myself" ||
  1140. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1141. X"$as_myself" : 'X\(//\)[^/]' \| \
  1142. X"$as_myself" : 'X\(//\)$' \| \
  1143. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1144. $as_echo X"$as_myself" |
  1145. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1146. s//\1/
  1147. q
  1148. }
  1149. /^X\(\/\/\)[^/].*/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\/\)$/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\).*/{
  1158. s//\1/
  1159. q
  1160. }
  1161. s/.*/./; q'`
  1162. srcdir=$ac_confdir
  1163. if test ! -r "$srcdir/$ac_unique_file"; then
  1164. srcdir=..
  1165. fi
  1166. else
  1167. ac_srcdir_defaulted=no
  1168. fi
  1169. if test ! -r "$srcdir/$ac_unique_file"; then
  1170. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1171. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1172. fi
  1173. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1174. ac_abs_confdir=`(
  1175. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1176. pwd)`
  1177. # When building in place, set srcdir=.
  1178. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1179. srcdir=.
  1180. fi
  1181. # Remove unnecessary trailing slashes from srcdir.
  1182. # Double slashes in file names in object file debugging info
  1183. # mess up M-x gdb in Emacs.
  1184. case $srcdir in
  1185. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1186. esac
  1187. for ac_var in $ac_precious_vars; do
  1188. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1189. eval ac_env_${ac_var}_value=\$${ac_var}
  1190. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1191. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1192. done
  1193. #
  1194. # Report the --help message.
  1195. #
  1196. if test "$ac_init_help" = "long"; then
  1197. # Omit some internal or obsolete options to make the list less imposing.
  1198. # This message is too long to be a string in the A/UX 3.1 sh.
  1199. cat <<_ACEOF
  1200. \`configure' configures pcap 1.9.0-PRE-GIT to adapt to many kinds of systems.
  1201. Usage: $0 [OPTION]... [VAR=VALUE]...
  1202. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1203. VAR=VALUE. See below for descriptions of some of the useful variables.
  1204. Defaults for the options are specified in brackets.
  1205. Configuration:
  1206. -h, --help display this help and exit
  1207. --help=short display options specific to this package
  1208. --help=recursive display the short help of all the included packages
  1209. -V, --version display version information and exit
  1210. -q, --quiet, --silent do not print \`checking ...' messages
  1211. --cache-file=FILE cache test results in FILE [disabled]
  1212. -C, --config-cache alias for \`--cache-file=config.cache'
  1213. -n, --no-create do not create output files
  1214. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1215. Installation directories:
  1216. --prefix=PREFIX install architecture-independent files in PREFIX
  1217. [$ac_default_prefix]
  1218. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1219. [PREFIX]
  1220. By default, \`make install' will install all the files in
  1221. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1222. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1223. for instance \`--prefix=\$HOME'.
  1224. For better control, use the options below.
  1225. Fine tuning of the installation directories:
  1226. --bindir=DIR user executables [EPREFIX/bin]
  1227. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1228. --libexecdir=DIR program executables [EPREFIX/libexec]
  1229. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1230. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1231. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1232. --libdir=DIR object code libraries [EPREFIX/lib]
  1233. --includedir=DIR C header files [PREFIX/include]
  1234. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1235. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1236. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1237. --infodir=DIR info documentation [DATAROOTDIR/info]
  1238. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1239. --mandir=DIR man documentation [DATAROOTDIR/man]
  1240. --docdir=DIR documentation root [DATAROOTDIR/doc/pcap]
  1241. --htmldir=DIR html documentation [DOCDIR]
  1242. --dvidir=DIR dvi documentation [DOCDIR]
  1243. --pdfdir=DIR pdf documentation [DOCDIR]
  1244. --psdir=DIR ps documentation [DOCDIR]
  1245. _ACEOF
  1246. cat <<\_ACEOF
  1247. System types:
  1248. --build=BUILD configure for building on BUILD [guessed]
  1249. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1250. --target=TARGET configure for building compilers for TARGET [HOST]
  1251. _ACEOF
  1252. fi
  1253. if test -n "$ac_init_help"; then
  1254. case $ac_init_help in
  1255. short | recursive ) echo "Configuration of pcap 1.9.0-PRE-GIT:";;
  1256. esac
  1257. cat <<\_ACEOF
  1258. Optional Features:
  1259. --disable-option-checking ignore unrecognized --enable/--with options
  1260. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1261. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1262. --disable-largefile omit support for large files
  1263. --disable-protochain disable \"protochain\" insn
  1264. --enable-packet-ring enable packet ring support on Linux [default=yes]
  1265. --enable-ipv6 build IPv6-capable version [default=yes]
  1266. --enable-remote enable remote packet capture [default=no]
  1267. --disable-remote disable remote packet capture
  1268. --enable-optimizer-dbg build optimizer debugging code
  1269. --enable-yydebug build parser debugging code
  1270. --disable-universal don't build universal on macOS
  1271. --enable-shared build shared libraries [default=yes, if support
  1272. available]
  1273. --enable-usb enable USB capture support [default=yes, if support
  1274. available]
  1275. --enable-netmap enable netmap support [default=yes, if support
  1276. available]
  1277. --enable-bluetooth enable Bluetooth support [default=yes, if support
  1278. available]
  1279. --enable-dbus enable D-Bus capture support [default=yes, if
  1280. support available]
  1281. --enable-rdma enable RDMA capture support [default=yes, if support
  1282. available]
  1283. Optional Packages:
  1284. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1285. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1286. --without-gcc don't use gcc
  1287. --with-sita include SITA support
  1288. --with-pcap=TYPE use packet capture TYPE
  1289. --without-libnl disable libnl support [default=yes, on Linux, if
  1290. present]
  1291. --with-dag[=DIR] include Endace DAG support (located in directory
  1292. DIR, if supplied). [default=yes, if present]
  1293. --with-dag-includes=IDIR
  1294. Endace DAG include directory, if not DIR/include
  1295. --with-dag-libraries=LDIR
  1296. Endace DAG library directory, if not DIR/lib
  1297. --with-septel[=DIR] include Septel support (located in directory DIR, if
  1298. supplied). [default=yes, if present]
  1299. --with-snf[=DIR] include Myricom SNF support (located in directory
  1300. DIR, if supplied). [default=yes, if present]
  1301. --with-snf-includes=IDIR
  1302. Myricom SNF include directory, if not DIR/include
  1303. --with-snf-libraries=LDIR
  1304. Myricom SNF library directory, if not DIR/lib
  1305. --with-turbocap[=DIR] include Riverbed TurboCap support (located in
  1306. directory DIR, if supplied). [default=yes, if
  1307. present]
  1308. Some influential environment variables:
  1309. CC C compiler command
  1310. CFLAGS C compiler flags
  1311. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1312. nonstandard directory <lib dir>
  1313. LIBS libraries to pass to the linker, e.g. -l<library>
  1314. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1315. you have headers in a nonstandard directory <include dir>
  1316. CPP C preprocessor
  1317. YACC The `Yet Another Compiler Compiler' implementation to use.
  1318. Defaults to the first program found out of: `bison -y', `byacc',
  1319. `yacc'.
  1320. YFLAGS The list of arguments that will be passed by default to $YACC.
  1321. This script will default YFLAGS to the empty string to avoid a
  1322. default value of `-d' given by some make applications.
  1323. Use these variables to override the choices made by `configure' or to help
  1324. it to find libraries and programs with nonstandard names/locations.
  1325. Report bugs to the package provider.
  1326. _ACEOF
  1327. ac_status=$?
  1328. fi
  1329. if test "$ac_init_help" = "recursive"; then
  1330. # If there are subdirs, report their specific --help.
  1331. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1332. test -d "$ac_dir" ||
  1333. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1334. continue
  1335. ac_builddir=.
  1336. case "$ac_dir" in
  1337. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1338. *)
  1339. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1340. # A ".." for each directory in $ac_dir_suffix.
  1341. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1342. case $ac_top_builddir_sub in
  1343. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1344. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1345. esac ;;
  1346. esac
  1347. ac_abs_top_builddir=$ac_pwd
  1348. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1349. # for backward compatibility:
  1350. ac_top_builddir=$ac_top_build_prefix
  1351. case $srcdir in
  1352. .) # We are building in place.
  1353. ac_srcdir=.
  1354. ac_top_srcdir=$ac_top_builddir_sub
  1355. ac_abs_top_srcdir=$ac_pwd ;;
  1356. [\\/]* | ?:[\\/]* ) # Absolute name.
  1357. ac_srcdir=$srcdir$ac_dir_suffix;
  1358. ac_top_srcdir=$srcdir
  1359. ac_abs_top_srcdir=$srcdir ;;
  1360. *) # Relative name.
  1361. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1362. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1363. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1364. esac
  1365. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1366. cd "$ac_dir" || { ac_status=$?; continue; }
  1367. # Check for guested configure.
  1368. if test -f "$ac_srcdir/configure.gnu"; then
  1369. echo &&
  1370. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1371. elif test -f "$ac_srcdir/configure"; then
  1372. echo &&
  1373. $SHELL "$ac_srcdir/configure" --help=recursive
  1374. else
  1375. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1376. fi || ac_status=$?
  1377. cd "$ac_pwd" || { ac_status=$?; break; }
  1378. done
  1379. fi
  1380. test -n "$ac_init_help" && exit $ac_status
  1381. if $ac_init_version; then
  1382. cat <<\_ACEOF
  1383. pcap configure 1.9.0-PRE-GIT
  1384. generated by GNU Autoconf 2.69
  1385. Copyright (C) 2012 Free Software Foundation, Inc.
  1386. This configure script is free software; the Free Software Foundation
  1387. gives unlimited permission to copy, distribute and modify it.
  1388. _ACEOF
  1389. exit
  1390. fi
  1391. ## ------------------------ ##
  1392. ## Autoconf initialization. ##
  1393. ## ------------------------ ##
  1394. # ac_fn_c_try_compile LINENO
  1395. # --------------------------
  1396. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1397. ac_fn_c_try_compile ()
  1398. {
  1399. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1400. rm -f conftest.$ac_objext
  1401. if { { ac_try="$ac_compile"
  1402. case "(($ac_try" in
  1403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1404. *) ac_try_echo=$ac_try;;
  1405. esac
  1406. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1407. $as_echo "$ac_try_echo"; } >&5
  1408. (eval "$ac_compile") 2>conftest.err
  1409. ac_status=$?
  1410. if test -s conftest.err; then
  1411. grep -v '^ *+' conftest.err >conftest.er1
  1412. cat conftest.er1 >&5
  1413. mv -f conftest.er1 conftest.err
  1414. fi
  1415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1416. test $ac_status = 0; } && {
  1417. test -z "$ac_c_werror_flag" ||
  1418. test ! -s conftest.err
  1419. } && test -s conftest.$ac_objext; then :
  1420. ac_retval=0
  1421. else
  1422. $as_echo "$as_me: failed program was:" >&5
  1423. sed 's/^/| /' conftest.$ac_ext >&5
  1424. ac_retval=1
  1425. fi
  1426. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1427. as_fn_set_status $ac_retval
  1428. } # ac_fn_c_try_compile
  1429. # ac_fn_c_try_link LINENO
  1430. # -----------------------
  1431. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1432. ac_fn_c_try_link ()
  1433. {
  1434. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1435. rm -f conftest.$ac_objext conftest$ac_exeext
  1436. if { { ac_try="$ac_link"
  1437. case "(($ac_try" in
  1438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1439. *) ac_try_echo=$ac_try;;
  1440. esac
  1441. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1442. $as_echo "$ac_try_echo"; } >&5
  1443. (eval "$ac_link") 2>conftest.err
  1444. ac_status=$?
  1445. if test -s conftest.err; then
  1446. grep -v '^ *+' conftest.err >conftest.er1
  1447. cat conftest.er1 >&5
  1448. mv -f conftest.er1 conftest.err
  1449. fi
  1450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1451. test $ac_status = 0; } && {
  1452. test -z "$ac_c_werror_flag" ||
  1453. test ! -s conftest.err
  1454. } && test -s conftest$ac_exeext && {
  1455. test "$cross_compiling" = yes ||
  1456. test -x conftest$ac_exeext
  1457. }; then :
  1458. ac_retval=0
  1459. else
  1460. $as_echo "$as_me: failed program was:" >&5
  1461. sed 's/^/| /' conftest.$ac_ext >&5
  1462. ac_retval=1
  1463. fi
  1464. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1465. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1466. # interfere with the next link command; also delete a directory that is
  1467. # left behind by Apple's compiler. We do this before executing the actions.
  1468. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1469. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1470. as_fn_set_status $ac_retval
  1471. } # ac_fn_c_try_link
  1472. # ac_fn_c_try_cpp LINENO
  1473. # ----------------------
  1474. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1475. ac_fn_c_try_cpp ()
  1476. {
  1477. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1478. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1479. case "(($ac_try" in
  1480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1481. *) ac_try_echo=$ac_try;;
  1482. esac
  1483. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1484. $as_echo "$ac_try_echo"; } >&5
  1485. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1486. ac_status=$?
  1487. if test -s conftest.err; then
  1488. grep -v '^ *+' conftest.err >conftest.er1
  1489. cat conftest.er1 >&5
  1490. mv -f conftest.er1 conftest.err
  1491. fi
  1492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1493. test $ac_status = 0; } > conftest.i && {
  1494. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1495. test ! -s conftest.err
  1496. }; then :
  1497. ac_retval=0
  1498. else
  1499. $as_echo "$as_me: failed program was:" >&5
  1500. sed 's/^/| /' conftest.$ac_ext >&5
  1501. ac_retval=1
  1502. fi
  1503. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1504. as_fn_set_status $ac_retval
  1505. } # ac_fn_c_try_cpp
  1506. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1507. # -------------------------------------------------------
  1508. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1509. # the include files in INCLUDES and setting the cache variable VAR
  1510. # accordingly.
  1511. ac_fn_c_check_header_mongrel ()
  1512. {
  1513. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1514. if eval \${$3+:} false; then :
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1516. $as_echo_n "checking for $2... " >&6; }
  1517. if eval \${$3+:} false; then :
  1518. $as_echo_n "(cached) " >&6
  1519. fi
  1520. eval ac_res=\$$3
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1522. $as_echo "$ac_res" >&6; }
  1523. else
  1524. # Is the header compilable?
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1526. $as_echo_n "checking $2 usability... " >&6; }
  1527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1528. /* end confdefs.h. */
  1529. $4
  1530. #include <$2>
  1531. _ACEOF
  1532. if ac_fn_c_try_compile "$LINENO"; then :
  1533. ac_header_compiler=yes
  1534. else
  1535. ac_header_compiler=no
  1536. fi
  1537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1539. $as_echo "$ac_header_compiler" >&6; }
  1540. # Is the header present?
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1542. $as_echo_n "checking $2 presence... " >&6; }
  1543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1544. /* end confdefs.h. */
  1545. #include <$2>
  1546. _ACEOF
  1547. if ac_fn_c_try_cpp "$LINENO"; then :
  1548. ac_header_preproc=yes
  1549. else
  1550. ac_header_preproc=no
  1551. fi
  1552. rm -f conftest.err conftest.i conftest.$ac_ext
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1554. $as_echo "$ac_header_preproc" >&6; }
  1555. # So? What about this header?
  1556. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1557. yes:no: )
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1559. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1561. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1562. ;;
  1563. no:yes:* )
  1564. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1565. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1567. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1569. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1571. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1573. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1574. ;;
  1575. esac
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1577. $as_echo_n "checking for $2... " >&6; }
  1578. if eval \${$3+:} false; then :
  1579. $as_echo_n "(cached) " >&6
  1580. else
  1581. eval "$3=\$ac_header_compiler"
  1582. fi
  1583. eval ac_res=\$$3
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1585. $as_echo "$ac_res" >&6; }
  1586. fi
  1587. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1588. } # ac_fn_c_check_header_mongrel
  1589. # ac_fn_c_try_run LINENO
  1590. # ----------------------
  1591. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1592. # that executables *can* be run.
  1593. ac_fn_c_try_run ()
  1594. {
  1595. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1596. if { { ac_try="$ac_link"
  1597. case "(($ac_try" in
  1598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1599. *) ac_try_echo=$ac_try;;
  1600. esac
  1601. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1602. $as_echo "$ac_try_echo"; } >&5
  1603. (eval "$ac_link") 2>&5
  1604. ac_status=$?
  1605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1606. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1607. { { case "(($ac_try" in
  1608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1609. *) ac_try_echo=$ac_try;;
  1610. esac
  1611. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1612. $as_echo "$ac_try_echo"; } >&5
  1613. (eval "$ac_try") 2>&5
  1614. ac_status=$?
  1615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1616. test $ac_status = 0; }; }; then :
  1617. ac_retval=0
  1618. else
  1619. $as_echo "$as_me: program exited with status $ac_status" >&5
  1620. $as_echo "$as_me: failed program was:" >&5
  1621. sed 's/^/| /' conftest.$ac_ext >&5
  1622. ac_retval=$ac_status
  1623. fi
  1624. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1625. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1626. as_fn_set_status $ac_retval
  1627. } # ac_fn_c_try_run
  1628. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1629. # -------------------------------------------------------
  1630. # Tests whether HEADER exists and can be compiled using the include files in
  1631. # INCLUDES, setting the cache variable VAR accordingly.
  1632. ac_fn_c_check_header_compile ()
  1633. {
  1634. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1636. $as_echo_n "checking for $2... " >&6; }
  1637. if eval \${$3+:} false; then :
  1638. $as_echo_n "(cached) " >&6
  1639. else
  1640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1641. /* end confdefs.h. */
  1642. $4
  1643. #include <$2>
  1644. _ACEOF
  1645. if ac_fn_c_try_compile "$LINENO"; then :
  1646. eval "$3=yes"
  1647. else
  1648. eval "$3=no"
  1649. fi
  1650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1651. fi
  1652. eval ac_res=\$$3
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1654. $as_echo "$ac_res" >&6; }
  1655. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1656. } # ac_fn_c_check_header_compile
  1657. # ac_fn_c_check_func LINENO FUNC VAR
  1658. # ----------------------------------
  1659. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1660. ac_fn_c_check_func ()
  1661. {
  1662. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1664. $as_echo_n "checking for $2... " >&6; }
  1665. if eval \${$3+:} false; then :
  1666. $as_echo_n "(cached) " >&6
  1667. else
  1668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1669. /* end confdefs.h. */
  1670. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1671. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1672. #define $2 innocuous_$2
  1673. /* System header to define __stub macros and hopefully few prototypes,
  1674. which can conflict with char $2 (); below.
  1675. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1676. <limits.h> exists even on freestanding compilers. */
  1677. #ifdef __STDC__
  1678. # include <limits.h>
  1679. #else
  1680. # include <assert.h>
  1681. #endif
  1682. #undef $2
  1683. /* Override any GCC internal prototype to avoid an error.
  1684. Use char because int might match the return type of a GCC
  1685. builtin and then its argument prototype would still apply. */
  1686. #ifdef __cplusplus
  1687. extern "C"
  1688. #endif
  1689. char $2 ();
  1690. /* The GNU C library defines this for functions which it implements
  1691. to always fail with ENOSYS. Some functions are actually named
  1692. something starting with __ and the normal name is an alias. */
  1693. #if defined __stub_$2 || defined __stub___$2
  1694. choke me
  1695. #endif
  1696. int
  1697. main ()
  1698. {
  1699. return $2 ();
  1700. ;
  1701. return 0;
  1702. }
  1703. _ACEOF
  1704. if ac_fn_c_try_link "$LINENO"; then :
  1705. eval "$3=yes"
  1706. else
  1707. eval "$3=no"
  1708. fi
  1709. rm -f core conftest.err conftest.$ac_objext \
  1710. conftest$ac_exeext conftest.$ac_ext
  1711. fi
  1712. eval ac_res=\$$3
  1713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1714. $as_echo "$ac_res" >&6; }
  1715. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1716. } # ac_fn_c_check_func
  1717. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1718. # ---------------------------------------------
  1719. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1720. # accordingly.
  1721. ac_fn_c_check_decl ()
  1722. {
  1723. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1724. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1725. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1727. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1728. if eval \${$3+:} false; then :
  1729. $as_echo_n "(cached) " >&6
  1730. else
  1731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1732. /* end confdefs.h. */
  1733. $4
  1734. int
  1735. main ()
  1736. {
  1737. #ifndef $as_decl_name
  1738. #ifdef __cplusplus
  1739. (void) $as_decl_use;
  1740. #else
  1741. (void) $as_decl_name;
  1742. #endif
  1743. #endif
  1744. ;
  1745. return 0;
  1746. }
  1747. _ACEOF
  1748. if ac_fn_c_try_compile "$LINENO"; then :
  1749. eval "$3=yes"
  1750. else
  1751. eval "$3=no"
  1752. fi
  1753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1754. fi
  1755. eval ac_res=\$$3
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1757. $as_echo "$ac_res" >&6; }
  1758. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1759. } # ac_fn_c_check_decl
  1760. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1761. # -------------------------------------------
  1762. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1763. # variable VAR accordingly.
  1764. ac_fn_c_check_type ()
  1765. {
  1766. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1768. $as_echo_n "checking for $2... " >&6; }
  1769. if eval \${$3+:} false; then :
  1770. $as_echo_n "(cached) " >&6
  1771. else
  1772. eval "$3=no"
  1773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1774. /* end confdefs.h. */
  1775. $4
  1776. int
  1777. main ()
  1778. {
  1779. if (sizeof ($2))
  1780. return 0;
  1781. ;
  1782. return 0;
  1783. }
  1784. _ACEOF
  1785. if ac_fn_c_try_compile "$LINENO"; then :
  1786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1787. /* end confdefs.h. */
  1788. $4
  1789. int
  1790. main ()
  1791. {
  1792. if (sizeof (($2)))
  1793. return 0;
  1794. ;
  1795. return 0;
  1796. }
  1797. _ACEOF
  1798. if ac_fn_c_try_compile "$LINENO"; then :
  1799. else
  1800. eval "$3=yes"
  1801. fi
  1802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1803. fi
  1804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1805. fi
  1806. eval ac_res=\$$3
  1807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1808. $as_echo "$ac_res" >&6; }
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. } # ac_fn_c_check_type
  1811. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1812. # ----------------------------------------------------
  1813. # Tries to find if the field MEMBER exists in type AGGR, after including
  1814. # INCLUDES, setting cache variable VAR accordingly.
  1815. ac_fn_c_check_member ()
  1816. {
  1817. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1819. $as_echo_n "checking for $2.$3... " >&6; }
  1820. if eval \${$4+:} false; then :
  1821. $as_echo_n "(cached) " >&6
  1822. else
  1823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1824. /* end confdefs.h. */
  1825. $5
  1826. int
  1827. main ()
  1828. {
  1829. static $2 ac_aggr;
  1830. if (ac_aggr.$3)
  1831. return 0;
  1832. ;
  1833. return 0;
  1834. }
  1835. _ACEOF
  1836. if ac_fn_c_try_compile "$LINENO"; then :
  1837. eval "$4=yes"
  1838. else
  1839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1840. /* end confdefs.h. */
  1841. $5
  1842. int
  1843. main ()
  1844. {
  1845. static $2 ac_aggr;
  1846. if (sizeof ac_aggr.$3)
  1847. return 0;
  1848. ;
  1849. return 0;
  1850. }
  1851. _ACEOF
  1852. if ac_fn_c_try_compile "$LINENO"; then :
  1853. eval "$4=yes"
  1854. else
  1855. eval "$4=no"
  1856. fi
  1857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1858. fi
  1859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1860. fi
  1861. eval ac_res=\$$4
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1863. $as_echo "$ac_res" >&6; }
  1864. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1865. } # ac_fn_c_check_member
  1866. cat >config.log <<_ACEOF
  1867. This file contains any messages produced by compilers while
  1868. running configure, to aid debugging if configure makes a mistake.
  1869. It was created by pcap $as_me 1.9.0-PRE-GIT, which was
  1870. generated by GNU Autoconf 2.69. Invocation command line was
  1871. $ $0 $@
  1872. _ACEOF
  1873. exec 5>>config.log
  1874. {
  1875. cat <<_ASUNAME
  1876. ## --------- ##
  1877. ## Platform. ##
  1878. ## --------- ##
  1879. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1880. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1881. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1882. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1883. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1884. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1885. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1886. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1887. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1888. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1889. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1890. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1891. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1892. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1893. _ASUNAME
  1894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1895. for as_dir in $PATH
  1896. do
  1897. IFS=$as_save_IFS
  1898. test -z "$as_dir" && as_dir=.
  1899. $as_echo "PATH: $as_dir"
  1900. done
  1901. IFS=$as_save_IFS
  1902. } >&5
  1903. cat >&5 <<_ACEOF
  1904. ## ----------- ##
  1905. ## Core tests. ##
  1906. ## ----------- ##
  1907. _ACEOF
  1908. # Keep a trace of the command line.
  1909. # Strip out --no-create and --no-recursion so they do not pile up.
  1910. # Strip out --silent because we don't want to record it for future runs.
  1911. # Also quote any args containing shell meta-characters.
  1912. # Make two passes to allow for proper duplicate-argument suppression.
  1913. ac_configure_args=
  1914. ac_configure_args0=
  1915. ac_configure_args1=
  1916. ac_must_keep_next=false
  1917. for ac_pass in 1 2
  1918. do
  1919. for ac_arg
  1920. do
  1921. case $ac_arg in
  1922. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1923. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1924. | -silent | --silent | --silen | --sile | --sil)
  1925. continue ;;
  1926. *\'*)
  1927. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1928. esac
  1929. case $ac_pass in
  1930. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1931. 2)
  1932. as_fn_append ac_configure_args1 " '$ac_arg'"
  1933. if test $ac_must_keep_next = true; then
  1934. ac_must_keep_next=false # Got value, back to normal.
  1935. else
  1936. case $ac_arg in
  1937. *=* | --config-cache | -C | -disable-* | --disable-* \
  1938. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1939. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1940. | -with-* | --with-* | -without-* | --without-* | --x)
  1941. case "$ac_configure_args0 " in
  1942. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1943. esac
  1944. ;;
  1945. -* ) ac_must_keep_next=true ;;
  1946. esac
  1947. fi
  1948. as_fn_append ac_configure_args " '$ac_arg'"
  1949. ;;
  1950. esac
  1951. done
  1952. done
  1953. { ac_configure_args0=; unset ac_configure_args0;}
  1954. { ac_configure_args1=; unset ac_configure_args1;}
  1955. # When interrupted or exit'd, cleanup temporary files, and complete
  1956. # config.log. We remove comments because anyway the quotes in there
  1957. # would cause problems or look ugly.
  1958. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1959. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1960. trap 'exit_status=$?
  1961. # Save into config.log some information that might help in debugging.
  1962. {
  1963. echo
  1964. $as_echo "## ---------------- ##
  1965. ## Cache variables. ##
  1966. ## ---------------- ##"
  1967. echo
  1968. # The following way of writing the cache mishandles newlines in values,
  1969. (
  1970. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1971. eval ac_val=\$$ac_var
  1972. case $ac_val in #(
  1973. *${as_nl}*)
  1974. case $ac_var in #(
  1975. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1976. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1977. esac
  1978. case $ac_var in #(
  1979. _ | IFS | as_nl) ;; #(
  1980. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1981. *) { eval $ac_var=; unset $ac_var;} ;;
  1982. esac ;;
  1983. esac
  1984. done
  1985. (set) 2>&1 |
  1986. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1987. *${as_nl}ac_space=\ *)
  1988. sed -n \
  1989. "s/'\''/'\''\\\\'\'''\''/g;
  1990. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1991. ;; #(
  1992. *)
  1993. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1994. ;;
  1995. esac |
  1996. sort
  1997. )
  1998. echo
  1999. $as_echo "## ----------------- ##
  2000. ## Output variables. ##
  2001. ## ----------------- ##"
  2002. echo
  2003. for ac_var in $ac_subst_vars
  2004. do
  2005. eval ac_val=\$$ac_var
  2006. case $ac_val in
  2007. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2008. esac
  2009. $as_echo "$ac_var='\''$ac_val'\''"
  2010. done | sort
  2011. echo
  2012. if test -n "$ac_subst_files"; then
  2013. $as_echo "## ------------------- ##
  2014. ## File substitutions. ##
  2015. ## ------------------- ##"
  2016. echo
  2017. for ac_var in $ac_subst_files
  2018. do
  2019. eval ac_val=\$$ac_var
  2020. case $ac_val in
  2021. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2022. esac
  2023. $as_echo "$ac_var='\''$ac_val'\''"
  2024. done | sort
  2025. echo
  2026. fi
  2027. if test -s confdefs.h; then
  2028. $as_echo "## ----------- ##
  2029. ## confdefs.h. ##
  2030. ## ----------- ##"
  2031. echo
  2032. cat confdefs.h
  2033. echo
  2034. fi
  2035. test "$ac_signal" != 0 &&
  2036. $as_echo "$as_me: caught signal $ac_signal"
  2037. $as_echo "$as_me: exit $exit_status"
  2038. } >&5
  2039. rm -f core *.core core.conftest.* &&
  2040. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2041. exit $exit_status
  2042. ' 0
  2043. for ac_signal in 1 2 13 15; do
  2044. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2045. done
  2046. ac_signal=0
  2047. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2048. rm -f -r conftest* confdefs.h
  2049. $as_echo "/* confdefs.h */" > confdefs.h
  2050. # Predefined preprocessor variables.
  2051. cat >>confdefs.h <<_ACEOF
  2052. #define PACKAGE_NAME "$PACKAGE_NAME"
  2053. _ACEOF
  2054. cat >>confdefs.h <<_ACEOF
  2055. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2056. _ACEOF
  2057. cat >>confdefs.h <<_ACEOF
  2058. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2059. _ACEOF
  2060. cat >>confdefs.h <<_ACEOF
  2061. #define PACKAGE_STRING "$PACKAGE_STRING"
  2062. _ACEOF
  2063. cat >>confdefs.h <<_ACEOF
  2064. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2065. _ACEOF
  2066. cat >>confdefs.h <<_ACEOF
  2067. #define PACKAGE_URL "$PACKAGE_URL"
  2068. _ACEOF
  2069. # Let the site file select an alternate cache file if it wants to.
  2070. # Prefer an explicitly selected file to automatically selected ones.
  2071. ac_site_file1=NONE
  2072. ac_site_file2=NONE
  2073. if test -n "$CONFIG_SITE"; then
  2074. # We do not want a PATH search for config.site.
  2075. case $CONFIG_SITE in #((
  2076. -*) ac_site_file1=./$CONFIG_SITE;;
  2077. */*) ac_site_file1=$CONFIG_SITE;;
  2078. *) ac_site_file1=./$CONFIG_SITE;;
  2079. esac
  2080. elif test "x$prefix" != xNONE; then
  2081. ac_site_file1=$prefix/share/config.site
  2082. ac_site_file2=$prefix/etc/config.site
  2083. else
  2084. ac_site_file1=$ac_default_prefix/share/config.site
  2085. ac_site_file2=$ac_default_prefix/etc/config.site
  2086. fi
  2087. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2088. do
  2089. test "x$ac_site_file" = xNONE && continue
  2090. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2092. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2093. sed 's/^/| /' "$ac_site_file" >&5
  2094. . "$ac_site_file" \
  2095. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2096. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2097. as_fn_error $? "failed to load site script $ac_site_file
  2098. See \`config.log' for more details" "$LINENO" 5; }
  2099. fi
  2100. done
  2101. if test -r "$cache_file"; then
  2102. # Some versions of bash will fail to source /dev/null (special files
  2103. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2104. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2106. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2107. case $cache_file in
  2108. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2109. *) . "./$cache_file";;
  2110. esac
  2111. fi
  2112. else
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2114. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2115. >$cache_file
  2116. fi
  2117. # Check that the precious variables saved in the cache have kept the same
  2118. # value.
  2119. ac_cache_corrupted=false
  2120. for ac_var in $ac_precious_vars; do
  2121. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2122. eval ac_new_set=\$ac_env_${ac_var}_set
  2123. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2124. eval ac_new_val=\$ac_env_${ac_var}_value
  2125. case $ac_old_set,$ac_new_set in
  2126. set,)
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2128. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2129. ac_cache_corrupted=: ;;
  2130. ,set)
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2132. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2133. ac_cache_corrupted=: ;;
  2134. ,);;
  2135. *)
  2136. if test "x$ac_old_val" != "x$ac_new_val"; then
  2137. # differences in whitespace do not lead to failure.
  2138. ac_old_val_w=`echo x $ac_old_val`
  2139. ac_new_val_w=`echo x $ac_new_val`
  2140. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2142. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2143. ac_cache_corrupted=:
  2144. else
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2146. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2147. eval $ac_var=\$ac_old_val
  2148. fi
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2150. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2152. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2153. fi;;
  2154. esac
  2155. # Pass precious variables to config.status.
  2156. if test "$ac_new_set" = set; then
  2157. case $ac_new_val in
  2158. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2159. *) ac_arg=$ac_var=$ac_new_val ;;
  2160. esac
  2161. case " $ac_configure_args " in
  2162. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2163. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2164. esac
  2165. fi
  2166. done
  2167. if $ac_cache_corrupted; then
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2169. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2171. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2172. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2173. fi
  2174. ## -------------------- ##
  2175. ## Main body of script. ##
  2176. ## -------------------- ##
  2177. ac_ext=c
  2178. ac_cpp='$CPP $CPPFLAGS'
  2179. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2180. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2181. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2182. ac_aux_dir=
  2183. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2184. if test -f "$ac_dir/install-sh"; then
  2185. ac_aux_dir=$ac_dir
  2186. ac_install_sh="$ac_aux_dir/install-sh -c"
  2187. break
  2188. elif test -f "$ac_dir/install.sh"; then
  2189. ac_aux_dir=$ac_dir
  2190. ac_install_sh="$ac_aux_dir/install.sh -c"
  2191. break
  2192. elif test -f "$ac_dir/shtool"; then
  2193. ac_aux_dir=$ac_dir
  2194. ac_install_sh="$ac_aux_dir/shtool install -c"
  2195. break
  2196. fi
  2197. done
  2198. if test -z "$ac_aux_dir"; then
  2199. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2200. fi
  2201. # These three variables are undocumented and unsupported,
  2202. # and are intended to be withdrawn in a future Autoconf release.
  2203. # They can cause serious problems if a builder's source tree is in a directory
  2204. # whose full name contains unusual characters.
  2205. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2206. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2207. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2208. # Make sure we can run config.sub.
  2209. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2210. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2212. $as_echo_n "checking build system type... " >&6; }
  2213. if ${ac_cv_build+:} false; then :
  2214. $as_echo_n "(cached) " >&6
  2215. else
  2216. ac_build_alias=$build_alias
  2217. test "x$ac_build_alias" = x &&
  2218. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2219. test "x$ac_build_alias" = x &&
  2220. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2221. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2222. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2223. fi
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2225. $as_echo "$ac_cv_build" >&6; }
  2226. case $ac_cv_build in
  2227. *-*-*) ;;
  2228. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2229. esac
  2230. build=$ac_cv_build
  2231. ac_save_IFS=$IFS; IFS='-'
  2232. set x $ac_cv_build
  2233. shift
  2234. build_cpu=$1
  2235. build_vendor=$2
  2236. shift; shift
  2237. # Remember, the first character of IFS is used to create $*,
  2238. # except with old shells:
  2239. build_os=$*
  2240. IFS=$ac_save_IFS
  2241. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2243. $as_echo_n "checking host system type... " >&6; }
  2244. if ${ac_cv_host+:} false; then :
  2245. $as_echo_n "(cached) " >&6
  2246. else
  2247. if test "x$host_alias" = x; then
  2248. ac_cv_host=$ac_cv_build
  2249. else
  2250. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2251. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2252. fi
  2253. fi
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2255. $as_echo "$ac_cv_host" >&6; }
  2256. case $ac_cv_host in
  2257. *-*-*) ;;
  2258. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2259. esac
  2260. host=$ac_cv_host
  2261. ac_save_IFS=$IFS; IFS='-'
  2262. set x $ac_cv_host
  2263. shift
  2264. host_cpu=$1
  2265. host_vendor=$2
  2266. shift; shift
  2267. # Remember, the first character of IFS is used to create $*,
  2268. # except with old shells:
  2269. host_os=$*
  2270. IFS=$ac_save_IFS
  2271. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2273. $as_echo_n "checking target system type... " >&6; }
  2274. if ${ac_cv_target+:} false; then :
  2275. $as_echo_n "(cached) " >&6
  2276. else
  2277. if test "x$target_alias" = x; then
  2278. ac_cv_target=$ac_cv_host
  2279. else
  2280. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2281. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2282. fi
  2283. fi
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2285. $as_echo "$ac_cv_target" >&6; }
  2286. case $ac_cv_target in
  2287. *-*-*) ;;
  2288. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2289. esac
  2290. target=$ac_cv_target
  2291. ac_save_IFS=$IFS; IFS='-'
  2292. set x $ac_cv_target
  2293. shift
  2294. target_cpu=$1
  2295. target_vendor=$2
  2296. shift; shift
  2297. # Remember, the first character of IFS is used to create $*,
  2298. # except with old shells:
  2299. target_os=$*
  2300. IFS=$ac_save_IFS
  2301. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2302. # The aliases save the names the user supplied, while $host etc.
  2303. # will get canonicalized.
  2304. test -n "$target_alias" &&
  2305. test "$program_prefix$program_suffix$program_transform_name" = \
  2306. NONENONEs,x,x, &&
  2307. program_prefix=${target_alias}-
  2308. # Check whether --with-gcc was given.
  2309. if test "${with_gcc+set}" = set; then :
  2310. withval=$with_gcc;
  2311. fi
  2312. V_CCOPT=""
  2313. if test "${srcdir}" != "." ; then
  2314. V_CCOPT="-I\$(srcdir)"
  2315. fi
  2316. if test "${CFLAGS+set}" = set; then
  2317. LBL_CFLAGS="$CFLAGS"
  2318. fi
  2319. if test -z "$CC" ; then
  2320. case "$host_os" in
  2321. bsdi*)
  2322. # Extract the first word of "shlicc2", so it can be a program name with args.
  2323. set dummy shlicc2; ac_word=$2
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2325. $as_echo_n "checking for $ac_word... " >&6; }
  2326. if ${ac_cv_prog_SHLICC2+:} false; then :
  2327. $as_echo_n "(cached) " >&6
  2328. else
  2329. if test -n "$SHLICC2"; then
  2330. ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
  2331. else
  2332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2333. for as_dir in $PATH
  2334. do
  2335. IFS=$as_save_IFS
  2336. test -z "$as_dir" && as_dir=.
  2337. for ac_exec_ext in '' $ac_executable_extensions; do
  2338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2339. ac_cv_prog_SHLICC2="yes"
  2340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2341. break 2
  2342. fi
  2343. done
  2344. done
  2345. IFS=$as_save_IFS
  2346. test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
  2347. fi
  2348. fi
  2349. SHLICC2=$ac_cv_prog_SHLICC2
  2350. if test -n "$SHLICC2"; then
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
  2352. $as_echo "$SHLICC2" >&6; }
  2353. else
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2355. $as_echo "no" >&6; }
  2356. fi
  2357. if test $SHLICC2 = yes ; then
  2358. CC=shlicc2
  2359. export CC
  2360. fi
  2361. ;;
  2362. esac
  2363. fi
  2364. if test -z "$CC" -a "$with_gcc" = no ; then
  2365. CC=cc
  2366. export CC
  2367. fi
  2368. #
  2369. # Try to enable as many C99 features as we can.
  2370. # At minimum, we want C++/C99-style // comments.
  2371. #
  2372. ac_ext=c
  2373. ac_cpp='$CPP $CPPFLAGS'
  2374. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2375. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2376. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2377. if test -n "$ac_tool_prefix"; then
  2378. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2379. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2381. $as_echo_n "checking for $ac_word... " >&6; }
  2382. if ${ac_cv_prog_CC+:} false; then :
  2383. $as_echo_n "(cached) " >&6
  2384. else
  2385. if test -n "$CC"; then
  2386. ac_cv_prog_CC="$CC" # Let the user override the test.
  2387. else
  2388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2389. for as_dir in $PATH
  2390. do
  2391. IFS=$as_save_IFS
  2392. test -z "$as_dir" && as_dir=.
  2393. for ac_exec_ext in '' $ac_executable_extensions; do
  2394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2395. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2397. break 2
  2398. fi
  2399. done
  2400. done
  2401. IFS=$as_save_IFS
  2402. fi
  2403. fi
  2404. CC=$ac_cv_prog_CC
  2405. if test -n "$CC"; then
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2407. $as_echo "$CC" >&6; }
  2408. else
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2410. $as_echo "no" >&6; }
  2411. fi
  2412. fi
  2413. if test -z "$ac_cv_prog_CC"; then
  2414. ac_ct_CC=$CC
  2415. # Extract the first word of "gcc", so it can be a program name with args.
  2416. set dummy gcc; ac_word=$2
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2418. $as_echo_n "checking for $ac_word... " >&6; }
  2419. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2420. $as_echo_n "(cached) " >&6
  2421. else
  2422. if test -n "$ac_ct_CC"; then
  2423. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2424. else
  2425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2426. for as_dir in $PATH
  2427. do
  2428. IFS=$as_save_IFS
  2429. test -z "$as_dir" && as_dir=.
  2430. for ac_exec_ext in '' $ac_executable_extensions; do
  2431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2432. ac_cv_prog_ac_ct_CC="gcc"
  2433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2434. break 2
  2435. fi
  2436. done
  2437. done
  2438. IFS=$as_save_IFS
  2439. fi
  2440. fi
  2441. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2442. if test -n "$ac_ct_CC"; then
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2444. $as_echo "$ac_ct_CC" >&6; }
  2445. else
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2447. $as_echo "no" >&6; }
  2448. fi
  2449. if test "x$ac_ct_CC" = x; then
  2450. CC=""
  2451. else
  2452. case $cross_compiling:$ac_tool_warned in
  2453. yes:)
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2456. ac_tool_warned=yes ;;
  2457. esac
  2458. CC=$ac_ct_CC
  2459. fi
  2460. else
  2461. CC="$ac_cv_prog_CC"
  2462. fi
  2463. if test -z "$CC"; then
  2464. if test -n "$ac_tool_prefix"; then
  2465. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2466. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2468. $as_echo_n "checking for $ac_word... " >&6; }
  2469. if ${ac_cv_prog_CC+:} false; then :
  2470. $as_echo_n "(cached) " >&6
  2471. else
  2472. if test -n "$CC"; then
  2473. ac_cv_prog_CC="$CC" # Let the user override the test.
  2474. else
  2475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2476. for as_dir in $PATH
  2477. do
  2478. IFS=$as_save_IFS
  2479. test -z "$as_dir" && as_dir=.
  2480. for ac_exec_ext in '' $ac_executable_extensions; do
  2481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2482. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2484. break 2
  2485. fi
  2486. done
  2487. done
  2488. IFS=$as_save_IFS
  2489. fi
  2490. fi
  2491. CC=$ac_cv_prog_CC
  2492. if test -n "$CC"; then
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2494. $as_echo "$CC" >&6; }
  2495. else
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2497. $as_echo "no" >&6; }
  2498. fi
  2499. fi
  2500. fi
  2501. if test -z "$CC"; then
  2502. # Extract the first word of "cc", so it can be a program name with args.
  2503. set dummy cc; ac_word=$2
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2505. $as_echo_n "checking for $ac_word... " >&6; }
  2506. if ${ac_cv_prog_CC+:} false; then :
  2507. $as_echo_n "(cached) " >&6
  2508. else
  2509. if test -n "$CC"; then
  2510. ac_cv_prog_CC="$CC" # Let the user override the test.
  2511. else
  2512. ac_prog_rejected=no
  2513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2514. for as_dir in $PATH
  2515. do
  2516. IFS=$as_save_IFS
  2517. test -z "$as_dir" && as_dir=.
  2518. for ac_exec_ext in '' $ac_executable_extensions; do
  2519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2520. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2521. ac_prog_rejected=yes
  2522. continue
  2523. fi
  2524. ac_cv_prog_CC="cc"
  2525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2526. break 2
  2527. fi
  2528. done
  2529. done
  2530. IFS=$as_save_IFS
  2531. if test $ac_prog_rejected = yes; then
  2532. # We found a bogon in the path, so make sure we never use it.
  2533. set dummy $ac_cv_prog_CC
  2534. shift
  2535. if test $# != 0; then
  2536. # We chose a different compiler from the bogus one.
  2537. # However, it has the same basename, so the bogon will be chosen
  2538. # first if we set CC to just the basename; use the full file name.
  2539. shift
  2540. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2541. fi
  2542. fi
  2543. fi
  2544. fi
  2545. CC=$ac_cv_prog_CC
  2546. if test -n "$CC"; then
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2548. $as_echo "$CC" >&6; }
  2549. else
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2551. $as_echo "no" >&6; }
  2552. fi
  2553. fi
  2554. if test -z "$CC"; then
  2555. if test -n "$ac_tool_prefix"; then
  2556. for ac_prog in cl.exe
  2557. do
  2558. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2559. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2561. $as_echo_n "checking for $ac_word... " >&6; }
  2562. if ${ac_cv_prog_CC+:} false; then :
  2563. $as_echo_n "(cached) " >&6
  2564. else
  2565. if test -n "$CC"; then
  2566. ac_cv_prog_CC="$CC" # Let the user override the test.
  2567. else
  2568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2569. for as_dir in $PATH
  2570. do
  2571. IFS=$as_save_IFS
  2572. test -z "$as_dir" && as_dir=.
  2573. for ac_exec_ext in '' $ac_executable_extensions; do
  2574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2575. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2577. break 2
  2578. fi
  2579. done
  2580. done
  2581. IFS=$as_save_IFS
  2582. fi
  2583. fi
  2584. CC=$ac_cv_prog_CC
  2585. if test -n "$CC"; then
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2587. $as_echo "$CC" >&6; }
  2588. else
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2590. $as_echo "no" >&6; }
  2591. fi
  2592. test -n "$CC" && break
  2593. done
  2594. fi
  2595. if test -z "$CC"; then
  2596. ac_ct_CC=$CC
  2597. for ac_prog in cl.exe
  2598. do
  2599. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2600. set dummy $ac_prog; ac_word=$2
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2602. $as_echo_n "checking for $ac_word... " >&6; }
  2603. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2604. $as_echo_n "(cached) " >&6
  2605. else
  2606. if test -n "$ac_ct_CC"; then
  2607. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2608. else
  2609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2610. for as_dir in $PATH
  2611. do
  2612. IFS=$as_save_IFS
  2613. test -z "$as_dir" && as_dir=.
  2614. for ac_exec_ext in '' $ac_executable_extensions; do
  2615. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2616. ac_cv_prog_ac_ct_CC="$ac_prog"
  2617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2618. break 2
  2619. fi
  2620. done
  2621. done
  2622. IFS=$as_save_IFS
  2623. fi
  2624. fi
  2625. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2626. if test -n "$ac_ct_CC"; then
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2628. $as_echo "$ac_ct_CC" >&6; }
  2629. else
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2631. $as_echo "no" >&6; }
  2632. fi
  2633. test -n "$ac_ct_CC" && break
  2634. done
  2635. if test "x$ac_ct_CC" = x; then
  2636. CC=""
  2637. else
  2638. case $cross_compiling:$ac_tool_warned in
  2639. yes:)
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2641. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2642. ac_tool_warned=yes ;;
  2643. esac
  2644. CC=$ac_ct_CC
  2645. fi
  2646. fi
  2647. fi
  2648. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2649. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2650. as_fn_error $? "no acceptable C compiler found in \$PATH
  2651. See \`config.log' for more details" "$LINENO" 5; }
  2652. # Provide some information about the compiler.
  2653. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2654. set X $ac_compile
  2655. ac_compiler=$2
  2656. for ac_option in --version -v -V -qversion; do
  2657. { { ac_try="$ac_compiler $ac_option >&5"
  2658. case "(($ac_try" in
  2659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2660. *) ac_try_echo=$ac_try;;
  2661. esac
  2662. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2663. $as_echo "$ac_try_echo"; } >&5
  2664. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2665. ac_status=$?
  2666. if test -s conftest.err; then
  2667. sed '10a\
  2668. ... rest of stderr output deleted ...
  2669. 10q' conftest.err >conftest.er1
  2670. cat conftest.er1 >&5
  2671. fi
  2672. rm -f conftest.er1 conftest.err
  2673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2674. test $ac_status = 0; }
  2675. done
  2676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2677. /* end confdefs.h. */
  2678. int
  2679. main ()
  2680. {
  2681. ;
  2682. return 0;
  2683. }
  2684. _ACEOF
  2685. ac_clean_files_save=$ac_clean_files
  2686. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2687. # Try to create an executable without -o first, disregard a.out.
  2688. # It will help us diagnose broken compilers, and finding out an intuition
  2689. # of exeext.
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2691. $as_echo_n "checking whether the C compiler works... " >&6; }
  2692. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2693. # The possible output files:
  2694. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2695. ac_rmfiles=
  2696. for ac_file in $ac_files
  2697. do
  2698. case $ac_file in
  2699. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2700. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2701. esac
  2702. done
  2703. rm -f $ac_rmfiles
  2704. if { { ac_try="$ac_link_default"
  2705. case "(($ac_try" in
  2706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2707. *) ac_try_echo=$ac_try;;
  2708. esac
  2709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2710. $as_echo "$ac_try_echo"; } >&5
  2711. (eval "$ac_link_default") 2>&5
  2712. ac_status=$?
  2713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2714. test $ac_status = 0; }; then :
  2715. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2716. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2717. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2718. # so that the user can short-circuit this test for compilers unknown to
  2719. # Autoconf.
  2720. for ac_file in $ac_files ''
  2721. do
  2722. test -f "$ac_file" || continue
  2723. case $ac_file in
  2724. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2725. ;;
  2726. [ab].out )
  2727. # We found the default executable, but exeext='' is most
  2728. # certainly right.
  2729. break;;
  2730. *.* )
  2731. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2732. then :; else
  2733. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2734. fi
  2735. # We set ac_cv_exeext here because the later test for it is not
  2736. # safe: cross compilers may not add the suffix if given an `-o'
  2737. # argument, so we may need to know it at that point already.
  2738. # Even if this section looks crufty: it has the advantage of
  2739. # actually working.
  2740. break;;
  2741. * )
  2742. break;;
  2743. esac
  2744. done
  2745. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2746. else
  2747. ac_file=''
  2748. fi
  2749. if test -z "$ac_file"; then :
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2751. $as_echo "no" >&6; }
  2752. $as_echo "$as_me: failed program was:" >&5
  2753. sed 's/^/| /' conftest.$ac_ext >&5
  2754. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2756. as_fn_error 77 "C compiler cannot create executables
  2757. See \`config.log' for more details" "$LINENO" 5; }
  2758. else
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2760. $as_echo "yes" >&6; }
  2761. fi
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2763. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2765. $as_echo "$ac_file" >&6; }
  2766. ac_exeext=$ac_cv_exeext
  2767. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2768. ac_clean_files=$ac_clean_files_save
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2770. $as_echo_n "checking for suffix of executables... " >&6; }
  2771. if { { ac_try="$ac_link"
  2772. case "(($ac_try" in
  2773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2774. *) ac_try_echo=$ac_try;;
  2775. esac
  2776. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2777. $as_echo "$ac_try_echo"; } >&5
  2778. (eval "$ac_link") 2>&5
  2779. ac_status=$?
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2781. test $ac_status = 0; }; then :
  2782. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2783. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2784. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2785. # `rm'.
  2786. for ac_file in conftest.exe conftest conftest.*; do
  2787. test -f "$ac_file" || continue
  2788. case $ac_file in
  2789. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2790. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2791. break;;
  2792. * ) break;;
  2793. esac
  2794. done
  2795. else
  2796. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2797. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2798. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2799. See \`config.log' for more details" "$LINENO" 5; }
  2800. fi
  2801. rm -f conftest conftest$ac_cv_exeext
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2803. $as_echo "$ac_cv_exeext" >&6; }
  2804. rm -f conftest.$ac_ext
  2805. EXEEXT=$ac_cv_exeext
  2806. ac_exeext=$EXEEXT
  2807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2808. /* end confdefs.h. */
  2809. #include <stdio.h>
  2810. int
  2811. main ()
  2812. {
  2813. FILE *f = fopen ("conftest.out", "w");
  2814. return ferror (f) || fclose (f) != 0;
  2815. ;
  2816. return 0;
  2817. }
  2818. _ACEOF
  2819. ac_clean_files="$ac_clean_files conftest.out"
  2820. # Check that the compiler produces executables we can run. If not, either
  2821. # the compiler is broken, or we cross compile.
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2823. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2824. if test "$cross_compiling" != yes; then
  2825. { { ac_try="$ac_link"
  2826. case "(($ac_try" in
  2827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2828. *) ac_try_echo=$ac_try;;
  2829. esac
  2830. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2831. $as_echo "$ac_try_echo"; } >&5
  2832. (eval "$ac_link") 2>&5
  2833. ac_status=$?
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2835. test $ac_status = 0; }
  2836. if { ac_try='./conftest$ac_cv_exeext'
  2837. { { case "(($ac_try" in
  2838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2839. *) ac_try_echo=$ac_try;;
  2840. esac
  2841. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2842. $as_echo "$ac_try_echo"; } >&5
  2843. (eval "$ac_try") 2>&5
  2844. ac_status=$?
  2845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2846. test $ac_status = 0; }; }; then
  2847. cross_compiling=no
  2848. else
  2849. if test "$cross_compiling" = maybe; then
  2850. cross_compiling=yes
  2851. else
  2852. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2853. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2854. as_fn_error $? "cannot run C compiled programs.
  2855. If you meant to cross compile, use \`--host'.
  2856. See \`config.log' for more details" "$LINENO" 5; }
  2857. fi
  2858. fi
  2859. fi
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2861. $as_echo "$cross_compiling" >&6; }
  2862. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2863. ac_clean_files=$ac_clean_files_save
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2865. $as_echo_n "checking for suffix of object files... " >&6; }
  2866. if ${ac_cv_objext+:} false; then :
  2867. $as_echo_n "(cached) " >&6
  2868. else
  2869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2870. /* end confdefs.h. */
  2871. int
  2872. main ()
  2873. {
  2874. ;
  2875. return 0;
  2876. }
  2877. _ACEOF
  2878. rm -f conftest.o conftest.obj
  2879. if { { ac_try="$ac_compile"
  2880. case "(($ac_try" in
  2881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2882. *) ac_try_echo=$ac_try;;
  2883. esac
  2884. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2885. $as_echo "$ac_try_echo"; } >&5
  2886. (eval "$ac_compile") 2>&5
  2887. ac_status=$?
  2888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2889. test $ac_status = 0; }; then :
  2890. for ac_file in conftest.o conftest.obj conftest.*; do
  2891. test -f "$ac_file" || continue;
  2892. case $ac_file in
  2893. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2894. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2895. break;;
  2896. esac
  2897. done
  2898. else
  2899. $as_echo "$as_me: failed program was:" >&5
  2900. sed 's/^/| /' conftest.$ac_ext >&5
  2901. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2902. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2903. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2904. See \`config.log' for more details" "$LINENO" 5; }
  2905. fi
  2906. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2907. fi
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2909. $as_echo "$ac_cv_objext" >&6; }
  2910. OBJEXT=$ac_cv_objext
  2911. ac_objext=$OBJEXT
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2913. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2914. if ${ac_cv_c_compiler_gnu+:} false; then :
  2915. $as_echo_n "(cached) " >&6
  2916. else
  2917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2918. /* end confdefs.h. */
  2919. int
  2920. main ()
  2921. {
  2922. #ifndef __GNUC__
  2923. choke me
  2924. #endif
  2925. ;
  2926. return 0;
  2927. }
  2928. _ACEOF
  2929. if ac_fn_c_try_compile "$LINENO"; then :
  2930. ac_compiler_gnu=yes
  2931. else
  2932. ac_compiler_gnu=no
  2933. fi
  2934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2935. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2936. fi
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2938. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2939. if test $ac_compiler_gnu = yes; then
  2940. GCC=yes
  2941. else
  2942. GCC=
  2943. fi
  2944. ac_test_CFLAGS=${CFLAGS+set}
  2945. ac_save_CFLAGS=$CFLAGS
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2947. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2948. if ${ac_cv_prog_cc_g+:} false; then :
  2949. $as_echo_n "(cached) " >&6
  2950. else
  2951. ac_save_c_werror_flag=$ac_c_werror_flag
  2952. ac_c_werror_flag=yes
  2953. ac_cv_prog_cc_g=no
  2954. CFLAGS="-g"
  2955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2956. /* end confdefs.h. */
  2957. int
  2958. main ()
  2959. {
  2960. ;
  2961. return 0;
  2962. }
  2963. _ACEOF
  2964. if ac_fn_c_try_compile "$LINENO"; then :
  2965. ac_cv_prog_cc_g=yes
  2966. else
  2967. CFLAGS=""
  2968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2969. /* end confdefs.h. */
  2970. int
  2971. main ()
  2972. {
  2973. ;
  2974. return 0;
  2975. }
  2976. _ACEOF
  2977. if ac_fn_c_try_compile "$LINENO"; then :
  2978. else
  2979. ac_c_werror_flag=$ac_save_c_werror_flag
  2980. CFLAGS="-g"
  2981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2982. /* end confdefs.h. */
  2983. int
  2984. main ()
  2985. {
  2986. ;
  2987. return 0;
  2988. }
  2989. _ACEOF
  2990. if ac_fn_c_try_compile "$LINENO"; then :
  2991. ac_cv_prog_cc_g=yes
  2992. fi
  2993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2994. fi
  2995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2996. fi
  2997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2998. ac_c_werror_flag=$ac_save_c_werror_flag
  2999. fi
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3001. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3002. if test "$ac_test_CFLAGS" = set; then
  3003. CFLAGS=$ac_save_CFLAGS
  3004. elif test $ac_cv_prog_cc_g = yes; then
  3005. if test "$GCC" = yes; then
  3006. CFLAGS="-g -O2"
  3007. else
  3008. CFLAGS="-g"
  3009. fi
  3010. else
  3011. if test "$GCC" = yes; then
  3012. CFLAGS="-O2"
  3013. else
  3014. CFLAGS=
  3015. fi
  3016. fi
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3018. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3019. if ${ac_cv_prog_cc_c89+:} false; then :
  3020. $as_echo_n "(cached) " >&6
  3021. else
  3022. ac_cv_prog_cc_c89=no
  3023. ac_save_CC=$CC
  3024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3025. /* end confdefs.h. */
  3026. #include <stdarg.h>
  3027. #include <stdio.h>
  3028. struct stat;
  3029. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3030. struct buf { int x; };
  3031. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3032. static char *e (p, i)
  3033. char **p;
  3034. int i;
  3035. {
  3036. return p[i];
  3037. }
  3038. static char *f (char * (*g) (char **, int), char **p, ...)
  3039. {
  3040. char *s;
  3041. va_list v;
  3042. va_start (v,p);
  3043. s = g (p, va_arg (v,int));
  3044. va_end (v);
  3045. return s;
  3046. }
  3047. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3048. function prototypes and stuff, but not '\xHH' hex character constants.
  3049. These don't provoke an error unfortunately, instead are silently treated
  3050. as 'x'. The following induces an error, until -std is added to get
  3051. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3052. array size at least. It's necessary to write '\x00'==0 to get something
  3053. that's true only with -std. */
  3054. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3055. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3056. inside strings and character constants. */
  3057. #define FOO(x) 'x'
  3058. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3059. int test (int i, double x);
  3060. struct s1 {int (*f) (int a);};
  3061. struct s2 {int (*f) (double a);};
  3062. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3063. int argc;
  3064. char **argv;
  3065. int
  3066. main ()
  3067. {
  3068. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3069. ;
  3070. return 0;
  3071. }
  3072. _ACEOF
  3073. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3074. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3075. do
  3076. CC="$ac_save_CC $ac_arg"
  3077. if ac_fn_c_try_compile "$LINENO"; then :
  3078. ac_cv_prog_cc_c89=$ac_arg
  3079. fi
  3080. rm -f core conftest.err conftest.$ac_objext
  3081. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3082. done
  3083. rm -f conftest.$ac_ext
  3084. CC=$ac_save_CC
  3085. fi
  3086. # AC_CACHE_VAL
  3087. case "x$ac_cv_prog_cc_c89" in
  3088. x)
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3090. $as_echo "none needed" >&6; } ;;
  3091. xno)
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3093. $as_echo "unsupported" >&6; } ;;
  3094. *)
  3095. CC="$CC $ac_cv_prog_cc_c89"
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3097. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3098. esac
  3099. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3100. fi
  3101. ac_ext=c
  3102. ac_cpp='$CPP $CPPFLAGS'
  3103. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3104. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3105. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3107. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3108. if ${ac_cv_prog_cc_c99+:} false; then :
  3109. $as_echo_n "(cached) " >&6
  3110. else
  3111. ac_cv_prog_cc_c99=no
  3112. ac_save_CC=$CC
  3113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3114. /* end confdefs.h. */
  3115. #include <stdarg.h>
  3116. #include <stdbool.h>
  3117. #include <stdlib.h>
  3118. #include <wchar.h>
  3119. #include <stdio.h>
  3120. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3121. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3122. #define showlist(...) puts (#__VA_ARGS__)
  3123. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3124. static void
  3125. test_varargs_macros (void)
  3126. {
  3127. int x = 1234;
  3128. int y = 5678;
  3129. debug ("Flag");
  3130. debug ("X = %d\n", x);
  3131. showlist (The first, second, and third items.);
  3132. report (x>y, "x is %d but y is %d", x, y);
  3133. }
  3134. // Check long long types.
  3135. #define BIG64 18446744073709551615ull
  3136. #define BIG32 4294967295ul
  3137. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3138. #if !BIG_OK
  3139. your preprocessor is broken;
  3140. #endif
  3141. #if BIG_OK
  3142. #else
  3143. your preprocessor is broken;
  3144. #endif
  3145. static long long int bignum = -9223372036854775807LL;
  3146. static unsigned long long int ubignum = BIG64;
  3147. struct incomplete_array
  3148. {
  3149. int datasize;
  3150. double data[];
  3151. };
  3152. struct named_init {
  3153. int number;
  3154. const wchar_t *name;
  3155. double average;
  3156. };
  3157. typedef const char *ccp;
  3158. static inline int
  3159. test_restrict (ccp restrict text)
  3160. {
  3161. // See if C++-style comments work.
  3162. // Iterate through items via the restricted pointer.
  3163. // Also check for declarations in for loops.
  3164. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3165. continue;
  3166. return 0;
  3167. }
  3168. // Check varargs and va_copy.
  3169. static void
  3170. test_varargs (const char *format, ...)
  3171. {
  3172. va_list args;
  3173. va_start (args, format);
  3174. va_list args_copy;
  3175. va_copy (args_copy, args);
  3176. const char *str;
  3177. int number;
  3178. float fnumber;
  3179. while (*format)
  3180. {
  3181. switch (*format++)
  3182. {
  3183. case 's': // string
  3184. str = va_arg (args_copy, const char *);
  3185. break;
  3186. case 'd': // int
  3187. number = va_arg (args_copy, int);
  3188. break;
  3189. case 'f': // float
  3190. fnumber = va_arg (args_copy, double);
  3191. break;
  3192. default:
  3193. break;
  3194. }
  3195. }
  3196. va_end (args_copy);
  3197. va_end (args);
  3198. }
  3199. int
  3200. main ()
  3201. {
  3202. // Check bool.
  3203. _Bool success = false;
  3204. // Check restrict.
  3205. if (test_restrict ("String literal") == 0)
  3206. success = true;
  3207. char *restrict newvar = "Another string";
  3208. // Check varargs.
  3209. test_varargs ("s, d' f .", "string", 65, 34.234);
  3210. test_varargs_macros ();
  3211. // Check flexible array members.
  3212. struct incomplete_array *ia =
  3213. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3214. ia->datasize = 10;
  3215. for (int i = 0; i < ia->datasize; ++i)
  3216. ia->data[i] = i * 1.234;
  3217. // Check named initializers.
  3218. struct named_init ni = {
  3219. .number = 34,
  3220. .name = L"Test wide string",
  3221. .average = 543.34343,
  3222. };
  3223. ni.number = 58;
  3224. int dynamic_array[ni.number];
  3225. dynamic_array[ni.number - 1] = 543;
  3226. // work around unused variable warnings
  3227. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3228. || dynamic_array[ni.number - 1] != 543);
  3229. ;
  3230. return 0;
  3231. }
  3232. _ACEOF
  3233. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3234. do
  3235. CC="$ac_save_CC $ac_arg"
  3236. if ac_fn_c_try_compile "$LINENO"; then :
  3237. ac_cv_prog_cc_c99=$ac_arg
  3238. fi
  3239. rm -f core conftest.err conftest.$ac_objext
  3240. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3241. done
  3242. rm -f conftest.$ac_ext
  3243. CC=$ac_save_CC
  3244. fi
  3245. # AC_CACHE_VAL
  3246. case "x$ac_cv_prog_cc_c99" in
  3247. x)
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3249. $as_echo "none needed" >&6; } ;;
  3250. xno)
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3252. $as_echo "unsupported" >&6; } ;;
  3253. *)
  3254. CC="$CC $ac_cv_prog_cc_c99"
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3256. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3257. esac
  3258. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3259. fi
  3260. if test "$GCC" = yes ; then
  3261. #
  3262. # -Werror forces warnings to be errors.
  3263. #
  3264. ac_lbl_cc_force_warning_errors=-Werror
  3265. #
  3266. # Try to have the compiler default to hiding symbols,
  3267. # so that only symbols explicitly exported with
  3268. # PCAP_API will be visible outside (shared) libraries.
  3269. #
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
  3271. $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
  3272. save_CFLAGS="$CFLAGS"
  3273. if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
  3274. then
  3275. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
  3276. elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
  3277. then
  3278. CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
  3279. elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
  3280. then
  3281. CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
  3282. else
  3283. CFLAGS="$CFLAGS -fvisibility=hidden"
  3284. fi
  3285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3286. /* end confdefs.h. */
  3287. int
  3288. main ()
  3289. {
  3290. return 0
  3291. ;
  3292. return 0;
  3293. }
  3294. _ACEOF
  3295. if ac_fn_c_try_compile "$LINENO"; then :
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3297. $as_echo "yes" >&6; }
  3298. can_add_to_cflags=yes
  3299. #
  3300. # The compile supports this; do we have some C code for
  3301. # which the warning should *not* appear?
  3302. # We test the fourth argument because the third argument
  3303. # could contain quotes, breaking the test.
  3304. #
  3305. if test "x" != "x"
  3306. then
  3307. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
  3309. $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
  3310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3311. /* end confdefs.h. */
  3312. _ACEOF
  3313. if ac_fn_c_try_compile "$LINENO"; then :
  3314. #
  3315. # Not a problem.
  3316. #
  3317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3318. $as_echo "no" >&6; }
  3319. else
  3320. #
  3321. # A problem.
  3322. #
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3324. $as_echo "yes" >&6; }
  3325. can_add_to_cflags=no
  3326. fi
  3327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3328. fi
  3329. CFLAGS="$save_CFLAGS"
  3330. if test x"$can_add_to_cflags" = "xyes"
  3331. then
  3332. V_CCOPT="$V_CCOPT -fvisibility=hidden"
  3333. fi
  3334. else
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3336. $as_echo "no" >&6; }
  3337. CFLAGS="$save_CFLAGS"
  3338. fi
  3339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3340. else
  3341. V_INCLS="$V_INCLS -I/usr/local/include"
  3342. LDFLAGS="$LDFLAGS -L/usr/local/lib"
  3343. case "$host_os" in
  3344. darwin*)
  3345. #
  3346. # This is assumed either to be GCC or clang, both
  3347. # of which use -Werror to force warnings to be errors.
  3348. #
  3349. ac_lbl_cc_force_warning_errors=-Werror
  3350. #
  3351. # Try to have the compiler default to hiding symbols,
  3352. # so that only symbols explicitly exported with
  3353. # PCAP_API will be visible outside (shared) libraries.
  3354. #
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
  3356. $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
  3357. save_CFLAGS="$CFLAGS"
  3358. if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
  3359. then
  3360. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
  3361. elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
  3362. then
  3363. CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
  3364. elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
  3365. then
  3366. CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
  3367. else
  3368. CFLAGS="$CFLAGS -fvisibility=hidden"
  3369. fi
  3370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3371. /* end confdefs.h. */
  3372. int
  3373. main ()
  3374. {
  3375. return 0
  3376. ;
  3377. return 0;
  3378. }
  3379. _ACEOF
  3380. if ac_fn_c_try_compile "$LINENO"; then :
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3382. $as_echo "yes" >&6; }
  3383. can_add_to_cflags=yes
  3384. #
  3385. # The compile supports this; do we have some C code for
  3386. # which the warning should *not* appear?
  3387. # We test the fourth argument because the third argument
  3388. # could contain quotes, breaking the test.
  3389. #
  3390. if test "x" != "x"
  3391. then
  3392. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden " >&5
  3394. $as_echo_n "checking whether -fvisibility=hidden ... " >&6; }
  3395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3396. /* end confdefs.h. */
  3397. _ACEOF
  3398. if ac_fn_c_try_compile "$LINENO"; then :
  3399. #
  3400. # Not a problem.
  3401. #
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3403. $as_echo "no" >&6; }
  3404. else
  3405. #
  3406. # A problem.
  3407. #
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3409. $as_echo "yes" >&6; }
  3410. can_add_to_cflags=no
  3411. fi
  3412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3413. fi
  3414. CFLAGS="$save_CFLAGS"
  3415. if test x"$can_add_to_cflags" = "xyes"
  3416. then
  3417. V_CCOPT="$V_CCOPT -fvisibility=hidden"
  3418. fi
  3419. else
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3421. $as_echo "no" >&6; }
  3422. CFLAGS="$save_CFLAGS"
  3423. fi
  3424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3425. ;;
  3426. hpux*)
  3427. #
  3428. # HP C, which is what we presume we're using, doesn't
  3429. # exit with a non-zero exit status if we hand it an
  3430. # invalid -W flag, can't be forced to do so even with
  3431. # +We, and doesn't handle GCC-style -W flags, so we
  3432. # don't want to try using GCC-style -W flags.
  3433. #
  3434. ac_lbl_cc_dont_try_gcc_dashW=yes
  3435. ;;
  3436. irix*)
  3437. #
  3438. # MIPS C, which is what we presume we're using, doesn't
  3439. # necessarily exit with a non-zero exit status if we
  3440. # hand it an invalid -W flag, can't be forced to do
  3441. # so, and doesn't handle GCC-style -W flags, so we
  3442. # don't want to try using GCC-style -W flags.
  3443. #
  3444. ac_lbl_cc_dont_try_gcc_dashW=yes
  3445. #
  3446. # It also, apparently, defaults to "char" being
  3447. # unsigned, unlike most other C implementations;
  3448. # I suppose we could say "signed char" whenever
  3449. # we want to guarantee a signed "char", but let's
  3450. # just force signed chars.
  3451. #
  3452. # -xansi is normally the default, but the
  3453. # configure script was setting it; perhaps -cckr
  3454. # was the default in the Old Days. (Then again,
  3455. # that would probably be for backwards compatibility
  3456. # in the days when ANSI C was Shiny and New, i.e.
  3457. # 1989 and the early '90's, so maybe we can just
  3458. # drop support for those compilers.)
  3459. #
  3460. # -g is equivalent to -g2, which turns off
  3461. # optimization; we choose -g3, which generates
  3462. # debugging information but doesn't turn off
  3463. # optimization (even if the optimization would
  3464. # cause inaccuracies in debugging).
  3465. #
  3466. V_CCOPT="$V_CCOPT -xansi -signed -g3"
  3467. ;;
  3468. osf*)
  3469. #
  3470. # Presumed to be DEC OSF/1, Digital UNIX, or
  3471. # Tru64 UNIX.
  3472. #
  3473. # The DEC C compiler, which is what we presume we're
  3474. # using, doesn't exit with a non-zero exit status if we
  3475. # hand it an invalid -W flag, can't be forced to do
  3476. # so, and doesn't handle GCC-style -W flags, so we
  3477. # don't want to try using GCC-style -W flags.
  3478. #
  3479. ac_lbl_cc_dont_try_gcc_dashW=yes
  3480. #
  3481. # -g is equivalent to -g2, which turns off
  3482. # optimization; we choose -g3, which generates
  3483. # debugging information but doesn't turn off
  3484. # optimization (even if the optimization would
  3485. # cause inaccuracies in debugging).
  3486. #
  3487. V_CCOPT="$V_CCOPT -g3"
  3488. ;;
  3489. solaris*)
  3490. #
  3491. # Assumed to be Sun C, which requires -errwarn to force
  3492. # warnings to be treated as errors.
  3493. #
  3494. ac_lbl_cc_force_warning_errors=-errwarn
  3495. #
  3496. # Try to have the compiler default to hiding symbols,
  3497. # so that only symbols explicitly exported with
  3498. # PCAP_API will be visible outside (shared) libraries.
  3499. #
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
  3501. $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
  3502. save_CFLAGS="$CFLAGS"
  3503. if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
  3504. then
  3505. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
  3506. elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
  3507. then
  3508. CFLAGS="$CFLAGS -Werror -xldscope=hidden"
  3509. elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
  3510. then
  3511. CFLAGS="$CFLAGS -Werror -xldscope=hidden"
  3512. else
  3513. CFLAGS="$CFLAGS -xldscope=hidden"
  3514. fi
  3515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3516. /* end confdefs.h. */
  3517. int
  3518. main ()
  3519. {
  3520. return 0
  3521. ;
  3522. return 0;
  3523. }
  3524. _ACEOF
  3525. if ac_fn_c_try_compile "$LINENO"; then :
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3527. $as_echo "yes" >&6; }
  3528. can_add_to_cflags=yes
  3529. #
  3530. # The compile supports this; do we have some C code for
  3531. # which the warning should *not* appear?
  3532. # We test the fourth argument because the third argument
  3533. # could contain quotes, breaking the test.
  3534. #
  3535. if test "x" != "x"
  3536. then
  3537. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -xldscope=hidden " >&5
  3539. $as_echo_n "checking whether -xldscope=hidden ... " >&6; }
  3540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3541. /* end confdefs.h. */
  3542. _ACEOF
  3543. if ac_fn_c_try_compile "$LINENO"; then :
  3544. #
  3545. # Not a problem.
  3546. #
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3548. $as_echo "no" >&6; }
  3549. else
  3550. #
  3551. # A problem.
  3552. #
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3554. $as_echo "yes" >&6; }
  3555. can_add_to_cflags=no
  3556. fi
  3557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3558. fi
  3559. CFLAGS="$save_CFLAGS"
  3560. if test x"$can_add_to_cflags" = "xyes"
  3561. then
  3562. V_CCOPT="$V_CCOPT -xldscope=hidden"
  3563. fi
  3564. else
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3566. $as_echo "no" >&6; }
  3567. CFLAGS="$save_CFLAGS"
  3568. fi
  3569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3570. ;;
  3571. ultrix*)
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
  3573. $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
  3574. if ${ac_cv_lbl_cc_const_proto+:} false; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3578. /* end confdefs.h. */
  3579. #include <sys/types.h>
  3580. int
  3581. main ()
  3582. {
  3583. struct a { int b; };
  3584. void c(const struct a *)
  3585. ;
  3586. return 0;
  3587. }
  3588. _ACEOF
  3589. if ac_fn_c_try_compile "$LINENO"; then :
  3590. ac_cv_lbl_cc_const_proto=yes
  3591. else
  3592. ac_cv_lbl_cc_const_proto=no
  3593. fi
  3594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3595. fi
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
  3597. $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
  3598. if test $ac_cv_lbl_cc_const_proto = no ; then
  3599. $as_echo "#define const /**/" >>confdefs.h
  3600. fi
  3601. ;;
  3602. esac
  3603. V_CCOPT="$V_CCOPT -O"
  3604. fi
  3605. if test "$GCC" = yes ; then
  3606. #
  3607. # On platforms where we build a shared library:
  3608. #
  3609. # add options to generate position-independent code,
  3610. # if necessary (it's the default in AIX and Darwin/macOS);
  3611. #
  3612. # define option to set the soname of the shared library,
  3613. # if the OS supports that;
  3614. #
  3615. # add options to specify, at link time, a directory to
  3616. # add to the run-time search path, if that's necessary.
  3617. #
  3618. V_SHLIB_CMD="\$(CC)"
  3619. V_SHLIB_OPT="-shared"
  3620. case "$host_os" in
  3621. aix*)
  3622. ;;
  3623. freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
  3624. #
  3625. # Platforms where the linker is the GNU linker
  3626. # or accepts command-line arguments like
  3627. # those the GNU linker accepts.
  3628. #
  3629. # Some instruction sets require -fPIC on some
  3630. # operating systems. Check for them. If you
  3631. # have a combination that requires it, add it
  3632. # here.
  3633. #
  3634. PIC_OPT=-fpic
  3635. case "$host_cpu" in
  3636. sparc64*)
  3637. case "$host_os" in
  3638. freebsd*|openbsd*)
  3639. PIC_OPT=-fPIC
  3640. ;;
  3641. esac
  3642. ;;
  3643. esac
  3644. V_SHLIB_CCOPT="$V_SHLIB_CCOPT $PIC_OPT"
  3645. V_SONAME_OPT="-Wl,-soname,"
  3646. V_RPATH_OPT="-Wl,-rpath,"
  3647. ;;
  3648. hpux*)
  3649. V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
  3650. #
  3651. # XXX - this assumes GCC is using the HP linker,
  3652. # rather than the GNU linker, and that the "+h"
  3653. # option is used on all HP-UX platforms, both .sl
  3654. # and .so.
  3655. #
  3656. V_SONAME_OPT="-Wl,+h,"
  3657. #
  3658. # By default, directories specifed with -L
  3659. # are added to the run-time search path, so
  3660. # we don't add them in pcap-config.
  3661. #
  3662. ;;
  3663. solaris*)
  3664. V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
  3665. #
  3666. # XXX - this assumes GCC is using the Sun linker,
  3667. # rather than the GNU linker.
  3668. #
  3669. V_SONAME_OPT="-Wl,-h,"
  3670. V_RPATH_OPT="-Wl,-R,"
  3671. ;;
  3672. esac
  3673. else
  3674. #
  3675. # Set the appropriate compiler flags and, on platforms
  3676. # where we build a shared library:
  3677. #
  3678. # add options to generate position-independent code,
  3679. # if necessary (it's the default in Darwin/macOS);
  3680. #
  3681. # if we generate ".so" shared libraries, define the
  3682. # appropriate options for building the shared library;
  3683. #
  3684. # add options to specify, at link time, a directory to
  3685. # add to the run-time search path, if that's necessary.
  3686. #
  3687. # Note: spaces after V_SONAME_OPT are significant; on
  3688. # some platforms the soname is passed with a GCC-like
  3689. # "-Wl,-soname,{soname}" option, with the soname part
  3690. # of the option, while on other platforms the C compiler
  3691. # driver takes it as a regular option with the soname
  3692. # following the option. The same applies to V_RPATH_OPT.
  3693. #
  3694. case "$host_os" in
  3695. aix*)
  3696. V_SHLIB_CMD="\$(CC)"
  3697. V_SHLIB_OPT="-G -bnoentry -bexpall"
  3698. ;;
  3699. freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
  3700. #
  3701. # "cc" is GCC.
  3702. #
  3703. V_SHLIB_CCOPT="$V_SHLIB_CCOPT -fpic"
  3704. V_SHLIB_CMD="\$(CC)"
  3705. V_SHLIB_OPT="-shared"
  3706. V_SONAME_OPT="-Wl,-soname,"
  3707. V_RPATH_OPT="-Wl,-rpath,"
  3708. ;;
  3709. hpux*)
  3710. V_SHLIB_CCOPT="$V_SHLIB_CCOPT +z"
  3711. V_SHLIB_CMD="\$(LD)"
  3712. V_SHLIB_OPT="-b"
  3713. V_SONAME_OPT="+h "
  3714. #
  3715. # By default, directories specifed with -L
  3716. # are added to the run-time search path, so
  3717. # we don't add them in pcap-config.
  3718. #
  3719. ;;
  3720. osf*)
  3721. #
  3722. # Presumed to be DEC OSF/1, Digital UNIX, or
  3723. # Tru64 UNIX.
  3724. #
  3725. V_SHLIB_CMD="\$(CC)"
  3726. V_SHLIB_OPT="-shared"
  3727. V_SONAME_OPT="-soname "
  3728. V_RPATH_OPT="-rpath "
  3729. ;;
  3730. solaris*)
  3731. V_SHLIB_CCOPT="$V_SHLIB_CCOPT -Kpic"
  3732. V_SHLIB_CMD="\$(CC)"
  3733. V_SHLIB_OPT="-G"
  3734. V_SONAME_OPT="-h "
  3735. V_RPATH_OPT="-R"
  3736. ;;
  3737. esac
  3738. fi
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3740. $as_echo_n "checking for inline... " >&6; }
  3741. save_CFLAGS="$CFLAGS"
  3742. CFLAGS="$V_CCOPT"
  3743. if ${ac_cv_lbl_inline+:} false; then :
  3744. $as_echo_n "(cached) " >&6
  3745. else
  3746. ac_cv_lbl_inline=""
  3747. ac_lbl_cc_inline=no
  3748. for ac_lbl_inline in inline __inline__ __inline
  3749. do
  3750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3751. /* end confdefs.h. */
  3752. #define inline $ac_lbl_inline
  3753. static inline struct iltest *foo(void);
  3754. struct iltest {
  3755. int iltest1;
  3756. int iltest2;
  3757. };
  3758. static inline struct iltest *
  3759. foo()
  3760. {
  3761. static struct iltest xxx;
  3762. return &xxx;
  3763. }
  3764. int
  3765. main ()
  3766. {
  3767. ;
  3768. return 0;
  3769. }
  3770. _ACEOF
  3771. if ac_fn_c_try_compile "$LINENO"; then :
  3772. ac_lbl_cc_inline=yes
  3773. fi
  3774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3775. if test "$ac_lbl_cc_inline" = yes ; then
  3776. break;
  3777. fi
  3778. done
  3779. if test "$ac_lbl_cc_inline" = yes ; then
  3780. ac_cv_lbl_inline=$ac_lbl_inline
  3781. fi
  3782. fi
  3783. CFLAGS="$save_CFLAGS"
  3784. if test ! -z "$ac_cv_lbl_inline" ; then
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
  3786. $as_echo "$ac_cv_lbl_inline" >&6; }
  3787. else
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3789. $as_echo "no" >&6; }
  3790. fi
  3791. cat >>confdefs.h <<_ACEOF
  3792. #define inline $ac_cv_lbl_inline
  3793. _ACEOF
  3794. #
  3795. # Try to arrange for large file support.
  3796. #
  3797. # Check whether --enable-largefile was given.
  3798. if test "${enable_largefile+set}" = set; then :
  3799. enableval=$enable_largefile;
  3800. fi
  3801. if test "$enable_largefile" != no; then
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3803. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  3804. if ${ac_cv_sys_largefile_CC+:} false; then :
  3805. $as_echo_n "(cached) " >&6
  3806. else
  3807. ac_cv_sys_largefile_CC=no
  3808. if test "$GCC" != yes; then
  3809. ac_save_CC=$CC
  3810. while :; do
  3811. # IRIX 6.2 and later do not support large files by default,
  3812. # so use the C compiler's -n32 option if that helps.
  3813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3814. /* end confdefs.h. */
  3815. #include <sys/types.h>
  3816. /* Check that off_t can represent 2**63 - 1 correctly.
  3817. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3818. since some C++ compilers masquerading as C compilers
  3819. incorrectly reject 9223372036854775807. */
  3820. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3821. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3822. && LARGE_OFF_T % 2147483647 == 1)
  3823. ? 1 : -1];
  3824. int
  3825. main ()
  3826. {
  3827. ;
  3828. return 0;
  3829. }
  3830. _ACEOF
  3831. if ac_fn_c_try_compile "$LINENO"; then :
  3832. break
  3833. fi
  3834. rm -f core conftest.err conftest.$ac_objext
  3835. CC="$CC -n32"
  3836. if ac_fn_c_try_compile "$LINENO"; then :
  3837. ac_cv_sys_largefile_CC=' -n32'; break
  3838. fi
  3839. rm -f core conftest.err conftest.$ac_objext
  3840. break
  3841. done
  3842. CC=$ac_save_CC
  3843. rm -f conftest.$ac_ext
  3844. fi
  3845. fi
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  3847. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  3848. if test "$ac_cv_sys_largefile_CC" != no; then
  3849. CC=$CC$ac_cv_sys_largefile_CC
  3850. fi
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3852. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  3853. if ${ac_cv_sys_file_offset_bits+:} false; then :
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. while :; do
  3857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3858. /* end confdefs.h. */
  3859. #include <sys/types.h>
  3860. /* Check that off_t can represent 2**63 - 1 correctly.
  3861. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3862. since some C++ compilers masquerading as C compilers
  3863. incorrectly reject 9223372036854775807. */
  3864. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3865. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3866. && LARGE_OFF_T % 2147483647 == 1)
  3867. ? 1 : -1];
  3868. int
  3869. main ()
  3870. {
  3871. ;
  3872. return 0;
  3873. }
  3874. _ACEOF
  3875. if ac_fn_c_try_compile "$LINENO"; then :
  3876. ac_cv_sys_file_offset_bits=no; break
  3877. fi
  3878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3880. /* end confdefs.h. */
  3881. #define _FILE_OFFSET_BITS 64
  3882. #include <sys/types.h>
  3883. /* Check that off_t can represent 2**63 - 1 correctly.
  3884. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3885. since some C++ compilers masquerading as C compilers
  3886. incorrectly reject 9223372036854775807. */
  3887. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3888. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3889. && LARGE_OFF_T % 2147483647 == 1)
  3890. ? 1 : -1];
  3891. int
  3892. main ()
  3893. {
  3894. ;
  3895. return 0;
  3896. }
  3897. _ACEOF
  3898. if ac_fn_c_try_compile "$LINENO"; then :
  3899. ac_cv_sys_file_offset_bits=64; break
  3900. fi
  3901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3902. ac_cv_sys_file_offset_bits=unknown
  3903. break
  3904. done
  3905. fi
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  3907. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  3908. case $ac_cv_sys_file_offset_bits in #(
  3909. no | unknown) ;;
  3910. *)
  3911. cat >>confdefs.h <<_ACEOF
  3912. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3913. _ACEOF
  3914. ;;
  3915. esac
  3916. rm -rf conftest*
  3917. if test $ac_cv_sys_file_offset_bits = unknown; then
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  3919. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  3920. if ${ac_cv_sys_large_files+:} false; then :
  3921. $as_echo_n "(cached) " >&6
  3922. else
  3923. while :; do
  3924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3925. /* end confdefs.h. */
  3926. #include <sys/types.h>
  3927. /* Check that off_t can represent 2**63 - 1 correctly.
  3928. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3929. since some C++ compilers masquerading as C compilers
  3930. incorrectly reject 9223372036854775807. */
  3931. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3932. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3933. && LARGE_OFF_T % 2147483647 == 1)
  3934. ? 1 : -1];
  3935. int
  3936. main ()
  3937. {
  3938. ;
  3939. return 0;
  3940. }
  3941. _ACEOF
  3942. if ac_fn_c_try_compile "$LINENO"; then :
  3943. ac_cv_sys_large_files=no; break
  3944. fi
  3945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3947. /* end confdefs.h. */
  3948. #define _LARGE_FILES 1
  3949. #include <sys/types.h>
  3950. /* Check that off_t can represent 2**63 - 1 correctly.
  3951. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3952. since some C++ compilers masquerading as C compilers
  3953. incorrectly reject 9223372036854775807. */
  3954. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3955. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3956. && LARGE_OFF_T % 2147483647 == 1)
  3957. ? 1 : -1];
  3958. int
  3959. main ()
  3960. {
  3961. ;
  3962. return 0;
  3963. }
  3964. _ACEOF
  3965. if ac_fn_c_try_compile "$LINENO"; then :
  3966. ac_cv_sys_large_files=1; break
  3967. fi
  3968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3969. ac_cv_sys_large_files=unknown
  3970. break
  3971. done
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  3974. $as_echo "$ac_cv_sys_large_files" >&6; }
  3975. case $ac_cv_sys_large_files in #(
  3976. no | unknown) ;;
  3977. *)
  3978. cat >>confdefs.h <<_ACEOF
  3979. #define _LARGE_FILES $ac_cv_sys_large_files
  3980. _ACEOF
  3981. ;;
  3982. esac
  3983. rm -rf conftest*
  3984. fi
  3985. fi
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  3987. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  3988. if ${ac_cv_sys_largefile_source+:} false; then :
  3989. $as_echo_n "(cached) " >&6
  3990. else
  3991. while :; do
  3992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3993. /* end confdefs.h. */
  3994. #include <sys/types.h> /* for off_t */
  3995. #include <stdio.h>
  3996. int
  3997. main ()
  3998. {
  3999. int (*fp) (FILE *, off_t, int) = fseeko;
  4000. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  4001. ;
  4002. return 0;
  4003. }
  4004. _ACEOF
  4005. if ac_fn_c_try_link "$LINENO"; then :
  4006. ac_cv_sys_largefile_source=no; break
  4007. fi
  4008. rm -f core conftest.err conftest.$ac_objext \
  4009. conftest$ac_exeext conftest.$ac_ext
  4010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4011. /* end confdefs.h. */
  4012. #define _LARGEFILE_SOURCE 1
  4013. #include <sys/types.h> /* for off_t */
  4014. #include <stdio.h>
  4015. int
  4016. main ()
  4017. {
  4018. int (*fp) (FILE *, off_t, int) = fseeko;
  4019. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  4020. ;
  4021. return 0;
  4022. }
  4023. _ACEOF
  4024. if ac_fn_c_try_link "$LINENO"; then :
  4025. ac_cv_sys_largefile_source=1; break
  4026. fi
  4027. rm -f core conftest.err conftest.$ac_objext \
  4028. conftest$ac_exeext conftest.$ac_ext
  4029. ac_cv_sys_largefile_source=unknown
  4030. break
  4031. done
  4032. fi
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  4034. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  4035. case $ac_cv_sys_largefile_source in #(
  4036. no | unknown) ;;
  4037. *)
  4038. cat >>confdefs.h <<_ACEOF
  4039. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  4040. _ACEOF
  4041. ;;
  4042. esac
  4043. rm -rf conftest*
  4044. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  4045. # in glibc 2.1.3, but that breaks too many other things.
  4046. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  4047. if test $ac_cv_sys_largefile_source != unknown; then
  4048. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  4049. fi
  4050. ac_ext=c
  4051. ac_cpp='$CPP $CPPFLAGS'
  4052. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4053. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4054. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4056. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4057. # On Suns, sometimes $CPP names a directory.
  4058. if test -n "$CPP" && test -d "$CPP"; then
  4059. CPP=
  4060. fi
  4061. if test -z "$CPP"; then
  4062. if ${ac_cv_prog_CPP+:} false; then :
  4063. $as_echo_n "(cached) " >&6
  4064. else
  4065. # Double quotes because CPP needs to be expanded
  4066. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4067. do
  4068. ac_preproc_ok=false
  4069. for ac_c_preproc_warn_flag in '' yes
  4070. do
  4071. # Use a header file that comes with gcc, so configuring glibc
  4072. # with a fresh cross-compiler works.
  4073. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4074. # <limits.h> exists even on freestanding compilers.
  4075. # On the NeXT, cc -E runs the code through the compiler's parser,
  4076. # not just through cpp. "Syntax error" is here to catch this case.
  4077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4078. /* end confdefs.h. */
  4079. #ifdef __STDC__
  4080. # include <limits.h>
  4081. #else
  4082. # include <assert.h>
  4083. #endif
  4084. Syntax error
  4085. _ACEOF
  4086. if ac_fn_c_try_cpp "$LINENO"; then :
  4087. else
  4088. # Broken: fails on valid input.
  4089. continue
  4090. fi
  4091. rm -f conftest.err conftest.i conftest.$ac_ext
  4092. # OK, works on sane cases. Now check whether nonexistent headers
  4093. # can be detected and how.
  4094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4095. /* end confdefs.h. */
  4096. #include <ac_nonexistent.h>
  4097. _ACEOF
  4098. if ac_fn_c_try_cpp "$LINENO"; then :
  4099. # Broken: success on invalid input.
  4100. continue
  4101. else
  4102. # Passes both tests.
  4103. ac_preproc_ok=:
  4104. break
  4105. fi
  4106. rm -f conftest.err conftest.i conftest.$ac_ext
  4107. done
  4108. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4109. rm -f conftest.i conftest.err conftest.$ac_ext
  4110. if $ac_preproc_ok; then :
  4111. break
  4112. fi
  4113. done
  4114. ac_cv_prog_CPP=$CPP
  4115. fi
  4116. CPP=$ac_cv_prog_CPP
  4117. else
  4118. ac_cv_prog_CPP=$CPP
  4119. fi
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4121. $as_echo "$CPP" >&6; }
  4122. ac_preproc_ok=false
  4123. for ac_c_preproc_warn_flag in '' yes
  4124. do
  4125. # Use a header file that comes with gcc, so configuring glibc
  4126. # with a fresh cross-compiler works.
  4127. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4128. # <limits.h> exists even on freestanding compilers.
  4129. # On the NeXT, cc -E runs the code through the compiler's parser,
  4130. # not just through cpp. "Syntax error" is here to catch this case.
  4131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4132. /* end confdefs.h. */
  4133. #ifdef __STDC__
  4134. # include <limits.h>
  4135. #else
  4136. # include <assert.h>
  4137. #endif
  4138. Syntax error
  4139. _ACEOF
  4140. if ac_fn_c_try_cpp "$LINENO"; then :
  4141. else
  4142. # Broken: fails on valid input.
  4143. continue
  4144. fi
  4145. rm -f conftest.err conftest.i conftest.$ac_ext
  4146. # OK, works on sane cases. Now check whether nonexistent headers
  4147. # can be detected and how.
  4148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4149. /* end confdefs.h. */
  4150. #include <ac_nonexistent.h>
  4151. _ACEOF
  4152. if ac_fn_c_try_cpp "$LINENO"; then :
  4153. # Broken: success on invalid input.
  4154. continue
  4155. else
  4156. # Passes both tests.
  4157. ac_preproc_ok=:
  4158. break
  4159. fi
  4160. rm -f conftest.err conftest.i conftest.$ac_ext
  4161. done
  4162. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4163. rm -f conftest.i conftest.err conftest.$ac_ext
  4164. if $ac_preproc_ok; then :
  4165. else
  4166. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4167. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4168. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4169. See \`config.log' for more details" "$LINENO" 5; }
  4170. fi
  4171. ac_ext=c
  4172. ac_cpp='$CPP $CPPFLAGS'
  4173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4177. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4178. if ${ac_cv_path_GREP+:} false; then :
  4179. $as_echo_n "(cached) " >&6
  4180. else
  4181. if test -z "$GREP"; then
  4182. ac_path_GREP_found=false
  4183. # Loop through the user's path and test for each of PROGNAME-LIST
  4184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4185. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4186. do
  4187. IFS=$as_save_IFS
  4188. test -z "$as_dir" && as_dir=.
  4189. for ac_prog in grep ggrep; do
  4190. for ac_exec_ext in '' $ac_executable_extensions; do
  4191. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4192. as_fn_executable_p "$ac_path_GREP" || continue
  4193. # Check for GNU ac_path_GREP and select it if it is found.
  4194. # Check for GNU $ac_path_GREP
  4195. case `"$ac_path_GREP" --version 2>&1` in
  4196. *GNU*)
  4197. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4198. *)
  4199. ac_count=0
  4200. $as_echo_n 0123456789 >"conftest.in"
  4201. while :
  4202. do
  4203. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4204. mv "conftest.tmp" "conftest.in"
  4205. cp "conftest.in" "conftest.nl"
  4206. $as_echo 'GREP' >> "conftest.nl"
  4207. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4208. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4209. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4210. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4211. # Best one so far, save it but keep looking for a better one
  4212. ac_cv_path_GREP="$ac_path_GREP"
  4213. ac_path_GREP_max=$ac_count
  4214. fi
  4215. # 10*(2^10) chars as input seems more than enough
  4216. test $ac_count -gt 10 && break
  4217. done
  4218. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4219. esac
  4220. $ac_path_GREP_found && break 3
  4221. done
  4222. done
  4223. done
  4224. IFS=$as_save_IFS
  4225. if test -z "$ac_cv_path_GREP"; then
  4226. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4227. fi
  4228. else
  4229. ac_cv_path_GREP=$GREP
  4230. fi
  4231. fi
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4233. $as_echo "$ac_cv_path_GREP" >&6; }
  4234. GREP="$ac_cv_path_GREP"
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4236. $as_echo_n "checking for egrep... " >&6; }
  4237. if ${ac_cv_path_EGREP+:} false; then :
  4238. $as_echo_n "(cached) " >&6
  4239. else
  4240. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4241. then ac_cv_path_EGREP="$GREP -E"
  4242. else
  4243. if test -z "$EGREP"; then
  4244. ac_path_EGREP_found=false
  4245. # Loop through the user's path and test for each of PROGNAME-LIST
  4246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4247. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4248. do
  4249. IFS=$as_save_IFS
  4250. test -z "$as_dir" && as_dir=.
  4251. for ac_prog in egrep; do
  4252. for ac_exec_ext in '' $ac_executable_extensions; do
  4253. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4254. as_fn_executable_p "$ac_path_EGREP" || continue
  4255. # Check for GNU ac_path_EGREP and select it if it is found.
  4256. # Check for GNU $ac_path_EGREP
  4257. case `"$ac_path_EGREP" --version 2>&1` in
  4258. *GNU*)
  4259. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4260. *)
  4261. ac_count=0
  4262. $as_echo_n 0123456789 >"conftest.in"
  4263. while :
  4264. do
  4265. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4266. mv "conftest.tmp" "conftest.in"
  4267. cp "conftest.in" "conftest.nl"
  4268. $as_echo 'EGREP' >> "conftest.nl"
  4269. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4270. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4271. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4272. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4273. # Best one so far, save it but keep looking for a better one
  4274. ac_cv_path_EGREP="$ac_path_EGREP"
  4275. ac_path_EGREP_max=$ac_count
  4276. fi
  4277. # 10*(2^10) chars as input seems more than enough
  4278. test $ac_count -gt 10 && break
  4279. done
  4280. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4281. esac
  4282. $ac_path_EGREP_found && break 3
  4283. done
  4284. done
  4285. done
  4286. IFS=$as_save_IFS
  4287. if test -z "$ac_cv_path_EGREP"; then
  4288. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4289. fi
  4290. else
  4291. ac_cv_path_EGREP=$EGREP
  4292. fi
  4293. fi
  4294. fi
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4296. $as_echo "$ac_cv_path_EGREP" >&6; }
  4297. EGREP="$ac_cv_path_EGREP"
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4299. $as_echo_n "checking for ANSI C header files... " >&6; }
  4300. if ${ac_cv_header_stdc+:} false; then :
  4301. $as_echo_n "(cached) " >&6
  4302. else
  4303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4304. /* end confdefs.h. */
  4305. #include <stdlib.h>
  4306. #include <stdarg.h>
  4307. #include <string.h>
  4308. #include <float.h>
  4309. int
  4310. main ()
  4311. {
  4312. ;
  4313. return 0;
  4314. }
  4315. _ACEOF
  4316. if ac_fn_c_try_compile "$LINENO"; then :
  4317. ac_cv_header_stdc=yes
  4318. else
  4319. ac_cv_header_stdc=no
  4320. fi
  4321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4322. if test $ac_cv_header_stdc = yes; then
  4323. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4325. /* end confdefs.h. */
  4326. #include <string.h>
  4327. _ACEOF
  4328. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4329. $EGREP "memchr" >/dev/null 2>&1; then :
  4330. else
  4331. ac_cv_header_stdc=no
  4332. fi
  4333. rm -f conftest*
  4334. fi
  4335. if test $ac_cv_header_stdc = yes; then
  4336. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4338. /* end confdefs.h. */
  4339. #include <stdlib.h>
  4340. _ACEOF
  4341. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4342. $EGREP "free" >/dev/null 2>&1; then :
  4343. else
  4344. ac_cv_header_stdc=no
  4345. fi
  4346. rm -f conftest*
  4347. fi
  4348. if test $ac_cv_header_stdc = yes; then
  4349. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4350. if test "$cross_compiling" = yes; then :
  4351. :
  4352. else
  4353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4354. /* end confdefs.h. */
  4355. #include <ctype.h>
  4356. #include <stdlib.h>
  4357. #if ((' ' & 0x0FF) == 0x020)
  4358. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4359. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4360. #else
  4361. # define ISLOWER(c) \
  4362. (('a' <= (c) && (c) <= 'i') \
  4363. || ('j' <= (c) && (c) <= 'r') \
  4364. || ('s' <= (c) && (c) <= 'z'))
  4365. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4366. #endif
  4367. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4368. int
  4369. main ()
  4370. {
  4371. int i;
  4372. for (i = 0; i < 256; i++)
  4373. if (XOR (islower (i), ISLOWER (i))
  4374. || toupper (i) != TOUPPER (i))
  4375. return 2;
  4376. return 0;
  4377. }
  4378. _ACEOF
  4379. if ac_fn_c_try_run "$LINENO"; then :
  4380. else
  4381. ac_cv_header_stdc=no
  4382. fi
  4383. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4384. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4385. fi
  4386. fi
  4387. fi
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4389. $as_echo "$ac_cv_header_stdc" >&6; }
  4390. if test $ac_cv_header_stdc = yes; then
  4391. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4392. fi
  4393. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4394. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4395. inttypes.h stdint.h unistd.h
  4396. do :
  4397. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4398. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4399. "
  4400. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4401. cat >>confdefs.h <<_ACEOF
  4402. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4403. _ACEOF
  4404. fi
  4405. done
  4406. for ac_header in sys/ioccom.h sys/sockio.h limits.h
  4407. do :
  4408. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4409. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4410. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4411. cat >>confdefs.h <<_ACEOF
  4412. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4413. _ACEOF
  4414. fi
  4415. done
  4416. for ac_header in netpacket/packet.h
  4417. do :
  4418. ac_fn_c_check_header_mongrel "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
  4419. if test "x$ac_cv_header_netpacket_packet_h" = xyes; then :
  4420. cat >>confdefs.h <<_ACEOF
  4421. #define HAVE_NETPACKET_PACKET_H 1
  4422. _ACEOF
  4423. fi
  4424. done
  4425. for ac_header in net/pfvar.h
  4426. do :
  4427. ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
  4428. #include <sys/socket.h>
  4429. #include <net/if.h>
  4430. "
  4431. if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
  4432. cat >>confdefs.h <<_ACEOF
  4433. #define HAVE_NET_PFVAR_H 1
  4434. _ACEOF
  4435. fi
  4436. done
  4437. if test "$ac_cv_header_net_pfvar_h" = yes; then
  4438. #
  4439. # Check for various PF actions.
  4440. #
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
  4442. $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
  4443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4444. /* end confdefs.h. */
  4445. #include <sys/types.h>
  4446. #include <sys/socket.h>
  4447. #include <net/if.h>
  4448. #include <net/pfvar.h>
  4449. int
  4450. main ()
  4451. {
  4452. return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
  4453. ;
  4454. return 0;
  4455. }
  4456. _ACEOF
  4457. if ac_fn_c_try_compile "$LINENO"; then :
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4459. $as_echo "yes" >&6; }
  4460. $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
  4461. else
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4463. $as_echo "no" >&6; }
  4464. fi
  4465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4466. fi
  4467. case "$host_os" in
  4468. linux*|uclinux*)
  4469. for ac_header in linux/sockios.h linux/if_bonding.h
  4470. do :
  4471. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4472. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  4473. #include <sys/socket.h>
  4474. #include <linux/if.h>
  4475. "
  4476. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4477. cat >>confdefs.h <<_ACEOF
  4478. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4479. _ACEOF
  4480. fi
  4481. done
  4482. ;;
  4483. esac
  4484. if test "$GCC" = yes ; then
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
  4486. $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
  4487. if ${ac_cv_lbl_gcc_fixincludes+:} false; then :
  4488. $as_echo_n "(cached) " >&6
  4489. else
  4490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4491. /* end confdefs.h. */
  4492. /*
  4493. * This generates a "duplicate case value" when fixincludes
  4494. * has not be run.
  4495. */
  4496. # include <sys/types.h>
  4497. # include <sys/time.h>
  4498. # include <sys/ioctl.h>
  4499. # ifdef HAVE_SYS_IOCCOM_H
  4500. # include <sys/ioccom.h>
  4501. # endif
  4502. int
  4503. main ()
  4504. {
  4505. switch (0) {
  4506. case _IO('A', 1):;
  4507. case _IO('B', 1):;
  4508. }
  4509. ;
  4510. return 0;
  4511. }
  4512. _ACEOF
  4513. if ac_fn_c_try_compile "$LINENO"; then :
  4514. ac_cv_lbl_gcc_fixincludes=yes
  4515. else
  4516. ac_cv_lbl_gcc_fixincludes=no
  4517. fi
  4518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4519. fi
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
  4521. $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
  4522. if test $ac_cv_lbl_gcc_fixincludes = no ; then
  4523. # Don't cache failure
  4524. unset ac_cv_lbl_gcc_fixincludes
  4525. as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
  4526. fi
  4527. fi
  4528. for ac_func in strerror strerror_r strerror_s strlcpy strlcat
  4529. do :
  4530. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4531. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4532. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4533. cat >>confdefs.h <<_ACEOF
  4534. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4535. _ACEOF
  4536. fi
  4537. done
  4538. needsnprintf=no
  4539. for ac_func in vsnprintf snprintf
  4540. do :
  4541. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4542. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4543. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4544. cat >>confdefs.h <<_ACEOF
  4545. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4546. _ACEOF
  4547. else
  4548. needsnprintf=yes
  4549. fi
  4550. done
  4551. if test $needsnprintf = yes; then
  4552. case " $LIBOBJS " in
  4553. *" snprintf.$ac_objext "* ) ;;
  4554. *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
  4555. ;;
  4556. esac
  4557. fi
  4558. needstrtok_r=no
  4559. for ac_func in strtok_r
  4560. do :
  4561. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  4562. if test "x$ac_cv_func_strtok_r" = xyes; then :
  4563. cat >>confdefs.h <<_ACEOF
  4564. #define HAVE_STRTOK_R 1
  4565. _ACEOF
  4566. else
  4567. needstrtok_r=yes
  4568. fi
  4569. done
  4570. if test $needstrtok_r = yes; then
  4571. case " $LIBOBJS " in
  4572. *" strtok_r.$ac_objext "* ) ;;
  4573. *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
  4574. ;;
  4575. esac
  4576. fi
  4577. #
  4578. # Do we have ffs(), and is it declared in <strings.h>?
  4579. #
  4580. for ac_func in ffs
  4581. do :
  4582. ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
  4583. if test "x$ac_cv_func_ffs" = xyes; then :
  4584. cat >>confdefs.h <<_ACEOF
  4585. #define HAVE_FFS 1
  4586. _ACEOF
  4587. fi
  4588. done
  4589. if test "$ac_cv_func_ffs" = yes; then
  4590. #
  4591. # We have ffs(); is it declared in <strings.h>?
  4592. #
  4593. # This test fails if we don't have <strings.h> or if we do
  4594. # but it doesn't declare ffs().
  4595. #
  4596. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "
  4597. #include <strings.h>
  4598. "
  4599. if test "x$ac_cv_have_decl_ffs" = xyes; then :
  4600. $as_echo "#define STRINGS_H_DECLARES_FFS /**/" >>confdefs.h
  4601. fi
  4602. fi
  4603. #
  4604. # Do this before checking for ether_hostton(), as it's a
  4605. # "getaddrinfo()-ish function".
  4606. #
  4607. #
  4608. # Most operating systems have getaddrinfo() in the default searched
  4609. # libraries (i.e. libc). Check there first.
  4610. #
  4611. ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  4612. if test "x$ac_cv_func_getaddrinfo" = xyes; then :
  4613. else
  4614. #
  4615. # Not found in the standard system libraries.
  4616. # Try libsocket, which requires libnsl.
  4617. #
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
  4619. $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
  4620. if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
  4621. $as_echo_n "(cached) " >&6
  4622. else
  4623. ac_check_lib_save_LIBS=$LIBS
  4624. LIBS="-lsocket -lnsl $LIBS"
  4625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4626. /* end confdefs.h. */
  4627. /* Override any GCC internal prototype to avoid an error.
  4628. Use char because int might match the return type of a GCC
  4629. builtin and then its argument prototype would still apply. */
  4630. #ifdef __cplusplus
  4631. extern "C"
  4632. #endif
  4633. char getaddrinfo ();
  4634. int
  4635. main ()
  4636. {
  4637. return getaddrinfo ();
  4638. ;
  4639. return 0;
  4640. }
  4641. _ACEOF
  4642. if ac_fn_c_try_link "$LINENO"; then :
  4643. ac_cv_lib_socket_getaddrinfo=yes
  4644. else
  4645. ac_cv_lib_socket_getaddrinfo=no
  4646. fi
  4647. rm -f core conftest.err conftest.$ac_objext \
  4648. conftest$ac_exeext conftest.$ac_ext
  4649. LIBS=$ac_check_lib_save_LIBS
  4650. fi
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
  4652. $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
  4653. if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
  4654. #
  4655. # OK, we found it in libsocket.
  4656. #
  4657. LIBS="-lsocket -lnsl $LIBS"
  4658. else
  4659. #
  4660. # We didn't find it.
  4661. #
  4662. as_fn_error $? "getaddrinfo is required, but wasn't found" "$LINENO" 5
  4663. fi
  4664. #
  4665. # OK, do we have recvmsg() in libxnet?
  4666. # We also link with libsocket and libnsl.
  4667. #
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lxnet" >&5
  4669. $as_echo_n "checking for recvmsg in -lxnet... " >&6; }
  4670. if ${ac_cv_lib_xnet_recvmsg+:} false; then :
  4671. $as_echo_n "(cached) " >&6
  4672. else
  4673. ac_check_lib_save_LIBS=$LIBS
  4674. LIBS="-lxnet -lsocket -lnsl $LIBS"
  4675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4676. /* end confdefs.h. */
  4677. /* Override any GCC internal prototype to avoid an error.
  4678. Use char because int might match the return type of a GCC
  4679. builtin and then its argument prototype would still apply. */
  4680. #ifdef __cplusplus
  4681. extern "C"
  4682. #endif
  4683. char recvmsg ();
  4684. int
  4685. main ()
  4686. {
  4687. return recvmsg ();
  4688. ;
  4689. return 0;
  4690. }
  4691. _ACEOF
  4692. if ac_fn_c_try_link "$LINENO"; then :
  4693. ac_cv_lib_xnet_recvmsg=yes
  4694. else
  4695. ac_cv_lib_xnet_recvmsg=no
  4696. fi
  4697. rm -f core conftest.err conftest.$ac_objext \
  4698. conftest$ac_exeext conftest.$ac_ext
  4699. LIBS=$ac_check_lib_save_LIBS
  4700. fi
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_recvmsg" >&5
  4702. $as_echo "$ac_cv_lib_xnet_recvmsg" >&6; }
  4703. if test "x$ac_cv_lib_xnet_recvmsg" = xyes; then :
  4704. #
  4705. # Yes - link with it as well.
  4706. #
  4707. LIBS="-lxnet $LIBS"
  4708. fi
  4709. fi
  4710. # DLPI needs putmsg under HPUX so test for -lstr while we're at it
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
  4712. $as_echo_n "checking for library containing putmsg... " >&6; }
  4713. if ${ac_cv_search_putmsg+:} false; then :
  4714. $as_echo_n "(cached) " >&6
  4715. else
  4716. ac_func_search_save_LIBS=$LIBS
  4717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4718. /* end confdefs.h. */
  4719. /* Override any GCC internal prototype to avoid an error.
  4720. Use char because int might match the return type of a GCC
  4721. builtin and then its argument prototype would still apply. */
  4722. #ifdef __cplusplus
  4723. extern "C"
  4724. #endif
  4725. char putmsg ();
  4726. int
  4727. main ()
  4728. {
  4729. return putmsg ();
  4730. ;
  4731. return 0;
  4732. }
  4733. _ACEOF
  4734. for ac_lib in '' str; do
  4735. if test -z "$ac_lib"; then
  4736. ac_res="none required"
  4737. else
  4738. ac_res=-l$ac_lib
  4739. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4740. fi
  4741. if ac_fn_c_try_link "$LINENO"; then :
  4742. ac_cv_search_putmsg=$ac_res
  4743. fi
  4744. rm -f core conftest.err conftest.$ac_objext \
  4745. conftest$ac_exeext
  4746. if ${ac_cv_search_putmsg+:} false; then :
  4747. break
  4748. fi
  4749. done
  4750. if ${ac_cv_search_putmsg+:} false; then :
  4751. else
  4752. ac_cv_search_putmsg=no
  4753. fi
  4754. rm conftest.$ac_ext
  4755. LIBS=$ac_func_search_save_LIBS
  4756. fi
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
  4758. $as_echo "$ac_cv_search_putmsg" >&6; }
  4759. ac_res=$ac_cv_search_putmsg
  4760. if test "$ac_res" != no; then :
  4761. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4762. fi
  4763. #
  4764. # Check for reentrant versions of getnetbyname_r(), as provided by
  4765. # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
  4766. # If we don't find one, we just use getnetbyname(), which uses
  4767. # thread-specific data on many platforms, but doesn't use it on
  4768. # NetBSD or OpenBSD, and may not use it on older versions of other
  4769. # platforms.
  4770. #
  4771. # Only do the check if we have a declaration of getnetbyname_r();
  4772. # without it, we can't check which API it has. (We assume that
  4773. # if there's a declaration, it has a prototype, so that the API
  4774. # can be checked.)
  4775. #
  4776. ac_fn_c_check_decl "$LINENO" "getnetbyname_r" "ac_cv_have_decl_getnetbyname_r" "#include <netdb.h>
  4777. "
  4778. if test "x$ac_cv_have_decl_getnetbyname_r" = xyes; then :
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getnetbyname_r()" >&5
  4780. $as_echo_n "checking for the Linux getnetbyname_r()... " >&6; }
  4781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4782. /* end confdefs.h. */
  4783. #include <netdb.h>
  4784. int
  4785. main ()
  4786. {
  4787. struct netent netent_buf;
  4788. char buf[1024];
  4789. struct netent *resultp;
  4790. int h_errnoval;
  4791. return getnetbyname_r((const char *)0, &netent_buf, buf, sizeof buf, &resultp, &h_errnoval);
  4792. ;
  4793. return 0;
  4794. }
  4795. _ACEOF
  4796. if ac_fn_c_try_link "$LINENO"; then :
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4798. $as_echo "yes" >&6; }
  4799. $as_echo "#define HAVE_LINUX_GETNETBYNAME_R 1" >>confdefs.h
  4800. else
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4802. $as_echo "no" >&6; }
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getnetbyname_r()" >&5
  4804. $as_echo_n "checking for Solaris/IRIX getnetbyname_r()... " >&6; }
  4805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4806. /* end confdefs.h. */
  4807. #include <netdb.h>
  4808. int
  4809. main ()
  4810. {
  4811. struct netent netent_buf;
  4812. char buf[1024];
  4813. return getnetbyname_r((const char *)0, &netent_buf, buf, (int)sizeof buf) != NULL;
  4814. ;
  4815. return 0;
  4816. }
  4817. _ACEOF
  4818. if ac_fn_c_try_link "$LINENO"; then :
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4820. $as_echo "yes" >&6; }
  4821. $as_echo "#define HAVE_SOLARIS_IRIX_GETNETBYNAME_R 1" >>confdefs.h
  4822. else
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4824. $as_echo "no" >&6; }
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getnetbyname_r()" >&5
  4826. $as_echo_n "checking for AIX getnetbyname_r()... " >&6; }
  4827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4828. /* end confdefs.h. */
  4829. #include <netdb.h>
  4830. int
  4831. main ()
  4832. {
  4833. struct netent netent_buf;
  4834. struct netent_data net_data;
  4835. return getnetbyname_r((const char *)0, &netent_buf, &net_data);
  4836. ;
  4837. return 0;
  4838. }
  4839. _ACEOF
  4840. if ac_fn_c_try_link "$LINENO"; then :
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4842. $as_echo "yes" >&6; }
  4843. $as_echo "#define HAVE_AIX_GETNETBYNAME_R 1" >>confdefs.h
  4844. else
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4846. $as_echo "no" >&6; }
  4847. fi
  4848. rm -f core conftest.err conftest.$ac_objext \
  4849. conftest$ac_exeext conftest.$ac_ext
  4850. fi
  4851. rm -f core conftest.err conftest.$ac_objext \
  4852. conftest$ac_exeext conftest.$ac_ext
  4853. fi
  4854. rm -f core conftest.err conftest.$ac_objext \
  4855. conftest$ac_exeext conftest.$ac_ext
  4856. fi
  4857. #
  4858. # Check for reentrant versions of getprotobyname_r(), as provided by
  4859. # Linux (glibc), Solaris/IRIX, and AIX (with three different APIs!).
  4860. # If we don't find one, we just use getprotobyname(), which uses
  4861. # thread-specific data on many platforms, but doesn't use it on
  4862. # NetBSD or OpenBSD, and may not use it on older versions of other
  4863. # platforms.
  4864. #
  4865. # Only do the check if we have a declaration of getprotobyname_r();
  4866. # without it, we can't check which API it has. (We assume that
  4867. # if there's a declaration, it has a prototype, so that the API
  4868. # can be checked.)
  4869. #
  4870. ac_fn_c_check_decl "$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "#include <netdb.h>
  4871. "
  4872. if test "x$ac_cv_have_decl_getprotobyname_r" = xyes; then :
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getprotobyname_r()" >&5
  4874. $as_echo_n "checking for the Linux getprotobyname_r()... " >&6; }
  4875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4876. /* end confdefs.h. */
  4877. #include <netdb.h>
  4878. int
  4879. main ()
  4880. {
  4881. struct protoent protoent_buf;
  4882. char buf[1024];
  4883. struct protoent *resultp;
  4884. return getprotobyname_r((const char *)0, &protoent_buf, buf, sizeof buf, &resultp);
  4885. ;
  4886. return 0;
  4887. }
  4888. _ACEOF
  4889. if ac_fn_c_try_link "$LINENO"; then :
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4891. $as_echo "yes" >&6; }
  4892. $as_echo "#define HAVE_LINUX_GETPROTOBYNAME_R 1" >>confdefs.h
  4893. else
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4895. $as_echo "no" >&6; }
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/IRIX getprotobyname_r()" >&5
  4897. $as_echo_n "checking for Solaris/IRIX getprotobyname_r()... " >&6; }
  4898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4899. /* end confdefs.h. */
  4900. #include <netdb.h>
  4901. int
  4902. main ()
  4903. {
  4904. struct protoent protoent_buf;
  4905. char buf[1024];
  4906. return getprotobyname_r((const char *)0, &protoent_buf, buf, (int)sizeof buf) != NULL;
  4907. ;
  4908. return 0;
  4909. }
  4910. _ACEOF
  4911. if ac_fn_c_try_link "$LINENO"; then :
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4913. $as_echo "yes" >&6; }
  4914. $as_echo "#define HAVE_SOLARIS_IRIX_GETPROTOBYNAME_R 1" >>confdefs.h
  4915. else
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4917. $as_echo "no" >&6; }
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX getprotobyname_r()" >&5
  4919. $as_echo_n "checking for AIX getprotobyname_r()... " >&6; }
  4920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4921. /* end confdefs.h. */
  4922. #include <netdb.h>
  4923. int
  4924. main ()
  4925. {
  4926. struct protoent protoent_buf;
  4927. struct protoent_data proto_data;
  4928. return getprotobyname_r((const char *)0, &protoent_buf, &proto_data);
  4929. ;
  4930. return 0;
  4931. }
  4932. _ACEOF
  4933. if ac_fn_c_try_link "$LINENO"; then :
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4935. $as_echo "yes" >&6; }
  4936. $as_echo "#define HAVE_AIX_GETPROTOBYNAME_R 1" >>confdefs.h
  4937. else
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4939. $as_echo "no" >&6; }
  4940. fi
  4941. rm -f core conftest.err conftest.$ac_objext \
  4942. conftest$ac_exeext conftest.$ac_ext
  4943. fi
  4944. rm -f core conftest.err conftest.$ac_objext \
  4945. conftest$ac_exeext conftest.$ac_ext
  4946. fi
  4947. rm -f core conftest.err conftest.$ac_objext \
  4948. conftest$ac_exeext conftest.$ac_ext
  4949. fi
  4950. #
  4951. # You are in a twisty little maze of UN*Xes, all different.
  4952. # Some might not have ether_hostton().
  4953. # Some might have it and declare it in <net/ethernet.h>.
  4954. # Some might have it and declare it in <netinet/ether.h>
  4955. # Some might have it and declare it in <sys/ethernet.h>.
  4956. # Some might have it and declare it in <arpa/inet.h>.
  4957. # Some might have it and declare it in <netinet/if_ether.h>.
  4958. # Some might have it and not declare it in any header file.
  4959. #
  4960. # Before you is a C compiler.
  4961. #
  4962. for ac_func in ether_hostton
  4963. do :
  4964. ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
  4965. if test "x$ac_cv_func_ether_hostton" = xyes; then :
  4966. cat >>confdefs.h <<_ACEOF
  4967. #define HAVE_ETHER_HOSTTON 1
  4968. _ACEOF
  4969. fi
  4970. done
  4971. if test "$ac_cv_func_ether_hostton" = yes; then
  4972. #
  4973. # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
  4974. #
  4975. # This test fails if we don't have <net/ethernet.h> or if we do
  4976. # but it doesn't declare ether_hostton().
  4977. #
  4978. ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
  4979. #include <net/ethernet.h>
  4980. "
  4981. if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
  4982. $as_echo "#define NET_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
  4983. fi
  4984. #
  4985. # Did that succeed?
  4986. #
  4987. if test "$ac_cv_have_decl_ether_hostton" != yes; then
  4988. #
  4989. # No, how about <netinet/ether.h>, as on Linux?
  4990. #
  4991. # This test fails if we don't have <netinet/ether.h>
  4992. # or if we do but it doesn't declare ether_hostton().
  4993. #
  4994. # Unset ac_cv_have_decl_ether_hostton so we don't
  4995. # treat the previous failure as a cached value and
  4996. # suppress the next test.
  4997. #
  4998. unset ac_cv_have_decl_ether_hostton
  4999. ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
  5000. #include <netinet/ether.h>
  5001. "
  5002. if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
  5003. $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
  5004. fi
  5005. fi
  5006. #
  5007. # Did that succeed?
  5008. #
  5009. if test "$ac_cv_have_decl_ether_hostton" != yes; then
  5010. #
  5011. # No, how about <sys/ethernet.h>, as on Solaris 10
  5012. # and later?
  5013. #
  5014. # This test fails if we don't have <sys/ethernet.h>
  5015. # or if we do but it doesn't declare ether_hostton().
  5016. #
  5017. # Unset ac_cv_have_decl_ether_hostton so we don't
  5018. # treat the previous failure as a cached value and
  5019. # suppress the next test.
  5020. #
  5021. unset ac_cv_have_decl_ether_hostton
  5022. ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
  5023. #include <sys/ethernet.h>
  5024. "
  5025. if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
  5026. $as_echo "#define SYS_ETHERNET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
  5027. fi
  5028. fi
  5029. #
  5030. # Did that succeed?
  5031. #
  5032. if test "$ac_cv_have_decl_ether_hostton" != yes; then
  5033. #
  5034. # No, how about <arpa/inet.h>, as in AIX?
  5035. #
  5036. # This test fails if we don't have <arpa/inet.h>
  5037. # (if we have ether_hostton(), we should have
  5038. # networking, and if we have networking, we should
  5039. # have <arapa/inet.h>) or if we do but it doesn't
  5040. # declare ether_hostton().
  5041. #
  5042. # Unset ac_cv_have_decl_ether_hostton so we don't
  5043. # treat the previous failure as a cached value and
  5044. # suppress the next test.
  5045. #
  5046. unset ac_cv_have_decl_ether_hostton
  5047. ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
  5048. #include <arpa/inet.h>
  5049. "
  5050. if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
  5051. $as_echo "#define ARPA_INET_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
  5052. fi
  5053. fi
  5054. #
  5055. # Did that succeed?
  5056. #
  5057. if test "$ac_cv_have_decl_ether_hostton" != yes; then
  5058. #
  5059. # No, how about <netinet/if_ether.h>?
  5060. # On some platforms, it requires <net/if.h> and
  5061. # <netinet/in.h>, and we always include it with
  5062. # both of them, so test it with both of them.
  5063. #
  5064. # This test fails if we don't have <netinet/if_ether.h>
  5065. # and the headers we include before it, or if we do but
  5066. # <netinet/if_ether.h> doesn't declare ether_hostton().
  5067. #
  5068. # Unset ac_cv_have_decl_ether_hostton so we don't
  5069. # treat the previous failure as a cached value and
  5070. # suppress the next test.
  5071. #
  5072. unset ac_cv_have_decl_ether_hostton
  5073. ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
  5074. #include <sys/types.h>
  5075. #include <sys/socket.h>
  5076. #include <net/if.h>
  5077. #include <netinet/in.h>
  5078. #include <netinet/if_ether.h>
  5079. "
  5080. if test "x$ac_cv_have_decl_ether_hostton" = xyes; then :
  5081. $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
  5082. fi
  5083. fi
  5084. #
  5085. # After all that, is ether_hostton() declared?
  5086. #
  5087. if test "$ac_cv_have_decl_ether_hostton" = yes; then
  5088. #
  5089. # Yes.
  5090. #
  5091. $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
  5092. else
  5093. #
  5094. # No, we'll have to declare it ourselves.
  5095. # Do we have "struct ether_addr" if we include
  5096. # <netinet/if_ether.h>?
  5097. #
  5098. ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
  5099. #include <sys/types.h>
  5100. #include <sys/socket.h>
  5101. #include <net/if.h>
  5102. #include <netinet/in.h>
  5103. #include <netinet/if_ether.h>
  5104. "
  5105. if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
  5106. cat >>confdefs.h <<_ACEOF
  5107. #define HAVE_STRUCT_ETHER_ADDR 1
  5108. _ACEOF
  5109. fi
  5110. fi
  5111. fi
  5112. #
  5113. # For various things that might use pthreads.
  5114. #
  5115. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  5116. if test "x$ac_cv_header_pthread_h" = xyes; then :
  5117. #
  5118. # OK, we have pthread.h. Do we have pthread_create in the
  5119. # system libraries?
  5120. #
  5121. ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
  5122. if test "x$ac_cv_func_pthread_create" = xyes; then :
  5123. #
  5124. # Yes.
  5125. #
  5126. ac_lbl_have_pthreads="found"
  5127. else
  5128. #
  5129. # No - do we have it in -lpthreads?
  5130. #
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
  5132. $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
  5133. if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
  5134. $as_echo_n "(cached) " >&6
  5135. else
  5136. ac_check_lib_save_LIBS=$LIBS
  5137. LIBS="-lpthreads $LIBS"
  5138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5139. /* end confdefs.h. */
  5140. /* Override any GCC internal prototype to avoid an error.
  5141. Use char because int might match the return type of a GCC
  5142. builtin and then its argument prototype would still apply. */
  5143. #ifdef __cplusplus
  5144. extern "C"
  5145. #endif
  5146. char pthread_create ();
  5147. int
  5148. main ()
  5149. {
  5150. return pthread_create ();
  5151. ;
  5152. return 0;
  5153. }
  5154. _ACEOF
  5155. if ac_fn_c_try_link "$LINENO"; then :
  5156. ac_cv_lib_pthreads_pthread_create=yes
  5157. else
  5158. ac_cv_lib_pthreads_pthread_create=no
  5159. fi
  5160. rm -f core conftest.err conftest.$ac_objext \
  5161. conftest$ac_exeext conftest.$ac_ext
  5162. LIBS=$ac_check_lib_save_LIBS
  5163. fi
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
  5165. $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
  5166. if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
  5167. #
  5168. # Yes - add -lpthreads.
  5169. #
  5170. ac_lbl_have_pthreads="found"
  5171. PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads"
  5172. else
  5173. #
  5174. # No - do we have it in -lpthread?
  5175. #
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  5177. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  5178. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  5179. $as_echo_n "(cached) " >&6
  5180. else
  5181. ac_check_lib_save_LIBS=$LIBS
  5182. LIBS="-lpthread $LIBS"
  5183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5184. /* end confdefs.h. */
  5185. /* Override any GCC internal prototype to avoid an error.
  5186. Use char because int might match the return type of a GCC
  5187. builtin and then its argument prototype would still apply. */
  5188. #ifdef __cplusplus
  5189. extern "C"
  5190. #endif
  5191. char pthread_create ();
  5192. int
  5193. main ()
  5194. {
  5195. return pthread_create ();
  5196. ;
  5197. return 0;
  5198. }
  5199. _ACEOF
  5200. if ac_fn_c_try_link "$LINENO"; then :
  5201. ac_cv_lib_pthread_pthread_create=yes
  5202. else
  5203. ac_cv_lib_pthread_pthread_create=no
  5204. fi
  5205. rm -f core conftest.err conftest.$ac_objext \
  5206. conftest$ac_exeext conftest.$ac_ext
  5207. LIBS=$ac_check_lib_save_LIBS
  5208. fi
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  5210. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  5211. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  5212. #
  5213. # Yes - add -lpthread.
  5214. #
  5215. ac_lbl_have_pthreads="found"
  5216. PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
  5217. else
  5218. #
  5219. # No.
  5220. #
  5221. ac_lbl_have_pthreads="not found"
  5222. fi
  5223. fi
  5224. fi
  5225. else
  5226. #
  5227. # We didn't find pthread.h.
  5228. #
  5229. ac_lbl_have_pthreads="not found"
  5230. fi
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
  5232. $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
  5233. # Check whether --enable-protochain was given.
  5234. if test "${enable_protochain+set}" = set; then :
  5235. enableval=$enable_protochain;
  5236. fi
  5237. case "x$enable_protochain" in
  5238. xyes) enable_protochain=enabled ;;
  5239. xno) enable_protochain=disabled ;;
  5240. x) enable_protochain=enabled ;;
  5241. esac
  5242. if test "$enable_protochain" = "disabled"; then
  5243. $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
  5244. fi
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
  5246. $as_echo "${enable_protochain}" >&6; }
  5247. #
  5248. # valgrindtest directly uses the native capture mechanism, but
  5249. # only tests with BPF and PF_PACKET sockets; only enable it if
  5250. # we have BPF or PF_PACKET sockets.
  5251. #
  5252. VALGRINDTEST_SRC=
  5253. #
  5254. # SITA support is mutually exclusive with native capture support;
  5255. # "--with-sita" selects SITA support.
  5256. #
  5257. # Check whether --with-sita was given.
  5258. if test "${with_sita+set}" = set; then :
  5259. withval=$with_sita;
  5260. if test ! "x$withval" = "xno" ; then
  5261. $as_echo "#define SITA 1" >>confdefs.h
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
  5263. $as_echo "$as_me: Enabling SITA ACN support" >&6;}
  5264. V_PCAP=sita
  5265. fi
  5266. else
  5267. # Check whether --with-pcap was given.
  5268. if test "${with_pcap+set}" = set; then :
  5269. withval=$with_pcap;
  5270. fi
  5271. if test ! -z "$with_pcap" ; then
  5272. V_PCAP="$withval"
  5273. else
  5274. #
  5275. # Check for a bunch of headers for various packet
  5276. # capture mechanisms.
  5277. #
  5278. for ac_header in net/bpf.h
  5279. do :
  5280. ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
  5281. if test "x$ac_cv_header_net_bpf_h" = xyes; then :
  5282. cat >>confdefs.h <<_ACEOF
  5283. #define HAVE_NET_BPF_H 1
  5284. _ACEOF
  5285. fi
  5286. done
  5287. if test "$ac_cv_header_net_bpf_h" = yes; then
  5288. #
  5289. # Does it define BIOCSETIF?
  5290. # I.e., is it a header for an LBL/BSD-style capture
  5291. # mechanism, or is it just a header for a BPF filter
  5292. # engine? Some versions of Arch Linux, for example,
  5293. # have a net/bpf.h that doesn't define BIOCSETIF;
  5294. # as it's a Linux, it should use packet sockets,
  5295. # instead.
  5296. #
  5297. # We need:
  5298. #
  5299. # sys/types.h, because FreeBSD 10's net/bpf.h
  5300. # requires that various BSD-style integer types
  5301. # be defined;
  5302. #
  5303. # sys/ioctl.h and, if we have it, sys/ioccom.h,
  5304. # because net/bpf.h defines ioctls;
  5305. #
  5306. # net/if.h, because it defines some structures
  5307. # used in ioctls defined by net/bpf.h;
  5308. #
  5309. # sys/socket.h, because OpenBSD 5.9's net/bpf.h
  5310. # defines some structure fields as being
  5311. # struct sockaddrs;
  5312. #
  5313. # and net/bpf.h doesn't necessarily include all
  5314. # of those headers itself.
  5315. #
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/bpf.h defines BIOCSETIF" >&5
  5317. $as_echo_n "checking if net/bpf.h defines BIOCSETIF... " >&6; }
  5318. if ${ac_cv_lbl_bpf_h_defines_biocsetif+:} false; then :
  5319. $as_echo_n "(cached) " >&6
  5320. else
  5321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5322. /* end confdefs.h. */
  5323. #include <sys/types.h>
  5324. #include <sys/ioctl.h>
  5325. #include <sys/socket.h>
  5326. #ifdef HAVE_SYS_IOCCOM_H
  5327. #include <sys/ioccom.h>
  5328. #endif
  5329. #include <net/bpf.h>
  5330. #include <net/if.h>
  5331. int
  5332. main ()
  5333. {
  5334. u_int i = BIOCSETIF;
  5335. ;
  5336. return 0;
  5337. }
  5338. _ACEOF
  5339. if ac_fn_c_try_compile "$LINENO"; then :
  5340. ac_cv_lbl_bpf_h_defines_biocsetif=yes
  5341. else
  5342. ac_cv_lbl_bpf_h_defines_biocsetif=no
  5343. fi
  5344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5345. fi
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_bpf_h_defines_biocsetif" >&5
  5347. $as_echo "$ac_cv_lbl_bpf_h_defines_biocsetif" >&6; }
  5348. fi
  5349. for ac_header in net/pfilt.h net/enet.h
  5350. do :
  5351. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5352. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5353. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5354. cat >>confdefs.h <<_ACEOF
  5355. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5356. _ACEOF
  5357. fi
  5358. done
  5359. for ac_header in net/nit.h sys/net/nit.h
  5360. do :
  5361. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5362. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5363. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5364. cat >>confdefs.h <<_ACEOF
  5365. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5366. _ACEOF
  5367. fi
  5368. done
  5369. for ac_header in linux/socket.h net/raw.h sys/dlpi.h
  5370. do :
  5371. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5372. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5373. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5374. cat >>confdefs.h <<_ACEOF
  5375. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5376. _ACEOF
  5377. fi
  5378. done
  5379. if test "$ac_cv_lbl_bpf_h_defines_biocsetif" = yes; then
  5380. #
  5381. # BPF.
  5382. # Check this before DLPI, so that we pick BPF on
  5383. # Solaris 11 and later.
  5384. #
  5385. V_PCAP=bpf
  5386. #
  5387. # We have BPF, so build valgrindtest with "make test"
  5388. # on macOS and FreeBSD (add your OS once there's a
  5389. # valgrind for it).
  5390. #
  5391. case "$host_os" in
  5392. freebsd*|darwin*|linux*)
  5393. VALGRINDTEST_SRC=valgrindtest.c
  5394. ;;
  5395. esac
  5396. elif test "$ac_cv_header_linux_socket_h" = yes; then
  5397. #
  5398. # No prizes for guessing this one.
  5399. #
  5400. V_PCAP=linux
  5401. #
  5402. # XXX - this won't work with older kernels that have
  5403. # SOCK_PACKET sockets but not PF_PACKET sockets.
  5404. #
  5405. VALGRINDTEST_SRC=valgrindtest.c
  5406. elif test "$ac_cv_header_net_pfilt_h" = yes; then
  5407. #
  5408. # DEC OSF/1, Digital UNIX, Tru64 UNIX
  5409. #
  5410. V_PCAP=pf
  5411. elif test "$ac_cv_header_net_enet_h" = yes; then
  5412. #
  5413. # Stanford Enetfilter.
  5414. #
  5415. V_PCAP=enet
  5416. elif test "$ac_cv_header_net_nit_h" = yes; then
  5417. #
  5418. # SunOS 4.x STREAMS NIT.
  5419. #
  5420. V_PCAP=snit
  5421. elif test "$ac_cv_header_sys_net_nit_h" = yes; then
  5422. #
  5423. # Pre-SunOS 4.x non-STREAMS NIT.
  5424. #
  5425. V_PCAP=nit
  5426. elif test "$ac_cv_header_net_raw_h" = yes; then
  5427. #
  5428. # IRIX snoop.
  5429. #
  5430. V_PCAP=snoop
  5431. elif test "$ac_cv_header_sys_dlpi_h" = yes; then
  5432. #
  5433. # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
  5434. #
  5435. V_PCAP=dlpi
  5436. else
  5437. #
  5438. # Nothing we support.
  5439. #
  5440. V_PCAP=null
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
  5442. $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
  5444. $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
  5445. fi
  5446. fi
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
  5448. $as_echo_n "checking packet capture type... " >&6; }
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
  5450. $as_echo "$V_PCAP" >&6; }
  5451. #
  5452. # Do capture-mechanism-dependent tests.
  5453. #
  5454. case "$V_PCAP" in
  5455. dlpi)
  5456. #
  5457. # Needed for common functions used by pcap-[dlpi,libdlpi].c
  5458. #
  5459. SSRC="dlpisubs.c"
  5460. #
  5461. # Checks for some header files.
  5462. #
  5463. for ac_header in sys/bufmod.h sys/dlpi_ext.h
  5464. do :
  5465. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5466. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5467. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5468. cat >>confdefs.h <<_ACEOF
  5469. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5470. _ACEOF
  5471. fi
  5472. done
  5473. #
  5474. # Checks to see if Solaris has the public libdlpi(3LIB) library.
  5475. # Note: The existence of /usr/include/libdlpi.h does not mean it is the
  5476. # public libdlpi(3LIB) version. Before libdlpi was made public, a
  5477. # private version also existed, which did not have the same APIs.
  5478. # Due to a gcc bug, the default search path for 32-bit libraries does
  5479. # not include /lib, we add it explicitly here.
  5480. # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
  5481. # Also, due to the bug above applications that link to libpcap with
  5482. # libdlpi will have to add "-L/lib" option to "configure".
  5483. #
  5484. saved_ldflags=$LDFLAGS
  5485. LDFLAGS="$LIBS -L/lib"
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
  5487. $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
  5488. if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
  5489. $as_echo_n "(cached) " >&6
  5490. else
  5491. ac_check_lib_save_LIBS=$LIBS
  5492. LIBS="-ldlpi $LIBS"
  5493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5494. /* end confdefs.h. */
  5495. /* Override any GCC internal prototype to avoid an error.
  5496. Use char because int might match the return type of a GCC
  5497. builtin and then its argument prototype would still apply. */
  5498. #ifdef __cplusplus
  5499. extern "C"
  5500. #endif
  5501. char dlpi_walk ();
  5502. int
  5503. main ()
  5504. {
  5505. return dlpi_walk ();
  5506. ;
  5507. return 0;
  5508. }
  5509. _ACEOF
  5510. if ac_fn_c_try_link "$LINENO"; then :
  5511. ac_cv_lib_dlpi_dlpi_walk=yes
  5512. else
  5513. ac_cv_lib_dlpi_dlpi_walk=no
  5514. fi
  5515. rm -f core conftest.err conftest.$ac_objext \
  5516. conftest$ac_exeext conftest.$ac_ext
  5517. LIBS=$ac_check_lib_save_LIBS
  5518. fi
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
  5520. $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
  5521. if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
  5522. LIBS="-ldlpi $LIBS"
  5523. V_PCAP=libdlpi
  5524. $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
  5525. else
  5526. V_PCAP=dlpi
  5527. fi
  5528. LDFLAGS=$saved_ldflags
  5529. #
  5530. # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
  5531. # versions of DLPI.
  5532. #
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
  5534. $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
  5535. if ${ac_cv_sys_dlpi_usable+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5539. /* end confdefs.h. */
  5540. #include <sys/types.h>
  5541. #include <sys/time.h>
  5542. #include <sys/dlpi.h>
  5543. int
  5544. main ()
  5545. {
  5546. int i = DL_PROMISC_PHYS;
  5547. ;
  5548. return 0;
  5549. }
  5550. _ACEOF
  5551. if ac_fn_c_try_compile "$LINENO"; then :
  5552. ac_cv_sys_dlpi_usable=yes
  5553. else
  5554. ac_cv_sys_dlpi_usable=no
  5555. fi
  5556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5557. fi
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
  5559. $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
  5560. if test $ac_cv_sys_dlpi_usable = no ; then
  5561. as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
  5562. fi
  5563. #
  5564. # Check to see if Solaris has the dl_passive_req_t struct defined
  5565. # in <sys/dlpi.h>.
  5566. # This check is for DLPI support for passive modes.
  5567. # See dlpi(7P) for more details.
  5568. #
  5569. ac_fn_c_check_type "$LINENO" "dl_passive_req_t" "ac_cv_type_dl_passive_req_t" "
  5570. #include <sys/types.h>
  5571. #include <sys/dlpi.h>
  5572. "
  5573. if test "x$ac_cv_type_dl_passive_req_t" = xyes; then :
  5574. cat >>confdefs.h <<_ACEOF
  5575. #define HAVE_DL_PASSIVE_REQ_T 1
  5576. _ACEOF
  5577. fi
  5578. ;;
  5579. linux)
  5580. #
  5581. # Do we have the wireless extensions?
  5582. #
  5583. for ac_header in linux/wireless.h
  5584. do :
  5585. ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
  5586. #include <sys/socket.h>
  5587. #include <linux/if.h>
  5588. #include <linux/types.h>
  5589. "
  5590. if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
  5591. cat >>confdefs.h <<_ACEOF
  5592. #define HAVE_LINUX_WIRELESS_H 1
  5593. _ACEOF
  5594. fi
  5595. done
  5596. #
  5597. # Do we have libnl?
  5598. #
  5599. # Check whether --with-libnl was given.
  5600. if test "${with_libnl+set}" = set; then :
  5601. withval=$with_libnl; with_libnl=$withval
  5602. else
  5603. with_libnl=if_available
  5604. fi
  5605. if test x$with_libnl != xno ; then
  5606. have_any_nl="no"
  5607. incdir=-I/usr/include/libnl3
  5608. libnldir=
  5609. case "$with_libnl" in
  5610. yes|if_available)
  5611. ;;
  5612. *)
  5613. if test -d $withval; then
  5614. libnldir=-L${withval}/lib/.libs
  5615. incdir=-I${withval}/include
  5616. fi
  5617. ;;
  5618. esac
  5619. #
  5620. # Try libnl 3.x first.
  5621. #
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
  5623. $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
  5624. if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false; then :
  5625. $as_echo_n "(cached) " >&6
  5626. else
  5627. ac_check_lib_save_LIBS=$LIBS
  5628. LIBS="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
  5629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5630. /* end confdefs.h. */
  5631. /* Override any GCC internal prototype to avoid an error.
  5632. Use char because int might match the return type of a GCC
  5633. builtin and then its argument prototype would still apply. */
  5634. #ifdef __cplusplus
  5635. extern "C"
  5636. #endif
  5637. char nl_socket_alloc ();
  5638. int
  5639. main ()
  5640. {
  5641. return nl_socket_alloc ();
  5642. ;
  5643. return 0;
  5644. }
  5645. _ACEOF
  5646. if ac_fn_c_try_link "$LINENO"; then :
  5647. ac_cv_lib_nl_3_nl_socket_alloc=yes
  5648. else
  5649. ac_cv_lib_nl_3_nl_socket_alloc=no
  5650. fi
  5651. rm -f core conftest.err conftest.$ac_objext \
  5652. conftest$ac_exeext conftest.$ac_ext
  5653. LIBS=$ac_check_lib_save_LIBS
  5654. fi
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
  5656. $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
  5657. if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes; then :
  5658. #
  5659. # Yes, we have libnl 3.x.
  5660. #
  5661. LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
  5662. $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
  5663. $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
  5664. $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
  5665. $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
  5666. V_INCLS="$V_INCLS ${incdir}"
  5667. have_any_nl="yes"
  5668. fi
  5669. if test x$have_any_nl = xno ; then
  5670. #
  5671. # Try libnl 2.x
  5672. #
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
  5674. $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
  5675. if ${ac_cv_lib_nl_nl_socket_alloc+:} false; then :
  5676. $as_echo_n "(cached) " >&6
  5677. else
  5678. ac_check_lib_save_LIBS=$LIBS
  5679. LIBS="-lnl $LIBS"
  5680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5681. /* end confdefs.h. */
  5682. /* Override any GCC internal prototype to avoid an error.
  5683. Use char because int might match the return type of a GCC
  5684. builtin and then its argument prototype would still apply. */
  5685. #ifdef __cplusplus
  5686. extern "C"
  5687. #endif
  5688. char nl_socket_alloc ();
  5689. int
  5690. main ()
  5691. {
  5692. return nl_socket_alloc ();
  5693. ;
  5694. return 0;
  5695. }
  5696. _ACEOF
  5697. if ac_fn_c_try_link "$LINENO"; then :
  5698. ac_cv_lib_nl_nl_socket_alloc=yes
  5699. else
  5700. ac_cv_lib_nl_nl_socket_alloc=no
  5701. fi
  5702. rm -f core conftest.err conftest.$ac_objext \
  5703. conftest$ac_exeext conftest.$ac_ext
  5704. LIBS=$ac_check_lib_save_LIBS
  5705. fi
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
  5707. $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
  5708. if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes; then :
  5709. #
  5710. # Yes, we have libnl 2.x.
  5711. #
  5712. LIBS="${libnldir} -lnl-genl -lnl $LIBS"
  5713. $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
  5714. $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
  5715. $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
  5716. $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
  5717. have_any_nl="yes"
  5718. fi
  5719. fi
  5720. if test x$have_any_nl = xno ; then
  5721. #
  5722. # No, we don't; do we have libnl 1.x?
  5723. #
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
  5725. $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
  5726. if ${ac_cv_lib_nl_nl_handle_alloc+:} false; then :
  5727. $as_echo_n "(cached) " >&6
  5728. else
  5729. ac_check_lib_save_LIBS=$LIBS
  5730. LIBS="-lnl $LIBS"
  5731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5732. /* end confdefs.h. */
  5733. /* Override any GCC internal prototype to avoid an error.
  5734. Use char because int might match the return type of a GCC
  5735. builtin and then its argument prototype would still apply. */
  5736. #ifdef __cplusplus
  5737. extern "C"
  5738. #endif
  5739. char nl_handle_alloc ();
  5740. int
  5741. main ()
  5742. {
  5743. return nl_handle_alloc ();
  5744. ;
  5745. return 0;
  5746. }
  5747. _ACEOF
  5748. if ac_fn_c_try_link "$LINENO"; then :
  5749. ac_cv_lib_nl_nl_handle_alloc=yes
  5750. else
  5751. ac_cv_lib_nl_nl_handle_alloc=no
  5752. fi
  5753. rm -f core conftest.err conftest.$ac_objext \
  5754. conftest$ac_exeext conftest.$ac_ext
  5755. LIBS=$ac_check_lib_save_LIBS
  5756. fi
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
  5758. $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
  5759. if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes; then :
  5760. #
  5761. # Yes.
  5762. #
  5763. LIBS="${libnldir} -lnl $LIBS"
  5764. $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
  5765. have_any_nl="yes"
  5766. fi
  5767. fi
  5768. if test x$have_any_nl = xno ; then
  5769. #
  5770. # No, we don't have libnl at all.
  5771. #
  5772. if test x$with_libnl = xyes ; then
  5773. as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
  5774. fi
  5775. fi
  5776. fi
  5777. for ac_header in linux/ethtool.h
  5778. do :
  5779. ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
  5780. $ac_includes_default
  5781. #include <linux/types.h>
  5782. "
  5783. if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
  5784. cat >>confdefs.h <<_ACEOF
  5785. #define HAVE_LINUX_ETHTOOL_H 1
  5786. _ACEOF
  5787. fi
  5788. done
  5789. #
  5790. # Check to see if struct tpacket_stats is defined in
  5791. # <linux/if_packet.h>. If so, then pcap-linux.c can use this
  5792. # to report proper statistics.
  5793. #
  5794. # -Scott Barron
  5795. #
  5796. ac_fn_c_check_type "$LINENO" "struct tpacket_stats" "ac_cv_type_struct_tpacket_stats" "
  5797. #include <linux/if_packet.h>
  5798. "
  5799. if test "x$ac_cv_type_struct_tpacket_stats" = xyes; then :
  5800. cat >>confdefs.h <<_ACEOF
  5801. #define HAVE_STRUCT_TPACKET_STATS 1
  5802. _ACEOF
  5803. fi
  5804. #
  5805. # Check to see if the tpacket_auxdata struct has a tp_vlan_tci member.
  5806. #
  5807. # NOTE: any failure means we conclude that it doesn't have that
  5808. # member, so if we don't have tpacket_auxdata, we conclude it
  5809. # doesn't have that member (which is OK, as either we won't be
  5810. # using code that would use that member, or we wouldn't compile
  5811. # in any case).
  5812. ac_fn_c_check_member "$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "
  5813. #include <sys/types.h>
  5814. #include <linux/if_packet.h>
  5815. "
  5816. if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes; then :
  5817. cat >>confdefs.h <<_ACEOF
  5818. #define HAVE_STRUCT_TPACKET_AUXDATA_TP_VLAN_TCI 1
  5819. _ACEOF
  5820. fi
  5821. ;;
  5822. bpf)
  5823. #
  5824. # Check whether we have the *BSD-style ioctls.
  5825. #
  5826. for ac_header in net/if_media.h
  5827. do :
  5828. ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
  5829. if test "x$ac_cv_header_net_if_media_h" = xyes; then :
  5830. cat >>confdefs.h <<_ACEOF
  5831. #define HAVE_NET_IF_MEDIA_H 1
  5832. _ACEOF
  5833. fi
  5834. done
  5835. #
  5836. # Check whether we have struct BPF_TIMEVAL.
  5837. #
  5838. ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
  5839. #include <sys/types.h>
  5840. #include <sys/ioctl.h>
  5841. #ifdef HAVE_SYS_IOCCOM_H
  5842. #include <sys/ioccom.h>
  5843. #endif
  5844. #include <net/bpf.h>
  5845. "
  5846. if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes; then :
  5847. cat >>confdefs.h <<_ACEOF
  5848. #define HAVE_STRUCT_BPF_TIMEVAL 1
  5849. _ACEOF
  5850. fi
  5851. ;;
  5852. dag)
  5853. #
  5854. # --with-pcap=dag is the only way to get here, and it means
  5855. # "DAG support but nothing else"
  5856. #
  5857. V_DEFS="$V_DEFS -DDAG_ONLY"
  5858. xxx_only=yes
  5859. ;;
  5860. septel)
  5861. #
  5862. # --with-pcap=septel is the only way to get here, and it means
  5863. # "Septel support but nothing else"
  5864. #
  5865. V_DEFS="$V_DEFS -DSEPTEL_ONLY"
  5866. xxx_only=yes
  5867. ;;
  5868. snf)
  5869. #
  5870. # --with-pcap=snf is the only way to get here, and it means
  5871. # "SNF support but nothing else"
  5872. #
  5873. V_DEFS="$V_DEFS -DSNF_ONLY"
  5874. xxx_only=yes
  5875. ;;
  5876. null)
  5877. ;;
  5878. *)
  5879. as_fn_error $? "$V_PCAP is not a valid pcap type" "$LINENO" 5
  5880. ;;
  5881. esac
  5882. if test "$V_PCAP" != null
  5883. then
  5884. ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
  5885. if test "x$ac_cv_func_getifaddrs" = xyes; then :
  5886. #
  5887. # We have "getifaddrs()"; make sure we have <ifaddrs.h>
  5888. # as well, just in case some platform is really weird.
  5889. #
  5890. ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
  5891. if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
  5892. #
  5893. # We have the header, so we use "getifaddrs()" to
  5894. # get the list of interfaces.
  5895. #
  5896. V_FINDALLDEVS=fad-getad.c
  5897. else
  5898. #
  5899. # We don't have the header - give up.
  5900. # XXX - we could also fall back on some other
  5901. # mechanism, but, for now, this'll catch this
  5902. # problem so that we can at least try to figure
  5903. # out something to do on systems with "getifaddrs()"
  5904. # but without "ifaddrs.h", if there is something
  5905. # we can do on those systems.
  5906. #
  5907. as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
  5908. fi
  5909. else
  5910. #
  5911. # Well, we don't have "getifaddrs()", at least not with the
  5912. # libraries with which we've decided we need to link
  5913. # libpcap with, so we have to use some other mechanism.
  5914. #
  5915. # Note that this may happen on Solaris, which has
  5916. # getifaddrs(), but in -lsocket, not in -lxnet, so we
  5917. # won't find it if we link with -lxnet, which we want
  5918. # to do for other reasons.
  5919. #
  5920. # For now, we use either the SIOCGIFCONF ioctl or the
  5921. # SIOCGLIFCONF ioctl, preferring the latter if we have
  5922. # it; the latter is a Solarisism that first appeared
  5923. # in Solaris 8. (Solaris's getifaddrs() appears to
  5924. # be built atop SIOCGLIFCONF; using it directly
  5925. # avoids a not-all-that-useful middleman.)
  5926. #
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
  5928. $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
  5929. if ${ac_cv_lbl_have_siocglifconf+:} false; then :
  5930. $as_echo_n "(cached) " >&6
  5931. else
  5932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5933. /* end confdefs.h. */
  5934. #include <sys/param.h>
  5935. #include <sys/file.h>
  5936. #include <sys/ioctl.h>
  5937. #include <sys/socket.h>
  5938. #include <sys/sockio.h>
  5939. int
  5940. main ()
  5941. {
  5942. ioctl(0, SIOCGLIFCONF, (char *)0);
  5943. ;
  5944. return 0;
  5945. }
  5946. _ACEOF
  5947. if ac_fn_c_try_compile "$LINENO"; then :
  5948. ac_cv_lbl_have_siocglifconf=yes
  5949. else
  5950. ac_cv_lbl_have_siocglifconf=no
  5951. fi
  5952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5953. fi
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
  5955. $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
  5956. if test $ac_cv_lbl_have_siocglifconf = yes ; then
  5957. V_FINDALLDEVS=fad-glifc.c
  5958. else
  5959. V_FINDALLDEVS=fad-gifc.c
  5960. fi
  5961. fi
  5962. fi
  5963. fi
  5964. case "$host_os" in
  5965. linux*)
  5966. for ac_header in linux/net_tstamp.h
  5967. do :
  5968. ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
  5969. if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
  5970. cat >>confdefs.h <<_ACEOF
  5971. #define HAVE_LINUX_NET_TSTAMP_H 1
  5972. _ACEOF
  5973. fi
  5974. done
  5975. ;;
  5976. *)
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
  5978. $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
  5979. ;;
  5980. esac
  5981. # Check whether --enable-packet-ring was given.
  5982. if test "${enable_packet_ring+set}" = set; then :
  5983. enableval=$enable_packet_ring;
  5984. else
  5985. enable_packet_ring=yes
  5986. fi
  5987. if test "x$enable_packet_ring" != "xno" ; then
  5988. $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
  5989. fi
  5990. #
  5991. # Check for socklen_t.
  5992. #
  5993. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  5994. #include <sys/types.h>
  5995. #include <sys/socket.h>
  5996. "
  5997. if test "x$ac_cv_type_socklen_t" = xyes; then :
  5998. cat >>confdefs.h <<_ACEOF
  5999. #define HAVE_SOCKLEN_T 1
  6000. _ACEOF
  6001. fi
  6002. # Check whether --enable-ipv6 was given.
  6003. if test "${enable_ipv6+set}" = set; then :
  6004. enableval=$enable_ipv6;
  6005. else
  6006. enable_ipv6=yes
  6007. fi
  6008. if test "$enable_ipv6" != "no"; then
  6009. #
  6010. # We've already made sure we have getaddrinfo above in
  6011. # AC_LBL_LIBRARY_NET.
  6012. #
  6013. $as_echo "#define INET6 1" >>confdefs.h
  6014. fi
  6015. # Check for Endace DAG card support.
  6016. # Check whether --with-dag was given.
  6017. if test "${with_dag+set}" = set; then :
  6018. withval=$with_dag;
  6019. if test "$withval" = no
  6020. then
  6021. # User doesn't want DAG support.
  6022. want_dag=no
  6023. elif test "$withval" = yes
  6024. then
  6025. # User wants DAG support but hasn't specified a directory.
  6026. want_dag=yes
  6027. else
  6028. # User wants DAG support and has specified a directory, so use the provided value.
  6029. want_dag=yes
  6030. dag_root=$withval
  6031. fi
  6032. else
  6033. if test "$V_PCAP" = dag; then
  6034. # User requested DAG-only libpcap, so we'd better have
  6035. # the DAG API.
  6036. want_dag=yes
  6037. elif test "xxx_only" = yes; then
  6038. # User requested something-else-only pcap, so they don't
  6039. # want DAG support.
  6040. want_dag=no
  6041. else
  6042. #
  6043. # Use DAG API if present, otherwise don't
  6044. #
  6045. want_dag=ifpresent
  6046. fi
  6047. fi
  6048. # Check whether --with-dag-includes was given.
  6049. if test "${with_dag_includes+set}" = set; then :
  6050. withval=$with_dag_includes;
  6051. # User wants DAG support and has specified a header directory, so use the provided value.
  6052. want_dag=yes
  6053. dag_include_dir=$withval
  6054. fi
  6055. # Check whether --with-dag-libraries was given.
  6056. if test "${with_dag_libraries+set}" = set; then :
  6057. withval=$with_dag_libraries;
  6058. # User wants DAG support and has specified a library directory, so use the provided value.
  6059. want_dag=yes
  6060. dag_lib_dir=$withval
  6061. fi
  6062. if test "$want_dag" != no; then
  6063. # If necessary, set default paths for DAG API headers and libraries.
  6064. if test -z "$dag_root"; then
  6065. dag_root=/usr/local
  6066. fi
  6067. if test -z "$dag_include_dir"; then
  6068. dag_include_dir="$dag_root/include"
  6069. fi
  6070. if test -z "$dag_lib_dir"; then
  6071. dag_lib_dir="$dag_root/lib"
  6072. fi
  6073. V_INCLS="$V_INCLS -I$dag_include_dir"
  6074. for ac_header in dagapi.h
  6075. do :
  6076. ac_fn_c_check_header_mongrel "$LINENO" "dagapi.h" "ac_cv_header_dagapi_h" "$ac_includes_default"
  6077. if test "x$ac_cv_header_dagapi_h" = xyes; then :
  6078. cat >>confdefs.h <<_ACEOF
  6079. #define HAVE_DAGAPI_H 1
  6080. _ACEOF
  6081. fi
  6082. done
  6083. if test "$ac_cv_header_dagapi_h" = yes; then
  6084. if test $V_PCAP != dag ; then
  6085. SSRC="$SSRC pcap-dag.c"
  6086. fi
  6087. # Check for various DAG API functions.
  6088. # Don't need to save and restore LIBS to prevent -ldag being
  6089. # included if there's a found-action (arg 3).
  6090. saved_ldflags=$LDFLAGS
  6091. LDFLAGS="-L$dag_lib_dir"
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
  6093. $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
  6094. if ${ac_cv_lib_dag_dag_attach_stream+:} false; then :
  6095. $as_echo_n "(cached) " >&6
  6096. else
  6097. ac_check_lib_save_LIBS=$LIBS
  6098. LIBS="-ldag $LIBS"
  6099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6100. /* end confdefs.h. */
  6101. /* Override any GCC internal prototype to avoid an error.
  6102. Use char because int might match the return type of a GCC
  6103. builtin and then its argument prototype would still apply. */
  6104. #ifdef __cplusplus
  6105. extern "C"
  6106. #endif
  6107. char dag_attach_stream ();
  6108. int
  6109. main ()
  6110. {
  6111. return dag_attach_stream ();
  6112. ;
  6113. return 0;
  6114. }
  6115. _ACEOF
  6116. if ac_fn_c_try_link "$LINENO"; then :
  6117. ac_cv_lib_dag_dag_attach_stream=yes
  6118. else
  6119. ac_cv_lib_dag_dag_attach_stream=no
  6120. fi
  6121. rm -f core conftest.err conftest.$ac_objext \
  6122. conftest$ac_exeext conftest.$ac_ext
  6123. LIBS=$ac_check_lib_save_LIBS
  6124. fi
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
  6126. $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
  6127. if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes; then :
  6128. cat >>confdefs.h <<_ACEOF
  6129. #define HAVE_LIBDAG 1
  6130. _ACEOF
  6131. LIBS="-ldag $LIBS"
  6132. else
  6133. as_fn_error $? "DAG library lacks streams support" "$LINENO" 5
  6134. fi
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
  6136. $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
  6137. if ${ac_cv_lib_dag_dag_attach_stream64+:} false; then :
  6138. $as_echo_n "(cached) " >&6
  6139. else
  6140. ac_check_lib_save_LIBS=$LIBS
  6141. LIBS="-ldag $LIBS"
  6142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6143. /* end confdefs.h. */
  6144. /* Override any GCC internal prototype to avoid an error.
  6145. Use char because int might match the return type of a GCC
  6146. builtin and then its argument prototype would still apply. */
  6147. #ifdef __cplusplus
  6148. extern "C"
  6149. #endif
  6150. char dag_attach_stream64 ();
  6151. int
  6152. main ()
  6153. {
  6154. return dag_attach_stream64 ();
  6155. ;
  6156. return 0;
  6157. }
  6158. _ACEOF
  6159. if ac_fn_c_try_link "$LINENO"; then :
  6160. ac_cv_lib_dag_dag_attach_stream64=yes
  6161. else
  6162. ac_cv_lib_dag_dag_attach_stream64=no
  6163. fi
  6164. rm -f core conftest.err conftest.$ac_objext \
  6165. conftest$ac_exeext conftest.$ac_ext
  6166. LIBS=$ac_check_lib_save_LIBS
  6167. fi
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
  6169. $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
  6170. if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes; then :
  6171. dag_large_streams="1"
  6172. else
  6173. dag_large_streams="0"
  6174. fi
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
  6176. $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
  6177. if ${ac_cv_lib_dag_dag_get_erf_types+:} false; then :
  6178. $as_echo_n "(cached) " >&6
  6179. else
  6180. ac_check_lib_save_LIBS=$LIBS
  6181. LIBS="-ldag $LIBS"
  6182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6183. /* end confdefs.h. */
  6184. /* Override any GCC internal prototype to avoid an error.
  6185. Use char because int might match the return type of a GCC
  6186. builtin and then its argument prototype would still apply. */
  6187. #ifdef __cplusplus
  6188. extern "C"
  6189. #endif
  6190. char dag_get_erf_types ();
  6191. int
  6192. main ()
  6193. {
  6194. return dag_get_erf_types ();
  6195. ;
  6196. return 0;
  6197. }
  6198. _ACEOF
  6199. if ac_fn_c_try_link "$LINENO"; then :
  6200. ac_cv_lib_dag_dag_get_erf_types=yes
  6201. else
  6202. ac_cv_lib_dag_dag_get_erf_types=no
  6203. fi
  6204. rm -f core conftest.err conftest.$ac_objext \
  6205. conftest$ac_exeext conftest.$ac_ext
  6206. LIBS=$ac_check_lib_save_LIBS
  6207. fi
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
  6209. $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
  6210. if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes; then :
  6211. $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
  6212. fi
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
  6214. $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
  6215. if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false; then :
  6216. $as_echo_n "(cached) " >&6
  6217. else
  6218. ac_check_lib_save_LIBS=$LIBS
  6219. LIBS="-ldag $LIBS"
  6220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6221. /* end confdefs.h. */
  6222. /* Override any GCC internal prototype to avoid an error.
  6223. Use char because int might match the return type of a GCC
  6224. builtin and then its argument prototype would still apply. */
  6225. #ifdef __cplusplus
  6226. extern "C"
  6227. #endif
  6228. char dag_get_stream_erf_types ();
  6229. int
  6230. main ()
  6231. {
  6232. return dag_get_stream_erf_types ();
  6233. ;
  6234. return 0;
  6235. }
  6236. _ACEOF
  6237. if ac_fn_c_try_link "$LINENO"; then :
  6238. ac_cv_lib_dag_dag_get_stream_erf_types=yes
  6239. else
  6240. ac_cv_lib_dag_dag_get_stream_erf_types=no
  6241. fi
  6242. rm -f core conftest.err conftest.$ac_objext \
  6243. conftest$ac_exeext conftest.$ac_ext
  6244. LIBS=$ac_check_lib_save_LIBS
  6245. fi
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
  6247. $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
  6248. if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes; then :
  6249. $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
  6250. fi
  6251. LDFLAGS=$saved_ldflags
  6252. #
  6253. # We assume that if we have libdag we have libdagconf,
  6254. # as they're installed at the same time from the same
  6255. # package.
  6256. #
  6257. LIBS="$LIBS -ldag -ldagconf"
  6258. LDFLAGS="$LDFLAGS -L$dag_lib_dir"
  6259. if test "$dag_large_streams" = 1; then
  6260. $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
  6262. $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
  6263. if ${ac_cv_lib_vdag_vdag_set_device_info+:} false; then :
  6264. $as_echo_n "(cached) " >&6
  6265. else
  6266. ac_check_lib_save_LIBS=$LIBS
  6267. LIBS="-lvdag $LIBS"
  6268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6269. /* end confdefs.h. */
  6270. /* Override any GCC internal prototype to avoid an error.
  6271. Use char because int might match the return type of a GCC
  6272. builtin and then its argument prototype would still apply. */
  6273. #ifdef __cplusplus
  6274. extern "C"
  6275. #endif
  6276. char vdag_set_device_info ();
  6277. int
  6278. main ()
  6279. {
  6280. return vdag_set_device_info ();
  6281. ;
  6282. return 0;
  6283. }
  6284. _ACEOF
  6285. if ac_fn_c_try_link "$LINENO"; then :
  6286. ac_cv_lib_vdag_vdag_set_device_info=yes
  6287. else
  6288. ac_cv_lib_vdag_vdag_set_device_info=no
  6289. fi
  6290. rm -f core conftest.err conftest.$ac_objext \
  6291. conftest$ac_exeext conftest.$ac_ext
  6292. LIBS=$ac_check_lib_save_LIBS
  6293. fi
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
  6295. $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
  6296. if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes; then :
  6297. ac_dag_have_vdag="1"
  6298. else
  6299. ac_dag_have_vdag="0"
  6300. fi
  6301. if test "$ac_dag_have_vdag" = 1; then
  6302. $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
  6303. if test "$ac_lbl_have_pthreads" != "found"; then
  6304. as_fn_error $? "DAG requires pthreads, but we didn't find them" "$LINENO" 5
  6305. fi
  6306. LIBS="$LIBS $PTHREAD_LIBS"
  6307. fi
  6308. fi
  6309. $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
  6310. else
  6311. if test "$V_PCAP" = dag; then
  6312. # User requested "dag" capture type but we couldn't
  6313. # find the DAG API support.
  6314. as_fn_error $? "DAG support requested with --with-pcap=dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
  6315. fi
  6316. if test "$want_dag" = yes; then
  6317. # User wanted DAG support but we couldn't find it.
  6318. as_fn_error $? "DAG support requested with --with-dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
  6319. fi
  6320. fi
  6321. fi
  6322. # Check whether --with-septel was given.
  6323. if test "${with_septel+set}" = set; then :
  6324. withval=$with_septel;
  6325. if test "$withval" = no
  6326. then
  6327. want_septel=no
  6328. elif test "$withval" = yes
  6329. then
  6330. want_septel=yes
  6331. septel_root=
  6332. else
  6333. want_septel=yes
  6334. septel_root=$withval
  6335. fi
  6336. else
  6337. if test "$V_PCAP" = septel; then
  6338. # User requested Septel-only libpcap, so we'd better have
  6339. # the Septel API.
  6340. want_septel=yes
  6341. elif test "xxx_only" = yes; then
  6342. # User requested something-else-only pcap, so they don't
  6343. # want Septel support.
  6344. want_septel=no
  6345. else
  6346. #
  6347. # Use Septel API if present, otherwise don't
  6348. #
  6349. want_septel=ifpresent
  6350. fi
  6351. fi
  6352. ac_cv_lbl_septel_api=no
  6353. if test "$with_septel" != no; then
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
  6355. $as_echo_n "checking whether we have Septel API headers... " >&6; }
  6356. # If necessary, set default paths for Septel API headers and libraries.
  6357. if test -z "$septel_root"; then
  6358. septel_root=$srcdir/../septel
  6359. fi
  6360. septel_tools_dir="$septel_root"
  6361. septel_include_dir="$septel_root/INC"
  6362. if test -r "$septel_include_dir/msg.h"; then
  6363. ac_cv_lbl_septel_api=yes
  6364. fi
  6365. if test "$ac_cv_lbl_septel_api" = yes; then
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
  6367. $as_echo "yes ($septel_include_dir)" >&6; }
  6368. V_INCLS="$V_INCLS -I$septel_include_dir"
  6369. ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
  6370. ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
  6371. if test "$V_PCAP" != septel ; then
  6372. SSRC="$SSRC pcap-septel.c"
  6373. fi
  6374. $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
  6375. else
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6377. $as_echo "no" >&6; }
  6378. if test "$V_PCAP" = septel; then
  6379. # User requested "septel" capture type but
  6380. # we couldn't find the Septel API support.
  6381. as_fn_error $? "Septel support requested with --with-pcap=septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
  6382. fi
  6383. if test "$want_septel" = yes; then
  6384. # User wanted Septel support but we couldn't find it.
  6385. as_fn_error $? "Septel support requested with --with-septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
  6386. fi
  6387. fi
  6388. fi
  6389. # Check for Myricom SNF support.
  6390. # Check whether --with-snf was given.
  6391. if test "${with_snf+set}" = set; then :
  6392. withval=$with_snf;
  6393. if test "$withval" = no
  6394. then
  6395. # User explicitly doesn't want SNF
  6396. want_snf=no
  6397. elif test "$withval" = yes
  6398. then
  6399. # User wants SNF support but hasn't specified a directory.
  6400. want_snf=yes
  6401. else
  6402. # User wants SNF support with a specified directory.
  6403. want_snf=yes
  6404. snf_root=$withval
  6405. fi
  6406. else
  6407. if test "$V_PCAP" = snf; then
  6408. # User requested Sniffer-only libpcap, so we'd better have
  6409. # the Sniffer API.
  6410. want_snf=yes
  6411. elif test "xxx_only" = yes; then
  6412. # User requested something-else-only pcap, so they don't
  6413. # want SNF support.
  6414. want_snf=no
  6415. else
  6416. #
  6417. # Use Sniffer API if present, otherwise don't
  6418. #
  6419. want_snf=ifpresent
  6420. fi
  6421. fi
  6422. # Check whether --with-snf-includes was given.
  6423. if test "${with_snf_includes+set}" = set; then :
  6424. withval=$with_snf_includes;
  6425. # User wants SNF with specific header directory
  6426. want_snf=yes
  6427. snf_include_dir=$withval
  6428. fi
  6429. # Check whether --with-snf-libraries was given.
  6430. if test "${with_snf_libraries+set}" = set; then :
  6431. withval=$with_snf_libraries;
  6432. # User wants SNF with specific lib directory
  6433. want_snf=yes
  6434. snf_lib_dir=$withval
  6435. fi
  6436. ac_cv_lbl_snf_api=no
  6437. if test "$with_snf" != no; then
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
  6439. $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
  6440. # If necessary, set default paths for Sniffer headers and libraries.
  6441. if test -z "$snf_root"; then
  6442. snf_root=/opt/snf
  6443. fi
  6444. if test -z "$snf_include_dir"; then
  6445. snf_include_dir="$snf_root/include"
  6446. fi
  6447. if test -z "$snf_lib_dir"; then
  6448. snf_lib_dir="$snf_root/lib"
  6449. fi
  6450. if test -f "$snf_include_dir/snf.h"; then
  6451. # We found a header; make sure we can link with the library
  6452. saved_ldflags=$LDFLAGS
  6453. LDFLAGS="$LDFLAGS -L$snf_lib_dir"
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
  6455. $as_echo_n "checking for snf_init in -lsnf... " >&6; }
  6456. if ${ac_cv_lib_snf_snf_init+:} false; then :
  6457. $as_echo_n "(cached) " >&6
  6458. else
  6459. ac_check_lib_save_LIBS=$LIBS
  6460. LIBS="-lsnf $LIBS"
  6461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6462. /* end confdefs.h. */
  6463. /* Override any GCC internal prototype to avoid an error.
  6464. Use char because int might match the return type of a GCC
  6465. builtin and then its argument prototype would still apply. */
  6466. #ifdef __cplusplus
  6467. extern "C"
  6468. #endif
  6469. char snf_init ();
  6470. int
  6471. main ()
  6472. {
  6473. return snf_init ();
  6474. ;
  6475. return 0;
  6476. }
  6477. _ACEOF
  6478. if ac_fn_c_try_link "$LINENO"; then :
  6479. ac_cv_lib_snf_snf_init=yes
  6480. else
  6481. ac_cv_lib_snf_snf_init=no
  6482. fi
  6483. rm -f core conftest.err conftest.$ac_objext \
  6484. conftest$ac_exeext conftest.$ac_ext
  6485. LIBS=$ac_check_lib_save_LIBS
  6486. fi
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
  6488. $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
  6489. if test "x$ac_cv_lib_snf_snf_init" = xyes; then :
  6490. ac_cv_lbl_snf_api="yes"
  6491. fi
  6492. LDFLAGS="$saved_ldflags"
  6493. if test "$ac_cv_lbl_snf_api" = no; then
  6494. as_fn_error $? "SNF API cannot correctly be linked; check config.log" "$LINENO" 5
  6495. fi
  6496. fi
  6497. if test "$ac_cv_lbl_snf_api" = yes; then
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
  6499. $as_echo "yes ($snf_root)" >&6; }
  6500. V_INCLS="$V_INCLS -I$snf_include_dir"
  6501. LIBS="$LIBS -lsnf"
  6502. LDFLAGS="$LDFLAGS -L$snf_lib_dir"
  6503. if test "$V_PCAP" != snf ; then
  6504. SSRC="$SSRC pcap-snf.c"
  6505. fi
  6506. $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
  6507. else
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6509. $as_echo "no" >&6; }
  6510. if test "$want_snf" = yes; then
  6511. # User requested "snf" capture type but
  6512. # we couldn't find the Sniffer API support.
  6513. as_fn_error $? "Myricom Sniffer support requested with --with-pcap=snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
  6514. fi
  6515. if test "$want_snf" = yes; then
  6516. as_fn_error $? "Myricom Sniffer support requested with --with-snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
  6517. fi
  6518. fi
  6519. fi
  6520. # Check for Riverbed TurboCap support.
  6521. # Check whether --with-turbocap was given.
  6522. if test "${with_turbocap+set}" = set; then :
  6523. withval=$with_turbocap;
  6524. if test "$withval" = no
  6525. then
  6526. # User explicitly doesn't want TurboCap
  6527. want_turbocap=no
  6528. elif test "$withval" = yes
  6529. then
  6530. # User wants TurboCap support but hasn't specified a directory.
  6531. want_turbocap=yes
  6532. else
  6533. # User wants TurboCap support with a specified directory.
  6534. want_turbocap=yes
  6535. turbocap_root=$withval
  6536. fi
  6537. else
  6538. if test "xxx_only" = yes; then
  6539. # User requested something-else-only pcap, so they don't
  6540. # want TurboCap support.
  6541. want_turbocap=no
  6542. else
  6543. #
  6544. # Use TurboCap API if present, otherwise don't
  6545. #
  6546. want_turbocap=ifpresent
  6547. fi
  6548. fi
  6549. ac_cv_lbl_turbocap_api=no
  6550. if test "$want_turbocap" != no; then
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
  6552. $as_echo_n "checking whether TurboCap is supported... " >&6; }
  6553. save_CFLAGS="$CFLAGS"
  6554. save_LIBS="$LIBS"
  6555. if test ! -z "$turbocap_root"; then
  6556. TURBOCAP_CFLAGS="-I$turbocap_root/include"
  6557. TURBOCAP_LIBS="-L$turbocap_root/lib"
  6558. CFLAGS="$CFLAGS $TURBOCAP_CFLAGS"
  6559. fi
  6560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6561. /* end confdefs.h. */
  6562. #include <TcApi.h>
  6563. int
  6564. main ()
  6565. {
  6566. TC_INSTANCE a; TC_PORT b; TC_BOARD c;
  6567. TC_INSTANCE i;
  6568. (void)TcInstanceCreateByName("foo", &i);
  6569. ;
  6570. return 0;
  6571. }
  6572. _ACEOF
  6573. if ac_fn_c_try_compile "$LINENO"; then :
  6574. ac_cv_lbl_turbocap_api=yes
  6575. fi
  6576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6577. CFLAGS="$save_CFLAGS"
  6578. if test $ac_cv_lbl_turbocap_api = yes; then
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6580. $as_echo "yes" >&6; }
  6581. SSRC="$SSRC pcap-tc.c"
  6582. V_INCLS="$V_INCLS $TURBOCAP_CFLAGS"
  6583. LIBS="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
  6584. $as_echo "#define HAVE_TC_API 1" >>confdefs.h
  6585. else
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6587. $as_echo "no" >&6; }
  6588. if test "$want_turbocap" = yes; then
  6589. # User wanted Turbo support but we couldn't find it.
  6590. as_fn_error $? "TurboCap support requested with --with-turbocap, but the TurboCap headers weren't found: make sure the TurboCap support is installed or don't request TurboCap support" "$LINENO" 5
  6591. fi
  6592. fi
  6593. fi
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
  6595. $as_echo_n "checking whether to enable remote packet capture... " >&6; }
  6596. # Check whether --enable-remote was given.
  6597. if test "${enable_remote+set}" = set; then :
  6598. enableval=$enable_remote;
  6599. else
  6600. enableval=no
  6601. fi
  6602. case "$enableval" in
  6603. yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6604. $as_echo "yes" >&6; }
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
  6606. $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
  6608. $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
  6609. #
  6610. # rpcapd requires pthreads on UN*X.
  6611. #
  6612. if test "$ac_lbl_have_pthreads" != "found"; then
  6613. as_fn_error $? "rpcapd requires pthreads, but we didn't find them" "$LINENO" 5
  6614. fi
  6615. #
  6616. # It also requires crypt().
  6617. # Do we have it in the system libraries?
  6618. #
  6619. ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
  6620. if test "x$ac_cv_func_crypt" = xyes; then :
  6621. else
  6622. #
  6623. # No. Do we have it in -lcrypt?
  6624. #
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
  6626. $as_echo_n "checking for crypt in -lcrypt... " >&6; }
  6627. if ${ac_cv_lib_crypt_crypt+:} false; then :
  6628. $as_echo_n "(cached) " >&6
  6629. else
  6630. ac_check_lib_save_LIBS=$LIBS
  6631. LIBS="-lcrypt $LIBS"
  6632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6633. /* end confdefs.h. */
  6634. /* Override any GCC internal prototype to avoid an error.
  6635. Use char because int might match the return type of a GCC
  6636. builtin and then its argument prototype would still apply. */
  6637. #ifdef __cplusplus
  6638. extern "C"
  6639. #endif
  6640. char crypt ();
  6641. int
  6642. main ()
  6643. {
  6644. return crypt ();
  6645. ;
  6646. return 0;
  6647. }
  6648. _ACEOF
  6649. if ac_fn_c_try_link "$LINENO"; then :
  6650. ac_cv_lib_crypt_crypt=yes
  6651. else
  6652. ac_cv_lib_crypt_crypt=no
  6653. fi
  6654. rm -f core conftest.err conftest.$ac_objext \
  6655. conftest$ac_exeext conftest.$ac_ext
  6656. LIBS=$ac_check_lib_save_LIBS
  6657. fi
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
  6659. $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
  6660. if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
  6661. #
  6662. # Yes; add -lcrypt to the libraries for rpcapd.
  6663. #
  6664. RPCAPD_LIBS="$RPCAPD_LIBS -lcrypt"
  6665. else
  6666. as_fn_error $? "rpcapd requires crypt(), but we didn't find it" "$LINENO" 5
  6667. fi
  6668. fi
  6669. #
  6670. # OK, we have crypt(). Do we have getspnam()?
  6671. #
  6672. for ac_func in getspnam
  6673. do :
  6674. ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
  6675. if test "x$ac_cv_func_getspnam" = xyes; then :
  6676. cat >>confdefs.h <<_ACEOF
  6677. #define HAVE_GETSPNAM 1
  6678. _ACEOF
  6679. fi
  6680. done
  6681. #
  6682. # Check for various members of struct msghdr.
  6683. #
  6684. ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
  6685. #include \"ftmacros.h\"
  6686. #include <sys/socket.h>
  6687. "
  6688. if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
  6689. cat >>confdefs.h <<_ACEOF
  6690. #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
  6691. _ACEOF
  6692. fi
  6693. ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "
  6694. #include \"ftmacros.h\"
  6695. #include <sys/socket.h>
  6696. "
  6697. if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes; then :
  6698. cat >>confdefs.h <<_ACEOF
  6699. #define HAVE_STRUCT_MSGHDR_MSG_FLAGS 1
  6700. _ACEOF
  6701. fi
  6702. $as_echo "#define ENABLE_REMOTE /**/" >>confdefs.h
  6703. SSRC="$SSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
  6704. BUILD_RPCAPD=build-rpcapd
  6705. INSTALL_RPCAPD=install-rpcapd
  6706. ;;
  6707. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6708. $as_echo "no" >&6; }
  6709. ;;
  6710. esac
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
  6712. $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
  6713. # Check whether --enable-optimizer-dbg was given.
  6714. if test "${enable_optimizer_dbg+set}" = set; then :
  6715. enableval=$enable_optimizer_dbg;
  6716. fi
  6717. if test "$enable_optimizer_dbg" = "yes"; then
  6718. $as_echo "#define BDEBUG 1" >>confdefs.h
  6719. fi
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
  6721. $as_echo "${enable_optimizer_dbg-no}" >&6; }
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
  6723. $as_echo_n "checking whether to build parser debugging code... " >&6; }
  6724. # Check whether --enable-yydebug was given.
  6725. if test "${enable_yydebug+set}" = set; then :
  6726. enableval=$enable_yydebug;
  6727. fi
  6728. if test "$enable_yydebug" = "yes"; then
  6729. $as_echo "#define YYDEBUG 1" >>confdefs.h
  6730. fi
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
  6732. $as_echo "${enable_yydebug-no}" >&6; }
  6733. #
  6734. # Look for {f}lex.
  6735. #
  6736. for ac_prog in flex lex
  6737. do
  6738. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6739. set dummy $ac_prog; ac_word=$2
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6741. $as_echo_n "checking for $ac_word... " >&6; }
  6742. if ${ac_cv_prog_LEX+:} false; then :
  6743. $as_echo_n "(cached) " >&6
  6744. else
  6745. if test -n "$LEX"; then
  6746. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  6747. else
  6748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6749. for as_dir in $PATH
  6750. do
  6751. IFS=$as_save_IFS
  6752. test -z "$as_dir" && as_dir=.
  6753. for ac_exec_ext in '' $ac_executable_extensions; do
  6754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6755. ac_cv_prog_LEX="$ac_prog"
  6756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6757. break 2
  6758. fi
  6759. done
  6760. done
  6761. IFS=$as_save_IFS
  6762. fi
  6763. fi
  6764. LEX=$ac_cv_prog_LEX
  6765. if test -n "$LEX"; then
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  6767. $as_echo "$LEX" >&6; }
  6768. else
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6770. $as_echo "no" >&6; }
  6771. fi
  6772. test -n "$LEX" && break
  6773. done
  6774. test -n "$LEX" || LEX=":"
  6775. if test "x$LEX" != "x:"; then
  6776. cat >conftest.l <<_ACEOF
  6777. %%
  6778. a { ECHO; }
  6779. b { REJECT; }
  6780. c { yymore (); }
  6781. d { yyless (1); }
  6782. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  6783. yyless ((input () != 0)); }
  6784. f { unput (yytext[0]); }
  6785. . { BEGIN INITIAL; }
  6786. %%
  6787. #ifdef YYTEXT_POINTER
  6788. extern char *yytext;
  6789. #endif
  6790. int
  6791. main (void)
  6792. {
  6793. return ! yylex () + ! yywrap ();
  6794. }
  6795. _ACEOF
  6796. { { ac_try="$LEX conftest.l"
  6797. case "(($ac_try" in
  6798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6799. *) ac_try_echo=$ac_try;;
  6800. esac
  6801. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6802. $as_echo "$ac_try_echo"; } >&5
  6803. (eval "$LEX conftest.l") 2>&5
  6804. ac_status=$?
  6805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6806. test $ac_status = 0; }
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  6808. $as_echo_n "checking lex output file root... " >&6; }
  6809. if ${ac_cv_prog_lex_root+:} false; then :
  6810. $as_echo_n "(cached) " >&6
  6811. else
  6812. if test -f lex.yy.c; then
  6813. ac_cv_prog_lex_root=lex.yy
  6814. elif test -f lexyy.c; then
  6815. ac_cv_prog_lex_root=lexyy
  6816. else
  6817. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  6818. fi
  6819. fi
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  6821. $as_echo "$ac_cv_prog_lex_root" >&6; }
  6822. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  6823. if test -z "${LEXLIB+set}"; then
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  6825. $as_echo_n "checking lex library... " >&6; }
  6826. if ${ac_cv_lib_lex+:} false; then :
  6827. $as_echo_n "(cached) " >&6
  6828. else
  6829. ac_save_LIBS=$LIBS
  6830. ac_cv_lib_lex='none needed'
  6831. for ac_lib in '' -lfl -ll; do
  6832. LIBS="$ac_lib $ac_save_LIBS"
  6833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6834. /* end confdefs.h. */
  6835. `cat $LEX_OUTPUT_ROOT.c`
  6836. _ACEOF
  6837. if ac_fn_c_try_link "$LINENO"; then :
  6838. ac_cv_lib_lex=$ac_lib
  6839. fi
  6840. rm -f core conftest.err conftest.$ac_objext \
  6841. conftest$ac_exeext conftest.$ac_ext
  6842. test "$ac_cv_lib_lex" != 'none needed' && break
  6843. done
  6844. LIBS=$ac_save_LIBS
  6845. fi
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  6847. $as_echo "$ac_cv_lib_lex" >&6; }
  6848. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  6849. fi
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  6851. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  6852. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  6853. $as_echo_n "(cached) " >&6
  6854. else
  6855. # POSIX says lex can declare yytext either as a pointer or an array; the
  6856. # default is implementation-dependent. Figure out which it is, since
  6857. # not all implementations provide the %pointer and %array declarations.
  6858. ac_cv_prog_lex_yytext_pointer=no
  6859. ac_save_LIBS=$LIBS
  6860. LIBS="$LEXLIB $ac_save_LIBS"
  6861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6862. /* end confdefs.h. */
  6863. #define YYTEXT_POINTER 1
  6864. `cat $LEX_OUTPUT_ROOT.c`
  6865. _ACEOF
  6866. if ac_fn_c_try_link "$LINENO"; then :
  6867. ac_cv_prog_lex_yytext_pointer=yes
  6868. fi
  6869. rm -f core conftest.err conftest.$ac_objext \
  6870. conftest$ac_exeext conftest.$ac_ext
  6871. LIBS=$ac_save_LIBS
  6872. fi
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  6874. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  6875. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  6876. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  6877. fi
  6878. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  6879. fi
  6880. if test "$LEX" = ":"; then
  6881. as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
  6882. fi
  6883. #
  6884. # Make sure {f}lex supports the -P, --header-file, and --nounput flags
  6885. # and supports processing our scanner.l.
  6886. #
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
  6888. $as_echo_n "checking for capable lex... " >&6; }
  6889. if ${tcpdump_cv_capable_lex+:} false; then :
  6890. $as_echo_n "(cached) " >&6
  6891. else
  6892. if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
  6893. tcpdump_cv_capable_lex=yes
  6894. else
  6895. tcpdump_cv_capable_lex=insufficient
  6896. fi
  6897. fi
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
  6899. $as_echo "$tcpdump_cv_capable_lex" >&6; }
  6900. if test $tcpdump_cv_capable_lex = insufficient ; then
  6901. as_fn_error $? "$LEX is insufficient to compile libpcap.
  6902. libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
  6903. fi
  6904. #
  6905. # Look for yacc/bison/byacc.
  6906. #
  6907. for ac_prog in 'bison -y' byacc
  6908. do
  6909. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6910. set dummy $ac_prog; ac_word=$2
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6912. $as_echo_n "checking for $ac_word... " >&6; }
  6913. if ${ac_cv_prog_YACC+:} false; then :
  6914. $as_echo_n "(cached) " >&6
  6915. else
  6916. if test -n "$YACC"; then
  6917. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  6918. else
  6919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6920. for as_dir in $PATH
  6921. do
  6922. IFS=$as_save_IFS
  6923. test -z "$as_dir" && as_dir=.
  6924. for ac_exec_ext in '' $ac_executable_extensions; do
  6925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6926. ac_cv_prog_YACC="$ac_prog"
  6927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6928. break 2
  6929. fi
  6930. done
  6931. done
  6932. IFS=$as_save_IFS
  6933. fi
  6934. fi
  6935. YACC=$ac_cv_prog_YACC
  6936. if test -n "$YACC"; then
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  6938. $as_echo "$YACC" >&6; }
  6939. else
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6941. $as_echo "no" >&6; }
  6942. fi
  6943. test -n "$YACC" && break
  6944. done
  6945. test -n "$YACC" || YACC="yacc"
  6946. #
  6947. # Make sure it supports the -p flag and supports processing our
  6948. # grammar.y.
  6949. #
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
  6951. $as_echo_n "checking for capable yacc/bison... " >&6; }
  6952. if ${tcpdump_cv_capable_yacc+:} false; then :
  6953. $as_echo_n "(cached) " >&6
  6954. else
  6955. if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
  6956. tcpdump_cv_capable_yacc=yes
  6957. else
  6958. tcpdump_cv_capable_yacc=insufficient
  6959. fi
  6960. fi
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
  6962. $as_echo "$tcpdump_cv_capable_yacc" >&6; }
  6963. if test $tcpdump_cv_capable_yacc = insufficient ; then
  6964. as_fn_error $? "$YACC is insufficient to compile libpcap.
  6965. libpcap requires Bison, a newer version of Berkeley YACC with support
  6966. for reentrant parsers, or another YACC compatible with them." "$LINENO" 5
  6967. fi
  6968. #
  6969. # Do various checks for various OSes and versions of those OSes.
  6970. #
  6971. # Assume, by default, no support for shared libraries and V7/BSD
  6972. # convention for man pages (file formats in section 5, miscellaneous
  6973. # info in section 7, administrative commands and daemons in section 8).
  6974. # Individual cases can override this.
  6975. #
  6976. DYEXT="none"
  6977. MAN_FILE_FORMATS=5
  6978. MAN_MISC_INFO=7
  6979. MAN_ADMIN_COMMANDS=8
  6980. case "$host_os" in
  6981. aix*)
  6982. $as_echo "#define _SUN 1" >>confdefs.h
  6983. #
  6984. # AIX makes it fun to build shared and static libraries,
  6985. # because they're *both* ".a" archive libraries. We
  6986. # build the static library for the benefit of the traditional
  6987. # scheme of building libpcap and tcpdump in subdirectories of
  6988. # the same directory, with tcpdump statically linked with the
  6989. # libpcap in question, but we also build a shared library as
  6990. # "libpcap.shareda" and install *it*, rather than the static
  6991. # library, as "libpcap.a".
  6992. #
  6993. DYEXT="shareda"
  6994. case "$V_PCAP" in
  6995. dlpi)
  6996. #
  6997. # If we're using DLPI, applications will need to
  6998. # use /lib/pse.exp if present, as we use the
  6999. # STREAMS routines.
  7000. #
  7001. pseexe="/lib/pse.exp"
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
  7003. $as_echo_n "checking for $pseexe... " >&6; }
  7004. if test -f $pseexe ; then
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7006. $as_echo "yes" >&6; }
  7007. LIBS="-I:$pseexe"
  7008. fi
  7009. ;;
  7010. bpf)
  7011. #
  7012. # If we're using BPF, we need "-lodm" and "-lcfg", as
  7013. # we use them to load the BPF module.
  7014. #
  7015. LIBS="-lodm -lcfg"
  7016. ;;
  7017. esac
  7018. ;;
  7019. darwin*)
  7020. DYEXT="dylib"
  7021. V_CCOPT="$V_CCOPT -fno-common"
  7022. # Check whether --enable-universal was given.
  7023. if test "${enable_universal+set}" = set; then :
  7024. enableval=$enable_universal;
  7025. fi
  7026. if test "$enable_universal" != "no"; then
  7027. case "$host_os" in
  7028. darwin0-7.*)
  7029. #
  7030. # Pre-Tiger. Build only for 32-bit PowerPC; no
  7031. # need for any special compiler or linker flags.
  7032. #
  7033. ;;
  7034. darwin8.0123*)
  7035. #
  7036. # Tiger, prior to Intel support. Build for 32-bit
  7037. # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
  7038. # first. (I'm guessing that's what Apple does.)
  7039. #
  7040. V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
  7041. LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
  7042. ;;
  7043. darwin8.456*)
  7044. #
  7045. # Tiger, subsequent to Intel support but prior to
  7046. # x86-64 support. Build for 32-bit PowerPC, 64-bit
  7047. # PowerPC, and x86, with 32-bit PowerPC first.
  7048. # (I'm guessing that's what Apple does.)
  7049. #
  7050. V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
  7051. LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
  7052. ;;
  7053. darwin8.*)
  7054. #
  7055. # All other Tiger, so subsequent to x86-64
  7056. # support. Build for 32-bit PowerPC, 64-bit
  7057. # PowerPC, x86, and x86-64, and with 32-bit PowerPC
  7058. # first. (I'm guessing that's what Apple does.)
  7059. #
  7060. V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
  7061. LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
  7062. ;;
  7063. darwin9.*)
  7064. #
  7065. # Leopard. Build for 32-bit PowerPC, 64-bit
  7066. # PowerPC, x86, and x86-64, with 32-bit PowerPC
  7067. # first. (That's what Apple does.)
  7068. #
  7069. V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
  7070. LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
  7071. ;;
  7072. darwin10.*)
  7073. #
  7074. # Snow Leopard. Build for x86-64, x86, and
  7075. # 32-bit PowerPC, with x86-64 first. (That's
  7076. # what Apple does, even though Snow Leopard
  7077. # doesn't run on PPC, so PPC libpcap runs under
  7078. # Rosetta, and Rosetta doesn't support BPF
  7079. # ioctls, so PPC programs can't do live
  7080. # captures.)
  7081. #
  7082. V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
  7083. LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
  7084. ;;
  7085. darwin*)
  7086. #
  7087. # Post-Snow Leopard. Build for x86-64 and
  7088. # x86, with x86-64 first. (That's probably what
  7089. # Apple does, given that Rosetta is gone.)
  7090. # XXX - update if and when Apple drops support
  7091. # for 32-bit x86 code.
  7092. #
  7093. V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
  7094. LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
  7095. ;;
  7096. esac
  7097. fi
  7098. ;;
  7099. hpux9*)
  7100. $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
  7101. #
  7102. # Use System V conventions for man pages.
  7103. #
  7104. MAN_ADMIN_COMMANDS=1m
  7105. MAN_FILE_FORMATS=4
  7106. MAN_MISC_INFO=5
  7107. ;;
  7108. hpux10.0*)
  7109. #
  7110. # Use System V conventions for man pages.
  7111. #
  7112. MAN_ADMIN_COMMANDS=1m
  7113. MAN_FILE_FORMATS=4
  7114. MAN_MISC_INFO=5
  7115. ;;
  7116. hpux10.1*)
  7117. #
  7118. # Use System V conventions for man pages.
  7119. #
  7120. MAN_ADMIN_COMMANDS=1m
  7121. MAN_FILE_FORMATS=4
  7122. MAN_MISC_INFO=5
  7123. ;;
  7124. hpux*)
  7125. $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
  7126. if test "`uname -m`" = "ia64"; then
  7127. DYEXT="so"
  7128. else
  7129. DYEXT="sl"
  7130. fi
  7131. #
  7132. # "-b" builds a shared library; "+h" sets the soname.
  7133. #
  7134. SHLIB_OPT="-b"
  7135. SONAME_OPT="+h"
  7136. #
  7137. # Use System V conventions for man pages.
  7138. #
  7139. MAN_FILE_FORMATS=4
  7140. MAN_MISC_INFO=5
  7141. ;;
  7142. irix*)
  7143. #
  7144. # Use IRIX conventions for man pages; they're the same as the
  7145. # System V conventions, except that they use section 8 for
  7146. # administrative commands and daemons.
  7147. #
  7148. MAN_FILE_FORMATS=4
  7149. MAN_MISC_INFO=5
  7150. ;;
  7151. linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
  7152. DYEXT="so"
  7153. #
  7154. # Compiler assumed to be GCC; run-time linker may require a -R
  7155. # flag.
  7156. #
  7157. if test "$libdir" != "/usr/lib"; then
  7158. V_RFLAGS=-Wl,-R$libdir
  7159. fi
  7160. ;;
  7161. osf*)
  7162. DYEXT="so"
  7163. #
  7164. # DEC OSF/1, a/k/a Digial UNIX, a/k/a Tru64 UNIX.
  7165. # Use Tru64 UNIX conventions for man pages; they're the same as
  7166. # the System V conventions except that they use section 8 for
  7167. # administrative commands and daemons.
  7168. #
  7169. MAN_FILE_FORMATS=4
  7170. MAN_MISC_INFO=5
  7171. ;;
  7172. sinix*)
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
  7174. $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
  7175. if ${ac_cv_cc_sinix_defined+:} false; then :
  7176. $as_echo_n "(cached) " >&6
  7177. else
  7178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7179. /* end confdefs.h. */
  7180. int
  7181. main ()
  7182. {
  7183. int i = sinix;
  7184. ;
  7185. return 0;
  7186. }
  7187. _ACEOF
  7188. if ac_fn_c_try_compile "$LINENO"; then :
  7189. ac_cv_cc_sinix_defined=yes
  7190. else
  7191. ac_cv_cc_sinix_defined=no
  7192. fi
  7193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7194. fi
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
  7196. $as_echo "$ac_cv_cc_sinix_defined" >&6; }
  7197. if test $ac_cv_cc_sinix_defined = no ; then
  7198. $as_echo "#define sinix 1" >>confdefs.h
  7199. fi
  7200. ;;
  7201. solaris*)
  7202. $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
  7203. DYEXT="so"
  7204. #
  7205. # Make sure errno is thread-safe, in case we're called in
  7206. # a multithreaded program. We don't guarantee that two
  7207. # threads can use the *same* pcap_t safely, but the
  7208. # current version does guarantee that you can use different
  7209. # pcap_t's in different threads, and even that pcap_compile()
  7210. # is thread-safe (it wasn't thread-safe in some older versions).
  7211. #
  7212. V_CCOPT="$V_CCOPT -D_TS_ERRNO"
  7213. case "`uname -r`" in
  7214. 5.12)
  7215. ;;
  7216. *)
  7217. #
  7218. # Use System V conventions for man pages.
  7219. #
  7220. MAN_ADMIN_COMMANDS=1m
  7221. MAN_FILE_FORMATS=4
  7222. MAN_MISC_INFO=5
  7223. esac
  7224. ;;
  7225. esac
  7226. # Check whether --enable-shared was given.
  7227. if test "${enable_shared+set}" = set; then :
  7228. enableval=$enable_shared;
  7229. fi
  7230. test "x$enable_shared" = "xno" && DYEXT="none"
  7231. if test -n "$ac_tool_prefix"; then
  7232. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7233. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7235. $as_echo_n "checking for $ac_word... " >&6; }
  7236. if ${ac_cv_prog_RANLIB+:} false; then :
  7237. $as_echo_n "(cached) " >&6
  7238. else
  7239. if test -n "$RANLIB"; then
  7240. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7241. else
  7242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7243. for as_dir in $PATH
  7244. do
  7245. IFS=$as_save_IFS
  7246. test -z "$as_dir" && as_dir=.
  7247. for ac_exec_ext in '' $ac_executable_extensions; do
  7248. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7249. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7251. break 2
  7252. fi
  7253. done
  7254. done
  7255. IFS=$as_save_IFS
  7256. fi
  7257. fi
  7258. RANLIB=$ac_cv_prog_RANLIB
  7259. if test -n "$RANLIB"; then
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7261. $as_echo "$RANLIB" >&6; }
  7262. else
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7264. $as_echo "no" >&6; }
  7265. fi
  7266. fi
  7267. if test -z "$ac_cv_prog_RANLIB"; then
  7268. ac_ct_RANLIB=$RANLIB
  7269. # Extract the first word of "ranlib", so it can be a program name with args.
  7270. set dummy ranlib; ac_word=$2
  7271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7272. $as_echo_n "checking for $ac_word... " >&6; }
  7273. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7274. $as_echo_n "(cached) " >&6
  7275. else
  7276. if test -n "$ac_ct_RANLIB"; then
  7277. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7278. else
  7279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7280. for as_dir in $PATH
  7281. do
  7282. IFS=$as_save_IFS
  7283. test -z "$as_dir" && as_dir=.
  7284. for ac_exec_ext in '' $ac_executable_extensions; do
  7285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7286. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7288. break 2
  7289. fi
  7290. done
  7291. done
  7292. IFS=$as_save_IFS
  7293. fi
  7294. fi
  7295. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7296. if test -n "$ac_ct_RANLIB"; then
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7298. $as_echo "$ac_ct_RANLIB" >&6; }
  7299. else
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7301. $as_echo "no" >&6; }
  7302. fi
  7303. if test "x$ac_ct_RANLIB" = x; then
  7304. RANLIB=":"
  7305. else
  7306. case $cross_compiling:$ac_tool_warned in
  7307. yes:)
  7308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7309. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7310. ac_tool_warned=yes ;;
  7311. esac
  7312. RANLIB=$ac_ct_RANLIB
  7313. fi
  7314. else
  7315. RANLIB="$ac_cv_prog_RANLIB"
  7316. fi
  7317. if test -n "$ac_tool_prefix"; then
  7318. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  7319. set dummy ${ac_tool_prefix}ar; ac_word=$2
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7321. $as_echo_n "checking for $ac_word... " >&6; }
  7322. if ${ac_cv_prog_AR+:} false; then :
  7323. $as_echo_n "(cached) " >&6
  7324. else
  7325. if test -n "$AR"; then
  7326. ac_cv_prog_AR="$AR" # Let the user override the test.
  7327. else
  7328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7329. for as_dir in $PATH
  7330. do
  7331. IFS=$as_save_IFS
  7332. test -z "$as_dir" && as_dir=.
  7333. for ac_exec_ext in '' $ac_executable_extensions; do
  7334. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7335. ac_cv_prog_AR="${ac_tool_prefix}ar"
  7336. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7337. break 2
  7338. fi
  7339. done
  7340. done
  7341. IFS=$as_save_IFS
  7342. fi
  7343. fi
  7344. AR=$ac_cv_prog_AR
  7345. if test -n "$AR"; then
  7346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7347. $as_echo "$AR" >&6; }
  7348. else
  7349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7350. $as_echo "no" >&6; }
  7351. fi
  7352. fi
  7353. if test -z "$ac_cv_prog_AR"; then
  7354. ac_ct_AR=$AR
  7355. # Extract the first word of "ar", so it can be a program name with args.
  7356. set dummy ar; ac_word=$2
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7358. $as_echo_n "checking for $ac_word... " >&6; }
  7359. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7360. $as_echo_n "(cached) " >&6
  7361. else
  7362. if test -n "$ac_ct_AR"; then
  7363. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7364. else
  7365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7366. for as_dir in $PATH
  7367. do
  7368. IFS=$as_save_IFS
  7369. test -z "$as_dir" && as_dir=.
  7370. for ac_exec_ext in '' $ac_executable_extensions; do
  7371. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7372. ac_cv_prog_ac_ct_AR="ar"
  7373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7374. break 2
  7375. fi
  7376. done
  7377. done
  7378. IFS=$as_save_IFS
  7379. fi
  7380. fi
  7381. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7382. if test -n "$ac_ct_AR"; then
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7384. $as_echo "$ac_ct_AR" >&6; }
  7385. else
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7387. $as_echo "no" >&6; }
  7388. fi
  7389. if test "x$ac_ct_AR" = x; then
  7390. AR=""
  7391. else
  7392. case $cross_compiling:$ac_tool_warned in
  7393. yes:)
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7395. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7396. ac_tool_warned=yes ;;
  7397. esac
  7398. AR=$ac_ct_AR
  7399. fi
  7400. else
  7401. AR="$ac_cv_prog_AR"
  7402. fi
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7404. $as_echo_n "checking whether ln -s works... " >&6; }
  7405. LN_S=$as_ln_s
  7406. if test "$LN_S" = "ln -s"; then
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7408. $as_echo "yes" >&6; }
  7409. else
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7411. $as_echo "no, using $LN_S" >&6; }
  7412. fi
  7413. rm -f os-proto.h
  7414. if test "${LBL_CFLAGS+set}" = set; then
  7415. V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
  7416. fi
  7417. if test -f .devel ; then
  7418. #
  7419. # Skip all the warning option stuff on some compilers.
  7420. #
  7421. if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
  7423. $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
  7424. save_CFLAGS="$CFLAGS"
  7425. CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
  7426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7427. /* end confdefs.h. */
  7428. int
  7429. main ()
  7430. {
  7431. return 0
  7432. ;
  7433. return 0;
  7434. }
  7435. _ACEOF
  7436. if ac_fn_c_try_compile "$LINENO"; then :
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7438. $as_echo "no" >&6; }
  7439. #
  7440. # We're assuming this is clang, where
  7441. # -Werror=unknown-warning-option is the appropriate
  7442. # option to force the compiler to fail.
  7443. #
  7444. ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
  7445. else
  7446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7447. $as_echo "yes" >&6; }
  7448. fi
  7449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7450. CFLAGS="$save_CFLAGS"
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
  7452. $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
  7453. save_CFLAGS="$CFLAGS"
  7454. if expr "x-Wall" : "x-W.*" >/dev/null
  7455. then
  7456. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
  7457. elif expr "x-Wall" : "x-f.*" >/dev/null
  7458. then
  7459. CFLAGS="$CFLAGS -Werror -Wall"
  7460. elif expr "x-Wall" : "x-m.*" >/dev/null
  7461. then
  7462. CFLAGS="$CFLAGS -Werror -Wall"
  7463. else
  7464. CFLAGS="$CFLAGS -Wall"
  7465. fi
  7466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7467. /* end confdefs.h. */
  7468. int
  7469. main ()
  7470. {
  7471. return 0
  7472. ;
  7473. return 0;
  7474. }
  7475. _ACEOF
  7476. if ac_fn_c_try_compile "$LINENO"; then :
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7478. $as_echo "yes" >&6; }
  7479. can_add_to_cflags=yes
  7480. #
  7481. # The compile supports this; do we have some C code for
  7482. # which the warning should *not* appear?
  7483. # We test the fourth argument because the third argument
  7484. # could contain quotes, breaking the test.
  7485. #
  7486. if test "x" != "x"
  7487. then
  7488. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall " >&5
  7490. $as_echo_n "checking whether -Wall ... " >&6; }
  7491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7492. /* end confdefs.h. */
  7493. _ACEOF
  7494. if ac_fn_c_try_compile "$LINENO"; then :
  7495. #
  7496. # Not a problem.
  7497. #
  7498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7499. $as_echo "no" >&6; }
  7500. else
  7501. #
  7502. # A problem.
  7503. #
  7504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7505. $as_echo "yes" >&6; }
  7506. can_add_to_cflags=no
  7507. fi
  7508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7509. fi
  7510. CFLAGS="$save_CFLAGS"
  7511. if test x"$can_add_to_cflags" = "xyes"
  7512. then
  7513. V_CCOPT="$V_CCOPT -Wall"
  7514. fi
  7515. else
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7517. $as_echo "no" >&6; }
  7518. CFLAGS="$save_CFLAGS"
  7519. fi
  7520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
  7522. $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
  7523. save_CFLAGS="$CFLAGS"
  7524. if expr "x-Wsign-compare" : "x-W.*" >/dev/null
  7525. then
  7526. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
  7527. elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
  7528. then
  7529. CFLAGS="$CFLAGS -Werror -Wsign-compare"
  7530. elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
  7531. then
  7532. CFLAGS="$CFLAGS -Werror -Wsign-compare"
  7533. else
  7534. CFLAGS="$CFLAGS -Wsign-compare"
  7535. fi
  7536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7537. /* end confdefs.h. */
  7538. int
  7539. main ()
  7540. {
  7541. return 0
  7542. ;
  7543. return 0;
  7544. }
  7545. _ACEOF
  7546. if ac_fn_c_try_compile "$LINENO"; then :
  7547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7548. $as_echo "yes" >&6; }
  7549. can_add_to_cflags=yes
  7550. #
  7551. # The compile supports this; do we have some C code for
  7552. # which the warning should *not* appear?
  7553. # We test the fourth argument because the third argument
  7554. # could contain quotes, breaking the test.
  7555. #
  7556. if test "x" != "x"
  7557. then
  7558. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wsign-compare " >&5
  7560. $as_echo_n "checking whether -Wsign-compare ... " >&6; }
  7561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7562. /* end confdefs.h. */
  7563. _ACEOF
  7564. if ac_fn_c_try_compile "$LINENO"; then :
  7565. #
  7566. # Not a problem.
  7567. #
  7568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7569. $as_echo "no" >&6; }
  7570. else
  7571. #
  7572. # A problem.
  7573. #
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7575. $as_echo "yes" >&6; }
  7576. can_add_to_cflags=no
  7577. fi
  7578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7579. fi
  7580. CFLAGS="$save_CFLAGS"
  7581. if test x"$can_add_to_cflags" = "xyes"
  7582. then
  7583. V_CCOPT="$V_CCOPT -Wsign-compare"
  7584. fi
  7585. else
  7586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7587. $as_echo "no" >&6; }
  7588. CFLAGS="$save_CFLAGS"
  7589. fi
  7590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
  7592. $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
  7593. save_CFLAGS="$CFLAGS"
  7594. if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
  7595. then
  7596. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
  7597. elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
  7598. then
  7599. CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
  7600. elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
  7601. then
  7602. CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
  7603. else
  7604. CFLAGS="$CFLAGS -Wmissing-prototypes"
  7605. fi
  7606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7607. /* end confdefs.h. */
  7608. int
  7609. main ()
  7610. {
  7611. return 0
  7612. ;
  7613. return 0;
  7614. }
  7615. _ACEOF
  7616. if ac_fn_c_try_compile "$LINENO"; then :
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7618. $as_echo "yes" >&6; }
  7619. can_add_to_cflags=yes
  7620. #
  7621. # The compile supports this; do we have some C code for
  7622. # which the warning should *not* appear?
  7623. # We test the fourth argument because the third argument
  7624. # could contain quotes, breaking the test.
  7625. #
  7626. if test "x" != "x"
  7627. then
  7628. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes " >&5
  7630. $as_echo_n "checking whether -Wmissing-prototypes ... " >&6; }
  7631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7632. /* end confdefs.h. */
  7633. _ACEOF
  7634. if ac_fn_c_try_compile "$LINENO"; then :
  7635. #
  7636. # Not a problem.
  7637. #
  7638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7639. $as_echo "no" >&6; }
  7640. else
  7641. #
  7642. # A problem.
  7643. #
  7644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7645. $as_echo "yes" >&6; }
  7646. can_add_to_cflags=no
  7647. fi
  7648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7649. fi
  7650. CFLAGS="$save_CFLAGS"
  7651. if test x"$can_add_to_cflags" = "xyes"
  7652. then
  7653. V_CCOPT="$V_CCOPT -Wmissing-prototypes"
  7654. fi
  7655. else
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7657. $as_echo "no" >&6; }
  7658. CFLAGS="$save_CFLAGS"
  7659. fi
  7660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
  7662. $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
  7663. save_CFLAGS="$CFLAGS"
  7664. if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
  7665. then
  7666. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
  7667. elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
  7668. then
  7669. CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
  7670. elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
  7671. then
  7672. CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
  7673. else
  7674. CFLAGS="$CFLAGS -Wstrict-prototypes"
  7675. fi
  7676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7677. /* end confdefs.h. */
  7678. int
  7679. main ()
  7680. {
  7681. return 0
  7682. ;
  7683. return 0;
  7684. }
  7685. _ACEOF
  7686. if ac_fn_c_try_compile "$LINENO"; then :
  7687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7688. $as_echo "yes" >&6; }
  7689. can_add_to_cflags=yes
  7690. #
  7691. # The compile supports this; do we have some C code for
  7692. # which the warning should *not* appear?
  7693. # We test the fourth argument because the third argument
  7694. # could contain quotes, breaking the test.
  7695. #
  7696. if test "x" != "x"
  7697. then
  7698. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wstrict-prototypes " >&5
  7700. $as_echo_n "checking whether -Wstrict-prototypes ... " >&6; }
  7701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7702. /* end confdefs.h. */
  7703. _ACEOF
  7704. if ac_fn_c_try_compile "$LINENO"; then :
  7705. #
  7706. # Not a problem.
  7707. #
  7708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7709. $as_echo "no" >&6; }
  7710. else
  7711. #
  7712. # A problem.
  7713. #
  7714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7715. $as_echo "yes" >&6; }
  7716. can_add_to_cflags=no
  7717. fi
  7718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7719. fi
  7720. CFLAGS="$save_CFLAGS"
  7721. if test x"$can_add_to_cflags" = "xyes"
  7722. then
  7723. V_CCOPT="$V_CCOPT -Wstrict-prototypes"
  7724. fi
  7725. else
  7726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7727. $as_echo "no" >&6; }
  7728. CFLAGS="$save_CFLAGS"
  7729. fi
  7730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
  7732. $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
  7733. save_CFLAGS="$CFLAGS"
  7734. if expr "x-Wshadow" : "x-W.*" >/dev/null
  7735. then
  7736. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
  7737. elif expr "x-Wshadow" : "x-f.*" >/dev/null
  7738. then
  7739. CFLAGS="$CFLAGS -Werror -Wshadow"
  7740. elif expr "x-Wshadow" : "x-m.*" >/dev/null
  7741. then
  7742. CFLAGS="$CFLAGS -Werror -Wshadow"
  7743. else
  7744. CFLAGS="$CFLAGS -Wshadow"
  7745. fi
  7746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7747. /* end confdefs.h. */
  7748. int
  7749. main ()
  7750. {
  7751. return 0
  7752. ;
  7753. return 0;
  7754. }
  7755. _ACEOF
  7756. if ac_fn_c_try_compile "$LINENO"; then :
  7757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7758. $as_echo "yes" >&6; }
  7759. can_add_to_cflags=yes
  7760. #
  7761. # The compile supports this; do we have some C code for
  7762. # which the warning should *not* appear?
  7763. # We test the fourth argument because the third argument
  7764. # could contain quotes, breaking the test.
  7765. #
  7766. if test "x" != "x"
  7767. then
  7768. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  7769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wshadow " >&5
  7770. $as_echo_n "checking whether -Wshadow ... " >&6; }
  7771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7772. /* end confdefs.h. */
  7773. _ACEOF
  7774. if ac_fn_c_try_compile "$LINENO"; then :
  7775. #
  7776. # Not a problem.
  7777. #
  7778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7779. $as_echo "no" >&6; }
  7780. else
  7781. #
  7782. # A problem.
  7783. #
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7785. $as_echo "yes" >&6; }
  7786. can_add_to_cflags=no
  7787. fi
  7788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7789. fi
  7790. CFLAGS="$save_CFLAGS"
  7791. if test x"$can_add_to_cflags" = "xyes"
  7792. then
  7793. V_CCOPT="$V_CCOPT -Wshadow"
  7794. fi
  7795. else
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7797. $as_echo "no" >&6; }
  7798. CFLAGS="$save_CFLAGS"
  7799. fi
  7800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
  7802. $as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
  7803. save_CFLAGS="$CFLAGS"
  7804. if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
  7805. then
  7806. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
  7807. elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
  7808. then
  7809. CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
  7810. elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
  7811. then
  7812. CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
  7813. else
  7814. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  7815. fi
  7816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7817. /* end confdefs.h. */
  7818. int
  7819. main ()
  7820. {
  7821. return 0
  7822. ;
  7823. return 0;
  7824. }
  7825. _ACEOF
  7826. if ac_fn_c_try_compile "$LINENO"; then :
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7828. $as_echo "yes" >&6; }
  7829. can_add_to_cflags=yes
  7830. #
  7831. # The compile supports this; do we have some C code for
  7832. # which the warning should *not* appear?
  7833. # We test the fourth argument because the third argument
  7834. # could contain quotes, breaking the test.
  7835. #
  7836. if test "x" != "x"
  7837. then
  7838. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  7839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdeclaration-after-statement " >&5
  7840. $as_echo_n "checking whether -Wdeclaration-after-statement ... " >&6; }
  7841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7842. /* end confdefs.h. */
  7843. _ACEOF
  7844. if ac_fn_c_try_compile "$LINENO"; then :
  7845. #
  7846. # Not a problem.
  7847. #
  7848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7849. $as_echo "no" >&6; }
  7850. else
  7851. #
  7852. # A problem.
  7853. #
  7854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7855. $as_echo "yes" >&6; }
  7856. can_add_to_cflags=no
  7857. fi
  7858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7859. fi
  7860. CFLAGS="$save_CFLAGS"
  7861. if test x"$can_add_to_cflags" = "xyes"
  7862. then
  7863. V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
  7864. fi
  7865. else
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7867. $as_echo "no" >&6; }
  7868. CFLAGS="$save_CFLAGS"
  7869. fi
  7870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
  7872. $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
  7873. save_CFLAGS="$CFLAGS"
  7874. if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
  7875. then
  7876. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
  7877. elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
  7878. then
  7879. CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
  7880. elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
  7881. then
  7882. CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
  7883. else
  7884. CFLAGS="$CFLAGS -Wused-but-marked-unused"
  7885. fi
  7886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7887. /* end confdefs.h. */
  7888. int
  7889. main ()
  7890. {
  7891. return 0
  7892. ;
  7893. return 0;
  7894. }
  7895. _ACEOF
  7896. if ac_fn_c_try_compile "$LINENO"; then :
  7897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7898. $as_echo "yes" >&6; }
  7899. can_add_to_cflags=yes
  7900. #
  7901. # The compile supports this; do we have some C code for
  7902. # which the warning should *not* appear?
  7903. # We test the fourth argument because the third argument
  7904. # could contain quotes, breaking the test.
  7905. #
  7906. if test "x" != "x"
  7907. then
  7908. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  7909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wused-but-marked-unused " >&5
  7910. $as_echo_n "checking whether -Wused-but-marked-unused ... " >&6; }
  7911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7912. /* end confdefs.h. */
  7913. _ACEOF
  7914. if ac_fn_c_try_compile "$LINENO"; then :
  7915. #
  7916. # Not a problem.
  7917. #
  7918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7919. $as_echo "no" >&6; }
  7920. else
  7921. #
  7922. # A problem.
  7923. #
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7925. $as_echo "yes" >&6; }
  7926. can_add_to_cflags=no
  7927. fi
  7928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7929. fi
  7930. CFLAGS="$save_CFLAGS"
  7931. if test x"$can_add_to_cflags" = "xyes"
  7932. then
  7933. V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
  7934. fi
  7935. else
  7936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7937. $as_echo "no" >&6; }
  7938. CFLAGS="$save_CFLAGS"
  7939. fi
  7940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdocumentation option" >&5
  7942. $as_echo_n "checking whether the compiler supports the -Wdocumentation option... " >&6; }
  7943. save_CFLAGS="$CFLAGS"
  7944. if expr "x-Wdocumentation" : "x-W.*" >/dev/null
  7945. then
  7946. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdocumentation"
  7947. elif expr "x-Wdocumentation" : "x-f.*" >/dev/null
  7948. then
  7949. CFLAGS="$CFLAGS -Werror -Wdocumentation"
  7950. elif expr "x-Wdocumentation" : "x-m.*" >/dev/null
  7951. then
  7952. CFLAGS="$CFLAGS -Werror -Wdocumentation"
  7953. else
  7954. CFLAGS="$CFLAGS -Wdocumentation"
  7955. fi
  7956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7957. /* end confdefs.h. */
  7958. int
  7959. main ()
  7960. {
  7961. return 0
  7962. ;
  7963. return 0;
  7964. }
  7965. _ACEOF
  7966. if ac_fn_c_try_compile "$LINENO"; then :
  7967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7968. $as_echo "yes" >&6; }
  7969. can_add_to_cflags=yes
  7970. #
  7971. # The compile supports this; do we have some C code for
  7972. # which the warning should *not* appear?
  7973. # We test the fourth argument because the third argument
  7974. # could contain quotes, breaking the test.
  7975. #
  7976. if test "x" != "x"
  7977. then
  7978. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  7979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wdocumentation " >&5
  7980. $as_echo_n "checking whether -Wdocumentation ... " >&6; }
  7981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7982. /* end confdefs.h. */
  7983. _ACEOF
  7984. if ac_fn_c_try_compile "$LINENO"; then :
  7985. #
  7986. # Not a problem.
  7987. #
  7988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7989. $as_echo "no" >&6; }
  7990. else
  7991. #
  7992. # A problem.
  7993. #
  7994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7995. $as_echo "yes" >&6; }
  7996. can_add_to_cflags=no
  7997. fi
  7998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7999. fi
  8000. CFLAGS="$save_CFLAGS"
  8001. if test x"$can_add_to_cflags" = "xyes"
  8002. then
  8003. V_CCOPT="$V_CCOPT -Wdocumentation"
  8004. fi
  8005. else
  8006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8007. $as_echo "no" >&6; }
  8008. CFLAGS="$save_CFLAGS"
  8009. fi
  8010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5
  8012. $as_echo_n "checking whether the compiler supports the -Wcomma option... " >&6; }
  8013. save_CFLAGS="$CFLAGS"
  8014. if expr "x-Wcomma" : "x-W.*" >/dev/null
  8015. then
  8016. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcomma"
  8017. elif expr "x-Wcomma" : "x-f.*" >/dev/null
  8018. then
  8019. CFLAGS="$CFLAGS -Werror -Wcomma"
  8020. elif expr "x-Wcomma" : "x-m.*" >/dev/null
  8021. then
  8022. CFLAGS="$CFLAGS -Werror -Wcomma"
  8023. else
  8024. CFLAGS="$CFLAGS -Wcomma"
  8025. fi
  8026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8027. /* end confdefs.h. */
  8028. int
  8029. main ()
  8030. {
  8031. return 0
  8032. ;
  8033. return 0;
  8034. }
  8035. _ACEOF
  8036. if ac_fn_c_try_compile "$LINENO"; then :
  8037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8038. $as_echo "yes" >&6; }
  8039. can_add_to_cflags=yes
  8040. #
  8041. # The compile supports this; do we have some C code for
  8042. # which the warning should *not* appear?
  8043. # We test the fourth argument because the third argument
  8044. # could contain quotes, breaking the test.
  8045. #
  8046. if test "x" != "x"
  8047. then
  8048. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  8049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcomma " >&5
  8050. $as_echo_n "checking whether -Wcomma ... " >&6; }
  8051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8052. /* end confdefs.h. */
  8053. _ACEOF
  8054. if ac_fn_c_try_compile "$LINENO"; then :
  8055. #
  8056. # Not a problem.
  8057. #
  8058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8059. $as_echo "no" >&6; }
  8060. else
  8061. #
  8062. # A problem.
  8063. #
  8064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8065. $as_echo "yes" >&6; }
  8066. can_add_to_cflags=no
  8067. fi
  8068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8069. fi
  8070. CFLAGS="$save_CFLAGS"
  8071. if test x"$can_add_to_cflags" = "xyes"
  8072. then
  8073. V_CCOPT="$V_CCOPT -Wcomma"
  8074. fi
  8075. else
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8077. $as_echo "no" >&6; }
  8078. CFLAGS="$save_CFLAGS"
  8079. fi
  8080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-noreturn option" >&5
  8082. $as_echo_n "checking whether the compiler supports the -Wmissing-noreturn option... " >&6; }
  8083. save_CFLAGS="$CFLAGS"
  8084. if expr "x-Wmissing-noreturn" : "x-W.*" >/dev/null
  8085. then
  8086. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-noreturn"
  8087. elif expr "x-Wmissing-noreturn" : "x-f.*" >/dev/null
  8088. then
  8089. CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
  8090. elif expr "x-Wmissing-noreturn" : "x-m.*" >/dev/null
  8091. then
  8092. CFLAGS="$CFLAGS -Werror -Wmissing-noreturn"
  8093. else
  8094. CFLAGS="$CFLAGS -Wmissing-noreturn"
  8095. fi
  8096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8097. /* end confdefs.h. */
  8098. int
  8099. main ()
  8100. {
  8101. return 0
  8102. ;
  8103. return 0;
  8104. }
  8105. _ACEOF
  8106. if ac_fn_c_try_compile "$LINENO"; then :
  8107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8108. $as_echo "yes" >&6; }
  8109. can_add_to_cflags=yes
  8110. #
  8111. # The compile supports this; do we have some C code for
  8112. # which the warning should *not* appear?
  8113. # We test the fourth argument because the third argument
  8114. # could contain quotes, breaking the test.
  8115. #
  8116. if test "x" != "x"
  8117. then
  8118. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  8119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-noreturn " >&5
  8120. $as_echo_n "checking whether -Wmissing-noreturn ... " >&6; }
  8121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8122. /* end confdefs.h. */
  8123. _ACEOF
  8124. if ac_fn_c_try_compile "$LINENO"; then :
  8125. #
  8126. # Not a problem.
  8127. #
  8128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8129. $as_echo "no" >&6; }
  8130. else
  8131. #
  8132. # A problem.
  8133. #
  8134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8135. $as_echo "yes" >&6; }
  8136. can_add_to_cflags=no
  8137. fi
  8138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8139. fi
  8140. CFLAGS="$save_CFLAGS"
  8141. if test x"$can_add_to_cflags" = "xyes"
  8142. then
  8143. V_CCOPT="$V_CCOPT -Wmissing-noreturn"
  8144. fi
  8145. else
  8146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8147. $as_echo "no" >&6; }
  8148. CFLAGS="$save_CFLAGS"
  8149. fi
  8150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8151. # Warns about safeguards added in case the enums are
  8152. # extended
  8153. # AC_LBL_CHECK_COMPILER_OPT(V_CCOPT, -Wcovered-switch-default)
  8154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5
  8155. $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; }
  8156. save_CFLAGS="$CFLAGS"
  8157. if expr "x-Wmissing-variable-declarations" : "x-W.*" >/dev/null
  8158. then
  8159. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-variable-declarations"
  8160. elif expr "x-Wmissing-variable-declarations" : "x-f.*" >/dev/null
  8161. then
  8162. CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
  8163. elif expr "x-Wmissing-variable-declarations" : "x-m.*" >/dev/null
  8164. then
  8165. CFLAGS="$CFLAGS -Werror -Wmissing-variable-declarations"
  8166. else
  8167. CFLAGS="$CFLAGS -Wmissing-variable-declarations"
  8168. fi
  8169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8170. /* end confdefs.h. */
  8171. int
  8172. main ()
  8173. {
  8174. return 0
  8175. ;
  8176. return 0;
  8177. }
  8178. _ACEOF
  8179. if ac_fn_c_try_compile "$LINENO"; then :
  8180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8181. $as_echo "yes" >&6; }
  8182. can_add_to_cflags=yes
  8183. #
  8184. # The compile supports this; do we have some C code for
  8185. # which the warning should *not* appear?
  8186. # We test the fourth argument because the third argument
  8187. # could contain quotes, breaking the test.
  8188. #
  8189. if test "x" != "x"
  8190. then
  8191. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  8192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-variable-declarations " >&5
  8193. $as_echo_n "checking whether -Wmissing-variable-declarations ... " >&6; }
  8194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8195. /* end confdefs.h. */
  8196. _ACEOF
  8197. if ac_fn_c_try_compile "$LINENO"; then :
  8198. #
  8199. # Not a problem.
  8200. #
  8201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8202. $as_echo "no" >&6; }
  8203. else
  8204. #
  8205. # A problem.
  8206. #
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8208. $as_echo "yes" >&6; }
  8209. can_add_to_cflags=no
  8210. fi
  8211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8212. fi
  8213. CFLAGS="$save_CFLAGS"
  8214. if test x"$can_add_to_cflags" = "xyes"
  8215. then
  8216. V_CCOPT="$V_CCOPT -Wmissing-variable-declarations"
  8217. fi
  8218. else
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8220. $as_echo "no" >&6; }
  8221. CFLAGS="$save_CFLAGS"
  8222. fi
  8223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-parameter option" >&5
  8225. $as_echo_n "checking whether the compiler supports the -Wunused-parameter option... " >&6; }
  8226. save_CFLAGS="$CFLAGS"
  8227. if expr "x-Wunused-parameter" : "x-W.*" >/dev/null
  8228. then
  8229. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunused-parameter"
  8230. elif expr "x-Wunused-parameter" : "x-f.*" >/dev/null
  8231. then
  8232. CFLAGS="$CFLAGS -Werror -Wunused-parameter"
  8233. elif expr "x-Wunused-parameter" : "x-m.*" >/dev/null
  8234. then
  8235. CFLAGS="$CFLAGS -Werror -Wunused-parameter"
  8236. else
  8237. CFLAGS="$CFLAGS -Wunused-parameter"
  8238. fi
  8239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8240. /* end confdefs.h. */
  8241. int
  8242. main ()
  8243. {
  8244. return 0
  8245. ;
  8246. return 0;
  8247. }
  8248. _ACEOF
  8249. if ac_fn_c_try_compile "$LINENO"; then :
  8250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8251. $as_echo "yes" >&6; }
  8252. can_add_to_cflags=yes
  8253. #
  8254. # The compile supports this; do we have some C code for
  8255. # which the warning should *not* appear?
  8256. # We test the fourth argument because the third argument
  8257. # could contain quotes, breaking the test.
  8258. #
  8259. if test "x" != "x"
  8260. then
  8261. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  8262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunused-parameter " >&5
  8263. $as_echo_n "checking whether -Wunused-parameter ... " >&6; }
  8264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8265. /* end confdefs.h. */
  8266. _ACEOF
  8267. if ac_fn_c_try_compile "$LINENO"; then :
  8268. #
  8269. # Not a problem.
  8270. #
  8271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8272. $as_echo "no" >&6; }
  8273. else
  8274. #
  8275. # A problem.
  8276. #
  8277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8278. $as_echo "yes" >&6; }
  8279. can_add_to_cflags=no
  8280. fi
  8281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8282. fi
  8283. CFLAGS="$save_CFLAGS"
  8284. if test x"$can_add_to_cflags" = "xyes"
  8285. then
  8286. V_CCOPT="$V_CCOPT -Wunused-parameter"
  8287. fi
  8288. else
  8289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8290. $as_echo "no" >&6; }
  8291. CFLAGS="$save_CFLAGS"
  8292. fi
  8293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wformat-nonliteral option" >&5
  8295. $as_echo_n "checking whether the compiler supports the -Wformat-nonliteral option... " >&6; }
  8296. save_CFLAGS="$CFLAGS"
  8297. if expr "x-Wformat-nonliteral" : "x-W.*" >/dev/null
  8298. then
  8299. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wformat-nonliteral"
  8300. elif expr "x-Wformat-nonliteral" : "x-f.*" >/dev/null
  8301. then
  8302. CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
  8303. elif expr "x-Wformat-nonliteral" : "x-m.*" >/dev/null
  8304. then
  8305. CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
  8306. else
  8307. CFLAGS="$CFLAGS -Wformat-nonliteral"
  8308. fi
  8309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8310. /* end confdefs.h. */
  8311. int
  8312. main ()
  8313. {
  8314. return 0
  8315. ;
  8316. return 0;
  8317. }
  8318. _ACEOF
  8319. if ac_fn_c_try_compile "$LINENO"; then :
  8320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8321. $as_echo "yes" >&6; }
  8322. can_add_to_cflags=yes
  8323. #
  8324. # The compile supports this; do we have some C code for
  8325. # which the warning should *not* appear?
  8326. # We test the fourth argument because the third argument
  8327. # could contain quotes, breaking the test.
  8328. #
  8329. if test "x" != "x"
  8330. then
  8331. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  8332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat-nonliteral " >&5
  8333. $as_echo_n "checking whether -Wformat-nonliteral ... " >&6; }
  8334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8335. /* end confdefs.h. */
  8336. _ACEOF
  8337. if ac_fn_c_try_compile "$LINENO"; then :
  8338. #
  8339. # Not a problem.
  8340. #
  8341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8342. $as_echo "no" >&6; }
  8343. else
  8344. #
  8345. # A problem.
  8346. #
  8347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8348. $as_echo "yes" >&6; }
  8349. can_add_to_cflags=no
  8350. fi
  8351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8352. fi
  8353. CFLAGS="$save_CFLAGS"
  8354. if test x"$can_add_to_cflags" = "xyes"
  8355. then
  8356. V_CCOPT="$V_CCOPT -Wformat-nonliteral"
  8357. fi
  8358. else
  8359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8360. $as_echo "no" >&6; }
  8361. CFLAGS="$save_CFLAGS"
  8362. fi
  8363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8364. #
  8365. # This can cause problems with ntohs(), ntohl(),
  8366. # htons(), and htonl() on some platforms, such
  8367. # as OpenBSD 6.3 with Clang 5.0.1. I guess the
  8368. # problem is that the macro that ultimately does
  8369. # the byte-swapping involves a conditional
  8370. # expression that tests whether the value being
  8371. # swapped is a compile-time constant or not,
  8372. # using __builtin_constant_p(), and, depending
  8373. # on whether it is, does a compile-time swap or
  8374. # a run-time swap; perhaps the compiler always
  8375. # considers one of the two results of the
  8376. # conditional expressin is never evaluated,
  8377. # because the conditional check is done at
  8378. # compile time, and thus always says "that
  8379. # expression is never executed".
  8380. #
  8381. # (Perhaps there should be a way of flagging
  8382. # an expression that you *want* evaluated at
  8383. # compile time, so that the compiler 1) warns
  8384. # if it *can't* be evaluated at compile time
  8385. # and 2) *doesn't* warn that the true or false
  8386. # branch will never be reached.)
  8387. #
  8388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code option" >&5
  8389. $as_echo_n "checking whether the compiler supports the -Wunreachable-code option... " >&6; }
  8390. save_CFLAGS="$CFLAGS"
  8391. if expr "x-Wunreachable-code" : "x-W.*" >/dev/null
  8392. then
  8393. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wunreachable-code"
  8394. elif expr "x-Wunreachable-code" : "x-f.*" >/dev/null
  8395. then
  8396. CFLAGS="$CFLAGS -Werror -Wunreachable-code"
  8397. elif expr "x-Wunreachable-code" : "x-m.*" >/dev/null
  8398. then
  8399. CFLAGS="$CFLAGS -Werror -Wunreachable-code"
  8400. else
  8401. CFLAGS="$CFLAGS -Wunreachable-code"
  8402. fi
  8403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8404. /* end confdefs.h. */
  8405. int
  8406. main ()
  8407. {
  8408. return 0
  8409. ;
  8410. return 0;
  8411. }
  8412. _ACEOF
  8413. if ac_fn_c_try_compile "$LINENO"; then :
  8414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8415. $as_echo "yes" >&6; }
  8416. can_add_to_cflags=yes
  8417. #
  8418. # The compile supports this; do we have some C code for
  8419. # which the warning should *not* appear?
  8420. # We test the fourth argument because the third argument
  8421. # could contain quotes, breaking the test.
  8422. #
  8423. if test "xgenerates warnings from ntohs()" != "x"
  8424. then
  8425. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  8426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wunreachable-code generates warnings from ntohs()" >&5
  8427. $as_echo_n "checking whether -Wunreachable-code generates warnings from ntohs()... " >&6; }
  8428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8429. /* end confdefs.h. */
  8430. #include <arpa/inet.h>
  8431. unsigned short
  8432. testme(unsigned short a)
  8433. {
  8434. return ntohs(a);
  8435. }
  8436. _ACEOF
  8437. if ac_fn_c_try_compile "$LINENO"; then :
  8438. #
  8439. # Not a problem.
  8440. #
  8441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8442. $as_echo "no" >&6; }
  8443. else
  8444. #
  8445. # A problem.
  8446. #
  8447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8448. $as_echo "yes" >&6; }
  8449. can_add_to_cflags=no
  8450. fi
  8451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8452. fi
  8453. CFLAGS="$save_CFLAGS"
  8454. if test x"$can_add_to_cflags" = "xyes"
  8455. then
  8456. V_CCOPT="$V_CCOPT -Wunreachable-code"
  8457. fi
  8458. else
  8459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8460. $as_echo "no" >&6; }
  8461. CFLAGS="$save_CFLAGS"
  8462. fi
  8463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8464. fi
  8465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
  8466. $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
  8467. if test "$GCC" = yes ; then
  8468. #
  8469. # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
  8470. # though it's not); we assume that, in this case, the flag
  8471. # would be -M.
  8472. #
  8473. ac_lbl_dependency_flag="-M"
  8474. else
  8475. #
  8476. # Not GCC or a compiler deemed to be GCC; what platform is
  8477. # this? (We're assuming that if the compiler isn't GCC
  8478. # it's the compiler from the vendor of the OS; that won't
  8479. # necessarily be true for x86 platforms, where it might be
  8480. # the Intel C compiler.)
  8481. #
  8482. case "$host_os" in
  8483. irix*|osf*|darwin*)
  8484. #
  8485. # MIPS C for IRIX, DEC C, and clang all use -M.
  8486. #
  8487. ac_lbl_dependency_flag="-M"
  8488. ;;
  8489. solaris*)
  8490. #
  8491. # Sun C uses -xM.
  8492. #
  8493. ac_lbl_dependency_flag="-xM"
  8494. ;;
  8495. hpux*)
  8496. #
  8497. # HP's older C compilers don't support this.
  8498. # HP's newer C compilers support this with
  8499. # either +M or +Make; the older compilers
  8500. # interpret +M as something completely
  8501. # different, so we use +Make so we don't
  8502. # think it works with the older compilers.
  8503. #
  8504. ac_lbl_dependency_flag="+Make"
  8505. ;;
  8506. *)
  8507. #
  8508. # Not one of the above; assume no support for
  8509. # generating dependencies.
  8510. #
  8511. ac_lbl_dependency_flag=""
  8512. ;;
  8513. esac
  8514. fi
  8515. #
  8516. # Is ac_lbl_dependency_flag defined and, if so, does the compiler
  8517. # complain about it?
  8518. #
  8519. # Note: clang doesn't seem to exit with an error status when handed
  8520. # an unknown non-warning error, even if you pass it
  8521. # -Werror=unknown-warning-option. However, it always supports
  8522. # -M, so the fact that this test always succeeds with clang
  8523. # isn't an issue.
  8524. #
  8525. if test ! -z "$ac_lbl_dependency_flag"; then
  8526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8527. /* end confdefs.h. */
  8528. int main(void) { return 0; }
  8529. _ACEOF
  8530. if { { $as_echo "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5
  8531. (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5
  8532. ac_status=$?
  8533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8534. test $ac_status = 0; }; then
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
  8536. $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
  8537. DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
  8538. MKDEP='${srcdir}/mkdep'
  8539. else
  8540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8541. $as_echo "no" >&6; }
  8542. #
  8543. # We can't run mkdep, so have "make depend" do
  8544. # nothing.
  8545. #
  8546. MKDEP='${srcdir}/nomkdep'
  8547. fi
  8548. rm -rf conftest*
  8549. else
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8551. $as_echo "no" >&6; }
  8552. #
  8553. # We can't run mkdep, so have "make depend" do
  8554. # nothing.
  8555. #
  8556. MKDEP='${srcdir}/nomkdep'
  8557. fi
  8558. #
  8559. # We used to set -n32 for IRIX 6 when not using GCC (presumed
  8560. # to mean that we're using MIPS C or MIPSpro C); it specified
  8561. # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
  8562. # not sure why that would be something to do *only* with a
  8563. # .devel file; why should the ABI for which we produce code
  8564. # depend on .devel?
  8565. #
  8566. os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
  8567. name="lbl/os-$os.h"
  8568. if test -f $name ; then
  8569. ln -s $name os-proto.h
  8570. $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
  8571. else
  8572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
  8573. $as_echo "$as_me: WARNING: can't find $name" >&2;}
  8574. fi
  8575. fi
  8576. #
  8577. # Check to see if the sockaddr struct has the 4.4 BSD sa_len member.
  8578. #
  8579. ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
  8580. #include <sys/types.h>
  8581. #include <sys/socket.h>
  8582. "
  8583. if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
  8584. cat >>confdefs.h <<_ACEOF
  8585. #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
  8586. _ACEOF
  8587. fi
  8588. #
  8589. # Check to see if there's a sockaddr_storage structure.
  8590. #
  8591. ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
  8592. #include <sys/types.h>
  8593. #include <sys/socket.h>
  8594. "
  8595. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
  8596. cat >>confdefs.h <<_ACEOF
  8597. #define HAVE_STRUCT_SOCKADDR_STORAGE 1
  8598. _ACEOF
  8599. fi
  8600. #
  8601. # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
  8602. # dl_module_id_1 member.
  8603. #
  8604. # NOTE: any failure means we conclude that it doesn't have that member,
  8605. # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
  8606. # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
  8607. # it doesn't have that member (which is OK, as either we won't be
  8608. # using code that would use that member, or we wouldn't compile in
  8609. # any case).
  8610. #
  8611. ac_fn_c_check_member "$LINENO" "dl_hp_ppa_info_t" "dl_module_id_1" "ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" "
  8612. #include <sys/types.h>
  8613. #include <sys/dlpi.h>
  8614. #include <sys/dlpi_ext.h>
  8615. "
  8616. if test "x$ac_cv_member_dl_hp_ppa_info_t_dl_module_id_1" = xyes; then :
  8617. cat >>confdefs.h <<_ACEOF
  8618. #define HAVE_DL_HP_PPA_INFO_T_DL_MODULE_ID_1 1
  8619. _ACEOF
  8620. fi
  8621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
  8622. $as_echo_n "checking if unaligned accesses fail... " >&6; }
  8623. if ${ac_cv_lbl_unaligned_fail+:} false; then :
  8624. $as_echo_n "(cached) " >&6
  8625. else
  8626. case "$host_cpu" in
  8627. #
  8628. # These are CPU types where:
  8629. #
  8630. # the CPU faults on an unaligned access, but at least some
  8631. # OSes that support that CPU catch the fault and simulate
  8632. # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
  8633. # the simulation is slow, so we don't want to use it;
  8634. #
  8635. # the CPU, I infer (from the old
  8636. #
  8637. # XXX: should also check that they don't do weird things (like on arm)
  8638. #
  8639. # comment) doesn't fault on unaligned accesses, but doesn't
  8640. # do a normal unaligned fetch, either (e.g., presumably, ARM);
  8641. #
  8642. # for whatever reason, the test program doesn't work
  8643. # (this has been claimed to be the case for several of those
  8644. # CPUs - I don't know what the problem is; the problem
  8645. # was reported as "the test program dumps core" for SuperH,
  8646. # but that's what the test program is *supposed* to do -
  8647. # it dumps core before it writes anything, so the test
  8648. # for an empty output file should find an empty output
  8649. # file and conclude that unaligned accesses don't work).
  8650. #
  8651. # This run-time test won't work if you're cross-compiling, so
  8652. # in order to support cross-compiling for a particular CPU,
  8653. # we have to wire in the list of CPU types anyway, as far as
  8654. # I know, so perhaps we should just have a set of CPUs on
  8655. # which we know it doesn't work, a set of CPUs on which we
  8656. # know it does work, and have the script just fail on other
  8657. # cpu types and update it when such a failure occurs.
  8658. #
  8659. alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
  8660. ac_cv_lbl_unaligned_fail=yes
  8661. ;;
  8662. *)
  8663. cat >conftest.c <<EOF
  8664. # include <sys/types.h>
  8665. # include <sys/wait.h>
  8666. # include <stdio.h>
  8667. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  8668. main() {
  8669. unsigned int i;
  8670. pid_t pid;
  8671. int status;
  8672. /* avoid "core dumped" message */
  8673. pid = fork();
  8674. if (pid < 0)
  8675. exit(2);
  8676. if (pid > 0) {
  8677. /* parent */
  8678. pid = waitpid(pid, &status, 0);
  8679. if (pid < 0)
  8680. exit(3);
  8681. exit(!WIFEXITED(status));
  8682. }
  8683. /* child */
  8684. i = *(unsigned int *)&a[1];
  8685. printf("%d\n", i);
  8686. exit(0);
  8687. }
  8688. EOF
  8689. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  8690. conftest.c $LIBS >/dev/null 2>&1
  8691. if test ! -x conftest ; then
  8692. ac_cv_lbl_unaligned_fail=yes
  8693. else
  8694. ./conftest >conftest.out
  8695. if test ! -s conftest.out ; then
  8696. ac_cv_lbl_unaligned_fail=yes
  8697. else
  8698. ac_cv_lbl_unaligned_fail=no
  8699. fi
  8700. fi
  8701. rm -f -r conftest* core core.conftest
  8702. ;;
  8703. esac
  8704. fi
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
  8706. $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
  8707. if test $ac_cv_lbl_unaligned_fail = yes ; then
  8708. $as_echo "#define LBL_ALIGN 1" >>confdefs.h
  8709. fi
  8710. # Check whether --enable-usb was given.
  8711. if test "${enable_usb+set}" = set; then :
  8712. enableval=$enable_usb;
  8713. else
  8714. enable_usb=yes
  8715. fi
  8716. if test "xxx_only" = yes; then
  8717. # User requested something-else-only pcap, so they don't
  8718. # want USB support.
  8719. enable_usb=no
  8720. fi
  8721. if test "x$enable_usb" != "xno" ; then
  8722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
  8723. $as_echo_n "checking for USB sniffing support... " >&6; }
  8724. case "$host_os" in
  8725. linux*)
  8726. $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
  8727. USB_SRC=pcap-usb-linux.c
  8728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8729. $as_echo "yes" >&6; }
  8730. ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
  8731. if test $? -ne 0 ; then
  8732. ac_usb_dev_name="usbmon"
  8733. fi
  8734. cat >>confdefs.h <<_ACEOF
  8735. #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
  8736. _ACEOF
  8737. { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
  8738. $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
  8739. #
  8740. # Do we have a version of <linux/compiler.h> available?
  8741. # If so, we might need it for <linux/usbdevice_fs.h>.
  8742. #
  8743. for ac_header in linux/compiler.h
  8744. do :
  8745. ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
  8746. if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
  8747. cat >>confdefs.h <<_ACEOF
  8748. #define HAVE_LINUX_COMPILER_H 1
  8749. _ACEOF
  8750. fi
  8751. done
  8752. if test "$ac_cv_header_linux_compiler_h" = yes; then
  8753. #
  8754. # Yes - include it when testing for <linux/usbdevice_fs.h>.
  8755. #
  8756. for ac_header in linux/usbdevice_fs.h
  8757. do :
  8758. ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
  8759. "
  8760. if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
  8761. cat >>confdefs.h <<_ACEOF
  8762. #define HAVE_LINUX_USBDEVICE_FS_H 1
  8763. _ACEOF
  8764. fi
  8765. done
  8766. else
  8767. for ac_header in linux/usbdevice_fs.h
  8768. do :
  8769. ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
  8770. if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
  8771. cat >>confdefs.h <<_ACEOF
  8772. #define HAVE_LINUX_USBDEVICE_FS_H 1
  8773. _ACEOF
  8774. fi
  8775. done
  8776. fi
  8777. if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
  8778. #
  8779. # OK, does it define bRequestType? Older versions of the kernel
  8780. # define fields with names like "requesttype, "request", and
  8781. # "value", rather than "bRequestType", "bRequest", and
  8782. # "wValue".
  8783. #
  8784. ac_fn_c_check_member "$LINENO" "struct usbdevfs_ctrltransfer" "bRequestType" "ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" "
  8785. $ac_includes_default
  8786. #ifdef HAVE_LINUX_COMPILER_H
  8787. #include <linux/compiler.h>
  8788. #endif
  8789. #include <linux/usbdevice_fs.h>
  8790. "
  8791. if test "x$ac_cv_member_struct_usbdevfs_ctrltransfer_bRequestType" = xyes; then :
  8792. cat >>confdefs.h <<_ACEOF
  8793. #define HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
  8794. _ACEOF
  8795. fi
  8796. fi
  8797. ;;
  8798. freebsd*)
  8799. #
  8800. # This just uses BPF in FreeBSD 8.4 and later; we don't need
  8801. # to check for anything special for capturing.
  8802. #
  8803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
  8804. $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
  8805. ;;
  8806. *)
  8807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8808. $as_echo "no" >&6; }
  8809. ;;
  8810. esac
  8811. fi
  8812. if test "xxx_only" != yes; then
  8813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
  8814. $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
  8815. case "$host_os" in
  8816. linux*)
  8817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8818. $as_echo "yes" >&6; }
  8819. #
  8820. # Life's too short to deal with trying to get this to compile
  8821. # if you don't get the right types defined with
  8822. # __KERNEL_STRICT_NAMES getting defined by some other include.
  8823. #
  8824. # Check whether the includes Just Work. If not, don't turn on
  8825. # netfilter support.
  8826. #
  8827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
  8828. $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
  8829. if ${ac_cv_netfilter_can_compile+:} false; then :
  8830. $as_echo_n "(cached) " >&6
  8831. else
  8832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8833. /* end confdefs.h. */
  8834. $ac_includes_default
  8835. #include <sys/socket.h>
  8836. #include <netinet/in.h>
  8837. #include <linux/types.h>
  8838. #include <linux/netlink.h>
  8839. #include <linux/netfilter.h>
  8840. #include <linux/netfilter/nfnetlink.h>
  8841. #include <linux/netfilter/nfnetlink_log.h>
  8842. #include <linux/netfilter/nfnetlink_queue.h>
  8843. int
  8844. main ()
  8845. {
  8846. ;
  8847. return 0;
  8848. }
  8849. _ACEOF
  8850. if ac_fn_c_try_compile "$LINENO"; then :
  8851. ac_cv_netfilter_can_compile=yes
  8852. else
  8853. ac_cv_netfilter_can_compile=no
  8854. fi
  8855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8856. fi
  8857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
  8858. $as_echo "$ac_cv_netfilter_can_compile" >&6; }
  8859. if test $ac_cv_netfilter_can_compile = yes ; then
  8860. $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
  8861. NETFILTER_SRC=pcap-netfilter-linux.c
  8862. fi
  8863. ;;
  8864. *)
  8865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8866. $as_echo "no" >&6; }
  8867. ;;
  8868. esac
  8869. fi
  8870. # Check whether --enable-netmap was given.
  8871. if test "${enable_netmap+set}" = set; then :
  8872. enableval=$enable_netmap;
  8873. else
  8874. enable_netmap=yes
  8875. fi
  8876. if test "x$enable_netmap" != "xno" ; then
  8877. #
  8878. # Check whether net/netmap_user.h is usable if NETMAP_WITH_LIBS is
  8879. # defined; it's not usable on DragonFly BSD 4.6 if NETMAP_WITH_LIBS
  8880. # is defined, for example, as it includes a non-existent malloc.h
  8881. # header.
  8882. #
  8883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netmap support" >&5
  8884. $as_echo_n "checking whether we can compile the netmap support... " >&6; }
  8885. if ${ac_cv_net_netmap_user_can_compile+:} false; then :
  8886. $as_echo_n "(cached) " >&6
  8887. else
  8888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8889. /* end confdefs.h. */
  8890. $ac_includes_default
  8891. #define NETMAP_WITH_LIBS
  8892. #include <net/netmap_user.h>
  8893. int
  8894. main ()
  8895. {
  8896. ;
  8897. return 0;
  8898. }
  8899. _ACEOF
  8900. if ac_fn_c_try_compile "$LINENO"; then :
  8901. ac_cv_net_netmap_user_can_compile=yes
  8902. else
  8903. ac_cv_net_netmap_user_can_compile=no
  8904. fi
  8905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8906. fi
  8907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_net_netmap_user_can_compile" >&5
  8908. $as_echo "$ac_cv_net_netmap_user_can_compile" >&6; }
  8909. if test $ac_cv_net_netmap_user_can_compile = yes ; then
  8910. $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
  8911. NETMAP_SRC=pcap-netmap.c
  8912. fi
  8913. fi
  8914. # Check whether --enable-bluetooth was given.
  8915. if test "${enable_bluetooth+set}" = set; then :
  8916. enableval=$enable_bluetooth;
  8917. else
  8918. enable_bluetooth=ifsupportavailable
  8919. fi
  8920. if test "xxx_only" = yes; then
  8921. # User requested something-else-only pcap, so they don't
  8922. # want Bluetooth support.
  8923. enable_bluetooth=no
  8924. fi
  8925. if test "x$enable_bluetooth" != "xno" ; then
  8926. case "$host_os" in
  8927. linux*)
  8928. ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
  8929. if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
  8930. #
  8931. # We have bluetooth.h, so we support Bluetooth
  8932. # sniffing.
  8933. #
  8934. $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
  8935. BT_SRC=pcap-bt-linux.c
  8936. { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
  8937. $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
  8938. ac_lbl_bluetooth_available=yes
  8939. #
  8940. # OK, does struct sockaddr_hci have an hci_channel
  8941. # member?
  8942. #
  8943. ac_fn_c_check_member "$LINENO" "struct sockaddr_hci" "hci_channel" "ac_cv_member_struct_sockaddr_hci_hci_channel" "
  8944. #include <bluetooth/bluetooth.h>
  8945. #include <bluetooth/hci.h>
  8946. "
  8947. if test "x$ac_cv_member_struct_sockaddr_hci_hci_channel" = xyes; then :
  8948. cat >>confdefs.h <<_ACEOF
  8949. #define HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL 1
  8950. _ACEOF
  8951. #
  8952. # Yes; is HCI_CHANNEL_MONITOR defined?
  8953. #
  8954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
  8955. $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
  8956. if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
  8957. $as_echo_n "(cached) " >&6
  8958. else
  8959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8960. /* end confdefs.h. */
  8961. #include <bluetooth/bluetooth.h>
  8962. #include <bluetooth/hci.h>
  8963. int
  8964. main ()
  8965. {
  8966. u_int i = HCI_CHANNEL_MONITOR;
  8967. ;
  8968. return 0;
  8969. }
  8970. _ACEOF
  8971. if ac_fn_c_try_compile "$LINENO"; then :
  8972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8973. $as_echo "yes" >&6; }
  8974. $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
  8975. BT_MONITOR_SRC=pcap-bt-monitor-linux.c
  8976. else
  8977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8978. $as_echo "no" >&6; }
  8979. fi
  8980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8981. fi
  8982. fi
  8983. else
  8984. #
  8985. # We don't have bluetooth.h, so we don't support
  8986. # Bluetooth sniffing.
  8987. #
  8988. if test "x$enable_bluetooth" = "xyes" ; then
  8989. as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
  8990. else
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
  8992. $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
  8993. fi
  8994. fi
  8995. ;;
  8996. *)
  8997. if test "x$enable_bluetooth" = "xyes" ; then
  8998. as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
  8999. else
  9000. { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
  9001. $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
  9002. fi
  9003. ;;
  9004. esac
  9005. fi
  9006. # Check whether --enable-dbus was given.
  9007. if test "${enable_dbus+set}" = set; then :
  9008. enableval=$enable_dbus;
  9009. else
  9010. enable_dbus=ifavailable
  9011. fi
  9012. if test "xxx_only" = yes; then
  9013. # User requested something-else-only pcap, so they don't
  9014. # want D-Bus support.
  9015. enable_dbus=no
  9016. fi
  9017. if test "x$enable_dbus" != "xno"; then
  9018. if test "x$enable_dbus" = "xyes"; then
  9019. case "$host_os" in
  9020. darwin*)
  9021. #
  9022. # We don't support D-Bus sniffing on macOS; see
  9023. #
  9024. # https://bugs.freedesktop.org/show_bug.cgi?id=74029
  9025. #
  9026. # The user requested it, so fail.
  9027. #
  9028. as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
  9029. esac
  9030. else
  9031. case "$host_os" in
  9032. darwin*)
  9033. #
  9034. # We don't support D-Bus sniffing on macOS; see
  9035. #
  9036. # https://bugs.freedesktop.org/show_bug.cgi?id=74029
  9037. #
  9038. # The user dind't explicitly request it, so just
  9039. # silently refuse to enable it.
  9040. #
  9041. enable_dbus="no"
  9042. ;;
  9043. esac
  9044. fi
  9045. fi
  9046. if test "x$enable_dbus" != "xno"; then
  9047. # Extract the first word of "pkg-config", so it can be a program name with args.
  9048. set dummy pkg-config; ac_word=$2
  9049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9050. $as_echo_n "checking for $ac_word... " >&6; }
  9051. if ${ac_cv_prog_PKGCONFIG+:} false; then :
  9052. $as_echo_n "(cached) " >&6
  9053. else
  9054. if test -n "$PKGCONFIG"; then
  9055. ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
  9056. else
  9057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9058. for as_dir in $PATH
  9059. do
  9060. IFS=$as_save_IFS
  9061. test -z "$as_dir" && as_dir=.
  9062. for ac_exec_ext in '' $ac_executable_extensions; do
  9063. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9064. ac_cv_prog_PKGCONFIG="pkg-config"
  9065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9066. break 2
  9067. fi
  9068. done
  9069. done
  9070. IFS=$as_save_IFS
  9071. test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
  9072. fi
  9073. fi
  9074. PKGCONFIG=$ac_cv_prog_PKGCONFIG
  9075. if test -n "$PKGCONFIG"; then
  9076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  9077. $as_echo "$PKGCONFIG" >&6; }
  9078. else
  9079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9080. $as_echo "no" >&6; }
  9081. fi
  9082. if test "x$PKGCONFIG" != "xno"; then
  9083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
  9084. $as_echo_n "checking for D-Bus... " >&6; }
  9085. if "$PKGCONFIG" dbus-1; then
  9086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9087. $as_echo "yes" >&6; }
  9088. DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1`
  9089. DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1`
  9090. save_CFLAGS="$CFLAGS"
  9091. save_LIBS="$LIBS"
  9092. CFLAGS="$CFLAGS $DBUS_CFLAGS"
  9093. LIBS="$LIBS $DBUS_LIBS"
  9094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
  9095. $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
  9096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9097. /* end confdefs.h. */
  9098. #include <string.h>
  9099. #include <time.h>
  9100. #include <sys/time.h>
  9101. #include <dbus/dbus.h>
  9102. int
  9103. main ()
  9104. {
  9105. return dbus_connection_read_write(NULL, 0);
  9106. ;
  9107. return 0;
  9108. }
  9109. _ACEOF
  9110. if ac_fn_c_try_link "$LINENO"; then :
  9111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9112. $as_echo "yes" >&6; }
  9113. $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
  9114. DBUS_SRC=pcap-dbus.c
  9115. V_INCLS="$V_INCLS $DBUS_CFLAGS"
  9116. else
  9117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9118. $as_echo "no" >&6; }
  9119. if test "x$enable_dbus" = "xyes"; then
  9120. as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
  9121. fi
  9122. LIBS="$save_LIBS"
  9123. fi
  9124. rm -f core conftest.err conftest.$ac_objext \
  9125. conftest$ac_exeext conftest.$ac_ext
  9126. CFLAGS="$save_CFLAGS"
  9127. else
  9128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9129. $as_echo "no" >&6; }
  9130. if test "x$enable_dbus" = "xyes"; then
  9131. as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
  9132. fi
  9133. fi
  9134. fi
  9135. fi
  9136. # Check whether --enable-rdma was given.
  9137. if test "${enable_rdma+set}" = set; then :
  9138. enableval=$enable_rdma;
  9139. else
  9140. enable_rdmasniff=ifavailable
  9141. fi
  9142. if test "xxx_only" = yes; then
  9143. # User requested something-else-only pcap, so they don't
  9144. # want RDMA support.
  9145. enable_rdmasniff=no
  9146. fi
  9147. if test "x$enable_rdmasniff" != "xno"; then
  9148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
  9149. $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
  9150. if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
  9151. $as_echo_n "(cached) " >&6
  9152. else
  9153. ac_check_lib_save_LIBS=$LIBS
  9154. LIBS="-libverbs $LIBS"
  9155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9156. /* end confdefs.h. */
  9157. /* Override any GCC internal prototype to avoid an error.
  9158. Use char because int might match the return type of a GCC
  9159. builtin and then its argument prototype would still apply. */
  9160. #ifdef __cplusplus
  9161. extern "C"
  9162. #endif
  9163. char ibv_get_device_list ();
  9164. int
  9165. main ()
  9166. {
  9167. return ibv_get_device_list ();
  9168. ;
  9169. return 0;
  9170. }
  9171. _ACEOF
  9172. if ac_fn_c_try_link "$LINENO"; then :
  9173. ac_cv_lib_ibverbs_ibv_get_device_list=yes
  9174. else
  9175. ac_cv_lib_ibverbs_ibv_get_device_list=no
  9176. fi
  9177. rm -f core conftest.err conftest.$ac_objext \
  9178. conftest$ac_exeext conftest.$ac_ext
  9179. LIBS=$ac_check_lib_save_LIBS
  9180. fi
  9181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
  9182. $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
  9183. if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
  9184. ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
  9185. if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
  9186. #
  9187. # ibv_create_flow may be defined as a static inline
  9188. # function in infiniband/verbs.h, so we can't
  9189. # use AC_CHECK_LIB.
  9190. #
  9191. # Too bad autoconf has no AC_SYMBOL_EXISTS()
  9192. # macro that works like CMake's check_symbol_exists()
  9193. # function, to check do a compile check like
  9194. # this (they do a clever trick to avoid having
  9195. # to know the function's signature).
  9196. #
  9197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
  9198. $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
  9199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9200. /* end confdefs.h. */
  9201. #include <infiniband/verbs.h>
  9202. int
  9203. main ()
  9204. {
  9205. (void) ibv_create_flow((struct ibv_qp *) NULL,
  9206. (struct ibv_flow_attr *) NULL);
  9207. ;
  9208. return 0;
  9209. }
  9210. _ACEOF
  9211. if ac_fn_c_try_link "$LINENO"; then :
  9212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9213. $as_echo "yes" >&6; }
  9214. $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
  9215. RDMA_SRC=pcap-rdmasniff.c
  9216. LIBS="-libverbs $LIBS"
  9217. else
  9218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9219. $as_echo "no" >&6; }
  9220. fi
  9221. rm -f core conftest.err conftest.$ac_objext \
  9222. conftest$ac_exeext conftest.$ac_ext
  9223. fi
  9224. fi
  9225. fi
  9226. # Find a good install program. We prefer a C program (faster),
  9227. # so one script is as good as another. But avoid the broken or
  9228. # incompatible versions:
  9229. # SysV /etc/install, /usr/sbin/install
  9230. # SunOS /usr/etc/install
  9231. # IRIX /sbin/install
  9232. # AIX /bin/install
  9233. # AmigaOS /C/install, which installs bootblocks on floppy discs
  9234. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9235. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9236. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9237. # OS/2's system install, which has a completely different semantic
  9238. # ./install, which can be erroneously created by make from ./install.sh.
  9239. # Reject install programs that cannot install multiple files.
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  9241. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  9242. if test -z "$INSTALL"; then
  9243. if ${ac_cv_path_install+:} false; then :
  9244. $as_echo_n "(cached) " >&6
  9245. else
  9246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9247. for as_dir in $PATH
  9248. do
  9249. IFS=$as_save_IFS
  9250. test -z "$as_dir" && as_dir=.
  9251. # Account for people who put trailing slashes in PATH elements.
  9252. case $as_dir/ in #((
  9253. ./ | .// | /[cC]/* | \
  9254. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  9255. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  9256. /usr/ucb/* ) ;;
  9257. *)
  9258. # OSF1 and SCO ODT 3.0 have their own names for install.
  9259. # Don't use installbsd from OSF since it installs stuff as root
  9260. # by default.
  9261. for ac_prog in ginstall scoinst install; do
  9262. for ac_exec_ext in '' $ac_executable_extensions; do
  9263. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  9264. if test $ac_prog = install &&
  9265. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9266. # AIX install. It has an incompatible calling convention.
  9267. :
  9268. elif test $ac_prog = install &&
  9269. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9270. # program-specific install script used by HP pwplus--don't use.
  9271. :
  9272. else
  9273. rm -rf conftest.one conftest.two conftest.dir
  9274. echo one > conftest.one
  9275. echo two > conftest.two
  9276. mkdir conftest.dir
  9277. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  9278. test -s conftest.one && test -s conftest.two &&
  9279. test -s conftest.dir/conftest.one &&
  9280. test -s conftest.dir/conftest.two
  9281. then
  9282. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  9283. break 3
  9284. fi
  9285. fi
  9286. fi
  9287. done
  9288. done
  9289. ;;
  9290. esac
  9291. done
  9292. IFS=$as_save_IFS
  9293. rm -rf conftest.one conftest.two conftest.dir
  9294. fi
  9295. if test "${ac_cv_path_install+set}" = set; then
  9296. INSTALL=$ac_cv_path_install
  9297. else
  9298. # As a last resort, use the slow shell script. Don't cache a
  9299. # value for INSTALL within a source directory, because that will
  9300. # break other packages using the cache if that directory is
  9301. # removed, or if the value is a relative name.
  9302. INSTALL=$ac_install_sh
  9303. fi
  9304. fi
  9305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  9306. $as_echo "$INSTALL" >&6; }
  9307. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  9308. # It thinks the first close brace ends the variable substitution.
  9309. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  9310. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  9311. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  9312. ac_config_headers="$ac_config_headers config.h"
  9313. ac_config_commands="$ac_config_commands default-1"
  9314. ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile rpcapd/rpcapd.manadmin testprogs/Makefile"
  9315. cat >confcache <<\_ACEOF
  9316. # This file is a shell script that caches the results of configure
  9317. # tests run on this system so they can be shared between configure
  9318. # scripts and configure runs, see configure's option --config-cache.
  9319. # It is not useful on other systems. If it contains results you don't
  9320. # want to keep, you may remove or edit it.
  9321. #
  9322. # config.status only pays attention to the cache file if you give it
  9323. # the --recheck option to rerun configure.
  9324. #
  9325. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9326. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9327. # following values.
  9328. _ACEOF
  9329. # The following way of writing the cache mishandles newlines in values,
  9330. # but we know of no workaround that is simple, portable, and efficient.
  9331. # So, we kill variables containing newlines.
  9332. # Ultrix sh set writes to stderr and can't be redirected directly,
  9333. # and sets the high bit in the cache file unless we assign to the vars.
  9334. (
  9335. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9336. eval ac_val=\$$ac_var
  9337. case $ac_val in #(
  9338. *${as_nl}*)
  9339. case $ac_var in #(
  9340. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9341. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9342. esac
  9343. case $ac_var in #(
  9344. _ | IFS | as_nl) ;; #(
  9345. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9346. *) { eval $ac_var=; unset $ac_var;} ;;
  9347. esac ;;
  9348. esac
  9349. done
  9350. (set) 2>&1 |
  9351. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9352. *${as_nl}ac_space=\ *)
  9353. # `set' does not quote correctly, so add quotes: double-quote
  9354. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9355. sed -n \
  9356. "s/'/'\\\\''/g;
  9357. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9358. ;; #(
  9359. *)
  9360. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9361. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9362. ;;
  9363. esac |
  9364. sort
  9365. ) |
  9366. sed '
  9367. /^ac_cv_env_/b end
  9368. t clear
  9369. :clear
  9370. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9371. t end
  9372. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9373. :end' >>confcache
  9374. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9375. if test -w "$cache_file"; then
  9376. if test "x$cache_file" != "x/dev/null"; then
  9377. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9378. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9379. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9380. cat confcache >"$cache_file"
  9381. else
  9382. case $cache_file in #(
  9383. */* | ?:*)
  9384. mv -f confcache "$cache_file"$$ &&
  9385. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9386. *)
  9387. mv -f confcache "$cache_file" ;;
  9388. esac
  9389. fi
  9390. fi
  9391. else
  9392. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9393. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9394. fi
  9395. fi
  9396. rm -f confcache
  9397. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9398. # Let make expand exec_prefix.
  9399. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9400. DEFS=-DHAVE_CONFIG_H
  9401. ac_libobjs=
  9402. ac_ltlibobjs=
  9403. U=
  9404. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9405. # 1. Remove the extension, and $U if already installed.
  9406. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9407. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9408. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9409. # will be set to the directory where LIBOBJS objects are built.
  9410. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9411. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9412. done
  9413. LIBOBJS=$ac_libobjs
  9414. LTLIBOBJS=$ac_ltlibobjs
  9415. : "${CONFIG_STATUS=./config.status}"
  9416. ac_write_fail=0
  9417. ac_clean_files_save=$ac_clean_files
  9418. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9419. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9420. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9421. as_write_fail=0
  9422. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9423. #! $SHELL
  9424. # Generated by $as_me.
  9425. # Run this file to recreate the current configuration.
  9426. # Compiler output produced by configure, useful for debugging
  9427. # configure, is in config.log if it exists.
  9428. debug=false
  9429. ac_cs_recheck=false
  9430. ac_cs_silent=false
  9431. SHELL=\${CONFIG_SHELL-$SHELL}
  9432. export SHELL
  9433. _ASEOF
  9434. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9435. ## -------------------- ##
  9436. ## M4sh Initialization. ##
  9437. ## -------------------- ##
  9438. # Be more Bourne compatible
  9439. DUALCASE=1; export DUALCASE # for MKS sh
  9440. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9441. emulate sh
  9442. NULLCMD=:
  9443. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9444. # is contrary to our usage. Disable this feature.
  9445. alias -g '${1+"$@"}'='"$@"'
  9446. setopt NO_GLOB_SUBST
  9447. else
  9448. case `(set -o) 2>/dev/null` in #(
  9449. *posix*) :
  9450. set -o posix ;; #(
  9451. *) :
  9452. ;;
  9453. esac
  9454. fi
  9455. as_nl='
  9456. '
  9457. export as_nl
  9458. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9459. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9460. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9461. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9462. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9463. # but without wasting forks for bash or zsh.
  9464. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9465. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9466. as_echo='print -r --'
  9467. as_echo_n='print -rn --'
  9468. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9469. as_echo='printf %s\n'
  9470. as_echo_n='printf %s'
  9471. else
  9472. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9473. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9474. as_echo_n='/usr/ucb/echo -n'
  9475. else
  9476. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9477. as_echo_n_body='eval
  9478. arg=$1;
  9479. case $arg in #(
  9480. *"$as_nl"*)
  9481. expr "X$arg" : "X\\(.*\\)$as_nl";
  9482. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9483. esac;
  9484. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9485. '
  9486. export as_echo_n_body
  9487. as_echo_n='sh -c $as_echo_n_body as_echo'
  9488. fi
  9489. export as_echo_body
  9490. as_echo='sh -c $as_echo_body as_echo'
  9491. fi
  9492. # The user is always right.
  9493. if test "${PATH_SEPARATOR+set}" != set; then
  9494. PATH_SEPARATOR=:
  9495. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9496. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9497. PATH_SEPARATOR=';'
  9498. }
  9499. fi
  9500. # IFS
  9501. # We need space, tab and new line, in precisely that order. Quoting is
  9502. # there to prevent editors from complaining about space-tab.
  9503. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9504. # splitting by setting IFS to empty value.)
  9505. IFS=" "" $as_nl"
  9506. # Find who we are. Look in the path if we contain no directory separator.
  9507. as_myself=
  9508. case $0 in #((
  9509. *[\\/]* ) as_myself=$0 ;;
  9510. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9511. for as_dir in $PATH
  9512. do
  9513. IFS=$as_save_IFS
  9514. test -z "$as_dir" && as_dir=.
  9515. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9516. done
  9517. IFS=$as_save_IFS
  9518. ;;
  9519. esac
  9520. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9521. # in which case we are not to be found in the path.
  9522. if test "x$as_myself" = x; then
  9523. as_myself=$0
  9524. fi
  9525. if test ! -f "$as_myself"; then
  9526. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9527. exit 1
  9528. fi
  9529. # Unset variables that we do not need and which cause bugs (e.g. in
  9530. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9531. # suppresses any "Segmentation fault" message there. '((' could
  9532. # trigger a bug in pdksh 5.2.14.
  9533. for as_var in BASH_ENV ENV MAIL MAILPATH
  9534. do eval test x\${$as_var+set} = xset \
  9535. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9536. done
  9537. PS1='$ '
  9538. PS2='> '
  9539. PS4='+ '
  9540. # NLS nuisances.
  9541. LC_ALL=C
  9542. export LC_ALL
  9543. LANGUAGE=C
  9544. export LANGUAGE
  9545. # CDPATH.
  9546. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9547. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9548. # ----------------------------------------
  9549. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9550. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9551. # script with STATUS, using 1 if that was 0.
  9552. as_fn_error ()
  9553. {
  9554. as_status=$1; test $as_status -eq 0 && as_status=1
  9555. if test "$4"; then
  9556. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9557. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9558. fi
  9559. $as_echo "$as_me: error: $2" >&2
  9560. as_fn_exit $as_status
  9561. } # as_fn_error
  9562. # as_fn_set_status STATUS
  9563. # -----------------------
  9564. # Set $? to STATUS, without forking.
  9565. as_fn_set_status ()
  9566. {
  9567. return $1
  9568. } # as_fn_set_status
  9569. # as_fn_exit STATUS
  9570. # -----------------
  9571. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9572. as_fn_exit ()
  9573. {
  9574. set +e
  9575. as_fn_set_status $1
  9576. exit $1
  9577. } # as_fn_exit
  9578. # as_fn_unset VAR
  9579. # ---------------
  9580. # Portably unset VAR.
  9581. as_fn_unset ()
  9582. {
  9583. { eval $1=; unset $1;}
  9584. }
  9585. as_unset=as_fn_unset
  9586. # as_fn_append VAR VALUE
  9587. # ----------------------
  9588. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9589. # advantage of any shell optimizations that allow amortized linear growth over
  9590. # repeated appends, instead of the typical quadratic growth present in naive
  9591. # implementations.
  9592. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9593. eval 'as_fn_append ()
  9594. {
  9595. eval $1+=\$2
  9596. }'
  9597. else
  9598. as_fn_append ()
  9599. {
  9600. eval $1=\$$1\$2
  9601. }
  9602. fi # as_fn_append
  9603. # as_fn_arith ARG...
  9604. # ------------------
  9605. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9606. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9607. # must be portable across $(()) and expr.
  9608. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9609. eval 'as_fn_arith ()
  9610. {
  9611. as_val=$(( $* ))
  9612. }'
  9613. else
  9614. as_fn_arith ()
  9615. {
  9616. as_val=`expr "$@" || test $? -eq 1`
  9617. }
  9618. fi # as_fn_arith
  9619. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9620. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9621. as_expr=expr
  9622. else
  9623. as_expr=false
  9624. fi
  9625. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9626. as_basename=basename
  9627. else
  9628. as_basename=false
  9629. fi
  9630. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9631. as_dirname=dirname
  9632. else
  9633. as_dirname=false
  9634. fi
  9635. as_me=`$as_basename -- "$0" ||
  9636. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9637. X"$0" : 'X\(//\)$' \| \
  9638. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9639. $as_echo X/"$0" |
  9640. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9641. s//\1/
  9642. q
  9643. }
  9644. /^X\/\(\/\/\)$/{
  9645. s//\1/
  9646. q
  9647. }
  9648. /^X\/\(\/\).*/{
  9649. s//\1/
  9650. q
  9651. }
  9652. s/.*/./; q'`
  9653. # Avoid depending upon Character Ranges.
  9654. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9655. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9656. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9657. as_cr_digits='0123456789'
  9658. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9659. ECHO_C= ECHO_N= ECHO_T=
  9660. case `echo -n x` in #(((((
  9661. -n*)
  9662. case `echo 'xy\c'` in
  9663. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9664. xy) ECHO_C='\c';;
  9665. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9666. ECHO_T=' ';;
  9667. esac;;
  9668. *)
  9669. ECHO_N='-n';;
  9670. esac
  9671. rm -f conf$$ conf$$.exe conf$$.file
  9672. if test -d conf$$.dir; then
  9673. rm -f conf$$.dir/conf$$.file
  9674. else
  9675. rm -f conf$$.dir
  9676. mkdir conf$$.dir 2>/dev/null
  9677. fi
  9678. if (echo >conf$$.file) 2>/dev/null; then
  9679. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9680. as_ln_s='ln -s'
  9681. # ... but there are two gotchas:
  9682. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9683. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9684. # In both cases, we have to default to `cp -pR'.
  9685. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9686. as_ln_s='cp -pR'
  9687. elif ln conf$$.file conf$$ 2>/dev/null; then
  9688. as_ln_s=ln
  9689. else
  9690. as_ln_s='cp -pR'
  9691. fi
  9692. else
  9693. as_ln_s='cp -pR'
  9694. fi
  9695. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9696. rmdir conf$$.dir 2>/dev/null
  9697. # as_fn_mkdir_p
  9698. # -------------
  9699. # Create "$as_dir" as a directory, including parents if necessary.
  9700. as_fn_mkdir_p ()
  9701. {
  9702. case $as_dir in #(
  9703. -*) as_dir=./$as_dir;;
  9704. esac
  9705. test -d "$as_dir" || eval $as_mkdir_p || {
  9706. as_dirs=
  9707. while :; do
  9708. case $as_dir in #(
  9709. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9710. *) as_qdir=$as_dir;;
  9711. esac
  9712. as_dirs="'$as_qdir' $as_dirs"
  9713. as_dir=`$as_dirname -- "$as_dir" ||
  9714. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9715. X"$as_dir" : 'X\(//\)[^/]' \| \
  9716. X"$as_dir" : 'X\(//\)$' \| \
  9717. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9718. $as_echo X"$as_dir" |
  9719. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9720. s//\1/
  9721. q
  9722. }
  9723. /^X\(\/\/\)[^/].*/{
  9724. s//\1/
  9725. q
  9726. }
  9727. /^X\(\/\/\)$/{
  9728. s//\1/
  9729. q
  9730. }
  9731. /^X\(\/\).*/{
  9732. s//\1/
  9733. q
  9734. }
  9735. s/.*/./; q'`
  9736. test -d "$as_dir" && break
  9737. done
  9738. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9739. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9740. } # as_fn_mkdir_p
  9741. if mkdir -p . 2>/dev/null; then
  9742. as_mkdir_p='mkdir -p "$as_dir"'
  9743. else
  9744. test -d ./-p && rmdir ./-p
  9745. as_mkdir_p=false
  9746. fi
  9747. # as_fn_executable_p FILE
  9748. # -----------------------
  9749. # Test if FILE is an executable regular file.
  9750. as_fn_executable_p ()
  9751. {
  9752. test -f "$1" && test -x "$1"
  9753. } # as_fn_executable_p
  9754. as_test_x='test -x'
  9755. as_executable_p=as_fn_executable_p
  9756. # Sed expression to map a string onto a valid CPP name.
  9757. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9758. # Sed expression to map a string onto a valid variable name.
  9759. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9760. exec 6>&1
  9761. ## ----------------------------------- ##
  9762. ## Main body of $CONFIG_STATUS script. ##
  9763. ## ----------------------------------- ##
  9764. _ASEOF
  9765. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9766. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9767. # Save the log message, to keep $0 and so on meaningful, and to
  9768. # report actual input values of CONFIG_FILES etc. instead of their
  9769. # values after options handling.
  9770. ac_log="
  9771. This file was extended by pcap $as_me 1.9.0-PRE-GIT, which was
  9772. generated by GNU Autoconf 2.69. Invocation command line was
  9773. CONFIG_FILES = $CONFIG_FILES
  9774. CONFIG_HEADERS = $CONFIG_HEADERS
  9775. CONFIG_LINKS = $CONFIG_LINKS
  9776. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9777. $ $0 $@
  9778. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9779. "
  9780. _ACEOF
  9781. case $ac_config_files in *"
  9782. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9783. esac
  9784. case $ac_config_headers in *"
  9785. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9786. esac
  9787. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9788. # Files that config.status was made for.
  9789. config_files="$ac_config_files"
  9790. config_headers="$ac_config_headers"
  9791. config_commands="$ac_config_commands"
  9792. _ACEOF
  9793. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9794. ac_cs_usage="\
  9795. \`$as_me' instantiates files and other configuration actions
  9796. from templates according to the current configuration. Unless the files
  9797. and actions are specified as TAGs, all are instantiated by default.
  9798. Usage: $0 [OPTION]... [TAG]...
  9799. -h, --help print this help, then exit
  9800. -V, --version print version number and configuration settings, then exit
  9801. --config print configuration, then exit
  9802. -q, --quiet, --silent
  9803. do not print progress messages
  9804. -d, --debug don't remove temporary files
  9805. --recheck update $as_me by reconfiguring in the same conditions
  9806. --file=FILE[:TEMPLATE]
  9807. instantiate the configuration file FILE
  9808. --header=FILE[:TEMPLATE]
  9809. instantiate the configuration header FILE
  9810. Configuration files:
  9811. $config_files
  9812. Configuration headers:
  9813. $config_headers
  9814. Configuration commands:
  9815. $config_commands
  9816. Report bugs to the package provider."
  9817. _ACEOF
  9818. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9819. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9820. ac_cs_version="\\
  9821. pcap config.status 1.9.0-PRE-GIT
  9822. configured by $0, generated by GNU Autoconf 2.69,
  9823. with options \\"\$ac_cs_config\\"
  9824. Copyright (C) 2012 Free Software Foundation, Inc.
  9825. This config.status script is free software; the Free Software Foundation
  9826. gives unlimited permission to copy, distribute and modify it."
  9827. ac_pwd='$ac_pwd'
  9828. srcdir='$srcdir'
  9829. INSTALL='$INSTALL'
  9830. test -n "\$AWK" || AWK=awk
  9831. _ACEOF
  9832. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9833. # The default lists apply if the user does not specify any file.
  9834. ac_need_defaults=:
  9835. while test $# != 0
  9836. do
  9837. case $1 in
  9838. --*=?*)
  9839. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9840. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9841. ac_shift=:
  9842. ;;
  9843. --*=)
  9844. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9845. ac_optarg=
  9846. ac_shift=:
  9847. ;;
  9848. *)
  9849. ac_option=$1
  9850. ac_optarg=$2
  9851. ac_shift=shift
  9852. ;;
  9853. esac
  9854. case $ac_option in
  9855. # Handling of the options.
  9856. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9857. ac_cs_recheck=: ;;
  9858. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9859. $as_echo "$ac_cs_version"; exit ;;
  9860. --config | --confi | --conf | --con | --co | --c )
  9861. $as_echo "$ac_cs_config"; exit ;;
  9862. --debug | --debu | --deb | --de | --d | -d )
  9863. debug=: ;;
  9864. --file | --fil | --fi | --f )
  9865. $ac_shift
  9866. case $ac_optarg in
  9867. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9868. '') as_fn_error $? "missing file argument" ;;
  9869. esac
  9870. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9871. ac_need_defaults=false;;
  9872. --header | --heade | --head | --hea )
  9873. $ac_shift
  9874. case $ac_optarg in
  9875. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9876. esac
  9877. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9878. ac_need_defaults=false;;
  9879. --he | --h)
  9880. # Conflict between --help and --header
  9881. as_fn_error $? "ambiguous option: \`$1'
  9882. Try \`$0 --help' for more information.";;
  9883. --help | --hel | -h )
  9884. $as_echo "$ac_cs_usage"; exit ;;
  9885. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9886. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9887. ac_cs_silent=: ;;
  9888. # This is an error.
  9889. -*) as_fn_error $? "unrecognized option: \`$1'
  9890. Try \`$0 --help' for more information." ;;
  9891. *) as_fn_append ac_config_targets " $1"
  9892. ac_need_defaults=false ;;
  9893. esac
  9894. shift
  9895. done
  9896. ac_configure_extra_args=
  9897. if $ac_cs_silent; then
  9898. exec 6>/dev/null
  9899. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9900. fi
  9901. _ACEOF
  9902. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9903. if \$ac_cs_recheck; then
  9904. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9905. shift
  9906. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9907. CONFIG_SHELL='$SHELL'
  9908. export CONFIG_SHELL
  9909. exec "\$@"
  9910. fi
  9911. _ACEOF
  9912. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9913. exec 5>>config.log
  9914. {
  9915. echo
  9916. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9917. ## Running $as_me. ##
  9918. _ASBOX
  9919. $as_echo "$ac_log"
  9920. } >&5
  9921. _ACEOF
  9922. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9923. #
  9924. # INIT-COMMANDS
  9925. #
  9926. _ACEOF
  9927. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9928. # Handling of arguments.
  9929. for ac_config_target in $ac_config_targets
  9930. do
  9931. case $ac_config_target in
  9932. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9933. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  9934. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9935. "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
  9936. "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
  9937. "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
  9938. "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
  9939. "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
  9940. "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
  9941. "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
  9942. "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
  9943. "pcap_get_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
  9944. "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
  9945. "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
  9946. "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
  9947. "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
  9948. "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
  9949. "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
  9950. "rpcapd/Makefile") CONFIG_FILES="$CONFIG_FILES rpcapd/Makefile" ;;
  9951. "rpcapd/rpcapd.manadmin") CONFIG_FILES="$CONFIG_FILES rpcapd/rpcapd.manadmin" ;;
  9952. "testprogs/Makefile") CONFIG_FILES="$CONFIG_FILES testprogs/Makefile" ;;
  9953. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9954. esac
  9955. done
  9956. # If the user did not use the arguments to specify the items to instantiate,
  9957. # then the envvar interface is used. Set only those that are not.
  9958. # We use the long form for the default assignment because of an extremely
  9959. # bizarre bug on SunOS 4.1.3.
  9960. if $ac_need_defaults; then
  9961. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9962. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9963. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9964. fi
  9965. # Have a temporary directory for convenience. Make it in the build tree
  9966. # simply because there is no reason against having it here, and in addition,
  9967. # creating and moving files from /tmp can sometimes cause problems.
  9968. # Hook for its removal unless debugging.
  9969. # Note that there is a small window in which the directory will not be cleaned:
  9970. # after its creation but before its name has been assigned to `$tmp'.
  9971. $debug ||
  9972. {
  9973. tmp= ac_tmp=
  9974. trap 'exit_status=$?
  9975. : "${ac_tmp:=$tmp}"
  9976. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9977. ' 0
  9978. trap 'as_fn_exit 1' 1 2 13 15
  9979. }
  9980. # Create a (secure) tmp directory for tmp files.
  9981. {
  9982. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9983. test -d "$tmp"
  9984. } ||
  9985. {
  9986. tmp=./conf$$-$RANDOM
  9987. (umask 077 && mkdir "$tmp")
  9988. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9989. ac_tmp=$tmp
  9990. # Set up the scripts for CONFIG_FILES section.
  9991. # No need to generate them if there are no CONFIG_FILES.
  9992. # This happens for instance with `./config.status config.h'.
  9993. if test -n "$CONFIG_FILES"; then
  9994. ac_cr=`echo X | tr X '\015'`
  9995. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9996. # But we know of no other shell where ac_cr would be empty at this
  9997. # point, so we can use a bashism as a fallback.
  9998. if test "x$ac_cr" = x; then
  9999. eval ac_cr=\$\'\\r\'
  10000. fi
  10001. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10002. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10003. ac_cs_awk_cr='\\r'
  10004. else
  10005. ac_cs_awk_cr=$ac_cr
  10006. fi
  10007. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10008. _ACEOF
  10009. {
  10010. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10011. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10012. echo "_ACEOF"
  10013. } >conf$$subs.sh ||
  10014. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10015. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10016. ac_delim='%!_!# '
  10017. for ac_last_try in false false false false false :; do
  10018. . ./conf$$subs.sh ||
  10019. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10020. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10021. if test $ac_delim_n = $ac_delim_num; then
  10022. break
  10023. elif $ac_last_try; then
  10024. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10025. else
  10026. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10027. fi
  10028. done
  10029. rm -f conf$$subs.sh
  10030. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10031. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10032. _ACEOF
  10033. sed -n '
  10034. h
  10035. s/^/S["/; s/!.*/"]=/
  10036. p
  10037. g
  10038. s/^[^!]*!//
  10039. :repl
  10040. t repl
  10041. s/'"$ac_delim"'$//
  10042. t delim
  10043. :nl
  10044. h
  10045. s/\(.\{148\}\)..*/\1/
  10046. t more1
  10047. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10048. p
  10049. n
  10050. b repl
  10051. :more1
  10052. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10053. p
  10054. g
  10055. s/.\{148\}//
  10056. t nl
  10057. :delim
  10058. h
  10059. s/\(.\{148\}\)..*/\1/
  10060. t more2
  10061. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10062. p
  10063. b
  10064. :more2
  10065. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10066. p
  10067. g
  10068. s/.\{148\}//
  10069. t delim
  10070. ' <conf$$subs.awk | sed '
  10071. /^[^""]/{
  10072. N
  10073. s/\n//
  10074. }
  10075. ' >>$CONFIG_STATUS || ac_write_fail=1
  10076. rm -f conf$$subs.awk
  10077. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10078. _ACAWK
  10079. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10080. for (key in S) S_is_set[key] = 1
  10081. FS = ""
  10082. }
  10083. {
  10084. line = $ 0
  10085. nfields = split(line, field, "@")
  10086. substed = 0
  10087. len = length(field[1])
  10088. for (i = 2; i < nfields; i++) {
  10089. key = field[i]
  10090. keylen = length(key)
  10091. if (S_is_set[key]) {
  10092. value = S[key]
  10093. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10094. len += length(value) + length(field[++i])
  10095. substed = 1
  10096. } else
  10097. len += 1 + keylen
  10098. }
  10099. print line
  10100. }
  10101. _ACAWK
  10102. _ACEOF
  10103. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10104. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10105. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10106. else
  10107. cat
  10108. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10109. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10110. _ACEOF
  10111. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10112. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10113. # trailing colons and then remove the whole line if VPATH becomes empty
  10114. # (actually we leave an empty line to preserve line numbers).
  10115. if test "x$srcdir" = x.; then
  10116. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10117. h
  10118. s///
  10119. s/^/:/
  10120. s/[ ]*$/:/
  10121. s/:\$(srcdir):/:/g
  10122. s/:\${srcdir}:/:/g
  10123. s/:@srcdir@:/:/g
  10124. s/^:*//
  10125. s/:*$//
  10126. x
  10127. s/\(=[ ]*\).*/\1/
  10128. G
  10129. s/\n//
  10130. s/^[^=]*=[ ]*$//
  10131. }'
  10132. fi
  10133. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10134. fi # test -n "$CONFIG_FILES"
  10135. # Set up the scripts for CONFIG_HEADERS section.
  10136. # No need to generate them if there are no CONFIG_HEADERS.
  10137. # This happens for instance with `./config.status Makefile'.
  10138. if test -n "$CONFIG_HEADERS"; then
  10139. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10140. BEGIN {
  10141. _ACEOF
  10142. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10143. # here-document in config.status, that substitutes the proper values into
  10144. # config.h.in to produce config.h.
  10145. # Create a delimiter string that does not exist in confdefs.h, to ease
  10146. # handling of long lines.
  10147. ac_delim='%!_!# '
  10148. for ac_last_try in false false :; do
  10149. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10150. if test -z "$ac_tt"; then
  10151. break
  10152. elif $ac_last_try; then
  10153. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10154. else
  10155. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10156. fi
  10157. done
  10158. # For the awk script, D is an array of macro values keyed by name,
  10159. # likewise P contains macro parameters if any. Preserve backslash
  10160. # newline sequences.
  10161. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10162. sed -n '
  10163. s/.\{148\}/&'"$ac_delim"'/g
  10164. t rset
  10165. :rset
  10166. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10167. t def
  10168. d
  10169. :def
  10170. s/\\$//
  10171. t bsnl
  10172. s/["\\]/\\&/g
  10173. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10174. D["\1"]=" \3"/p
  10175. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10176. d
  10177. :bsnl
  10178. s/["\\]/\\&/g
  10179. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10180. D["\1"]=" \3\\\\\\n"\\/p
  10181. t cont
  10182. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10183. t cont
  10184. d
  10185. :cont
  10186. n
  10187. s/.\{148\}/&'"$ac_delim"'/g
  10188. t clear
  10189. :clear
  10190. s/\\$//
  10191. t bsnlc
  10192. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10193. d
  10194. :bsnlc
  10195. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10196. b cont
  10197. ' <confdefs.h | sed '
  10198. s/'"$ac_delim"'/"\\\
  10199. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10200. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10201. for (key in D) D_is_set[key] = 1
  10202. FS = ""
  10203. }
  10204. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10205. line = \$ 0
  10206. split(line, arg, " ")
  10207. if (arg[1] == "#") {
  10208. defundef = arg[2]
  10209. mac1 = arg[3]
  10210. } else {
  10211. defundef = substr(arg[1], 2)
  10212. mac1 = arg[2]
  10213. }
  10214. split(mac1, mac2, "(") #)
  10215. macro = mac2[1]
  10216. prefix = substr(line, 1, index(line, defundef) - 1)
  10217. if (D_is_set[macro]) {
  10218. # Preserve the white space surrounding the "#".
  10219. print prefix "define", macro P[macro] D[macro]
  10220. next
  10221. } else {
  10222. # Replace #undef with comments. This is necessary, for example,
  10223. # in the case of _POSIX_SOURCE, which is predefined and required
  10224. # on some systems where configure will not decide to define it.
  10225. if (defundef == "undef") {
  10226. print "/*", prefix defundef, macro, "*/"
  10227. next
  10228. }
  10229. }
  10230. }
  10231. { print }
  10232. _ACAWK
  10233. _ACEOF
  10234. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10235. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10236. fi # test -n "$CONFIG_HEADERS"
  10237. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10238. shift
  10239. for ac_tag
  10240. do
  10241. case $ac_tag in
  10242. :[FHLC]) ac_mode=$ac_tag; continue;;
  10243. esac
  10244. case $ac_mode$ac_tag in
  10245. :[FHL]*:*);;
  10246. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10247. :[FH]-) ac_tag=-:-;;
  10248. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10249. esac
  10250. ac_save_IFS=$IFS
  10251. IFS=:
  10252. set x $ac_tag
  10253. IFS=$ac_save_IFS
  10254. shift
  10255. ac_file=$1
  10256. shift
  10257. case $ac_mode in
  10258. :L) ac_source=$1;;
  10259. :[FH])
  10260. ac_file_inputs=
  10261. for ac_f
  10262. do
  10263. case $ac_f in
  10264. -) ac_f="$ac_tmp/stdin";;
  10265. *) # Look for the file first in the build tree, then in the source tree
  10266. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10267. # because $ac_f cannot contain `:'.
  10268. test -f "$ac_f" ||
  10269. case $ac_f in
  10270. [\\/$]*) false;;
  10271. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10272. esac ||
  10273. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10274. esac
  10275. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10276. as_fn_append ac_file_inputs " '$ac_f'"
  10277. done
  10278. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10279. # use $as_me), people would be surprised to read:
  10280. # /* config.h. Generated by config.status. */
  10281. configure_input='Generated from '`
  10282. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10283. `' by configure.'
  10284. if test x"$ac_file" != x-; then
  10285. configure_input="$ac_file. $configure_input"
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10287. $as_echo "$as_me: creating $ac_file" >&6;}
  10288. fi
  10289. # Neutralize special characters interpreted by sed in replacement strings.
  10290. case $configure_input in #(
  10291. *\&* | *\|* | *\\* )
  10292. ac_sed_conf_input=`$as_echo "$configure_input" |
  10293. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10294. *) ac_sed_conf_input=$configure_input;;
  10295. esac
  10296. case $ac_tag in
  10297. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10298. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10299. esac
  10300. ;;
  10301. esac
  10302. ac_dir=`$as_dirname -- "$ac_file" ||
  10303. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10304. X"$ac_file" : 'X\(//\)[^/]' \| \
  10305. X"$ac_file" : 'X\(//\)$' \| \
  10306. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10307. $as_echo X"$ac_file" |
  10308. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10309. s//\1/
  10310. q
  10311. }
  10312. /^X\(\/\/\)[^/].*/{
  10313. s//\1/
  10314. q
  10315. }
  10316. /^X\(\/\/\)$/{
  10317. s//\1/
  10318. q
  10319. }
  10320. /^X\(\/\).*/{
  10321. s//\1/
  10322. q
  10323. }
  10324. s/.*/./; q'`
  10325. as_dir="$ac_dir"; as_fn_mkdir_p
  10326. ac_builddir=.
  10327. case "$ac_dir" in
  10328. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10329. *)
  10330. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10331. # A ".." for each directory in $ac_dir_suffix.
  10332. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10333. case $ac_top_builddir_sub in
  10334. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10335. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10336. esac ;;
  10337. esac
  10338. ac_abs_top_builddir=$ac_pwd
  10339. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10340. # for backward compatibility:
  10341. ac_top_builddir=$ac_top_build_prefix
  10342. case $srcdir in
  10343. .) # We are building in place.
  10344. ac_srcdir=.
  10345. ac_top_srcdir=$ac_top_builddir_sub
  10346. ac_abs_top_srcdir=$ac_pwd ;;
  10347. [\\/]* | ?:[\\/]* ) # Absolute name.
  10348. ac_srcdir=$srcdir$ac_dir_suffix;
  10349. ac_top_srcdir=$srcdir
  10350. ac_abs_top_srcdir=$srcdir ;;
  10351. *) # Relative name.
  10352. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10353. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10354. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10355. esac
  10356. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10357. case $ac_mode in
  10358. :F)
  10359. #
  10360. # CONFIG_FILE
  10361. #
  10362. case $INSTALL in
  10363. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10364. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10365. esac
  10366. _ACEOF
  10367. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10368. # If the template does not know about datarootdir, expand it.
  10369. # FIXME: This hack should be removed a few years after 2.60.
  10370. ac_datarootdir_hack=; ac_datarootdir_seen=
  10371. ac_sed_dataroot='
  10372. /datarootdir/ {
  10373. p
  10374. q
  10375. }
  10376. /@datadir@/p
  10377. /@docdir@/p
  10378. /@infodir@/p
  10379. /@localedir@/p
  10380. /@mandir@/p'
  10381. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10382. *datarootdir*) ac_datarootdir_seen=yes;;
  10383. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10385. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10386. _ACEOF
  10387. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10388. ac_datarootdir_hack='
  10389. s&@datadir@&$datadir&g
  10390. s&@docdir@&$docdir&g
  10391. s&@infodir@&$infodir&g
  10392. s&@localedir@&$localedir&g
  10393. s&@mandir@&$mandir&g
  10394. s&\\\${datarootdir}&$datarootdir&g' ;;
  10395. esac
  10396. _ACEOF
  10397. # Neutralize VPATH when `$srcdir' = `.'.
  10398. # Shell code in configure.ac might set extrasub.
  10399. # FIXME: do we really want to maintain this feature?
  10400. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10401. ac_sed_extra="$ac_vpsub
  10402. $extrasub
  10403. _ACEOF
  10404. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10405. :t
  10406. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10407. s|@configure_input@|$ac_sed_conf_input|;t t
  10408. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10409. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10410. s&@srcdir@&$ac_srcdir&;t t
  10411. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10412. s&@top_srcdir@&$ac_top_srcdir&;t t
  10413. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10414. s&@builddir@&$ac_builddir&;t t
  10415. s&@abs_builddir@&$ac_abs_builddir&;t t
  10416. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10417. s&@INSTALL@&$ac_INSTALL&;t t
  10418. $ac_datarootdir_hack
  10419. "
  10420. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10421. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10422. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10423. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10424. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10425. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10427. which seems to be undefined. Please make sure it is defined" >&5
  10428. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10429. which seems to be undefined. Please make sure it is defined" >&2;}
  10430. rm -f "$ac_tmp/stdin"
  10431. case $ac_file in
  10432. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10433. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10434. esac \
  10435. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10436. ;;
  10437. :H)
  10438. #
  10439. # CONFIG_HEADER
  10440. #
  10441. if test x"$ac_file" != x-; then
  10442. {
  10443. $as_echo "/* $configure_input */" \
  10444. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10445. } >"$ac_tmp/config.h" \
  10446. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10447. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10449. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10450. else
  10451. rm -f "$ac_file"
  10452. mv "$ac_tmp/config.h" "$ac_file" \
  10453. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10454. fi
  10455. else
  10456. $as_echo "/* $configure_input */" \
  10457. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10458. || as_fn_error $? "could not create -" "$LINENO" 5
  10459. fi
  10460. ;;
  10461. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10462. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10463. ;;
  10464. esac
  10465. case $ac_file$ac_mode in
  10466. "default-1":C) if test -f .devel; then
  10467. echo timestamp > stamp-h
  10468. cat $srcdir/Makefile-devel-adds >> Makefile
  10469. make depend
  10470. fi ;;
  10471. esac
  10472. done # for ac_tag
  10473. as_fn_exit 0
  10474. _ACEOF
  10475. ac_clean_files=$ac_clean_files_save
  10476. test $ac_write_fail = 0 ||
  10477. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10478. # configure is writing to config.log, and then calls config.status.
  10479. # config.status does its own redirection, appending to config.log.
  10480. # Unfortunately, on DOS this fails, as config.log is still kept open
  10481. # by configure, so config.status won't be able to write to it; its
  10482. # output is simply discarded. So we exec the FD to /dev/null,
  10483. # effectively closing config.log, so it can be properly (re)opened and
  10484. # appended to by config.status. When coming back to configure, we
  10485. # need to make the FD available again.
  10486. if test "$no_create" != yes; then
  10487. ac_cs_success=:
  10488. ac_config_status_args=
  10489. test "$silent" = yes &&
  10490. ac_config_status_args="$ac_config_status_args --quiet"
  10491. exec 5>/dev/null
  10492. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10493. exec 5>>config.log
  10494. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10495. # would make configure fail if this is the last instruction.
  10496. $ac_cs_success || as_fn_exit 1
  10497. fi
  10498. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10500. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10501. fi
  10502. exit 0