configure 258 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  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=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="tcpdump.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. MAN_MISC_INFO
  577. MAN_FILE_FORMATS
  578. LOCALSRC
  579. V_PCAPDEP
  580. V_INCLS
  581. V_GROUP
  582. V_DEFS
  583. V_CCOPT
  584. MKDEP
  585. DEPENDENCY_CFLAG
  586. AR
  587. RANLIB
  588. PCAP_CONFIG
  589. LIBOBJS
  590. EGREP
  591. GREP
  592. CPP
  593. OBJEXT
  594. EXEEXT
  595. ac_ct_CC
  596. CPPFLAGS
  597. LDFLAGS
  598. CFLAGS
  599. CC
  600. SHLICC2
  601. host_os
  602. host_vendor
  603. host_cpu
  604. host
  605. build_os
  606. build_vendor
  607. build_cpu
  608. build
  609. target_alias
  610. host_alias
  611. build_alias
  612. LIBS
  613. ECHO_T
  614. ECHO_N
  615. ECHO_C
  616. DEFS
  617. mandir
  618. localedir
  619. libdir
  620. psdir
  621. pdfdir
  622. dvidir
  623. htmldir
  624. infodir
  625. docdir
  626. oldincludedir
  627. includedir
  628. localstatedir
  629. sharedstatedir
  630. sysconfdir
  631. datadir
  632. datarootdir
  633. libexecdir
  634. sbindir
  635. bindir
  636. program_transform_name
  637. prefix
  638. exec_prefix
  639. PACKAGE_URL
  640. PACKAGE_BUGREPORT
  641. PACKAGE_STRING
  642. PACKAGE_VERSION
  643. PACKAGE_TARNAME
  644. PACKAGE_NAME
  645. PATH_SEPARATOR
  646. SHELL'
  647. ac_subst_files=''
  648. ac_user_opts='
  649. enable_option_checking
  650. with_gcc
  651. enable_universal
  652. with_smi
  653. enable_smb
  654. with_user
  655. with_chroot
  656. with_sandbox_capsicum
  657. with_system_libpcap
  658. with_crypto
  659. with_cap_ng
  660. '
  661. ac_precious_vars='build_alias
  662. host_alias
  663. target_alias
  664. CC
  665. CFLAGS
  666. LDFLAGS
  667. LIBS
  668. CPPFLAGS
  669. CPP'
  670. # Initialize some variables set by options.
  671. ac_init_help=
  672. ac_init_version=false
  673. ac_unrecognized_opts=
  674. ac_unrecognized_sep=
  675. # The variables have the same names as the options, with
  676. # dashes changed to underlines.
  677. cache_file=/dev/null
  678. exec_prefix=NONE
  679. no_create=
  680. no_recursion=
  681. prefix=NONE
  682. program_prefix=NONE
  683. program_suffix=NONE
  684. program_transform_name=s,x,x,
  685. silent=
  686. site=
  687. srcdir=
  688. verbose=
  689. x_includes=NONE
  690. x_libraries=NONE
  691. # Installation directory options.
  692. # These are left unexpanded so users can "make install exec_prefix=/foo"
  693. # and all the variables that are supposed to be based on exec_prefix
  694. # by default will actually change.
  695. # Use braces instead of parens because sh, perl, etc. also accept them.
  696. # (The list follows the same order as the GNU Coding Standards.)
  697. bindir='${exec_prefix}/bin'
  698. sbindir='${exec_prefix}/sbin'
  699. libexecdir='${exec_prefix}/libexec'
  700. datarootdir='${prefix}/share'
  701. datadir='${datarootdir}'
  702. sysconfdir='${prefix}/etc'
  703. sharedstatedir='${prefix}/com'
  704. localstatedir='${prefix}/var'
  705. includedir='${prefix}/include'
  706. oldincludedir='/usr/include'
  707. docdir='${datarootdir}/doc/${PACKAGE}'
  708. infodir='${datarootdir}/info'
  709. htmldir='${docdir}'
  710. dvidir='${docdir}'
  711. pdfdir='${docdir}'
  712. psdir='${docdir}'
  713. libdir='${exec_prefix}/lib'
  714. localedir='${datarootdir}/locale'
  715. mandir='${datarootdir}/man'
  716. ac_prev=
  717. ac_dashdash=
  718. for ac_option
  719. do
  720. # If the previous option needs an argument, assign it.
  721. if test -n "$ac_prev"; then
  722. eval $ac_prev=\$ac_option
  723. ac_prev=
  724. continue
  725. fi
  726. case $ac_option in
  727. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  728. *=) ac_optarg= ;;
  729. *) ac_optarg=yes ;;
  730. esac
  731. # Accept the important Cygnus configure options, so we can diagnose typos.
  732. case $ac_dashdash$ac_option in
  733. --)
  734. ac_dashdash=yes ;;
  735. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  736. ac_prev=bindir ;;
  737. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  738. bindir=$ac_optarg ;;
  739. -build | --build | --buil | --bui | --bu)
  740. ac_prev=build_alias ;;
  741. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  742. build_alias=$ac_optarg ;;
  743. -cache-file | --cache-file | --cache-fil | --cache-fi \
  744. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  745. ac_prev=cache_file ;;
  746. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  747. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  748. cache_file=$ac_optarg ;;
  749. --config-cache | -C)
  750. cache_file=config.cache ;;
  751. -datadir | --datadir | --datadi | --datad)
  752. ac_prev=datadir ;;
  753. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  754. datadir=$ac_optarg ;;
  755. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  756. | --dataroo | --dataro | --datar)
  757. ac_prev=datarootdir ;;
  758. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  759. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  760. datarootdir=$ac_optarg ;;
  761. -disable-* | --disable-*)
  762. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  763. # Reject names that are not valid shell variable names.
  764. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  765. as_fn_error $? "invalid feature name: $ac_useropt"
  766. ac_useropt_orig=$ac_useropt
  767. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  768. case $ac_user_opts in
  769. *"
  770. "enable_$ac_useropt"
  771. "*) ;;
  772. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  773. ac_unrecognized_sep=', ';;
  774. esac
  775. eval enable_$ac_useropt=no ;;
  776. -docdir | --docdir | --docdi | --doc | --do)
  777. ac_prev=docdir ;;
  778. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  779. docdir=$ac_optarg ;;
  780. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  781. ac_prev=dvidir ;;
  782. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  783. dvidir=$ac_optarg ;;
  784. -enable-* | --enable-*)
  785. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  786. # Reject names that are not valid shell variable names.
  787. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  788. as_fn_error $? "invalid feature name: $ac_useropt"
  789. ac_useropt_orig=$ac_useropt
  790. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  791. case $ac_user_opts in
  792. *"
  793. "enable_$ac_useropt"
  794. "*) ;;
  795. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  796. ac_unrecognized_sep=', ';;
  797. esac
  798. eval enable_$ac_useropt=\$ac_optarg ;;
  799. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  800. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  801. | --exec | --exe | --ex)
  802. ac_prev=exec_prefix ;;
  803. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  804. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  805. | --exec=* | --exe=* | --ex=*)
  806. exec_prefix=$ac_optarg ;;
  807. -gas | --gas | --ga | --g)
  808. # Obsolete; use --with-gas.
  809. with_gas=yes ;;
  810. -help | --help | --hel | --he | -h)
  811. ac_init_help=long ;;
  812. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  813. ac_init_help=recursive ;;
  814. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  815. ac_init_help=short ;;
  816. -host | --host | --hos | --ho)
  817. ac_prev=host_alias ;;
  818. -host=* | --host=* | --hos=* | --ho=*)
  819. host_alias=$ac_optarg ;;
  820. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  821. ac_prev=htmldir ;;
  822. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  823. | --ht=*)
  824. htmldir=$ac_optarg ;;
  825. -includedir | --includedir | --includedi | --included | --include \
  826. | --includ | --inclu | --incl | --inc)
  827. ac_prev=includedir ;;
  828. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  829. | --includ=* | --inclu=* | --incl=* | --inc=*)
  830. includedir=$ac_optarg ;;
  831. -infodir | --infodir | --infodi | --infod | --info | --inf)
  832. ac_prev=infodir ;;
  833. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  834. infodir=$ac_optarg ;;
  835. -libdir | --libdir | --libdi | --libd)
  836. ac_prev=libdir ;;
  837. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  838. libdir=$ac_optarg ;;
  839. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  840. | --libexe | --libex | --libe)
  841. ac_prev=libexecdir ;;
  842. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  843. | --libexe=* | --libex=* | --libe=*)
  844. libexecdir=$ac_optarg ;;
  845. -localedir | --localedir | --localedi | --localed | --locale)
  846. ac_prev=localedir ;;
  847. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  848. localedir=$ac_optarg ;;
  849. -localstatedir | --localstatedir | --localstatedi | --localstated \
  850. | --localstate | --localstat | --localsta | --localst | --locals)
  851. ac_prev=localstatedir ;;
  852. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  853. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  854. localstatedir=$ac_optarg ;;
  855. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  856. ac_prev=mandir ;;
  857. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  858. mandir=$ac_optarg ;;
  859. -nfp | --nfp | --nf)
  860. # Obsolete; use --without-fp.
  861. with_fp=no ;;
  862. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  863. | --no-cr | --no-c | -n)
  864. no_create=yes ;;
  865. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  866. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  867. no_recursion=yes ;;
  868. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  869. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  870. | --oldin | --oldi | --old | --ol | --o)
  871. ac_prev=oldincludedir ;;
  872. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  873. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  874. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  875. oldincludedir=$ac_optarg ;;
  876. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  877. ac_prev=prefix ;;
  878. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  879. prefix=$ac_optarg ;;
  880. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  881. | --program-pre | --program-pr | --program-p)
  882. ac_prev=program_prefix ;;
  883. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  884. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  885. program_prefix=$ac_optarg ;;
  886. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  887. | --program-suf | --program-su | --program-s)
  888. ac_prev=program_suffix ;;
  889. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  890. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  891. program_suffix=$ac_optarg ;;
  892. -program-transform-name | --program-transform-name \
  893. | --program-transform-nam | --program-transform-na \
  894. | --program-transform-n | --program-transform- \
  895. | --program-transform | --program-transfor \
  896. | --program-transfo | --program-transf \
  897. | --program-trans | --program-tran \
  898. | --progr-tra | --program-tr | --program-t)
  899. ac_prev=program_transform_name ;;
  900. -program-transform-name=* | --program-transform-name=* \
  901. | --program-transform-nam=* | --program-transform-na=* \
  902. | --program-transform-n=* | --program-transform-=* \
  903. | --program-transform=* | --program-transfor=* \
  904. | --program-transfo=* | --program-transf=* \
  905. | --program-trans=* | --program-tran=* \
  906. | --progr-tra=* | --program-tr=* | --program-t=*)
  907. program_transform_name=$ac_optarg ;;
  908. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  909. ac_prev=pdfdir ;;
  910. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  911. pdfdir=$ac_optarg ;;
  912. -psdir | --psdir | --psdi | --psd | --ps)
  913. ac_prev=psdir ;;
  914. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  915. psdir=$ac_optarg ;;
  916. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  917. | -silent | --silent | --silen | --sile | --sil)
  918. silent=yes ;;
  919. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  920. ac_prev=sbindir ;;
  921. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  922. | --sbi=* | --sb=*)
  923. sbindir=$ac_optarg ;;
  924. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  925. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  926. | --sharedst | --shareds | --shared | --share | --shar \
  927. | --sha | --sh)
  928. ac_prev=sharedstatedir ;;
  929. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  930. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  931. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  932. | --sha=* | --sh=*)
  933. sharedstatedir=$ac_optarg ;;
  934. -site | --site | --sit)
  935. ac_prev=site ;;
  936. -site=* | --site=* | --sit=*)
  937. site=$ac_optarg ;;
  938. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  939. ac_prev=srcdir ;;
  940. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  941. srcdir=$ac_optarg ;;
  942. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  943. | --syscon | --sysco | --sysc | --sys | --sy)
  944. ac_prev=sysconfdir ;;
  945. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  946. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  947. sysconfdir=$ac_optarg ;;
  948. -target | --target | --targe | --targ | --tar | --ta | --t)
  949. ac_prev=target_alias ;;
  950. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  951. target_alias=$ac_optarg ;;
  952. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  953. verbose=yes ;;
  954. -version | --version | --versio | --versi | --vers | -V)
  955. ac_init_version=: ;;
  956. -with-* | --with-*)
  957. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  958. # Reject names that are not valid shell variable names.
  959. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  960. as_fn_error $? "invalid package name: $ac_useropt"
  961. ac_useropt_orig=$ac_useropt
  962. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  963. case $ac_user_opts in
  964. *"
  965. "with_$ac_useropt"
  966. "*) ;;
  967. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  968. ac_unrecognized_sep=', ';;
  969. esac
  970. eval with_$ac_useropt=\$ac_optarg ;;
  971. -without-* | --without-*)
  972. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  973. # Reject names that are not valid shell variable names.
  974. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  975. as_fn_error $? "invalid package name: $ac_useropt"
  976. ac_useropt_orig=$ac_useropt
  977. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  978. case $ac_user_opts in
  979. *"
  980. "with_$ac_useropt"
  981. "*) ;;
  982. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  983. ac_unrecognized_sep=', ';;
  984. esac
  985. eval with_$ac_useropt=no ;;
  986. --x)
  987. # Obsolete; use --with-x.
  988. with_x=yes ;;
  989. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  990. | --x-incl | --x-inc | --x-in | --x-i)
  991. ac_prev=x_includes ;;
  992. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  993. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  994. x_includes=$ac_optarg ;;
  995. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  996. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  997. ac_prev=x_libraries ;;
  998. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  999. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1000. x_libraries=$ac_optarg ;;
  1001. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1002. Try \`$0 --help' for more information"
  1003. ;;
  1004. *=*)
  1005. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1006. # Reject names that are not valid shell variable names.
  1007. case $ac_envvar in #(
  1008. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1009. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1010. esac
  1011. eval $ac_envvar=\$ac_optarg
  1012. export $ac_envvar ;;
  1013. *)
  1014. # FIXME: should be removed in autoconf 3.0.
  1015. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1016. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1017. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1018. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1019. ;;
  1020. esac
  1021. done
  1022. if test -n "$ac_prev"; then
  1023. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1024. as_fn_error $? "missing argument to $ac_option"
  1025. fi
  1026. if test -n "$ac_unrecognized_opts"; then
  1027. case $enable_option_checking in
  1028. no) ;;
  1029. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1030. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1031. esac
  1032. fi
  1033. # Check all directory arguments for consistency.
  1034. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1035. datadir sysconfdir sharedstatedir localstatedir includedir \
  1036. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1037. libdir localedir mandir
  1038. do
  1039. eval ac_val=\$$ac_var
  1040. # Remove trailing slashes.
  1041. case $ac_val in
  1042. */ )
  1043. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1044. eval $ac_var=\$ac_val;;
  1045. esac
  1046. # Be sure to have absolute directory names.
  1047. case $ac_val in
  1048. [\\/$]* | ?:[\\/]* ) continue;;
  1049. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1050. esac
  1051. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1052. done
  1053. # There might be people who depend on the old broken behavior: `$host'
  1054. # used to hold the argument of --host etc.
  1055. # FIXME: To remove some day.
  1056. build=$build_alias
  1057. host=$host_alias
  1058. target=$target_alias
  1059. # FIXME: To remove some day.
  1060. if test "x$host_alias" != x; then
  1061. if test "x$build_alias" = x; then
  1062. cross_compiling=maybe
  1063. elif test "x$build_alias" != "x$host_alias"; then
  1064. cross_compiling=yes
  1065. fi
  1066. fi
  1067. ac_tool_prefix=
  1068. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1069. test "$silent" = yes && exec 6>/dev/null
  1070. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1071. ac_ls_di=`ls -di .` &&
  1072. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1073. as_fn_error $? "working directory cannot be determined"
  1074. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1075. as_fn_error $? "pwd does not report name of working directory"
  1076. # Find the source files, if location was not specified.
  1077. if test -z "$srcdir"; then
  1078. ac_srcdir_defaulted=yes
  1079. # Try the directory containing this script, then the parent directory.
  1080. ac_confdir=`$as_dirname -- "$as_myself" ||
  1081. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1082. X"$as_myself" : 'X\(//\)[^/]' \| \
  1083. X"$as_myself" : 'X\(//\)$' \| \
  1084. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1085. $as_echo X"$as_myself" |
  1086. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1087. s//\1/
  1088. q
  1089. }
  1090. /^X\(\/\/\)[^/].*/{
  1091. s//\1/
  1092. q
  1093. }
  1094. /^X\(\/\/\)$/{
  1095. s//\1/
  1096. q
  1097. }
  1098. /^X\(\/\).*/{
  1099. s//\1/
  1100. q
  1101. }
  1102. s/.*/./; q'`
  1103. srcdir=$ac_confdir
  1104. if test ! -r "$srcdir/$ac_unique_file"; then
  1105. srcdir=..
  1106. fi
  1107. else
  1108. ac_srcdir_defaulted=no
  1109. fi
  1110. if test ! -r "$srcdir/$ac_unique_file"; then
  1111. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1112. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1113. fi
  1114. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1115. ac_abs_confdir=`(
  1116. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1117. pwd)`
  1118. # When building in place, set srcdir=.
  1119. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1120. srcdir=.
  1121. fi
  1122. # Remove unnecessary trailing slashes from srcdir.
  1123. # Double slashes in file names in object file debugging info
  1124. # mess up M-x gdb in Emacs.
  1125. case $srcdir in
  1126. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1127. esac
  1128. for ac_var in $ac_precious_vars; do
  1129. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1130. eval ac_env_${ac_var}_value=\$${ac_var}
  1131. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1132. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1133. done
  1134. #
  1135. # Report the --help message.
  1136. #
  1137. if test "$ac_init_help" = "long"; then
  1138. # Omit some internal or obsolete options to make the list less imposing.
  1139. # This message is too long to be a string in the A/UX 3.1 sh.
  1140. cat <<_ACEOF
  1141. \`configure' configures this package to adapt to many kinds of systems.
  1142. Usage: $0 [OPTION]... [VAR=VALUE]...
  1143. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1144. VAR=VALUE. See below for descriptions of some of the useful variables.
  1145. Defaults for the options are specified in brackets.
  1146. Configuration:
  1147. -h, --help display this help and exit
  1148. --help=short display options specific to this package
  1149. --help=recursive display the short help of all the included packages
  1150. -V, --version display version information and exit
  1151. -q, --quiet, --silent do not print \`checking ...' messages
  1152. --cache-file=FILE cache test results in FILE [disabled]
  1153. -C, --config-cache alias for \`--cache-file=config.cache'
  1154. -n, --no-create do not create output files
  1155. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1156. Installation directories:
  1157. --prefix=PREFIX install architecture-independent files in PREFIX
  1158. [$ac_default_prefix]
  1159. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1160. [PREFIX]
  1161. By default, \`make install' will install all the files in
  1162. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1163. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1164. for instance \`--prefix=\$HOME'.
  1165. For better control, use the options below.
  1166. Fine tuning of the installation directories:
  1167. --bindir=DIR user executables [EPREFIX/bin]
  1168. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1169. --libexecdir=DIR program executables [EPREFIX/libexec]
  1170. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1171. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1172. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1173. --libdir=DIR object code libraries [EPREFIX/lib]
  1174. --includedir=DIR C header files [PREFIX/include]
  1175. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1176. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1177. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1178. --infodir=DIR info documentation [DATAROOTDIR/info]
  1179. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1180. --mandir=DIR man documentation [DATAROOTDIR/man]
  1181. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1182. --htmldir=DIR html documentation [DOCDIR]
  1183. --dvidir=DIR dvi documentation [DOCDIR]
  1184. --pdfdir=DIR pdf documentation [DOCDIR]
  1185. --psdir=DIR ps documentation [DOCDIR]
  1186. _ACEOF
  1187. cat <<\_ACEOF
  1188. System types:
  1189. --build=BUILD configure for building on BUILD [guessed]
  1190. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1191. _ACEOF
  1192. fi
  1193. if test -n "$ac_init_help"; then
  1194. cat <<\_ACEOF
  1195. Optional Features:
  1196. --disable-option-checking ignore unrecognized --enable/--with options
  1197. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1198. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1199. --disable-universal don't build universal on OS X
  1200. --enable-smb enable possibly-buggy SMB printer default=yes
  1201. --disable-smb disable possibly-buggy SMB printer
  1202. Optional Packages:
  1203. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1204. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1205. --without-gcc don't use gcc
  1206. --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
  1207. --without-smi don't link with libsmi
  1208. --with-user=USERNAME drop privileges by default to USERNAME
  1209. --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
  1210. --with-sandbox-capsicum use Capsicum security functions [default=yes, if
  1211. available]
  1212. --with-system-libpcap don't use local pcap library
  1213. --with-crypto[=DIR] use OpenSSL/libressl libcrypto (located in directory
  1214. DIR, if specified) [default=yes, if available]
  1215. --with-cap-ng use libcap-ng [default=yes, if available]
  1216. Some influential environment variables:
  1217. CC C compiler command
  1218. CFLAGS C compiler flags
  1219. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1220. nonstandard directory <lib dir>
  1221. LIBS libraries to pass to the linker, e.g. -l<library>
  1222. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1223. you have headers in a nonstandard directory <include dir>
  1224. CPP C preprocessor
  1225. Use these variables to override the choices made by `configure' or to help
  1226. it to find libraries and programs with nonstandard names/locations.
  1227. Report bugs to the package provider.
  1228. _ACEOF
  1229. ac_status=$?
  1230. fi
  1231. if test "$ac_init_help" = "recursive"; then
  1232. # If there are subdirs, report their specific --help.
  1233. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1234. test -d "$ac_dir" ||
  1235. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1236. continue
  1237. ac_builddir=.
  1238. case "$ac_dir" in
  1239. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1240. *)
  1241. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1242. # A ".." for each directory in $ac_dir_suffix.
  1243. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1244. case $ac_top_builddir_sub in
  1245. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1246. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1247. esac ;;
  1248. esac
  1249. ac_abs_top_builddir=$ac_pwd
  1250. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1251. # for backward compatibility:
  1252. ac_top_builddir=$ac_top_build_prefix
  1253. case $srcdir in
  1254. .) # We are building in place.
  1255. ac_srcdir=.
  1256. ac_top_srcdir=$ac_top_builddir_sub
  1257. ac_abs_top_srcdir=$ac_pwd ;;
  1258. [\\/]* | ?:[\\/]* ) # Absolute name.
  1259. ac_srcdir=$srcdir$ac_dir_suffix;
  1260. ac_top_srcdir=$srcdir
  1261. ac_abs_top_srcdir=$srcdir ;;
  1262. *) # Relative name.
  1263. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1264. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1265. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1266. esac
  1267. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1268. cd "$ac_dir" || { ac_status=$?; continue; }
  1269. # Check for guested configure.
  1270. if test -f "$ac_srcdir/configure.gnu"; then
  1271. echo &&
  1272. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1273. elif test -f "$ac_srcdir/configure"; then
  1274. echo &&
  1275. $SHELL "$ac_srcdir/configure" --help=recursive
  1276. else
  1277. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1278. fi || ac_status=$?
  1279. cd "$ac_pwd" || { ac_status=$?; break; }
  1280. done
  1281. fi
  1282. test -n "$ac_init_help" && exit $ac_status
  1283. if $ac_init_version; then
  1284. cat <<\_ACEOF
  1285. configure
  1286. generated by GNU Autoconf 2.69
  1287. Copyright (C) 2012 Free Software Foundation, Inc.
  1288. This configure script is free software; the Free Software Foundation
  1289. gives unlimited permission to copy, distribute and modify it.
  1290. _ACEOF
  1291. exit
  1292. fi
  1293. ## ------------------------ ##
  1294. ## Autoconf initialization. ##
  1295. ## ------------------------ ##
  1296. # ac_fn_c_try_compile LINENO
  1297. # --------------------------
  1298. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1299. ac_fn_c_try_compile ()
  1300. {
  1301. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1302. rm -f conftest.$ac_objext
  1303. if { { ac_try="$ac_compile"
  1304. case "(($ac_try" in
  1305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1306. *) ac_try_echo=$ac_try;;
  1307. esac
  1308. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1309. $as_echo "$ac_try_echo"; } >&5
  1310. (eval "$ac_compile") 2>conftest.err
  1311. ac_status=$?
  1312. if test -s conftest.err; then
  1313. grep -v '^ *+' conftest.err >conftest.er1
  1314. cat conftest.er1 >&5
  1315. mv -f conftest.er1 conftest.err
  1316. fi
  1317. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1318. test $ac_status = 0; } && {
  1319. test -z "$ac_c_werror_flag" ||
  1320. test ! -s conftest.err
  1321. } && test -s conftest.$ac_objext; then :
  1322. ac_retval=0
  1323. else
  1324. $as_echo "$as_me: failed program was:" >&5
  1325. sed 's/^/| /' conftest.$ac_ext >&5
  1326. ac_retval=1
  1327. fi
  1328. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1329. as_fn_set_status $ac_retval
  1330. } # ac_fn_c_try_compile
  1331. # ac_fn_c_try_cpp LINENO
  1332. # ----------------------
  1333. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1334. ac_fn_c_try_cpp ()
  1335. {
  1336. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1337. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1338. case "(($ac_try" in
  1339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1340. *) ac_try_echo=$ac_try;;
  1341. esac
  1342. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1343. $as_echo "$ac_try_echo"; } >&5
  1344. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1345. ac_status=$?
  1346. if test -s conftest.err; then
  1347. grep -v '^ *+' conftest.err >conftest.er1
  1348. cat conftest.er1 >&5
  1349. mv -f conftest.er1 conftest.err
  1350. fi
  1351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1352. test $ac_status = 0; } > conftest.i && {
  1353. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1354. test ! -s conftest.err
  1355. }; then :
  1356. ac_retval=0
  1357. else
  1358. $as_echo "$as_me: failed program was:" >&5
  1359. sed 's/^/| /' conftest.$ac_ext >&5
  1360. ac_retval=1
  1361. fi
  1362. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1363. as_fn_set_status $ac_retval
  1364. } # ac_fn_c_try_cpp
  1365. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1366. # -------------------------------------------------------
  1367. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1368. # the include files in INCLUDES and setting the cache variable VAR
  1369. # accordingly.
  1370. ac_fn_c_check_header_mongrel ()
  1371. {
  1372. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1373. if eval \${$3+:} false; then :
  1374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1375. $as_echo_n "checking for $2... " >&6; }
  1376. if eval \${$3+:} false; then :
  1377. $as_echo_n "(cached) " >&6
  1378. fi
  1379. eval ac_res=\$$3
  1380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1381. $as_echo "$ac_res" >&6; }
  1382. else
  1383. # Is the header compilable?
  1384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1385. $as_echo_n "checking $2 usability... " >&6; }
  1386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1387. /* end confdefs.h. */
  1388. $4
  1389. #include <$2>
  1390. _ACEOF
  1391. if ac_fn_c_try_compile "$LINENO"; then :
  1392. ac_header_compiler=yes
  1393. else
  1394. ac_header_compiler=no
  1395. fi
  1396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1398. $as_echo "$ac_header_compiler" >&6; }
  1399. # Is the header present?
  1400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1401. $as_echo_n "checking $2 presence... " >&6; }
  1402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1403. /* end confdefs.h. */
  1404. #include <$2>
  1405. _ACEOF
  1406. if ac_fn_c_try_cpp "$LINENO"; then :
  1407. ac_header_preproc=yes
  1408. else
  1409. ac_header_preproc=no
  1410. fi
  1411. rm -f conftest.err conftest.i conftest.$ac_ext
  1412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1413. $as_echo "$ac_header_preproc" >&6; }
  1414. # So? What about this header?
  1415. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1416. yes:no: )
  1417. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1418. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1420. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1421. ;;
  1422. no:yes:* )
  1423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1424. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1426. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1428. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1430. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1432. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1433. ;;
  1434. esac
  1435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1436. $as_echo_n "checking for $2... " >&6; }
  1437. if eval \${$3+:} false; then :
  1438. $as_echo_n "(cached) " >&6
  1439. else
  1440. eval "$3=\$ac_header_compiler"
  1441. fi
  1442. eval ac_res=\$$3
  1443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1444. $as_echo "$ac_res" >&6; }
  1445. fi
  1446. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1447. } # ac_fn_c_check_header_mongrel
  1448. # ac_fn_c_try_run LINENO
  1449. # ----------------------
  1450. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1451. # that executables *can* be run.
  1452. ac_fn_c_try_run ()
  1453. {
  1454. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1455. if { { ac_try="$ac_link"
  1456. case "(($ac_try" in
  1457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1458. *) ac_try_echo=$ac_try;;
  1459. esac
  1460. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1461. $as_echo "$ac_try_echo"; } >&5
  1462. (eval "$ac_link") 2>&5
  1463. ac_status=$?
  1464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1465. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1466. { { case "(($ac_try" in
  1467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1468. *) ac_try_echo=$ac_try;;
  1469. esac
  1470. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1471. $as_echo "$ac_try_echo"; } >&5
  1472. (eval "$ac_try") 2>&5
  1473. ac_status=$?
  1474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1475. test $ac_status = 0; }; }; then :
  1476. ac_retval=0
  1477. else
  1478. $as_echo "$as_me: program exited with status $ac_status" >&5
  1479. $as_echo "$as_me: failed program was:" >&5
  1480. sed 's/^/| /' conftest.$ac_ext >&5
  1481. ac_retval=$ac_status
  1482. fi
  1483. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1484. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1485. as_fn_set_status $ac_retval
  1486. } # ac_fn_c_try_run
  1487. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1488. # -------------------------------------------------------
  1489. # Tests whether HEADER exists and can be compiled using the include files in
  1490. # INCLUDES, setting the cache variable VAR accordingly.
  1491. ac_fn_c_check_header_compile ()
  1492. {
  1493. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1495. $as_echo_n "checking for $2... " >&6; }
  1496. if eval \${$3+:} false; then :
  1497. $as_echo_n "(cached) " >&6
  1498. else
  1499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1500. /* end confdefs.h. */
  1501. $4
  1502. #include <$2>
  1503. _ACEOF
  1504. if ac_fn_c_try_compile "$LINENO"; then :
  1505. eval "$3=yes"
  1506. else
  1507. eval "$3=no"
  1508. fi
  1509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1510. fi
  1511. eval ac_res=\$$3
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1513. $as_echo "$ac_res" >&6; }
  1514. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1515. } # ac_fn_c_check_header_compile
  1516. # ac_fn_c_try_link LINENO
  1517. # -----------------------
  1518. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1519. ac_fn_c_try_link ()
  1520. {
  1521. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1522. rm -f conftest.$ac_objext conftest$ac_exeext
  1523. if { { ac_try="$ac_link"
  1524. case "(($ac_try" in
  1525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1526. *) ac_try_echo=$ac_try;;
  1527. esac
  1528. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1529. $as_echo "$ac_try_echo"; } >&5
  1530. (eval "$ac_link") 2>conftest.err
  1531. ac_status=$?
  1532. if test -s conftest.err; then
  1533. grep -v '^ *+' conftest.err >conftest.er1
  1534. cat conftest.er1 >&5
  1535. mv -f conftest.er1 conftest.err
  1536. fi
  1537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1538. test $ac_status = 0; } && {
  1539. test -z "$ac_c_werror_flag" ||
  1540. test ! -s conftest.err
  1541. } && test -s conftest$ac_exeext && {
  1542. test "$cross_compiling" = yes ||
  1543. test -x conftest$ac_exeext
  1544. }; then :
  1545. ac_retval=0
  1546. else
  1547. $as_echo "$as_me: failed program was:" >&5
  1548. sed 's/^/| /' conftest.$ac_ext >&5
  1549. ac_retval=1
  1550. fi
  1551. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1552. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1553. # interfere with the next link command; also delete a directory that is
  1554. # left behind by Apple's compiler. We do this before executing the actions.
  1555. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1556. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1557. as_fn_set_status $ac_retval
  1558. } # ac_fn_c_try_link
  1559. # ac_fn_c_check_func LINENO FUNC VAR
  1560. # ----------------------------------
  1561. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1562. ac_fn_c_check_func ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1566. $as_echo_n "checking for $2... " >&6; }
  1567. if eval \${$3+:} false; then :
  1568. $as_echo_n "(cached) " >&6
  1569. else
  1570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1571. /* end confdefs.h. */
  1572. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1573. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1574. #define $2 innocuous_$2
  1575. /* System header to define __stub macros and hopefully few prototypes,
  1576. which can conflict with char $2 (); below.
  1577. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1578. <limits.h> exists even on freestanding compilers. */
  1579. #ifdef __STDC__
  1580. # include <limits.h>
  1581. #else
  1582. # include <assert.h>
  1583. #endif
  1584. #undef $2
  1585. /* Override any GCC internal prototype to avoid an error.
  1586. Use char because int might match the return type of a GCC
  1587. builtin and then its argument prototype would still apply. */
  1588. #ifdef __cplusplus
  1589. extern "C"
  1590. #endif
  1591. char $2 ();
  1592. /* The GNU C library defines this for functions which it implements
  1593. to always fail with ENOSYS. Some functions are actually named
  1594. something starting with __ and the normal name is an alias. */
  1595. #if defined __stub_$2 || defined __stub___$2
  1596. choke me
  1597. #endif
  1598. int
  1599. main ()
  1600. {
  1601. return $2 ();
  1602. ;
  1603. return 0;
  1604. }
  1605. _ACEOF
  1606. if ac_fn_c_try_link "$LINENO"; then :
  1607. eval "$3=yes"
  1608. else
  1609. eval "$3=no"
  1610. fi
  1611. rm -f core conftest.err conftest.$ac_objext \
  1612. conftest$ac_exeext conftest.$ac_ext
  1613. fi
  1614. eval ac_res=\$$3
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1616. $as_echo "$ac_res" >&6; }
  1617. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1618. } # ac_fn_c_check_func
  1619. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1620. # ---------------------------------------------
  1621. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1622. # accordingly.
  1623. ac_fn_c_check_decl ()
  1624. {
  1625. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1626. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1627. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1629. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1630. if eval \${$3+:} false; then :
  1631. $as_echo_n "(cached) " >&6
  1632. else
  1633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1634. /* end confdefs.h. */
  1635. $4
  1636. int
  1637. main ()
  1638. {
  1639. #ifndef $as_decl_name
  1640. #ifdef __cplusplus
  1641. (void) $as_decl_use;
  1642. #else
  1643. (void) $as_decl_name;
  1644. #endif
  1645. #endif
  1646. ;
  1647. return 0;
  1648. }
  1649. _ACEOF
  1650. if ac_fn_c_try_compile "$LINENO"; then :
  1651. eval "$3=yes"
  1652. else
  1653. eval "$3=no"
  1654. fi
  1655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1656. fi
  1657. eval ac_res=\$$3
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1659. $as_echo "$ac_res" >&6; }
  1660. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1661. } # ac_fn_c_check_decl
  1662. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1663. # -------------------------------------------
  1664. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1665. # variable VAR accordingly.
  1666. ac_fn_c_check_type ()
  1667. {
  1668. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1670. $as_echo_n "checking for $2... " >&6; }
  1671. if eval \${$3+:} false; then :
  1672. $as_echo_n "(cached) " >&6
  1673. else
  1674. eval "$3=no"
  1675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1676. /* end confdefs.h. */
  1677. $4
  1678. int
  1679. main ()
  1680. {
  1681. if (sizeof ($2))
  1682. return 0;
  1683. ;
  1684. return 0;
  1685. }
  1686. _ACEOF
  1687. if ac_fn_c_try_compile "$LINENO"; then :
  1688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1689. /* end confdefs.h. */
  1690. $4
  1691. int
  1692. main ()
  1693. {
  1694. if (sizeof (($2)))
  1695. return 0;
  1696. ;
  1697. return 0;
  1698. }
  1699. _ACEOF
  1700. if ac_fn_c_try_compile "$LINENO"; then :
  1701. else
  1702. eval "$3=yes"
  1703. fi
  1704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. fi
  1706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1707. fi
  1708. eval ac_res=\$$3
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1710. $as_echo "$ac_res" >&6; }
  1711. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1712. } # ac_fn_c_check_type
  1713. # ac_fn_c_find_intX_t LINENO BITS VAR
  1714. # -----------------------------------
  1715. # Finds a signed integer type with width BITS, setting cache variable VAR
  1716. # accordingly.
  1717. ac_fn_c_find_intX_t ()
  1718. {
  1719. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1721. $as_echo_n "checking for int$2_t... " >&6; }
  1722. if eval \${$3+:} false; then :
  1723. $as_echo_n "(cached) " >&6
  1724. else
  1725. eval "$3=no"
  1726. # Order is important - never check a type that is potentially smaller
  1727. # than half of the expected target width.
  1728. for ac_type in int$2_t 'int' 'long int' \
  1729. 'long long int' 'short int' 'signed char'; do
  1730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1731. /* end confdefs.h. */
  1732. $ac_includes_default
  1733. enum { N = $2 / 2 - 1 };
  1734. int
  1735. main ()
  1736. {
  1737. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1738. test_array [0] = 0;
  1739. return test_array [0];
  1740. ;
  1741. return 0;
  1742. }
  1743. _ACEOF
  1744. if ac_fn_c_try_compile "$LINENO"; then :
  1745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1746. /* end confdefs.h. */
  1747. $ac_includes_default
  1748. enum { N = $2 / 2 - 1 };
  1749. int
  1750. main ()
  1751. {
  1752. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1753. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1754. test_array [0] = 0;
  1755. return test_array [0];
  1756. ;
  1757. return 0;
  1758. }
  1759. _ACEOF
  1760. if ac_fn_c_try_compile "$LINENO"; then :
  1761. else
  1762. case $ac_type in #(
  1763. int$2_t) :
  1764. eval "$3=yes" ;; #(
  1765. *) :
  1766. eval "$3=\$ac_type" ;;
  1767. esac
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1770. fi
  1771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1772. if eval test \"x\$"$3"\" = x"no"; then :
  1773. else
  1774. break
  1775. fi
  1776. done
  1777. fi
  1778. eval ac_res=\$$3
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1780. $as_echo "$ac_res" >&6; }
  1781. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1782. } # ac_fn_c_find_intX_t
  1783. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1784. # ------------------------------------
  1785. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1786. # accordingly.
  1787. ac_fn_c_find_uintX_t ()
  1788. {
  1789. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1791. $as_echo_n "checking for uint$2_t... " >&6; }
  1792. if eval \${$3+:} false; then :
  1793. $as_echo_n "(cached) " >&6
  1794. else
  1795. eval "$3=no"
  1796. # Order is important - never check a type that is potentially smaller
  1797. # than half of the expected target width.
  1798. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1799. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1801. /* end confdefs.h. */
  1802. $ac_includes_default
  1803. int
  1804. main ()
  1805. {
  1806. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1807. test_array [0] = 0;
  1808. return test_array [0];
  1809. ;
  1810. return 0;
  1811. }
  1812. _ACEOF
  1813. if ac_fn_c_try_compile "$LINENO"; then :
  1814. case $ac_type in #(
  1815. uint$2_t) :
  1816. eval "$3=yes" ;; #(
  1817. *) :
  1818. eval "$3=\$ac_type" ;;
  1819. esac
  1820. fi
  1821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. if eval test \"x\$"$3"\" = x"no"; then :
  1823. else
  1824. break
  1825. fi
  1826. done
  1827. fi
  1828. eval ac_res=\$$3
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1830. $as_echo "$ac_res" >&6; }
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. } # ac_fn_c_find_uintX_t
  1833. cat >config.log <<_ACEOF
  1834. This file contains any messages produced by compilers while
  1835. running configure, to aid debugging if configure makes a mistake.
  1836. It was created by $as_me, which was
  1837. generated by GNU Autoconf 2.69. Invocation command line was
  1838. $ $0 $@
  1839. _ACEOF
  1840. exec 5>>config.log
  1841. {
  1842. cat <<_ASUNAME
  1843. ## --------- ##
  1844. ## Platform. ##
  1845. ## --------- ##
  1846. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1847. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1848. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1849. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1850. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1851. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1852. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1853. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1854. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1855. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1856. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1857. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1858. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1859. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1860. _ASUNAME
  1861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1862. for as_dir in $PATH
  1863. do
  1864. IFS=$as_save_IFS
  1865. test -z "$as_dir" && as_dir=.
  1866. $as_echo "PATH: $as_dir"
  1867. done
  1868. IFS=$as_save_IFS
  1869. } >&5
  1870. cat >&5 <<_ACEOF
  1871. ## ----------- ##
  1872. ## Core tests. ##
  1873. ## ----------- ##
  1874. _ACEOF
  1875. # Keep a trace of the command line.
  1876. # Strip out --no-create and --no-recursion so they do not pile up.
  1877. # Strip out --silent because we don't want to record it for future runs.
  1878. # Also quote any args containing shell meta-characters.
  1879. # Make two passes to allow for proper duplicate-argument suppression.
  1880. ac_configure_args=
  1881. ac_configure_args0=
  1882. ac_configure_args1=
  1883. ac_must_keep_next=false
  1884. for ac_pass in 1 2
  1885. do
  1886. for ac_arg
  1887. do
  1888. case $ac_arg in
  1889. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1890. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1891. | -silent | --silent | --silen | --sile | --sil)
  1892. continue ;;
  1893. *\'*)
  1894. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1895. esac
  1896. case $ac_pass in
  1897. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1898. 2)
  1899. as_fn_append ac_configure_args1 " '$ac_arg'"
  1900. if test $ac_must_keep_next = true; then
  1901. ac_must_keep_next=false # Got value, back to normal.
  1902. else
  1903. case $ac_arg in
  1904. *=* | --config-cache | -C | -disable-* | --disable-* \
  1905. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1906. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1907. | -with-* | --with-* | -without-* | --without-* | --x)
  1908. case "$ac_configure_args0 " in
  1909. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1910. esac
  1911. ;;
  1912. -* ) ac_must_keep_next=true ;;
  1913. esac
  1914. fi
  1915. as_fn_append ac_configure_args " '$ac_arg'"
  1916. ;;
  1917. esac
  1918. done
  1919. done
  1920. { ac_configure_args0=; unset ac_configure_args0;}
  1921. { ac_configure_args1=; unset ac_configure_args1;}
  1922. # When interrupted or exit'd, cleanup temporary files, and complete
  1923. # config.log. We remove comments because anyway the quotes in there
  1924. # would cause problems or look ugly.
  1925. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1926. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1927. trap 'exit_status=$?
  1928. # Save into config.log some information that might help in debugging.
  1929. {
  1930. echo
  1931. $as_echo "## ---------------- ##
  1932. ## Cache variables. ##
  1933. ## ---------------- ##"
  1934. echo
  1935. # The following way of writing the cache mishandles newlines in values,
  1936. (
  1937. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1938. eval ac_val=\$$ac_var
  1939. case $ac_val in #(
  1940. *${as_nl}*)
  1941. case $ac_var in #(
  1942. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1943. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1944. esac
  1945. case $ac_var in #(
  1946. _ | IFS | as_nl) ;; #(
  1947. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1948. *) { eval $ac_var=; unset $ac_var;} ;;
  1949. esac ;;
  1950. esac
  1951. done
  1952. (set) 2>&1 |
  1953. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1954. *${as_nl}ac_space=\ *)
  1955. sed -n \
  1956. "s/'\''/'\''\\\\'\'''\''/g;
  1957. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1958. ;; #(
  1959. *)
  1960. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1961. ;;
  1962. esac |
  1963. sort
  1964. )
  1965. echo
  1966. $as_echo "## ----------------- ##
  1967. ## Output variables. ##
  1968. ## ----------------- ##"
  1969. echo
  1970. for ac_var in $ac_subst_vars
  1971. do
  1972. eval ac_val=\$$ac_var
  1973. case $ac_val in
  1974. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1975. esac
  1976. $as_echo "$ac_var='\''$ac_val'\''"
  1977. done | sort
  1978. echo
  1979. if test -n "$ac_subst_files"; then
  1980. $as_echo "## ------------------- ##
  1981. ## File substitutions. ##
  1982. ## ------------------- ##"
  1983. echo
  1984. for ac_var in $ac_subst_files
  1985. do
  1986. eval ac_val=\$$ac_var
  1987. case $ac_val in
  1988. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1989. esac
  1990. $as_echo "$ac_var='\''$ac_val'\''"
  1991. done | sort
  1992. echo
  1993. fi
  1994. if test -s confdefs.h; then
  1995. $as_echo "## ----------- ##
  1996. ## confdefs.h. ##
  1997. ## ----------- ##"
  1998. echo
  1999. cat confdefs.h
  2000. echo
  2001. fi
  2002. test "$ac_signal" != 0 &&
  2003. $as_echo "$as_me: caught signal $ac_signal"
  2004. $as_echo "$as_me: exit $exit_status"
  2005. } >&5
  2006. rm -f core *.core core.conftest.* &&
  2007. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2008. exit $exit_status
  2009. ' 0
  2010. for ac_signal in 1 2 13 15; do
  2011. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2012. done
  2013. ac_signal=0
  2014. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2015. rm -f -r conftest* confdefs.h
  2016. $as_echo "/* confdefs.h */" > confdefs.h
  2017. # Predefined preprocessor variables.
  2018. cat >>confdefs.h <<_ACEOF
  2019. #define PACKAGE_NAME "$PACKAGE_NAME"
  2020. _ACEOF
  2021. cat >>confdefs.h <<_ACEOF
  2022. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2023. _ACEOF
  2024. cat >>confdefs.h <<_ACEOF
  2025. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2026. _ACEOF
  2027. cat >>confdefs.h <<_ACEOF
  2028. #define PACKAGE_STRING "$PACKAGE_STRING"
  2029. _ACEOF
  2030. cat >>confdefs.h <<_ACEOF
  2031. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2032. _ACEOF
  2033. cat >>confdefs.h <<_ACEOF
  2034. #define PACKAGE_URL "$PACKAGE_URL"
  2035. _ACEOF
  2036. # Let the site file select an alternate cache file if it wants to.
  2037. # Prefer an explicitly selected file to automatically selected ones.
  2038. ac_site_file1=NONE
  2039. ac_site_file2=NONE
  2040. if test -n "$CONFIG_SITE"; then
  2041. # We do not want a PATH search for config.site.
  2042. case $CONFIG_SITE in #((
  2043. -*) ac_site_file1=./$CONFIG_SITE;;
  2044. */*) ac_site_file1=$CONFIG_SITE;;
  2045. *) ac_site_file1=./$CONFIG_SITE;;
  2046. esac
  2047. elif test "x$prefix" != xNONE; then
  2048. ac_site_file1=$prefix/share/config.site
  2049. ac_site_file2=$prefix/etc/config.site
  2050. else
  2051. ac_site_file1=$ac_default_prefix/share/config.site
  2052. ac_site_file2=$ac_default_prefix/etc/config.site
  2053. fi
  2054. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2055. do
  2056. test "x$ac_site_file" = xNONE && continue
  2057. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2059. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2060. sed 's/^/| /' "$ac_site_file" >&5
  2061. . "$ac_site_file" \
  2062. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2063. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2064. as_fn_error $? "failed to load site script $ac_site_file
  2065. See \`config.log' for more details" "$LINENO" 5; }
  2066. fi
  2067. done
  2068. if test -r "$cache_file"; then
  2069. # Some versions of bash will fail to source /dev/null (special files
  2070. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2071. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2073. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2074. case $cache_file in
  2075. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2076. *) . "./$cache_file";;
  2077. esac
  2078. fi
  2079. else
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2081. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2082. >$cache_file
  2083. fi
  2084. # Check that the precious variables saved in the cache have kept the same
  2085. # value.
  2086. ac_cache_corrupted=false
  2087. for ac_var in $ac_precious_vars; do
  2088. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2089. eval ac_new_set=\$ac_env_${ac_var}_set
  2090. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2091. eval ac_new_val=\$ac_env_${ac_var}_value
  2092. case $ac_old_set,$ac_new_set in
  2093. set,)
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2095. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2096. ac_cache_corrupted=: ;;
  2097. ,set)
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2099. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2100. ac_cache_corrupted=: ;;
  2101. ,);;
  2102. *)
  2103. if test "x$ac_old_val" != "x$ac_new_val"; then
  2104. # differences in whitespace do not lead to failure.
  2105. ac_old_val_w=`echo x $ac_old_val`
  2106. ac_new_val_w=`echo x $ac_new_val`
  2107. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2109. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2110. ac_cache_corrupted=:
  2111. else
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2113. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2114. eval $ac_var=\$ac_old_val
  2115. fi
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2117. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2119. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2120. fi;;
  2121. esac
  2122. # Pass precious variables to config.status.
  2123. if test "$ac_new_set" = set; then
  2124. case $ac_new_val in
  2125. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2126. *) ac_arg=$ac_var=$ac_new_val ;;
  2127. esac
  2128. case " $ac_configure_args " in
  2129. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2130. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2131. esac
  2132. fi
  2133. done
  2134. if $ac_cache_corrupted; then
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2136. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2138. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2139. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2140. fi
  2141. ## -------------------- ##
  2142. ## Main body of script. ##
  2143. ## -------------------- ##
  2144. ac_ext=c
  2145. ac_cpp='$CPP $CPPFLAGS'
  2146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2149. ac_aux_dir=
  2150. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2151. if test -f "$ac_dir/install-sh"; then
  2152. ac_aux_dir=$ac_dir
  2153. ac_install_sh="$ac_aux_dir/install-sh -c"
  2154. break
  2155. elif test -f "$ac_dir/install.sh"; then
  2156. ac_aux_dir=$ac_dir
  2157. ac_install_sh="$ac_aux_dir/install.sh -c"
  2158. break
  2159. elif test -f "$ac_dir/shtool"; then
  2160. ac_aux_dir=$ac_dir
  2161. ac_install_sh="$ac_aux_dir/shtool install -c"
  2162. break
  2163. fi
  2164. done
  2165. if test -z "$ac_aux_dir"; then
  2166. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2167. fi
  2168. # These three variables are undocumented and unsupported,
  2169. # and are intended to be withdrawn in a future Autoconf release.
  2170. # They can cause serious problems if a builder's source tree is in a directory
  2171. # whose full name contains unusual characters.
  2172. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2173. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2174. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2175. # Make sure we can run config.sub.
  2176. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2177. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2179. $as_echo_n "checking build system type... " >&6; }
  2180. if ${ac_cv_build+:} false; then :
  2181. $as_echo_n "(cached) " >&6
  2182. else
  2183. ac_build_alias=$build_alias
  2184. test "x$ac_build_alias" = x &&
  2185. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2186. test "x$ac_build_alias" = x &&
  2187. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2188. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2189. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2190. fi
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2192. $as_echo "$ac_cv_build" >&6; }
  2193. case $ac_cv_build in
  2194. *-*-*) ;;
  2195. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2196. esac
  2197. build=$ac_cv_build
  2198. ac_save_IFS=$IFS; IFS='-'
  2199. set x $ac_cv_build
  2200. shift
  2201. build_cpu=$1
  2202. build_vendor=$2
  2203. shift; shift
  2204. # Remember, the first character of IFS is used to create $*,
  2205. # except with old shells:
  2206. build_os=$*
  2207. IFS=$ac_save_IFS
  2208. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2210. $as_echo_n "checking host system type... " >&6; }
  2211. if ${ac_cv_host+:} false; then :
  2212. $as_echo_n "(cached) " >&6
  2213. else
  2214. if test "x$host_alias" = x; then
  2215. ac_cv_host=$ac_cv_build
  2216. else
  2217. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2218. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2219. fi
  2220. fi
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2222. $as_echo "$ac_cv_host" >&6; }
  2223. case $ac_cv_host in
  2224. *-*-*) ;;
  2225. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2226. esac
  2227. host=$ac_cv_host
  2228. ac_save_IFS=$IFS; IFS='-'
  2229. set x $ac_cv_host
  2230. shift
  2231. host_cpu=$1
  2232. host_vendor=$2
  2233. shift; shift
  2234. # Remember, the first character of IFS is used to create $*,
  2235. # except with old shells:
  2236. host_os=$*
  2237. IFS=$ac_save_IFS
  2238. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2239. # Check whether --with-gcc was given.
  2240. if test "${with_gcc+set}" = set; then :
  2241. withval=$with_gcc;
  2242. fi
  2243. V_INCLS=""
  2244. if test "${srcdir}" != "." ; then
  2245. V_INCLS="-I$srcdir"
  2246. fi
  2247. if test "${CFLAGS+set}" = set; then
  2248. LBL_CFLAGS="$CFLAGS"
  2249. fi
  2250. if test -z "$CC" ; then
  2251. case "$host_os" in
  2252. bsdi*)
  2253. # Extract the first word of "shlicc2", so it can be a program name with args.
  2254. set dummy shlicc2; ac_word=$2
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2256. $as_echo_n "checking for $ac_word... " >&6; }
  2257. if ${ac_cv_prog_SHLICC2+:} false; then :
  2258. $as_echo_n "(cached) " >&6
  2259. else
  2260. if test -n "$SHLICC2"; then
  2261. ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
  2262. else
  2263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2264. for as_dir in $PATH
  2265. do
  2266. IFS=$as_save_IFS
  2267. test -z "$as_dir" && as_dir=.
  2268. for ac_exec_ext in '' $ac_executable_extensions; do
  2269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2270. ac_cv_prog_SHLICC2="yes"
  2271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2272. break 2
  2273. fi
  2274. done
  2275. done
  2276. IFS=$as_save_IFS
  2277. test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
  2278. fi
  2279. fi
  2280. SHLICC2=$ac_cv_prog_SHLICC2
  2281. if test -n "$SHLICC2"; then
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
  2283. $as_echo "$SHLICC2" >&6; }
  2284. else
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2286. $as_echo "no" >&6; }
  2287. fi
  2288. if test $SHLICC2 = yes ; then
  2289. CC=shlicc2
  2290. export CC
  2291. fi
  2292. ;;
  2293. esac
  2294. fi
  2295. if test -z "$CC" -a "$with_gcc" = no ; then
  2296. CC=cc
  2297. export CC
  2298. fi
  2299. ac_ext=c
  2300. ac_cpp='$CPP $CPPFLAGS'
  2301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2304. if test -n "$ac_tool_prefix"; then
  2305. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2306. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2308. $as_echo_n "checking for $ac_word... " >&6; }
  2309. if ${ac_cv_prog_CC+:} false; then :
  2310. $as_echo_n "(cached) " >&6
  2311. else
  2312. if test -n "$CC"; then
  2313. ac_cv_prog_CC="$CC" # Let the user override the test.
  2314. else
  2315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2316. for as_dir in $PATH
  2317. do
  2318. IFS=$as_save_IFS
  2319. test -z "$as_dir" && as_dir=.
  2320. for ac_exec_ext in '' $ac_executable_extensions; do
  2321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2322. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2324. break 2
  2325. fi
  2326. done
  2327. done
  2328. IFS=$as_save_IFS
  2329. fi
  2330. fi
  2331. CC=$ac_cv_prog_CC
  2332. if test -n "$CC"; then
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2334. $as_echo "$CC" >&6; }
  2335. else
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2337. $as_echo "no" >&6; }
  2338. fi
  2339. fi
  2340. if test -z "$ac_cv_prog_CC"; then
  2341. ac_ct_CC=$CC
  2342. # Extract the first word of "gcc", so it can be a program name with args.
  2343. set dummy gcc; ac_word=$2
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2345. $as_echo_n "checking for $ac_word... " >&6; }
  2346. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2347. $as_echo_n "(cached) " >&6
  2348. else
  2349. if test -n "$ac_ct_CC"; then
  2350. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2351. else
  2352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2353. for as_dir in $PATH
  2354. do
  2355. IFS=$as_save_IFS
  2356. test -z "$as_dir" && as_dir=.
  2357. for ac_exec_ext in '' $ac_executable_extensions; do
  2358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2359. ac_cv_prog_ac_ct_CC="gcc"
  2360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2361. break 2
  2362. fi
  2363. done
  2364. done
  2365. IFS=$as_save_IFS
  2366. fi
  2367. fi
  2368. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2369. if test -n "$ac_ct_CC"; then
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2371. $as_echo "$ac_ct_CC" >&6; }
  2372. else
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2374. $as_echo "no" >&6; }
  2375. fi
  2376. if test "x$ac_ct_CC" = x; then
  2377. CC=""
  2378. else
  2379. case $cross_compiling:$ac_tool_warned in
  2380. yes:)
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2382. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2383. ac_tool_warned=yes ;;
  2384. esac
  2385. CC=$ac_ct_CC
  2386. fi
  2387. else
  2388. CC="$ac_cv_prog_CC"
  2389. fi
  2390. if test -z "$CC"; then
  2391. if test -n "$ac_tool_prefix"; then
  2392. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2393. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2395. $as_echo_n "checking for $ac_word... " >&6; }
  2396. if ${ac_cv_prog_CC+:} false; then :
  2397. $as_echo_n "(cached) " >&6
  2398. else
  2399. if test -n "$CC"; then
  2400. ac_cv_prog_CC="$CC" # Let the user override the test.
  2401. else
  2402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2403. for as_dir in $PATH
  2404. do
  2405. IFS=$as_save_IFS
  2406. test -z "$as_dir" && as_dir=.
  2407. for ac_exec_ext in '' $ac_executable_extensions; do
  2408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2409. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2411. break 2
  2412. fi
  2413. done
  2414. done
  2415. IFS=$as_save_IFS
  2416. fi
  2417. fi
  2418. CC=$ac_cv_prog_CC
  2419. if test -n "$CC"; then
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2421. $as_echo "$CC" >&6; }
  2422. else
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2424. $as_echo "no" >&6; }
  2425. fi
  2426. fi
  2427. fi
  2428. if test -z "$CC"; then
  2429. # Extract the first word of "cc", so it can be a program name with args.
  2430. set dummy cc; ac_word=$2
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2432. $as_echo_n "checking for $ac_word... " >&6; }
  2433. if ${ac_cv_prog_CC+:} false; then :
  2434. $as_echo_n "(cached) " >&6
  2435. else
  2436. if test -n "$CC"; then
  2437. ac_cv_prog_CC="$CC" # Let the user override the test.
  2438. else
  2439. ac_prog_rejected=no
  2440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2441. for as_dir in $PATH
  2442. do
  2443. IFS=$as_save_IFS
  2444. test -z "$as_dir" && as_dir=.
  2445. for ac_exec_ext in '' $ac_executable_extensions; do
  2446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2447. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2448. ac_prog_rejected=yes
  2449. continue
  2450. fi
  2451. ac_cv_prog_CC="cc"
  2452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2453. break 2
  2454. fi
  2455. done
  2456. done
  2457. IFS=$as_save_IFS
  2458. if test $ac_prog_rejected = yes; then
  2459. # We found a bogon in the path, so make sure we never use it.
  2460. set dummy $ac_cv_prog_CC
  2461. shift
  2462. if test $# != 0; then
  2463. # We chose a different compiler from the bogus one.
  2464. # However, it has the same basename, so the bogon will be chosen
  2465. # first if we set CC to just the basename; use the full file name.
  2466. shift
  2467. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2468. fi
  2469. fi
  2470. fi
  2471. fi
  2472. CC=$ac_cv_prog_CC
  2473. if test -n "$CC"; then
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2475. $as_echo "$CC" >&6; }
  2476. else
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2478. $as_echo "no" >&6; }
  2479. fi
  2480. fi
  2481. if test -z "$CC"; then
  2482. if test -n "$ac_tool_prefix"; then
  2483. for ac_prog in cl.exe
  2484. do
  2485. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2486. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2488. $as_echo_n "checking for $ac_word... " >&6; }
  2489. if ${ac_cv_prog_CC+:} false; then :
  2490. $as_echo_n "(cached) " >&6
  2491. else
  2492. if test -n "$CC"; then
  2493. ac_cv_prog_CC="$CC" # Let the user override the test.
  2494. else
  2495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2496. for as_dir in $PATH
  2497. do
  2498. IFS=$as_save_IFS
  2499. test -z "$as_dir" && as_dir=.
  2500. for ac_exec_ext in '' $ac_executable_extensions; do
  2501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2502. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2504. break 2
  2505. fi
  2506. done
  2507. done
  2508. IFS=$as_save_IFS
  2509. fi
  2510. fi
  2511. CC=$ac_cv_prog_CC
  2512. if test -n "$CC"; then
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2514. $as_echo "$CC" >&6; }
  2515. else
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2517. $as_echo "no" >&6; }
  2518. fi
  2519. test -n "$CC" && break
  2520. done
  2521. fi
  2522. if test -z "$CC"; then
  2523. ac_ct_CC=$CC
  2524. for ac_prog in cl.exe
  2525. do
  2526. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2527. set dummy $ac_prog; ac_word=$2
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2529. $as_echo_n "checking for $ac_word... " >&6; }
  2530. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2531. $as_echo_n "(cached) " >&6
  2532. else
  2533. if test -n "$ac_ct_CC"; then
  2534. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2535. else
  2536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2537. for as_dir in $PATH
  2538. do
  2539. IFS=$as_save_IFS
  2540. test -z "$as_dir" && as_dir=.
  2541. for ac_exec_ext in '' $ac_executable_extensions; do
  2542. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2543. ac_cv_prog_ac_ct_CC="$ac_prog"
  2544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2545. break 2
  2546. fi
  2547. done
  2548. done
  2549. IFS=$as_save_IFS
  2550. fi
  2551. fi
  2552. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2553. if test -n "$ac_ct_CC"; then
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2555. $as_echo "$ac_ct_CC" >&6; }
  2556. else
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2558. $as_echo "no" >&6; }
  2559. fi
  2560. test -n "$ac_ct_CC" && break
  2561. done
  2562. if test "x$ac_ct_CC" = x; then
  2563. CC=""
  2564. else
  2565. case $cross_compiling:$ac_tool_warned in
  2566. yes:)
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2568. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2569. ac_tool_warned=yes ;;
  2570. esac
  2571. CC=$ac_ct_CC
  2572. fi
  2573. fi
  2574. fi
  2575. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2576. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2577. as_fn_error $? "no acceptable C compiler found in \$PATH
  2578. See \`config.log' for more details" "$LINENO" 5; }
  2579. # Provide some information about the compiler.
  2580. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2581. set X $ac_compile
  2582. ac_compiler=$2
  2583. for ac_option in --version -v -V -qversion; do
  2584. { { ac_try="$ac_compiler $ac_option >&5"
  2585. case "(($ac_try" in
  2586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2587. *) ac_try_echo=$ac_try;;
  2588. esac
  2589. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2590. $as_echo "$ac_try_echo"; } >&5
  2591. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2592. ac_status=$?
  2593. if test -s conftest.err; then
  2594. sed '10a\
  2595. ... rest of stderr output deleted ...
  2596. 10q' conftest.err >conftest.er1
  2597. cat conftest.er1 >&5
  2598. fi
  2599. rm -f conftest.er1 conftest.err
  2600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2601. test $ac_status = 0; }
  2602. done
  2603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2604. /* end confdefs.h. */
  2605. int
  2606. main ()
  2607. {
  2608. ;
  2609. return 0;
  2610. }
  2611. _ACEOF
  2612. ac_clean_files_save=$ac_clean_files
  2613. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2614. # Try to create an executable without -o first, disregard a.out.
  2615. # It will help us diagnose broken compilers, and finding out an intuition
  2616. # of exeext.
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2618. $as_echo_n "checking whether the C compiler works... " >&6; }
  2619. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2620. # The possible output files:
  2621. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2622. ac_rmfiles=
  2623. for ac_file in $ac_files
  2624. do
  2625. case $ac_file in
  2626. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2627. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2628. esac
  2629. done
  2630. rm -f $ac_rmfiles
  2631. if { { ac_try="$ac_link_default"
  2632. case "(($ac_try" in
  2633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2634. *) ac_try_echo=$ac_try;;
  2635. esac
  2636. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2637. $as_echo "$ac_try_echo"; } >&5
  2638. (eval "$ac_link_default") 2>&5
  2639. ac_status=$?
  2640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2641. test $ac_status = 0; }; then :
  2642. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2643. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2644. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2645. # so that the user can short-circuit this test for compilers unknown to
  2646. # Autoconf.
  2647. for ac_file in $ac_files ''
  2648. do
  2649. test -f "$ac_file" || continue
  2650. case $ac_file in
  2651. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2652. ;;
  2653. [ab].out )
  2654. # We found the default executable, but exeext='' is most
  2655. # certainly right.
  2656. break;;
  2657. *.* )
  2658. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2659. then :; else
  2660. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2661. fi
  2662. # We set ac_cv_exeext here because the later test for it is not
  2663. # safe: cross compilers may not add the suffix if given an `-o'
  2664. # argument, so we may need to know it at that point already.
  2665. # Even if this section looks crufty: it has the advantage of
  2666. # actually working.
  2667. break;;
  2668. * )
  2669. break;;
  2670. esac
  2671. done
  2672. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2673. else
  2674. ac_file=''
  2675. fi
  2676. if test -z "$ac_file"; then :
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2678. $as_echo "no" >&6; }
  2679. $as_echo "$as_me: failed program was:" >&5
  2680. sed 's/^/| /' conftest.$ac_ext >&5
  2681. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2682. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2683. as_fn_error 77 "C compiler cannot create executables
  2684. See \`config.log' for more details" "$LINENO" 5; }
  2685. else
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2687. $as_echo "yes" >&6; }
  2688. fi
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2690. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2692. $as_echo "$ac_file" >&6; }
  2693. ac_exeext=$ac_cv_exeext
  2694. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2695. ac_clean_files=$ac_clean_files_save
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2697. $as_echo_n "checking for suffix of executables... " >&6; }
  2698. if { { ac_try="$ac_link"
  2699. case "(($ac_try" in
  2700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2701. *) ac_try_echo=$ac_try;;
  2702. esac
  2703. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2704. $as_echo "$ac_try_echo"; } >&5
  2705. (eval "$ac_link") 2>&5
  2706. ac_status=$?
  2707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2708. test $ac_status = 0; }; then :
  2709. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2710. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2711. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2712. # `rm'.
  2713. for ac_file in conftest.exe conftest conftest.*; do
  2714. test -f "$ac_file" || continue
  2715. case $ac_file in
  2716. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2717. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2718. break;;
  2719. * ) break;;
  2720. esac
  2721. done
  2722. else
  2723. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2724. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2725. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2726. See \`config.log' for more details" "$LINENO" 5; }
  2727. fi
  2728. rm -f conftest conftest$ac_cv_exeext
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2730. $as_echo "$ac_cv_exeext" >&6; }
  2731. rm -f conftest.$ac_ext
  2732. EXEEXT=$ac_cv_exeext
  2733. ac_exeext=$EXEEXT
  2734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2735. /* end confdefs.h. */
  2736. #include <stdio.h>
  2737. int
  2738. main ()
  2739. {
  2740. FILE *f = fopen ("conftest.out", "w");
  2741. return ferror (f) || fclose (f) != 0;
  2742. ;
  2743. return 0;
  2744. }
  2745. _ACEOF
  2746. ac_clean_files="$ac_clean_files conftest.out"
  2747. # Check that the compiler produces executables we can run. If not, either
  2748. # the compiler is broken, or we cross compile.
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2750. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2751. if test "$cross_compiling" != yes; then
  2752. { { ac_try="$ac_link"
  2753. case "(($ac_try" in
  2754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2755. *) ac_try_echo=$ac_try;;
  2756. esac
  2757. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2758. $as_echo "$ac_try_echo"; } >&5
  2759. (eval "$ac_link") 2>&5
  2760. ac_status=$?
  2761. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2762. test $ac_status = 0; }
  2763. if { ac_try='./conftest$ac_cv_exeext'
  2764. { { case "(($ac_try" in
  2765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2766. *) ac_try_echo=$ac_try;;
  2767. esac
  2768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2769. $as_echo "$ac_try_echo"; } >&5
  2770. (eval "$ac_try") 2>&5
  2771. ac_status=$?
  2772. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2773. test $ac_status = 0; }; }; then
  2774. cross_compiling=no
  2775. else
  2776. if test "$cross_compiling" = maybe; then
  2777. cross_compiling=yes
  2778. else
  2779. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2780. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2781. as_fn_error $? "cannot run C compiled programs.
  2782. If you meant to cross compile, use \`--host'.
  2783. See \`config.log' for more details" "$LINENO" 5; }
  2784. fi
  2785. fi
  2786. fi
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2788. $as_echo "$cross_compiling" >&6; }
  2789. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2790. ac_clean_files=$ac_clean_files_save
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2792. $as_echo_n "checking for suffix of object files... " >&6; }
  2793. if ${ac_cv_objext+:} false; then :
  2794. $as_echo_n "(cached) " >&6
  2795. else
  2796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2797. /* end confdefs.h. */
  2798. int
  2799. main ()
  2800. {
  2801. ;
  2802. return 0;
  2803. }
  2804. _ACEOF
  2805. rm -f conftest.o conftest.obj
  2806. if { { ac_try="$ac_compile"
  2807. case "(($ac_try" in
  2808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2809. *) ac_try_echo=$ac_try;;
  2810. esac
  2811. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2812. $as_echo "$ac_try_echo"; } >&5
  2813. (eval "$ac_compile") 2>&5
  2814. ac_status=$?
  2815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2816. test $ac_status = 0; }; then :
  2817. for ac_file in conftest.o conftest.obj conftest.*; do
  2818. test -f "$ac_file" || continue;
  2819. case $ac_file in
  2820. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2821. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2822. break;;
  2823. esac
  2824. done
  2825. else
  2826. $as_echo "$as_me: failed program was:" >&5
  2827. sed 's/^/| /' conftest.$ac_ext >&5
  2828. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2829. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2830. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2831. See \`config.log' for more details" "$LINENO" 5; }
  2832. fi
  2833. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2834. fi
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2836. $as_echo "$ac_cv_objext" >&6; }
  2837. OBJEXT=$ac_cv_objext
  2838. ac_objext=$OBJEXT
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2840. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2841. if ${ac_cv_c_compiler_gnu+:} false; then :
  2842. $as_echo_n "(cached) " >&6
  2843. else
  2844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2845. /* end confdefs.h. */
  2846. int
  2847. main ()
  2848. {
  2849. #ifndef __GNUC__
  2850. choke me
  2851. #endif
  2852. ;
  2853. return 0;
  2854. }
  2855. _ACEOF
  2856. if ac_fn_c_try_compile "$LINENO"; then :
  2857. ac_compiler_gnu=yes
  2858. else
  2859. ac_compiler_gnu=no
  2860. fi
  2861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2862. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2863. fi
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2865. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2866. if test $ac_compiler_gnu = yes; then
  2867. GCC=yes
  2868. else
  2869. GCC=
  2870. fi
  2871. ac_test_CFLAGS=${CFLAGS+set}
  2872. ac_save_CFLAGS=$CFLAGS
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2874. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2875. if ${ac_cv_prog_cc_g+:} false; then :
  2876. $as_echo_n "(cached) " >&6
  2877. else
  2878. ac_save_c_werror_flag=$ac_c_werror_flag
  2879. ac_c_werror_flag=yes
  2880. ac_cv_prog_cc_g=no
  2881. CFLAGS="-g"
  2882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2883. /* end confdefs.h. */
  2884. int
  2885. main ()
  2886. {
  2887. ;
  2888. return 0;
  2889. }
  2890. _ACEOF
  2891. if ac_fn_c_try_compile "$LINENO"; then :
  2892. ac_cv_prog_cc_g=yes
  2893. else
  2894. CFLAGS=""
  2895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2896. /* end confdefs.h. */
  2897. int
  2898. main ()
  2899. {
  2900. ;
  2901. return 0;
  2902. }
  2903. _ACEOF
  2904. if ac_fn_c_try_compile "$LINENO"; then :
  2905. else
  2906. ac_c_werror_flag=$ac_save_c_werror_flag
  2907. CFLAGS="-g"
  2908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2909. /* end confdefs.h. */
  2910. int
  2911. main ()
  2912. {
  2913. ;
  2914. return 0;
  2915. }
  2916. _ACEOF
  2917. if ac_fn_c_try_compile "$LINENO"; then :
  2918. ac_cv_prog_cc_g=yes
  2919. fi
  2920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2921. fi
  2922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2923. fi
  2924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2925. ac_c_werror_flag=$ac_save_c_werror_flag
  2926. fi
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2928. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2929. if test "$ac_test_CFLAGS" = set; then
  2930. CFLAGS=$ac_save_CFLAGS
  2931. elif test $ac_cv_prog_cc_g = yes; then
  2932. if test "$GCC" = yes; then
  2933. CFLAGS="-g -O2"
  2934. else
  2935. CFLAGS="-g"
  2936. fi
  2937. else
  2938. if test "$GCC" = yes; then
  2939. CFLAGS="-O2"
  2940. else
  2941. CFLAGS=
  2942. fi
  2943. fi
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2945. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2946. if ${ac_cv_prog_cc_c89+:} false; then :
  2947. $as_echo_n "(cached) " >&6
  2948. else
  2949. ac_cv_prog_cc_c89=no
  2950. ac_save_CC=$CC
  2951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2952. /* end confdefs.h. */
  2953. #include <stdarg.h>
  2954. #include <stdio.h>
  2955. struct stat;
  2956. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2957. struct buf { int x; };
  2958. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2959. static char *e (p, i)
  2960. char **p;
  2961. int i;
  2962. {
  2963. return p[i];
  2964. }
  2965. static char *f (char * (*g) (char **, int), char **p, ...)
  2966. {
  2967. char *s;
  2968. va_list v;
  2969. va_start (v,p);
  2970. s = g (p, va_arg (v,int));
  2971. va_end (v);
  2972. return s;
  2973. }
  2974. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2975. function prototypes and stuff, but not '\xHH' hex character constants.
  2976. These don't provoke an error unfortunately, instead are silently treated
  2977. as 'x'. The following induces an error, until -std is added to get
  2978. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2979. array size at least. It's necessary to write '\x00'==0 to get something
  2980. that's true only with -std. */
  2981. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2982. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2983. inside strings and character constants. */
  2984. #define FOO(x) 'x'
  2985. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2986. int test (int i, double x);
  2987. struct s1 {int (*f) (int a);};
  2988. struct s2 {int (*f) (double a);};
  2989. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2990. int argc;
  2991. char **argv;
  2992. int
  2993. main ()
  2994. {
  2995. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2996. ;
  2997. return 0;
  2998. }
  2999. _ACEOF
  3000. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3001. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3002. do
  3003. CC="$ac_save_CC $ac_arg"
  3004. if ac_fn_c_try_compile "$LINENO"; then :
  3005. ac_cv_prog_cc_c89=$ac_arg
  3006. fi
  3007. rm -f core conftest.err conftest.$ac_objext
  3008. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3009. done
  3010. rm -f conftest.$ac_ext
  3011. CC=$ac_save_CC
  3012. fi
  3013. # AC_CACHE_VAL
  3014. case "x$ac_cv_prog_cc_c89" in
  3015. x)
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3017. $as_echo "none needed" >&6; } ;;
  3018. xno)
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3020. $as_echo "unsupported" >&6; } ;;
  3021. *)
  3022. CC="$CC $ac_cv_prog_cc_c89"
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3024. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3025. esac
  3026. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3027. fi
  3028. ac_ext=c
  3029. ac_cpp='$CPP $CPPFLAGS'
  3030. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3031. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3032. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3033. if test "$GCC" = yes ; then
  3034. #
  3035. # -Werror forces warnings to be errors.
  3036. #
  3037. ac_lbl_cc_force_warning_errors=-Werror
  3038. #
  3039. # Use -ffloat-store so that, on 32-bit x86, we don't
  3040. # do 80-bit arithmetic with the FPU; that way we should
  3041. # get the same results for floating-point calculations
  3042. # on x86-32 and x86-64.
  3043. #
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -ffloat-store option" >&5
  3045. $as_echo_n "checking whether the compiler supports the -ffloat-store option... " >&6; }
  3046. save_CFLAGS="$CFLAGS"
  3047. if expr "x-ffloat-store" : "x-W.*" >/dev/null
  3048. then
  3049. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -ffloat-store"
  3050. elif expr "x-ffloat-store" : "x-f.*" >/dev/null
  3051. then
  3052. CFLAGS="$CFLAGS -Werror -ffloat-store"
  3053. elif expr "x-ffloat-store" : "x-m.*" >/dev/null
  3054. then
  3055. CFLAGS="$CFLAGS -Werror -ffloat-store"
  3056. else
  3057. CFLAGS="$CFLAGS -ffloat-store"
  3058. fi
  3059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3060. /* end confdefs.h. */
  3061. int
  3062. main ()
  3063. {
  3064. return 0
  3065. ;
  3066. return 0;
  3067. }
  3068. _ACEOF
  3069. if ac_fn_c_try_compile "$LINENO"; then :
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3071. $as_echo "yes" >&6; }
  3072. CFLAGS="$save_CFLAGS"
  3073. V_CCOPT="$V_CCOPT -ffloat-store"
  3074. else
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3076. $as_echo "no" >&6; }
  3077. CFLAGS="$save_CFLAGS"
  3078. fi
  3079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3080. else
  3081. V_INCLS="$V_INCLS -I/usr/local/include"
  3082. LDFLAGS="$LDFLAGS -L/usr/local/lib"
  3083. case "$host_os" in
  3084. darwin*)
  3085. #
  3086. # This is assumed either to be GCC or clang, both
  3087. # of which use -Werror to force warnings to be errors.
  3088. #
  3089. ac_lbl_cc_force_warning_errors=-Werror
  3090. ;;
  3091. hpux*)
  3092. #
  3093. # HP C, which is what we presume we're using, doesn't
  3094. # exit with a non-zero exit status if we hand it an
  3095. # invalid -W flag, can't be forced to do so even with
  3096. # +We, and doesn't handle GCC-style -W flags, so we
  3097. # don't want to try using GCC-style -W flags.
  3098. #
  3099. ac_lbl_cc_dont_try_gcc_dashW=yes
  3100. ;;
  3101. irix*)
  3102. #
  3103. # MIPS C, which is what we presume we're using, doesn't
  3104. # necessarily exit with a non-zero exit status if we
  3105. # hand it an invalid -W flag, can't be forced to do
  3106. # so, and doesn't handle GCC-style -W flags, so we
  3107. # don't want to try using GCC-style -W flags.
  3108. #
  3109. ac_lbl_cc_dont_try_gcc_dashW=yes
  3110. #
  3111. # It also, apparently, defaults to "char" being
  3112. # unsigned, unlike most other C implementations;
  3113. # I suppose we could say "signed char" whenever
  3114. # we want to guarantee a signed "char", but let's
  3115. # just force signed chars.
  3116. #
  3117. # -xansi is normally the default, but the
  3118. # configure script was setting it; perhaps -cckr
  3119. # was the default in the Old Days. (Then again,
  3120. # that would probably be for backwards compatibility
  3121. # in the days when ANSI C was Shiny and New, i.e.
  3122. # 1989 and the early '90's, so maybe we can just
  3123. # drop support for those compilers.)
  3124. #
  3125. # -g is equivalent to -g2, which turns off
  3126. # optimization; we choose -g3, which generates
  3127. # debugging information but doesn't turn off
  3128. # optimization (even if the optimization would
  3129. # cause inaccuracies in debugging).
  3130. #
  3131. V_CCOPT="$V_CCOPT -xansi -signed -g3"
  3132. ;;
  3133. osf*)
  3134. #
  3135. # Presumed to be DEC OSF/1, Digital UNIX, or
  3136. # Tru64 UNIX.
  3137. #
  3138. # The DEC C compiler, which is what we presume we're
  3139. # using, doesn't exit with a non-zero exit status if we
  3140. # hand it an invalid -W flag, can't be forced to do
  3141. # so, and doesn't handle GCC-style -W flags, so we
  3142. # don't want to try using GCC-style -W flags.
  3143. #
  3144. ac_lbl_cc_dont_try_gcc_dashW=yes
  3145. #
  3146. # -g is equivalent to -g2, which turns off
  3147. # optimization; we choose -g3, which generates
  3148. # debugging information but doesn't turn off
  3149. # optimization (even if the optimization would
  3150. # cause inaccuracies in debugging).
  3151. #
  3152. V_CCOPT="$V_CCOPT -g3"
  3153. ;;
  3154. solaris*)
  3155. #
  3156. # Assumed to be Sun C, which requires -errwarn to force
  3157. # warnings to be treated as errors.
  3158. #
  3159. ac_lbl_cc_force_warning_errors=-errwarn
  3160. ;;
  3161. ultrix*)
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
  3163. $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
  3164. if ${ac_cv_lbl_cc_const_proto+:} false; then :
  3165. $as_echo_n "(cached) " >&6
  3166. else
  3167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3168. /* end confdefs.h. */
  3169. #include <sys/types.h>
  3170. int
  3171. main ()
  3172. {
  3173. struct a { int b; };
  3174. void c(const struct a *)
  3175. ;
  3176. return 0;
  3177. }
  3178. _ACEOF
  3179. if ac_fn_c_try_compile "$LINENO"; then :
  3180. ac_cv_lbl_cc_const_proto=yes
  3181. else
  3182. ac_cv_lbl_cc_const_proto=no
  3183. fi
  3184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3185. fi
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
  3187. $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
  3188. if test $ac_cv_lbl_cc_const_proto = no ; then
  3189. $as_echo "#define const /**/" >>confdefs.h
  3190. fi
  3191. ;;
  3192. esac
  3193. V_CCOPT="$V_CCOPT -O"
  3194. fi
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3196. $as_echo_n "checking for inline... " >&6; }
  3197. save_CFLAGS="$CFLAGS"
  3198. CFLAGS="$V_CCOPT"
  3199. if ${ac_cv_lbl_inline+:} false; then :
  3200. $as_echo_n "(cached) " >&6
  3201. else
  3202. ac_cv_lbl_inline=""
  3203. ac_lbl_cc_inline=no
  3204. for ac_lbl_inline in inline __inline__ __inline
  3205. do
  3206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3207. /* end confdefs.h. */
  3208. #define inline $ac_lbl_inline
  3209. static inline struct iltest *foo(void);
  3210. struct iltest {
  3211. int iltest1;
  3212. int iltest2;
  3213. };
  3214. static inline struct iltest *
  3215. foo()
  3216. {
  3217. static struct iltest xxx;
  3218. return &xxx;
  3219. }
  3220. int
  3221. main ()
  3222. {
  3223. ;
  3224. return 0;
  3225. }
  3226. _ACEOF
  3227. if ac_fn_c_try_compile "$LINENO"; then :
  3228. ac_lbl_cc_inline=yes
  3229. fi
  3230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3231. if test "$ac_lbl_cc_inline" = yes ; then
  3232. break;
  3233. fi
  3234. done
  3235. if test "$ac_lbl_cc_inline" = yes ; then
  3236. ac_cv_lbl_inline=$ac_lbl_inline
  3237. fi
  3238. fi
  3239. CFLAGS="$save_CFLAGS"
  3240. if test ! -z "$ac_cv_lbl_inline" ; then
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
  3242. $as_echo "$ac_cv_lbl_inline" >&6; }
  3243. else
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3245. $as_echo "no" >&6; }
  3246. fi
  3247. cat >>confdefs.h <<_ACEOF
  3248. #define inline $ac_cv_lbl_inline
  3249. _ACEOF
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
  3251. $as_echo_n "checking for __attribute__... " >&6; }
  3252. if ${ac_cv___attribute__+:} false; then :
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3256. /* end confdefs.h. */
  3257. #include <stdlib.h>
  3258. static void foo(void) __attribute__ ((noreturn));
  3259. static void
  3260. foo(void)
  3261. {
  3262. exit(1);
  3263. }
  3264. int
  3265. main(int argc, char **argv)
  3266. {
  3267. foo();
  3268. }
  3269. _ACEOF
  3270. if ac_fn_c_try_compile "$LINENO"; then :
  3271. ac_cv___attribute__=yes
  3272. else
  3273. ac_cv___attribute__=no
  3274. fi
  3275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3276. fi
  3277. if test "$ac_cv___attribute__" = "yes"; then
  3278. $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
  3279. else
  3280. #
  3281. # We can't use __attribute__, so we can't use __attribute__((unused)),
  3282. # so we define _U_ to an empty string.
  3283. #
  3284. V_DEFS="$V_DEFS -D_U_=\"\""
  3285. fi
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
  3287. $as_echo "$ac_cv___attribute__" >&6; }
  3288. if test "$ac_cv___attribute__" = "yes"; then
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) can be used without warnings" >&5
  3290. $as_echo_n "checking whether __attribute__((unused)) can be used without warnings... " >&6; }
  3291. if ${ac_cv___attribute___unused+:} false; then :
  3292. $as_echo_n "(cached) " >&6
  3293. else
  3294. save_CFLAGS="$CFLAGS"
  3295. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  3296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3297. /* end confdefs.h. */
  3298. #include <stdlib.h>
  3299. #include <stdio.h>
  3300. int
  3301. main(int argc __attribute((unused)), char **argv __attribute((unused)))
  3302. {
  3303. printf("Hello, world!\n");
  3304. return 0;
  3305. }
  3306. _ACEOF
  3307. if ac_fn_c_try_compile "$LINENO"; then :
  3308. ac_cv___attribute___unused=yes
  3309. else
  3310. ac_cv___attribute___unused=no
  3311. fi
  3312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3313. fi
  3314. CFLAGS="$save_CFLAGS"
  3315. if test "$ac_cv___attribute___unused" = "yes"; then
  3316. V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
  3317. else
  3318. V_DEFS="$V_DEFS -D_U_=\"\""
  3319. fi
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___unused" >&5
  3321. $as_echo "$ac_cv___attribute___unused" >&6; }
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((noreturn)) can be applied to function pointers without warnings" >&5
  3323. $as_echo_n "checking whether __attribute__((noreturn)) can be applied to function pointers without warnings... " >&6; }
  3324. if ${ac_cv___attribute___noreturn_function_pointer+:} false; then :
  3325. $as_echo_n "(cached) " >&6
  3326. else
  3327. save_CFLAGS="$CFLAGS"
  3328. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  3329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3330. /* end confdefs.h. */
  3331. #include <stdlib.h>
  3332. extern int (*foo)(int i)
  3333. __attribute__ ((noreturn));
  3334. int
  3335. main(int argc, char **argv)
  3336. {
  3337. (*foo)(1);
  3338. }
  3339. _ACEOF
  3340. if ac_fn_c_try_compile "$LINENO"; then :
  3341. ac_cv___attribute___noreturn_function_pointer=yes
  3342. else
  3343. ac_cv___attribute___noreturn_function_pointer=no
  3344. fi
  3345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3346. fi
  3347. CFLAGS="$save_CFLAGS"
  3348. if test "$ac_cv___attribute___noreturn_function_pointer" = "yes"; then
  3349. $as_echo "#define __ATTRIBUTE___NORETURN_OK_FOR_FUNCTION_POINTERS 1" >>confdefs.h
  3350. fi
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___noreturn_function_pointer" >&5
  3352. $as_echo "$ac_cv___attribute___noreturn_function_pointer" >&6; }
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be used without warnings" >&5
  3354. $as_echo_n "checking whether __attribute__((format)) can be used without warnings... " >&6; }
  3355. if ${ac_cv___attribute___format+:} false; then :
  3356. $as_echo_n "(cached) " >&6
  3357. else
  3358. save_CFLAGS="$CFLAGS"
  3359. CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
  3360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3361. /* end confdefs.h. */
  3362. #include <stdlib.h>
  3363. extern int foo(const char *fmt, ...)
  3364. __attribute__ ((format (printf, 1, 2)));
  3365. int
  3366. main(int argc, char **argv)
  3367. {
  3368. foo("%s", "test");
  3369. }
  3370. _ACEOF
  3371. if ac_fn_c_try_compile "$LINENO"; then :
  3372. ac_cv___attribute___format=yes
  3373. else
  3374. ac_cv___attribute___format=no
  3375. fi
  3376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3377. fi
  3378. CFLAGS="$save_CFLAGS"
  3379. if test "$ac_cv___attribute___format" = "yes"; then
  3380. $as_echo "#define __ATTRIBUTE___FORMAT_OK 1" >>confdefs.h
  3381. fi
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format" >&5
  3383. $as_echo "$ac_cv___attribute___format" >&6; }
  3384. if test "$ac_cv___attribute___format" = "yes"; then
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be applied to function pointers" >&5
  3386. $as_echo_n "checking whether __attribute__((format)) can be applied to function pointers... " >&6; }
  3387. if ${ac_cv___attribute___format_function_pointer+:} false; then :
  3388. $as_echo_n "(cached) " >&6
  3389. else
  3390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3391. /* end confdefs.h. */
  3392. #include <stdlib.h>
  3393. extern int (*foo)(const char *fmt, ...)
  3394. __attribute__ ((format (printf, 1, 2)));
  3395. int
  3396. main(int argc, char **argv)
  3397. {
  3398. (*foo)("%s", "test");
  3399. }
  3400. _ACEOF
  3401. if ac_fn_c_try_compile "$LINENO"; then :
  3402. ac_cv___attribute___format_function_pointer=yes
  3403. else
  3404. ac_cv___attribute___format_function_pointer=no
  3405. fi
  3406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3407. fi
  3408. if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
  3409. $as_echo "#define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1" >>confdefs.h
  3410. fi
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format_function_pointer" >&5
  3412. $as_echo "$ac_cv___attribute___format_function_pointer" >&6; }
  3413. fi
  3414. fi
  3415. ac_ext=c
  3416. ac_cpp='$CPP $CPPFLAGS'
  3417. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3418. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3419. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3421. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3422. # On Suns, sometimes $CPP names a directory.
  3423. if test -n "$CPP" && test -d "$CPP"; then
  3424. CPP=
  3425. fi
  3426. if test -z "$CPP"; then
  3427. if ${ac_cv_prog_CPP+:} false; then :
  3428. $as_echo_n "(cached) " >&6
  3429. else
  3430. # Double quotes because CPP needs to be expanded
  3431. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3432. do
  3433. ac_preproc_ok=false
  3434. for ac_c_preproc_warn_flag in '' yes
  3435. do
  3436. # Use a header file that comes with gcc, so configuring glibc
  3437. # with a fresh cross-compiler works.
  3438. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3439. # <limits.h> exists even on freestanding compilers.
  3440. # On the NeXT, cc -E runs the code through the compiler's parser,
  3441. # not just through cpp. "Syntax error" is here to catch this case.
  3442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3443. /* end confdefs.h. */
  3444. #ifdef __STDC__
  3445. # include <limits.h>
  3446. #else
  3447. # include <assert.h>
  3448. #endif
  3449. Syntax error
  3450. _ACEOF
  3451. if ac_fn_c_try_cpp "$LINENO"; then :
  3452. else
  3453. # Broken: fails on valid input.
  3454. continue
  3455. fi
  3456. rm -f conftest.err conftest.i conftest.$ac_ext
  3457. # OK, works on sane cases. Now check whether nonexistent headers
  3458. # can be detected and how.
  3459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3460. /* end confdefs.h. */
  3461. #include <ac_nonexistent.h>
  3462. _ACEOF
  3463. if ac_fn_c_try_cpp "$LINENO"; then :
  3464. # Broken: success on invalid input.
  3465. continue
  3466. else
  3467. # Passes both tests.
  3468. ac_preproc_ok=:
  3469. break
  3470. fi
  3471. rm -f conftest.err conftest.i conftest.$ac_ext
  3472. done
  3473. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3474. rm -f conftest.i conftest.err conftest.$ac_ext
  3475. if $ac_preproc_ok; then :
  3476. break
  3477. fi
  3478. done
  3479. ac_cv_prog_CPP=$CPP
  3480. fi
  3481. CPP=$ac_cv_prog_CPP
  3482. else
  3483. ac_cv_prog_CPP=$CPP
  3484. fi
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3486. $as_echo "$CPP" >&6; }
  3487. ac_preproc_ok=false
  3488. for ac_c_preproc_warn_flag in '' yes
  3489. do
  3490. # Use a header file that comes with gcc, so configuring glibc
  3491. # with a fresh cross-compiler works.
  3492. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3493. # <limits.h> exists even on freestanding compilers.
  3494. # On the NeXT, cc -E runs the code through the compiler's parser,
  3495. # not just through cpp. "Syntax error" is here to catch this case.
  3496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3497. /* end confdefs.h. */
  3498. #ifdef __STDC__
  3499. # include <limits.h>
  3500. #else
  3501. # include <assert.h>
  3502. #endif
  3503. Syntax error
  3504. _ACEOF
  3505. if ac_fn_c_try_cpp "$LINENO"; then :
  3506. else
  3507. # Broken: fails on valid input.
  3508. continue
  3509. fi
  3510. rm -f conftest.err conftest.i conftest.$ac_ext
  3511. # OK, works on sane cases. Now check whether nonexistent headers
  3512. # can be detected and how.
  3513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3514. /* end confdefs.h. */
  3515. #include <ac_nonexistent.h>
  3516. _ACEOF
  3517. if ac_fn_c_try_cpp "$LINENO"; then :
  3518. # Broken: success on invalid input.
  3519. continue
  3520. else
  3521. # Passes both tests.
  3522. ac_preproc_ok=:
  3523. break
  3524. fi
  3525. rm -f conftest.err conftest.i conftest.$ac_ext
  3526. done
  3527. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3528. rm -f conftest.i conftest.err conftest.$ac_ext
  3529. if $ac_preproc_ok; then :
  3530. else
  3531. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3532. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3533. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3534. See \`config.log' for more details" "$LINENO" 5; }
  3535. fi
  3536. ac_ext=c
  3537. ac_cpp='$CPP $CPPFLAGS'
  3538. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3539. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3540. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3542. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3543. if ${ac_cv_path_GREP+:} false; then :
  3544. $as_echo_n "(cached) " >&6
  3545. else
  3546. if test -z "$GREP"; then
  3547. ac_path_GREP_found=false
  3548. # Loop through the user's path and test for each of PROGNAME-LIST
  3549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3550. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3551. do
  3552. IFS=$as_save_IFS
  3553. test -z "$as_dir" && as_dir=.
  3554. for ac_prog in grep ggrep; do
  3555. for ac_exec_ext in '' $ac_executable_extensions; do
  3556. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3557. as_fn_executable_p "$ac_path_GREP" || continue
  3558. # Check for GNU ac_path_GREP and select it if it is found.
  3559. # Check for GNU $ac_path_GREP
  3560. case `"$ac_path_GREP" --version 2>&1` in
  3561. *GNU*)
  3562. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3563. *)
  3564. ac_count=0
  3565. $as_echo_n 0123456789 >"conftest.in"
  3566. while :
  3567. do
  3568. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3569. mv "conftest.tmp" "conftest.in"
  3570. cp "conftest.in" "conftest.nl"
  3571. $as_echo 'GREP' >> "conftest.nl"
  3572. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3573. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3574. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3575. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3576. # Best one so far, save it but keep looking for a better one
  3577. ac_cv_path_GREP="$ac_path_GREP"
  3578. ac_path_GREP_max=$ac_count
  3579. fi
  3580. # 10*(2^10) chars as input seems more than enough
  3581. test $ac_count -gt 10 && break
  3582. done
  3583. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3584. esac
  3585. $ac_path_GREP_found && break 3
  3586. done
  3587. done
  3588. done
  3589. IFS=$as_save_IFS
  3590. if test -z "$ac_cv_path_GREP"; then
  3591. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3592. fi
  3593. else
  3594. ac_cv_path_GREP=$GREP
  3595. fi
  3596. fi
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3598. $as_echo "$ac_cv_path_GREP" >&6; }
  3599. GREP="$ac_cv_path_GREP"
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3601. $as_echo_n "checking for egrep... " >&6; }
  3602. if ${ac_cv_path_EGREP+:} false; then :
  3603. $as_echo_n "(cached) " >&6
  3604. else
  3605. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3606. then ac_cv_path_EGREP="$GREP -E"
  3607. else
  3608. if test -z "$EGREP"; then
  3609. ac_path_EGREP_found=false
  3610. # Loop through the user's path and test for each of PROGNAME-LIST
  3611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3612. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3613. do
  3614. IFS=$as_save_IFS
  3615. test -z "$as_dir" && as_dir=.
  3616. for ac_prog in egrep; do
  3617. for ac_exec_ext in '' $ac_executable_extensions; do
  3618. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3619. as_fn_executable_p "$ac_path_EGREP" || continue
  3620. # Check for GNU ac_path_EGREP and select it if it is found.
  3621. # Check for GNU $ac_path_EGREP
  3622. case `"$ac_path_EGREP" --version 2>&1` in
  3623. *GNU*)
  3624. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3625. *)
  3626. ac_count=0
  3627. $as_echo_n 0123456789 >"conftest.in"
  3628. while :
  3629. do
  3630. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3631. mv "conftest.tmp" "conftest.in"
  3632. cp "conftest.in" "conftest.nl"
  3633. $as_echo 'EGREP' >> "conftest.nl"
  3634. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3635. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3636. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3637. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3638. # Best one so far, save it but keep looking for a better one
  3639. ac_cv_path_EGREP="$ac_path_EGREP"
  3640. ac_path_EGREP_max=$ac_count
  3641. fi
  3642. # 10*(2^10) chars as input seems more than enough
  3643. test $ac_count -gt 10 && break
  3644. done
  3645. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3646. esac
  3647. $ac_path_EGREP_found && break 3
  3648. done
  3649. done
  3650. done
  3651. IFS=$as_save_IFS
  3652. if test -z "$ac_cv_path_EGREP"; then
  3653. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3654. fi
  3655. else
  3656. ac_cv_path_EGREP=$EGREP
  3657. fi
  3658. fi
  3659. fi
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3661. $as_echo "$ac_cv_path_EGREP" >&6; }
  3662. EGREP="$ac_cv_path_EGREP"
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3664. $as_echo_n "checking for ANSI C header files... " >&6; }
  3665. if ${ac_cv_header_stdc+:} false; then :
  3666. $as_echo_n "(cached) " >&6
  3667. else
  3668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3669. /* end confdefs.h. */
  3670. #include <stdlib.h>
  3671. #include <stdarg.h>
  3672. #include <string.h>
  3673. #include <float.h>
  3674. int
  3675. main ()
  3676. {
  3677. ;
  3678. return 0;
  3679. }
  3680. _ACEOF
  3681. if ac_fn_c_try_compile "$LINENO"; then :
  3682. ac_cv_header_stdc=yes
  3683. else
  3684. ac_cv_header_stdc=no
  3685. fi
  3686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3687. if test $ac_cv_header_stdc = yes; then
  3688. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3690. /* end confdefs.h. */
  3691. #include <string.h>
  3692. _ACEOF
  3693. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3694. $EGREP "memchr" >/dev/null 2>&1; then :
  3695. else
  3696. ac_cv_header_stdc=no
  3697. fi
  3698. rm -f conftest*
  3699. fi
  3700. if test $ac_cv_header_stdc = yes; then
  3701. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3703. /* end confdefs.h. */
  3704. #include <stdlib.h>
  3705. _ACEOF
  3706. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3707. $EGREP "free" >/dev/null 2>&1; then :
  3708. else
  3709. ac_cv_header_stdc=no
  3710. fi
  3711. rm -f conftest*
  3712. fi
  3713. if test $ac_cv_header_stdc = yes; then
  3714. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3715. if test "$cross_compiling" = yes; then :
  3716. :
  3717. else
  3718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3719. /* end confdefs.h. */
  3720. #include <ctype.h>
  3721. #include <stdlib.h>
  3722. #if ((' ' & 0x0FF) == 0x020)
  3723. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3724. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3725. #else
  3726. # define ISLOWER(c) \
  3727. (('a' <= (c) && (c) <= 'i') \
  3728. || ('j' <= (c) && (c) <= 'r') \
  3729. || ('s' <= (c) && (c) <= 'z'))
  3730. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3731. #endif
  3732. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3733. int
  3734. main ()
  3735. {
  3736. int i;
  3737. for (i = 0; i < 256; i++)
  3738. if (XOR (islower (i), ISLOWER (i))
  3739. || toupper (i) != TOUPPER (i))
  3740. return 2;
  3741. return 0;
  3742. }
  3743. _ACEOF
  3744. if ac_fn_c_try_run "$LINENO"; then :
  3745. else
  3746. ac_cv_header_stdc=no
  3747. fi
  3748. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3749. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3750. fi
  3751. fi
  3752. fi
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3754. $as_echo "$ac_cv_header_stdc" >&6; }
  3755. if test $ac_cv_header_stdc = yes; then
  3756. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3757. fi
  3758. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3759. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3760. inttypes.h stdint.h unistd.h
  3761. do :
  3762. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3763. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3764. "
  3765. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3766. cat >>confdefs.h <<_ACEOF
  3767. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3768. _ACEOF
  3769. fi
  3770. done
  3771. for ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h
  3772. do :
  3773. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3774. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3775. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3776. cat >>confdefs.h <<_ACEOF
  3777. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3778. _ACEOF
  3779. fi
  3780. done
  3781. for ac_header in net/pfvar.h
  3782. do :
  3783. ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
  3784. #include <sys/socket.h>
  3785. #include <net/if.h>
  3786. "
  3787. if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
  3788. cat >>confdefs.h <<_ACEOF
  3789. #define HAVE_NET_PFVAR_H 1
  3790. _ACEOF
  3791. fi
  3792. done
  3793. if test "$ac_cv_header_net_pfvar_h" = yes; then
  3794. for ac_header in net/if_pflog.h
  3795. do :
  3796. ac_fn_c_check_header_compile "$LINENO" "net/if_pflog.h" "ac_cv_header_net_if_pflog_h" "#include <sys/types.h>
  3797. #include <sys/socket.h>
  3798. #include <net/if.h>
  3799. #include <net/pfvar.h>
  3800. "
  3801. if test "x$ac_cv_header_net_if_pflog_h" = xyes; then :
  3802. cat >>confdefs.h <<_ACEOF
  3803. #define HAVE_NET_IF_PFLOG_H 1
  3804. _ACEOF
  3805. fi
  3806. done
  3807. if test "$ac_cv_header_net_if_pflog_h" = yes; then
  3808. LOCALSRC="print-pflog.c $LOCALSRC"
  3809. fi
  3810. fi
  3811. for ac_header in netinet/if_ether.h
  3812. do :
  3813. ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
  3814. #include <sys/socket.h>
  3815. "
  3816. if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
  3817. cat >>confdefs.h <<_ACEOF
  3818. #define HAVE_NETINET_IF_ETHER_H 1
  3819. _ACEOF
  3820. fi
  3821. done
  3822. if test "$ac_cv_header_netinet_if_ether_h" != yes; then
  3823. #
  3824. # The simple test didn't work.
  3825. # Do we need to include <net/if.h> first?
  3826. # Unset ac_cv_header_netinet_if_ether_h so we don't
  3827. # treat the previous failure as a cached value and
  3828. # suppress the next test.
  3829. #
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
  3831. $as_echo "$as_me: Rechecking with some additional includes" >&6;}
  3832. unset ac_cv_header_netinet_if_ether_h
  3833. for ac_header in netinet/if_ether.h
  3834. do :
  3835. ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
  3836. #include <sys/socket.h>
  3837. #include <netinet/in.h>
  3838. struct mbuf;
  3839. struct rtentry;
  3840. #include <net/if.h>
  3841. "
  3842. if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
  3843. cat >>confdefs.h <<_ACEOF
  3844. #define HAVE_NETINET_IF_ETHER_H 1
  3845. _ACEOF
  3846. fi
  3847. done
  3848. fi
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  3850. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  3851. if ${ac_cv_header_time+:} false; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3855. /* end confdefs.h. */
  3856. #include <sys/types.h>
  3857. #include <sys/time.h>
  3858. #include <time.h>
  3859. int
  3860. main ()
  3861. {
  3862. if ((struct tm *) 0)
  3863. return 0;
  3864. ;
  3865. return 0;
  3866. }
  3867. _ACEOF
  3868. if ac_fn_c_try_compile "$LINENO"; then :
  3869. ac_cv_header_time=yes
  3870. else
  3871. ac_cv_header_time=no
  3872. fi
  3873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3874. fi
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  3876. $as_echo "$ac_cv_header_time" >&6; }
  3877. if test $ac_cv_header_time = yes; then
  3878. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  3879. fi
  3880. case "$host_os" in
  3881. darwin*)
  3882. # Check whether --enable-universal was given.
  3883. if test "${enable_universal+set}" = set; then :
  3884. enableval=$enable_universal;
  3885. fi
  3886. if test "$enable_universal" != "no"; then
  3887. case "$host_os" in
  3888. darwin9.*)
  3889. #
  3890. # Leopard. Build for x86 and 32-bit PowerPC, with
  3891. # x86 first. (That's what Apple does.)
  3892. #
  3893. V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
  3894. LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
  3895. ;;
  3896. darwin10.*)
  3897. #
  3898. # Snow Leopard. Build for x86-64 and x86, with
  3899. # x86-64 first. (That's what Apple does.)
  3900. #
  3901. V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
  3902. LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
  3903. ;;
  3904. esac
  3905. fi
  3906. ;;
  3907. esac
  3908. # Check whether --with-smi was given.
  3909. if test "${with_smi+set}" = set; then :
  3910. withval=$with_smi;
  3911. else
  3912. with_smi=yes
  3913. fi
  3914. if test "x$with_smi" != "xno" ; then
  3915. ac_fn_c_check_header_mongrel "$LINENO" "smi.h" "ac_cv_header_smi_h" "$ac_includes_default"
  3916. if test "x$ac_cv_header_smi_h" = xyes; then :
  3917. #
  3918. # OK, we found smi.h. Do we have libsmi with smiInit?
  3919. #
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smiInit in -lsmi" >&5
  3921. $as_echo_n "checking for smiInit in -lsmi... " >&6; }
  3922. if ${ac_cv_lib_smi_smiInit+:} false; then :
  3923. $as_echo_n "(cached) " >&6
  3924. else
  3925. ac_check_lib_save_LIBS=$LIBS
  3926. LIBS="-lsmi $LIBS"
  3927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3928. /* end confdefs.h. */
  3929. /* Override any GCC internal prototype to avoid an error.
  3930. Use char because int might match the return type of a GCC
  3931. builtin and then its argument prototype would still apply. */
  3932. #ifdef __cplusplus
  3933. extern "C"
  3934. #endif
  3935. char smiInit ();
  3936. int
  3937. main ()
  3938. {
  3939. return smiInit ();
  3940. ;
  3941. return 0;
  3942. }
  3943. _ACEOF
  3944. if ac_fn_c_try_link "$LINENO"; then :
  3945. ac_cv_lib_smi_smiInit=yes
  3946. else
  3947. ac_cv_lib_smi_smiInit=no
  3948. fi
  3949. rm -f core conftest.err conftest.$ac_objext \
  3950. conftest$ac_exeext conftest.$ac_ext
  3951. LIBS=$ac_check_lib_save_LIBS
  3952. fi
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smi_smiInit" >&5
  3954. $as_echo "$ac_cv_lib_smi_smiInit" >&6; }
  3955. if test "x$ac_cv_lib_smi_smiInit" = xyes; then :
  3956. #
  3957. # OK, we have libsmi with smiInit. Can we use it?
  3958. #
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libsmi" >&5
  3960. $as_echo_n "checking whether to enable libsmi... " >&6; }
  3961. savedlibs="$LIBS"
  3962. LIBS="-lsmi $LIBS"
  3963. if test "$cross_compiling" = yes; then :
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not when cross-compiling" >&5
  3965. $as_echo "not when cross-compiling" >&6; }
  3966. LIBS="$savedlibs"
  3967. else
  3968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3969. /* end confdefs.h. */
  3970. /* libsmi available check */
  3971. #include <smi.h>
  3972. main()
  3973. {
  3974. int current, revision, age, n;
  3975. const int required = 2;
  3976. if (smiInit(""))
  3977. exit(1);
  3978. if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
  3979. exit(2);
  3980. n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
  3981. if (n != 3)
  3982. exit(3);
  3983. if (required < current - age || required > current)
  3984. exit(4);
  3985. exit(0);
  3986. }
  3987. _ACEOF
  3988. if ac_fn_c_try_run "$LINENO"; then :
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3990. $as_echo "yes" >&6; }
  3991. $as_echo "#define USE_LIBSMI 1" >>confdefs.h
  3992. else
  3993. case $? in
  3994. 1) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - smiInit failed" >&5
  3995. $as_echo "no - smiInit failed" >&6; } ;;
  3996. 2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - header/library version mismatch" >&5
  3997. $as_echo "no - header/library version mismatch" >&6; } ;;
  3998. 3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - can't determine library version" >&5
  3999. $as_echo "no - can't determine library version" >&6; } ;;
  4000. 4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - too old" >&5
  4001. $as_echo "no - too old" >&6; } ;;
  4002. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4003. $as_echo "no" >&6; } ;;
  4004. esac
  4005. LIBS="$savedlibs"
  4006. fi
  4007. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4008. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4009. fi
  4010. fi
  4011. fi
  4012. fi
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the possibly-buggy SMB printer" >&5
  4014. $as_echo_n "checking whether to enable the possibly-buggy SMB printer... " >&6; }
  4015. # Check whether --enable-smb was given.
  4016. if test "${enable_smb+set}" = set; then :
  4017. enableval=$enable_smb;
  4018. else
  4019. enableval=yes
  4020. fi
  4021. case "$enableval" in
  4022. yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4023. $as_echo "yes" >&6; }
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
  4025. $as_echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
  4026. $as_echo "#define ENABLE_SMB 1" >>confdefs.h
  4027. LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
  4028. ;;
  4029. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4030. $as_echo "no" >&6; }
  4031. ;;
  4032. esac
  4033. # Check whether --with-user was given.
  4034. if test "${with_user+set}" = set; then :
  4035. withval=$with_user;
  4036. fi
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to drop root privileges by default" >&5
  4038. $as_echo_n "checking whether to drop root privileges by default... " >&6; }
  4039. if test ! -z "$with_user" ; then
  4040. cat >>confdefs.h <<_ACEOF
  4041. #define WITH_USER "$withval"
  4042. _ACEOF
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: to \"$withval\"" >&5
  4044. $as_echo "to \"$withval\"" >&6; }
  4045. else
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4047. $as_echo "no" >&6; }
  4048. fi
  4049. # Check whether --with-chroot was given.
  4050. if test "${with_chroot+set}" = set; then :
  4051. withval=$with_chroot;
  4052. fi
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to chroot" >&5
  4054. $as_echo_n "checking whether to chroot... " >&6; }
  4055. if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
  4056. cat >>confdefs.h <<_ACEOF
  4057. #define WITH_CHROOT "$withval"
  4058. _ACEOF
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: to \"$withval\"" >&5
  4060. $as_echo "to \"$withval\"" >&6; }
  4061. else
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4063. $as_echo "no" >&6; }
  4064. fi
  4065. # Check whether --with-sandbox-capsicum was given.
  4066. if test "${with_sandbox_capsicum+set}" = set; then :
  4067. withval=$with_sandbox_capsicum;
  4068. fi
  4069. #
  4070. # Check whether various functions are available. If any are, set
  4071. # ac_lbl_capsicum_function_seen to yes; if any are not, set
  4072. # ac_lbl_capsicum_function_not_seen to yes.
  4073. #
  4074. # We don't check cap_rights_init(), as it's a macro, wrapping another
  4075. # function, in at least some versions of FreeBSD, and AC_CHECK_FUNCS()
  4076. # doesn't handle that.
  4077. #
  4078. # All of the ones we check for must be available in order to enable
  4079. # capsicum sandboxing.
  4080. #
  4081. # XXX - do we need to check for all of them, or are there some that, if
  4082. # present, imply others are present?
  4083. #
  4084. if test ! -z "$with_sandbox-capsicum" && test "$with_sandbox-capsicum" != "no" ; then
  4085. for ac_func in cap_enter cap_rights_limit cap_ioctls_limit openat
  4086. do :
  4087. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4088. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4089. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4090. cat >>confdefs.h <<_ACEOF
  4091. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4092. _ACEOF
  4093. ac_lbl_capsicum_function_seen=yes
  4094. else
  4095. ac_lbl_capsicum_function_not_seen=yes
  4096. fi
  4097. done
  4098. fi
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to sandbox using capsicum" >&5
  4100. $as_echo_n "checking whether to sandbox using capsicum... " >&6; }
  4101. if test "x$ac_lbl_capsicum_function_seen" = "xyes" -a "x$ac_lbl_capsicum_function_not_seen" != "xyes"; then
  4102. $as_echo "#define HAVE_CAPSICUM 1" >>confdefs.h
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4104. $as_echo "yes" >&6; }
  4105. else
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4107. $as_echo "no" >&6; }
  4108. fi
  4109. #
  4110. # We must check this before checking whether to check the OS's IPv6,
  4111. # support because, on some platforms (such as SunOS 5.x), the test
  4112. # program requires the extra networking libraries.
  4113. #
  4114. # Most operating systems have gethostbyname() in the default searched
  4115. # libraries (i.e. libc):
  4116. # Some OSes (eg. Solaris) place it in libnsl
  4117. # Some strange OSes (SINIX) have it in libsocket:
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  4119. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  4120. if ${ac_cv_search_gethostbyname+:} false; then :
  4121. $as_echo_n "(cached) " >&6
  4122. else
  4123. ac_func_search_save_LIBS=$LIBS
  4124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4125. /* end confdefs.h. */
  4126. /* Override any GCC internal prototype to avoid an error.
  4127. Use char because int might match the return type of a GCC
  4128. builtin and then its argument prototype would still apply. */
  4129. #ifdef __cplusplus
  4130. extern "C"
  4131. #endif
  4132. char gethostbyname ();
  4133. int
  4134. main ()
  4135. {
  4136. return gethostbyname ();
  4137. ;
  4138. return 0;
  4139. }
  4140. _ACEOF
  4141. for ac_lib in '' nsl socket resolv; do
  4142. if test -z "$ac_lib"; then
  4143. ac_res="none required"
  4144. else
  4145. ac_res=-l$ac_lib
  4146. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4147. fi
  4148. if ac_fn_c_try_link "$LINENO"; then :
  4149. ac_cv_search_gethostbyname=$ac_res
  4150. fi
  4151. rm -f core conftest.err conftest.$ac_objext \
  4152. conftest$ac_exeext
  4153. if ${ac_cv_search_gethostbyname+:} false; then :
  4154. break
  4155. fi
  4156. done
  4157. if ${ac_cv_search_gethostbyname+:} false; then :
  4158. else
  4159. ac_cv_search_gethostbyname=no
  4160. fi
  4161. rm conftest.$ac_ext
  4162. LIBS=$ac_func_search_save_LIBS
  4163. fi
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  4165. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  4166. ac_res=$ac_cv_search_gethostbyname
  4167. if test "$ac_res" != no; then :
  4168. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4169. fi
  4170. # Unfortunately libsocket sometimes depends on libnsl and
  4171. # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
  4172. if test "$ac_cv_search_gethostbyname" = "no"
  4173. then
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
  4175. $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
  4176. if ${ac_cv_lib_socket_gethostbyname+:} false; then :
  4177. $as_echo_n "(cached) " >&6
  4178. else
  4179. ac_check_lib_save_LIBS=$LIBS
  4180. LIBS="-lsocket -lnsl $LIBS"
  4181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4182. /* end confdefs.h. */
  4183. /* Override any GCC internal prototype to avoid an error.
  4184. Use char because int might match the return type of a GCC
  4185. builtin and then its argument prototype would still apply. */
  4186. #ifdef __cplusplus
  4187. extern "C"
  4188. #endif
  4189. char gethostbyname ();
  4190. int
  4191. main ()
  4192. {
  4193. return gethostbyname ();
  4194. ;
  4195. return 0;
  4196. }
  4197. _ACEOF
  4198. if ac_fn_c_try_link "$LINENO"; then :
  4199. ac_cv_lib_socket_gethostbyname=yes
  4200. else
  4201. ac_cv_lib_socket_gethostbyname=no
  4202. fi
  4203. rm -f core conftest.err conftest.$ac_objext \
  4204. conftest$ac_exeext conftest.$ac_ext
  4205. LIBS=$ac_check_lib_save_LIBS
  4206. fi
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
  4208. $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
  4209. if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
  4210. LIBS="-lsocket -lnsl $LIBS"
  4211. fi
  4212. fi
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  4214. $as_echo_n "checking for library containing socket... " >&6; }
  4215. if ${ac_cv_search_socket+:} false; then :
  4216. $as_echo_n "(cached) " >&6
  4217. else
  4218. ac_func_search_save_LIBS=$LIBS
  4219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4220. /* end confdefs.h. */
  4221. /* Override any GCC internal prototype to avoid an error.
  4222. Use char because int might match the return type of a GCC
  4223. builtin and then its argument prototype would still apply. */
  4224. #ifdef __cplusplus
  4225. extern "C"
  4226. #endif
  4227. char socket ();
  4228. int
  4229. main ()
  4230. {
  4231. return socket ();
  4232. ;
  4233. return 0;
  4234. }
  4235. _ACEOF
  4236. for ac_lib in '' socket; do
  4237. if test -z "$ac_lib"; then
  4238. ac_res="none required"
  4239. else
  4240. ac_res=-l$ac_lib
  4241. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4242. fi
  4243. if ac_fn_c_try_link "$LINENO"; then :
  4244. ac_cv_search_socket=$ac_res
  4245. fi
  4246. rm -f core conftest.err conftest.$ac_objext \
  4247. conftest$ac_exeext
  4248. if ${ac_cv_search_socket+:} false; then :
  4249. break
  4250. fi
  4251. done
  4252. if ${ac_cv_search_socket+:} false; then :
  4253. else
  4254. ac_cv_search_socket=no
  4255. fi
  4256. rm conftest.$ac_ext
  4257. LIBS=$ac_func_search_save_LIBS
  4258. fi
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  4260. $as_echo "$ac_cv_search_socket" >&6; }
  4261. ac_res=$ac_cv_search_socket
  4262. if test "$ac_res" != no; then :
  4263. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4264. else
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4266. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4267. if ${ac_cv_lib_socket_socket+:} false; then :
  4268. $as_echo_n "(cached) " >&6
  4269. else
  4270. ac_check_lib_save_LIBS=$LIBS
  4271. LIBS="-lsocket -lnsl $LIBS"
  4272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4273. /* end confdefs.h. */
  4274. /* Override any GCC internal prototype to avoid an error.
  4275. Use char because int might match the return type of a GCC
  4276. builtin and then its argument prototype would still apply. */
  4277. #ifdef __cplusplus
  4278. extern "C"
  4279. #endif
  4280. char socket ();
  4281. int
  4282. main ()
  4283. {
  4284. return socket ();
  4285. ;
  4286. return 0;
  4287. }
  4288. _ACEOF
  4289. if ac_fn_c_try_link "$LINENO"; then :
  4290. ac_cv_lib_socket_socket=yes
  4291. else
  4292. ac_cv_lib_socket_socket=no
  4293. fi
  4294. rm -f core conftest.err conftest.$ac_objext \
  4295. conftest$ac_exeext conftest.$ac_ext
  4296. LIBS=$ac_check_lib_save_LIBS
  4297. fi
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4299. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4300. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4301. LIBS="-lsocket -lnsl $LIBS"
  4302. fi
  4303. fi
  4304. # DLPI needs putmsg under HPUX so test for -lstr while we're at it
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
  4306. $as_echo_n "checking for library containing putmsg... " >&6; }
  4307. if ${ac_cv_search_putmsg+:} false; then :
  4308. $as_echo_n "(cached) " >&6
  4309. else
  4310. ac_func_search_save_LIBS=$LIBS
  4311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4312. /* end confdefs.h. */
  4313. /* Override any GCC internal prototype to avoid an error.
  4314. Use char because int might match the return type of a GCC
  4315. builtin and then its argument prototype would still apply. */
  4316. #ifdef __cplusplus
  4317. extern "C"
  4318. #endif
  4319. char putmsg ();
  4320. int
  4321. main ()
  4322. {
  4323. return putmsg ();
  4324. ;
  4325. return 0;
  4326. }
  4327. _ACEOF
  4328. for ac_lib in '' str; do
  4329. if test -z "$ac_lib"; then
  4330. ac_res="none required"
  4331. else
  4332. ac_res=-l$ac_lib
  4333. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4334. fi
  4335. if ac_fn_c_try_link "$LINENO"; then :
  4336. ac_cv_search_putmsg=$ac_res
  4337. fi
  4338. rm -f core conftest.err conftest.$ac_objext \
  4339. conftest$ac_exeext
  4340. if ${ac_cv_search_putmsg+:} false; then :
  4341. break
  4342. fi
  4343. done
  4344. if ${ac_cv_search_putmsg+:} false; then :
  4345. else
  4346. ac_cv_search_putmsg=no
  4347. fi
  4348. rm conftest.$ac_ext
  4349. LIBS=$ac_func_search_save_LIBS
  4350. fi
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
  4352. $as_echo "$ac_cv_search_putmsg" >&6; }
  4353. ac_res=$ac_cv_search_putmsg
  4354. if test "$ac_res" != no; then :
  4355. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4356. fi
  4357. #
  4358. # Check whether AF_INET6 and struct in6_addr are defined.
  4359. # If they aren't both defined, we don't have sufficient OS
  4360. # support for IPv6, so we don't look for IPv6 support libraries,
  4361. # and we define AF_INET6 and struct in6_addr ourselves.
  4362. #
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports IPv6" >&5
  4364. $as_echo_n "checking whether the operating system supports IPv6... " >&6; }
  4365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4366. /* end confdefs.h. */
  4367. /* AF_INET6 available check */
  4368. #include <sys/types.h>
  4369. #include <sys/socket.h>
  4370. #include <netinet/in.h>
  4371. #ifdef AF_INET6
  4372. void
  4373. foo(struct in6_addr *addr)
  4374. {
  4375. memset(addr, 0, sizeof (struct in6_addr));
  4376. }
  4377. #else
  4378. #error "AF_INET6 not defined"
  4379. #endif
  4380. _ACEOF
  4381. if ac_fn_c_try_compile "$LINENO"; then :
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4383. $as_echo "yes" >&6; }
  4384. $as_echo "#define HAVE_OS_IPV6_SUPPORT 1" >>confdefs.h
  4385. ipv6=yes
  4386. else
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4388. $as_echo "no" >&6; }
  4389. ipv6=no
  4390. fi
  4391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4392. ipv6type=unknown
  4393. ipv6lib=none
  4394. ipv6trylibc=no
  4395. if test "$ipv6" = "yes"; then
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
  4397. $as_echo_n "checking ipv6 stack type... " >&6; }
  4398. for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
  4399. case $i in
  4400. inria)
  4401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4402. /* end confdefs.h. */
  4403. #include <netinet/in.h>
  4404. #ifdef IPV6_INRIA_VERSION
  4405. yes
  4406. #endif
  4407. _ACEOF
  4408. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4409. $EGREP "yes" >/dev/null 2>&1; then :
  4410. ipv6type=$i
  4411. fi
  4412. rm -f conftest*
  4413. ;;
  4414. kame)
  4415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4416. /* end confdefs.h. */
  4417. #include <netinet/in.h>
  4418. #ifdef __KAME__
  4419. yes
  4420. #endif
  4421. _ACEOF
  4422. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4423. $EGREP "yes" >/dev/null 2>&1; then :
  4424. ipv6type=$i;
  4425. ipv6lib=inet6;
  4426. ipv6libdir=/usr/local/v6/lib;
  4427. ipv6trylibc=yes
  4428. fi
  4429. rm -f conftest*
  4430. ;;
  4431. linux-glibc)
  4432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4433. /* end confdefs.h. */
  4434. #include <features.h>
  4435. #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
  4436. yes
  4437. #endif
  4438. _ACEOF
  4439. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4440. $EGREP "yes" >/dev/null 2>&1; then :
  4441. ipv6type=$i
  4442. fi
  4443. rm -f conftest*
  4444. ;;
  4445. linux-libinet6)
  4446. if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
  4447. ipv6type=$i
  4448. ipv6lib=inet6
  4449. ipv6libdir=/usr/inet6/lib
  4450. ipv6trylibc=yes;
  4451. CFLAGS="-I/usr/inet6/include $CFLAGS"
  4452. fi
  4453. ;;
  4454. toshiba)
  4455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4456. /* end confdefs.h. */
  4457. #include <sys/param.h>
  4458. #ifdef _TOSHIBA_INET6
  4459. yes
  4460. #endif
  4461. _ACEOF
  4462. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4463. $EGREP "yes" >/dev/null 2>&1; then :
  4464. ipv6type=$i;
  4465. ipv6lib=inet6;
  4466. ipv6libdir=/usr/local/v6/lib
  4467. fi
  4468. rm -f conftest*
  4469. ;;
  4470. v6d)
  4471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4472. /* end confdefs.h. */
  4473. #include </usr/local/v6/include/sys/v6config.h>
  4474. #ifdef __V6D__
  4475. yes
  4476. #endif
  4477. _ACEOF
  4478. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4479. $EGREP "yes" >/dev/null 2>&1; then :
  4480. ipv6type=$i;
  4481. ipv6lib=v6;
  4482. ipv6libdir=/usr/local/v6/lib;
  4483. CFLAGS="-I/usr/local/v6/include $CFLAGS"
  4484. fi
  4485. rm -f conftest*
  4486. ;;
  4487. zeta)
  4488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4489. /* end confdefs.h. */
  4490. #include <sys/param.h>
  4491. #ifdef _ZETA_MINAMI_INET6
  4492. yes
  4493. #endif
  4494. _ACEOF
  4495. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4496. $EGREP "yes" >/dev/null 2>&1; then :
  4497. ipv6type=$i;
  4498. ipv6lib=inet6;
  4499. ipv6libdir=/usr/local/v6/lib
  4500. fi
  4501. rm -f conftest*
  4502. ;;
  4503. esac
  4504. if test "$ipv6type" != "unknown"; then
  4505. break
  4506. fi
  4507. done
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
  4509. $as_echo "$ipv6type" >&6; }
  4510. fi
  4511. if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
  4512. if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
  4513. LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
  4514. echo "You have $ipv6lib library, using it"
  4515. else
  4516. if test "$ipv6trylibc" = "yes"; then
  4517. echo "You do not have $ipv6lib library, using libc"
  4518. else
  4519. echo 'Fatal: no $ipv6lib library found. cannot continue.'
  4520. echo "You need to fetch lib$ipv6lib.a from appropriate"
  4521. echo 'ipv6 kit and compile beforehand.'
  4522. exit 1
  4523. fi
  4524. fi
  4525. fi
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
  4527. $as_echo_n "checking for dnet_htoa declaration in netdnet/dnetdb.h... " >&6; }
  4528. if ${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+:} false; then :
  4529. $as_echo_n "(cached) " >&6
  4530. else
  4531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4532. /* end confdefs.h. */
  4533. #include <netdnet/dnetdb.h>
  4534. _ACEOF
  4535. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4536. $EGREP "dnet_htoa" >/dev/null 2>&1; then :
  4537. td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
  4538. else
  4539. td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
  4540. fi
  4541. rm -f conftest*
  4542. fi
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
  4544. $as_echo "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
  4545. if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
  4546. $as_echo "#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1" >>confdefs.h
  4547. fi
  4548. ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
  4549. if test "x$ac_cv_func_vfprintf" = xyes; then :
  4550. $as_echo "#define HAVE_VFPRINTF 1" >>confdefs.h
  4551. else
  4552. case " $LIBOBJS " in
  4553. *" vfprintf.$ac_objext "* ) ;;
  4554. *) LIBOBJS="$LIBOBJS vfprintf.$ac_objext"
  4555. ;;
  4556. esac
  4557. fi
  4558. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  4559. if test "x$ac_cv_func_strlcat" = xyes; then :
  4560. $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
  4561. else
  4562. case " $LIBOBJS " in
  4563. *" strlcat.$ac_objext "* ) ;;
  4564. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  4565. ;;
  4566. esac
  4567. fi
  4568. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  4569. if test "x$ac_cv_func_strlcpy" = xyes; then :
  4570. $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
  4571. else
  4572. case " $LIBOBJS " in
  4573. *" strlcpy.$ac_objext "* ) ;;
  4574. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  4575. ;;
  4576. esac
  4577. fi
  4578. ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
  4579. if test "x$ac_cv_func_strdup" = xyes; then :
  4580. $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
  4581. else
  4582. case " $LIBOBJS " in
  4583. *" strdup.$ac_objext "* ) ;;
  4584. *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
  4585. ;;
  4586. esac
  4587. fi
  4588. ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
  4589. if test "x$ac_cv_func_strsep" = xyes; then :
  4590. $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
  4591. else
  4592. case " $LIBOBJS " in
  4593. *" strsep.$ac_objext "* ) ;;
  4594. *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
  4595. ;;
  4596. esac
  4597. fi
  4598. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  4599. if test "x$ac_cv_func_getopt_long" = xyes; then :
  4600. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  4601. else
  4602. case " $LIBOBJS " in
  4603. *" getopt_long.$ac_objext "* ) ;;
  4604. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  4605. ;;
  4606. esac
  4607. fi
  4608. for ac_func in fork vfork strftime
  4609. do :
  4610. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4611. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4612. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4613. cat >>confdefs.h <<_ACEOF
  4614. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4615. _ACEOF
  4616. fi
  4617. done
  4618. for ac_func in setlinebuf alarm
  4619. do :
  4620. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4621. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4622. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4623. cat >>confdefs.h <<_ACEOF
  4624. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4625. _ACEOF
  4626. fi
  4627. done
  4628. needsnprintf=no
  4629. for ac_func in vsnprintf snprintf
  4630. do :
  4631. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4632. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4633. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4634. cat >>confdefs.h <<_ACEOF
  4635. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4636. _ACEOF
  4637. else
  4638. needsnprintf=yes
  4639. fi
  4640. done
  4641. if test $needsnprintf = yes; then
  4642. case " $LIBOBJS " in
  4643. *" snprintf.$ac_objext "* ) ;;
  4644. *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
  4645. ;;
  4646. esac
  4647. fi
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  4649. $as_echo_n "checking return type of signal handlers... " >&6; }
  4650. if ${ac_cv_type_signal+:} false; then :
  4651. $as_echo_n "(cached) " >&6
  4652. else
  4653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4654. /* end confdefs.h. */
  4655. #include <sys/types.h>
  4656. #include <signal.h>
  4657. int
  4658. main ()
  4659. {
  4660. return *(signal (0, 0)) (0) == 1;
  4661. ;
  4662. return 0;
  4663. }
  4664. _ACEOF
  4665. if ac_fn_c_try_compile "$LINENO"; then :
  4666. ac_cv_type_signal=int
  4667. else
  4668. ac_cv_type_signal=void
  4669. fi
  4670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4671. fi
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  4673. $as_echo "$ac_cv_type_signal" >&6; }
  4674. cat >>confdefs.h <<_ACEOF
  4675. #define RETSIGTYPE $ac_cv_type_signal
  4676. _ACEOF
  4677. if test "$ac_cv_type_signal" = void ; then
  4678. $as_echo "#define RETSIGVAL /**/" >>confdefs.h
  4679. else
  4680. $as_echo "#define RETSIGVAL (0)" >>confdefs.h
  4681. fi
  4682. case "$host_os" in
  4683. irix*)
  4684. $as_echo "#define _BSD_SIGNALS 1" >>confdefs.h
  4685. ;;
  4686. *)
  4687. for ac_func in sigaction
  4688. do :
  4689. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  4690. if test "x$ac_cv_func_sigaction" = xyes; then :
  4691. cat >>confdefs.h <<_ACEOF
  4692. #define HAVE_SIGACTION 1
  4693. _ACEOF
  4694. fi
  4695. done
  4696. if test $ac_cv_func_sigaction = no ; then
  4697. for ac_func in sigset
  4698. do :
  4699. ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
  4700. if test "x$ac_cv_func_sigset" = xyes; then :
  4701. cat >>confdefs.h <<_ACEOF
  4702. #define HAVE_SIGSET 1
  4703. _ACEOF
  4704. fi
  4705. done
  4706. fi
  4707. ;;
  4708. esac
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dnet_htoa" >&5
  4710. $as_echo_n "checking for library containing dnet_htoa... " >&6; }
  4711. if ${ac_cv_search_dnet_htoa+:} false; then :
  4712. $as_echo_n "(cached) " >&6
  4713. else
  4714. ac_func_search_save_LIBS=$LIBS
  4715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4716. /* end confdefs.h. */
  4717. /* Override any GCC internal prototype to avoid an error.
  4718. Use char because int might match the return type of a GCC
  4719. builtin and then its argument prototype would still apply. */
  4720. #ifdef __cplusplus
  4721. extern "C"
  4722. #endif
  4723. char dnet_htoa ();
  4724. int
  4725. main ()
  4726. {
  4727. return dnet_htoa ();
  4728. ;
  4729. return 0;
  4730. }
  4731. _ACEOF
  4732. for ac_lib in '' dnet; do
  4733. if test -z "$ac_lib"; then
  4734. ac_res="none required"
  4735. else
  4736. ac_res=-l$ac_lib
  4737. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4738. fi
  4739. if ac_fn_c_try_link "$LINENO"; then :
  4740. ac_cv_search_dnet_htoa=$ac_res
  4741. fi
  4742. rm -f core conftest.err conftest.$ac_objext \
  4743. conftest$ac_exeext
  4744. if ${ac_cv_search_dnet_htoa+:} false; then :
  4745. break
  4746. fi
  4747. done
  4748. if ${ac_cv_search_dnet_htoa+:} false; then :
  4749. else
  4750. ac_cv_search_dnet_htoa=no
  4751. fi
  4752. rm conftest.$ac_ext
  4753. LIBS=$ac_func_search_save_LIBS
  4754. fi
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dnet_htoa" >&5
  4756. $as_echo "$ac_cv_search_dnet_htoa" >&6; }
  4757. ac_res=$ac_cv_search_dnet_htoa
  4758. if test "$ac_res" != no; then :
  4759. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4760. $as_echo "#define HAVE_DNET_HTOA 1" >>confdefs.h
  4761. fi
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrpc" >&5
  4763. $as_echo_n "checking for main in -lrpc... " >&6; }
  4764. if ${ac_cv_lib_rpc_main+:} false; then :
  4765. $as_echo_n "(cached) " >&6
  4766. else
  4767. ac_check_lib_save_LIBS=$LIBS
  4768. LIBS="-lrpc $LIBS"
  4769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4770. /* end confdefs.h. */
  4771. int
  4772. main ()
  4773. {
  4774. return main ();
  4775. ;
  4776. return 0;
  4777. }
  4778. _ACEOF
  4779. if ac_fn_c_try_link "$LINENO"; then :
  4780. ac_cv_lib_rpc_main=yes
  4781. else
  4782. ac_cv_lib_rpc_main=no
  4783. fi
  4784. rm -f core conftest.err conftest.$ac_objext \
  4785. conftest$ac_exeext conftest.$ac_ext
  4786. LIBS=$ac_check_lib_save_LIBS
  4787. fi
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_main" >&5
  4789. $as_echo "$ac_cv_lib_rpc_main" >&6; }
  4790. if test "x$ac_cv_lib_rpc_main" = xyes; then :
  4791. cat >>confdefs.h <<_ACEOF
  4792. #define HAVE_LIBRPC 1
  4793. _ACEOF
  4794. LIBS="-lrpc $LIBS"
  4795. fi
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrpcbynumber" >&5
  4797. $as_echo_n "checking for library containing getrpcbynumber... " >&6; }
  4798. if ${ac_cv_search_getrpcbynumber+:} false; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. ac_func_search_save_LIBS=$LIBS
  4802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4803. /* end confdefs.h. */
  4804. /* Override any GCC internal prototype to avoid an error.
  4805. Use char because int might match the return type of a GCC
  4806. builtin and then its argument prototype would still apply. */
  4807. #ifdef __cplusplus
  4808. extern "C"
  4809. #endif
  4810. char getrpcbynumber ();
  4811. int
  4812. main ()
  4813. {
  4814. return getrpcbynumber ();
  4815. ;
  4816. return 0;
  4817. }
  4818. _ACEOF
  4819. for ac_lib in '' nsl; do
  4820. if test -z "$ac_lib"; then
  4821. ac_res="none required"
  4822. else
  4823. ac_res=-l$ac_lib
  4824. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4825. fi
  4826. if ac_fn_c_try_link "$LINENO"; then :
  4827. ac_cv_search_getrpcbynumber=$ac_res
  4828. fi
  4829. rm -f core conftest.err conftest.$ac_objext \
  4830. conftest$ac_exeext
  4831. if ${ac_cv_search_getrpcbynumber+:} false; then :
  4832. break
  4833. fi
  4834. done
  4835. if ${ac_cv_search_getrpcbynumber+:} false; then :
  4836. else
  4837. ac_cv_search_getrpcbynumber=no
  4838. fi
  4839. rm conftest.$ac_ext
  4840. LIBS=$ac_func_search_save_LIBS
  4841. fi
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrpcbynumber" >&5
  4843. $as_echo "$ac_cv_search_getrpcbynumber" >&6; }
  4844. ac_res=$ac_cv_search_getrpcbynumber
  4845. if test "$ac_res" != no; then :
  4846. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4847. $as_echo "#define HAVE_GETRPCBYNUMBER 1" >>confdefs.h
  4848. fi
  4849. LBL_LIBS="$LIBS"
  4850. pfopen=/usr/examples/packetfilter/pfopen.c
  4851. if test -f $pfopen ; then
  4852. for ac_func in pfopen
  4853. do :
  4854. ac_fn_c_check_func "$LINENO" "pfopen" "ac_cv_func_pfopen"
  4855. if test "x$ac_cv_func_pfopen" = xyes; then :
  4856. cat >>confdefs.h <<_ACEOF
  4857. #define HAVE_PFOPEN 1
  4858. _ACEOF
  4859. fi
  4860. done
  4861. if test $ac_cv_func_pfopen = "no" ; then
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5
  4863. $as_echo "Using $pfopen" >&6; }
  4864. LIBS="$LIBS $pfopen"
  4865. fi
  4866. fi
  4867. libpcap=FAIL
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5
  4869. $as_echo_n "checking for local pcap library... " >&6; }
  4870. # Check whether --with-system-libpcap was given.
  4871. if test "${with_system_libpcap+set}" = set; then :
  4872. withval=$with_system_libpcap;
  4873. fi
  4874. if test "x$with_system_libpcap" != xyes ; then
  4875. lastdir=FAIL
  4876. places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
  4877. egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
  4878. places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
  4879. egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
  4880. for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do
  4881. basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
  4882. sed -e 's/-PRE-GIT$//' `
  4883. if test $lastdir = $basedir ; then
  4884. continue;
  4885. fi
  4886. lastdir=$dir
  4887. if test -r $dir/libpcap.a ; then
  4888. libpcap=$dir/libpcap.a
  4889. d=$dir
  4890. fi
  4891. done
  4892. fi
  4893. if test $libpcap = FAIL ; then
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  4895. $as_echo "not found" >&6; }
  4896. #
  4897. # Look for pcap-config.
  4898. #
  4899. if test -n "$ac_tool_prefix"; then
  4900. # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
  4901. set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4903. $as_echo_n "checking for $ac_word... " >&6; }
  4904. if ${ac_cv_path_PCAP_CONFIG+:} false; then :
  4905. $as_echo_n "(cached) " >&6
  4906. else
  4907. case $PCAP_CONFIG in
  4908. [\\/]* | ?:[\\/]*)
  4909. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  4910. ;;
  4911. *)
  4912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4913. for as_dir in $PATH
  4914. do
  4915. IFS=$as_save_IFS
  4916. test -z "$as_dir" && as_dir=.
  4917. for ac_exec_ext in '' $ac_executable_extensions; do
  4918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4919. ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4921. break 2
  4922. fi
  4923. done
  4924. done
  4925. IFS=$as_save_IFS
  4926. ;;
  4927. esac
  4928. fi
  4929. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  4930. if test -n "$PCAP_CONFIG"; then
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  4932. $as_echo "$PCAP_CONFIG" >&6; }
  4933. else
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4935. $as_echo "no" >&6; }
  4936. fi
  4937. fi
  4938. if test -z "$ac_cv_path_PCAP_CONFIG"; then
  4939. ac_pt_PCAP_CONFIG=$PCAP_CONFIG
  4940. # Extract the first word of "pcap-config", so it can be a program name with args.
  4941. set dummy pcap-config; ac_word=$2
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4943. $as_echo_n "checking for $ac_word... " >&6; }
  4944. if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
  4945. $as_echo_n "(cached) " >&6
  4946. else
  4947. case $ac_pt_PCAP_CONFIG in
  4948. [\\/]* | ?:[\\/]*)
  4949. ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
  4950. ;;
  4951. *)
  4952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4953. for as_dir in $PATH
  4954. do
  4955. IFS=$as_save_IFS
  4956. test -z "$as_dir" && as_dir=.
  4957. for ac_exec_ext in '' $ac_executable_extensions; do
  4958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4959. ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4961. break 2
  4962. fi
  4963. done
  4964. done
  4965. IFS=$as_save_IFS
  4966. ;;
  4967. esac
  4968. fi
  4969. ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
  4970. if test -n "$ac_pt_PCAP_CONFIG"; then
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
  4972. $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
  4973. else
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4975. $as_echo "no" >&6; }
  4976. fi
  4977. if test "x$ac_pt_PCAP_CONFIG" = x; then
  4978. PCAP_CONFIG=""
  4979. else
  4980. case $cross_compiling:$ac_tool_warned in
  4981. yes:)
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4983. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4984. ac_tool_warned=yes ;;
  4985. esac
  4986. PCAP_CONFIG=$ac_pt_PCAP_CONFIG
  4987. fi
  4988. else
  4989. PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
  4990. fi
  4991. if test -n "$PCAP_CONFIG" ; then
  4992. #
  4993. # Found - use it to get the include flags for
  4994. # libpcap and the flags to link with libpcap.
  4995. #
  4996. # Please read section 11.6 "Shell Substitutions"
  4997. # in the autoconf manual before doing anything
  4998. # to this that involves quoting. Especially note
  4999. # the statement "There is just no portable way to use
  5000. # double-quoted strings inside double-quoted back-quoted
  5001. # expressions (pfew!)."
  5002. #
  5003. cflags=`"$PCAP_CONFIG" --cflags`
  5004. V_INCLS="$cflags $V_INCLS"
  5005. libpcap=`"$PCAP_CONFIG" --libs`
  5006. else
  5007. #
  5008. # Not found; look for pcap.
  5009. #
  5010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpcap" >&5
  5011. $as_echo_n "checking for main in -lpcap... " >&6; }
  5012. if ${ac_cv_lib_pcap_main+:} false; then :
  5013. $as_echo_n "(cached) " >&6
  5014. else
  5015. ac_check_lib_save_LIBS=$LIBS
  5016. LIBS="-lpcap $LIBS"
  5017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5018. /* end confdefs.h. */
  5019. int
  5020. main ()
  5021. {
  5022. return main ();
  5023. ;
  5024. return 0;
  5025. }
  5026. _ACEOF
  5027. if ac_fn_c_try_link "$LINENO"; then :
  5028. ac_cv_lib_pcap_main=yes
  5029. else
  5030. ac_cv_lib_pcap_main=no
  5031. fi
  5032. rm -f core conftest.err conftest.$ac_objext \
  5033. conftest$ac_exeext conftest.$ac_ext
  5034. LIBS=$ac_check_lib_save_LIBS
  5035. fi
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_main" >&5
  5037. $as_echo "$ac_cv_lib_pcap_main" >&6; }
  5038. if test "x$ac_cv_lib_pcap_main" = xyes; then :
  5039. libpcap="-lpcap"
  5040. fi
  5041. if test $libpcap = FAIL ; then
  5042. as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
  5043. fi
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5
  5045. $as_echo_n "checking for extraneous pcap header directories... " >&6; }
  5046. if test \( ! -r /usr/local/include/pcap.h \) -a \
  5047. \( ! -r /usr/include/pcap.h \); then
  5048. if test -r /usr/local/include/pcap/pcap.h; then
  5049. d="/usr/local/include/pcap"
  5050. elif test -r /usr/include/pcap/pcap.h; then
  5051. d="/usr/include/pcap"
  5052. fi
  5053. fi
  5054. if test -z "$d" ; then
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5056. $as_echo "not found" >&6; }
  5057. else
  5058. V_INCLS="-I$d $V_INCLS"
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found -- -I$d added" >&5
  5060. $as_echo "found -- -I$d added" >&6; }
  5061. fi
  5062. fi
  5063. else
  5064. V_PCAPDEP=$libpcap
  5065. places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
  5066. egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
  5067. places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
  5068. egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
  5069. pcapH=FAIL
  5070. if test -r $d/pcap.h; then
  5071. pcapH=$d
  5072. else
  5073. for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do
  5074. if test -r $dir/pcap.h ; then
  5075. pcapH=$dir
  5076. fi
  5077. done
  5078. fi
  5079. if test $pcapH = FAIL ; then
  5080. as_fn_error $? "cannot find pcap.h: see INSTALL" "$LINENO" 5
  5081. fi
  5082. V_INCLS="-I$pcapH $V_INCLS"
  5083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpcap" >&5
  5084. $as_echo "$libpcap" >&6; }
  5085. # Extract the first word of "pcap-config", so it can be a program name with args.
  5086. set dummy pcap-config; ac_word=$2
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5088. $as_echo_n "checking for $ac_word... " >&6; }
  5089. if ${ac_cv_path_PCAP_CONFIG+:} false; then :
  5090. $as_echo_n "(cached) " >&6
  5091. else
  5092. case $PCAP_CONFIG in
  5093. [\\/]* | ?:[\\/]*)
  5094. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  5095. ;;
  5096. *)
  5097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5098. for as_dir in $d
  5099. do
  5100. IFS=$as_save_IFS
  5101. test -z "$as_dir" && as_dir=.
  5102. for ac_exec_ext in '' $ac_executable_extensions; do
  5103. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5104. ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5106. break 2
  5107. fi
  5108. done
  5109. done
  5110. IFS=$as_save_IFS
  5111. ;;
  5112. esac
  5113. fi
  5114. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  5115. if test -n "$PCAP_CONFIG"; then
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  5117. $as_echo "$PCAP_CONFIG" >&6; }
  5118. else
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5120. $as_echo "no" >&6; }
  5121. fi
  5122. if test -n "$PCAP_CONFIG"; then
  5123. #
  5124. # The libpcap directory has a pcap-config script.
  5125. # Use it to get any additioal libraries needed
  5126. # to link with the libpcap archive library in
  5127. # that directory.
  5128. #
  5129. # Please read section 11.6 "Shell Substitutions"
  5130. # in the autoconf manual before doing anything
  5131. # to this that involves quoting. Especially note
  5132. # the statement "There is just no portable way to use
  5133. # double-quoted strings inside double-quoted back-quoted
  5134. # expressions (pfew!)."
  5135. #
  5136. additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
  5137. libpcap="$libpcap $additional_libs"
  5138. fi
  5139. fi
  5140. LIBS="$libpcap $LIBS"
  5141. if ! test -n "$PCAP_CONFIG" ; then
  5142. #
  5143. # We don't have pcap-config; find out any additional link flags
  5144. # we need. (If we have pcap-config, we assume it tells us what
  5145. # we need.)
  5146. #
  5147. case "$host_os" in
  5148. aix*)
  5149. #
  5150. # If libpcap is DLPI-based, we have to use /lib/pse.exp if
  5151. # present, as we use the STREAMS routines.
  5152. #
  5153. # (XXX - true only if we're linking with a static libpcap?)
  5154. #
  5155. pseexe="/lib/pse.exp"
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
  5157. $as_echo_n "checking for $pseexe... " >&6; }
  5158. if test -f $pseexe ; then
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5160. $as_echo "yes" >&6; }
  5161. LIBS="$LIBS -I:$pseexe"
  5162. fi
  5163. #
  5164. # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
  5165. # we use them to load the BPF module.
  5166. #
  5167. # (XXX - true only if we're linking with a static libpcap?)
  5168. #
  5169. LIBS="$LIBS -lodm -lcfg"
  5170. ;;
  5171. esac
  5172. fi
  5173. ac_fn_c_check_func "$LINENO" "pcap_loop" "ac_cv_func_pcap_loop"
  5174. if test "x$ac_cv_func_pcap_loop" = xyes; then :
  5175. else
  5176. as_fn_error $? "This is a bug, please follow the guidelines in CONTRIBUTING and include the
  5177. config.log file in your report. If you have downloaded libpcap from
  5178. tcpdump.org, and built it yourself, please also include the config.log
  5179. file from the libpcap source directory, the Makefile from the libpcap
  5180. source directory, and the output of the make process for libpcap, as
  5181. this could be a problem with the libpcap that was built, and we will
  5182. not be able to determine why this is happening, and thus will not be
  5183. able to fix it, without that information, as we have not been able to
  5184. reproduce this problem ourselves." "$LINENO" 5
  5185. fi
  5186. #
  5187. # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
  5188. # libraries (e.g., "-lsocket -lnsl" on Solaris).
  5189. #
  5190. # You are in a twisty little maze of UN*Xes, all different.
  5191. # Some might not have ether_ntohost().
  5192. # Some might have it, but not declare it in any header file.
  5193. # Some might have it, but declare it in <netinet/if_ether.h>.
  5194. # Some might have it, but declare it in <netinet/ether.h>
  5195. # (And some might have it but document it as something declared in
  5196. # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
  5197. #
  5198. # Before you is a C compiler.
  5199. #
  5200. for ac_func in ether_ntohost
  5201. do :
  5202. ac_fn_c_check_func "$LINENO" "ether_ntohost" "ac_cv_func_ether_ntohost"
  5203. if test "x$ac_cv_func_ether_ntohost" = xyes; then :
  5204. cat >>confdefs.h <<_ACEOF
  5205. #define HAVE_ETHER_NTOHOST 1
  5206. _ACEOF
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy ether_ntohost" >&5
  5208. $as_echo_n "checking for buggy ether_ntohost... " >&6; }
  5209. if ${ac_cv_buggy_ether_ntohost+:} false; then :
  5210. $as_echo_n "(cached) " >&6
  5211. else
  5212. if test "$cross_compiling" = yes; then :
  5213. ac_cv_buggy_ether_ntohost="not while cross-compiling"
  5214. else
  5215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5216. /* end confdefs.h. */
  5217. #include <netdb.h>
  5218. #include <sys/types.h>
  5219. #include <sys/param.h>
  5220. #include <sys/socket.h>
  5221. int
  5222. main(int argc, char **argv)
  5223. {
  5224. u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
  5225. char name[MAXHOSTNAMELEN];
  5226. ether_ntohost(name, (struct ether_addr *)ea);
  5227. exit(0);
  5228. }
  5229. _ACEOF
  5230. if ac_fn_c_try_run "$LINENO"; then :
  5231. ac_cv_buggy_ether_ntohost=no
  5232. else
  5233. ac_cv_buggy_ether_ntohost=yes
  5234. fi
  5235. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5236. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5237. fi
  5238. fi
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_ether_ntohost" >&5
  5240. $as_echo "$ac_cv_buggy_ether_ntohost" >&6; }
  5241. if test "$ac_cv_buggy_ether_ntohost" = "no"; then
  5242. $as_echo "#define USE_ETHER_NTOHOST 1" >>confdefs.h
  5243. fi
  5244. fi
  5245. done
  5246. if test "$ac_cv_func_ether_ntohost" = yes -a \
  5247. "$ac_cv_buggy_ether_ntohost" = "no"; then
  5248. #
  5249. # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
  5250. #
  5251. if test "$ac_cv_header_netinet_if_ether_h" = yes; then
  5252. #
  5253. # Yes. Does it declare ether_ntohost()?
  5254. #
  5255. ac_fn_c_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
  5256. #include <sys/types.h>
  5257. #include <sys/socket.h>
  5258. #include <netinet/in.h>
  5259. #include <arpa/inet.h>
  5260. struct mbuf;
  5261. struct rtentry;
  5262. #include <net/if.h>
  5263. #include <netinet/if_ether.h>
  5264. "
  5265. if test "x$ac_cv_have_decl_ether_ntohost" = xyes; then :
  5266. $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
  5267. fi
  5268. fi
  5269. #
  5270. # Did that succeed?
  5271. #
  5272. if test "$ac_cv_have_decl_ether_ntohost" != yes; then
  5273. #
  5274. # No, how about <netinet/ether.h>, as on Linux?
  5275. #
  5276. for ac_header in netinet/ether.h
  5277. do :
  5278. ac_fn_c_check_header_mongrel "$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
  5279. if test "x$ac_cv_header_netinet_ether_h" = xyes; then :
  5280. cat >>confdefs.h <<_ACEOF
  5281. #define HAVE_NETINET_ETHER_H 1
  5282. _ACEOF
  5283. fi
  5284. done
  5285. if test "$ac_cv_header_netinet_ether_h" = yes; then
  5286. #
  5287. # We have it - does it declare ether_ntohost()?
  5288. # Unset ac_cv_have_decl_ether_ntohost so we don't
  5289. # treat the previous failure as a cached value and
  5290. # suppress the next test.
  5291. #
  5292. unset ac_cv_have_decl_ether_ntohost
  5293. ac_fn_c_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" "
  5294. #include <netinet/ether.h>
  5295. "
  5296. if test "x$ac_cv_have_decl_ether_ntohost" = xyes; then :
  5297. $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h
  5298. fi
  5299. fi
  5300. fi
  5301. #
  5302. # Is ether_ntohost() declared?
  5303. #
  5304. if test "$ac_cv_have_decl_ether_ntohost" != yes; then
  5305. #
  5306. # No, we'll have to declare it ourselves.
  5307. # Do we have "struct ether_addr"?
  5308. #
  5309. ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
  5310. #include <sys/types.h>
  5311. #include <sys/socket.h>
  5312. #include <netinet/in.h>
  5313. #include <arpa/inet.h>
  5314. struct mbuf;
  5315. struct rtentry;
  5316. #include <net/if.h>
  5317. #include <netinet/if_ether.h>
  5318. "
  5319. if test "x$ac_cv_type_struct_ether_addr" = xyes; then :
  5320. cat >>confdefs.h <<_ACEOF
  5321. #define HAVE_STRUCT_ETHER_ADDR 1
  5322. _ACEOF
  5323. fi
  5324. $as_echo "#define HAVE_DECL_ETHER_NTOHOST 0" >>confdefs.h
  5325. else
  5326. $as_echo "#define HAVE_DECL_ETHER_NTOHOST 1" >>confdefs.h
  5327. fi
  5328. fi
  5329. # libdlpi is needed for Solaris 11 and later.
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
  5331. $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
  5332. if ${ac_cv_lib_dlpi_dlpi_walk+:} false; then :
  5333. $as_echo_n "(cached) " >&6
  5334. else
  5335. ac_check_lib_save_LIBS=$LIBS
  5336. LIBS="-ldlpi -L/lib $LIBS"
  5337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5338. /* end confdefs.h. */
  5339. /* Override any GCC internal prototype to avoid an error.
  5340. Use char because int might match the return type of a GCC
  5341. builtin and then its argument prototype would still apply. */
  5342. #ifdef __cplusplus
  5343. extern "C"
  5344. #endif
  5345. char dlpi_walk ();
  5346. int
  5347. main ()
  5348. {
  5349. return dlpi_walk ();
  5350. ;
  5351. return 0;
  5352. }
  5353. _ACEOF
  5354. if ac_fn_c_try_link "$LINENO"; then :
  5355. ac_cv_lib_dlpi_dlpi_walk=yes
  5356. else
  5357. ac_cv_lib_dlpi_dlpi_walk=no
  5358. fi
  5359. rm -f core conftest.err conftest.$ac_objext \
  5360. conftest$ac_exeext conftest.$ac_ext
  5361. LIBS=$ac_check_lib_save_LIBS
  5362. fi
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
  5364. $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
  5365. if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes; then :
  5366. LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
  5367. fi
  5368. ac_fn_c_check_func "$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks"
  5369. if test "x$ac_cv_func_pcap_list_datalinks" = xyes; then :
  5370. $as_echo "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h
  5371. for ac_func in pcap_free_datalinks
  5372. do :
  5373. ac_fn_c_check_func "$LINENO" "pcap_free_datalinks" "ac_cv_func_pcap_free_datalinks"
  5374. if test "x$ac_cv_func_pcap_free_datalinks" = xyes; then :
  5375. cat >>confdefs.h <<_ACEOF
  5376. #define HAVE_PCAP_FREE_DATALINKS 1
  5377. _ACEOF
  5378. fi
  5379. done
  5380. else
  5381. case " $LIBOBJS " in
  5382. *" datalinks.$ac_objext "* ) ;;
  5383. *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
  5384. ;;
  5385. esac
  5386. fi
  5387. for ac_func in pcap_set_datalink
  5388. do :
  5389. ac_fn_c_check_func "$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink"
  5390. if test "x$ac_cv_func_pcap_set_datalink" = xyes; then :
  5391. cat >>confdefs.h <<_ACEOF
  5392. #define HAVE_PCAP_SET_DATALINK 1
  5393. _ACEOF
  5394. fi
  5395. done
  5396. ac_fn_c_check_func "$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val"
  5397. if test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes; then :
  5398. $as_echo "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h
  5399. ac_fn_c_check_func "$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description"
  5400. if test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes; then :
  5401. $as_echo "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h
  5402. else
  5403. case " $LIBOBJS " in
  5404. *" dlnames.$ac_objext "* ) ;;
  5405. *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
  5406. ;;
  5407. esac
  5408. fi
  5409. else
  5410. case " $LIBOBJS " in
  5411. *" dlnames.$ac_objext "* ) ;;
  5412. *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
  5413. ;;
  5414. esac
  5415. fi
  5416. for ac_func in pcap_breakloop
  5417. do :
  5418. ac_fn_c_check_func "$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop"
  5419. if test "x$ac_cv_func_pcap_breakloop" = xyes; then :
  5420. cat >>confdefs.h <<_ACEOF
  5421. #define HAVE_PCAP_BREAKLOOP 1
  5422. _ACEOF
  5423. fi
  5424. done
  5425. ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell"
  5426. if test "x$ac_cv_func_pcap_dump_ftell" = xyes; then :
  5427. $as_echo "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h
  5428. else
  5429. case " $LIBOBJS " in
  5430. *" pcap_dump_ftell.$ac_objext "* ) ;;
  5431. *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
  5432. ;;
  5433. esac
  5434. fi
  5435. #
  5436. # Do we have the new open API? Check for pcap_create, and assume that,
  5437. # if we do, we also have pcap_activate() and the other new routines
  5438. # introduced in libpcap 1.0.0.
  5439. #
  5440. for ac_func in pcap_create
  5441. do :
  5442. ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create"
  5443. if test "x$ac_cv_func_pcap_create" = xyes; then :
  5444. cat >>confdefs.h <<_ACEOF
  5445. #define HAVE_PCAP_CREATE 1
  5446. _ACEOF
  5447. fi
  5448. done
  5449. if test $ac_cv_func_pcap_create = "yes" ; then
  5450. #
  5451. # OK, do we have pcap_set_tstamp_type? If so, assume we have
  5452. # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
  5453. #
  5454. for ac_func in pcap_set_tstamp_type
  5455. do :
  5456. ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_type" "ac_cv_func_pcap_set_tstamp_type"
  5457. if test "x$ac_cv_func_pcap_set_tstamp_type" = xyes; then :
  5458. cat >>confdefs.h <<_ACEOF
  5459. #define HAVE_PCAP_SET_TSTAMP_TYPE 1
  5460. _ACEOF
  5461. fi
  5462. done
  5463. #
  5464. # And do we have pcap_set_tstamp_precision? If so, we assume
  5465. # we also have pcap_open_offline_with_tstamp_precision.
  5466. #
  5467. for ac_func in pcap_set_tstamp_precision
  5468. do :
  5469. ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_precision" "ac_cv_func_pcap_set_tstamp_precision"
  5470. if test "x$ac_cv_func_pcap_set_tstamp_precision" = xyes; then :
  5471. cat >>confdefs.h <<_ACEOF
  5472. #define HAVE_PCAP_SET_TSTAMP_PRECISION 1
  5473. _ACEOF
  5474. fi
  5475. done
  5476. fi
  5477. #
  5478. # Check for a miscellaneous collection of functions which we use
  5479. # if we have them.
  5480. #
  5481. for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version pcap_setdirection pcap_set_immediate_mode
  5482. do :
  5483. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5484. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5485. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5486. cat >>confdefs.h <<_ACEOF
  5487. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5488. _ACEOF
  5489. fi
  5490. done
  5491. if test $ac_cv_func_pcap_findalldevs = "yes" ; then
  5492. savedcppflags="$CPPFLAGS"
  5493. CPPFLAGS="$CPPFLAGS $V_INCLS"
  5494. ac_fn_c_check_type "$LINENO" "pcap_if_t" "ac_cv_type_pcap_if_t" "#include <pcap.h>
  5495. "
  5496. if test "x$ac_cv_type_pcap_if_t" = xyes; then :
  5497. cat >>confdefs.h <<_ACEOF
  5498. #define HAVE_PCAP_IF_T 1
  5499. _ACEOF
  5500. fi
  5501. CPPFLAGS="$savedcppflags"
  5502. fi
  5503. if test $ac_cv_func_pcap_lib_version = "no" ; then
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_version is defined by libpcap" >&5
  5505. $as_echo_n "checking whether pcap_version is defined by libpcap... " >&6; }
  5506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5507. /* end confdefs.h. */
  5508. int
  5509. main ()
  5510. {
  5511. extern char pcap_version[];
  5512. return (int)pcap_version;
  5513. ;
  5514. return 0;
  5515. }
  5516. _ACEOF
  5517. if ac_fn_c_try_link "$LINENO"; then :
  5518. ac_lbl_cv_pcap_version_defined=yes
  5519. else
  5520. ac_lbl_cv_pcap_version_defined=no
  5521. fi
  5522. rm -f core conftest.err conftest.$ac_objext \
  5523. conftest$ac_exeext conftest.$ac_ext
  5524. if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5526. $as_echo "yes" >&6; }
  5527. $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  5528. else
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5530. $as_echo "no" >&6; }
  5531. fi
  5532. fi
  5533. #
  5534. # Check for special debugging functions
  5535. #
  5536. for ac_func in pcap_set_parser_debug
  5537. do :
  5538. ac_fn_c_check_func "$LINENO" "pcap_set_parser_debug" "ac_cv_func_pcap_set_parser_debug"
  5539. if test "x$ac_cv_func_pcap_set_parser_debug" = xyes; then :
  5540. cat >>confdefs.h <<_ACEOF
  5541. #define HAVE_PCAP_SET_PARSER_DEBUG 1
  5542. _ACEOF
  5543. fi
  5544. done
  5545. if test "$ac_cv_func_pcap_set_parser_debug" = "no" ; then
  5546. #
  5547. # OK, we don't have pcap_set_parser_debug() to set the libpcap
  5548. # filter expression parser debug flag; can we directly set the
  5549. # flag?
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5
  5551. $as_echo_n "checking whether pcap_debug is defined by libpcap... " >&6; }
  5552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5553. /* end confdefs.h. */
  5554. int
  5555. main ()
  5556. {
  5557. extern int pcap_debug;
  5558. return pcap_debug;
  5559. ;
  5560. return 0;
  5561. }
  5562. _ACEOF
  5563. if ac_fn_c_try_link "$LINENO"; then :
  5564. ac_lbl_cv_pcap_debug_defined=yes
  5565. else
  5566. ac_lbl_cv_pcap_debug_defined=no
  5567. fi
  5568. rm -f core conftest.err conftest.$ac_objext \
  5569. conftest$ac_exeext conftest.$ac_ext
  5570. if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5572. $as_echo "yes" >&6; }
  5573. $as_echo "#define HAVE_PCAP_DEBUG 1" >>confdefs.h
  5574. else
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5576. $as_echo "no" >&6; }
  5577. #
  5578. # OK, what about "yydebug"?
  5579. #
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5
  5581. $as_echo_n "checking whether yydebug is defined by libpcap... " >&6; }
  5582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5583. /* end confdefs.h. */
  5584. int
  5585. main ()
  5586. {
  5587. extern int yydebug;
  5588. return yydebug;
  5589. ;
  5590. return 0;
  5591. }
  5592. _ACEOF
  5593. if ac_fn_c_try_link "$LINENO"; then :
  5594. ac_lbl_cv_yydebug_defined=yes
  5595. else
  5596. ac_lbl_cv_yydebug_defined=no
  5597. fi
  5598. rm -f core conftest.err conftest.$ac_objext \
  5599. conftest$ac_exeext conftest.$ac_ext
  5600. if test "$ac_lbl_cv_yydebug_defined" = yes ; then
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5602. $as_echo "yes" >&6; }
  5603. $as_echo "#define HAVE_YYDEBUG 1" >>confdefs.h
  5604. else
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5606. $as_echo "no" >&6; }
  5607. fi
  5608. fi
  5609. fi
  5610. for ac_func in pcap_set_optimizer_debug
  5611. do :
  5612. ac_fn_c_check_func "$LINENO" "pcap_set_optimizer_debug" "ac_cv_func_pcap_set_optimizer_debug"
  5613. if test "x$ac_cv_func_pcap_set_optimizer_debug" = xyes; then :
  5614. cat >>confdefs.h <<_ACEOF
  5615. #define HAVE_PCAP_SET_OPTIMIZER_DEBUG 1
  5616. _ACEOF
  5617. fi
  5618. done
  5619. ac_fn_c_check_func "$LINENO" "bpf_dump" "ac_cv_func_bpf_dump"
  5620. if test "x$ac_cv_func_bpf_dump" = xyes; then :
  5621. $as_echo "#define HAVE_BPF_DUMP 1" >>confdefs.h
  5622. else
  5623. case " $LIBOBJS " in
  5624. *" bpf_dump.$ac_objext "* ) ;;
  5625. *) LIBOBJS="$LIBOBJS bpf_dump.$ac_objext"
  5626. ;;
  5627. esac
  5628. fi
  5629. V_GROUP=0
  5630. if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
  5631. V_GROUP=wheel
  5632. fi
  5633. #
  5634. # Assume V7/BSD convention for man pages (file formats in section 5,
  5635. # miscellaneous info in section 7).
  5636. #
  5637. MAN_FILE_FORMATS=5
  5638. MAN_MISC_INFO=7
  5639. case "$host_os" in
  5640. aix*)
  5641. $as_echo "#define _SUN 1" >>confdefs.h
  5642. ;;
  5643. hpux*)
  5644. #
  5645. # Use System V conventions for man pages.
  5646. #
  5647. MAN_FILE_FORMATS=4
  5648. MAN_MISC_INFO=5
  5649. ;;
  5650. irix*)
  5651. V_GROUP=sys
  5652. #
  5653. # Use System V conventions for man pages.
  5654. #
  5655. MAN_FILE_FORMATS=4
  5656. MAN_MISC_INFO=5
  5657. ;;
  5658. osf*)
  5659. V_GROUP=system
  5660. #
  5661. # Use System V conventions for man pages.
  5662. #
  5663. MAN_FILE_FORMATS=4
  5664. MAN_MISC_INFO=5
  5665. ;;
  5666. solaris*)
  5667. V_GROUP=sys
  5668. #
  5669. # Use System V conventions for man pages.
  5670. #
  5671. MAN_FILE_FORMATS=4
  5672. MAN_MISC_INFO=5
  5673. ;;
  5674. esac
  5675. if test -f /dev/bpf0 ; then
  5676. V_GROUP=bpf
  5677. fi
  5678. #
  5679. # Make sure we have definitions for all the C99 specified-width types
  5680. # (regardless of whether the environment is a C99 environment or not).
  5681. #
  5682. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  5683. case $ac_cv_c_int8_t in #(
  5684. no|yes) ;; #(
  5685. *)
  5686. cat >>confdefs.h <<_ACEOF
  5687. #define int8_t $ac_cv_c_int8_t
  5688. _ACEOF
  5689. ;;
  5690. esac
  5691. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  5692. case $ac_cv_c_int16_t in #(
  5693. no|yes) ;; #(
  5694. *)
  5695. cat >>confdefs.h <<_ACEOF
  5696. #define int16_t $ac_cv_c_int16_t
  5697. _ACEOF
  5698. ;;
  5699. esac
  5700. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  5701. case $ac_cv_c_int32_t in #(
  5702. no|yes) ;; #(
  5703. *)
  5704. cat >>confdefs.h <<_ACEOF
  5705. #define int32_t $ac_cv_c_int32_t
  5706. _ACEOF
  5707. ;;
  5708. esac
  5709. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  5710. case $ac_cv_c_int64_t in #(
  5711. no|yes) ;; #(
  5712. *)
  5713. cat >>confdefs.h <<_ACEOF
  5714. #define int64_t $ac_cv_c_int64_t
  5715. _ACEOF
  5716. ;;
  5717. esac
  5718. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  5719. case $ac_cv_c_uint8_t in #(
  5720. no|yes) ;; #(
  5721. *)
  5722. $as_echo "#define _UINT8_T 1" >>confdefs.h
  5723. cat >>confdefs.h <<_ACEOF
  5724. #define uint8_t $ac_cv_c_uint8_t
  5725. _ACEOF
  5726. ;;
  5727. esac
  5728. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  5729. case $ac_cv_c_uint16_t in #(
  5730. no|yes) ;; #(
  5731. *)
  5732. cat >>confdefs.h <<_ACEOF
  5733. #define uint16_t $ac_cv_c_uint16_t
  5734. _ACEOF
  5735. ;;
  5736. esac
  5737. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  5738. case $ac_cv_c_uint32_t in #(
  5739. no|yes) ;; #(
  5740. *)
  5741. $as_echo "#define _UINT32_T 1" >>confdefs.h
  5742. cat >>confdefs.h <<_ACEOF
  5743. #define uint32_t $ac_cv_c_uint32_t
  5744. _ACEOF
  5745. ;;
  5746. esac
  5747. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  5748. case $ac_cv_c_uint64_t in #(
  5749. no|yes) ;; #(
  5750. *)
  5751. $as_echo "#define _UINT64_T 1" >>confdefs.h
  5752. cat >>confdefs.h <<_ACEOF
  5753. #define uint64_t $ac_cv_c_uint64_t
  5754. _ACEOF
  5755. ;;
  5756. esac
  5757. #
  5758. # Make sure we have a definition for C99's uintptr_t (regardless of
  5759. # whether the environment is a C99 environment or not).
  5760. #
  5761. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  5762. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  5763. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  5764. else
  5765. for ac_type in 'unsigned int' 'unsigned long int' \
  5766. 'unsigned long long int'; do
  5767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5768. /* end confdefs.h. */
  5769. $ac_includes_default
  5770. int
  5771. main ()
  5772. {
  5773. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  5774. test_array [0] = 0;
  5775. return test_array [0];
  5776. ;
  5777. return 0;
  5778. }
  5779. _ACEOF
  5780. if ac_fn_c_try_compile "$LINENO"; then :
  5781. cat >>confdefs.h <<_ACEOF
  5782. #define uintptr_t $ac_type
  5783. _ACEOF
  5784. ac_type=
  5785. fi
  5786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5787. test -z "$ac_type" && break
  5788. done
  5789. fi
  5790. #
  5791. # Define the old BSD specified-width types in terms of the C99 types;
  5792. # we may need them with libpcap include files.
  5793. #
  5794. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
  5795. #include <sys/types.h>
  5796. "
  5797. if test "x$ac_cv_type_u_int8_t" = xyes; then :
  5798. else
  5799. $as_echo "#define u_int8_t uint8_t" >>confdefs.h
  5800. fi
  5801. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
  5802. #include <sys/types.h>
  5803. "
  5804. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  5805. else
  5806. $as_echo "#define u_int16_t uint16_t" >>confdefs.h
  5807. fi
  5808. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
  5809. #include <sys/types.h>
  5810. "
  5811. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  5812. else
  5813. $as_echo "#define u_int32_t uint32_t" >>confdefs.h
  5814. fi
  5815. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
  5816. #include <sys/types.h>
  5817. "
  5818. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  5819. else
  5820. $as_echo "#define u_int64_t uint64_t" >>confdefs.h
  5821. fi
  5822. #
  5823. # Check for <inttypes.h>
  5824. #
  5825. for ac_header in inttypes.h
  5826. do :
  5827. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  5828. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  5829. cat >>confdefs.h <<_ACEOF
  5830. #define HAVE_INTTYPES_H 1
  5831. _ACEOF
  5832. #
  5833. # OK, we have inttypes.h, but does it define all the PRI[doxu]64 macros?
  5834. # Some systems have an inttypes.h that doesn't define all of them.
  5835. #
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
  5837. $as_echo_n "checking whether inttypes.h defines the PRI[doxu]64 macros... " >&6; }
  5838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5839. /* end confdefs.h. */
  5840. #include <inttypes.h>
  5841. #include <stdio.h>
  5842. #include <sys/types.h>
  5843. main()
  5844. {
  5845. printf("%" PRId64 "\n", (uint64_t)1);
  5846. printf("%" PRIo64 "\n", (uint64_t)1);
  5847. printf("%" PRIx64 "\n", (uint64_t)1);
  5848. printf("%" PRIu64 "\n", (uint64_t)1);
  5849. }
  5850. _ACEOF
  5851. if ac_fn_c_try_compile "$LINENO"; then :
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5853. $as_echo "yes" >&6; }
  5854. ac_lbl_inttypes_h_defines_formats=yes
  5855. else
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5857. $as_echo "no" >&6; }
  5858. ac_lbl_inttypes_h_defines_formats=no
  5859. fi
  5860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5861. else
  5862. #
  5863. # We don't have inttypes.h, so it obviously can't define those
  5864. # macros.
  5865. #
  5866. ac_lbl_inttypes_h_defines_formats=no
  5867. fi
  5868. done
  5869. if test "$ac_lbl_inttypes_h_defines_formats" = no; then
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %lx can be used to format 64-bit integers" >&5
  5871. $as_echo_n "checking whether %lx can be used to format 64-bit integers... " >&6; }
  5872. if test "$cross_compiling" = yes; then :
  5873. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5874. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5875. as_fn_error $? "cannot run test program while cross compiling
  5876. See \`config.log' for more details" "$LINENO" 5; }
  5877. else
  5878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5879. /* end confdefs.h. */
  5880. # ifdef HAVE_INTTYPES_H
  5881. #include <inttypes.h>
  5882. # endif
  5883. #include <stdio.h>
  5884. #include <sys/types.h>
  5885. main()
  5886. {
  5887. uint64_t t = 1;
  5888. char strbuf[16+1];
  5889. sprintf(strbuf, "%016lx", t << 32);
  5890. if (strcmp(strbuf, "0000000100000000") == 0)
  5891. exit(0);
  5892. else
  5893. exit(1);
  5894. }
  5895. _ACEOF
  5896. if ac_fn_c_try_run "$LINENO"; then :
  5897. $as_echo "#define PRId64 \"ld\"" >>confdefs.h
  5898. $as_echo "#define PRIo64 \"lo\"" >>confdefs.h
  5899. $as_echo "#define PRIx64 \"lx\"" >>confdefs.h
  5900. $as_echo "#define PRIu64 \"lu\"" >>confdefs.h
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5902. $as_echo "yes" >&6; }
  5903. else
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5905. $as_echo "no" >&6; }
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %llx can be used to format 64-bit integers" >&5
  5907. $as_echo_n "checking whether %llx can be used to format 64-bit integers... " >&6; }
  5908. if test "$cross_compiling" = yes; then :
  5909. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5910. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5911. as_fn_error $? "cannot run test program while cross compiling
  5912. See \`config.log' for more details" "$LINENO" 5; }
  5913. else
  5914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5915. /* end confdefs.h. */
  5916. # ifdef HAVE_INTTYPES_H
  5917. #include <inttypes.h>
  5918. # endif
  5919. #include <stdio.h>
  5920. #include <sys/types.h>
  5921. main()
  5922. {
  5923. uint64_t t = 1;
  5924. char strbuf[16+1];
  5925. sprintf(strbuf, "%016llx", t << 32);
  5926. if (strcmp(strbuf, "0000000100000000") == 0)
  5927. exit(0);
  5928. else
  5929. exit(1);
  5930. }
  5931. _ACEOF
  5932. if ac_fn_c_try_run "$LINENO"; then :
  5933. $as_echo "#define PRId64 \"lld\"" >>confdefs.h
  5934. $as_echo "#define PRIo64 \"llo\"" >>confdefs.h
  5935. $as_echo "#define PRIx64 \"llx\"" >>confdefs.h
  5936. $as_echo "#define PRIu64 \"llu\"" >>confdefs.h
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5938. $as_echo "yes" >&6; }
  5939. else
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5941. $as_echo "no" >&6; }
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %Lx can be used to format 64-bit integers" >&5
  5943. $as_echo_n "checking whether %Lx can be used to format 64-bit integers... " >&6; }
  5944. if test "$cross_compiling" = yes; then :
  5945. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5946. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5947. as_fn_error $? "cannot run test program while cross compiling
  5948. See \`config.log' for more details" "$LINENO" 5; }
  5949. else
  5950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5951. /* end confdefs.h. */
  5952. # ifdef HAVE_INTTYPES_H
  5953. #include <inttypes.h>
  5954. # endif
  5955. #include <stdio.h>
  5956. #include <sys/types.h>
  5957. main()
  5958. {
  5959. uint64_t t = 1;
  5960. char strbuf[16+1];
  5961. sprintf(strbuf, "%016Lx", t << 32);
  5962. if (strcmp(strbuf, "0000000100000000") == 0)
  5963. exit(0);
  5964. else
  5965. exit(1);
  5966. }
  5967. _ACEOF
  5968. if ac_fn_c_try_run "$LINENO"; then :
  5969. $as_echo "#define PRId64 \"Ld\"" >>confdefs.h
  5970. $as_echo "#define PRIo64 \"Lo\"" >>confdefs.h
  5971. $as_echo "#define PRIx64 \"Lx\"" >>confdefs.h
  5972. $as_echo "#define PRIu64 \"Lu\"" >>confdefs.h
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5974. $as_echo "yes" >&6; }
  5975. else
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5977. $as_echo "no" >&6; }
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether %qx can be used to format 64-bit integers" >&5
  5979. $as_echo_n "checking whether %qx can be used to format 64-bit integers... " >&6; }
  5980. if test "$cross_compiling" = yes; then :
  5981. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5982. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5983. as_fn_error $? "cannot run test program while cross compiling
  5984. See \`config.log' for more details" "$LINENO" 5; }
  5985. else
  5986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5987. /* end confdefs.h. */
  5988. # ifdef HAVE_INTTYPES_H
  5989. #include <inttypes.h>
  5990. # endif
  5991. #include <stdio.h>
  5992. #include <sys/types.h>
  5993. main()
  5994. {
  5995. uint64_t t = 1;
  5996. char strbuf[16+1];
  5997. sprintf(strbuf, "%016qx", t << 32);
  5998. if (strcmp(strbuf, "0000000100000000") == 0)
  5999. exit(0);
  6000. else
  6001. exit(1);
  6002. }
  6003. _ACEOF
  6004. if ac_fn_c_try_run "$LINENO"; then :
  6005. $as_echo "#define PRId64 \"qd\"" >>confdefs.h
  6006. $as_echo "#define PRIo64 \"qo\"" >>confdefs.h
  6007. $as_echo "#define PRIx64 \"qx\"" >>confdefs.h
  6008. $as_echo "#define PRIu64 \"qu\"" >>confdefs.h
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6010. $as_echo "yes" >&6; }
  6011. else
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6013. $as_echo "no" >&6; }
  6014. as_fn_error $? "neither %llx nor %Lx nor %qx worked on a 64-bit integer" "$LINENO" 5
  6015. fi
  6016. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6017. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6018. fi
  6019. fi
  6020. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6021. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6022. fi
  6023. fi
  6024. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6025. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6026. fi
  6027. fi
  6028. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6029. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6030. fi
  6031. fi
  6032. #
  6033. # Check for some headers introduced in later versions of libpcap
  6034. # and used by some printers.
  6035. #
  6036. # Those headers use the {u_}intN_t types, so we must do this after
  6037. # we check for what's needed to get them defined.
  6038. #
  6039. savedcppflags="$CPPFLAGS"
  6040. CPPFLAGS="$CPPFLAGS $V_INCLS"
  6041. for ac_header in pcap/bluetooth.h
  6042. do :
  6043. ac_fn_c_check_header_compile "$LINENO" "pcap/bluetooth.h" "ac_cv_header_pcap_bluetooth_h" "#include \"netdissect-stdinc.h\"
  6044. "
  6045. if test "x$ac_cv_header_pcap_bluetooth_h" = xyes; then :
  6046. cat >>confdefs.h <<_ACEOF
  6047. #define HAVE_PCAP_BLUETOOTH_H 1
  6048. _ACEOF
  6049. fi
  6050. done
  6051. for ac_header in pcap/nflog.h
  6052. do :
  6053. ac_fn_c_check_header_compile "$LINENO" "pcap/nflog.h" "ac_cv_header_pcap_nflog_h" "#include \"netdissect-stdinc.h\"
  6054. "
  6055. if test "x$ac_cv_header_pcap_nflog_h" = xyes; then :
  6056. cat >>confdefs.h <<_ACEOF
  6057. #define HAVE_PCAP_NFLOG_H 1
  6058. _ACEOF
  6059. fi
  6060. done
  6061. for ac_header in pcap/usb.h
  6062. do :
  6063. ac_fn_c_check_header_compile "$LINENO" "pcap/usb.h" "ac_cv_header_pcap_usb_h" "#include \"netdissect-stdinc.h\"
  6064. "
  6065. if test "x$ac_cv_header_pcap_usb_h" = xyes; then :
  6066. cat >>confdefs.h <<_ACEOF
  6067. #define HAVE_PCAP_USB_H 1
  6068. _ACEOF
  6069. fi
  6070. done
  6071. CPPFLAGS="$savedcppflags"
  6072. if test -n "$ac_tool_prefix"; then
  6073. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6074. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6076. $as_echo_n "checking for $ac_word... " >&6; }
  6077. if ${ac_cv_prog_RANLIB+:} false; then :
  6078. $as_echo_n "(cached) " >&6
  6079. else
  6080. if test -n "$RANLIB"; then
  6081. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6082. else
  6083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6084. for as_dir in $PATH
  6085. do
  6086. IFS=$as_save_IFS
  6087. test -z "$as_dir" && as_dir=.
  6088. for ac_exec_ext in '' $ac_executable_extensions; do
  6089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6090. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6092. break 2
  6093. fi
  6094. done
  6095. done
  6096. IFS=$as_save_IFS
  6097. fi
  6098. fi
  6099. RANLIB=$ac_cv_prog_RANLIB
  6100. if test -n "$RANLIB"; then
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6102. $as_echo "$RANLIB" >&6; }
  6103. else
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6105. $as_echo "no" >&6; }
  6106. fi
  6107. fi
  6108. if test -z "$ac_cv_prog_RANLIB"; then
  6109. ac_ct_RANLIB=$RANLIB
  6110. # Extract the first word of "ranlib", so it can be a program name with args.
  6111. set dummy ranlib; ac_word=$2
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6113. $as_echo_n "checking for $ac_word... " >&6; }
  6114. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6115. $as_echo_n "(cached) " >&6
  6116. else
  6117. if test -n "$ac_ct_RANLIB"; then
  6118. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6119. else
  6120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6121. for as_dir in $PATH
  6122. do
  6123. IFS=$as_save_IFS
  6124. test -z "$as_dir" && as_dir=.
  6125. for ac_exec_ext in '' $ac_executable_extensions; do
  6126. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6127. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6129. break 2
  6130. fi
  6131. done
  6132. done
  6133. IFS=$as_save_IFS
  6134. fi
  6135. fi
  6136. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6137. if test -n "$ac_ct_RANLIB"; then
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6139. $as_echo "$ac_ct_RANLIB" >&6; }
  6140. else
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6142. $as_echo "no" >&6; }
  6143. fi
  6144. if test "x$ac_ct_RANLIB" = x; then
  6145. RANLIB=":"
  6146. else
  6147. case $cross_compiling:$ac_tool_warned in
  6148. yes:)
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6151. ac_tool_warned=yes ;;
  6152. esac
  6153. RANLIB=$ac_ct_RANLIB
  6154. fi
  6155. else
  6156. RANLIB="$ac_cv_prog_RANLIB"
  6157. fi
  6158. if test -n "$ac_tool_prefix"; then
  6159. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6160. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6162. $as_echo_n "checking for $ac_word... " >&6; }
  6163. if ${ac_cv_prog_AR+:} false; then :
  6164. $as_echo_n "(cached) " >&6
  6165. else
  6166. if test -n "$AR"; then
  6167. ac_cv_prog_AR="$AR" # Let the user override the test.
  6168. else
  6169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6170. for as_dir in $PATH
  6171. do
  6172. IFS=$as_save_IFS
  6173. test -z "$as_dir" && as_dir=.
  6174. for ac_exec_ext in '' $ac_executable_extensions; do
  6175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6176. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6178. break 2
  6179. fi
  6180. done
  6181. done
  6182. IFS=$as_save_IFS
  6183. fi
  6184. fi
  6185. AR=$ac_cv_prog_AR
  6186. if test -n "$AR"; then
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6188. $as_echo "$AR" >&6; }
  6189. else
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6191. $as_echo "no" >&6; }
  6192. fi
  6193. fi
  6194. if test -z "$ac_cv_prog_AR"; then
  6195. ac_ct_AR=$AR
  6196. # Extract the first word of "ar", so it can be a program name with args.
  6197. set dummy ar; ac_word=$2
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6199. $as_echo_n "checking for $ac_word... " >&6; }
  6200. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. if test -n "$ac_ct_AR"; then
  6204. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6205. else
  6206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6207. for as_dir in $PATH
  6208. do
  6209. IFS=$as_save_IFS
  6210. test -z "$as_dir" && as_dir=.
  6211. for ac_exec_ext in '' $ac_executable_extensions; do
  6212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6213. ac_cv_prog_ac_ct_AR="ar"
  6214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6215. break 2
  6216. fi
  6217. done
  6218. done
  6219. IFS=$as_save_IFS
  6220. fi
  6221. fi
  6222. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6223. if test -n "$ac_ct_AR"; then
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6225. $as_echo "$ac_ct_AR" >&6; }
  6226. else
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6228. $as_echo "no" >&6; }
  6229. fi
  6230. if test "x$ac_ct_AR" = x; then
  6231. AR=""
  6232. else
  6233. case $cross_compiling:$ac_tool_warned in
  6234. yes:)
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6236. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6237. ac_tool_warned=yes ;;
  6238. esac
  6239. AR=$ac_ct_AR
  6240. fi
  6241. else
  6242. AR="$ac_cv_prog_AR"
  6243. fi
  6244. rm -f os-proto.h
  6245. if test "${LBL_CFLAGS+set}" = set; then
  6246. V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
  6247. fi
  6248. if test -f .devel ; then
  6249. #
  6250. # Skip all the warning option stuff on some compilers.
  6251. #
  6252. if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
  6254. $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
  6255. save_CFLAGS="$CFLAGS"
  6256. CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
  6257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6258. /* end confdefs.h. */
  6259. int
  6260. main ()
  6261. {
  6262. return 0
  6263. ;
  6264. return 0;
  6265. }
  6266. _ACEOF
  6267. if ac_fn_c_try_compile "$LINENO"; then :
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6269. $as_echo "no" >&6; }
  6270. #
  6271. # We're assuming this is clang, where
  6272. # -Werror=unknown-warning-option is the appropriate
  6273. # option to force the compiler to fail.
  6274. #
  6275. ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
  6276. else
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6278. $as_echo "yes" >&6; }
  6279. fi
  6280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6281. CFLAGS="$save_CFLAGS"
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
  6283. $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
  6284. save_CFLAGS="$CFLAGS"
  6285. if expr "x-Wall" : "x-W.*" >/dev/null
  6286. then
  6287. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
  6288. elif expr "x-Wall" : "x-f.*" >/dev/null
  6289. then
  6290. CFLAGS="$CFLAGS -Werror -Wall"
  6291. elif expr "x-Wall" : "x-m.*" >/dev/null
  6292. then
  6293. CFLAGS="$CFLAGS -Werror -Wall"
  6294. else
  6295. CFLAGS="$CFLAGS -Wall"
  6296. fi
  6297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6298. /* end confdefs.h. */
  6299. int
  6300. main ()
  6301. {
  6302. return 0
  6303. ;
  6304. return 0;
  6305. }
  6306. _ACEOF
  6307. if ac_fn_c_try_compile "$LINENO"; then :
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6309. $as_echo "yes" >&6; }
  6310. CFLAGS="$save_CFLAGS"
  6311. V_CCOPT="$V_CCOPT -Wall"
  6312. else
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6314. $as_echo "no" >&6; }
  6315. CFLAGS="$save_CFLAGS"
  6316. fi
  6317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
  6319. $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
  6320. save_CFLAGS="$CFLAGS"
  6321. if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
  6322. then
  6323. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
  6324. elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
  6325. then
  6326. CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
  6327. elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
  6328. then
  6329. CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
  6330. else
  6331. CFLAGS="$CFLAGS -Wmissing-prototypes"
  6332. fi
  6333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6334. /* end confdefs.h. */
  6335. int
  6336. main ()
  6337. {
  6338. return 0
  6339. ;
  6340. return 0;
  6341. }
  6342. _ACEOF
  6343. if ac_fn_c_try_compile "$LINENO"; then :
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6345. $as_echo "yes" >&6; }
  6346. CFLAGS="$save_CFLAGS"
  6347. V_CCOPT="$V_CCOPT -Wmissing-prototypes"
  6348. else
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6350. $as_echo "no" >&6; }
  6351. CFLAGS="$save_CFLAGS"
  6352. fi
  6353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
  6355. $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
  6356. save_CFLAGS="$CFLAGS"
  6357. if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
  6358. then
  6359. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
  6360. elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
  6361. then
  6362. CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
  6363. elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
  6364. then
  6365. CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
  6366. else
  6367. CFLAGS="$CFLAGS -Wstrict-prototypes"
  6368. fi
  6369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6370. /* end confdefs.h. */
  6371. int
  6372. main ()
  6373. {
  6374. return 0
  6375. ;
  6376. return 0;
  6377. }
  6378. _ACEOF
  6379. if ac_fn_c_try_compile "$LINENO"; then :
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6381. $as_echo "yes" >&6; }
  6382. CFLAGS="$save_CFLAGS"
  6383. V_CCOPT="$V_CCOPT -Wstrict-prototypes"
  6384. else
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6386. $as_echo "no" >&6; }
  6387. CFLAGS="$save_CFLAGS"
  6388. fi
  6389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wwrite-strings option" >&5
  6391. $as_echo_n "checking whether the compiler supports the -Wwrite-strings option... " >&6; }
  6392. save_CFLAGS="$CFLAGS"
  6393. if expr "x-Wwrite-strings" : "x-W.*" >/dev/null
  6394. then
  6395. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wwrite-strings"
  6396. elif expr "x-Wwrite-strings" : "x-f.*" >/dev/null
  6397. then
  6398. CFLAGS="$CFLAGS -Werror -Wwrite-strings"
  6399. elif expr "x-Wwrite-strings" : "x-m.*" >/dev/null
  6400. then
  6401. CFLAGS="$CFLAGS -Werror -Wwrite-strings"
  6402. else
  6403. CFLAGS="$CFLAGS -Wwrite-strings"
  6404. fi
  6405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6406. /* end confdefs.h. */
  6407. int
  6408. main ()
  6409. {
  6410. return 0
  6411. ;
  6412. return 0;
  6413. }
  6414. _ACEOF
  6415. if ac_fn_c_try_compile "$LINENO"; then :
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6417. $as_echo "yes" >&6; }
  6418. CFLAGS="$save_CFLAGS"
  6419. V_CCOPT="$V_CCOPT -Wwrite-strings"
  6420. else
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6422. $as_echo "no" >&6; }
  6423. CFLAGS="$save_CFLAGS"
  6424. fi
  6425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-arith option" >&5
  6427. $as_echo_n "checking whether the compiler supports the -Wpointer-arith option... " >&6; }
  6428. save_CFLAGS="$CFLAGS"
  6429. if expr "x-Wpointer-arith" : "x-W.*" >/dev/null
  6430. then
  6431. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-arith"
  6432. elif expr "x-Wpointer-arith" : "x-f.*" >/dev/null
  6433. then
  6434. CFLAGS="$CFLAGS -Werror -Wpointer-arith"
  6435. elif expr "x-Wpointer-arith" : "x-m.*" >/dev/null
  6436. then
  6437. CFLAGS="$CFLAGS -Werror -Wpointer-arith"
  6438. else
  6439. CFLAGS="$CFLAGS -Wpointer-arith"
  6440. fi
  6441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6442. /* end confdefs.h. */
  6443. int
  6444. main ()
  6445. {
  6446. return 0
  6447. ;
  6448. return 0;
  6449. }
  6450. _ACEOF
  6451. if ac_fn_c_try_compile "$LINENO"; then :
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6453. $as_echo "yes" >&6; }
  6454. CFLAGS="$save_CFLAGS"
  6455. V_CCOPT="$V_CCOPT -Wpointer-arith"
  6456. else
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6458. $as_echo "no" >&6; }
  6459. CFLAGS="$save_CFLAGS"
  6460. fi
  6461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcast-qual option" >&5
  6463. $as_echo_n "checking whether the compiler supports the -Wcast-qual option... " >&6; }
  6464. save_CFLAGS="$CFLAGS"
  6465. if expr "x-Wcast-qual" : "x-W.*" >/dev/null
  6466. then
  6467. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wcast-qual"
  6468. elif expr "x-Wcast-qual" : "x-f.*" >/dev/null
  6469. then
  6470. CFLAGS="$CFLAGS -Werror -Wcast-qual"
  6471. elif expr "x-Wcast-qual" : "x-m.*" >/dev/null
  6472. then
  6473. CFLAGS="$CFLAGS -Werror -Wcast-qual"
  6474. else
  6475. CFLAGS="$CFLAGS -Wcast-qual"
  6476. fi
  6477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6478. /* end confdefs.h. */
  6479. int
  6480. main ()
  6481. {
  6482. return 0
  6483. ;
  6484. return 0;
  6485. }
  6486. _ACEOF
  6487. if ac_fn_c_try_compile "$LINENO"; then :
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6489. $as_echo "yes" >&6; }
  6490. CFLAGS="$save_CFLAGS"
  6491. V_CCOPT="$V_CCOPT -Wcast-qual"
  6492. else
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6494. $as_echo "no" >&6; }
  6495. CFLAGS="$save_CFLAGS"
  6496. fi
  6497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
  6499. $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
  6500. save_CFLAGS="$CFLAGS"
  6501. if expr "x-Wshadow" : "x-W.*" >/dev/null
  6502. then
  6503. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
  6504. elif expr "x-Wshadow" : "x-f.*" >/dev/null
  6505. then
  6506. CFLAGS="$CFLAGS -Werror -Wshadow"
  6507. elif expr "x-Wshadow" : "x-m.*" >/dev/null
  6508. then
  6509. CFLAGS="$CFLAGS -Werror -Wshadow"
  6510. else
  6511. CFLAGS="$CFLAGS -Wshadow"
  6512. fi
  6513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6514. /* end confdefs.h. */
  6515. int
  6516. main ()
  6517. {
  6518. return 0
  6519. ;
  6520. return 0;
  6521. }
  6522. _ACEOF
  6523. if ac_fn_c_try_compile "$LINENO"; then :
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6525. $as_echo "yes" >&6; }
  6526. CFLAGS="$save_CFLAGS"
  6527. V_CCOPT="$V_CCOPT -Wshadow"
  6528. else
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6530. $as_echo "no" >&6; }
  6531. CFLAGS="$save_CFLAGS"
  6532. fi
  6533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
  6535. $as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
  6536. save_CFLAGS="$CFLAGS"
  6537. if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
  6538. then
  6539. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
  6540. elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
  6541. then
  6542. CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
  6543. elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
  6544. then
  6545. CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
  6546. else
  6547. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  6548. fi
  6549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6550. /* end confdefs.h. */
  6551. int
  6552. main ()
  6553. {
  6554. return 0
  6555. ;
  6556. return 0;
  6557. }
  6558. _ACEOF
  6559. if ac_fn_c_try_compile "$LINENO"; then :
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6561. $as_echo "yes" >&6; }
  6562. CFLAGS="$save_CFLAGS"
  6563. V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
  6564. else
  6565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6566. $as_echo "no" >&6; }
  6567. CFLAGS="$save_CFLAGS"
  6568. fi
  6569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpedantic option" >&5
  6571. $as_echo_n "checking whether the compiler supports the -Wpedantic option... " >&6; }
  6572. save_CFLAGS="$CFLAGS"
  6573. if expr "x-Wpedantic" : "x-W.*" >/dev/null
  6574. then
  6575. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpedantic"
  6576. elif expr "x-Wpedantic" : "x-f.*" >/dev/null
  6577. then
  6578. CFLAGS="$CFLAGS -Werror -Wpedantic"
  6579. elif expr "x-Wpedantic" : "x-m.*" >/dev/null
  6580. then
  6581. CFLAGS="$CFLAGS -Werror -Wpedantic"
  6582. else
  6583. CFLAGS="$CFLAGS -Wpedantic"
  6584. fi
  6585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6586. /* end confdefs.h. */
  6587. int
  6588. main ()
  6589. {
  6590. return 0
  6591. ;
  6592. return 0;
  6593. }
  6594. _ACEOF
  6595. if ac_fn_c_try_compile "$LINENO"; then :
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6597. $as_echo "yes" >&6; }
  6598. CFLAGS="$save_CFLAGS"
  6599. V_CCOPT="$V_CCOPT -Wpedantic"
  6600. else
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6602. $as_echo "no" >&6; }
  6603. CFLAGS="$save_CFLAGS"
  6604. fi
  6605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wold-style-definition option" >&5
  6607. $as_echo_n "checking whether the compiler supports the -Wold-style-definition option... " >&6; }
  6608. save_CFLAGS="$CFLAGS"
  6609. if expr "x-Wold-style-definition" : "x-W.*" >/dev/null
  6610. then
  6611. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wold-style-definition"
  6612. elif expr "x-Wold-style-definition" : "x-f.*" >/dev/null
  6613. then
  6614. CFLAGS="$CFLAGS -Werror -Wold-style-definition"
  6615. elif expr "x-Wold-style-definition" : "x-m.*" >/dev/null
  6616. then
  6617. CFLAGS="$CFLAGS -Werror -Wold-style-definition"
  6618. else
  6619. CFLAGS="$CFLAGS -Wold-style-definition"
  6620. fi
  6621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6622. /* end confdefs.h. */
  6623. int
  6624. main ()
  6625. {
  6626. return 0
  6627. ;
  6628. return 0;
  6629. }
  6630. _ACEOF
  6631. if ac_fn_c_try_compile "$LINENO"; then :
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6633. $as_echo "yes" >&6; }
  6634. CFLAGS="$save_CFLAGS"
  6635. V_CCOPT="$V_CCOPT -Wold-style-definition"
  6636. else
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6638. $as_echo "no" >&6; }
  6639. CFLAGS="$save_CFLAGS"
  6640. fi
  6641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
  6643. $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
  6644. save_CFLAGS="$CFLAGS"
  6645. if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
  6646. then
  6647. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
  6648. elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
  6649. then
  6650. CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
  6651. elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
  6652. then
  6653. CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
  6654. else
  6655. CFLAGS="$CFLAGS -Wused-but-marked-unused"
  6656. fi
  6657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6658. /* end confdefs.h. */
  6659. int
  6660. main ()
  6661. {
  6662. return 0
  6663. ;
  6664. return 0;
  6665. }
  6666. _ACEOF
  6667. if ac_fn_c_try_compile "$LINENO"; then :
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6669. $as_echo "yes" >&6; }
  6670. CFLAGS="$save_CFLAGS"
  6671. V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
  6672. else
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6674. $as_echo "no" >&6; }
  6675. CFLAGS="$save_CFLAGS"
  6676. fi
  6677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5
  6679. $as_echo_n "checking whether the compiler supports the -W option... " >&6; }
  6680. save_CFLAGS="$CFLAGS"
  6681. if expr "x-W" : "x-W.*" >/dev/null
  6682. then
  6683. CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
  6684. elif expr "x-W" : "x-f.*" >/dev/null
  6685. then
  6686. CFLAGS="$CFLAGS -Werror -W"
  6687. elif expr "x-W" : "x-m.*" >/dev/null
  6688. then
  6689. CFLAGS="$CFLAGS -Werror -W"
  6690. else
  6691. CFLAGS="$CFLAGS -W"
  6692. fi
  6693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6694. /* end confdefs.h. */
  6695. int
  6696. main ()
  6697. {
  6698. return 0
  6699. ;
  6700. return 0;
  6701. }
  6702. _ACEOF
  6703. if ac_fn_c_try_compile "$LINENO"; then :
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6705. $as_echo "yes" >&6; }
  6706. CFLAGS="$save_CFLAGS"
  6707. V_CCOPT="$V_CCOPT -W"
  6708. else
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6710. $as_echo "no" >&6; }
  6711. CFLAGS="$save_CFLAGS"
  6712. fi
  6713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6714. fi
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
  6716. $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
  6717. if test "$GCC" = yes ; then
  6718. #
  6719. # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
  6720. # though it's not); we assume that, in this case, the flag
  6721. # would be -M.
  6722. #
  6723. ac_lbl_dependency_flag="-M"
  6724. else
  6725. #
  6726. # Not GCC or a compiler deemed to be GCC; what platform is
  6727. # this? (We're assuming that if the compiler isn't GCC
  6728. # it's the compiler from the vendor of the OS; that won't
  6729. # necessarily be true for x86 platforms, where it might be
  6730. # the Intel C compiler.)
  6731. #
  6732. case "$host_os" in
  6733. irix*|osf*|darwin*)
  6734. #
  6735. # MIPS C for IRIX, DEC C, and clang all use -M.
  6736. #
  6737. ac_lbl_dependency_flag="-M"
  6738. ;;
  6739. solaris*)
  6740. #
  6741. # Sun C uses -xM.
  6742. #
  6743. ac_lbl_dependency_flag="-xM"
  6744. ;;
  6745. hpux*)
  6746. #
  6747. # HP's older C compilers don't support this.
  6748. # HP's newer C compilers support this with
  6749. # either +M or +Make; the older compilers
  6750. # interpret +M as something completely
  6751. # different, so we use +Make so we don't
  6752. # think it works with the older compilers.
  6753. #
  6754. ac_lbl_dependency_flag="+Make"
  6755. ;;
  6756. *)
  6757. #
  6758. # Not one of the above; assume no support for
  6759. # generating dependencies.
  6760. #
  6761. ac_lbl_dependency_flag=""
  6762. ;;
  6763. esac
  6764. fi
  6765. #
  6766. # Is ac_lbl_dependency_flag defined and, if so, does the compiler
  6767. # complain about it?
  6768. #
  6769. # Note: clang doesn't seem to exit with an error status when handed
  6770. # an unknown non-warning error, even if you pass it
  6771. # -Werror=unknown-warning-option. However, it always supports
  6772. # -M, so the fact that this test always succeeds with clang
  6773. # isn't an issue.
  6774. #
  6775. if test ! -z "$ac_lbl_dependency_flag"; then
  6776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6777. /* end confdefs.h. */
  6778. int main(void) { return 0; }
  6779. _ACEOF
  6780. echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
  6781. if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
  6783. $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
  6784. DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
  6785. MKDEP='${srcdir}/mkdep'
  6786. else
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6788. $as_echo "no" >&6; }
  6789. #
  6790. # We can't run mkdep, so have "make depend" do
  6791. # nothing.
  6792. #
  6793. MKDEP=:
  6794. fi
  6795. rm -rf conftest*
  6796. else
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6798. $as_echo "no" >&6; }
  6799. #
  6800. # We can't run mkdep, so have "make depend" do
  6801. # nothing.
  6802. #
  6803. MKDEP=:
  6804. fi
  6805. #
  6806. # We used to set -n32 for IRIX 6 when not using GCC (presumed
  6807. # to mean that we're using MIPS C or MIPSpro C); it specified
  6808. # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
  6809. # not sure why that would be something to do *only* with a
  6810. # .devel file; why should the ABI for which we produce code
  6811. # depend on .devel?
  6812. #
  6813. os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
  6814. name="lbl/os-$os.h"
  6815. if test -f $name ; then
  6816. ln -s $name os-proto.h
  6817. $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
  6818. else
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
  6820. $as_echo "$as_me: WARNING: can't find $name" >&2;}
  6821. fi
  6822. fi
  6823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
  6824. $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
  6825. if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
  6826. $as_echo_n "(cached) " >&6
  6827. else
  6828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6829. /* end confdefs.h. */
  6830. # include <sys/types.h>
  6831. # include <sys/socket.h>
  6832. int
  6833. main ()
  6834. {
  6835. u_int i = sizeof(((struct sockaddr *)0)->sa_len)
  6836. ;
  6837. return 0;
  6838. }
  6839. _ACEOF
  6840. if ac_fn_c_try_compile "$LINENO"; then :
  6841. ac_cv_lbl_sockaddr_has_sa_len=yes
  6842. else
  6843. ac_cv_lbl_sockaddr_has_sa_len=no
  6844. fi
  6845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6846. fi
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
  6848. $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
  6849. if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
  6850. $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
  6851. fi
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
  6853. $as_echo_n "checking if unaligned accesses fail... " >&6; }
  6854. if ${ac_cv_lbl_unaligned_fail+:} false; then :
  6855. $as_echo_n "(cached) " >&6
  6856. else
  6857. case "$host_cpu" in
  6858. #
  6859. # These are CPU types where:
  6860. #
  6861. # the CPU faults on an unaligned access, but at least some
  6862. # OSes that support that CPU catch the fault and simulate
  6863. # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
  6864. # the simulation is slow, so we don't want to use it;
  6865. #
  6866. # the CPU, I infer (from the old
  6867. #
  6868. # XXX: should also check that they don't do weird things (like on arm)
  6869. #
  6870. # comment) doesn't fault on unaligned accesses, but doesn't
  6871. # do a normal unaligned fetch, either (e.g., presumably, ARM);
  6872. #
  6873. # for whatever reason, the test program doesn't work
  6874. # (this has been claimed to be the case for several of those
  6875. # CPUs - I don't know what the problem is; the problem
  6876. # was reported as "the test program dumps core" for SuperH,
  6877. # but that's what the test program is *supposed* to do -
  6878. # it dumps core before it writes anything, so the test
  6879. # for an empty output file should find an empty output
  6880. # file and conclude that unaligned accesses don't work).
  6881. #
  6882. # This run-time test won't work if you're cross-compiling, so
  6883. # in order to support cross-compiling for a particular CPU,
  6884. # we have to wire in the list of CPU types anyway, as far as
  6885. # I know, so perhaps we should just have a set of CPUs on
  6886. # which we know it doesn't work, a set of CPUs on which we
  6887. # know it does work, and have the script just fail on other
  6888. # cpu types and update it when such a failure occurs.
  6889. #
  6890. alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
  6891. ac_cv_lbl_unaligned_fail=yes
  6892. ;;
  6893. *)
  6894. cat >conftest.c <<EOF
  6895. # include <sys/types.h>
  6896. # include <sys/wait.h>
  6897. # include <stdio.h>
  6898. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  6899. main() {
  6900. unsigned int i;
  6901. pid_t pid;
  6902. int status;
  6903. /* avoid "core dumped" message */
  6904. pid = fork();
  6905. if (pid < 0)
  6906. exit(2);
  6907. if (pid > 0) {
  6908. /* parent */
  6909. pid = waitpid(pid, &status, 0);
  6910. if (pid < 0)
  6911. exit(3);
  6912. exit(!WIFEXITED(status));
  6913. }
  6914. /* child */
  6915. i = *(unsigned int *)&a[1];
  6916. printf("%d\n", i);
  6917. exit(0);
  6918. }
  6919. EOF
  6920. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  6921. conftest.c $LIBS >/dev/null 2>&1
  6922. if test ! -x conftest ; then
  6923. ac_cv_lbl_unaligned_fail=yes
  6924. else
  6925. ./conftest >conftest.out
  6926. if test ! -s conftest.out ; then
  6927. ac_cv_lbl_unaligned_fail=yes
  6928. else
  6929. ac_cv_lbl_unaligned_fail=no
  6930. fi
  6931. fi
  6932. rm -f -r conftest* core core.conftest
  6933. ;;
  6934. esac
  6935. fi
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
  6937. $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
  6938. if test $ac_cv_lbl_unaligned_fail = yes ; then
  6939. $as_echo "#define LBL_ALIGN 1" >>confdefs.h
  6940. fi
  6941. # Check for OpenSSL/libressl libcrypto
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL/libressl libcrypto" >&5
  6943. $as_echo_n "checking whether to use OpenSSL/libressl libcrypto... " >&6; }
  6944. # Specify location for both includes and libraries.
  6945. want_libcrypto=ifavailable
  6946. # Check whether --with-crypto was given.
  6947. if test "${with_crypto+set}" = set; then :
  6948. withval=$with_crypto;
  6949. if test $withval = no
  6950. then
  6951. # User doesn't want to link with libcrypto.
  6952. want_libcrypto=no
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6954. $as_echo "no" >&6; }
  6955. elif test $withval = yes
  6956. then
  6957. # User wants to link with libcrypto but hasn't specified
  6958. # a directory.
  6959. want_libcrypto=yes
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6961. $as_echo "yes" >&6; }
  6962. else
  6963. # User wants to link with libcrypto and has specified
  6964. # a directory, so use the provided value.
  6965. want_libcrypto=yes
  6966. libcrypto_root=$withval
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using the version installed in $withval" >&5
  6968. $as_echo "yes, using the version installed in $withval" >&6; }
  6969. #
  6970. # Put the subdirectories of the libcrypto root directory
  6971. # at the front of the header and library search path.
  6972. #
  6973. CFLAGS="-I$withval/include $CFLAGS"
  6974. LIBS="-L$withval/lib $LIBS"
  6975. fi
  6976. else
  6977. #
  6978. # Use libcrypto if it's present, otherwise don't; no directory
  6979. # was specified.
  6980. #
  6981. want_libcrypto=ifavailable
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5
  6983. $as_echo "yes, if available" >&6; }
  6984. fi
  6985. if test "$want_libcrypto" != "no"; then
  6986. #
  6987. # Don't check for libcrypto unless we have its headers;
  6988. # Apple, bless their pointy little heads, apparently ship
  6989. # libcrypto as a library, but not the header files, in
  6990. # El Capitan, probably because they don't want you writing
  6991. # nasty portable code that could run on other UN*Xes, they
  6992. # want you writing code that uses their Shiny New Crypto
  6993. # Library and that only runs on OS X.
  6994. #
  6995. ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
  6996. if test "x$ac_cv_header_openssl_crypto_h" = xyes; then :
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5
  6998. $as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; }
  6999. if ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false; then :
  7000. $as_echo_n "(cached) " >&6
  7001. else
  7002. ac_check_lib_save_LIBS=$LIBS
  7003. LIBS="-lcrypto $LIBS"
  7004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7005. /* end confdefs.h. */
  7006. /* Override any GCC internal prototype to avoid an error.
  7007. Use char because int might match the return type of a GCC
  7008. builtin and then its argument prototype would still apply. */
  7009. #ifdef __cplusplus
  7010. extern "C"
  7011. #endif
  7012. char DES_cbc_encrypt ();
  7013. int
  7014. main ()
  7015. {
  7016. return DES_cbc_encrypt ();
  7017. ;
  7018. return 0;
  7019. }
  7020. _ACEOF
  7021. if ac_fn_c_try_link "$LINENO"; then :
  7022. ac_cv_lib_crypto_DES_cbc_encrypt=yes
  7023. else
  7024. ac_cv_lib_crypto_DES_cbc_encrypt=no
  7025. fi
  7026. rm -f core conftest.err conftest.$ac_objext \
  7027. conftest$ac_exeext conftest.$ac_ext
  7028. LIBS=$ac_check_lib_save_LIBS
  7029. fi
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
  7031. $as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
  7032. if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes; then :
  7033. cat >>confdefs.h <<_ACEOF
  7034. #define HAVE_LIBCRYPTO 1
  7035. _ACEOF
  7036. LIBS="-lcrypto $LIBS"
  7037. fi
  7038. if test "$ac_cv_lib_crypto_DES_cbc_encrypt" = "yes"; then
  7039. for ac_header in openssl/evp.h
  7040. do :
  7041. ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
  7042. if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
  7043. cat >>confdefs.h <<_ACEOF
  7044. #define HAVE_OPENSSL_EVP_H 1
  7045. _ACEOF
  7046. fi
  7047. done
  7048. #
  7049. # OK, then:
  7050. #
  7051. # 1) do we have EVP_CIPHER_CTX_new?
  7052. # If so, we use it to allocate an
  7053. # EVP_CIPHER_CTX, as EVP_CIPHER_CTX may be
  7054. # opaque; otherwise, we allocate it ourselves.
  7055. #
  7056. # 2) do we have EVP_CipherInit_ex()?
  7057. # If so, we use it, because we need to be
  7058. # able to make two "initialize the cipher"
  7059. # calls, one with the cipher and key, and
  7060. # one with the IV, and, as of OpenSSL 1.1,
  7061. # You Can't Do That with EVP_CipherInit(),
  7062. # because a call to EVP_CipherInit() will
  7063. # unconditionally clear the context, and
  7064. # if you don't supply a cipher, it'll
  7065. # clear the cipher, rendering the context
  7066. # unusable and causing a crash.
  7067. #
  7068. for ac_func in EVP_CIPHER_CTX_new EVP_CipherInit_ex
  7069. do :
  7070. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7071. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7072. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7073. cat >>confdefs.h <<_ACEOF
  7074. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7075. _ACEOF
  7076. fi
  7077. done
  7078. fi
  7079. fi
  7080. fi
  7081. # Check for libcap-ng
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libcap-ng" >&5
  7083. $as_echo_n "checking whether to use libcap-ng... " >&6; }
  7084. # Specify location for both includes and libraries.
  7085. want_libcap_ng=ifavailable
  7086. # Check whether --with-cap_ng was given.
  7087. if test "${with_cap_ng+set}" = set; then :
  7088. withval=$with_cap_ng;
  7089. if test $withval = no
  7090. then
  7091. want_libcap_ng=no
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7093. $as_echo "no" >&6; }
  7094. elif test $withval = yes
  7095. then
  7096. want_libcap_ng=yes
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7098. $as_echo "yes" >&6; }
  7099. fi
  7100. else
  7101. #
  7102. # Use libcap-ng if it's present, otherwise don't.
  7103. #
  7104. want_libcap_ng=ifavailable
  7105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5
  7106. $as_echo "yes, if available" >&6; }
  7107. fi
  7108. if test "$want_libcap_ng" != "no"; then
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capng_change_id in -lcap-ng" >&5
  7110. $as_echo_n "checking for capng_change_id in -lcap-ng... " >&6; }
  7111. if ${ac_cv_lib_cap_ng_capng_change_id+:} false; then :
  7112. $as_echo_n "(cached) " >&6
  7113. else
  7114. ac_check_lib_save_LIBS=$LIBS
  7115. LIBS="-lcap-ng $LIBS"
  7116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7117. /* end confdefs.h. */
  7118. /* Override any GCC internal prototype to avoid an error.
  7119. Use char because int might match the return type of a GCC
  7120. builtin and then its argument prototype would still apply. */
  7121. #ifdef __cplusplus
  7122. extern "C"
  7123. #endif
  7124. char capng_change_id ();
  7125. int
  7126. main ()
  7127. {
  7128. return capng_change_id ();
  7129. ;
  7130. return 0;
  7131. }
  7132. _ACEOF
  7133. if ac_fn_c_try_link "$LINENO"; then :
  7134. ac_cv_lib_cap_ng_capng_change_id=yes
  7135. else
  7136. ac_cv_lib_cap_ng_capng_change_id=no
  7137. fi
  7138. rm -f core conftest.err conftest.$ac_objext \
  7139. conftest$ac_exeext conftest.$ac_ext
  7140. LIBS=$ac_check_lib_save_LIBS
  7141. fi
  7142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_change_id" >&5
  7143. $as_echo "$ac_cv_lib_cap_ng_capng_change_id" >&6; }
  7144. if test "x$ac_cv_lib_cap_ng_capng_change_id" = xyes; then :
  7145. cat >>confdefs.h <<_ACEOF
  7146. #define HAVE_LIBCAP_NG 1
  7147. _ACEOF
  7148. LIBS="-lcap-ng $LIBS"
  7149. fi
  7150. for ac_header in cap-ng.h
  7151. do :
  7152. ac_fn_c_check_header_mongrel "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default"
  7153. if test "x$ac_cv_header_cap_ng_h" = xyes; then :
  7154. cat >>confdefs.h <<_ACEOF
  7155. #define HAVE_CAP_NG_H 1
  7156. _ACEOF
  7157. fi
  7158. done
  7159. fi
  7160. if test "$missing_includes" = "yes"; then
  7161. CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
  7162. V_INCLS="$V_INCLS -I$srcdir/missing"
  7163. fi
  7164. # Find a good install program. We prefer a C program (faster),
  7165. # so one script is as good as another. But avoid the broken or
  7166. # incompatible versions:
  7167. # SysV /etc/install, /usr/sbin/install
  7168. # SunOS /usr/etc/install
  7169. # IRIX /sbin/install
  7170. # AIX /bin/install
  7171. # AmigaOS /C/install, which installs bootblocks on floppy discs
  7172. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  7173. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  7174. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  7175. # OS/2's system install, which has a completely different semantic
  7176. # ./install, which can be erroneously created by make from ./install.sh.
  7177. # Reject install programs that cannot install multiple files.
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  7179. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  7180. if test -z "$INSTALL"; then
  7181. if ${ac_cv_path_install+:} false; then :
  7182. $as_echo_n "(cached) " >&6
  7183. else
  7184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7185. for as_dir in $PATH
  7186. do
  7187. IFS=$as_save_IFS
  7188. test -z "$as_dir" && as_dir=.
  7189. # Account for people who put trailing slashes in PATH elements.
  7190. case $as_dir/ in #((
  7191. ./ | .// | /[cC]/* | \
  7192. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  7193. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  7194. /usr/ucb/* ) ;;
  7195. *)
  7196. # OSF1 and SCO ODT 3.0 have their own names for install.
  7197. # Don't use installbsd from OSF since it installs stuff as root
  7198. # by default.
  7199. for ac_prog in ginstall scoinst install; do
  7200. for ac_exec_ext in '' $ac_executable_extensions; do
  7201. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  7202. if test $ac_prog = install &&
  7203. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  7204. # AIX install. It has an incompatible calling convention.
  7205. :
  7206. elif test $ac_prog = install &&
  7207. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  7208. # program-specific install script used by HP pwplus--don't use.
  7209. :
  7210. else
  7211. rm -rf conftest.one conftest.two conftest.dir
  7212. echo one > conftest.one
  7213. echo two > conftest.two
  7214. mkdir conftest.dir
  7215. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  7216. test -s conftest.one && test -s conftest.two &&
  7217. test -s conftest.dir/conftest.one &&
  7218. test -s conftest.dir/conftest.two
  7219. then
  7220. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  7221. break 3
  7222. fi
  7223. fi
  7224. fi
  7225. done
  7226. done
  7227. ;;
  7228. esac
  7229. done
  7230. IFS=$as_save_IFS
  7231. rm -rf conftest.one conftest.two conftest.dir
  7232. fi
  7233. if test "${ac_cv_path_install+set}" = set; then
  7234. INSTALL=$ac_cv_path_install
  7235. else
  7236. # As a last resort, use the slow shell script. Don't cache a
  7237. # value for INSTALL within a source directory, because that will
  7238. # break other packages using the cache if that directory is
  7239. # removed, or if the value is a relative name.
  7240. INSTALL=$ac_install_sh
  7241. fi
  7242. fi
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  7244. $as_echo "$INSTALL" >&6; }
  7245. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  7246. # It thinks the first close brace ends the variable substitution.
  7247. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  7248. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  7249. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  7250. ac_config_headers="$ac_config_headers config.h"
  7251. ac_config_commands="$ac_config_commands default-1"
  7252. ac_config_files="$ac_config_files Makefile tcpdump.1"
  7253. cat >confcache <<\_ACEOF
  7254. # This file is a shell script that caches the results of configure
  7255. # tests run on this system so they can be shared between configure
  7256. # scripts and configure runs, see configure's option --config-cache.
  7257. # It is not useful on other systems. If it contains results you don't
  7258. # want to keep, you may remove or edit it.
  7259. #
  7260. # config.status only pays attention to the cache file if you give it
  7261. # the --recheck option to rerun configure.
  7262. #
  7263. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7264. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7265. # following values.
  7266. _ACEOF
  7267. # The following way of writing the cache mishandles newlines in values,
  7268. # but we know of no workaround that is simple, portable, and efficient.
  7269. # So, we kill variables containing newlines.
  7270. # Ultrix sh set writes to stderr and can't be redirected directly,
  7271. # and sets the high bit in the cache file unless we assign to the vars.
  7272. (
  7273. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7274. eval ac_val=\$$ac_var
  7275. case $ac_val in #(
  7276. *${as_nl}*)
  7277. case $ac_var in #(
  7278. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7279. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7280. esac
  7281. case $ac_var in #(
  7282. _ | IFS | as_nl) ;; #(
  7283. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7284. *) { eval $ac_var=; unset $ac_var;} ;;
  7285. esac ;;
  7286. esac
  7287. done
  7288. (set) 2>&1 |
  7289. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7290. *${as_nl}ac_space=\ *)
  7291. # `set' does not quote correctly, so add quotes: double-quote
  7292. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7293. sed -n \
  7294. "s/'/'\\\\''/g;
  7295. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7296. ;; #(
  7297. *)
  7298. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7299. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7300. ;;
  7301. esac |
  7302. sort
  7303. ) |
  7304. sed '
  7305. /^ac_cv_env_/b end
  7306. t clear
  7307. :clear
  7308. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7309. t end
  7310. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7311. :end' >>confcache
  7312. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7313. if test -w "$cache_file"; then
  7314. if test "x$cache_file" != "x/dev/null"; then
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7316. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7317. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7318. cat confcache >"$cache_file"
  7319. else
  7320. case $cache_file in #(
  7321. */* | ?:*)
  7322. mv -f confcache "$cache_file"$$ &&
  7323. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7324. *)
  7325. mv -f confcache "$cache_file" ;;
  7326. esac
  7327. fi
  7328. fi
  7329. else
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7331. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7332. fi
  7333. fi
  7334. rm -f confcache
  7335. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7336. # Let make expand exec_prefix.
  7337. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7338. DEFS=-DHAVE_CONFIG_H
  7339. ac_libobjs=
  7340. ac_ltlibobjs=
  7341. U=
  7342. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7343. # 1. Remove the extension, and $U if already installed.
  7344. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7345. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7346. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7347. # will be set to the directory where LIBOBJS objects are built.
  7348. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7349. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7350. done
  7351. LIBOBJS=$ac_libobjs
  7352. LTLIBOBJS=$ac_ltlibobjs
  7353. : "${CONFIG_STATUS=./config.status}"
  7354. ac_write_fail=0
  7355. ac_clean_files_save=$ac_clean_files
  7356. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7358. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7359. as_write_fail=0
  7360. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7361. #! $SHELL
  7362. # Generated by $as_me.
  7363. # Run this file to recreate the current configuration.
  7364. # Compiler output produced by configure, useful for debugging
  7365. # configure, is in config.log if it exists.
  7366. debug=false
  7367. ac_cs_recheck=false
  7368. ac_cs_silent=false
  7369. SHELL=\${CONFIG_SHELL-$SHELL}
  7370. export SHELL
  7371. _ASEOF
  7372. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7373. ## -------------------- ##
  7374. ## M4sh Initialization. ##
  7375. ## -------------------- ##
  7376. # Be more Bourne compatible
  7377. DUALCASE=1; export DUALCASE # for MKS sh
  7378. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7379. emulate sh
  7380. NULLCMD=:
  7381. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7382. # is contrary to our usage. Disable this feature.
  7383. alias -g '${1+"$@"}'='"$@"'
  7384. setopt NO_GLOB_SUBST
  7385. else
  7386. case `(set -o) 2>/dev/null` in #(
  7387. *posix*) :
  7388. set -o posix ;; #(
  7389. *) :
  7390. ;;
  7391. esac
  7392. fi
  7393. as_nl='
  7394. '
  7395. export as_nl
  7396. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7397. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7398. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7399. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7400. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7401. # but without wasting forks for bash or zsh.
  7402. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7403. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7404. as_echo='print -r --'
  7405. as_echo_n='print -rn --'
  7406. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7407. as_echo='printf %s\n'
  7408. as_echo_n='printf %s'
  7409. else
  7410. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7411. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7412. as_echo_n='/usr/ucb/echo -n'
  7413. else
  7414. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7415. as_echo_n_body='eval
  7416. arg=$1;
  7417. case $arg in #(
  7418. *"$as_nl"*)
  7419. expr "X$arg" : "X\\(.*\\)$as_nl";
  7420. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7421. esac;
  7422. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7423. '
  7424. export as_echo_n_body
  7425. as_echo_n='sh -c $as_echo_n_body as_echo'
  7426. fi
  7427. export as_echo_body
  7428. as_echo='sh -c $as_echo_body as_echo'
  7429. fi
  7430. # The user is always right.
  7431. if test "${PATH_SEPARATOR+set}" != set; then
  7432. PATH_SEPARATOR=:
  7433. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7434. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7435. PATH_SEPARATOR=';'
  7436. }
  7437. fi
  7438. # IFS
  7439. # We need space, tab and new line, in precisely that order. Quoting is
  7440. # there to prevent editors from complaining about space-tab.
  7441. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7442. # splitting by setting IFS to empty value.)
  7443. IFS=" "" $as_nl"
  7444. # Find who we are. Look in the path if we contain no directory separator.
  7445. as_myself=
  7446. case $0 in #((
  7447. *[\\/]* ) as_myself=$0 ;;
  7448. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7449. for as_dir in $PATH
  7450. do
  7451. IFS=$as_save_IFS
  7452. test -z "$as_dir" && as_dir=.
  7453. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7454. done
  7455. IFS=$as_save_IFS
  7456. ;;
  7457. esac
  7458. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7459. # in which case we are not to be found in the path.
  7460. if test "x$as_myself" = x; then
  7461. as_myself=$0
  7462. fi
  7463. if test ! -f "$as_myself"; then
  7464. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7465. exit 1
  7466. fi
  7467. # Unset variables that we do not need and which cause bugs (e.g. in
  7468. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7469. # suppresses any "Segmentation fault" message there. '((' could
  7470. # trigger a bug in pdksh 5.2.14.
  7471. for as_var in BASH_ENV ENV MAIL MAILPATH
  7472. do eval test x\${$as_var+set} = xset \
  7473. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7474. done
  7475. PS1='$ '
  7476. PS2='> '
  7477. PS4='+ '
  7478. # NLS nuisances.
  7479. LC_ALL=C
  7480. export LC_ALL
  7481. LANGUAGE=C
  7482. export LANGUAGE
  7483. # CDPATH.
  7484. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7485. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7486. # ----------------------------------------
  7487. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7488. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7489. # script with STATUS, using 1 if that was 0.
  7490. as_fn_error ()
  7491. {
  7492. as_status=$1; test $as_status -eq 0 && as_status=1
  7493. if test "$4"; then
  7494. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7495. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7496. fi
  7497. $as_echo "$as_me: error: $2" >&2
  7498. as_fn_exit $as_status
  7499. } # as_fn_error
  7500. # as_fn_set_status STATUS
  7501. # -----------------------
  7502. # Set $? to STATUS, without forking.
  7503. as_fn_set_status ()
  7504. {
  7505. return $1
  7506. } # as_fn_set_status
  7507. # as_fn_exit STATUS
  7508. # -----------------
  7509. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7510. as_fn_exit ()
  7511. {
  7512. set +e
  7513. as_fn_set_status $1
  7514. exit $1
  7515. } # as_fn_exit
  7516. # as_fn_unset VAR
  7517. # ---------------
  7518. # Portably unset VAR.
  7519. as_fn_unset ()
  7520. {
  7521. { eval $1=; unset $1;}
  7522. }
  7523. as_unset=as_fn_unset
  7524. # as_fn_append VAR VALUE
  7525. # ----------------------
  7526. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7527. # advantage of any shell optimizations that allow amortized linear growth over
  7528. # repeated appends, instead of the typical quadratic growth present in naive
  7529. # implementations.
  7530. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7531. eval 'as_fn_append ()
  7532. {
  7533. eval $1+=\$2
  7534. }'
  7535. else
  7536. as_fn_append ()
  7537. {
  7538. eval $1=\$$1\$2
  7539. }
  7540. fi # as_fn_append
  7541. # as_fn_arith ARG...
  7542. # ------------------
  7543. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7544. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7545. # must be portable across $(()) and expr.
  7546. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7547. eval 'as_fn_arith ()
  7548. {
  7549. as_val=$(( $* ))
  7550. }'
  7551. else
  7552. as_fn_arith ()
  7553. {
  7554. as_val=`expr "$@" || test $? -eq 1`
  7555. }
  7556. fi # as_fn_arith
  7557. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7558. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7559. as_expr=expr
  7560. else
  7561. as_expr=false
  7562. fi
  7563. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7564. as_basename=basename
  7565. else
  7566. as_basename=false
  7567. fi
  7568. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7569. as_dirname=dirname
  7570. else
  7571. as_dirname=false
  7572. fi
  7573. as_me=`$as_basename -- "$0" ||
  7574. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7575. X"$0" : 'X\(//\)$' \| \
  7576. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7577. $as_echo X/"$0" |
  7578. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7579. s//\1/
  7580. q
  7581. }
  7582. /^X\/\(\/\/\)$/{
  7583. s//\1/
  7584. q
  7585. }
  7586. /^X\/\(\/\).*/{
  7587. s//\1/
  7588. q
  7589. }
  7590. s/.*/./; q'`
  7591. # Avoid depending upon Character Ranges.
  7592. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7593. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7594. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7595. as_cr_digits='0123456789'
  7596. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7597. ECHO_C= ECHO_N= ECHO_T=
  7598. case `echo -n x` in #(((((
  7599. -n*)
  7600. case `echo 'xy\c'` in
  7601. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7602. xy) ECHO_C='\c';;
  7603. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7604. ECHO_T=' ';;
  7605. esac;;
  7606. *)
  7607. ECHO_N='-n';;
  7608. esac
  7609. rm -f conf$$ conf$$.exe conf$$.file
  7610. if test -d conf$$.dir; then
  7611. rm -f conf$$.dir/conf$$.file
  7612. else
  7613. rm -f conf$$.dir
  7614. mkdir conf$$.dir 2>/dev/null
  7615. fi
  7616. if (echo >conf$$.file) 2>/dev/null; then
  7617. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7618. as_ln_s='ln -s'
  7619. # ... but there are two gotchas:
  7620. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7621. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7622. # In both cases, we have to default to `cp -pR'.
  7623. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7624. as_ln_s='cp -pR'
  7625. elif ln conf$$.file conf$$ 2>/dev/null; then
  7626. as_ln_s=ln
  7627. else
  7628. as_ln_s='cp -pR'
  7629. fi
  7630. else
  7631. as_ln_s='cp -pR'
  7632. fi
  7633. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7634. rmdir conf$$.dir 2>/dev/null
  7635. # as_fn_mkdir_p
  7636. # -------------
  7637. # Create "$as_dir" as a directory, including parents if necessary.
  7638. as_fn_mkdir_p ()
  7639. {
  7640. case $as_dir in #(
  7641. -*) as_dir=./$as_dir;;
  7642. esac
  7643. test -d "$as_dir" || eval $as_mkdir_p || {
  7644. as_dirs=
  7645. while :; do
  7646. case $as_dir in #(
  7647. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7648. *) as_qdir=$as_dir;;
  7649. esac
  7650. as_dirs="'$as_qdir' $as_dirs"
  7651. as_dir=`$as_dirname -- "$as_dir" ||
  7652. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7653. X"$as_dir" : 'X\(//\)[^/]' \| \
  7654. X"$as_dir" : 'X\(//\)$' \| \
  7655. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7656. $as_echo X"$as_dir" |
  7657. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7658. s//\1/
  7659. q
  7660. }
  7661. /^X\(\/\/\)[^/].*/{
  7662. s//\1/
  7663. q
  7664. }
  7665. /^X\(\/\/\)$/{
  7666. s//\1/
  7667. q
  7668. }
  7669. /^X\(\/\).*/{
  7670. s//\1/
  7671. q
  7672. }
  7673. s/.*/./; q'`
  7674. test -d "$as_dir" && break
  7675. done
  7676. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7677. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7678. } # as_fn_mkdir_p
  7679. if mkdir -p . 2>/dev/null; then
  7680. as_mkdir_p='mkdir -p "$as_dir"'
  7681. else
  7682. test -d ./-p && rmdir ./-p
  7683. as_mkdir_p=false
  7684. fi
  7685. # as_fn_executable_p FILE
  7686. # -----------------------
  7687. # Test if FILE is an executable regular file.
  7688. as_fn_executable_p ()
  7689. {
  7690. test -f "$1" && test -x "$1"
  7691. } # as_fn_executable_p
  7692. as_test_x='test -x'
  7693. as_executable_p=as_fn_executable_p
  7694. # Sed expression to map a string onto a valid CPP name.
  7695. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7696. # Sed expression to map a string onto a valid variable name.
  7697. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7698. exec 6>&1
  7699. ## ----------------------------------- ##
  7700. ## Main body of $CONFIG_STATUS script. ##
  7701. ## ----------------------------------- ##
  7702. _ASEOF
  7703. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7704. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7705. # Save the log message, to keep $0 and so on meaningful, and to
  7706. # report actual input values of CONFIG_FILES etc. instead of their
  7707. # values after options handling.
  7708. ac_log="
  7709. This file was extended by $as_me, which was
  7710. generated by GNU Autoconf 2.69. Invocation command line was
  7711. CONFIG_FILES = $CONFIG_FILES
  7712. CONFIG_HEADERS = $CONFIG_HEADERS
  7713. CONFIG_LINKS = $CONFIG_LINKS
  7714. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7715. $ $0 $@
  7716. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7717. "
  7718. _ACEOF
  7719. case $ac_config_files in *"
  7720. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7721. esac
  7722. case $ac_config_headers in *"
  7723. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7724. esac
  7725. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7726. # Files that config.status was made for.
  7727. config_files="$ac_config_files"
  7728. config_headers="$ac_config_headers"
  7729. config_commands="$ac_config_commands"
  7730. _ACEOF
  7731. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7732. ac_cs_usage="\
  7733. \`$as_me' instantiates files and other configuration actions
  7734. from templates according to the current configuration. Unless the files
  7735. and actions are specified as TAGs, all are instantiated by default.
  7736. Usage: $0 [OPTION]... [TAG]...
  7737. -h, --help print this help, then exit
  7738. -V, --version print version number and configuration settings, then exit
  7739. --config print configuration, then exit
  7740. -q, --quiet, --silent
  7741. do not print progress messages
  7742. -d, --debug don't remove temporary files
  7743. --recheck update $as_me by reconfiguring in the same conditions
  7744. --file=FILE[:TEMPLATE]
  7745. instantiate the configuration file FILE
  7746. --header=FILE[:TEMPLATE]
  7747. instantiate the configuration header FILE
  7748. Configuration files:
  7749. $config_files
  7750. Configuration headers:
  7751. $config_headers
  7752. Configuration commands:
  7753. $config_commands
  7754. Report bugs to the package provider."
  7755. _ACEOF
  7756. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7757. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7758. ac_cs_version="\\
  7759. config.status
  7760. configured by $0, generated by GNU Autoconf 2.69,
  7761. with options \\"\$ac_cs_config\\"
  7762. Copyright (C) 2012 Free Software Foundation, Inc.
  7763. This config.status script is free software; the Free Software Foundation
  7764. gives unlimited permission to copy, distribute and modify it."
  7765. ac_pwd='$ac_pwd'
  7766. srcdir='$srcdir'
  7767. INSTALL='$INSTALL'
  7768. test -n "\$AWK" || AWK=awk
  7769. _ACEOF
  7770. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7771. # The default lists apply if the user does not specify any file.
  7772. ac_need_defaults=:
  7773. while test $# != 0
  7774. do
  7775. case $1 in
  7776. --*=?*)
  7777. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7778. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7779. ac_shift=:
  7780. ;;
  7781. --*=)
  7782. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7783. ac_optarg=
  7784. ac_shift=:
  7785. ;;
  7786. *)
  7787. ac_option=$1
  7788. ac_optarg=$2
  7789. ac_shift=shift
  7790. ;;
  7791. esac
  7792. case $ac_option in
  7793. # Handling of the options.
  7794. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7795. ac_cs_recheck=: ;;
  7796. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7797. $as_echo "$ac_cs_version"; exit ;;
  7798. --config | --confi | --conf | --con | --co | --c )
  7799. $as_echo "$ac_cs_config"; exit ;;
  7800. --debug | --debu | --deb | --de | --d | -d )
  7801. debug=: ;;
  7802. --file | --fil | --fi | --f )
  7803. $ac_shift
  7804. case $ac_optarg in
  7805. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7806. '') as_fn_error $? "missing file argument" ;;
  7807. esac
  7808. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7809. ac_need_defaults=false;;
  7810. --header | --heade | --head | --hea )
  7811. $ac_shift
  7812. case $ac_optarg in
  7813. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7814. esac
  7815. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7816. ac_need_defaults=false;;
  7817. --he | --h)
  7818. # Conflict between --help and --header
  7819. as_fn_error $? "ambiguous option: \`$1'
  7820. Try \`$0 --help' for more information.";;
  7821. --help | --hel | -h )
  7822. $as_echo "$ac_cs_usage"; exit ;;
  7823. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7824. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7825. ac_cs_silent=: ;;
  7826. # This is an error.
  7827. -*) as_fn_error $? "unrecognized option: \`$1'
  7828. Try \`$0 --help' for more information." ;;
  7829. *) as_fn_append ac_config_targets " $1"
  7830. ac_need_defaults=false ;;
  7831. esac
  7832. shift
  7833. done
  7834. ac_configure_extra_args=
  7835. if $ac_cs_silent; then
  7836. exec 6>/dev/null
  7837. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7838. fi
  7839. _ACEOF
  7840. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7841. if \$ac_cs_recheck; then
  7842. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7843. shift
  7844. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7845. CONFIG_SHELL='$SHELL'
  7846. export CONFIG_SHELL
  7847. exec "\$@"
  7848. fi
  7849. _ACEOF
  7850. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7851. exec 5>>config.log
  7852. {
  7853. echo
  7854. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7855. ## Running $as_me. ##
  7856. _ASBOX
  7857. $as_echo "$ac_log"
  7858. } >&5
  7859. _ACEOF
  7860. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7861. #
  7862. # INIT-COMMANDS
  7863. #
  7864. _ACEOF
  7865. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7866. # Handling of arguments.
  7867. for ac_config_target in $ac_config_targets
  7868. do
  7869. case $ac_config_target in
  7870. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  7871. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  7872. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7873. "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
  7874. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7875. esac
  7876. done
  7877. # If the user did not use the arguments to specify the items to instantiate,
  7878. # then the envvar interface is used. Set only those that are not.
  7879. # We use the long form for the default assignment because of an extremely
  7880. # bizarre bug on SunOS 4.1.3.
  7881. if $ac_need_defaults; then
  7882. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7883. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7884. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  7885. fi
  7886. # Have a temporary directory for convenience. Make it in the build tree
  7887. # simply because there is no reason against having it here, and in addition,
  7888. # creating and moving files from /tmp can sometimes cause problems.
  7889. # Hook for its removal unless debugging.
  7890. # Note that there is a small window in which the directory will not be cleaned:
  7891. # after its creation but before its name has been assigned to `$tmp'.
  7892. $debug ||
  7893. {
  7894. tmp= ac_tmp=
  7895. trap 'exit_status=$?
  7896. : "${ac_tmp:=$tmp}"
  7897. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7898. ' 0
  7899. trap 'as_fn_exit 1' 1 2 13 15
  7900. }
  7901. # Create a (secure) tmp directory for tmp files.
  7902. {
  7903. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7904. test -d "$tmp"
  7905. } ||
  7906. {
  7907. tmp=./conf$$-$RANDOM
  7908. (umask 077 && mkdir "$tmp")
  7909. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7910. ac_tmp=$tmp
  7911. # Set up the scripts for CONFIG_FILES section.
  7912. # No need to generate them if there are no CONFIG_FILES.
  7913. # This happens for instance with `./config.status config.h'.
  7914. if test -n "$CONFIG_FILES"; then
  7915. ac_cr=`echo X | tr X '\015'`
  7916. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7917. # But we know of no other shell where ac_cr would be empty at this
  7918. # point, so we can use a bashism as a fallback.
  7919. if test "x$ac_cr" = x; then
  7920. eval ac_cr=\$\'\\r\'
  7921. fi
  7922. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7923. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7924. ac_cs_awk_cr='\\r'
  7925. else
  7926. ac_cs_awk_cr=$ac_cr
  7927. fi
  7928. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7929. _ACEOF
  7930. {
  7931. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7932. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7933. echo "_ACEOF"
  7934. } >conf$$subs.sh ||
  7935. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7936. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7937. ac_delim='%!_!# '
  7938. for ac_last_try in false false false false false :; do
  7939. . ./conf$$subs.sh ||
  7940. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7941. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7942. if test $ac_delim_n = $ac_delim_num; then
  7943. break
  7944. elif $ac_last_try; then
  7945. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7946. else
  7947. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7948. fi
  7949. done
  7950. rm -f conf$$subs.sh
  7951. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7952. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7953. _ACEOF
  7954. sed -n '
  7955. h
  7956. s/^/S["/; s/!.*/"]=/
  7957. p
  7958. g
  7959. s/^[^!]*!//
  7960. :repl
  7961. t repl
  7962. s/'"$ac_delim"'$//
  7963. t delim
  7964. :nl
  7965. h
  7966. s/\(.\{148\}\)..*/\1/
  7967. t more1
  7968. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7969. p
  7970. n
  7971. b repl
  7972. :more1
  7973. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7974. p
  7975. g
  7976. s/.\{148\}//
  7977. t nl
  7978. :delim
  7979. h
  7980. s/\(.\{148\}\)..*/\1/
  7981. t more2
  7982. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7983. p
  7984. b
  7985. :more2
  7986. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7987. p
  7988. g
  7989. s/.\{148\}//
  7990. t delim
  7991. ' <conf$$subs.awk | sed '
  7992. /^[^""]/{
  7993. N
  7994. s/\n//
  7995. }
  7996. ' >>$CONFIG_STATUS || ac_write_fail=1
  7997. rm -f conf$$subs.awk
  7998. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7999. _ACAWK
  8000. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8001. for (key in S) S_is_set[key] = 1
  8002. FS = ""
  8003. }
  8004. {
  8005. line = $ 0
  8006. nfields = split(line, field, "@")
  8007. substed = 0
  8008. len = length(field[1])
  8009. for (i = 2; i < nfields; i++) {
  8010. key = field[i]
  8011. keylen = length(key)
  8012. if (S_is_set[key]) {
  8013. value = S[key]
  8014. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8015. len += length(value) + length(field[++i])
  8016. substed = 1
  8017. } else
  8018. len += 1 + keylen
  8019. }
  8020. print line
  8021. }
  8022. _ACAWK
  8023. _ACEOF
  8024. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8025. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8026. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8027. else
  8028. cat
  8029. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8030. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8031. _ACEOF
  8032. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8033. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8034. # trailing colons and then remove the whole line if VPATH becomes empty
  8035. # (actually we leave an empty line to preserve line numbers).
  8036. if test "x$srcdir" = x.; then
  8037. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8038. h
  8039. s///
  8040. s/^/:/
  8041. s/[ ]*$/:/
  8042. s/:\$(srcdir):/:/g
  8043. s/:\${srcdir}:/:/g
  8044. s/:@srcdir@:/:/g
  8045. s/^:*//
  8046. s/:*$//
  8047. x
  8048. s/\(=[ ]*\).*/\1/
  8049. G
  8050. s/\n//
  8051. s/^[^=]*=[ ]*$//
  8052. }'
  8053. fi
  8054. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8055. fi # test -n "$CONFIG_FILES"
  8056. # Set up the scripts for CONFIG_HEADERS section.
  8057. # No need to generate them if there are no CONFIG_HEADERS.
  8058. # This happens for instance with `./config.status Makefile'.
  8059. if test -n "$CONFIG_HEADERS"; then
  8060. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8061. BEGIN {
  8062. _ACEOF
  8063. # Transform confdefs.h into an awk script `defines.awk', embedded as
  8064. # here-document in config.status, that substitutes the proper values into
  8065. # config.h.in to produce config.h.
  8066. # Create a delimiter string that does not exist in confdefs.h, to ease
  8067. # handling of long lines.
  8068. ac_delim='%!_!# '
  8069. for ac_last_try in false false :; do
  8070. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  8071. if test -z "$ac_tt"; then
  8072. break
  8073. elif $ac_last_try; then
  8074. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8075. else
  8076. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8077. fi
  8078. done
  8079. # For the awk script, D is an array of macro values keyed by name,
  8080. # likewise P contains macro parameters if any. Preserve backslash
  8081. # newline sequences.
  8082. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8083. sed -n '
  8084. s/.\{148\}/&'"$ac_delim"'/g
  8085. t rset
  8086. :rset
  8087. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8088. t def
  8089. d
  8090. :def
  8091. s/\\$//
  8092. t bsnl
  8093. s/["\\]/\\&/g
  8094. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8095. D["\1"]=" \3"/p
  8096. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8097. d
  8098. :bsnl
  8099. s/["\\]/\\&/g
  8100. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8101. D["\1"]=" \3\\\\\\n"\\/p
  8102. t cont
  8103. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8104. t cont
  8105. d
  8106. :cont
  8107. n
  8108. s/.\{148\}/&'"$ac_delim"'/g
  8109. t clear
  8110. :clear
  8111. s/\\$//
  8112. t bsnlc
  8113. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8114. d
  8115. :bsnlc
  8116. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8117. b cont
  8118. ' <confdefs.h | sed '
  8119. s/'"$ac_delim"'/"\\\
  8120. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8121. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8122. for (key in D) D_is_set[key] = 1
  8123. FS = ""
  8124. }
  8125. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8126. line = \$ 0
  8127. split(line, arg, " ")
  8128. if (arg[1] == "#") {
  8129. defundef = arg[2]
  8130. mac1 = arg[3]
  8131. } else {
  8132. defundef = substr(arg[1], 2)
  8133. mac1 = arg[2]
  8134. }
  8135. split(mac1, mac2, "(") #)
  8136. macro = mac2[1]
  8137. prefix = substr(line, 1, index(line, defundef) - 1)
  8138. if (D_is_set[macro]) {
  8139. # Preserve the white space surrounding the "#".
  8140. print prefix "define", macro P[macro] D[macro]
  8141. next
  8142. } else {
  8143. # Replace #undef with comments. This is necessary, for example,
  8144. # in the case of _POSIX_SOURCE, which is predefined and required
  8145. # on some systems where configure will not decide to define it.
  8146. if (defundef == "undef") {
  8147. print "/*", prefix defundef, macro, "*/"
  8148. next
  8149. }
  8150. }
  8151. }
  8152. { print }
  8153. _ACAWK
  8154. _ACEOF
  8155. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8156. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8157. fi # test -n "$CONFIG_HEADERS"
  8158. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  8159. shift
  8160. for ac_tag
  8161. do
  8162. case $ac_tag in
  8163. :[FHLC]) ac_mode=$ac_tag; continue;;
  8164. esac
  8165. case $ac_mode$ac_tag in
  8166. :[FHL]*:*);;
  8167. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8168. :[FH]-) ac_tag=-:-;;
  8169. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8170. esac
  8171. ac_save_IFS=$IFS
  8172. IFS=:
  8173. set x $ac_tag
  8174. IFS=$ac_save_IFS
  8175. shift
  8176. ac_file=$1
  8177. shift
  8178. case $ac_mode in
  8179. :L) ac_source=$1;;
  8180. :[FH])
  8181. ac_file_inputs=
  8182. for ac_f
  8183. do
  8184. case $ac_f in
  8185. -) ac_f="$ac_tmp/stdin";;
  8186. *) # Look for the file first in the build tree, then in the source tree
  8187. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8188. # because $ac_f cannot contain `:'.
  8189. test -f "$ac_f" ||
  8190. case $ac_f in
  8191. [\\/$]*) false;;
  8192. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8193. esac ||
  8194. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8195. esac
  8196. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8197. as_fn_append ac_file_inputs " '$ac_f'"
  8198. done
  8199. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8200. # use $as_me), people would be surprised to read:
  8201. # /* config.h. Generated by config.status. */
  8202. configure_input='Generated from '`
  8203. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8204. `' by configure.'
  8205. if test x"$ac_file" != x-; then
  8206. configure_input="$ac_file. $configure_input"
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8208. $as_echo "$as_me: creating $ac_file" >&6;}
  8209. fi
  8210. # Neutralize special characters interpreted by sed in replacement strings.
  8211. case $configure_input in #(
  8212. *\&* | *\|* | *\\* )
  8213. ac_sed_conf_input=`$as_echo "$configure_input" |
  8214. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8215. *) ac_sed_conf_input=$configure_input;;
  8216. esac
  8217. case $ac_tag in
  8218. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8219. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8220. esac
  8221. ;;
  8222. esac
  8223. ac_dir=`$as_dirname -- "$ac_file" ||
  8224. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8225. X"$ac_file" : 'X\(//\)[^/]' \| \
  8226. X"$ac_file" : 'X\(//\)$' \| \
  8227. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8228. $as_echo X"$ac_file" |
  8229. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8230. s//\1/
  8231. q
  8232. }
  8233. /^X\(\/\/\)[^/].*/{
  8234. s//\1/
  8235. q
  8236. }
  8237. /^X\(\/\/\)$/{
  8238. s//\1/
  8239. q
  8240. }
  8241. /^X\(\/\).*/{
  8242. s//\1/
  8243. q
  8244. }
  8245. s/.*/./; q'`
  8246. as_dir="$ac_dir"; as_fn_mkdir_p
  8247. ac_builddir=.
  8248. case "$ac_dir" in
  8249. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8250. *)
  8251. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8252. # A ".." for each directory in $ac_dir_suffix.
  8253. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8254. case $ac_top_builddir_sub in
  8255. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8256. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8257. esac ;;
  8258. esac
  8259. ac_abs_top_builddir=$ac_pwd
  8260. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8261. # for backward compatibility:
  8262. ac_top_builddir=$ac_top_build_prefix
  8263. case $srcdir in
  8264. .) # We are building in place.
  8265. ac_srcdir=.
  8266. ac_top_srcdir=$ac_top_builddir_sub
  8267. ac_abs_top_srcdir=$ac_pwd ;;
  8268. [\\/]* | ?:[\\/]* ) # Absolute name.
  8269. ac_srcdir=$srcdir$ac_dir_suffix;
  8270. ac_top_srcdir=$srcdir
  8271. ac_abs_top_srcdir=$srcdir ;;
  8272. *) # Relative name.
  8273. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8274. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8275. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8276. esac
  8277. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8278. case $ac_mode in
  8279. :F)
  8280. #
  8281. # CONFIG_FILE
  8282. #
  8283. case $INSTALL in
  8284. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8285. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  8286. esac
  8287. _ACEOF
  8288. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8289. # If the template does not know about datarootdir, expand it.
  8290. # FIXME: This hack should be removed a few years after 2.60.
  8291. ac_datarootdir_hack=; ac_datarootdir_seen=
  8292. ac_sed_dataroot='
  8293. /datarootdir/ {
  8294. p
  8295. q
  8296. }
  8297. /@datadir@/p
  8298. /@docdir@/p
  8299. /@infodir@/p
  8300. /@localedir@/p
  8301. /@mandir@/p'
  8302. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8303. *datarootdir*) ac_datarootdir_seen=yes;;
  8304. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8305. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8306. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8307. _ACEOF
  8308. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8309. ac_datarootdir_hack='
  8310. s&@datadir@&$datadir&g
  8311. s&@docdir@&$docdir&g
  8312. s&@infodir@&$infodir&g
  8313. s&@localedir@&$localedir&g
  8314. s&@mandir@&$mandir&g
  8315. s&\\\${datarootdir}&$datarootdir&g' ;;
  8316. esac
  8317. _ACEOF
  8318. # Neutralize VPATH when `$srcdir' = `.'.
  8319. # Shell code in configure.ac might set extrasub.
  8320. # FIXME: do we really want to maintain this feature?
  8321. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8322. ac_sed_extra="$ac_vpsub
  8323. $extrasub
  8324. _ACEOF
  8325. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8326. :t
  8327. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8328. s|@configure_input@|$ac_sed_conf_input|;t t
  8329. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8330. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8331. s&@srcdir@&$ac_srcdir&;t t
  8332. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8333. s&@top_srcdir@&$ac_top_srcdir&;t t
  8334. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8335. s&@builddir@&$ac_builddir&;t t
  8336. s&@abs_builddir@&$ac_abs_builddir&;t t
  8337. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8338. s&@INSTALL@&$ac_INSTALL&;t t
  8339. $ac_datarootdir_hack
  8340. "
  8341. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8342. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8343. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8344. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8345. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8346. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8348. which seems to be undefined. Please make sure it is defined" >&5
  8349. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8350. which seems to be undefined. Please make sure it is defined" >&2;}
  8351. rm -f "$ac_tmp/stdin"
  8352. case $ac_file in
  8353. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8354. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8355. esac \
  8356. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8357. ;;
  8358. :H)
  8359. #
  8360. # CONFIG_HEADER
  8361. #
  8362. if test x"$ac_file" != x-; then
  8363. {
  8364. $as_echo "/* $configure_input */" \
  8365. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8366. } >"$ac_tmp/config.h" \
  8367. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8368. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8369. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8370. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8371. else
  8372. rm -f "$ac_file"
  8373. mv "$ac_tmp/config.h" "$ac_file" \
  8374. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8375. fi
  8376. else
  8377. $as_echo "/* $configure_input */" \
  8378. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8379. || as_fn_error $? "could not create -" "$LINENO" 5
  8380. fi
  8381. ;;
  8382. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  8383. $as_echo "$as_me: executing $ac_file commands" >&6;}
  8384. ;;
  8385. esac
  8386. case $ac_file$ac_mode in
  8387. "default-1":C) if test -f .devel; then
  8388. echo timestamp > stamp-h
  8389. cat Makefile-devel-adds >> Makefile
  8390. make depend
  8391. fi ;;
  8392. esac
  8393. done # for ac_tag
  8394. as_fn_exit 0
  8395. _ACEOF
  8396. ac_clean_files=$ac_clean_files_save
  8397. test $ac_write_fail = 0 ||
  8398. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8399. # configure is writing to config.log, and then calls config.status.
  8400. # config.status does its own redirection, appending to config.log.
  8401. # Unfortunately, on DOS this fails, as config.log is still kept open
  8402. # by configure, so config.status won't be able to write to it; its
  8403. # output is simply discarded. So we exec the FD to /dev/null,
  8404. # effectively closing config.log, so it can be properly (re)opened and
  8405. # appended to by config.status. When coming back to configure, we
  8406. # need to make the FD available again.
  8407. if test "$no_create" != yes; then
  8408. ac_cs_success=:
  8409. ac_config_status_args=
  8410. test "$silent" = yes &&
  8411. ac_config_status_args="$ac_config_status_args --quiet"
  8412. exec 5>/dev/null
  8413. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8414. exec 5>>config.log
  8415. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8416. # would make configure fail if this is the last instruction.
  8417. $ac_cs_success || as_fn_exit 1
  8418. fi
  8419. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8421. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8422. fi
  8423. exit 0