autotool.patch 325 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047
  1. diff -Nur libnids-1.23.orig/aclocal.m4 libnids-1.23/aclocal.m4
  2. --- libnids-1.23.orig/aclocal.m4 2006-05-01 19:14:51.000000000 +0200
  3. +++ libnids-1.23/aclocal.m4 2010-02-18 22:19:09.952858667 +0100
  4. @@ -1,833 +1,15 @@
  5. -dnl aclocal.m4 generated automatically by aclocal 1.4-p6
  6. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  7. -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  8. -dnl This file is free software; the Free Software Foundation
  9. -dnl gives unlimited permission to copy and/or distribute it,
  10. -dnl with or without modifications, as long as this notice is preserved.
  11. -
  12. -dnl This program is distributed in the hope that it will be useful,
  13. -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  14. -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  15. -dnl PARTICULAR PURPOSE.
  16. -
  17. -# lib-prefix.m4 serial 4 (gettext-0.14.2)
  18. -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  19. -dnl This file is free software; the Free Software Foundation
  20. -dnl gives unlimited permission to copy and/or distribute it,
  21. -dnl with or without modifications, as long as this notice is preserved.
  22. -
  23. -dnl From Bruno Haible.
  24. -
  25. -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
  26. -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
  27. -dnl require excessive bracketing.
  28. -ifdef([AC_HELP_STRING],
  29. -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
  30. -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
  31. -
  32. -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
  33. -dnl to access previously installed libraries. The basic assumption is that
  34. -dnl a user will want packages to use other packages he previously installed
  35. -dnl with the same --prefix option.
  36. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
  37. -dnl libraries, but is otherwise very convenient.
  38. -AC_DEFUN([AC_LIB_PREFIX],
  39. -[
  40. - AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
  41. - AC_REQUIRE([AC_PROG_CC])
  42. - AC_REQUIRE([AC_CANONICAL_HOST])
  43. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  44. - dnl By default, look in $includedir and $libdir.
  45. - use_additional=yes
  46. - AC_LIB_WITH_FINAL_PREFIX([
  47. - eval additional_includedir=\"$includedir\"
  48. - eval additional_libdir=\"$libdir\"
  49. - ])
  50. - AC_LIB_ARG_WITH([lib-prefix],
  51. -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
  52. - --without-lib-prefix don't search for libraries in includedir and libdir],
  53. -[
  54. - if test "X$withval" = "Xno"; then
  55. - use_additional=no
  56. - else
  57. - if test "X$withval" = "X"; then
  58. - AC_LIB_WITH_FINAL_PREFIX([
  59. - eval additional_includedir=\"$includedir\"
  60. - eval additional_libdir=\"$libdir\"
  61. - ])
  62. - else
  63. - additional_includedir="$withval/include"
  64. - additional_libdir="$withval/lib"
  65. - fi
  66. - fi
  67. -])
  68. - if test $use_additional = yes; then
  69. - dnl Potentially add $additional_includedir to $CPPFLAGS.
  70. - dnl But don't add it
  71. - dnl 1. if it's the standard /usr/include,
  72. - dnl 2. if it's already present in $CPPFLAGS,
  73. - dnl 3. if it's /usr/local/include and we are using GCC on Linux,
  74. - dnl 4. if it doesn't exist as a directory.
  75. - if test "X$additional_includedir" != "X/usr/include"; then
  76. - haveit=
  77. - for x in $CPPFLAGS; do
  78. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  79. - if test "X$x" = "X-I$additional_includedir"; then
  80. - haveit=yes
  81. - break
  82. - fi
  83. - done
  84. - if test -z "$haveit"; then
  85. - if test "X$additional_includedir" = "X/usr/local/include"; then
  86. - if test -n "$GCC"; then
  87. - case $host_os in
  88. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  89. - esac
  90. - fi
  91. - fi
  92. - if test -z "$haveit"; then
  93. - if test -d "$additional_includedir"; then
  94. - dnl Really add $additional_includedir to $CPPFLAGS.
  95. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
  96. - fi
  97. - fi
  98. - fi
  99. - fi
  100. - dnl Potentially add $additional_libdir to $LDFLAGS.
  101. - dnl But don't add it
  102. - dnl 1. if it's the standard /usr/lib,
  103. - dnl 2. if it's already present in $LDFLAGS,
  104. - dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
  105. - dnl 4. if it doesn't exist as a directory.
  106. - if test "X$additional_libdir" != "X/usr/lib"; then
  107. - haveit=
  108. - for x in $LDFLAGS; do
  109. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  110. - if test "X$x" = "X-L$additional_libdir"; then
  111. - haveit=yes
  112. - break
  113. - fi
  114. - done
  115. - if test -z "$haveit"; then
  116. - if test "X$additional_libdir" = "X/usr/local/lib"; then
  117. - if test -n "$GCC"; then
  118. - case $host_os in
  119. - linux*) haveit=yes;;
  120. - esac
  121. - fi
  122. - fi
  123. - if test -z "$haveit"; then
  124. - if test -d "$additional_libdir"; then
  125. - dnl Really add $additional_libdir to $LDFLAGS.
  126. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
  127. - fi
  128. - fi
  129. - fi
  130. - fi
  131. - fi
  132. -])
  133. -
  134. -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
  135. -dnl acl_final_exec_prefix, containing the values to which $prefix and
  136. -dnl $exec_prefix will expand at the end of the configure script.
  137. -AC_DEFUN([AC_LIB_PREPARE_PREFIX],
  138. -[
  139. - dnl Unfortunately, prefix and exec_prefix get only finally determined
  140. - dnl at the end of configure.
  141. - if test "X$prefix" = "XNONE"; then
  142. - acl_final_prefix="$ac_default_prefix"
  143. - else
  144. - acl_final_prefix="$prefix"
  145. - fi
  146. - if test "X$exec_prefix" = "XNONE"; then
  147. - acl_final_exec_prefix='${prefix}'
  148. - else
  149. - acl_final_exec_prefix="$exec_prefix"
  150. - fi
  151. - acl_save_prefix="$prefix"
  152. - prefix="$acl_final_prefix"
  153. - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  154. - prefix="$acl_save_prefix"
  155. -])
  156. -
  157. -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
  158. -dnl variables prefix and exec_prefix bound to the values they will have
  159. -dnl at the end of the configure script.
  160. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
  161. -[
  162. - acl_save_prefix="$prefix"
  163. - prefix="$acl_final_prefix"
  164. - acl_save_exec_prefix="$exec_prefix"
  165. - exec_prefix="$acl_final_exec_prefix"
  166. - $1
  167. - exec_prefix="$acl_save_exec_prefix"
  168. - prefix="$acl_save_prefix"
  169. -])
  170. -
  171. -# lib-link.m4 serial 6 (gettext-0.14.3)
  172. -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  173. -dnl This file is free software; the Free Software Foundation
  174. -dnl gives unlimited permission to copy and/or distribute it,
  175. -dnl with or without modifications, as long as this notice is preserved.
  176. -
  177. -dnl From Bruno Haible.
  178. -
  179. -AC_PREREQ(2.50)
  180. -
  181. -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  182. -dnl the libraries corresponding to explicit and implicit dependencies.
  183. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
  184. -dnl augments the CPPFLAGS variable.
  185. -AC_DEFUN([AC_LIB_LINKFLAGS],
  186. -[
  187. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  188. - AC_REQUIRE([AC_LIB_RPATH])
  189. - define([Name],[translit([$1],[./-], [___])])
  190. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  191. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  192. - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
  193. - AC_LIB_LINKFLAGS_BODY([$1], [$2])
  194. - ac_cv_lib[]Name[]_libs="$LIB[]NAME"
  195. - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
  196. - ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
  197. - ])
  198. - LIB[]NAME="$ac_cv_lib[]Name[]_libs"
  199. - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
  200. - INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
  201. - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  202. - AC_SUBST([LIB]NAME)
  203. - AC_SUBST([LTLIB]NAME)
  204. - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
  205. - dnl results of this search when this library appears as a dependency.
  206. - HAVE_LIB[]NAME=yes
  207. - undefine([Name])
  208. - undefine([NAME])
  209. -])
  210. -
  211. -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
  212. -dnl searches for libname and the libraries corresponding to explicit and
  213. -dnl implicit dependencies, together with the specified include files and
  214. -dnl the ability to compile and link the specified testcode. If found, it
  215. -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
  216. -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
  217. -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
  218. -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
  219. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
  220. -[
  221. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  222. - AC_REQUIRE([AC_LIB_RPATH])
  223. - define([Name],[translit([$1],[./-], [___])])
  224. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  225. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  226. -
  227. - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
  228. - dnl accordingly.
  229. - AC_LIB_LINKFLAGS_BODY([$1], [$2])
  230. -
  231. - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
  232. - dnl because if the user has installed lib[]Name and not disabled its use
  233. - dnl via --without-lib[]Name-prefix, he wants to use it.
  234. - ac_save_CPPFLAGS="$CPPFLAGS"
  235. - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  236. -
  237. - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
  238. - ac_save_LIBS="$LIBS"
  239. - LIBS="$LIBS $LIB[]NAME"
  240. - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
  241. - LIBS="$ac_save_LIBS"
  242. - ])
  243. - if test "$ac_cv_lib[]Name" = yes; then
  244. - HAVE_LIB[]NAME=yes
  245. - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
  246. - AC_MSG_CHECKING([how to link with lib[]$1])
  247. - AC_MSG_RESULT([$LIB[]NAME])
  248. - else
  249. - HAVE_LIB[]NAME=no
  250. - dnl If $LIB[]NAME didn't lead to a usable library, we don't need
  251. - dnl $INC[]NAME either.
  252. - CPPFLAGS="$ac_save_CPPFLAGS"
  253. - LIB[]NAME=
  254. - LTLIB[]NAME=
  255. - fi
  256. - AC_SUBST([HAVE_LIB]NAME)
  257. - AC_SUBST([LIB]NAME)
  258. - AC_SUBST([LTLIB]NAME)
  259. - undefine([Name])
  260. - undefine([NAME])
  261. -])
  262. -
  263. -dnl Determine the platform dependent parameters needed to use rpath:
  264. -dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
  265. -dnl hardcode_direct, hardcode_minus_L.
  266. -AC_DEFUN([AC_LIB_RPATH],
  267. -[
  268. - dnl Tell automake >= 1.10 to complain if config.rpath is missing.
  269. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
  270. - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
  271. - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
  272. - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
  273. - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
  274. - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
  275. - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  276. - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  277. - . ./conftest.sh
  278. - rm -f ./conftest.sh
  279. - acl_cv_rpath=done
  280. - ])
  281. - wl="$acl_cv_wl"
  282. - libext="$acl_cv_libext"
  283. - shlibext="$acl_cv_shlibext"
  284. - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  285. - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  286. - hardcode_direct="$acl_cv_hardcode_direct"
  287. - hardcode_minus_L="$acl_cv_hardcode_minus_L"
  288. - dnl Determine whether the user wants rpath handling at all.
  289. - AC_ARG_ENABLE(rpath,
  290. - [ --disable-rpath do not hardcode runtime library paths],
  291. - :, enable_rpath=yes)
  292. -])
  293. -
  294. -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
  295. -dnl the libraries corresponding to explicit and implicit dependencies.
  296. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
  297. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
  298. -[
  299. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  300. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  301. - dnl By default, look in $includedir and $libdir.
  302. - use_additional=yes
  303. - AC_LIB_WITH_FINAL_PREFIX([
  304. - eval additional_includedir=\"$includedir\"
  305. - eval additional_libdir=\"$libdir\"
  306. - ])
  307. - AC_LIB_ARG_WITH([lib$1-prefix],
  308. -[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
  309. - --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
  310. -[
  311. - if test "X$withval" = "Xno"; then
  312. - use_additional=no
  313. - else
  314. - if test "X$withval" = "X"; then
  315. - AC_LIB_WITH_FINAL_PREFIX([
  316. - eval additional_includedir=\"$includedir\"
  317. - eval additional_libdir=\"$libdir\"
  318. - ])
  319. - else
  320. - additional_includedir="$withval/include"
  321. - additional_libdir="$withval/lib"
  322. - fi
  323. - fi
  324. -])
  325. - dnl Search the library and its dependencies in $additional_libdir and
  326. - dnl $LDFLAGS. Using breadth-first-seach.
  327. - LIB[]NAME=
  328. - LTLIB[]NAME=
  329. - INC[]NAME=
  330. - rpathdirs=
  331. - ltrpathdirs=
  332. - names_already_handled=
  333. - names_next_round='$1 $2'
  334. - while test -n "$names_next_round"; do
  335. - names_this_round="$names_next_round"
  336. - names_next_round=
  337. - for name in $names_this_round; do
  338. - already_handled=
  339. - for n in $names_already_handled; do
  340. - if test "$n" = "$name"; then
  341. - already_handled=yes
  342. - break
  343. - fi
  344. - done
  345. - if test -z "$already_handled"; then
  346. - names_already_handled="$names_already_handled $name"
  347. - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
  348. - dnl or AC_LIB_HAVE_LINKFLAGS call.
  349. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  350. - eval value=\"\$HAVE_LIB$uppername\"
  351. - if test -n "$value"; then
  352. - if test "$value" = yes; then
  353. - eval value=\"\$LIB$uppername\"
  354. - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
  355. - eval value=\"\$LTLIB$uppername\"
  356. - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
  357. - else
  358. - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
  359. - dnl that this library doesn't exist. So just drop it.
  360. - :
  361. - fi
  362. - else
  363. - dnl Search the library lib$name in $additional_libdir and $LDFLAGS
  364. - dnl and the already constructed $LIBNAME/$LTLIBNAME.
  365. - found_dir=
  366. - found_la=
  367. - found_so=
  368. - found_a=
  369. - if test $use_additional = yes; then
  370. - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  371. - found_dir="$additional_libdir"
  372. - found_so="$additional_libdir/lib$name.$shlibext"
  373. - if test -f "$additional_libdir/lib$name.la"; then
  374. - found_la="$additional_libdir/lib$name.la"
  375. - fi
  376. - else
  377. - if test -f "$additional_libdir/lib$name.$libext"; then
  378. - found_dir="$additional_libdir"
  379. - found_a="$additional_libdir/lib$name.$libext"
  380. - if test -f "$additional_libdir/lib$name.la"; then
  381. - found_la="$additional_libdir/lib$name.la"
  382. - fi
  383. - fi
  384. - fi
  385. - fi
  386. - if test "X$found_dir" = "X"; then
  387. - for x in $LDFLAGS $LTLIB[]NAME; do
  388. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  389. - case "$x" in
  390. - -L*)
  391. - dir=`echo "X$x" | sed -e 's/^X-L//'`
  392. - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  393. - found_dir="$dir"
  394. - found_so="$dir/lib$name.$shlibext"
  395. - if test -f "$dir/lib$name.la"; then
  396. - found_la="$dir/lib$name.la"
  397. - fi
  398. - else
  399. - if test -f "$dir/lib$name.$libext"; then
  400. - found_dir="$dir"
  401. - found_a="$dir/lib$name.$libext"
  402. - if test -f "$dir/lib$name.la"; then
  403. - found_la="$dir/lib$name.la"
  404. - fi
  405. - fi
  406. - fi
  407. - ;;
  408. - esac
  409. - if test "X$found_dir" != "X"; then
  410. - break
  411. - fi
  412. - done
  413. - fi
  414. - if test "X$found_dir" != "X"; then
  415. - dnl Found the library.
  416. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
  417. - if test "X$found_so" != "X"; then
  418. - dnl Linking with a shared library. We attempt to hardcode its
  419. - dnl directory into the executable's runpath, unless it's the
  420. - dnl standard /usr/lib.
  421. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  422. - dnl No hardcoding is needed.
  423. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  424. - else
  425. - dnl Use an explicit option to hardcode DIR into the resulting
  426. - dnl binary.
  427. - dnl Potentially add DIR to ltrpathdirs.
  428. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  429. - haveit=
  430. - for x in $ltrpathdirs; do
  431. - if test "X$x" = "X$found_dir"; then
  432. - haveit=yes
  433. - break
  434. - fi
  435. - done
  436. - if test -z "$haveit"; then
  437. - ltrpathdirs="$ltrpathdirs $found_dir"
  438. - fi
  439. - dnl The hardcoding into $LIBNAME is system dependent.
  440. - if test "$hardcode_direct" = yes; then
  441. - dnl Using DIR/libNAME.so during linking hardcodes DIR into the
  442. - dnl resulting binary.
  443. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  444. - else
  445. - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  446. - dnl Use an explicit option to hardcode DIR into the resulting
  447. - dnl binary.
  448. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  449. - dnl Potentially add DIR to rpathdirs.
  450. - dnl The rpathdirs will be appended to $LIBNAME at the end.
  451. - haveit=
  452. - for x in $rpathdirs; do
  453. - if test "X$x" = "X$found_dir"; then
  454. - haveit=yes
  455. - break
  456. - fi
  457. - done
  458. - if test -z "$haveit"; then
  459. - rpathdirs="$rpathdirs $found_dir"
  460. - fi
  461. - else
  462. - dnl Rely on "-L$found_dir".
  463. - dnl But don't add it if it's already contained in the LDFLAGS
  464. - dnl or the already constructed $LIBNAME
  465. - haveit=
  466. - for x in $LDFLAGS $LIB[]NAME; do
  467. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  468. - if test "X$x" = "X-L$found_dir"; then
  469. - haveit=yes
  470. - break
  471. - fi
  472. - done
  473. - if test -z "$haveit"; then
  474. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
  475. - fi
  476. - if test "$hardcode_minus_L" != no; then
  477. - dnl FIXME: Not sure whether we should use
  478. - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  479. - dnl here.
  480. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  481. - else
  482. - dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
  483. - dnl here, because this doesn't fit in flags passed to the
  484. - dnl compiler. So give up. No hardcoding. This affects only
  485. - dnl very old systems.
  486. - dnl FIXME: Not sure whether we should use
  487. - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  488. - dnl here.
  489. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  490. - fi
  491. - fi
  492. - fi
  493. - fi
  494. - else
  495. - if test "X$found_a" != "X"; then
  496. - dnl Linking with a static library.
  497. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
  498. - else
  499. - dnl We shouldn't come here, but anyway it's good to have a
  500. - dnl fallback.
  501. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
  502. - fi
  503. - fi
  504. - dnl Assume the include files are nearby.
  505. - additional_includedir=
  506. - case "$found_dir" in
  507. - */lib | */lib/)
  508. - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  509. - additional_includedir="$basedir/include"
  510. - ;;
  511. - esac
  512. - if test "X$additional_includedir" != "X"; then
  513. - dnl Potentially add $additional_includedir to $INCNAME.
  514. - dnl But don't add it
  515. - dnl 1. if it's the standard /usr/include,
  516. - dnl 2. if it's /usr/local/include and we are using GCC on Linux,
  517. - dnl 3. if it's already present in $CPPFLAGS or the already
  518. - dnl constructed $INCNAME,
  519. - dnl 4. if it doesn't exist as a directory.
  520. - if test "X$additional_includedir" != "X/usr/include"; then
  521. - haveit=
  522. - if test "X$additional_includedir" = "X/usr/local/include"; then
  523. - if test -n "$GCC"; then
  524. - case $host_os in
  525. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  526. - esac
  527. - fi
  528. - fi
  529. - if test -z "$haveit"; then
  530. - for x in $CPPFLAGS $INC[]NAME; do
  531. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  532. - if test "X$x" = "X-I$additional_includedir"; then
  533. - haveit=yes
  534. - break
  535. - fi
  536. - done
  537. - if test -z "$haveit"; then
  538. - if test -d "$additional_includedir"; then
  539. - dnl Really add $additional_includedir to $INCNAME.
  540. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
  541. - fi
  542. - fi
  543. - fi
  544. - fi
  545. - fi
  546. - dnl Look for dependencies.
  547. - if test -n "$found_la"; then
  548. - dnl Read the .la file. It defines the variables
  549. - dnl dlname, library_names, old_library, dependency_libs, current,
  550. - dnl age, revision, installed, dlopen, dlpreopen, libdir.
  551. - save_libdir="$libdir"
  552. - case "$found_la" in
  553. - */* | *\\*) . "$found_la" ;;
  554. - *) . "./$found_la" ;;
  555. - esac
  556. - libdir="$save_libdir"
  557. - dnl We use only dependency_libs.
  558. - for dep in $dependency_libs; do
  559. - case "$dep" in
  560. - -L*)
  561. - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  562. - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
  563. - dnl But don't add it
  564. - dnl 1. if it's the standard /usr/lib,
  565. - dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
  566. - dnl 3. if it's already present in $LDFLAGS or the already
  567. - dnl constructed $LIBNAME,
  568. - dnl 4. if it doesn't exist as a directory.
  569. - if test "X$additional_libdir" != "X/usr/lib"; then
  570. - haveit=
  571. - if test "X$additional_libdir" = "X/usr/local/lib"; then
  572. - if test -n "$GCC"; then
  573. - case $host_os in
  574. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  575. - esac
  576. - fi
  577. - fi
  578. - if test -z "$haveit"; then
  579. - haveit=
  580. - for x in $LDFLAGS $LIB[]NAME; do
  581. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  582. - if test "X$x" = "X-L$additional_libdir"; then
  583. - haveit=yes
  584. - break
  585. - fi
  586. - done
  587. - if test -z "$haveit"; then
  588. - if test -d "$additional_libdir"; then
  589. - dnl Really add $additional_libdir to $LIBNAME.
  590. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
  591. - fi
  592. - fi
  593. - haveit=
  594. - for x in $LDFLAGS $LTLIB[]NAME; do
  595. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  596. - if test "X$x" = "X-L$additional_libdir"; then
  597. - haveit=yes
  598. - break
  599. - fi
  600. - done
  601. - if test -z "$haveit"; then
  602. - if test -d "$additional_libdir"; then
  603. - dnl Really add $additional_libdir to $LTLIBNAME.
  604. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
  605. - fi
  606. - fi
  607. - fi
  608. - fi
  609. - ;;
  610. - -R*)
  611. - dir=`echo "X$dep" | sed -e 's/^X-R//'`
  612. - if test "$enable_rpath" != no; then
  613. - dnl Potentially add DIR to rpathdirs.
  614. - dnl The rpathdirs will be appended to $LIBNAME at the end.
  615. - haveit=
  616. - for x in $rpathdirs; do
  617. - if test "X$x" = "X$dir"; then
  618. - haveit=yes
  619. - break
  620. - fi
  621. - done
  622. - if test -z "$haveit"; then
  623. - rpathdirs="$rpathdirs $dir"
  624. - fi
  625. - dnl Potentially add DIR to ltrpathdirs.
  626. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  627. - haveit=
  628. - for x in $ltrpathdirs; do
  629. - if test "X$x" = "X$dir"; then
  630. - haveit=yes
  631. - break
  632. - fi
  633. - done
  634. - if test -z "$haveit"; then
  635. - ltrpathdirs="$ltrpathdirs $dir"
  636. - fi
  637. - fi
  638. - ;;
  639. - -l*)
  640. - dnl Handle this in the next round.
  641. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  642. - ;;
  643. - *.la)
  644. - dnl Handle this in the next round. Throw away the .la's
  645. - dnl directory; it is already contained in a preceding -L
  646. - dnl option.
  647. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  648. - ;;
  649. - *)
  650. - dnl Most likely an immediate library name.
  651. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
  652. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
  653. - ;;
  654. - esac
  655. - done
  656. - fi
  657. - else
  658. - dnl Didn't find the library; assume it is in the system directories
  659. - dnl known to the linker and runtime loader. (All the system
  660. - dnl directories known to the linker should also be known to the
  661. - dnl runtime loader, otherwise the system is severely misconfigured.)
  662. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  663. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
  664. - fi
  665. - fi
  666. - fi
  667. - done
  668. - done
  669. - if test "X$rpathdirs" != "X"; then
  670. - if test -n "$hardcode_libdir_separator"; then
  671. - dnl Weird platform: only the last -rpath option counts, the user must
  672. - dnl pass all path elements in one option. We can arrange that for a
  673. - dnl single library, but not when more than one $LIBNAMEs are used.
  674. - alldirs=
  675. - for found_dir in $rpathdirs; do
  676. - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  677. - done
  678. - dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
  679. - acl_save_libdir="$libdir"
  680. - libdir="$alldirs"
  681. - eval flag=\"$hardcode_libdir_flag_spec\"
  682. - libdir="$acl_save_libdir"
  683. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  684. - else
  685. - dnl The -rpath options are cumulative.
  686. - for found_dir in $rpathdirs; do
  687. - acl_save_libdir="$libdir"
  688. - libdir="$found_dir"
  689. - eval flag=\"$hardcode_libdir_flag_spec\"
  690. - libdir="$acl_save_libdir"
  691. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  692. - done
  693. - fi
  694. - fi
  695. - if test "X$ltrpathdirs" != "X"; then
  696. - dnl When using libtool, the option that works for both libraries and
  697. - dnl executables is -R. The -R options are cumulative.
  698. - for found_dir in $ltrpathdirs; do
  699. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
  700. - done
  701. - fi
  702. -])
  703. -
  704. -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
  705. -dnl unless already present in VAR.
  706. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
  707. -dnl contains two or three consecutive elements that belong together.
  708. -AC_DEFUN([AC_LIB_APPENDTOVAR],
  709. -[
  710. - for element in [$2]; do
  711. - haveit=
  712. - for x in $[$1]; do
  713. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  714. - if test "X$x" = "X$element"; then
  715. - haveit=yes
  716. - break
  717. - fi
  718. - done
  719. - if test -z "$haveit"; then
  720. - [$1]="${[$1]}${[$1]:+ }$element"
  721. - fi
  722. - done
  723. -])
  724. -
  725. -# lib-ld.m4 serial 3 (gettext-0.13)
  726. -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
  727. -dnl This file is free software; the Free Software Foundation
  728. -dnl gives unlimited permission to copy and/or distribute it,
  729. -dnl with or without modifications, as long as this notice is preserved.
  730. -
  731. -dnl Subroutines of libtool.m4,
  732. -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
  733. -dnl with libtool.m4.
  734. -
  735. -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
  736. -AC_DEFUN([AC_LIB_PROG_LD_GNU],
  737. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
  738. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  739. -case `$LD -v 2>&1 </dev/null` in
  740. -*GNU* | *'with BFD'*)
  741. - acl_cv_prog_gnu_ld=yes ;;
  742. -*)
  743. - acl_cv_prog_gnu_ld=no ;;
  744. -esac])
  745. -with_gnu_ld=$acl_cv_prog_gnu_ld
  746. -])
  747. -
  748. -dnl From libtool-1.4. Sets the variable LD.
  749. -AC_DEFUN([AC_LIB_PROG_LD],
  750. -[AC_ARG_WITH(gnu-ld,
  751. -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  752. -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  753. -AC_REQUIRE([AC_PROG_CC])dnl
  754. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  755. -# Prepare PATH_SEPARATOR.
  756. -# The user is always right.
  757. -if test "${PATH_SEPARATOR+set}" != set; then
  758. - echo "#! /bin/sh" >conf$$.sh
  759. - echo "exit 0" >>conf$$.sh
  760. - chmod +x conf$$.sh
  761. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  762. - PATH_SEPARATOR=';'
  763. - else
  764. - PATH_SEPARATOR=:
  765. - fi
  766. - rm -f conf$$.sh
  767. -fi
  768. -ac_prog=ld
  769. -if test "$GCC" = yes; then
  770. - # Check if gcc -print-prog-name=ld gives a path.
  771. - AC_MSG_CHECKING([for ld used by GCC])
  772. - case $host in
  773. - *-*-mingw*)
  774. - # gcc leaves a trailing carriage return which upsets mingw
  775. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  776. - *)
  777. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  778. - esac
  779. - case $ac_prog in
  780. - # Accept absolute paths.
  781. - [[\\/]* | [A-Za-z]:[\\/]*)]
  782. - [re_direlt='/[^/][^/]*/\.\./']
  783. - # Canonicalize the path of ld
  784. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  785. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  786. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  787. - done
  788. - test -z "$LD" && LD="$ac_prog"
  789. - ;;
  790. - "")
  791. - # If it fails, then pretend we aren't using GCC.
  792. - ac_prog=ld
  793. - ;;
  794. - *)
  795. - # If it is relative, then search for the first ld in PATH.
  796. - with_gnu_ld=unknown
  797. - ;;
  798. - esac
  799. -elif test "$with_gnu_ld" = yes; then
  800. - AC_MSG_CHECKING([for GNU ld])
  801. -else
  802. - AC_MSG_CHECKING([for non-GNU ld])
  803. -fi
  804. -AC_CACHE_VAL(acl_cv_path_LD,
  805. -[if test -z "$LD"; then
  806. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  807. - for ac_dir in $PATH; do
  808. - test -z "$ac_dir" && ac_dir=.
  809. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  810. - acl_cv_path_LD="$ac_dir/$ac_prog"
  811. - # Check to see if the program is GNU ld. I'd rather use --version,
  812. - # but apparently some GNU ld's only accept -v.
  813. - # Break only if it was the GNU/non-GNU ld that we prefer.
  814. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  815. - *GNU* | *'with BFD'*)
  816. - test "$with_gnu_ld" != no && break ;;
  817. - *)
  818. - test "$with_gnu_ld" != yes && break ;;
  819. - esac
  820. - fi
  821. - done
  822. - IFS="$ac_save_ifs"
  823. -else
  824. - acl_cv_path_LD="$LD" # Let the user override the test with a path.
  825. -fi])
  826. -LD="$acl_cv_path_LD"
  827. -if test -n "$LD"; then
  828. - AC_MSG_RESULT($LD)
  829. -else
  830. - AC_MSG_RESULT(no)
  831. -fi
  832. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  833. -AC_LIB_PROG_LD_GNU
  834. -])
  835. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  836. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  837. +# This file is free software; the Free Software Foundation
  838. +# gives unlimited permission to copy and/or distribute it,
  839. +# with or without modifications, as long as this notice is preserved.
  840. +
  841. +# This program is distributed in the hope that it will be useful,
  842. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  843. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  844. +# PARTICULAR PURPOSE.
  845. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  846. #
  847. @@ -862,7 +44,7 @@
  848. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  849. fi
  850. if test -n "$PKG_CONFIG"; then
  851. - _pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
  852. + _pkg_min_version=m4_default([$1], [0.9.0])
  853. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  854. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  855. AC_MSG_RESULT([yes])
  856. @@ -898,14 +80,30 @@
  857. # ---------------------------------------------
  858. m4_define([_PKG_CONFIG],
  859. [if test -n "$PKG_CONFIG"; then
  860. + if test -n "$$1"; then
  861. + pkg_cv_[]$1="$$1"
  862. + else
  863. PKG_CHECK_EXISTS([$3],
  864. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  865. [pkg_failed=yes])
  866. + fi
  867. else
  868. pkg_failed=untried
  869. fi[]dnl
  870. ])# _PKG_CONFIG
  871. +# _PKG_SHORT_ERRORS_SUPPORTED
  872. +# -----------------------------
  873. +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  874. +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  875. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  876. + _pkg_short_errors_supported=yes
  877. +else
  878. + _pkg_short_errors_supported=no
  879. +fi[]dnl
  880. +])# _PKG_SHORT_ERRORS_SUPPORTED
  881. +
  882. +
  883. # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  884. # [ACTION-IF-NOT-FOUND])
  885. #
  886. @@ -927,31 +125,41 @@
  887. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  888. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  889. +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  890. +and $1[]_LIBS to avoid the need to call pkg-config.
  891. +See the pkg-config man page for more details.])
  892. +
  893. if test $pkg_failed = yes; then
  894. - $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  895. + _PKG_SHORT_ERRORS_SUPPORTED
  896. + if test $_pkg_short_errors_supported = yes; then
  897. + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
  898. + else
  899. + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  900. + fi
  901. # Put the nasty error message in config.log where it belongs
  902. - echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
  903. + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  904. ifelse([$4], , [AC_MSG_ERROR(dnl
  905. -[Package requirements ($2) were not met.
  906. +[Package requirements ($2) were not met:
  907. +
  908. +$$1_PKG_ERRORS
  909. +
  910. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  911. installed software in a non-standard prefix.
  912. -Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
  913. -to avoid the need to call pkg-config. See the pkg-config man page for
  914. -more details.])],
  915. - [$4])
  916. +_PKG_TEXT
  917. +])],
  918. + [AC_MSG_RESULT([no])
  919. + $4])
  920. elif test $pkg_failed = untried; then
  921. ifelse([$4], , [AC_MSG_FAILURE(dnl
  922. [The pkg-config script could not be found or is too old. Make sure it
  923. is in your PATH or set the PKG_CONFIG environment variable to the full
  924. path to pkg-config.
  925. -Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
  926. -to avoid the need to call pkg-config. See the pkg-config man page for
  927. -more details.
  928. +_PKG_TEXT
  929. -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
  930. +To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
  931. [$4])
  932. else
  933. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  934. diff -Nur libnids-1.23.orig/configure libnids-1.23/configure
  935. --- libnids-1.23.orig/configure 2006-05-01 19:14:51.000000000 +0200
  936. +++ libnids-1.23/configure 2010-02-18 22:19:11.708852458 +0100
  937. @@ -1,81 +1,415 @@
  938. #! /bin/sh
  939. # Guess values for system-dependent variables and create Makefiles.
  940. -# Generated by GNU Autoconf 2.59.
  941. +# Generated by GNU Autoconf 2.65.
  942. +#
  943. +#
  944. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  945. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  946. +# Inc.
  947. +#
  948. #
  949. -# Copyright (C) 2003 Free Software Foundation, Inc.
  950. # This configure script is free software; the Free Software Foundation
  951. # gives unlimited permission to copy, distribute and modify it.
  952. -## --------------------- ##
  953. -## M4sh Initialization. ##
  954. -## --------------------- ##
  955. +## -------------------- ##
  956. +## M4sh Initialization. ##
  957. +## -------------------- ##
  958. -# Be Bourne compatible
  959. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  960. +# Be more Bourne compatible
  961. +DUALCASE=1; export DUALCASE # for MKS sh
  962. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  963. emulate sh
  964. NULLCMD=:
  965. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  966. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  967. # is contrary to our usage. Disable this feature.
  968. alias -g '${1+"$@"}'='"$@"'
  969. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  970. - set -o posix
  971. + setopt NO_GLOB_SUBST
  972. +else
  973. + case `(set -o) 2>/dev/null` in #(
  974. + *posix*) :
  975. + set -o posix ;; #(
  976. + *) :
  977. + ;;
  978. +esac
  979. fi
  980. -DUALCASE=1; export DUALCASE # for MKS sh
  981. -# Support unset when possible.
  982. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  983. - as_unset=unset
  984. -else
  985. - as_unset=false
  986. +
  987. +as_nl='
  988. +'
  989. +export as_nl
  990. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  991. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  992. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  993. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  994. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  995. +# but without wasting forks for bash or zsh.
  996. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  997. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  998. + as_echo='print -r --'
  999. + as_echo_n='print -rn --'
  1000. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  1001. + as_echo='printf %s\n'
  1002. + as_echo_n='printf %s'
  1003. +else
  1004. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  1005. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  1006. + as_echo_n='/usr/ucb/echo -n'
  1007. + else
  1008. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  1009. + as_echo_n_body='eval
  1010. + arg=$1;
  1011. + case $arg in #(
  1012. + *"$as_nl"*)
  1013. + expr "X$arg" : "X\\(.*\\)$as_nl";
  1014. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  1015. + esac;
  1016. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  1017. + '
  1018. + export as_echo_n_body
  1019. + as_echo_n='sh -c $as_echo_n_body as_echo'
  1020. + fi
  1021. + export as_echo_body
  1022. + as_echo='sh -c $as_echo_body as_echo'
  1023. fi
  1024. +# The user is always right.
  1025. +if test "${PATH_SEPARATOR+set}" != set; then
  1026. + PATH_SEPARATOR=:
  1027. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  1028. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  1029. + PATH_SEPARATOR=';'
  1030. + }
  1031. +fi
  1032. +
  1033. +
  1034. +# IFS
  1035. +# We need space, tab and new line, in precisely that order. Quoting is
  1036. +# there to prevent editors from complaining about space-tab.
  1037. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  1038. +# splitting by setting IFS to empty value.)
  1039. +IFS=" "" $as_nl"
  1040. +
  1041. +# Find who we are. Look in the path if we contain no directory separator.
  1042. +case $0 in #((
  1043. + *[\\/]* ) as_myself=$0 ;;
  1044. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1045. +for as_dir in $PATH
  1046. +do
  1047. + IFS=$as_save_IFS
  1048. + test -z "$as_dir" && as_dir=.
  1049. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  1050. + done
  1051. +IFS=$as_save_IFS
  1052. -# Work around bugs in pre-3.0 UWIN ksh.
  1053. -$as_unset ENV MAIL MAILPATH
  1054. + ;;
  1055. +esac
  1056. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  1057. +# in which case we are not to be found in the path.
  1058. +if test "x$as_myself" = x; then
  1059. + as_myself=$0
  1060. +fi
  1061. +if test ! -f "$as_myself"; then
  1062. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  1063. + exit 1
  1064. +fi
  1065. +
  1066. +# Unset variables that we do not need and which cause bugs (e.g. in
  1067. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  1068. +# suppresses any "Segmentation fault" message there. '((' could
  1069. +# trigger a bug in pdksh 5.2.14.
  1070. +for as_var in BASH_ENV ENV MAIL MAILPATH
  1071. +do eval test x\${$as_var+set} = xset \
  1072. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  1073. +done
  1074. PS1='$ '
  1075. PS2='> '
  1076. PS4='+ '
  1077. # NLS nuisances.
  1078. -for as_var in \
  1079. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  1080. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  1081. - LC_TELEPHONE LC_TIME
  1082. +LC_ALL=C
  1083. +export LC_ALL
  1084. +LANGUAGE=C
  1085. +export LANGUAGE
  1086. +
  1087. +# CDPATH.
  1088. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1089. +
  1090. +if test "x$CONFIG_SHELL" = x; then
  1091. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  1092. + emulate sh
  1093. + NULLCMD=:
  1094. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  1095. + # is contrary to our usage. Disable this feature.
  1096. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  1097. + setopt NO_GLOB_SUBST
  1098. +else
  1099. + case \`(set -o) 2>/dev/null\` in #(
  1100. + *posix*) :
  1101. + set -o posix ;; #(
  1102. + *) :
  1103. + ;;
  1104. +esac
  1105. +fi
  1106. +"
  1107. + as_required="as_fn_return () { (exit \$1); }
  1108. +as_fn_success () { as_fn_return 0; }
  1109. +as_fn_failure () { as_fn_return 1; }
  1110. +as_fn_ret_success () { return 0; }
  1111. +as_fn_ret_failure () { return 1; }
  1112. +
  1113. +exitcode=0
  1114. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  1115. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  1116. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  1117. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  1118. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  1119. +
  1120. +else
  1121. + exitcode=1; echo positional parameters were not saved.
  1122. +fi
  1123. +test x\$exitcode = x0 || exit 1"
  1124. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  1125. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  1126. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  1127. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  1128. +test \$(( 1 + 1 )) = 2 || exit 1"
  1129. + if (eval "$as_required") 2>/dev/null; then :
  1130. + as_have_required=yes
  1131. +else
  1132. + as_have_required=no
  1133. +fi
  1134. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  1135. +
  1136. +else
  1137. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1138. +as_found=false
  1139. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  1140. do
  1141. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  1142. - eval $as_var=C; export $as_var
  1143. + IFS=$as_save_IFS
  1144. + test -z "$as_dir" && as_dir=.
  1145. + as_found=:
  1146. + case $as_dir in #(
  1147. + /*)
  1148. + for as_base in sh bash ksh sh5; do
  1149. + # Try only shells that exist, to save several forks.
  1150. + as_shell=$as_dir/$as_base
  1151. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  1152. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  1153. + CONFIG_SHELL=$as_shell as_have_required=yes
  1154. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  1155. + break 2
  1156. +fi
  1157. +fi
  1158. + done;;
  1159. + esac
  1160. + as_found=false
  1161. +done
  1162. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  1163. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  1164. + CONFIG_SHELL=$SHELL as_have_required=yes
  1165. +fi; }
  1166. +IFS=$as_save_IFS
  1167. +
  1168. +
  1169. + if test "x$CONFIG_SHELL" != x; then :
  1170. + # We cannot yet assume a decent shell, so we have to provide a
  1171. + # neutralization value for shells without unset; and this also
  1172. + # works around shells that cannot unset nonexistent variables.
  1173. + BASH_ENV=/dev/null
  1174. + ENV=/dev/null
  1175. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  1176. + export CONFIG_SHELL
  1177. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  1178. +fi
  1179. +
  1180. + if test x$as_have_required = xno; then :
  1181. + $as_echo "$0: This script requires a shell more modern than all"
  1182. + $as_echo "$0: the shells that I found on your system."
  1183. + if test x${ZSH_VERSION+set} = xset ; then
  1184. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  1185. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  1186. else
  1187. - $as_unset $as_var
  1188. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  1189. +$0: including any error possibly output before this
  1190. +$0: message. Then install a modern shell, or manually run
  1191. +$0: the script under such a shell if you do have one."
  1192. fi
  1193. -done
  1194. + exit 1
  1195. +fi
  1196. +fi
  1197. +fi
  1198. +SHELL=${CONFIG_SHELL-/bin/sh}
  1199. +export SHELL
  1200. +# Unset more variables known to interfere with behavior of common tools.
  1201. +CLICOLOR_FORCE= GREP_OPTIONS=
  1202. +unset CLICOLOR_FORCE GREP_OPTIONS
  1203. +
  1204. +## --------------------- ##
  1205. +## M4sh Shell Functions. ##
  1206. +## --------------------- ##
  1207. +# as_fn_unset VAR
  1208. +# ---------------
  1209. +# Portably unset VAR.
  1210. +as_fn_unset ()
  1211. +{
  1212. + { eval $1=; unset $1;}
  1213. +}
  1214. +as_unset=as_fn_unset
  1215. +
  1216. +# as_fn_set_status STATUS
  1217. +# -----------------------
  1218. +# Set $? to STATUS, without forking.
  1219. +as_fn_set_status ()
  1220. +{
  1221. + return $1
  1222. +} # as_fn_set_status
  1223. +
  1224. +# as_fn_exit STATUS
  1225. +# -----------------
  1226. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  1227. +as_fn_exit ()
  1228. +{
  1229. + set +e
  1230. + as_fn_set_status $1
  1231. + exit $1
  1232. +} # as_fn_exit
  1233. +
  1234. +# as_fn_mkdir_p
  1235. +# -------------
  1236. +# Create "$as_dir" as a directory, including parents if necessary.
  1237. +as_fn_mkdir_p ()
  1238. +{
  1239. +
  1240. + case $as_dir in #(
  1241. + -*) as_dir=./$as_dir;;
  1242. + esac
  1243. + test -d "$as_dir" || eval $as_mkdir_p || {
  1244. + as_dirs=
  1245. + while :; do
  1246. + case $as_dir in #(
  1247. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  1248. + *) as_qdir=$as_dir;;
  1249. + esac
  1250. + as_dirs="'$as_qdir' $as_dirs"
  1251. + as_dir=`$as_dirname -- "$as_dir" ||
  1252. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1253. + X"$as_dir" : 'X\(//\)[^/]' \| \
  1254. + X"$as_dir" : 'X\(//\)$' \| \
  1255. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  1256. +$as_echo X"$as_dir" |
  1257. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1258. + s//\1/
  1259. + q
  1260. + }
  1261. + /^X\(\/\/\)[^/].*/{
  1262. + s//\1/
  1263. + q
  1264. + }
  1265. + /^X\(\/\/\)$/{
  1266. + s//\1/
  1267. + q
  1268. + }
  1269. + /^X\(\/\).*/{
  1270. + s//\1/
  1271. + q
  1272. + }
  1273. + s/.*/./; q'`
  1274. + test -d "$as_dir" && break
  1275. + done
  1276. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  1277. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  1278. +
  1279. +
  1280. +} # as_fn_mkdir_p
  1281. +# as_fn_append VAR VALUE
  1282. +# ----------------------
  1283. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  1284. +# advantage of any shell optimizations that allow amortized linear growth over
  1285. +# repeated appends, instead of the typical quadratic growth present in naive
  1286. +# implementations.
  1287. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  1288. + eval 'as_fn_append ()
  1289. + {
  1290. + eval $1+=\$2
  1291. + }'
  1292. +else
  1293. + as_fn_append ()
  1294. + {
  1295. + eval $1=\$$1\$2
  1296. + }
  1297. +fi # as_fn_append
  1298. +
  1299. +# as_fn_arith ARG...
  1300. +# ------------------
  1301. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  1302. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  1303. +# must be portable across $(()) and expr.
  1304. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  1305. + eval 'as_fn_arith ()
  1306. + {
  1307. + as_val=$(( $* ))
  1308. + }'
  1309. +else
  1310. + as_fn_arith ()
  1311. + {
  1312. + as_val=`expr "$@" || test $? -eq 1`
  1313. + }
  1314. +fi # as_fn_arith
  1315. -# Required to use basename.
  1316. -if expr a : '\(a\)' >/dev/null 2>&1; then
  1317. +
  1318. +# as_fn_error ERROR [LINENO LOG_FD]
  1319. +# ---------------------------------
  1320. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  1321. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  1322. +# script with status $?, using 1 if that was 0.
  1323. +as_fn_error ()
  1324. +{
  1325. + as_status=$?; test $as_status -eq 0 && as_status=1
  1326. + if test "$3"; then
  1327. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1328. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  1329. + fi
  1330. + $as_echo "$as_me: error: $1" >&2
  1331. + as_fn_exit $as_status
  1332. +} # as_fn_error
  1333. +
  1334. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  1335. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  1336. as_expr=expr
  1337. else
  1338. as_expr=false
  1339. fi
  1340. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  1341. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  1342. as_basename=basename
  1343. else
  1344. as_basename=false
  1345. fi
  1346. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  1347. + as_dirname=dirname
  1348. +else
  1349. + as_dirname=false
  1350. +fi
  1351. -# Name of the executable.
  1352. -as_me=`$as_basename "$0" ||
  1353. +as_me=`$as_basename -- "$0" ||
  1354. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  1355. X"$0" : 'X\(//\)$' \| \
  1356. - X"$0" : 'X\(/\)$' \| \
  1357. - . : '\(.\)' 2>/dev/null ||
  1358. -echo X/"$0" |
  1359. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  1360. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  1361. - /^X\/\(\/\).*/{ s//\1/; q; }
  1362. - s/.*/./; q'`
  1363. -
  1364. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1365. +$as_echo X/"$0" |
  1366. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  1367. + s//\1/
  1368. + q
  1369. + }
  1370. + /^X\/\(\/\/\)$/{
  1371. + s//\1/
  1372. + q
  1373. + }
  1374. + /^X\/\(\/\).*/{
  1375. + s//\1/
  1376. + q
  1377. + }
  1378. + s/.*/./; q'`
  1379. -# PATH needs CR, and LINENO needs CR and PATH.
  1380. # Avoid depending upon Character Ranges.
  1381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  1382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  1383. @@ -83,146 +417,107 @@
  1384. as_cr_digits='0123456789'
  1385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  1386. -# The user is always right.
  1387. -if test "${PATH_SEPARATOR+set}" != set; then
  1388. - echo "#! /bin/sh" >conf$$.sh
  1389. - echo "exit 0" >>conf$$.sh
  1390. - chmod +x conf$$.sh
  1391. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1392. - PATH_SEPARATOR=';'
  1393. - else
  1394. - PATH_SEPARATOR=:
  1395. - fi
  1396. - rm -f conf$$.sh
  1397. -fi
  1398. -
  1399. - as_lineno_1=$LINENO
  1400. - as_lineno_2=$LINENO
  1401. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  1402. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  1403. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  1404. - # Find who we are. Look in the path if we contain no path at all
  1405. - # relative or not.
  1406. - case $0 in
  1407. - *[\\/]* ) as_myself=$0 ;;
  1408. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1409. -for as_dir in $PATH
  1410. -do
  1411. - IFS=$as_save_IFS
  1412. - test -z "$as_dir" && as_dir=.
  1413. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  1414. -done
  1415. -
  1416. - ;;
  1417. - esac
  1418. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  1419. - # in which case we are not to be found in the path.
  1420. - if test "x$as_myself" = x; then
  1421. - as_myself=$0
  1422. - fi
  1423. - if test ! -f "$as_myself"; then
  1424. - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  1425. - { (exit 1); exit 1; }; }
  1426. - fi
  1427. - case $CONFIG_SHELL in
  1428. - '')
  1429. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1430. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  1431. -do
  1432. - IFS=$as_save_IFS
  1433. - test -z "$as_dir" && as_dir=.
  1434. - for as_base in sh bash ksh sh5; do
  1435. - case $as_dir in
  1436. - /*)
  1437. - if ("$as_dir/$as_base" -c '
  1438. - as_lineno_1=$LINENO
  1439. - as_lineno_2=$LINENO
  1440. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  1441. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  1442. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  1443. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  1444. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  1445. - CONFIG_SHELL=$as_dir/$as_base
  1446. - export CONFIG_SHELL
  1447. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  1448. - fi;;
  1449. - esac
  1450. - done
  1451. -done
  1452. -;;
  1453. - esac
  1454. -
  1455. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  1456. - # uniformly replaced by the line number. The first 'sed' inserts a
  1457. - # line-number line before each line; the second 'sed' does the real
  1458. - # work. The second script uses 'N' to pair each line-number line
  1459. - # with the numbered line, and appends trailing '-' during
  1460. - # substitution so that $LINENO is not a special case at line end.
  1461. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  1462. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  1463. - sed '=' <$as_myself |
  1464. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  1465. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  1466. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  1467. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  1468. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  1469. + sed -n '
  1470. + p
  1471. + /[$]LINENO/=
  1472. + ' <$as_myself |
  1473. sed '
  1474. + s/[$]LINENO.*/&-/
  1475. + t lineno
  1476. + b
  1477. + :lineno
  1478. N
  1479. - s,$,-,
  1480. - : loop
  1481. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  1482. + :loop
  1483. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  1484. t loop
  1485. - s,-$,,
  1486. - s,^['$as_cr_digits']*\n,,
  1487. + s/-\n.*//
  1488. ' >$as_me.lineno &&
  1489. - chmod +x $as_me.lineno ||
  1490. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  1491. - { (exit 1); exit 1; }; }
  1492. + chmod +x "$as_me.lineno" ||
  1493. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  1494. # Don't try to exec as it changes $[0], causing all sort of problems
  1495. # (the dirname of $[0] is not the place where we might find the
  1496. - # original and so on. Autoconf is especially sensible to this).
  1497. - . ./$as_me.lineno
  1498. + # original and so on. Autoconf is especially sensitive to this).
  1499. + . "./$as_me.lineno"
  1500. # Exit status is that of the last command.
  1501. exit
  1502. }
  1503. -
  1504. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  1505. - *c*,-n*) ECHO_N= ECHO_C='
  1506. -' ECHO_T=' ' ;;
  1507. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  1508. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  1509. +ECHO_C= ECHO_N= ECHO_T=
  1510. +case `echo -n x` in #(((((
  1511. +-n*)
  1512. + case `echo 'xy\c'` in
  1513. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  1514. + xy) ECHO_C='\c';;
  1515. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  1516. + ECHO_T=' ';;
  1517. + esac;;
  1518. +*)
  1519. + ECHO_N='-n';;
  1520. esac
  1521. -if expr a : '\(a\)' >/dev/null 2>&1; then
  1522. - as_expr=expr
  1523. +rm -f conf$$ conf$$.exe conf$$.file
  1524. +if test -d conf$$.dir; then
  1525. + rm -f conf$$.dir/conf$$.file
  1526. else
  1527. - as_expr=false
  1528. + rm -f conf$$.dir
  1529. + mkdir conf$$.dir 2>/dev/null
  1530. fi
  1531. -
  1532. -rm -f conf$$ conf$$.exe conf$$.file
  1533. -echo >conf$$.file
  1534. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  1535. - # We could just check for DJGPP; but this test a) works b) is more generic
  1536. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  1537. - if test -f conf$$.exe; then
  1538. - # Don't use ln at all; we don't have any links
  1539. - as_ln_s='cp -p'
  1540. - else
  1541. +if (echo >conf$$.file) 2>/dev/null; then
  1542. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  1543. as_ln_s='ln -s'
  1544. + # ... but there are two gotchas:
  1545. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  1546. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  1547. + # In both cases, we have to default to `cp -p'.
  1548. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  1549. + as_ln_s='cp -p'
  1550. + elif ln conf$$.file conf$$ 2>/dev/null; then
  1551. + as_ln_s=ln
  1552. + else
  1553. + as_ln_s='cp -p'
  1554. fi
  1555. -elif ln conf$$.file conf$$ 2>/dev/null; then
  1556. - as_ln_s=ln
  1557. else
  1558. as_ln_s='cp -p'
  1559. fi
  1560. -rm -f conf$$ conf$$.exe conf$$.file
  1561. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  1562. +rmdir conf$$.dir 2>/dev/null
  1563. if mkdir -p . 2>/dev/null; then
  1564. - as_mkdir_p=:
  1565. + as_mkdir_p='mkdir -p "$as_dir"'
  1566. else
  1567. test -d ./-p && rmdir ./-p
  1568. as_mkdir_p=false
  1569. fi
  1570. -as_executable_p="test -f"
  1571. +if test -x / >/dev/null 2>&1; then
  1572. + as_test_x='test -x'
  1573. +else
  1574. + if ls -dL / >/dev/null 2>&1; then
  1575. + as_ls_L_option=L
  1576. + else
  1577. + as_ls_L_option=
  1578. + fi
  1579. + as_test_x='
  1580. + eval sh -c '\''
  1581. + if test -d "$1"; then
  1582. + test -d "$1/.";
  1583. + else
  1584. + case $1 in #(
  1585. + -*)set "./$1";;
  1586. + esac;
  1587. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  1588. + ???[sx]*):;;*)false;;esac;fi
  1589. + '\'' sh
  1590. + '
  1591. +fi
  1592. +as_executable_p=$as_test_x
  1593. # Sed expression to map a string onto a valid CPP name.
  1594. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  1595. @@ -231,38 +526,25 @@
  1596. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  1597. -# IFS
  1598. -# We need space, tab and new line, in precisely that order.
  1599. -as_nl='
  1600. -'
  1601. -IFS=" $as_nl"
  1602. -
  1603. -# CDPATH.
  1604. -$as_unset CDPATH
  1605. -
  1606. +test -n "$DJDIR" || exec 7<&0 </dev/null
  1607. +exec 6>&1
  1608. # Name of the host.
  1609. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  1610. # so uname gets run too.
  1611. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  1612. -exec 6>&1
  1613. -
  1614. #
  1615. # Initializations.
  1616. #
  1617. ac_default_prefix=/usr/local
  1618. +ac_clean_files=
  1619. ac_config_libobj_dir=.
  1620. +LIBOBJS=
  1621. cross_compiling=no
  1622. subdirs=
  1623. MFLAGS=
  1624. MAKEFLAGS=
  1625. -SHELL=${CONFIG_SHELL-/bin/sh}
  1626. -
  1627. -# Maximum number of lines to put in a shell here document.
  1628. -# This variable seems obsolete. It should probably be removed, and
  1629. -# only ac_max_sed_lines should be used.
  1630. -: ${ac_max_here_lines=38}
  1631. # Identity of this package.
  1632. PACKAGE_NAME=
  1633. @@ -270,51 +552,155 @@
  1634. PACKAGE_VERSION=
  1635. PACKAGE_STRING=
  1636. PACKAGE_BUGREPORT=
  1637. +PACKAGE_URL=
  1638. ac_unique_file="src/libnids.c"
  1639. # Factoring default headers for most tests.
  1640. ac_includes_default="\
  1641. #include <stdio.h>
  1642. -#if HAVE_SYS_TYPES_H
  1643. +#ifdef HAVE_SYS_TYPES_H
  1644. # include <sys/types.h>
  1645. #endif
  1646. -#if HAVE_SYS_STAT_H
  1647. +#ifdef HAVE_SYS_STAT_H
  1648. # include <sys/stat.h>
  1649. #endif
  1650. -#if STDC_HEADERS
  1651. +#ifdef STDC_HEADERS
  1652. # include <stdlib.h>
  1653. # include <stddef.h>
  1654. #else
  1655. -# if HAVE_STDLIB_H
  1656. +# ifdef HAVE_STDLIB_H
  1657. # include <stdlib.h>
  1658. # endif
  1659. #endif
  1660. -#if HAVE_STRING_H
  1661. -# if !STDC_HEADERS && HAVE_MEMORY_H
  1662. +#ifdef HAVE_STRING_H
  1663. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  1664. # include <memory.h>
  1665. # endif
  1666. # include <string.h>
  1667. #endif
  1668. -#if HAVE_STRINGS_H
  1669. +#ifdef HAVE_STRINGS_H
  1670. # include <strings.h>
  1671. #endif
  1672. -#if HAVE_INTTYPES_H
  1673. +#ifdef HAVE_INTTYPES_H
  1674. # include <inttypes.h>
  1675. -#else
  1676. -# if HAVE_STDINT_H
  1677. -# include <stdint.h>
  1678. -# endif
  1679. #endif
  1680. -#if HAVE_UNISTD_H
  1681. +#ifdef HAVE_STDINT_H
  1682. +# include <stdint.h>
  1683. +#endif
  1684. +#ifdef HAVE_UNISTD_H
  1685. # include <unistd.h>
  1686. #endif"
  1687. -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP PCAP_CFLAGS PCAPLIB PKG_CONFIG ac_pt_PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GTHREAD_CFLAGS GTHREAD_LIBS LNET_CFLAGS LNETLIB BUILD_SHARED ICMPHEADER TCPSTATES HAVE_BSD_UDPHDR LIBNET_VER LIBOBJS LTLIBOBJS'
  1688. +ac_subst_vars='LTLIBOBJS
  1689. +LIBOBJS
  1690. +LIBNET_VER
  1691. +HAVE_BSD_UDPHDR
  1692. +TCPSTATES
  1693. +ICMPHEADER
  1694. +BUILD_SHARED
  1695. +LNETLIB
  1696. +LNET_CFLAGS
  1697. +GTHREAD_LIBS
  1698. +GTHREAD_CFLAGS
  1699. +GLIB_LIBS
  1700. +GLIB_CFLAGS
  1701. +PKG_CONFIG
  1702. +PCAPLIB
  1703. +PCAP_CFLAGS
  1704. +EGREP
  1705. +GREP
  1706. +CPP
  1707. +INSTALL_DATA
  1708. +INSTALL_SCRIPT
  1709. +INSTALL_PROGRAM
  1710. +RANLIB
  1711. +OBJEXT
  1712. +EXEEXT
  1713. +ac_ct_CC
  1714. +CPPFLAGS
  1715. +LDFLAGS
  1716. +CFLAGS
  1717. +CC
  1718. +target_os
  1719. +target_vendor
  1720. +target_cpu
  1721. +target
  1722. +host_os
  1723. +host_vendor
  1724. +host_cpu
  1725. +host
  1726. +build_os
  1727. +build_vendor
  1728. +build_cpu
  1729. +build
  1730. +target_alias
  1731. +host_alias
  1732. +build_alias
  1733. +LIBS
  1734. +ECHO_T
  1735. +ECHO_N
  1736. +ECHO_C
  1737. +DEFS
  1738. +mandir
  1739. +localedir
  1740. +libdir
  1741. +psdir
  1742. +pdfdir
  1743. +dvidir
  1744. +htmldir
  1745. +infodir
  1746. +docdir
  1747. +oldincludedir
  1748. +includedir
  1749. +localstatedir
  1750. +sharedstatedir
  1751. +sysconfdir
  1752. +datadir
  1753. +datarootdir
  1754. +libexecdir
  1755. +sbindir
  1756. +bindir
  1757. +program_transform_name
  1758. +prefix
  1759. +exec_prefix
  1760. +PACKAGE_URL
  1761. +PACKAGE_BUGREPORT
  1762. +PACKAGE_STRING
  1763. +PACKAGE_VERSION
  1764. +PACKAGE_TARNAME
  1765. +PACKAGE_NAME
  1766. +PATH_SEPARATOR
  1767. +SHELL'
  1768. ac_subst_files=''
  1769. +ac_user_opts='
  1770. +enable_option_checking
  1771. +with_libpcap
  1772. +enable_libglib
  1773. +enable_libnet
  1774. +with_libnet
  1775. +enable_shared
  1776. +'
  1777. + ac_precious_vars='build_alias
  1778. +host_alias
  1779. +target_alias
  1780. +CC
  1781. +CFLAGS
  1782. +LDFLAGS
  1783. +LIBS
  1784. +CPPFLAGS
  1785. +CPP
  1786. +PKG_CONFIG
  1787. +GLIB_CFLAGS
  1788. +GLIB_LIBS
  1789. +GTHREAD_CFLAGS
  1790. +GTHREAD_LIBS'
  1791. +
  1792. # Initialize some variables set by options.
  1793. ac_init_help=
  1794. ac_init_version=false
  1795. +ac_unrecognized_opts=
  1796. +ac_unrecognized_sep=
  1797. # The variables have the same names as the options, with
  1798. # dashes changed to underlines.
  1799. cache_file=/dev/null
  1800. @@ -337,34 +723,48 @@
  1801. # and all the variables that are supposed to be based on exec_prefix
  1802. # by default will actually change.
  1803. # Use braces instead of parens because sh, perl, etc. also accept them.
  1804. +# (The list follows the same order as the GNU Coding Standards.)
  1805. bindir='${exec_prefix}/bin'
  1806. sbindir='${exec_prefix}/sbin'
  1807. libexecdir='${exec_prefix}/libexec'
  1808. -datadir='${prefix}/share'
  1809. +datarootdir='${prefix}/share'
  1810. +datadir='${datarootdir}'
  1811. sysconfdir='${prefix}/etc'
  1812. sharedstatedir='${prefix}/com'
  1813. localstatedir='${prefix}/var'
  1814. -libdir='${exec_prefix}/lib'
  1815. includedir='${prefix}/include'
  1816. oldincludedir='/usr/include'
  1817. -infodir='${prefix}/info'
  1818. -mandir='${prefix}/man'
  1819. +docdir='${datarootdir}/doc/${PACKAGE}'
  1820. +infodir='${datarootdir}/info'
  1821. +htmldir='${docdir}'
  1822. +dvidir='${docdir}'
  1823. +pdfdir='${docdir}'
  1824. +psdir='${docdir}'
  1825. +libdir='${exec_prefix}/lib'
  1826. +localedir='${datarootdir}/locale'
  1827. +mandir='${datarootdir}/man'
  1828. ac_prev=
  1829. +ac_dashdash=
  1830. for ac_option
  1831. do
  1832. # If the previous option needs an argument, assign it.
  1833. if test -n "$ac_prev"; then
  1834. - eval "$ac_prev=\$ac_option"
  1835. + eval $ac_prev=\$ac_option
  1836. ac_prev=
  1837. continue
  1838. fi
  1839. - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  1840. + case $ac_option in
  1841. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1842. + *) ac_optarg=yes ;;
  1843. + esac
  1844. # Accept the important Cygnus configure options, so we can diagnose typos.
  1845. - case $ac_option in
  1846. + case $ac_dashdash$ac_option in
  1847. + --)
  1848. + ac_dashdash=yes ;;
  1849. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1850. ac_prev=bindir ;;
  1851. @@ -386,33 +786,59 @@
  1852. --config-cache | -C)
  1853. cache_file=config.cache ;;
  1854. - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  1855. + -datadir | --datadir | --datadi | --datad)
  1856. ac_prev=datadir ;;
  1857. - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  1858. - | --da=*)
  1859. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1860. datadir=$ac_optarg ;;
  1861. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1862. + | --dataroo | --dataro | --datar)
  1863. + ac_prev=datarootdir ;;
  1864. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1865. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1866. + datarootdir=$ac_optarg ;;
  1867. +
  1868. -disable-* | --disable-*)
  1869. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1870. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1871. # Reject names that are not valid shell variable names.
  1872. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1873. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  1874. - { (exit 1); exit 1; }; }
  1875. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  1876. - eval "enable_$ac_feature=no" ;;
  1877. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1878. + as_fn_error "invalid feature name: $ac_useropt"
  1879. + ac_useropt_orig=$ac_useropt
  1880. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1881. + case $ac_user_opts in
  1882. + *"
  1883. +"enable_$ac_useropt"
  1884. +"*) ;;
  1885. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1886. + ac_unrecognized_sep=', ';;
  1887. + esac
  1888. + eval enable_$ac_useropt=no ;;
  1889. +
  1890. + -docdir | --docdir | --docdi | --doc | --do)
  1891. + ac_prev=docdir ;;
  1892. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1893. + docdir=$ac_optarg ;;
  1894. +
  1895. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1896. + ac_prev=dvidir ;;
  1897. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1898. + dvidir=$ac_optarg ;;
  1899. -enable-* | --enable-*)
  1900. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1901. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1902. # Reject names that are not valid shell variable names.
  1903. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1904. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  1905. - { (exit 1); exit 1; }; }
  1906. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  1907. - case $ac_option in
  1908. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  1909. - *) ac_optarg=yes ;;
  1910. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1911. + as_fn_error "invalid feature name: $ac_useropt"
  1912. + ac_useropt_orig=$ac_useropt
  1913. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1914. + case $ac_user_opts in
  1915. + *"
  1916. +"enable_$ac_useropt"
  1917. +"*) ;;
  1918. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1919. + ac_unrecognized_sep=', ';;
  1920. esac
  1921. - eval "enable_$ac_feature='$ac_optarg'" ;;
  1922. + eval enable_$ac_useropt=\$ac_optarg ;;
  1923. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1924. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1925. @@ -439,6 +865,12 @@
  1926. -host=* | --host=* | --hos=* | --ho=*)
  1927. host_alias=$ac_optarg ;;
  1928. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1929. + ac_prev=htmldir ;;
  1930. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1931. + | --ht=*)
  1932. + htmldir=$ac_optarg ;;
  1933. +
  1934. -includedir | --includedir | --includedi | --included | --include \
  1935. | --includ | --inclu | --incl | --inc)
  1936. ac_prev=includedir ;;
  1937. @@ -463,13 +895,16 @@
  1938. | --libexe=* | --libex=* | --libe=*)
  1939. libexecdir=$ac_optarg ;;
  1940. + -localedir | --localedir | --localedi | --localed | --locale)
  1941. + ac_prev=localedir ;;
  1942. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1943. + localedir=$ac_optarg ;;
  1944. +
  1945. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1946. - | --localstate | --localstat | --localsta | --localst \
  1947. - | --locals | --local | --loca | --loc | --lo)
  1948. + | --localstate | --localstat | --localsta | --localst | --locals)
  1949. ac_prev=localstatedir ;;
  1950. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1951. - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  1952. - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  1953. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1954. localstatedir=$ac_optarg ;;
  1955. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1956. @@ -534,6 +969,16 @@
  1957. | --progr-tra=* | --program-tr=* | --program-t=*)
  1958. program_transform_name=$ac_optarg ;;
  1959. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1960. + ac_prev=pdfdir ;;
  1961. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1962. + pdfdir=$ac_optarg ;;
  1963. +
  1964. + -psdir | --psdir | --psdi | --psd | --ps)
  1965. + ac_prev=psdir ;;
  1966. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1967. + psdir=$ac_optarg ;;
  1968. +
  1969. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1970. | -silent | --silent | --silen | --sile | --sil)
  1971. silent=yes ;;
  1972. @@ -584,26 +1029,36 @@
  1973. ac_init_version=: ;;
  1974. -with-* | --with-*)
  1975. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1976. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1977. # Reject names that are not valid shell variable names.
  1978. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  1979. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  1980. - { (exit 1); exit 1; }; }
  1981. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  1982. - case $ac_option in
  1983. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  1984. - *) ac_optarg=yes ;;
  1985. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1986. + as_fn_error "invalid package name: $ac_useropt"
  1987. + ac_useropt_orig=$ac_useropt
  1988. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1989. + case $ac_user_opts in
  1990. + *"
  1991. +"with_$ac_useropt"
  1992. +"*) ;;
  1993. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1994. + ac_unrecognized_sep=', ';;
  1995. esac
  1996. - eval "with_$ac_package='$ac_optarg'" ;;
  1997. + eval with_$ac_useropt=\$ac_optarg ;;
  1998. -without-* | --without-*)
  1999. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  2000. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  2001. # Reject names that are not valid shell variable names.
  2002. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  2003. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  2004. - { (exit 1); exit 1; }; }
  2005. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  2006. - eval "with_$ac_package=no" ;;
  2007. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  2008. + as_fn_error "invalid package name: $ac_useropt"
  2009. + ac_useropt_orig=$ac_useropt
  2010. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  2011. + case $ac_user_opts in
  2012. + *"
  2013. +"with_$ac_useropt"
  2014. +"*) ;;
  2015. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  2016. + ac_unrecognized_sep=', ';;
  2017. + esac
  2018. + eval with_$ac_useropt=no ;;
  2019. --x)
  2020. # Obsolete; use --with-x.
  2021. @@ -623,26 +1078,25 @@
  2022. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  2023. x_libraries=$ac_optarg ;;
  2024. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  2025. -Try \`$0 --help' for more information." >&2
  2026. - { (exit 1); exit 1; }; }
  2027. + -*) as_fn_error "unrecognized option: \`$ac_option'
  2028. +Try \`$0 --help' for more information."
  2029. ;;
  2030. *=*)
  2031. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  2032. # Reject names that are not valid shell variable names.
  2033. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  2034. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  2035. - { (exit 1); exit 1; }; }
  2036. - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  2037. - eval "$ac_envvar='$ac_optarg'"
  2038. + case $ac_envvar in #(
  2039. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  2040. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  2041. + esac
  2042. + eval $ac_envvar=\$ac_optarg
  2043. export $ac_envvar ;;
  2044. *)
  2045. # FIXME: should be removed in autoconf 3.0.
  2046. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  2047. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  2048. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  2049. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  2050. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  2051. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  2052. ;;
  2053. @@ -651,31 +1105,36 @@
  2054. if test -n "$ac_prev"; then
  2055. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  2056. - { echo "$as_me: error: missing argument to $ac_option" >&2
  2057. - { (exit 1); exit 1; }; }
  2058. + as_fn_error "missing argument to $ac_option"
  2059. fi
  2060. -# Be sure to have absolute paths.
  2061. -for ac_var in exec_prefix prefix
  2062. -do
  2063. - eval ac_val=$`echo $ac_var`
  2064. - case $ac_val in
  2065. - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  2066. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  2067. - { (exit 1); exit 1; }; };;
  2068. +if test -n "$ac_unrecognized_opts"; then
  2069. + case $enable_option_checking in
  2070. + no) ;;
  2071. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  2072. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  2073. esac
  2074. -done
  2075. +fi
  2076. -# Be sure to have absolute paths.
  2077. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  2078. - localstatedir libdir includedir oldincludedir infodir mandir
  2079. +# Check all directory arguments for consistency.
  2080. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  2081. + datadir sysconfdir sharedstatedir localstatedir includedir \
  2082. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  2083. + libdir localedir mandir
  2084. do
  2085. - eval ac_val=$`echo $ac_var`
  2086. + eval ac_val=\$$ac_var
  2087. + # Remove trailing slashes.
  2088. + case $ac_val in
  2089. + */ )
  2090. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  2091. + eval $ac_var=\$ac_val;;
  2092. + esac
  2093. + # Be sure to have absolute directory names.
  2094. case $ac_val in
  2095. - [\\/$]* | ?:[\\/]* ) ;;
  2096. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  2097. - { (exit 1); exit 1; }; };;
  2098. + [\\/$]* | ?:[\\/]* ) continue;;
  2099. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  2100. esac
  2101. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  2102. done
  2103. # There might be people who depend on the old broken behavior: `$host'
  2104. @@ -689,7 +1148,7 @@
  2105. if test "x$host_alias" != x; then
  2106. if test "x$build_alias" = x; then
  2107. cross_compiling=maybe
  2108. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  2109. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  2110. If a cross compiler is detected then cross compile mode will be used." >&2
  2111. elif test "x$build_alias" != "x$host_alias"; then
  2112. cross_compiling=yes
  2113. @@ -702,94 +1161,72 @@
  2114. test "$silent" = yes && exec 6>/dev/null
  2115. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  2116. +ac_ls_di=`ls -di .` &&
  2117. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  2118. + as_fn_error "working directory cannot be determined"
  2119. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  2120. + as_fn_error "pwd does not report name of working directory"
  2121. +
  2122. +
  2123. # Find the source files, if location was not specified.
  2124. if test -z "$srcdir"; then
  2125. ac_srcdir_defaulted=yes
  2126. - # Try the directory containing this script, then its parent.
  2127. - ac_confdir=`(dirname "$0") 2>/dev/null ||
  2128. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2129. - X"$0" : 'X\(//\)[^/]' \| \
  2130. - X"$0" : 'X\(//\)$' \| \
  2131. - X"$0" : 'X\(/\)' \| \
  2132. - . : '\(.\)' 2>/dev/null ||
  2133. -echo X"$0" |
  2134. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  2135. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  2136. - /^X\(\/\/\)$/{ s//\1/; q; }
  2137. - /^X\(\/\).*/{ s//\1/; q; }
  2138. - s/.*/./; q'`
  2139. + # Try the directory containing this script, then the parent directory.
  2140. + ac_confdir=`$as_dirname -- "$as_myself" ||
  2141. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2142. + X"$as_myself" : 'X\(//\)[^/]' \| \
  2143. + X"$as_myself" : 'X\(//\)$' \| \
  2144. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  2145. +$as_echo X"$as_myself" |
  2146. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2147. + s//\1/
  2148. + q
  2149. + }
  2150. + /^X\(\/\/\)[^/].*/{
  2151. + s//\1/
  2152. + q
  2153. + }
  2154. + /^X\(\/\/\)$/{
  2155. + s//\1/
  2156. + q
  2157. + }
  2158. + /^X\(\/\).*/{
  2159. + s//\1/
  2160. + q
  2161. + }
  2162. + s/.*/./; q'`
  2163. srcdir=$ac_confdir
  2164. - if test ! -r $srcdir/$ac_unique_file; then
  2165. + if test ! -r "$srcdir/$ac_unique_file"; then
  2166. srcdir=..
  2167. fi
  2168. else
  2169. ac_srcdir_defaulted=no
  2170. fi
  2171. -if test ! -r $srcdir/$ac_unique_file; then
  2172. - if test "$ac_srcdir_defaulted" = yes; then
  2173. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  2174. - { (exit 1); exit 1; }; }
  2175. - else
  2176. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  2177. - { (exit 1); exit 1; }; }
  2178. - fi
  2179. -fi
  2180. -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  2181. - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  2182. - { (exit 1); exit 1; }; }
  2183. -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  2184. -ac_env_build_alias_set=${build_alias+set}
  2185. -ac_env_build_alias_value=$build_alias
  2186. -ac_cv_env_build_alias_set=${build_alias+set}
  2187. -ac_cv_env_build_alias_value=$build_alias
  2188. -ac_env_host_alias_set=${host_alias+set}
  2189. -ac_env_host_alias_value=$host_alias
  2190. -ac_cv_env_host_alias_set=${host_alias+set}
  2191. -ac_cv_env_host_alias_value=$host_alias
  2192. -ac_env_target_alias_set=${target_alias+set}
  2193. -ac_env_target_alias_value=$target_alias
  2194. -ac_cv_env_target_alias_set=${target_alias+set}
  2195. -ac_cv_env_target_alias_value=$target_alias
  2196. -ac_env_CC_set=${CC+set}
  2197. -ac_env_CC_value=$CC
  2198. -ac_cv_env_CC_set=${CC+set}
  2199. -ac_cv_env_CC_value=$CC
  2200. -ac_env_CFLAGS_set=${CFLAGS+set}
  2201. -ac_env_CFLAGS_value=$CFLAGS
  2202. -ac_cv_env_CFLAGS_set=${CFLAGS+set}
  2203. -ac_cv_env_CFLAGS_value=$CFLAGS
  2204. -ac_env_LDFLAGS_set=${LDFLAGS+set}
  2205. -ac_env_LDFLAGS_value=$LDFLAGS
  2206. -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  2207. -ac_cv_env_LDFLAGS_value=$LDFLAGS
  2208. -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  2209. -ac_env_CPPFLAGS_value=$CPPFLAGS
  2210. -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  2211. -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  2212. -ac_env_CPP_set=${CPP+set}
  2213. -ac_env_CPP_value=$CPP
  2214. -ac_cv_env_CPP_set=${CPP+set}
  2215. -ac_cv_env_CPP_value=$CPP
  2216. -ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  2217. -ac_env_PKG_CONFIG_value=$PKG_CONFIG
  2218. -ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
  2219. -ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
  2220. -ac_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
  2221. -ac_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
  2222. -ac_cv_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
  2223. -ac_cv_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
  2224. -ac_env_GLIB_LIBS_set=${GLIB_LIBS+set}
  2225. -ac_env_GLIB_LIBS_value=$GLIB_LIBS
  2226. -ac_cv_env_GLIB_LIBS_set=${GLIB_LIBS+set}
  2227. -ac_cv_env_GLIB_LIBS_value=$GLIB_LIBS
  2228. -ac_env_GTHREAD_CFLAGS_set=${GTHREAD_CFLAGS+set}
  2229. -ac_env_GTHREAD_CFLAGS_value=$GTHREAD_CFLAGS
  2230. -ac_cv_env_GTHREAD_CFLAGS_set=${GTHREAD_CFLAGS+set}
  2231. -ac_cv_env_GTHREAD_CFLAGS_value=$GTHREAD_CFLAGS
  2232. -ac_env_GTHREAD_LIBS_set=${GTHREAD_LIBS+set}
  2233. -ac_env_GTHREAD_LIBS_value=$GTHREAD_LIBS
  2234. -ac_cv_env_GTHREAD_LIBS_set=${GTHREAD_LIBS+set}
  2235. -ac_cv_env_GTHREAD_LIBS_value=$GTHREAD_LIBS
  2236. +if test ! -r "$srcdir/$ac_unique_file"; then
  2237. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  2238. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  2239. +fi
  2240. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  2241. +ac_abs_confdir=`(
  2242. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  2243. + pwd)`
  2244. +# When building in place, set srcdir=.
  2245. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  2246. + srcdir=.
  2247. +fi
  2248. +# Remove unnecessary trailing slashes from srcdir.
  2249. +# Double slashes in file names in object file debugging info
  2250. +# mess up M-x gdb in Emacs.
  2251. +case $srcdir in
  2252. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  2253. +esac
  2254. +for ac_var in $ac_precious_vars; do
  2255. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  2256. + eval ac_env_${ac_var}_value=\$${ac_var}
  2257. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  2258. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  2259. +done
  2260. #
  2261. # Report the --help message.
  2262. @@ -818,14 +1255,11 @@
  2263. -n, --no-create do not create output files
  2264. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  2265. -_ACEOF
  2266. -
  2267. - cat <<_ACEOF
  2268. Installation directories:
  2269. --prefix=PREFIX install architecture-independent files in PREFIX
  2270. - [$ac_default_prefix]
  2271. + [$ac_default_prefix]
  2272. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  2273. - [PREFIX]
  2274. + [PREFIX]
  2275. By default, \`make install' will install all the files in
  2276. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  2277. @@ -835,18 +1269,25 @@
  2278. For better control, use the options below.
  2279. Fine tuning of the installation directories:
  2280. - --bindir=DIR user executables [EPREFIX/bin]
  2281. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  2282. - --libexecdir=DIR program executables [EPREFIX/libexec]
  2283. - --datadir=DIR read-only architecture-independent data [PREFIX/share]
  2284. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  2285. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  2286. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  2287. - --libdir=DIR object code libraries [EPREFIX/lib]
  2288. - --includedir=DIR C header files [PREFIX/include]
  2289. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  2290. - --infodir=DIR info documentation [PREFIX/info]
  2291. - --mandir=DIR man documentation [PREFIX/man]
  2292. + --bindir=DIR user executables [EPREFIX/bin]
  2293. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  2294. + --libexecdir=DIR program executables [EPREFIX/libexec]
  2295. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  2296. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  2297. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  2298. + --libdir=DIR object code libraries [EPREFIX/lib]
  2299. + --includedir=DIR C header files [PREFIX/include]
  2300. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  2301. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  2302. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  2303. + --infodir=DIR info documentation [DATAROOTDIR/info]
  2304. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  2305. + --mandir=DIR man documentation [DATAROOTDIR/man]
  2306. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  2307. + --htmldir=DIR html documentation [DOCDIR]
  2308. + --dvidir=DIR dvi documentation [DOCDIR]
  2309. + --pdfdir=DIR pdf documentation [DOCDIR]
  2310. + --psdir=DIR ps documentation [DOCDIR]
  2311. _ACEOF
  2312. cat <<\_ACEOF
  2313. @@ -863,6 +1304,7 @@
  2314. cat <<\_ACEOF
  2315. Optional Features:
  2316. + --disable-option-checking ignore unrecognized --enable/--with options
  2317. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  2318. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  2319. --disable-libglib use glib2 for multiprocessing support
  2320. @@ -880,8 +1322,9 @@
  2321. CFLAGS C compiler flags
  2322. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  2323. nonstandard directory <lib dir>
  2324. - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  2325. - headers in a nonstandard directory <include dir>
  2326. + LIBS libraries to pass to the linker, e.g. -l<library>
  2327. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  2328. + you have headers in a nonstandard directory <include dir>
  2329. CPP C preprocessor
  2330. PKG_CONFIG path to pkg-config utility
  2331. GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  2332. @@ -894,158 +1337,481 @@
  2333. Use these variables to override the choices made by `configure' or to help
  2334. it to find libraries and programs with nonstandard names/locations.
  2335. +Report bugs to the package provider.
  2336. _ACEOF
  2337. +ac_status=$?
  2338. fi
  2339. if test "$ac_init_help" = "recursive"; then
  2340. # If there are subdirs, report their specific --help.
  2341. - ac_popdir=`pwd`
  2342. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  2343. - test -d $ac_dir || continue
  2344. + test -d "$ac_dir" ||
  2345. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  2346. + continue
  2347. ac_builddir=.
  2348. -if test "$ac_dir" != .; then
  2349. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  2350. - # A "../" for each directory in $ac_dir_suffix.
  2351. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  2352. -else
  2353. - ac_dir_suffix= ac_top_builddir=
  2354. -fi
  2355. +case "$ac_dir" in
  2356. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2357. +*)
  2358. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2359. + # A ".." for each directory in $ac_dir_suffix.
  2360. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2361. + case $ac_top_builddir_sub in
  2362. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2363. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2364. + esac ;;
  2365. +esac
  2366. +ac_abs_top_builddir=$ac_pwd
  2367. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2368. +# for backward compatibility:
  2369. +ac_top_builddir=$ac_top_build_prefix
  2370. case $srcdir in
  2371. - .) # No --srcdir option. We are building in place.
  2372. + .) # We are building in place.
  2373. ac_srcdir=.
  2374. - if test -z "$ac_top_builddir"; then
  2375. - ac_top_srcdir=.
  2376. - else
  2377. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  2378. - fi ;;
  2379. - [\\/]* | ?:[\\/]* ) # Absolute path.
  2380. + ac_top_srcdir=$ac_top_builddir_sub
  2381. + ac_abs_top_srcdir=$ac_pwd ;;
  2382. + [\\/]* | ?:[\\/]* ) # Absolute name.
  2383. ac_srcdir=$srcdir$ac_dir_suffix;
  2384. - ac_top_srcdir=$srcdir ;;
  2385. - *) # Relative path.
  2386. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  2387. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  2388. -esac
  2389. -
  2390. -# Do not use `cd foo && pwd` to compute absolute paths, because
  2391. -# the directories may not exist.
  2392. -case `pwd` in
  2393. -.) ac_abs_builddir="$ac_dir";;
  2394. -*)
  2395. - case "$ac_dir" in
  2396. - .) ac_abs_builddir=`pwd`;;
  2397. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  2398. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  2399. - esac;;
  2400. -esac
  2401. -case $ac_abs_builddir in
  2402. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  2403. -*)
  2404. - case ${ac_top_builddir}. in
  2405. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  2406. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  2407. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  2408. - esac;;
  2409. -esac
  2410. -case $ac_abs_builddir in
  2411. -.) ac_abs_srcdir=$ac_srcdir;;
  2412. -*)
  2413. - case $ac_srcdir in
  2414. - .) ac_abs_srcdir=$ac_abs_builddir;;
  2415. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  2416. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  2417. - esac;;
  2418. -esac
  2419. -case $ac_abs_builddir in
  2420. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  2421. -*)
  2422. - case $ac_top_srcdir in
  2423. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  2424. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  2425. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  2426. - esac;;
  2427. + ac_top_srcdir=$srcdir
  2428. + ac_abs_top_srcdir=$srcdir ;;
  2429. + *) # Relative name.
  2430. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2431. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  2432. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2433. esac
  2434. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2435. - cd $ac_dir
  2436. - # Check for guested configure; otherwise get Cygnus style configure.
  2437. - if test -f $ac_srcdir/configure.gnu; then
  2438. - echo
  2439. - $SHELL $ac_srcdir/configure.gnu --help=recursive
  2440. - elif test -f $ac_srcdir/configure; then
  2441. - echo
  2442. - $SHELL $ac_srcdir/configure --help=recursive
  2443. - elif test -f $ac_srcdir/configure.ac ||
  2444. - test -f $ac_srcdir/configure.in; then
  2445. - echo
  2446. - $ac_configure --help
  2447. + cd "$ac_dir" || { ac_status=$?; continue; }
  2448. + # Check for guested configure.
  2449. + if test -f "$ac_srcdir/configure.gnu"; then
  2450. + echo &&
  2451. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  2452. + elif test -f "$ac_srcdir/configure"; then
  2453. + echo &&
  2454. + $SHELL "$ac_srcdir/configure" --help=recursive
  2455. else
  2456. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2457. - fi
  2458. - cd "$ac_popdir"
  2459. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2460. + fi || ac_status=$?
  2461. + cd "$ac_pwd" || { ac_status=$?; break; }
  2462. done
  2463. fi
  2464. -test -n "$ac_init_help" && exit 0
  2465. +test -n "$ac_init_help" && exit $ac_status
  2466. if $ac_init_version; then
  2467. cat <<\_ACEOF
  2468. +configure
  2469. +generated by GNU Autoconf 2.65
  2470. -Copyright (C) 2003 Free Software Foundation, Inc.
  2471. +Copyright (C) 2009 Free Software Foundation, Inc.
  2472. This configure script is free software; the Free Software Foundation
  2473. gives unlimited permission to copy, distribute and modify it.
  2474. _ACEOF
  2475. - exit 0
  2476. + exit
  2477. fi
  2478. -exec 5>config.log
  2479. -cat >&5 <<_ACEOF
  2480. -This file contains any messages produced by compilers while
  2481. -running configure, to aid debugging if configure makes a mistake.
  2482. -
  2483. -It was created by $as_me, which was
  2484. -generated by GNU Autoconf 2.59. Invocation command line was
  2485. -
  2486. - $ $0 $@
  2487. -_ACEOF
  2488. +## ------------------------ ##
  2489. +## Autoconf initialization. ##
  2490. +## ------------------------ ##
  2491. +
  2492. +# ac_fn_c_try_compile LINENO
  2493. +# --------------------------
  2494. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  2495. +ac_fn_c_try_compile ()
  2496. {
  2497. -cat <<_ASUNAME
  2498. -## --------- ##
  2499. -## Platform. ##
  2500. -## --------- ##
  2501. -
  2502. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2503. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2504. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2505. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2506. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2507. -
  2508. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2509. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2510. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2511. + rm -f conftest.$ac_objext
  2512. + if { { ac_try="$ac_compile"
  2513. +case "(($ac_try" in
  2514. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2515. + *) ac_try_echo=$ac_try;;
  2516. +esac
  2517. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2518. +$as_echo "$ac_try_echo"; } >&5
  2519. + (eval "$ac_compile") 2>conftest.err
  2520. + ac_status=$?
  2521. + if test -s conftest.err; then
  2522. + grep -v '^ *+' conftest.err >conftest.er1
  2523. + cat conftest.er1 >&5
  2524. + mv -f conftest.er1 conftest.err
  2525. + fi
  2526. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2527. + test $ac_status = 0; } && {
  2528. + test -z "$ac_c_werror_flag" ||
  2529. + test ! -s conftest.err
  2530. + } && test -s conftest.$ac_objext; then :
  2531. + ac_retval=0
  2532. +else
  2533. + $as_echo "$as_me: failed program was:" >&5
  2534. +sed 's/^/| /' conftest.$ac_ext >&5
  2535. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2536. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2537. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2538. -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  2539. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2540. -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2541. -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2542. + ac_retval=1
  2543. +fi
  2544. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2545. + as_fn_set_status $ac_retval
  2546. -_ASUNAME
  2547. +} # ac_fn_c_try_compile
  2548. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2549. -for as_dir in $PATH
  2550. -do
  2551. - IFS=$as_save_IFS
  2552. - test -z "$as_dir" && as_dir=.
  2553. - echo "PATH: $as_dir"
  2554. -done
  2555. +# ac_fn_c_try_cpp LINENO
  2556. +# ----------------------
  2557. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2558. +ac_fn_c_try_cpp ()
  2559. +{
  2560. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2561. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  2562. +case "(($ac_try" in
  2563. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2564. + *) ac_try_echo=$ac_try;;
  2565. +esac
  2566. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2567. +$as_echo "$ac_try_echo"; } >&5
  2568. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2569. + ac_status=$?
  2570. + if test -s conftest.err; then
  2571. + grep -v '^ *+' conftest.err >conftest.er1
  2572. + cat conftest.er1 >&5
  2573. + mv -f conftest.er1 conftest.err
  2574. + fi
  2575. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2576. + test $ac_status = 0; } >/dev/null && {
  2577. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2578. + test ! -s conftest.err
  2579. + }; then :
  2580. + ac_retval=0
  2581. +else
  2582. + $as_echo "$as_me: failed program was:" >&5
  2583. +sed 's/^/| /' conftest.$ac_ext >&5
  2584. -} >&5
  2585. + ac_retval=1
  2586. +fi
  2587. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2588. + as_fn_set_status $ac_retval
  2589. -cat >&5 <<_ACEOF
  2590. +} # ac_fn_c_try_cpp
  2591. +# ac_fn_c_try_run LINENO
  2592. +# ----------------------
  2593. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2594. +# that executables *can* be run.
  2595. +ac_fn_c_try_run ()
  2596. +{
  2597. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2598. + if { { ac_try="$ac_link"
  2599. +case "(($ac_try" in
  2600. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2601. + *) ac_try_echo=$ac_try;;
  2602. +esac
  2603. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2604. +$as_echo "$ac_try_echo"; } >&5
  2605. + (eval "$ac_link") 2>&5
  2606. + ac_status=$?
  2607. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2608. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2609. + { { case "(($ac_try" in
  2610. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2611. + *) ac_try_echo=$ac_try;;
  2612. +esac
  2613. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2614. +$as_echo "$ac_try_echo"; } >&5
  2615. + (eval "$ac_try") 2>&5
  2616. + ac_status=$?
  2617. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2618. + test $ac_status = 0; }; }; then :
  2619. + ac_retval=0
  2620. +else
  2621. + $as_echo "$as_me: program exited with status $ac_status" >&5
  2622. + $as_echo "$as_me: failed program was:" >&5
  2623. +sed 's/^/| /' conftest.$ac_ext >&5
  2624. -## ----------- ##
  2625. + ac_retval=$ac_status
  2626. +fi
  2627. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2628. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2629. + as_fn_set_status $ac_retval
  2630. +
  2631. +} # ac_fn_c_try_run
  2632. +
  2633. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2634. +# -------------------------------------------------------
  2635. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2636. +# the include files in INCLUDES and setting the cache variable VAR
  2637. +# accordingly.
  2638. +ac_fn_c_check_header_mongrel ()
  2639. +{
  2640. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2641. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2642. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2643. +$as_echo_n "checking for $2... " >&6; }
  2644. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2645. + $as_echo_n "(cached) " >&6
  2646. +fi
  2647. +eval ac_res=\$$3
  2648. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2649. +$as_echo "$ac_res" >&6; }
  2650. +else
  2651. + # Is the header compilable?
  2652. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2653. +$as_echo_n "checking $2 usability... " >&6; }
  2654. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2655. +/* end confdefs.h. */
  2656. +$4
  2657. +#include <$2>
  2658. +_ACEOF
  2659. +if ac_fn_c_try_compile "$LINENO"; then :
  2660. + ac_header_compiler=yes
  2661. +else
  2662. + ac_header_compiler=no
  2663. +fi
  2664. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2665. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2666. +$as_echo "$ac_header_compiler" >&6; }
  2667. +
  2668. +# Is the header present?
  2669. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2670. +$as_echo_n "checking $2 presence... " >&6; }
  2671. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2672. +/* end confdefs.h. */
  2673. +#include <$2>
  2674. +_ACEOF
  2675. +if ac_fn_c_try_cpp "$LINENO"; then :
  2676. + ac_header_preproc=yes
  2677. +else
  2678. + ac_header_preproc=no
  2679. +fi
  2680. +rm -f conftest.err conftest.$ac_ext
  2681. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2682. +$as_echo "$ac_header_preproc" >&6; }
  2683. +
  2684. +# So? What about this header?
  2685. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2686. + yes:no: )
  2687. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2688. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2689. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2690. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2691. + ;;
  2692. + no:yes:* )
  2693. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2694. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2695. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2696. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2697. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2698. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2699. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2700. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2701. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2702. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2703. + ;;
  2704. +esac
  2705. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2706. +$as_echo_n "checking for $2... " >&6; }
  2707. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2708. + $as_echo_n "(cached) " >&6
  2709. +else
  2710. + eval "$3=\$ac_header_compiler"
  2711. +fi
  2712. +eval ac_res=\$$3
  2713. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2714. +$as_echo "$ac_res" >&6; }
  2715. +fi
  2716. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2717. +
  2718. +} # ac_fn_c_check_header_mongrel
  2719. +
  2720. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2721. +# -------------------------------------------------------
  2722. +# Tests whether HEADER exists and can be compiled using the include files in
  2723. +# INCLUDES, setting the cache variable VAR accordingly.
  2724. +ac_fn_c_check_header_compile ()
  2725. +{
  2726. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2727. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2728. +$as_echo_n "checking for $2... " >&6; }
  2729. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2730. + $as_echo_n "(cached) " >&6
  2731. +else
  2732. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2733. +/* end confdefs.h. */
  2734. +$4
  2735. +#include <$2>
  2736. +_ACEOF
  2737. +if ac_fn_c_try_compile "$LINENO"; then :
  2738. + eval "$3=yes"
  2739. +else
  2740. + eval "$3=no"
  2741. +fi
  2742. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2743. +fi
  2744. +eval ac_res=\$$3
  2745. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2746. +$as_echo "$ac_res" >&6; }
  2747. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2748. +
  2749. +} # ac_fn_c_check_header_compile
  2750. +
  2751. +# ac_fn_c_try_link LINENO
  2752. +# -----------------------
  2753. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  2754. +ac_fn_c_try_link ()
  2755. +{
  2756. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2757. + rm -f conftest.$ac_objext conftest$ac_exeext
  2758. + if { { ac_try="$ac_link"
  2759. +case "(($ac_try" in
  2760. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2761. + *) ac_try_echo=$ac_try;;
  2762. +esac
  2763. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2764. +$as_echo "$ac_try_echo"; } >&5
  2765. + (eval "$ac_link") 2>conftest.err
  2766. + ac_status=$?
  2767. + if test -s conftest.err; then
  2768. + grep -v '^ *+' conftest.err >conftest.er1
  2769. + cat conftest.er1 >&5
  2770. + mv -f conftest.er1 conftest.err
  2771. + fi
  2772. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2773. + test $ac_status = 0; } && {
  2774. + test -z "$ac_c_werror_flag" ||
  2775. + test ! -s conftest.err
  2776. + } && test -s conftest$ac_exeext && {
  2777. + test "$cross_compiling" = yes ||
  2778. + $as_test_x conftest$ac_exeext
  2779. + }; then :
  2780. + ac_retval=0
  2781. +else
  2782. + $as_echo "$as_me: failed program was:" >&5
  2783. +sed 's/^/| /' conftest.$ac_ext >&5
  2784. +
  2785. + ac_retval=1
  2786. +fi
  2787. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2788. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2789. + # interfere with the next link command; also delete a directory that is
  2790. + # left behind by Apple's compiler. We do this before executing the actions.
  2791. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2792. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2793. + as_fn_set_status $ac_retval
  2794. +
  2795. +} # ac_fn_c_try_link
  2796. +
  2797. +# ac_fn_c_check_func LINENO FUNC VAR
  2798. +# ----------------------------------
  2799. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  2800. +ac_fn_c_check_func ()
  2801. +{
  2802. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2803. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2804. +$as_echo_n "checking for $2... " >&6; }
  2805. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2806. + $as_echo_n "(cached) " >&6
  2807. +else
  2808. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2809. +/* end confdefs.h. */
  2810. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2811. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2812. +#define $2 innocuous_$2
  2813. +
  2814. +/* System header to define __stub macros and hopefully few prototypes,
  2815. + which can conflict with char $2 (); below.
  2816. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2817. + <limits.h> exists even on freestanding compilers. */
  2818. +
  2819. +#ifdef __STDC__
  2820. +# include <limits.h>
  2821. +#else
  2822. +# include <assert.h>
  2823. +#endif
  2824. +
  2825. +#undef $2
  2826. +
  2827. +/* Override any GCC internal prototype to avoid an error.
  2828. + Use char because int might match the return type of a GCC
  2829. + builtin and then its argument prototype would still apply. */
  2830. +#ifdef __cplusplus
  2831. +extern "C"
  2832. +#endif
  2833. +char $2 ();
  2834. +/* The GNU C library defines this for functions which it implements
  2835. + to always fail with ENOSYS. Some functions are actually named
  2836. + something starting with __ and the normal name is an alias. */
  2837. +#if defined __stub_$2 || defined __stub___$2
  2838. +choke me
  2839. +#endif
  2840. +
  2841. +int
  2842. +main ()
  2843. +{
  2844. +return $2 ();
  2845. + ;
  2846. + return 0;
  2847. +}
  2848. +_ACEOF
  2849. +if ac_fn_c_try_link "$LINENO"; then :
  2850. + eval "$3=yes"
  2851. +else
  2852. + eval "$3=no"
  2853. +fi
  2854. +rm -f core conftest.err conftest.$ac_objext \
  2855. + conftest$ac_exeext conftest.$ac_ext
  2856. +fi
  2857. +eval ac_res=\$$3
  2858. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2859. +$as_echo "$ac_res" >&6; }
  2860. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2861. +
  2862. +} # ac_fn_c_check_func
  2863. +cat >config.log <<_ACEOF
  2864. +This file contains any messages produced by compilers while
  2865. +running configure, to aid debugging if configure makes a mistake.
  2866. +
  2867. +It was created by $as_me, which was
  2868. +generated by GNU Autoconf 2.65. Invocation command line was
  2869. +
  2870. + $ $0 $@
  2871. +
  2872. +_ACEOF
  2873. +exec 5>>config.log
  2874. +{
  2875. +cat <<_ASUNAME
  2876. +## --------- ##
  2877. +## Platform. ##
  2878. +## --------- ##
  2879. +
  2880. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2881. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2882. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2883. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2884. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2885. +
  2886. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2887. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2888. +
  2889. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2890. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2891. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2892. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2893. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2894. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2895. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2896. +
  2897. +_ASUNAME
  2898. +
  2899. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2900. +for as_dir in $PATH
  2901. +do
  2902. + IFS=$as_save_IFS
  2903. + test -z "$as_dir" && as_dir=.
  2904. + $as_echo "PATH: $as_dir"
  2905. + done
  2906. +IFS=$as_save_IFS
  2907. +
  2908. +} >&5
  2909. +
  2910. +cat >&5 <<_ACEOF
  2911. +
  2912. +
  2913. +## ----------- ##
  2914. ## Core tests. ##
  2915. ## ----------- ##
  2916. @@ -1060,7 +1826,6 @@
  2917. ac_configure_args=
  2918. ac_configure_args0=
  2919. ac_configure_args1=
  2920. -ac_sep=
  2921. ac_must_keep_next=false
  2922. for ac_pass in 1 2
  2923. do
  2924. @@ -1071,13 +1836,13 @@
  2925. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2926. | -silent | --silent | --silen | --sile | --sil)
  2927. continue ;;
  2928. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  2929. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2930. + *\'*)
  2931. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2932. esac
  2933. case $ac_pass in
  2934. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  2935. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2936. 2)
  2937. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  2938. + as_fn_append ac_configure_args1 " '$ac_arg'"
  2939. if test $ac_must_keep_next = true; then
  2940. ac_must_keep_next=false # Got value, back to normal.
  2941. else
  2942. @@ -1093,21 +1858,19 @@
  2943. -* ) ac_must_keep_next=true ;;
  2944. esac
  2945. fi
  2946. - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  2947. - # Get rid of the leading space.
  2948. - ac_sep=" "
  2949. + as_fn_append ac_configure_args " '$ac_arg'"
  2950. ;;
  2951. esac
  2952. done
  2953. done
  2954. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  2955. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  2956. +{ ac_configure_args0=; unset ac_configure_args0;}
  2957. +{ ac_configure_args1=; unset ac_configure_args1;}
  2958. # When interrupted or exit'd, cleanup temporary files, and complete
  2959. # config.log. We remove comments because anyway the quotes in there
  2960. # would cause problems or look ugly.
  2961. -# WARNING: Be sure not to use single quotes in there, as some shells,
  2962. -# such as our DU 5.0 friend, will then `close' the trap.
  2963. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  2964. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2965. trap 'exit_status=$?
  2966. # Save into config.log some information that might help in debugging.
  2967. {
  2968. @@ -1120,20 +1883,35 @@
  2969. _ASBOX
  2970. echo
  2971. # The following way of writing the cache mishandles newlines in values,
  2972. -{
  2973. +(
  2974. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2975. + eval ac_val=\$$ac_var
  2976. + case $ac_val in #(
  2977. + *${as_nl}*)
  2978. + case $ac_var in #(
  2979. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2980. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2981. + esac
  2982. + case $ac_var in #(
  2983. + _ | IFS | as_nl) ;; #(
  2984. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2985. + *) { eval $ac_var=; unset $ac_var;} ;;
  2986. + esac ;;
  2987. + esac
  2988. + done
  2989. (set) 2>&1 |
  2990. - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  2991. - *ac_space=\ *)
  2992. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2993. + *${as_nl}ac_space=\ *)
  2994. sed -n \
  2995. - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  2996. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  2997. - ;;
  2998. + "s/'\''/'\''\\\\'\'''\''/g;
  2999. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  3000. + ;; #(
  3001. *)
  3002. - sed -n \
  3003. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3004. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3005. ;;
  3006. - esac;
  3007. -}
  3008. + esac |
  3009. + sort
  3010. +)
  3011. echo
  3012. cat <<\_ASBOX
  3013. @@ -1144,22 +1922,28 @@
  3014. echo
  3015. for ac_var in $ac_subst_vars
  3016. do
  3017. - eval ac_val=$`echo $ac_var`
  3018. - echo "$ac_var='"'"'$ac_val'"'"'"
  3019. + eval ac_val=\$$ac_var
  3020. + case $ac_val in
  3021. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3022. + esac
  3023. + $as_echo "$ac_var='\''$ac_val'\''"
  3024. done | sort
  3025. echo
  3026. if test -n "$ac_subst_files"; then
  3027. cat <<\_ASBOX
  3028. -## ------------- ##
  3029. -## Output files. ##
  3030. -## ------------- ##
  3031. +## ------------------- ##
  3032. +## File substitutions. ##
  3033. +## ------------------- ##
  3034. _ASBOX
  3035. echo
  3036. for ac_var in $ac_subst_files
  3037. do
  3038. - eval ac_val=$`echo $ac_var`
  3039. - echo "$ac_var='"'"'$ac_val'"'"'"
  3040. + eval ac_val=\$$ac_var
  3041. + case $ac_val in
  3042. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3043. + esac
  3044. + $as_echo "$ac_var='\''$ac_val'\''"
  3045. done | sort
  3046. echo
  3047. fi
  3048. @@ -1171,26 +1955,26 @@
  3049. ## ----------- ##
  3050. _ASBOX
  3051. echo
  3052. - sed "/^$/d" confdefs.h | sort
  3053. + cat confdefs.h
  3054. echo
  3055. fi
  3056. test "$ac_signal" != 0 &&
  3057. - echo "$as_me: caught signal $ac_signal"
  3058. - echo "$as_me: exit $exit_status"
  3059. + $as_echo "$as_me: caught signal $ac_signal"
  3060. + $as_echo "$as_me: exit $exit_status"
  3061. } >&5
  3062. - rm -f core *.core &&
  3063. - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  3064. + rm -f core *.core core.conftest.* &&
  3065. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  3066. exit $exit_status
  3067. - ' 0
  3068. +' 0
  3069. for ac_signal in 1 2 13 15; do
  3070. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  3071. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  3072. done
  3073. ac_signal=0
  3074. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  3075. -rm -rf conftest* confdefs.h
  3076. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  3077. -echo >confdefs.h
  3078. +rm -f -r conftest* confdefs.h
  3079. +
  3080. +$as_echo "/* confdefs.h */" > confdefs.h
  3081. # Predefined preprocessor variables.
  3082. @@ -1198,112 +1982,128 @@
  3083. #define PACKAGE_NAME "$PACKAGE_NAME"
  3084. _ACEOF
  3085. -
  3086. cat >>confdefs.h <<_ACEOF
  3087. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  3088. _ACEOF
  3089. -
  3090. cat >>confdefs.h <<_ACEOF
  3091. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  3092. _ACEOF
  3093. -
  3094. cat >>confdefs.h <<_ACEOF
  3095. #define PACKAGE_STRING "$PACKAGE_STRING"
  3096. _ACEOF
  3097. -
  3098. cat >>confdefs.h <<_ACEOF
  3099. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  3100. _ACEOF
  3101. +cat >>confdefs.h <<_ACEOF
  3102. +#define PACKAGE_URL "$PACKAGE_URL"
  3103. +_ACEOF
  3104. +
  3105. # Let the site file select an alternate cache file if it wants to.
  3106. -# Prefer explicitly selected file to automatically selected ones.
  3107. -if test -z "$CONFIG_SITE"; then
  3108. - if test "x$prefix" != xNONE; then
  3109. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  3110. - else
  3111. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  3112. - fi
  3113. +# Prefer an explicitly selected file to automatically selected ones.
  3114. +ac_site_file1=NONE
  3115. +ac_site_file2=NONE
  3116. +if test -n "$CONFIG_SITE"; then
  3117. + ac_site_file1=$CONFIG_SITE
  3118. +elif test "x$prefix" != xNONE; then
  3119. + ac_site_file1=$prefix/share/config.site
  3120. + ac_site_file2=$prefix/etc/config.site
  3121. +else
  3122. + ac_site_file1=$ac_default_prefix/share/config.site
  3123. + ac_site_file2=$ac_default_prefix/etc/config.site
  3124. fi
  3125. -for ac_site_file in $CONFIG_SITE; do
  3126. - if test -r "$ac_site_file"; then
  3127. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  3128. -echo "$as_me: loading site script $ac_site_file" >&6;}
  3129. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  3130. +do
  3131. + test "x$ac_site_file" = xNONE && continue
  3132. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  3133. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  3134. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  3135. sed 's/^/| /' "$ac_site_file" >&5
  3136. . "$ac_site_file"
  3137. fi
  3138. done
  3139. if test -r "$cache_file"; then
  3140. - # Some versions of bash will fail to source /dev/null (special
  3141. - # files actually), so we avoid doing that.
  3142. - if test -f "$cache_file"; then
  3143. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  3144. -echo "$as_me: loading cache $cache_file" >&6;}
  3145. + # Some versions of bash will fail to source /dev/null (special files
  3146. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  3147. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  3148. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  3149. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  3150. case $cache_file in
  3151. - [\\/]* | ?:[\\/]* ) . $cache_file;;
  3152. - *) . ./$cache_file;;
  3153. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  3154. + *) . "./$cache_file";;
  3155. esac
  3156. fi
  3157. else
  3158. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  3159. -echo "$as_me: creating cache $cache_file" >&6;}
  3160. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  3161. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  3162. >$cache_file
  3163. fi
  3164. # Check that the precious variables saved in the cache have kept the same
  3165. # value.
  3166. ac_cache_corrupted=false
  3167. -for ac_var in `(set) 2>&1 |
  3168. - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  3169. +for ac_var in $ac_precious_vars; do
  3170. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3171. eval ac_new_set=\$ac_env_${ac_var}_set
  3172. - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  3173. - eval ac_new_val="\$ac_env_${ac_var}_value"
  3174. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3175. + eval ac_new_val=\$ac_env_${ac_var}_value
  3176. case $ac_old_set,$ac_new_set in
  3177. set,)
  3178. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3179. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3180. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3181. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3182. ac_cache_corrupted=: ;;
  3183. ,set)
  3184. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  3185. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3186. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3187. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3188. ac_cache_corrupted=: ;;
  3189. ,);;
  3190. *)
  3191. if test "x$ac_old_val" != "x$ac_new_val"; then
  3192. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  3193. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3194. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  3195. -echo "$as_me: former value: $ac_old_val" >&2;}
  3196. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  3197. -echo "$as_me: current value: $ac_new_val" >&2;}
  3198. - ac_cache_corrupted=:
  3199. + # differences in whitespace do not lead to failure.
  3200. + ac_old_val_w=`echo x $ac_old_val`
  3201. + ac_new_val_w=`echo x $ac_new_val`
  3202. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3203. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3204. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3205. + ac_cache_corrupted=:
  3206. + else
  3207. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3208. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3209. + eval $ac_var=\$ac_old_val
  3210. + fi
  3211. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3212. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  3213. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3214. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  3215. fi;;
  3216. esac
  3217. # Pass precious variables to config.status.
  3218. if test "$ac_new_set" = set; then
  3219. case $ac_new_val in
  3220. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  3221. - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3222. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3223. *) ac_arg=$ac_var=$ac_new_val ;;
  3224. esac
  3225. case " $ac_configure_args " in
  3226. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3227. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  3228. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3229. esac
  3230. fi
  3231. done
  3232. if $ac_cache_corrupted; then
  3233. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  3234. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3235. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  3236. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  3237. - { (exit 1); exit 1; }; }
  3238. -fi
  3239. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3240. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3241. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3242. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3243. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  3244. +fi
  3245. +## -------------------- ##
  3246. +## Main body of script. ##
  3247. +## -------------------- ##
  3248. ac_ext=c
  3249. ac_cpp='$CPP $CPPFLAGS'
  3250. @@ -1313,122 +2113,131 @@
  3251. -
  3252. -
  3253. -
  3254. -
  3255. -
  3256. -
  3257. -
  3258. -
  3259. -
  3260. -
  3261. -
  3262. -
  3263. -
  3264. -
  3265. -
  3266. -
  3267. -
  3268. ac_aux_dir=
  3269. -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  3270. - if test -f $ac_dir/install-sh; then
  3271. - ac_aux_dir=$ac_dir
  3272. - ac_install_sh="$ac_aux_dir/install-sh -c"
  3273. - break
  3274. - elif test -f $ac_dir/install.sh; then
  3275. - ac_aux_dir=$ac_dir
  3276. - ac_install_sh="$ac_aux_dir/install.sh -c"
  3277. - break
  3278. - elif test -f $ac_dir/shtool; then
  3279. - ac_aux_dir=$ac_dir
  3280. - ac_install_sh="$ac_aux_dir/shtool install -c"
  3281. - break
  3282. - fi
  3283. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3284. + for ac_t in install-sh install.sh shtool; do
  3285. + if test -f "$ac_dir/$ac_t"; then
  3286. + ac_aux_dir=$ac_dir
  3287. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  3288. + break 2
  3289. + fi
  3290. + done
  3291. done
  3292. if test -z "$ac_aux_dir"; then
  3293. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  3294. -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  3295. - { (exit 1); exit 1; }; }
  3296. -fi
  3297. -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  3298. -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  3299. -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  3300. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3301. +fi
  3302. +
  3303. +# These three variables are undocumented and unsupported,
  3304. +# and are intended to be withdrawn in a future Autoconf release.
  3305. +# They can cause serious problems if a builder's source tree is in a directory
  3306. +# whose full name contains unusual characters.
  3307. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3308. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3309. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3310. +
  3311. # Make sure we can run config.sub.
  3312. -$ac_config_sub sun4 >/dev/null 2>&1 ||
  3313. - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  3314. -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  3315. - { (exit 1); exit 1; }; }
  3316. -
  3317. -echo "$as_me:$LINENO: checking build system type" >&5
  3318. -echo $ECHO_N "checking build system type... $ECHO_C" >&6
  3319. -if test "${ac_cv_build+set}" = set; then
  3320. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3321. -else
  3322. - ac_cv_build_alias=$build_alias
  3323. -test -z "$ac_cv_build_alias" &&
  3324. - ac_cv_build_alias=`$ac_config_guess`
  3325. -test -z "$ac_cv_build_alias" &&
  3326. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3327. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3328. - { (exit 1); exit 1; }; }
  3329. -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  3330. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  3331. -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  3332. - { (exit 1); exit 1; }; }
  3333. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3334. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3335. -fi
  3336. -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3337. -echo "${ECHO_T}$ac_cv_build" >&6
  3338. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3339. +$as_echo_n "checking build system type... " >&6; }
  3340. +if test "${ac_cv_build+set}" = set; then :
  3341. + $as_echo_n "(cached) " >&6
  3342. +else
  3343. + ac_build_alias=$build_alias
  3344. +test "x$ac_build_alias" = x &&
  3345. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3346. +test "x$ac_build_alias" = x &&
  3347. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3348. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3349. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3350. +
  3351. +fi
  3352. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3353. +$as_echo "$ac_cv_build" >&6; }
  3354. +case $ac_cv_build in
  3355. +*-*-*) ;;
  3356. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3357. +esac
  3358. build=$ac_cv_build
  3359. -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3360. -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3361. -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3362. -
  3363. -
  3364. -echo "$as_me:$LINENO: checking host system type" >&5
  3365. -echo $ECHO_N "checking host system type... $ECHO_C" >&6
  3366. -if test "${ac_cv_host+set}" = set; then
  3367. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3368. -else
  3369. - ac_cv_host_alias=$host_alias
  3370. -test -z "$ac_cv_host_alias" &&
  3371. - ac_cv_host_alias=$ac_cv_build_alias
  3372. -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  3373. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  3374. -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  3375. - { (exit 1); exit 1; }; }
  3376. +ac_save_IFS=$IFS; IFS='-'
  3377. +set x $ac_cv_build
  3378. +shift
  3379. +build_cpu=$1
  3380. +build_vendor=$2
  3381. +shift; shift
  3382. +# Remember, the first character of IFS is used to create $*,
  3383. +# except with old shells:
  3384. +build_os=$*
  3385. +IFS=$ac_save_IFS
  3386. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3387. +
  3388. +
  3389. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3390. +$as_echo_n "checking host system type... " >&6; }
  3391. +if test "${ac_cv_host+set}" = set; then :
  3392. + $as_echo_n "(cached) " >&6
  3393. +else
  3394. + if test "x$host_alias" = x; then
  3395. + ac_cv_host=$ac_cv_build
  3396. +else
  3397. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3398. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3399. +fi
  3400. fi
  3401. -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3402. -echo "${ECHO_T}$ac_cv_host" >&6
  3403. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3404. +$as_echo "$ac_cv_host" >&6; }
  3405. +case $ac_cv_host in
  3406. +*-*-*) ;;
  3407. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3408. +esac
  3409. host=$ac_cv_host
  3410. -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3411. -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3412. -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3413. -
  3414. -
  3415. -echo "$as_me:$LINENO: checking target system type" >&5
  3416. -echo $ECHO_N "checking target system type... $ECHO_C" >&6
  3417. -if test "${ac_cv_target+set}" = set; then
  3418. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3419. -else
  3420. - ac_cv_target_alias=$target_alias
  3421. -test "x$ac_cv_target_alias" = "x" &&
  3422. - ac_cv_target_alias=$ac_cv_host_alias
  3423. -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  3424. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  3425. -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  3426. - { (exit 1); exit 1; }; }
  3427. +ac_save_IFS=$IFS; IFS='-'
  3428. +set x $ac_cv_host
  3429. +shift
  3430. +host_cpu=$1
  3431. +host_vendor=$2
  3432. +shift; shift
  3433. +# Remember, the first character of IFS is used to create $*,
  3434. +# except with old shells:
  3435. +host_os=$*
  3436. +IFS=$ac_save_IFS
  3437. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3438. +
  3439. +
  3440. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3441. +$as_echo_n "checking target system type... " >&6; }
  3442. +if test "${ac_cv_target+set}" = set; then :
  3443. + $as_echo_n "(cached) " >&6
  3444. +else
  3445. + if test "x$target_alias" = x; then
  3446. + ac_cv_target=$ac_cv_host
  3447. +else
  3448. + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3449. + as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3450. +fi
  3451. fi
  3452. -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  3453. -echo "${ECHO_T}$ac_cv_target" >&6
  3454. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3455. +$as_echo "$ac_cv_target" >&6; }
  3456. +case $ac_cv_target in
  3457. +*-*-*) ;;
  3458. +*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3459. +esac
  3460. target=$ac_cv_target
  3461. -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  3462. -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  3463. -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  3464. +ac_save_IFS=$IFS; IFS='-'
  3465. +set x $ac_cv_target
  3466. +shift
  3467. +target_cpu=$1
  3468. +target_vendor=$2
  3469. +shift; shift
  3470. +# Remember, the first character of IFS is used to create $*,
  3471. +# except with old shells:
  3472. +target_os=$*
  3473. +IFS=$ac_save_IFS
  3474. +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3475. # The aliases save the names the user supplied, while $host etc.
  3476. @@ -1438,7 +2247,8 @@
  3477. NONENONEs,x,x, &&
  3478. program_prefix=${target_alias}-
  3479. - ac_config_headers="$ac_config_headers src/config.h"
  3480. +
  3481. +ac_config_headers="$ac_config_headers src/config.h"
  3482. if test "$prefix" = "NONE" ; then
  3483. @@ -1457,10 +2267,10 @@
  3484. if test -n "$ac_tool_prefix"; then
  3485. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3486. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3487. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3488. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3489. -if test "${ac_cv_prog_CC+set}" = set; then
  3490. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3491. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3492. +$as_echo_n "checking for $ac_word... " >&6; }
  3493. +if test "${ac_cv_prog_CC+set}" = set; then :
  3494. + $as_echo_n "(cached) " >&6
  3495. else
  3496. if test -n "$CC"; then
  3497. ac_cv_prog_CC="$CC" # Let the user override the test.
  3498. @@ -1470,35 +2280,37 @@
  3499. do
  3500. IFS=$as_save_IFS
  3501. test -z "$as_dir" && as_dir=.
  3502. - for ac_exec_ext in '' $ac_executable_extensions; do
  3503. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3504. + for ac_exec_ext in '' $ac_executable_extensions; do
  3505. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3506. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3507. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3508. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. -done
  3513. + done
  3514. +IFS=$as_save_IFS
  3515. fi
  3516. fi
  3517. CC=$ac_cv_prog_CC
  3518. if test -n "$CC"; then
  3519. - echo "$as_me:$LINENO: result: $CC" >&5
  3520. -echo "${ECHO_T}$CC" >&6
  3521. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3522. +$as_echo "$CC" >&6; }
  3523. else
  3524. - echo "$as_me:$LINENO: result: no" >&5
  3525. -echo "${ECHO_T}no" >&6
  3526. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3527. +$as_echo "no" >&6; }
  3528. fi
  3529. +
  3530. fi
  3531. if test -z "$ac_cv_prog_CC"; then
  3532. ac_ct_CC=$CC
  3533. # Extract the first word of "gcc", so it can be a program name with args.
  3534. set dummy gcc; ac_word=$2
  3535. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3536. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3537. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3538. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3539. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3540. +$as_echo_n "checking for $ac_word... " >&6; }
  3541. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3542. + $as_echo_n "(cached) " >&6
  3543. else
  3544. if test -n "$ac_ct_CC"; then
  3545. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3546. @@ -1508,39 +2320,50 @@
  3547. do
  3548. IFS=$as_save_IFS
  3549. test -z "$as_dir" && as_dir=.
  3550. - for ac_exec_ext in '' $ac_executable_extensions; do
  3551. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3552. + for ac_exec_ext in '' $ac_executable_extensions; do
  3553. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3554. ac_cv_prog_ac_ct_CC="gcc"
  3555. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3556. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3557. break 2
  3558. fi
  3559. done
  3560. -done
  3561. + done
  3562. +IFS=$as_save_IFS
  3563. fi
  3564. fi
  3565. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3566. if test -n "$ac_ct_CC"; then
  3567. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3568. -echo "${ECHO_T}$ac_ct_CC" >&6
  3569. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3570. +$as_echo "$ac_ct_CC" >&6; }
  3571. else
  3572. - echo "$as_me:$LINENO: result: no" >&5
  3573. -echo "${ECHO_T}no" >&6
  3574. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3575. +$as_echo "no" >&6; }
  3576. fi
  3577. - CC=$ac_ct_CC
  3578. + if test "x$ac_ct_CC" = x; then
  3579. + CC=""
  3580. + else
  3581. + case $cross_compiling:$ac_tool_warned in
  3582. +yes:)
  3583. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3584. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3585. +ac_tool_warned=yes ;;
  3586. +esac
  3587. + CC=$ac_ct_CC
  3588. + fi
  3589. else
  3590. CC="$ac_cv_prog_CC"
  3591. fi
  3592. if test -z "$CC"; then
  3593. - if test -n "$ac_tool_prefix"; then
  3594. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3595. + if test -n "$ac_tool_prefix"; then
  3596. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3597. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3598. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3599. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3600. -if test "${ac_cv_prog_CC+set}" = set; then
  3601. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3602. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3603. +$as_echo_n "checking for $ac_word... " >&6; }
  3604. +if test "${ac_cv_prog_CC+set}" = set; then :
  3605. + $as_echo_n "(cached) " >&6
  3606. else
  3607. if test -n "$CC"; then
  3608. ac_cv_prog_CC="$CC" # Let the user override the test.
  3609. @@ -1550,77 +2373,37 @@
  3610. do
  3611. IFS=$as_save_IFS
  3612. test -z "$as_dir" && as_dir=.
  3613. - for ac_exec_ext in '' $ac_executable_extensions; do
  3614. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3615. + for ac_exec_ext in '' $ac_executable_extensions; do
  3616. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3617. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3618. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3619. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3620. break 2
  3621. fi
  3622. done
  3623. -done
  3624. + done
  3625. +IFS=$as_save_IFS
  3626. fi
  3627. fi
  3628. CC=$ac_cv_prog_CC
  3629. if test -n "$CC"; then
  3630. - echo "$as_me:$LINENO: result: $CC" >&5
  3631. -echo "${ECHO_T}$CC" >&6
  3632. -else
  3633. - echo "$as_me:$LINENO: result: no" >&5
  3634. -echo "${ECHO_T}no" >&6
  3635. -fi
  3636. -
  3637. -fi
  3638. -if test -z "$ac_cv_prog_CC"; then
  3639. - ac_ct_CC=$CC
  3640. - # Extract the first word of "cc", so it can be a program name with args.
  3641. -set dummy cc; ac_word=$2
  3642. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3643. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3644. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3645. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3646. -else
  3647. - if test -n "$ac_ct_CC"; then
  3648. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3649. -else
  3650. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3651. -for as_dir in $PATH
  3652. -do
  3653. - IFS=$as_save_IFS
  3654. - test -z "$as_dir" && as_dir=.
  3655. - for ac_exec_ext in '' $ac_executable_extensions; do
  3656. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3657. - ac_cv_prog_ac_ct_CC="cc"
  3658. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3659. - break 2
  3660. - fi
  3661. -done
  3662. -done
  3663. -
  3664. -fi
  3665. -fi
  3666. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3667. -if test -n "$ac_ct_CC"; then
  3668. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3669. -echo "${ECHO_T}$ac_ct_CC" >&6
  3670. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3671. +$as_echo "$CC" >&6; }
  3672. else
  3673. - echo "$as_me:$LINENO: result: no" >&5
  3674. -echo "${ECHO_T}no" >&6
  3675. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3676. +$as_echo "no" >&6; }
  3677. fi
  3678. - CC=$ac_ct_CC
  3679. -else
  3680. - CC="$ac_cv_prog_CC"
  3681. -fi
  3682. + fi
  3683. fi
  3684. if test -z "$CC"; then
  3685. # Extract the first word of "cc", so it can be a program name with args.
  3686. set dummy cc; ac_word=$2
  3687. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3688. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3689. -if test "${ac_cv_prog_CC+set}" = set; then
  3690. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3691. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3692. +$as_echo_n "checking for $ac_word... " >&6; }
  3693. +if test "${ac_cv_prog_CC+set}" = set; then :
  3694. + $as_echo_n "(cached) " >&6
  3695. else
  3696. if test -n "$CC"; then
  3697. ac_cv_prog_CC="$CC" # Let the user override the test.
  3698. @@ -1631,18 +2414,19 @@
  3699. do
  3700. IFS=$as_save_IFS
  3701. test -z "$as_dir" && as_dir=.
  3702. - for ac_exec_ext in '' $ac_executable_extensions; do
  3703. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3704. + for ac_exec_ext in '' $ac_executable_extensions; do
  3705. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3706. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3707. ac_prog_rejected=yes
  3708. continue
  3709. fi
  3710. ac_cv_prog_CC="cc"
  3711. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3712. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3713. break 2
  3714. fi
  3715. done
  3716. -done
  3717. + done
  3718. +IFS=$as_save_IFS
  3719. if test $ac_prog_rejected = yes; then
  3720. # We found a bogon in the path, so make sure we never use it.
  3721. @@ -1660,24 +2444,25 @@
  3722. fi
  3723. CC=$ac_cv_prog_CC
  3724. if test -n "$CC"; then
  3725. - echo "$as_me:$LINENO: result: $CC" >&5
  3726. -echo "${ECHO_T}$CC" >&6
  3727. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3728. +$as_echo "$CC" >&6; }
  3729. else
  3730. - echo "$as_me:$LINENO: result: no" >&5
  3731. -echo "${ECHO_T}no" >&6
  3732. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3733. +$as_echo "no" >&6; }
  3734. fi
  3735. +
  3736. fi
  3737. if test -z "$CC"; then
  3738. if test -n "$ac_tool_prefix"; then
  3739. - for ac_prog in cl
  3740. + for ac_prog in cl.exe
  3741. do
  3742. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3743. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3744. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3745. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3746. -if test "${ac_cv_prog_CC+set}" = set; then
  3747. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3748. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3749. +$as_echo_n "checking for $ac_word... " >&6; }
  3750. +if test "${ac_cv_prog_CC+set}" = set; then :
  3751. + $as_echo_n "(cached) " >&6
  3752. else
  3753. if test -n "$CC"; then
  3754. ac_cv_prog_CC="$CC" # Let the user override the test.
  3755. @@ -1687,39 +2472,41 @@
  3756. do
  3757. IFS=$as_save_IFS
  3758. test -z "$as_dir" && as_dir=.
  3759. - for ac_exec_ext in '' $ac_executable_extensions; do
  3760. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3761. + for ac_exec_ext in '' $ac_executable_extensions; do
  3762. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3763. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3764. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3765. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3766. break 2
  3767. fi
  3768. done
  3769. -done
  3770. + done
  3771. +IFS=$as_save_IFS
  3772. fi
  3773. fi
  3774. CC=$ac_cv_prog_CC
  3775. if test -n "$CC"; then
  3776. - echo "$as_me:$LINENO: result: $CC" >&5
  3777. -echo "${ECHO_T}$CC" >&6
  3778. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3779. +$as_echo "$CC" >&6; }
  3780. else
  3781. - echo "$as_me:$LINENO: result: no" >&5
  3782. -echo "${ECHO_T}no" >&6
  3783. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3784. +$as_echo "no" >&6; }
  3785. fi
  3786. +
  3787. test -n "$CC" && break
  3788. done
  3789. fi
  3790. if test -z "$CC"; then
  3791. ac_ct_CC=$CC
  3792. - for ac_prog in cl
  3793. + for ac_prog in cl.exe
  3794. do
  3795. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3796. set dummy $ac_prog; ac_word=$2
  3797. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  3798. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3799. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3800. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3801. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3802. +$as_echo_n "checking for $ac_word... " >&6; }
  3803. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3804. + $as_echo_n "(cached) " >&6
  3805. else
  3806. if test -n "$ac_ct_CC"; then
  3807. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3808. @@ -1729,66 +2516,78 @@
  3809. do
  3810. IFS=$as_save_IFS
  3811. test -z "$as_dir" && as_dir=.
  3812. - for ac_exec_ext in '' $ac_executable_extensions; do
  3813. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3814. + for ac_exec_ext in '' $ac_executable_extensions; do
  3815. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3816. ac_cv_prog_ac_ct_CC="$ac_prog"
  3817. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3818. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3819. break 2
  3820. fi
  3821. done
  3822. -done
  3823. + done
  3824. +IFS=$as_save_IFS
  3825. fi
  3826. fi
  3827. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3828. if test -n "$ac_ct_CC"; then
  3829. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3830. -echo "${ECHO_T}$ac_ct_CC" >&6
  3831. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3832. +$as_echo "$ac_ct_CC" >&6; }
  3833. else
  3834. - echo "$as_me:$LINENO: result: no" >&5
  3835. -echo "${ECHO_T}no" >&6
  3836. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3837. +$as_echo "no" >&6; }
  3838. fi
  3839. +
  3840. test -n "$ac_ct_CC" && break
  3841. done
  3842. - CC=$ac_ct_CC
  3843. + if test "x$ac_ct_CC" = x; then
  3844. + CC=""
  3845. + else
  3846. + case $cross_compiling:$ac_tool_warned in
  3847. +yes:)
  3848. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3849. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3850. +ac_tool_warned=yes ;;
  3851. +esac
  3852. + CC=$ac_ct_CC
  3853. + fi
  3854. fi
  3855. fi
  3856. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3857. -See \`config.log' for more details." >&5
  3858. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  3859. -See \`config.log' for more details." >&2;}
  3860. - { (exit 1); exit 1; }; }
  3861. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3862. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3863. +as_fn_error "no acceptable C compiler found in \$PATH
  3864. +See \`config.log' for more details." "$LINENO" 5; }
  3865. # Provide some information about the compiler.
  3866. -echo "$as_me:$LINENO:" \
  3867. - "checking for C compiler version" >&5
  3868. -ac_compiler=`set X $ac_compile; echo $2`
  3869. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3870. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  3871. - ac_status=$?
  3872. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3873. - (exit $ac_status); }
  3874. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3875. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  3876. - ac_status=$?
  3877. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3878. - (exit $ac_status); }
  3879. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3880. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  3881. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3882. +set X $ac_compile
  3883. +ac_compiler=$2
  3884. +for ac_option in --version -v -V -qversion; do
  3885. + { { ac_try="$ac_compiler $ac_option >&5"
  3886. +case "(($ac_try" in
  3887. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3888. + *) ac_try_echo=$ac_try;;
  3889. +esac
  3890. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3891. +$as_echo "$ac_try_echo"; } >&5
  3892. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3893. ac_status=$?
  3894. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3895. - (exit $ac_status); }
  3896. + if test -s conftest.err; then
  3897. + sed '10a\
  3898. +... rest of stderr output deleted ...
  3899. + 10q' conftest.err >conftest.er1
  3900. + cat conftest.er1 >&5
  3901. + fi
  3902. + rm -f conftest.er1 conftest.err
  3903. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3904. + test $ac_status = 0; }
  3905. +done
  3906. -cat >conftest.$ac_ext <<_ACEOF
  3907. -/* confdefs.h. */
  3908. -_ACEOF
  3909. -cat confdefs.h >>conftest.$ac_ext
  3910. -cat >>conftest.$ac_ext <<_ACEOF
  3911. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3912. /* end confdefs.h. */
  3913. int
  3914. @@ -1800,112 +2599,109 @@
  3915. }
  3916. _ACEOF
  3917. ac_clean_files_save=$ac_clean_files
  3918. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  3919. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3920. # Try to create an executable without -o first, disregard a.out.
  3921. # It will help us diagnose broken compilers, and finding out an intuition
  3922. # of exeext.
  3923. -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  3924. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  3925. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3926. -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  3927. - (eval $ac_link_default) 2>&5
  3928. - ac_status=$?
  3929. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3930. - (exit $ac_status); }; then
  3931. - # Find the output, starting from the most likely. This scheme is
  3932. -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  3933. -# resort.
  3934. -
  3935. -# Be careful to initialize this variable, since it used to be cached.
  3936. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  3937. -ac_cv_exeext=
  3938. -# b.out is created by i960 compilers.
  3939. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  3940. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3941. +$as_echo_n "checking whether the C compiler works... " >&6; }
  3942. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3943. +
  3944. +# The possible output files:
  3945. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3946. +
  3947. +ac_rmfiles=
  3948. +for ac_file in $ac_files
  3949. +do
  3950. + case $ac_file in
  3951. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3952. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3953. + esac
  3954. +done
  3955. +rm -f $ac_rmfiles
  3956. +
  3957. +if { { ac_try="$ac_link_default"
  3958. +case "(($ac_try" in
  3959. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3960. + *) ac_try_echo=$ac_try;;
  3961. +esac
  3962. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3963. +$as_echo "$ac_try_echo"; } >&5
  3964. + (eval "$ac_link_default") 2>&5
  3965. + ac_status=$?
  3966. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3967. + test $ac_status = 0; }; then :
  3968. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3969. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3970. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  3971. +# so that the user can short-circuit this test for compilers unknown to
  3972. +# Autoconf.
  3973. +for ac_file in $ac_files ''
  3974. do
  3975. test -f "$ac_file" || continue
  3976. case $ac_file in
  3977. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  3978. - ;;
  3979. - conftest.$ac_ext )
  3980. - # This is the source file.
  3981. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3982. ;;
  3983. [ab].out )
  3984. # We found the default executable, but exeext='' is most
  3985. # certainly right.
  3986. break;;
  3987. *.* )
  3988. - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3989. - # FIXME: I believe we export ac_cv_exeext for Libtool,
  3990. - # but it would be cool to find out if it's true. Does anybody
  3991. - # maintain Libtool? --akim.
  3992. - export ac_cv_exeext
  3993. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3994. + then :; else
  3995. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3996. + fi
  3997. + # We set ac_cv_exeext here because the later test for it is not
  3998. + # safe: cross compilers may not add the suffix if given an `-o'
  3999. + # argument, so we may need to know it at that point already.
  4000. + # Even if this section looks crufty: it has the advantage of
  4001. + # actually working.
  4002. break;;
  4003. * )
  4004. break;;
  4005. esac
  4006. done
  4007. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  4008. +
  4009. else
  4010. - echo "$as_me: failed program was:" >&5
  4011. + ac_file=''
  4012. +fi
  4013. +if test -z "$ac_file"; then :
  4014. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4015. +$as_echo "no" >&6; }
  4016. +$as_echo "$as_me: failed program was:" >&5
  4017. sed 's/^/| /' conftest.$ac_ext >&5
  4018. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  4019. -See \`config.log' for more details." >&5
  4020. -echo "$as_me: error: C compiler cannot create executables
  4021. -See \`config.log' for more details." >&2;}
  4022. - { (exit 77); exit 77; }; }
  4023. -fi
  4024. -
  4025. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4026. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4027. +{ as_fn_set_status 77
  4028. +as_fn_error "C compiler cannot create executables
  4029. +See \`config.log' for more details." "$LINENO" 5; }; }
  4030. +else
  4031. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4032. +$as_echo "yes" >&6; }
  4033. +fi
  4034. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4035. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  4036. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4037. +$as_echo "$ac_file" >&6; }
  4038. ac_exeext=$ac_cv_exeext
  4039. -echo "$as_me:$LINENO: result: $ac_file" >&5
  4040. -echo "${ECHO_T}$ac_file" >&6
  4041. -
  4042. -# Check the compiler produces executables we can run. If not, either
  4043. -# the compiler is broken, or we cross compile.
  4044. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  4045. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  4046. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  4047. -# If not cross compiling, check that we can run a simple program.
  4048. -if test "$cross_compiling" != yes; then
  4049. - if { ac_try='./$ac_file'
  4050. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4051. - (eval $ac_try) 2>&5
  4052. - ac_status=$?
  4053. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4054. - (exit $ac_status); }; }; then
  4055. - cross_compiling=no
  4056. - else
  4057. - if test "$cross_compiling" = maybe; then
  4058. - cross_compiling=yes
  4059. - else
  4060. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  4061. -If you meant to cross compile, use \`--host'.
  4062. -See \`config.log' for more details." >&5
  4063. -echo "$as_me: error: cannot run C compiled programs.
  4064. -If you meant to cross compile, use \`--host'.
  4065. -See \`config.log' for more details." >&2;}
  4066. - { (exit 1); exit 1; }; }
  4067. - fi
  4068. - fi
  4069. -fi
  4070. -echo "$as_me:$LINENO: result: yes" >&5
  4071. -echo "${ECHO_T}yes" >&6
  4072. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  4073. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4074. ac_clean_files=$ac_clean_files_save
  4075. -# Check the compiler produces executables we can run. If not, either
  4076. -# the compiler is broken, or we cross compile.
  4077. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  4078. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  4079. -echo "$as_me:$LINENO: result: $cross_compiling" >&5
  4080. -echo "${ECHO_T}$cross_compiling" >&6
  4081. -
  4082. -echo "$as_me:$LINENO: checking for suffix of executables" >&5
  4083. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  4084. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4085. - (eval $ac_link) 2>&5
  4086. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4087. +$as_echo_n "checking for suffix of executables... " >&6; }
  4088. +if { { ac_try="$ac_link"
  4089. +case "(($ac_try" in
  4090. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4091. + *) ac_try_echo=$ac_try;;
  4092. +esac
  4093. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4094. +$as_echo "$ac_try_echo"; } >&5
  4095. + (eval "$ac_link") 2>&5
  4096. ac_status=$?
  4097. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4098. - (exit $ac_status); }; then
  4099. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4100. + test $ac_status = 0; }; then :
  4101. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4102. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4103. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4104. @@ -1913,38 +2709,90 @@
  4105. for ac_file in conftest.exe conftest conftest.*; do
  4106. test -f "$ac_file" || continue
  4107. case $ac_file in
  4108. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  4109. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4110. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4111. - export ac_cv_exeext
  4112. break;;
  4113. * ) break;;
  4114. esac
  4115. done
  4116. else
  4117. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  4118. -See \`config.log' for more details." >&5
  4119. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  4120. -See \`config.log' for more details." >&2;}
  4121. - { (exit 1); exit 1; }; }
  4122. -fi
  4123. -
  4124. -rm -f conftest$ac_cv_exeext
  4125. -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  4126. -echo "${ECHO_T}$ac_cv_exeext" >&6
  4127. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4128. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4129. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  4130. +See \`config.log' for more details." "$LINENO" 5; }
  4131. +fi
  4132. +rm -f conftest conftest$ac_cv_exeext
  4133. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4134. +$as_echo "$ac_cv_exeext" >&6; }
  4135. rm -f conftest.$ac_ext
  4136. EXEEXT=$ac_cv_exeext
  4137. ac_exeext=$EXEEXT
  4138. -echo "$as_me:$LINENO: checking for suffix of object files" >&5
  4139. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  4140. -if test "${ac_cv_objext+set}" = set; then
  4141. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4142. -else
  4143. - cat >conftest.$ac_ext <<_ACEOF
  4144. -/* confdefs.h. */
  4145. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4146. +/* end confdefs.h. */
  4147. +#include <stdio.h>
  4148. +int
  4149. +main ()
  4150. +{
  4151. +FILE *f = fopen ("conftest.out", "w");
  4152. + return ferror (f) || fclose (f) != 0;
  4153. +
  4154. + ;
  4155. + return 0;
  4156. +}
  4157. _ACEOF
  4158. -cat confdefs.h >>conftest.$ac_ext
  4159. -cat >>conftest.$ac_ext <<_ACEOF
  4160. +ac_clean_files="$ac_clean_files conftest.out"
  4161. +# Check that the compiler produces executables we can run. If not, either
  4162. +# the compiler is broken, or we cross compile.
  4163. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4164. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  4165. +if test "$cross_compiling" != yes; then
  4166. + { { ac_try="$ac_link"
  4167. +case "(($ac_try" in
  4168. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4169. + *) ac_try_echo=$ac_try;;
  4170. +esac
  4171. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4172. +$as_echo "$ac_try_echo"; } >&5
  4173. + (eval "$ac_link") 2>&5
  4174. + ac_status=$?
  4175. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4176. + test $ac_status = 0; }
  4177. + if { ac_try='./conftest$ac_cv_exeext'
  4178. + { { case "(($ac_try" in
  4179. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4180. + *) ac_try_echo=$ac_try;;
  4181. +esac
  4182. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4183. +$as_echo "$ac_try_echo"; } >&5
  4184. + (eval "$ac_try") 2>&5
  4185. + ac_status=$?
  4186. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4187. + test $ac_status = 0; }; }; then
  4188. + cross_compiling=no
  4189. + else
  4190. + if test "$cross_compiling" = maybe; then
  4191. + cross_compiling=yes
  4192. + else
  4193. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4194. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4195. +as_fn_error "cannot run C compiled programs.
  4196. +If you meant to cross compile, use \`--host'.
  4197. +See \`config.log' for more details." "$LINENO" 5; }
  4198. + fi
  4199. + fi
  4200. +fi
  4201. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4202. +$as_echo "$cross_compiling" >&6; }
  4203. +
  4204. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4205. +ac_clean_files=$ac_clean_files_save
  4206. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4207. +$as_echo_n "checking for suffix of object files... " >&6; }
  4208. +if test "${ac_cv_objext+set}" = set; then :
  4209. + $as_echo_n "(cached) " >&6
  4210. +else
  4211. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4212. /* end confdefs.h. */
  4213. int
  4214. @@ -1956,45 +2804,46 @@
  4215. }
  4216. _ACEOF
  4217. rm -f conftest.o conftest.obj
  4218. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4219. - (eval $ac_compile) 2>&5
  4220. - ac_status=$?
  4221. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4222. - (exit $ac_status); }; then
  4223. - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  4224. +if { { ac_try="$ac_compile"
  4225. +case "(($ac_try" in
  4226. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4227. + *) ac_try_echo=$ac_try;;
  4228. +esac
  4229. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4230. +$as_echo "$ac_try_echo"; } >&5
  4231. + (eval "$ac_compile") 2>&5
  4232. + ac_status=$?
  4233. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4234. + test $ac_status = 0; }; then :
  4235. + for ac_file in conftest.o conftest.obj conftest.*; do
  4236. + test -f "$ac_file" || continue;
  4237. case $ac_file in
  4238. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  4239. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4240. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4241. break;;
  4242. esac
  4243. done
  4244. else
  4245. - echo "$as_me: failed program was:" >&5
  4246. + $as_echo "$as_me: failed program was:" >&5
  4247. sed 's/^/| /' conftest.$ac_ext >&5
  4248. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  4249. -See \`config.log' for more details." >&5
  4250. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  4251. -See \`config.log' for more details." >&2;}
  4252. - { (exit 1); exit 1; }; }
  4253. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4254. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4255. +as_fn_error "cannot compute suffix of object files: cannot compile
  4256. +See \`config.log' for more details." "$LINENO" 5; }
  4257. fi
  4258. -
  4259. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4260. fi
  4261. -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  4262. -echo "${ECHO_T}$ac_cv_objext" >&6
  4263. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4264. +$as_echo "$ac_cv_objext" >&6; }
  4265. OBJEXT=$ac_cv_objext
  4266. ac_objext=$OBJEXT
  4267. -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  4268. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  4269. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  4270. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4271. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4272. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4273. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4274. + $as_echo_n "(cached) " >&6
  4275. else
  4276. - cat >conftest.$ac_ext <<_ACEOF
  4277. -/* confdefs.h. */
  4278. -_ACEOF
  4279. -cat confdefs.h >>conftest.$ac_ext
  4280. -cat >>conftest.$ac_ext <<_ACEOF
  4281. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4282. /* end confdefs.h. */
  4283. int
  4284. @@ -2008,54 +2857,34 @@
  4285. return 0;
  4286. }
  4287. _ACEOF
  4288. -rm -f conftest.$ac_objext
  4289. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4290. - (eval $ac_compile) 2>conftest.er1
  4291. - ac_status=$?
  4292. - grep -v '^ *+' conftest.er1 >conftest.err
  4293. - rm -f conftest.er1
  4294. - cat conftest.err >&5
  4295. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4296. - (exit $ac_status); } &&
  4297. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4298. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4299. - (eval $ac_try) 2>&5
  4300. - ac_status=$?
  4301. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4302. - (exit $ac_status); }; } &&
  4303. - { ac_try='test -s conftest.$ac_objext'
  4304. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4305. - (eval $ac_try) 2>&5
  4306. - ac_status=$?
  4307. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308. - (exit $ac_status); }; }; then
  4309. +if ac_fn_c_try_compile "$LINENO"; then :
  4310. ac_compiler_gnu=yes
  4311. else
  4312. - echo "$as_me: failed program was:" >&5
  4313. -sed 's/^/| /' conftest.$ac_ext >&5
  4314. -
  4315. -ac_compiler_gnu=no
  4316. + ac_compiler_gnu=no
  4317. fi
  4318. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4319. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4320. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4321. fi
  4322. -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  4323. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  4324. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  4325. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4326. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4327. +if test $ac_compiler_gnu = yes; then
  4328. + GCC=yes
  4329. +else
  4330. + GCC=
  4331. +fi
  4332. ac_test_CFLAGS=${CFLAGS+set}
  4333. ac_save_CFLAGS=$CFLAGS
  4334. -CFLAGS="-g"
  4335. -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  4336. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  4337. -if test "${ac_cv_prog_cc_g+set}" = set; then
  4338. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4339. -else
  4340. - cat >conftest.$ac_ext <<_ACEOF
  4341. -/* confdefs.h. */
  4342. -_ACEOF
  4343. -cat confdefs.h >>conftest.$ac_ext
  4344. -cat >>conftest.$ac_ext <<_ACEOF
  4345. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4346. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  4347. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  4348. + $as_echo_n "(cached) " >&6
  4349. +else
  4350. + ac_save_c_werror_flag=$ac_c_werror_flag
  4351. + ac_c_werror_flag=yes
  4352. + ac_cv_prog_cc_g=no
  4353. + CFLAGS="-g"
  4354. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4355. /* end confdefs.h. */
  4356. int
  4357. @@ -2066,38 +2895,49 @@
  4358. return 0;
  4359. }
  4360. _ACEOF
  4361. -rm -f conftest.$ac_objext
  4362. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4363. - (eval $ac_compile) 2>conftest.er1
  4364. - ac_status=$?
  4365. - grep -v '^ *+' conftest.er1 >conftest.err
  4366. - rm -f conftest.er1
  4367. - cat conftest.err >&5
  4368. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4369. - (exit $ac_status); } &&
  4370. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4371. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4372. - (eval $ac_try) 2>&5
  4373. - ac_status=$?
  4374. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4375. - (exit $ac_status); }; } &&
  4376. - { ac_try='test -s conftest.$ac_objext'
  4377. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4378. - (eval $ac_try) 2>&5
  4379. - ac_status=$?
  4380. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4381. - (exit $ac_status); }; }; then
  4382. +if ac_fn_c_try_compile "$LINENO"; then :
  4383. ac_cv_prog_cc_g=yes
  4384. else
  4385. - echo "$as_me: failed program was:" >&5
  4386. -sed 's/^/| /' conftest.$ac_ext >&5
  4387. + CFLAGS=""
  4388. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4389. +/* end confdefs.h. */
  4390. -ac_cv_prog_cc_g=no
  4391. +int
  4392. +main ()
  4393. +{
  4394. +
  4395. + ;
  4396. + return 0;
  4397. +}
  4398. +_ACEOF
  4399. +if ac_fn_c_try_compile "$LINENO"; then :
  4400. +
  4401. +else
  4402. + ac_c_werror_flag=$ac_save_c_werror_flag
  4403. + CFLAGS="-g"
  4404. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4405. +/* end confdefs.h. */
  4406. +
  4407. +int
  4408. +main ()
  4409. +{
  4410. +
  4411. + ;
  4412. + return 0;
  4413. +}
  4414. +_ACEOF
  4415. +if ac_fn_c_try_compile "$LINENO"; then :
  4416. + ac_cv_prog_cc_g=yes
  4417. +fi
  4418. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4419. fi
  4420. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4421. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4422. fi
  4423. -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  4424. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  4425. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4426. + ac_c_werror_flag=$ac_save_c_werror_flag
  4427. +fi
  4428. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4429. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  4430. if test "$ac_test_CFLAGS" = set; then
  4431. CFLAGS=$ac_save_CFLAGS
  4432. elif test $ac_cv_prog_cc_g = yes; then
  4433. @@ -2113,18 +2953,14 @@
  4434. CFLAGS=
  4435. fi
  4436. fi
  4437. -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  4438. -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  4439. -if test "${ac_cv_prog_cc_stdc+set}" = set; then
  4440. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4441. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4442. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4443. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4444. + $as_echo_n "(cached) " >&6
  4445. else
  4446. - ac_cv_prog_cc_stdc=no
  4447. + ac_cv_prog_cc_c89=no
  4448. ac_save_CC=$CC
  4449. -cat >conftest.$ac_ext <<_ACEOF
  4450. -/* confdefs.h. */
  4451. -_ACEOF
  4452. -cat confdefs.h >>conftest.$ac_ext
  4453. -cat >>conftest.$ac_ext <<_ACEOF
  4454. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4455. /* end confdefs.h. */
  4456. #include <stdarg.h>
  4457. #include <stdio.h>
  4458. @@ -2152,12 +2988,17 @@
  4459. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4460. function prototypes and stuff, but not '\xHH' hex character constants.
  4461. These don't provoke an error unfortunately, instead are silently treated
  4462. - as 'x'. The following induces an error, until -std1 is added to get
  4463. + as 'x'. The following induces an error, until -std is added to get
  4464. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4465. array size at least. It's necessary to write '\x00'==0 to get something
  4466. - that's true only with -std1. */
  4467. + that's true only with -std. */
  4468. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4469. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4470. + inside strings and character constants. */
  4471. +#define FOO(x) 'x'
  4472. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4473. +
  4474. int test (int i, double x);
  4475. struct s1 {int (*f) (int a);};
  4476. struct s2 {int (*f) (double a);};
  4477. @@ -2172,201 +3013,37 @@
  4478. return 0;
  4479. }
  4480. _ACEOF
  4481. -# Don't try gcc -ansi; that turns off useful extensions and
  4482. -# breaks some systems' header files.
  4483. -# AIX -qlanglvl=ansi
  4484. -# Ultrix and OSF/1 -std1
  4485. -# HP-UX 10.20 and later -Ae
  4486. -# HP-UX older versions -Aa -D_HPUX_SOURCE
  4487. -# SVR4 -Xc -D__EXTENSIONS__
  4488. -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4489. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4490. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4491. do
  4492. CC="$ac_save_CC $ac_arg"
  4493. - rm -f conftest.$ac_objext
  4494. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4495. - (eval $ac_compile) 2>conftest.er1
  4496. - ac_status=$?
  4497. - grep -v '^ *+' conftest.er1 >conftest.err
  4498. - rm -f conftest.er1
  4499. - cat conftest.err >&5
  4500. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4501. - (exit $ac_status); } &&
  4502. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4503. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4504. - (eval $ac_try) 2>&5
  4505. - ac_status=$?
  4506. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4507. - (exit $ac_status); }; } &&
  4508. - { ac_try='test -s conftest.$ac_objext'
  4509. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4510. - (eval $ac_try) 2>&5
  4511. - ac_status=$?
  4512. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4513. - (exit $ac_status); }; }; then
  4514. - ac_cv_prog_cc_stdc=$ac_arg
  4515. -break
  4516. -else
  4517. - echo "$as_me: failed program was:" >&5
  4518. -sed 's/^/| /' conftest.$ac_ext >&5
  4519. -
  4520. + if ac_fn_c_try_compile "$LINENO"; then :
  4521. + ac_cv_prog_cc_c89=$ac_arg
  4522. fi
  4523. -rm -f conftest.err conftest.$ac_objext
  4524. +rm -f core conftest.err conftest.$ac_objext
  4525. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  4526. done
  4527. -rm -f conftest.$ac_ext conftest.$ac_objext
  4528. +rm -f conftest.$ac_ext
  4529. CC=$ac_save_CC
  4530. fi
  4531. -
  4532. -case "x$ac_cv_prog_cc_stdc" in
  4533. - x|xno)
  4534. - echo "$as_me:$LINENO: result: none needed" >&5
  4535. -echo "${ECHO_T}none needed" >&6 ;;
  4536. +# AC_CACHE_VAL
  4537. +case "x$ac_cv_prog_cc_c89" in
  4538. + x)
  4539. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4540. +$as_echo "none needed" >&6; } ;;
  4541. + xno)
  4542. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4543. +$as_echo "unsupported" >&6; } ;;
  4544. *)
  4545. - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  4546. -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  4547. - CC="$CC $ac_cv_prog_cc_stdc" ;;
  4548. + CC="$CC $ac_cv_prog_cc_c89"
  4549. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4550. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4551. esac
  4552. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  4553. -# Some people use a C++ compiler to compile C. Since we use `exit',
  4554. -# in C++ we need to declare it. In case someone uses the same compiler
  4555. -# for both compiling C and C++ we need to have the C++ compiler decide
  4556. -# the declaration of exit, since it's the most demanding environment.
  4557. -cat >conftest.$ac_ext <<_ACEOF
  4558. -#ifndef __cplusplus
  4559. - choke me
  4560. -#endif
  4561. -_ACEOF
  4562. -rm -f conftest.$ac_objext
  4563. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4564. - (eval $ac_compile) 2>conftest.er1
  4565. - ac_status=$?
  4566. - grep -v '^ *+' conftest.er1 >conftest.err
  4567. - rm -f conftest.er1
  4568. - cat conftest.err >&5
  4569. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4570. - (exit $ac_status); } &&
  4571. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4572. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4573. - (eval $ac_try) 2>&5
  4574. - ac_status=$?
  4575. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4576. - (exit $ac_status); }; } &&
  4577. - { ac_try='test -s conftest.$ac_objext'
  4578. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4579. - (eval $ac_try) 2>&5
  4580. - ac_status=$?
  4581. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4582. - (exit $ac_status); }; }; then
  4583. - for ac_declaration in \
  4584. - '' \
  4585. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  4586. - 'extern "C" void std::exit (int); using std::exit;' \
  4587. - 'extern "C" void exit (int) throw ();' \
  4588. - 'extern "C" void exit (int);' \
  4589. - 'void exit (int);'
  4590. -do
  4591. - cat >conftest.$ac_ext <<_ACEOF
  4592. -/* confdefs.h. */
  4593. -_ACEOF
  4594. -cat confdefs.h >>conftest.$ac_ext
  4595. -cat >>conftest.$ac_ext <<_ACEOF
  4596. -/* end confdefs.h. */
  4597. -$ac_declaration
  4598. -#include <stdlib.h>
  4599. -int
  4600. -main ()
  4601. -{
  4602. -exit (42);
  4603. - ;
  4604. - return 0;
  4605. -}
  4606. -_ACEOF
  4607. -rm -f conftest.$ac_objext
  4608. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4609. - (eval $ac_compile) 2>conftest.er1
  4610. - ac_status=$?
  4611. - grep -v '^ *+' conftest.er1 >conftest.err
  4612. - rm -f conftest.er1
  4613. - cat conftest.err >&5
  4614. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4615. - (exit $ac_status); } &&
  4616. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4617. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4618. - (eval $ac_try) 2>&5
  4619. - ac_status=$?
  4620. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4621. - (exit $ac_status); }; } &&
  4622. - { ac_try='test -s conftest.$ac_objext'
  4623. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4624. - (eval $ac_try) 2>&5
  4625. - ac_status=$?
  4626. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4627. - (exit $ac_status); }; }; then
  4628. - :
  4629. -else
  4630. - echo "$as_me: failed program was:" >&5
  4631. -sed 's/^/| /' conftest.$ac_ext >&5
  4632. -
  4633. -continue
  4634. -fi
  4635. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4636. - cat >conftest.$ac_ext <<_ACEOF
  4637. -/* confdefs.h. */
  4638. -_ACEOF
  4639. -cat confdefs.h >>conftest.$ac_ext
  4640. -cat >>conftest.$ac_ext <<_ACEOF
  4641. -/* end confdefs.h. */
  4642. -$ac_declaration
  4643. -int
  4644. -main ()
  4645. -{
  4646. -exit (42);
  4647. - ;
  4648. - return 0;
  4649. -}
  4650. -_ACEOF
  4651. -rm -f conftest.$ac_objext
  4652. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4653. - (eval $ac_compile) 2>conftest.er1
  4654. - ac_status=$?
  4655. - grep -v '^ *+' conftest.er1 >conftest.err
  4656. - rm -f conftest.er1
  4657. - cat conftest.err >&5
  4658. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4659. - (exit $ac_status); } &&
  4660. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4661. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4662. - (eval $ac_try) 2>&5
  4663. - ac_status=$?
  4664. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4665. - (exit $ac_status); }; } &&
  4666. - { ac_try='test -s conftest.$ac_objext'
  4667. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4668. - (eval $ac_try) 2>&5
  4669. - ac_status=$?
  4670. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4671. - (exit $ac_status); }; }; then
  4672. - break
  4673. -else
  4674. - echo "$as_me: failed program was:" >&5
  4675. -sed 's/^/| /' conftest.$ac_ext >&5
  4676. -
  4677. -fi
  4678. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4679. -done
  4680. -rm -f conftest*
  4681. -if test -n "$ac_declaration"; then
  4682. - echo '#ifdef __cplusplus' >>confdefs.h
  4683. - echo $ac_declaration >>confdefs.h
  4684. - echo '#endif' >>confdefs.h
  4685. fi
  4686. -else
  4687. - echo "$as_me: failed program was:" >&5
  4688. -sed 's/^/| /' conftest.$ac_ext >&5
  4689. -
  4690. -fi
  4691. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4692. ac_ext=c
  4693. ac_cpp='$CPP $CPPFLAGS'
  4694. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4695. @@ -2376,10 +3053,10 @@
  4696. if test -n "$ac_tool_prefix"; then
  4697. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4698. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4699. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  4700. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4701. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  4702. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4703. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4704. +$as_echo_n "checking for $ac_word... " >&6; }
  4705. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4706. + $as_echo_n "(cached) " >&6
  4707. else
  4708. if test -n "$RANLIB"; then
  4709. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4710. @@ -2389,35 +3066,37 @@
  4711. do
  4712. IFS=$as_save_IFS
  4713. test -z "$as_dir" && as_dir=.
  4714. - for ac_exec_ext in '' $ac_executable_extensions; do
  4715. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4716. + for ac_exec_ext in '' $ac_executable_extensions; do
  4717. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4718. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4719. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4720. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4721. break 2
  4722. fi
  4723. done
  4724. -done
  4725. + done
  4726. +IFS=$as_save_IFS
  4727. fi
  4728. fi
  4729. RANLIB=$ac_cv_prog_RANLIB
  4730. if test -n "$RANLIB"; then
  4731. - echo "$as_me:$LINENO: result: $RANLIB" >&5
  4732. -echo "${ECHO_T}$RANLIB" >&6
  4733. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4734. +$as_echo "$RANLIB" >&6; }
  4735. else
  4736. - echo "$as_me:$LINENO: result: no" >&5
  4737. -echo "${ECHO_T}no" >&6
  4738. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4739. +$as_echo "no" >&6; }
  4740. fi
  4741. +
  4742. fi
  4743. if test -z "$ac_cv_prog_RANLIB"; then
  4744. ac_ct_RANLIB=$RANLIB
  4745. # Extract the first word of "ranlib", so it can be a program name with args.
  4746. set dummy ranlib; ac_word=$2
  4747. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  4748. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4749. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4750. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4751. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4752. +$as_echo_n "checking for $ac_word... " >&6; }
  4753. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4754. + $as_echo_n "(cached) " >&6
  4755. else
  4756. if test -n "$ac_ct_RANLIB"; then
  4757. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4758. @@ -2427,28 +3106,38 @@
  4759. do
  4760. IFS=$as_save_IFS
  4761. test -z "$as_dir" && as_dir=.
  4762. - for ac_exec_ext in '' $ac_executable_extensions; do
  4763. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4764. + for ac_exec_ext in '' $ac_executable_extensions; do
  4765. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4766. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4767. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4768. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4769. break 2
  4770. fi
  4771. done
  4772. -done
  4773. + done
  4774. +IFS=$as_save_IFS
  4775. - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  4776. fi
  4777. fi
  4778. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4779. if test -n "$ac_ct_RANLIB"; then
  4780. - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4781. -echo "${ECHO_T}$ac_ct_RANLIB" >&6
  4782. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4783. +$as_echo "$ac_ct_RANLIB" >&6; }
  4784. else
  4785. - echo "$as_me:$LINENO: result: no" >&5
  4786. -echo "${ECHO_T}no" >&6
  4787. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4788. +$as_echo "no" >&6; }
  4789. fi
  4790. - RANLIB=$ac_ct_RANLIB
  4791. + if test "x$ac_ct_RANLIB" = x; then
  4792. + RANLIB=":"
  4793. + else
  4794. + case $cross_compiling:$ac_tool_warned in
  4795. +yes:)
  4796. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4797. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4798. +ac_tool_warned=yes ;;
  4799. +esac
  4800. + RANLIB=$ac_ct_RANLIB
  4801. + fi
  4802. else
  4803. RANLIB="$ac_cv_prog_RANLIB"
  4804. fi
  4805. @@ -2466,22 +3155,23 @@
  4806. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4807. # OS/2's system install, which has a completely different semantic
  4808. # ./install, which can be erroneously created by make from ./install.sh.
  4809. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4810. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  4811. +# Reject install programs that cannot install multiple files.
  4812. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4813. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  4814. if test -z "$INSTALL"; then
  4815. -if test "${ac_cv_path_install+set}" = set; then
  4816. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4817. +if test "${ac_cv_path_install+set}" = set; then :
  4818. + $as_echo_n "(cached) " >&6
  4819. else
  4820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4821. for as_dir in $PATH
  4822. do
  4823. IFS=$as_save_IFS
  4824. test -z "$as_dir" && as_dir=.
  4825. - # Account for people who put trailing slashes in PATH elements.
  4826. -case $as_dir/ in
  4827. - ./ | .// | /cC/* | \
  4828. + # Account for people who put trailing slashes in PATH elements.
  4829. +case $as_dir/ in #((
  4830. + ./ | .// | /[cC]/* | \
  4831. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4832. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4833. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4834. /usr/ucb/* ) ;;
  4835. *)
  4836. # OSF1 and SCO ODT 3.0 have their own names for install.
  4837. @@ -2489,7 +3179,7 @@
  4838. # by default.
  4839. for ac_prog in ginstall scoinst install; do
  4840. for ac_exec_ext in '' $ac_executable_extensions; do
  4841. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4842. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4843. if test $ac_prog = install &&
  4844. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4845. # AIX install. It has an incompatible calling convention.
  4846. @@ -2499,30 +3189,43 @@
  4847. # program-specific install script used by HP pwplus--don't use.
  4848. :
  4849. else
  4850. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4851. - break 3
  4852. + rm -rf conftest.one conftest.two conftest.dir
  4853. + echo one > conftest.one
  4854. + echo two > conftest.two
  4855. + mkdir conftest.dir
  4856. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4857. + test -s conftest.one && test -s conftest.two &&
  4858. + test -s conftest.dir/conftest.one &&
  4859. + test -s conftest.dir/conftest.two
  4860. + then
  4861. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4862. + break 3
  4863. + fi
  4864. fi
  4865. fi
  4866. done
  4867. done
  4868. ;;
  4869. esac
  4870. -done
  4871. + done
  4872. +IFS=$as_save_IFS
  4873. +
  4874. +rm -rf conftest.one conftest.two conftest.dir
  4875. fi
  4876. if test "${ac_cv_path_install+set}" = set; then
  4877. INSTALL=$ac_cv_path_install
  4878. else
  4879. - # As a last resort, use the slow shell script. We don't cache a
  4880. - # path for INSTALL within a source directory, because that will
  4881. + # As a last resort, use the slow shell script. Don't cache a
  4882. + # value for INSTALL within a source directory, because that will
  4883. # break other packages using the cache if that directory is
  4884. - # removed, or if the path is relative.
  4885. + # removed, or if the value is a relative name.
  4886. INSTALL=$ac_install_sh
  4887. fi
  4888. fi
  4889. -echo "$as_me:$LINENO: result: $INSTALL" >&5
  4890. -echo "${ECHO_T}$INSTALL" >&6
  4891. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4892. +$as_echo "$INSTALL" >&6; }
  4893. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4894. # It thinks the first close brace ends the variable substitution.
  4895. @@ -2539,15 +3242,15 @@
  4896. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4897. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4898. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4899. -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4900. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4901. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4902. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  4903. # On Suns, sometimes $CPP names a directory.
  4904. if test -n "$CPP" && test -d "$CPP"; then
  4905. CPP=
  4906. fi
  4907. if test -z "$CPP"; then
  4908. - if test "${ac_cv_prog_CPP+set}" = set; then
  4909. - echo $ECHO_N "(cached) $ECHO_C" >&6
  4910. + if test "${ac_cv_prog_CPP+set}" = set; then :
  4911. + $as_echo_n "(cached) " >&6
  4912. else
  4913. # Double quotes because CPP needs to be expanded
  4914. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4915. @@ -2561,11 +3264,7 @@
  4916. # <limits.h> exists even on freestanding compilers.
  4917. # On the NeXT, cc -E runs the code through the compiler's parser,
  4918. # not just through cpp. "Syntax error" is here to catch this case.
  4919. - cat >conftest.$ac_ext <<_ACEOF
  4920. -/* confdefs.h. */
  4921. -_ACEOF
  4922. -cat confdefs.h >>conftest.$ac_ext
  4923. -cat >>conftest.$ac_ext <<_ACEOF
  4924. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4925. /* end confdefs.h. */
  4926. #ifdef __STDC__
  4927. # include <limits.h>
  4928. @@ -2574,68 +3273,24 @@
  4929. #endif
  4930. Syntax error
  4931. _ACEOF
  4932. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4933. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4934. - ac_status=$?
  4935. - grep -v '^ *+' conftest.er1 >conftest.err
  4936. - rm -f conftest.er1
  4937. - cat conftest.err >&5
  4938. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4939. - (exit $ac_status); } >/dev/null; then
  4940. - if test -s conftest.err; then
  4941. - ac_cpp_err=$ac_c_preproc_warn_flag
  4942. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4943. - else
  4944. - ac_cpp_err=
  4945. - fi
  4946. -else
  4947. - ac_cpp_err=yes
  4948. -fi
  4949. -if test -z "$ac_cpp_err"; then
  4950. - :
  4951. -else
  4952. - echo "$as_me: failed program was:" >&5
  4953. -sed 's/^/| /' conftest.$ac_ext >&5
  4954. +if ac_fn_c_try_cpp "$LINENO"; then :
  4955. +else
  4956. # Broken: fails on valid input.
  4957. continue
  4958. fi
  4959. rm -f conftest.err conftest.$ac_ext
  4960. - # OK, works on sane cases. Now check whether non-existent headers
  4961. + # OK, works on sane cases. Now check whether nonexistent headers
  4962. # can be detected and how.
  4963. - cat >conftest.$ac_ext <<_ACEOF
  4964. -/* confdefs.h. */
  4965. -_ACEOF
  4966. -cat confdefs.h >>conftest.$ac_ext
  4967. -cat >>conftest.$ac_ext <<_ACEOF
  4968. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4969. /* end confdefs.h. */
  4970. #include <ac_nonexistent.h>
  4971. _ACEOF
  4972. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4973. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4974. - ac_status=$?
  4975. - grep -v '^ *+' conftest.er1 >conftest.err
  4976. - rm -f conftest.er1
  4977. - cat conftest.err >&5
  4978. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4979. - (exit $ac_status); } >/dev/null; then
  4980. - if test -s conftest.err; then
  4981. - ac_cpp_err=$ac_c_preproc_warn_flag
  4982. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4983. - else
  4984. - ac_cpp_err=
  4985. - fi
  4986. -else
  4987. - ac_cpp_err=yes
  4988. -fi
  4989. -if test -z "$ac_cpp_err"; then
  4990. +if ac_fn_c_try_cpp "$LINENO"; then :
  4991. # Broken: success on invalid input.
  4992. continue
  4993. else
  4994. - echo "$as_me: failed program was:" >&5
  4995. -sed 's/^/| /' conftest.$ac_ext >&5
  4996. -
  4997. # Passes both tests.
  4998. ac_preproc_ok=:
  4999. break
  5000. @@ -2645,7 +3300,7 @@
  5001. done
  5002. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5003. rm -f conftest.err conftest.$ac_ext
  5004. -if $ac_preproc_ok; then
  5005. +if $ac_preproc_ok; then :
  5006. break
  5007. fi
  5008. @@ -2657,8 +3312,8 @@
  5009. else
  5010. ac_cv_prog_CPP=$CPP
  5011. fi
  5012. -echo "$as_me:$LINENO: result: $CPP" >&5
  5013. -echo "${ECHO_T}$CPP" >&6
  5014. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5015. +$as_echo "$CPP" >&6; }
  5016. ac_preproc_ok=false
  5017. for ac_c_preproc_warn_flag in '' yes
  5018. do
  5019. @@ -2668,11 +3323,7 @@
  5020. # <limits.h> exists even on freestanding compilers.
  5021. # On the NeXT, cc -E runs the code through the compiler's parser,
  5022. # not just through cpp. "Syntax error" is here to catch this case.
  5023. - cat >conftest.$ac_ext <<_ACEOF
  5024. -/* confdefs.h. */
  5025. -_ACEOF
  5026. -cat confdefs.h >>conftest.$ac_ext
  5027. -cat >>conftest.$ac_ext <<_ACEOF
  5028. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5029. /* end confdefs.h. */
  5030. #ifdef __STDC__
  5031. # include <limits.h>
  5032. @@ -2681,68 +3332,24 @@
  5033. #endif
  5034. Syntax error
  5035. _ACEOF
  5036. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5037. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5038. - ac_status=$?
  5039. - grep -v '^ *+' conftest.er1 >conftest.err
  5040. - rm -f conftest.er1
  5041. - cat conftest.err >&5
  5042. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5043. - (exit $ac_status); } >/dev/null; then
  5044. - if test -s conftest.err; then
  5045. - ac_cpp_err=$ac_c_preproc_warn_flag
  5046. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5047. - else
  5048. - ac_cpp_err=
  5049. - fi
  5050. -else
  5051. - ac_cpp_err=yes
  5052. -fi
  5053. -if test -z "$ac_cpp_err"; then
  5054. - :
  5055. -else
  5056. - echo "$as_me: failed program was:" >&5
  5057. -sed 's/^/| /' conftest.$ac_ext >&5
  5058. +if ac_fn_c_try_cpp "$LINENO"; then :
  5059. +else
  5060. # Broken: fails on valid input.
  5061. continue
  5062. fi
  5063. rm -f conftest.err conftest.$ac_ext
  5064. - # OK, works on sane cases. Now check whether non-existent headers
  5065. + # OK, works on sane cases. Now check whether nonexistent headers
  5066. # can be detected and how.
  5067. - cat >conftest.$ac_ext <<_ACEOF
  5068. -/* confdefs.h. */
  5069. -_ACEOF
  5070. -cat confdefs.h >>conftest.$ac_ext
  5071. -cat >>conftest.$ac_ext <<_ACEOF
  5072. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5073. /* end confdefs.h. */
  5074. #include <ac_nonexistent.h>
  5075. _ACEOF
  5076. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5077. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5078. - ac_status=$?
  5079. - grep -v '^ *+' conftest.er1 >conftest.err
  5080. - rm -f conftest.er1
  5081. - cat conftest.err >&5
  5082. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5083. - (exit $ac_status); } >/dev/null; then
  5084. - if test -s conftest.err; then
  5085. - ac_cpp_err=$ac_c_preproc_warn_flag
  5086. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5087. - else
  5088. - ac_cpp_err=
  5089. - fi
  5090. -else
  5091. - ac_cpp_err=yes
  5092. -fi
  5093. -if test -z "$ac_cpp_err"; then
  5094. +if ac_fn_c_try_cpp "$LINENO"; then :
  5095. # Broken: success on invalid input.
  5096. continue
  5097. else
  5098. - echo "$as_me: failed program was:" >&5
  5099. -sed 's/^/| /' conftest.$ac_ext >&5
  5100. -
  5101. # Passes both tests.
  5102. ac_preproc_ok=:
  5103. break
  5104. @@ -2752,14 +3359,13 @@
  5105. done
  5106. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5107. rm -f conftest.err conftest.$ac_ext
  5108. -if $ac_preproc_ok; then
  5109. - :
  5110. +if $ac_preproc_ok; then :
  5111. +
  5112. else
  5113. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5114. -See \`config.log' for more details." >&5
  5115. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5116. -See \`config.log' for more details." >&2;}
  5117. - { (exit 1); exit 1; }; }
  5118. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5119. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5120. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  5121. +See \`config.log' for more details." "$LINENO" 5; }
  5122. fi
  5123. ac_ext=c
  5124. @@ -2769,31 +3375,142 @@
  5125. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5126. -echo "$as_me:$LINENO: checking for egrep" >&5
  5127. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  5128. -if test "${ac_cv_prog_egrep+set}" = set; then
  5129. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5130. -else
  5131. - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5132. - then ac_cv_prog_egrep='grep -E'
  5133. - else ac_cv_prog_egrep='egrep'
  5134. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5135. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5136. +if test "${ac_cv_path_GREP+set}" = set; then :
  5137. + $as_echo_n "(cached) " >&6
  5138. +else
  5139. + if test -z "$GREP"; then
  5140. + ac_path_GREP_found=false
  5141. + # Loop through the user's path and test for each of PROGNAME-LIST
  5142. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5143. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5144. +do
  5145. + IFS=$as_save_IFS
  5146. + test -z "$as_dir" && as_dir=.
  5147. + for ac_prog in grep ggrep; do
  5148. + for ac_exec_ext in '' $ac_executable_extensions; do
  5149. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5150. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5151. +# Check for GNU ac_path_GREP and select it if it is found.
  5152. + # Check for GNU $ac_path_GREP
  5153. +case `"$ac_path_GREP" --version 2>&1` in
  5154. +*GNU*)
  5155. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5156. +*)
  5157. + ac_count=0
  5158. + $as_echo_n 0123456789 >"conftest.in"
  5159. + while :
  5160. + do
  5161. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  5162. + mv "conftest.tmp" "conftest.in"
  5163. + cp "conftest.in" "conftest.nl"
  5164. + $as_echo 'GREP' >> "conftest.nl"
  5165. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5166. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5167. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  5168. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5169. + # Best one so far, save it but keep looking for a better one
  5170. + ac_cv_path_GREP="$ac_path_GREP"
  5171. + ac_path_GREP_max=$ac_count
  5172. fi
  5173. + # 10*(2^10) chars as input seems more than enough
  5174. + test $ac_count -gt 10 && break
  5175. + done
  5176. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5177. +esac
  5178. +
  5179. + $ac_path_GREP_found && break 3
  5180. + done
  5181. + done
  5182. + done
  5183. +IFS=$as_save_IFS
  5184. + if test -z "$ac_cv_path_GREP"; then
  5185. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5186. + fi
  5187. +else
  5188. + ac_cv_path_GREP=$GREP
  5189. +fi
  5190. +
  5191. fi
  5192. -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  5193. -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  5194. - EGREP=$ac_cv_prog_egrep
  5195. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5196. +$as_echo "$ac_cv_path_GREP" >&6; }
  5197. + GREP="$ac_cv_path_GREP"
  5198. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5199. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  5200. -if test "${ac_cv_header_stdc+set}" = set; then
  5201. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5202. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5203. +$as_echo_n "checking for egrep... " >&6; }
  5204. +if test "${ac_cv_path_EGREP+set}" = set; then :
  5205. + $as_echo_n "(cached) " >&6
  5206. else
  5207. - cat >conftest.$ac_ext <<_ACEOF
  5208. -/* confdefs.h. */
  5209. -_ACEOF
  5210. -cat confdefs.h >>conftest.$ac_ext
  5211. -cat >>conftest.$ac_ext <<_ACEOF
  5212. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5213. + then ac_cv_path_EGREP="$GREP -E"
  5214. + else
  5215. + if test -z "$EGREP"; then
  5216. + ac_path_EGREP_found=false
  5217. + # Loop through the user's path and test for each of PROGNAME-LIST
  5218. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5219. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5220. +do
  5221. + IFS=$as_save_IFS
  5222. + test -z "$as_dir" && as_dir=.
  5223. + for ac_prog in egrep; do
  5224. + for ac_exec_ext in '' $ac_executable_extensions; do
  5225. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5226. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5227. +# Check for GNU ac_path_EGREP and select it if it is found.
  5228. + # Check for GNU $ac_path_EGREP
  5229. +case `"$ac_path_EGREP" --version 2>&1` in
  5230. +*GNU*)
  5231. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5232. +*)
  5233. + ac_count=0
  5234. + $as_echo_n 0123456789 >"conftest.in"
  5235. + while :
  5236. + do
  5237. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  5238. + mv "conftest.tmp" "conftest.in"
  5239. + cp "conftest.in" "conftest.nl"
  5240. + $as_echo 'EGREP' >> "conftest.nl"
  5241. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5242. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5243. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  5244. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5245. + # Best one so far, save it but keep looking for a better one
  5246. + ac_cv_path_EGREP="$ac_path_EGREP"
  5247. + ac_path_EGREP_max=$ac_count
  5248. + fi
  5249. + # 10*(2^10) chars as input seems more than enough
  5250. + test $ac_count -gt 10 && break
  5251. + done
  5252. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5253. +esac
  5254. +
  5255. + $ac_path_EGREP_found && break 3
  5256. + done
  5257. + done
  5258. + done
  5259. +IFS=$as_save_IFS
  5260. + if test -z "$ac_cv_path_EGREP"; then
  5261. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5262. + fi
  5263. +else
  5264. + ac_cv_path_EGREP=$EGREP
  5265. +fi
  5266. +
  5267. + fi
  5268. +fi
  5269. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5270. +$as_echo "$ac_cv_path_EGREP" >&6; }
  5271. + EGREP="$ac_cv_path_EGREP"
  5272. +
  5273. +
  5274. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5275. +$as_echo_n "checking for ANSI C header files... " >&6; }
  5276. +if test "${ac_cv_header_stdc+set}" = set; then :
  5277. + $as_echo_n "(cached) " >&6
  5278. +else
  5279. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end confdefs.h. */
  5281. #include <stdlib.h>
  5282. #include <stdarg.h>
  5283. @@ -2808,50 +3525,23 @@
  5284. return 0;
  5285. }
  5286. _ACEOF
  5287. -rm -f conftest.$ac_objext
  5288. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5289. - (eval $ac_compile) 2>conftest.er1
  5290. - ac_status=$?
  5291. - grep -v '^ *+' conftest.er1 >conftest.err
  5292. - rm -f conftest.er1
  5293. - cat conftest.err >&5
  5294. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5295. - (exit $ac_status); } &&
  5296. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5297. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5298. - (eval $ac_try) 2>&5
  5299. - ac_status=$?
  5300. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5301. - (exit $ac_status); }; } &&
  5302. - { ac_try='test -s conftest.$ac_objext'
  5303. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5304. - (eval $ac_try) 2>&5
  5305. - ac_status=$?
  5306. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5307. - (exit $ac_status); }; }; then
  5308. +if ac_fn_c_try_compile "$LINENO"; then :
  5309. ac_cv_header_stdc=yes
  5310. else
  5311. - echo "$as_me: failed program was:" >&5
  5312. -sed 's/^/| /' conftest.$ac_ext >&5
  5313. -
  5314. -ac_cv_header_stdc=no
  5315. + ac_cv_header_stdc=no
  5316. fi
  5317. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5318. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5319. if test $ac_cv_header_stdc = yes; then
  5320. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5321. - cat >conftest.$ac_ext <<_ACEOF
  5322. -/* confdefs.h. */
  5323. -_ACEOF
  5324. -cat confdefs.h >>conftest.$ac_ext
  5325. -cat >>conftest.$ac_ext <<_ACEOF
  5326. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5327. /* end confdefs.h. */
  5328. #include <string.h>
  5329. _ACEOF
  5330. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5331. - $EGREP "memchr" >/dev/null 2>&1; then
  5332. - :
  5333. + $EGREP "memchr" >/dev/null 2>&1; then :
  5334. +
  5335. else
  5336. ac_cv_header_stdc=no
  5337. fi
  5338. @@ -2861,18 +3551,14 @@
  5339. if test $ac_cv_header_stdc = yes; then
  5340. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5341. - cat >conftest.$ac_ext <<_ACEOF
  5342. -/* confdefs.h. */
  5343. -_ACEOF
  5344. -cat confdefs.h >>conftest.$ac_ext
  5345. -cat >>conftest.$ac_ext <<_ACEOF
  5346. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5347. /* end confdefs.h. */
  5348. #include <stdlib.h>
  5349. _ACEOF
  5350. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5351. - $EGREP "free" >/dev/null 2>&1; then
  5352. - :
  5353. + $EGREP "free" >/dev/null 2>&1; then :
  5354. +
  5355. else
  5356. ac_cv_header_stdc=no
  5357. fi
  5358. @@ -2882,16 +3568,13 @@
  5359. if test $ac_cv_header_stdc = yes; then
  5360. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5361. - if test "$cross_compiling" = yes; then
  5362. + if test "$cross_compiling" = yes; then :
  5363. :
  5364. else
  5365. - cat >conftest.$ac_ext <<_ACEOF
  5366. -/* confdefs.h. */
  5367. -_ACEOF
  5368. -cat confdefs.h >>conftest.$ac_ext
  5369. -cat >>conftest.$ac_ext <<_ACEOF
  5370. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5371. /* end confdefs.h. */
  5372. #include <ctype.h>
  5373. +#include <stdlib.h>
  5374. #if ((' ' & 0x0FF) == 0x020)
  5375. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5376. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5377. @@ -2911,108 +3594,40 @@
  5378. for (i = 0; i < 256; i++)
  5379. if (XOR (islower (i), ISLOWER (i))
  5380. || toupper (i) != TOUPPER (i))
  5381. - exit(2);
  5382. - exit (0);
  5383. + return 2;
  5384. + return 0;
  5385. }
  5386. _ACEOF
  5387. -rm -f conftest$ac_exeext
  5388. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5389. - (eval $ac_link) 2>&5
  5390. - ac_status=$?
  5391. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5392. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5393. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5394. - (eval $ac_try) 2>&5
  5395. - ac_status=$?
  5396. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5397. - (exit $ac_status); }; }; then
  5398. - :
  5399. -else
  5400. - echo "$as_me: program exited with status $ac_status" >&5
  5401. -echo "$as_me: failed program was:" >&5
  5402. -sed 's/^/| /' conftest.$ac_ext >&5
  5403. +if ac_fn_c_try_run "$LINENO"; then :
  5404. -( exit $ac_status )
  5405. -ac_cv_header_stdc=no
  5406. +else
  5407. + ac_cv_header_stdc=no
  5408. fi
  5409. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5410. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5411. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  5412. fi
  5413. +
  5414. fi
  5415. fi
  5416. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5417. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5418. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5419. +$as_echo "$ac_cv_header_stdc" >&6; }
  5420. if test $ac_cv_header_stdc = yes; then
  5421. -cat >>confdefs.h <<\_ACEOF
  5422. -#define STDC_HEADERS 1
  5423. -_ACEOF
  5424. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5425. fi
  5426. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5427. -
  5428. -
  5429. -
  5430. -
  5431. -
  5432. -
  5433. -
  5434. -
  5435. -
  5436. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5437. inttypes.h stdint.h unistd.h
  5438. -do
  5439. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5440. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  5441. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5442. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5443. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5444. -else
  5445. - cat >conftest.$ac_ext <<_ACEOF
  5446. -/* confdefs.h. */
  5447. -_ACEOF
  5448. -cat confdefs.h >>conftest.$ac_ext
  5449. -cat >>conftest.$ac_ext <<_ACEOF
  5450. -/* end confdefs.h. */
  5451. -$ac_includes_default
  5452. -
  5453. -#include <$ac_header>
  5454. -_ACEOF
  5455. -rm -f conftest.$ac_objext
  5456. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5457. - (eval $ac_compile) 2>conftest.er1
  5458. - ac_status=$?
  5459. - grep -v '^ *+' conftest.er1 >conftest.err
  5460. - rm -f conftest.er1
  5461. - cat conftest.err >&5
  5462. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5463. - (exit $ac_status); } &&
  5464. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5465. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5466. - (eval $ac_try) 2>&5
  5467. - ac_status=$?
  5468. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5469. - (exit $ac_status); }; } &&
  5470. - { ac_try='test -s conftest.$ac_objext'
  5471. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5472. - (eval $ac_try) 2>&5
  5473. - ac_status=$?
  5474. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5475. - (exit $ac_status); }; }; then
  5476. - eval "$as_ac_Header=yes"
  5477. -else
  5478. - echo "$as_me: failed program was:" >&5
  5479. -sed 's/^/| /' conftest.$ac_ext >&5
  5480. -
  5481. -eval "$as_ac_Header=no"
  5482. -fi
  5483. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5484. -fi
  5485. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5486. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5487. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5488. +do :
  5489. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5490. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5491. +"
  5492. +eval as_val=\$$as_ac_Header
  5493. + if test "x$as_val" = x""yes; then :
  5494. cat >>confdefs.h <<_ACEOF
  5495. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5496. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5497. _ACEOF
  5498. fi
  5499. @@ -3020,151 +3635,14 @@
  5500. done
  5501. -
  5502. -
  5503. -
  5504. for ac_header in sys/time.h syslog.h unistd.h
  5505. -do
  5506. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5507. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5508. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  5509. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5510. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5511. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5512. -fi
  5513. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5514. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5515. -else
  5516. - # Is the header compilable?
  5517. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5518. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5519. -cat >conftest.$ac_ext <<_ACEOF
  5520. -/* confdefs.h. */
  5521. -_ACEOF
  5522. -cat confdefs.h >>conftest.$ac_ext
  5523. -cat >>conftest.$ac_ext <<_ACEOF
  5524. -/* end confdefs.h. */
  5525. -$ac_includes_default
  5526. -#include <$ac_header>
  5527. -_ACEOF
  5528. -rm -f conftest.$ac_objext
  5529. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5530. - (eval $ac_compile) 2>conftest.er1
  5531. - ac_status=$?
  5532. - grep -v '^ *+' conftest.er1 >conftest.err
  5533. - rm -f conftest.er1
  5534. - cat conftest.err >&5
  5535. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5536. - (exit $ac_status); } &&
  5537. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5538. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5539. - (eval $ac_try) 2>&5
  5540. - ac_status=$?
  5541. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5542. - (exit $ac_status); }; } &&
  5543. - { ac_try='test -s conftest.$ac_objext'
  5544. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5545. - (eval $ac_try) 2>&5
  5546. - ac_status=$?
  5547. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5548. - (exit $ac_status); }; }; then
  5549. - ac_header_compiler=yes
  5550. -else
  5551. - echo "$as_me: failed program was:" >&5
  5552. -sed 's/^/| /' conftest.$ac_ext >&5
  5553. -
  5554. -ac_header_compiler=no
  5555. -fi
  5556. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5557. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5558. -echo "${ECHO_T}$ac_header_compiler" >&6
  5559. -
  5560. -# Is the header present?
  5561. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5562. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5563. -cat >conftest.$ac_ext <<_ACEOF
  5564. -/* confdefs.h. */
  5565. -_ACEOF
  5566. -cat confdefs.h >>conftest.$ac_ext
  5567. -cat >>conftest.$ac_ext <<_ACEOF
  5568. -/* end confdefs.h. */
  5569. -#include <$ac_header>
  5570. -_ACEOF
  5571. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5572. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5573. - ac_status=$?
  5574. - grep -v '^ *+' conftest.er1 >conftest.err
  5575. - rm -f conftest.er1
  5576. - cat conftest.err >&5
  5577. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5578. - (exit $ac_status); } >/dev/null; then
  5579. - if test -s conftest.err; then
  5580. - ac_cpp_err=$ac_c_preproc_warn_flag
  5581. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5582. - else
  5583. - ac_cpp_err=
  5584. - fi
  5585. -else
  5586. - ac_cpp_err=yes
  5587. -fi
  5588. -if test -z "$ac_cpp_err"; then
  5589. - ac_header_preproc=yes
  5590. -else
  5591. - echo "$as_me: failed program was:" >&5
  5592. -sed 's/^/| /' conftest.$ac_ext >&5
  5593. -
  5594. - ac_header_preproc=no
  5595. -fi
  5596. -rm -f conftest.err conftest.$ac_ext
  5597. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5598. -echo "${ECHO_T}$ac_header_preproc" >&6
  5599. -
  5600. -# So? What about this header?
  5601. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5602. - yes:no: )
  5603. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5604. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5605. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5606. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5607. - ac_header_preproc=yes
  5608. - ;;
  5609. - no:yes:* )
  5610. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5611. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5612. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5613. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5614. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5615. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5616. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5617. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5618. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5619. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5620. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5621. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5622. - (
  5623. - cat <<\_ASBOX
  5624. -## ------------------------------------------ ##
  5625. -## Report this to the AC_PACKAGE_NAME lists. ##
  5626. -## ------------------------------------------ ##
  5627. -_ASBOX
  5628. - ) |
  5629. - sed "s/^/$as_me: WARNING: /" >&2
  5630. - ;;
  5631. -esac
  5632. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  5633. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5634. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5635. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5636. -else
  5637. - eval "$as_ac_Header=\$ac_header_preproc"
  5638. -fi
  5639. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5640. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5641. -
  5642. -fi
  5643. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5644. +do :
  5645. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5646. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5647. +eval as_val=\$$as_ac_Header
  5648. + if test "x$as_val" = x""yes; then :
  5649. cat >>confdefs.h <<_ACEOF
  5650. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5651. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5652. _ACEOF
  5653. fi
  5654. @@ -3172,16 +3650,12 @@
  5655. done
  5656. -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5657. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5658. -if test "${ac_cv_c_const+set}" = set; then
  5659. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5660. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  5661. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  5662. +if test "${ac_cv_c_const+set}" = set; then :
  5663. + $as_echo_n "(cached) " >&6
  5664. else
  5665. - cat >conftest.$ac_ext <<_ACEOF
  5666. -/* confdefs.h. */
  5667. -_ACEOF
  5668. -cat confdefs.h >>conftest.$ac_ext
  5669. -cat >>conftest.$ac_ext <<_ACEOF
  5670. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5671. /* end confdefs.h. */
  5672. int
  5673. @@ -3191,10 +3665,10 @@
  5674. #ifndef __cplusplus
  5675. /* Ultrix mips cc rejects this. */
  5676. typedef int charset[2];
  5677. - const charset x;
  5678. + const charset cs;
  5679. /* SunOS 4.1.1 cc rejects this. */
  5680. - char const *const *ccp;
  5681. - char **p;
  5682. + char const *const *pcpcc;
  5683. + char **ppc;
  5684. /* NEC SVR4.0.2 mips cc rejects this. */
  5685. struct point {int x, y;};
  5686. static struct point const zero = {0,0};
  5687. @@ -3203,16 +3677,17 @@
  5688. an arm of an if-expression whose if-part is not a constant
  5689. expression */
  5690. const char *g = "string";
  5691. - ccp = &g + (g ? g-g : 0);
  5692. + pcpcc = &g + (g ? g-g : 0);
  5693. /* HPUX 7.0 cc rejects these. */
  5694. - ++ccp;
  5695. - p = (char**) ccp;
  5696. - ccp = (char const *const *) p;
  5697. + ++pcpcc;
  5698. + ppc = (char**) pcpcc;
  5699. + pcpcc = (char const *const *) ppc;
  5700. { /* SCO 3.2v4 cc rejects this. */
  5701. char *t;
  5702. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5703. *t++ = 0;
  5704. + if (s) return 0;
  5705. }
  5706. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5707. int x[] = {25, 17};
  5708. @@ -3231,65 +3706,38 @@
  5709. }
  5710. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5711. const int foo = 10;
  5712. + if (!foo) return 0;
  5713. }
  5714. + return !cs[0] && !zero.x;
  5715. #endif
  5716. ;
  5717. return 0;
  5718. }
  5719. _ACEOF
  5720. -rm -f conftest.$ac_objext
  5721. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5722. - (eval $ac_compile) 2>conftest.er1
  5723. - ac_status=$?
  5724. - grep -v '^ *+' conftest.er1 >conftest.err
  5725. - rm -f conftest.er1
  5726. - cat conftest.err >&5
  5727. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5728. - (exit $ac_status); } &&
  5729. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5730. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5731. - (eval $ac_try) 2>&5
  5732. - ac_status=$?
  5733. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5734. - (exit $ac_status); }; } &&
  5735. - { ac_try='test -s conftest.$ac_objext'
  5736. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5737. - (eval $ac_try) 2>&5
  5738. - ac_status=$?
  5739. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5740. - (exit $ac_status); }; }; then
  5741. +if ac_fn_c_try_compile "$LINENO"; then :
  5742. ac_cv_c_const=yes
  5743. else
  5744. - echo "$as_me: failed program was:" >&5
  5745. -sed 's/^/| /' conftest.$ac_ext >&5
  5746. -
  5747. -ac_cv_c_const=no
  5748. + ac_cv_c_const=no
  5749. fi
  5750. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5751. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5752. fi
  5753. -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5754. -echo "${ECHO_T}$ac_cv_c_const" >&6
  5755. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  5756. +$as_echo "$ac_cv_c_const" >&6; }
  5757. if test $ac_cv_c_const = no; then
  5758. -cat >>confdefs.h <<\_ACEOF
  5759. -#define const
  5760. -_ACEOF
  5761. +$as_echo "#define const /**/" >>confdefs.h
  5762. fi
  5763. -echo "$as_me:$LINENO: checking for inline" >&5
  5764. -echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5765. -if test "${ac_cv_c_inline+set}" = set; then
  5766. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5767. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  5768. +$as_echo_n "checking for inline... " >&6; }
  5769. +if test "${ac_cv_c_inline+set}" = set; then :
  5770. + $as_echo_n "(cached) " >&6
  5771. else
  5772. ac_cv_c_inline=no
  5773. for ac_kw in inline __inline__ __inline; do
  5774. - cat >conftest.$ac_ext <<_ACEOF
  5775. -/* confdefs.h. */
  5776. -_ACEOF
  5777. -cat confdefs.h >>conftest.$ac_ext
  5778. -cat >>conftest.$ac_ext <<_ACEOF
  5779. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5780. /* end confdefs.h. */
  5781. #ifndef __cplusplus
  5782. typedef int foo_t;
  5783. @@ -3298,40 +3746,16 @@
  5784. #endif
  5785. _ACEOF
  5786. -rm -f conftest.$ac_objext
  5787. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5788. - (eval $ac_compile) 2>conftest.er1
  5789. - ac_status=$?
  5790. - grep -v '^ *+' conftest.er1 >conftest.err
  5791. - rm -f conftest.er1
  5792. - cat conftest.err >&5
  5793. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5794. - (exit $ac_status); } &&
  5795. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5796. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5797. - (eval $ac_try) 2>&5
  5798. - ac_status=$?
  5799. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5800. - (exit $ac_status); }; } &&
  5801. - { ac_try='test -s conftest.$ac_objext'
  5802. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5803. - (eval $ac_try) 2>&5
  5804. - ac_status=$?
  5805. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5806. - (exit $ac_status); }; }; then
  5807. - ac_cv_c_inline=$ac_kw; break
  5808. -else
  5809. - echo "$as_me: failed program was:" >&5
  5810. -sed 's/^/| /' conftest.$ac_ext >&5
  5811. -
  5812. +if ac_fn_c_try_compile "$LINENO"; then :
  5813. + ac_cv_c_inline=$ac_kw
  5814. fi
  5815. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5816. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5817. + test "$ac_cv_c_inline" != no && break
  5818. done
  5819. fi
  5820. -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5821. -echo "${ECHO_T}$ac_cv_c_inline" >&6
  5822. -
  5823. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  5824. +$as_echo "$ac_cv_c_inline" >&6; }
  5825. case $ac_cv_c_inline in
  5826. inline | yes) ;;
  5827. @@ -3348,16 +3772,12 @@
  5828. ;;
  5829. esac
  5830. -echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5831. -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5832. -if test "${ac_cv_header_time+set}" = set; then
  5833. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5834. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5835. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5836. +if test "${ac_cv_header_time+set}" = set; then :
  5837. + $as_echo_n "(cached) " >&6
  5838. else
  5839. - cat >conftest.$ac_ext <<_ACEOF
  5840. -/* confdefs.h. */
  5841. -_ACEOF
  5842. -cat confdefs.h >>conftest.$ac_ext
  5843. -cat >>conftest.$ac_ext <<_ACEOF
  5844. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5845. /* end confdefs.h. */
  5846. #include <sys/types.h>
  5847. #include <sys/time.h>
  5848. @@ -3372,441 +3792,295 @@
  5849. return 0;
  5850. }
  5851. _ACEOF
  5852. -rm -f conftest.$ac_objext
  5853. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5854. - (eval $ac_compile) 2>conftest.er1
  5855. - ac_status=$?
  5856. - grep -v '^ *+' conftest.er1 >conftest.err
  5857. - rm -f conftest.er1
  5858. - cat conftest.err >&5
  5859. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5860. - (exit $ac_status); } &&
  5861. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5862. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5863. - (eval $ac_try) 2>&5
  5864. - ac_status=$?
  5865. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5866. - (exit $ac_status); }; } &&
  5867. - { ac_try='test -s conftest.$ac_objext'
  5868. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5869. - (eval $ac_try) 2>&5
  5870. - ac_status=$?
  5871. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5872. - (exit $ac_status); }; }; then
  5873. +if ac_fn_c_try_compile "$LINENO"; then :
  5874. ac_cv_header_time=yes
  5875. else
  5876. - echo "$as_me: failed program was:" >&5
  5877. -sed 's/^/| /' conftest.$ac_ext >&5
  5878. -
  5879. -ac_cv_header_time=no
  5880. + ac_cv_header_time=no
  5881. fi
  5882. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5883. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5884. fi
  5885. -echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5886. -echo "${ECHO_T}$ac_cv_header_time" >&6
  5887. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5888. +$as_echo "$ac_cv_header_time" >&6; }
  5889. if test $ac_cv_header_time = yes; then
  5890. -cat >>confdefs.h <<\_ACEOF
  5891. -#define TIME_WITH_SYS_TIME 1
  5892. -_ACEOF
  5893. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  5894. fi
  5895. -echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5896. -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5897. -if test "${ac_cv_c_bigendian+set}" = set; then
  5898. - echo $ECHO_N "(cached) $ECHO_C" >&6
  5899. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5900. +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5901. +if test "${ac_cv_c_bigendian+set}" = set; then :
  5902. + $as_echo_n "(cached) " >&6
  5903. else
  5904. - # See if sys/param.h defines the BYTE_ORDER macro.
  5905. -cat >conftest.$ac_ext <<_ACEOF
  5906. -/* confdefs.h. */
  5907. -_ACEOF
  5908. -cat confdefs.h >>conftest.$ac_ext
  5909. -cat >>conftest.$ac_ext <<_ACEOF
  5910. + ac_cv_c_bigendian=unknown
  5911. + # See if we're dealing with a universal compiler.
  5912. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5913. +/* end confdefs.h. */
  5914. +#ifndef __APPLE_CC__
  5915. + not a universal capable compiler
  5916. + #endif
  5917. + typedef int dummy;
  5918. +
  5919. +_ACEOF
  5920. +if ac_fn_c_try_compile "$LINENO"; then :
  5921. +
  5922. + # Check for potential -arch flags. It is not universal unless
  5923. + # there are at least two -arch flags with different values.
  5924. + ac_arch=
  5925. + ac_prev=
  5926. + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5927. + if test -n "$ac_prev"; then
  5928. + case $ac_word in
  5929. + i?86 | x86_64 | ppc | ppc64)
  5930. + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5931. + ac_arch=$ac_word
  5932. + else
  5933. + ac_cv_c_bigendian=universal
  5934. + break
  5935. + fi
  5936. + ;;
  5937. + esac
  5938. + ac_prev=
  5939. + elif test "x$ac_word" = "x-arch"; then
  5940. + ac_prev=arch
  5941. + fi
  5942. + done
  5943. +fi
  5944. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5945. + if test $ac_cv_c_bigendian = unknown; then
  5946. + # See if sys/param.h defines the BYTE_ORDER macro.
  5947. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5948. /* end confdefs.h. */
  5949. #include <sys/types.h>
  5950. -#include <sys/param.h>
  5951. + #include <sys/param.h>
  5952. int
  5953. main ()
  5954. {
  5955. -#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5956. - bogus endian macros
  5957. -#endif
  5958. +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5959. + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5960. + && LITTLE_ENDIAN)
  5961. + bogus endian macros
  5962. + #endif
  5963. ;
  5964. return 0;
  5965. }
  5966. _ACEOF
  5967. -rm -f conftest.$ac_objext
  5968. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5969. - (eval $ac_compile) 2>conftest.er1
  5970. - ac_status=$?
  5971. - grep -v '^ *+' conftest.er1 >conftest.err
  5972. - rm -f conftest.er1
  5973. - cat conftest.err >&5
  5974. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5975. - (exit $ac_status); } &&
  5976. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5977. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5978. - (eval $ac_try) 2>&5
  5979. - ac_status=$?
  5980. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5981. - (exit $ac_status); }; } &&
  5982. - { ac_try='test -s conftest.$ac_objext'
  5983. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5984. - (eval $ac_try) 2>&5
  5985. - ac_status=$?
  5986. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5987. - (exit $ac_status); }; }; then
  5988. +if ac_fn_c_try_compile "$LINENO"; then :
  5989. # It does; now see whether it defined to BIG_ENDIAN or not.
  5990. -cat >conftest.$ac_ext <<_ACEOF
  5991. -/* confdefs.h. */
  5992. -_ACEOF
  5993. -cat confdefs.h >>conftest.$ac_ext
  5994. -cat >>conftest.$ac_ext <<_ACEOF
  5995. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5996. /* end confdefs.h. */
  5997. #include <sys/types.h>
  5998. -#include <sys/param.h>
  5999. + #include <sys/param.h>
  6000. int
  6001. main ()
  6002. {
  6003. #if BYTE_ORDER != BIG_ENDIAN
  6004. - not big endian
  6005. -#endif
  6006. + not big endian
  6007. + #endif
  6008. ;
  6009. return 0;
  6010. }
  6011. _ACEOF
  6012. -rm -f conftest.$ac_objext
  6013. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6014. - (eval $ac_compile) 2>conftest.er1
  6015. - ac_status=$?
  6016. - grep -v '^ *+' conftest.er1 >conftest.err
  6017. - rm -f conftest.er1
  6018. - cat conftest.err >&5
  6019. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6020. - (exit $ac_status); } &&
  6021. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6022. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6023. - (eval $ac_try) 2>&5
  6024. - ac_status=$?
  6025. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6026. - (exit $ac_status); }; } &&
  6027. - { ac_try='test -s conftest.$ac_objext'
  6028. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6029. - (eval $ac_try) 2>&5
  6030. - ac_status=$?
  6031. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6032. - (exit $ac_status); }; }; then
  6033. +if ac_fn_c_try_compile "$LINENO"; then :
  6034. ac_cv_c_bigendian=yes
  6035. else
  6036. - echo "$as_me: failed program was:" >&5
  6037. -sed 's/^/| /' conftest.$ac_ext >&5
  6038. -
  6039. -ac_cv_c_bigendian=no
  6040. + ac_cv_c_bigendian=no
  6041. fi
  6042. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6043. -else
  6044. - echo "$as_me: failed program was:" >&5
  6045. -sed 's/^/| /' conftest.$ac_ext >&5
  6046. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6047. +fi
  6048. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6049. + fi
  6050. + if test $ac_cv_c_bigendian = unknown; then
  6051. + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6052. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6053. +/* end confdefs.h. */
  6054. +#include <limits.h>
  6055. -# It does not; compile a test program.
  6056. -if test "$cross_compiling" = yes; then
  6057. - # try to guess the endianness by grepping values into an object file
  6058. - ac_cv_c_bigendian=unknown
  6059. - cat >conftest.$ac_ext <<_ACEOF
  6060. -/* confdefs.h. */
  6061. +int
  6062. +main ()
  6063. +{
  6064. +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6065. + bogus endian macros
  6066. + #endif
  6067. +
  6068. + ;
  6069. + return 0;
  6070. +}
  6071. _ACEOF
  6072. -cat confdefs.h >>conftest.$ac_ext
  6073. -cat >>conftest.$ac_ext <<_ACEOF
  6074. +if ac_fn_c_try_compile "$LINENO"; then :
  6075. + # It does; now see whether it defined to _BIG_ENDIAN or not.
  6076. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6077. /* end confdefs.h. */
  6078. -short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6079. -short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6080. -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6081. -short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6082. -short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6083. -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6084. +#include <limits.h>
  6085. +
  6086. int
  6087. main ()
  6088. {
  6089. - _ascii (); _ebcdic ();
  6090. +#ifndef _BIG_ENDIAN
  6091. + not big endian
  6092. + #endif
  6093. +
  6094. ;
  6095. return 0;
  6096. }
  6097. _ACEOF
  6098. -rm -f conftest.$ac_objext
  6099. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6100. - (eval $ac_compile) 2>conftest.er1
  6101. - ac_status=$?
  6102. - grep -v '^ *+' conftest.er1 >conftest.err
  6103. - rm -f conftest.er1
  6104. - cat conftest.err >&5
  6105. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6106. - (exit $ac_status); } &&
  6107. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6108. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6109. - (eval $ac_try) 2>&5
  6110. - ac_status=$?
  6111. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6112. - (exit $ac_status); }; } &&
  6113. - { ac_try='test -s conftest.$ac_objext'
  6114. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6115. - (eval $ac_try) 2>&5
  6116. - ac_status=$?
  6117. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6118. - (exit $ac_status); }; }; then
  6119. - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6120. +if ac_fn_c_try_compile "$LINENO"; then :
  6121. ac_cv_c_bigendian=yes
  6122. -fi
  6123. -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6124. - if test "$ac_cv_c_bigendian" = unknown; then
  6125. - ac_cv_c_bigendian=no
  6126. - else
  6127. - # finding both strings is unlikely to happen, but who knows?
  6128. - ac_cv_c_bigendian=unknown
  6129. - fi
  6130. -fi
  6131. else
  6132. - echo "$as_me: failed program was:" >&5
  6133. -sed 's/^/| /' conftest.$ac_ext >&5
  6134. -
  6135. + ac_cv_c_bigendian=no
  6136. fi
  6137. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6138. -else
  6139. - cat >conftest.$ac_ext <<_ACEOF
  6140. -/* confdefs.h. */
  6141. -_ACEOF
  6142. -cat confdefs.h >>conftest.$ac_ext
  6143. -cat >>conftest.$ac_ext <<_ACEOF
  6144. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6145. +fi
  6146. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6147. + fi
  6148. + if test $ac_cv_c_bigendian = unknown; then
  6149. + # Compile a test program.
  6150. + if test "$cross_compiling" = yes; then :
  6151. + # Try to guess by grepping values from an object file.
  6152. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6153. /* end confdefs.h. */
  6154. +short int ascii_mm[] =
  6155. + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6156. + short int ascii_ii[] =
  6157. + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6158. + int use_ascii (int i) {
  6159. + return ascii_mm[i] + ascii_ii[i];
  6160. + }
  6161. + short int ebcdic_ii[] =
  6162. + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6163. + short int ebcdic_mm[] =
  6164. + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6165. + int use_ebcdic (int i) {
  6166. + return ebcdic_mm[i] + ebcdic_ii[i];
  6167. + }
  6168. + extern int foo;
  6169. +
  6170. int
  6171. main ()
  6172. {
  6173. - /* Are we little or big endian? From Harbison&Steele. */
  6174. - union
  6175. - {
  6176. - long l;
  6177. - char c[sizeof (long)];
  6178. - } u;
  6179. - u.l = 1;
  6180. - exit (u.c[sizeof (long) - 1] == 1);
  6181. +return use_ascii (foo) == use_ebcdic (foo);
  6182. + ;
  6183. + return 0;
  6184. }
  6185. _ACEOF
  6186. -rm -f conftest$ac_exeext
  6187. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6188. - (eval $ac_link) 2>&5
  6189. - ac_status=$?
  6190. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6191. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6192. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6193. - (eval $ac_try) 2>&5
  6194. - ac_status=$?
  6195. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6196. - (exit $ac_status); }; }; then
  6197. - ac_cv_c_bigendian=no
  6198. -else
  6199. - echo "$as_me: program exited with status $ac_status" >&5
  6200. -echo "$as_me: failed program was:" >&5
  6201. -sed 's/^/| /' conftest.$ac_ext >&5
  6202. -
  6203. -( exit $ac_status )
  6204. -ac_cv_c_bigendian=yes
  6205. -fi
  6206. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6207. +if ac_fn_c_try_compile "$LINENO"; then :
  6208. + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6209. + ac_cv_c_bigendian=yes
  6210. + fi
  6211. + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6212. + if test "$ac_cv_c_bigendian" = unknown; then
  6213. + ac_cv_c_bigendian=no
  6214. + else
  6215. + # finding both strings is unlikely to happen, but who knows?
  6216. + ac_cv_c_bigendian=unknown
  6217. + fi
  6218. + fi
  6219. fi
  6220. -fi
  6221. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6222. -fi
  6223. -echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6224. -echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6225. -case $ac_cv_c_bigendian in
  6226. - yes)
  6227. -
  6228. -cat >>confdefs.h <<\_ACEOF
  6229. -#define WORDS_BIGENDIAN 1
  6230. -_ACEOF
  6231. - ;;
  6232. - no)
  6233. - ;;
  6234. - *)
  6235. - { { echo "$as_me:$LINENO: error: unknown endianness
  6236. -presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6237. -echo "$as_me: error: unknown endianness
  6238. -presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6239. - { (exit 1); exit 1; }; } ;;
  6240. -esac
  6241. -
  6242. -
  6243. -CFLAGS="$CFLAGS -D_BSD_SOURCE"
  6244. -
  6245. -for ac_func in gettimeofday
  6246. -do
  6247. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6248. -echo "$as_me:$LINENO: checking for $ac_func" >&5
  6249. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6250. -if eval "test \"\${$as_ac_var+set}\" = set"; then
  6251. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6252. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6253. else
  6254. - cat >conftest.$ac_ext <<_ACEOF
  6255. -/* confdefs.h. */
  6256. -_ACEOF
  6257. -cat confdefs.h >>conftest.$ac_ext
  6258. -cat >>conftest.$ac_ext <<_ACEOF
  6259. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6260. /* end confdefs.h. */
  6261. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6262. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6263. -#define $ac_func innocuous_$ac_func
  6264. -
  6265. -/* System header to define __stub macros and hopefully few prototypes,
  6266. - which can conflict with char $ac_func (); below.
  6267. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6268. - <limits.h> exists even on freestanding compilers. */
  6269. -
  6270. -#ifdef __STDC__
  6271. -# include <limits.h>
  6272. -#else
  6273. -# include <assert.h>
  6274. -#endif
  6275. -
  6276. -#undef $ac_func
  6277. -
  6278. -/* Override any gcc2 internal prototype to avoid an error. */
  6279. -#ifdef __cplusplus
  6280. -extern "C"
  6281. -{
  6282. -#endif
  6283. -/* We use char because int might match the return type of a gcc2
  6284. - builtin and then its argument prototype would still apply. */
  6285. -char $ac_func ();
  6286. -/* The GNU C library defines this for functions which it implements
  6287. - to always fail with ENOSYS. Some functions are actually named
  6288. - something starting with __ and the normal name is an alias. */
  6289. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6290. -choke me
  6291. -#else
  6292. -char (*f) () = $ac_func;
  6293. -#endif
  6294. -#ifdef __cplusplus
  6295. -}
  6296. -#endif
  6297. -
  6298. +$ac_includes_default
  6299. int
  6300. main ()
  6301. {
  6302. -return f != $ac_func;
  6303. +
  6304. + /* Are we little or big endian? From Harbison&Steele. */
  6305. + union
  6306. + {
  6307. + long int l;
  6308. + char c[sizeof (long int)];
  6309. + } u;
  6310. + u.l = 1;
  6311. + return u.c[sizeof (long int) - 1] == 1;
  6312. +
  6313. ;
  6314. return 0;
  6315. }
  6316. _ACEOF
  6317. -rm -f conftest.$ac_objext conftest$ac_exeext
  6318. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6319. - (eval $ac_link) 2>conftest.er1
  6320. - ac_status=$?
  6321. - grep -v '^ *+' conftest.er1 >conftest.err
  6322. - rm -f conftest.er1
  6323. - cat conftest.err >&5
  6324. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6325. - (exit $ac_status); } &&
  6326. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6327. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6328. - (eval $ac_try) 2>&5
  6329. - ac_status=$?
  6330. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6331. - (exit $ac_status); }; } &&
  6332. - { ac_try='test -s conftest$ac_exeext'
  6333. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6334. - (eval $ac_try) 2>&5
  6335. - ac_status=$?
  6336. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6337. - (exit $ac_status); }; }; then
  6338. - eval "$as_ac_var=yes"
  6339. +if ac_fn_c_try_run "$LINENO"; then :
  6340. + ac_cv_c_bigendian=no
  6341. else
  6342. - echo "$as_me: failed program was:" >&5
  6343. -sed 's/^/| /' conftest.$ac_ext >&5
  6344. -
  6345. -eval "$as_ac_var=no"
  6346. + ac_cv_c_bigendian=yes
  6347. +fi
  6348. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6349. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  6350. fi
  6351. -rm -f conftest.err conftest.$ac_objext \
  6352. - conftest$ac_exeext conftest.$ac_ext
  6353. +
  6354. + fi
  6355. fi
  6356. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6357. -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6358. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  6359. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6360. +$as_echo "$ac_cv_c_bigendian" >&6; }
  6361. + case $ac_cv_c_bigendian in #(
  6362. + yes)
  6363. + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  6364. +;; #(
  6365. + no)
  6366. + ;; #(
  6367. + universal)
  6368. +
  6369. +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  6370. +
  6371. + ;; #(
  6372. + *)
  6373. + as_fn_error "unknown endianness
  6374. + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6375. + esac
  6376. +
  6377. +
  6378. +CFLAGS="$CFLAGS -D_BSD_SOURCE"
  6379. +for ac_func in gettimeofday
  6380. +do :
  6381. + ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  6382. +if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  6383. cat >>confdefs.h <<_ACEOF
  6384. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6385. +#define HAVE_GETTIMEOFDAY 1
  6386. _ACEOF
  6387. fi
  6388. done
  6389. -
  6390. -echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  6391. -echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  6392. -if test "${ac_cv_lib_socket_socket+set}" = set; then
  6393. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6394. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  6395. +$as_echo_n "checking for socket in -lsocket... " >&6; }
  6396. +if test "${ac_cv_lib_socket_socket+set}" = set; then :
  6397. + $as_echo_n "(cached) " >&6
  6398. else
  6399. ac_check_lib_save_LIBS=$LIBS
  6400. LIBS="-lsocket $LIBS"
  6401. -cat >conftest.$ac_ext <<_ACEOF
  6402. -/* confdefs.h. */
  6403. -_ACEOF
  6404. -cat confdefs.h >>conftest.$ac_ext
  6405. -cat >>conftest.$ac_ext <<_ACEOF
  6406. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6407. /* end confdefs.h. */
  6408. -/* Override any gcc2 internal prototype to avoid an error. */
  6409. +/* Override any GCC internal prototype to avoid an error.
  6410. + Use char because int might match the return type of a GCC
  6411. + builtin and then its argument prototype would still apply. */
  6412. #ifdef __cplusplus
  6413. extern "C"
  6414. #endif
  6415. -/* We use char because int might match the return type of a gcc2
  6416. - builtin and then its argument prototype would still apply. */
  6417. char socket ();
  6418. int
  6419. main ()
  6420. {
  6421. -socket ();
  6422. +return socket ();
  6423. ;
  6424. return 0;
  6425. }
  6426. _ACEOF
  6427. -rm -f conftest.$ac_objext conftest$ac_exeext
  6428. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6429. - (eval $ac_link) 2>conftest.er1
  6430. - ac_status=$?
  6431. - grep -v '^ *+' conftest.er1 >conftest.err
  6432. - rm -f conftest.er1
  6433. - cat conftest.err >&5
  6434. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6435. - (exit $ac_status); } &&
  6436. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6437. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6438. - (eval $ac_try) 2>&5
  6439. - ac_status=$?
  6440. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6441. - (exit $ac_status); }; } &&
  6442. - { ac_try='test -s conftest$ac_exeext'
  6443. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6444. - (eval $ac_try) 2>&5
  6445. - ac_status=$?
  6446. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6447. - (exit $ac_status); }; }; then
  6448. +if ac_fn_c_try_link "$LINENO"; then :
  6449. ac_cv_lib_socket_socket=yes
  6450. else
  6451. - echo "$as_me: failed program was:" >&5
  6452. -sed 's/^/| /' conftest.$ac_ext >&5
  6453. -
  6454. -ac_cv_lib_socket_socket=no
  6455. + ac_cv_lib_socket_socket=no
  6456. fi
  6457. -rm -f conftest.err conftest.$ac_objext \
  6458. - conftest$ac_exeext conftest.$ac_ext
  6459. +rm -f core conftest.err conftest.$ac_objext \
  6460. + conftest$ac_exeext conftest.$ac_ext
  6461. LIBS=$ac_check_lib_save_LIBS
  6462. fi
  6463. -echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  6464. -echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  6465. -if test $ac_cv_lib_socket_socket = yes; then
  6466. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  6467. +$as_echo "$ac_cv_lib_socket_socket" >&6; }
  6468. +if test "x$ac_cv_lib_socket_socket" = x""yes; then :
  6469. cat >>confdefs.h <<_ACEOF
  6470. #define HAVE_LIBSOCKET 1
  6471. _ACEOF
  6472. @@ -3815,71 +4089,43 @@
  6473. fi
  6474. -
  6475. -echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  6476. -echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  6477. -if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  6478. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6479. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  6480. +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  6481. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  6482. + $as_echo_n "(cached) " >&6
  6483. else
  6484. ac_check_lib_save_LIBS=$LIBS
  6485. LIBS="-lnsl $LIBS"
  6486. -cat >conftest.$ac_ext <<_ACEOF
  6487. -/* confdefs.h. */
  6488. -_ACEOF
  6489. -cat confdefs.h >>conftest.$ac_ext
  6490. -cat >>conftest.$ac_ext <<_ACEOF
  6491. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6492. /* end confdefs.h. */
  6493. -/* Override any gcc2 internal prototype to avoid an error. */
  6494. +/* Override any GCC internal prototype to avoid an error.
  6495. + Use char because int might match the return type of a GCC
  6496. + builtin and then its argument prototype would still apply. */
  6497. #ifdef __cplusplus
  6498. extern "C"
  6499. #endif
  6500. -/* We use char because int might match the return type of a gcc2
  6501. - builtin and then its argument prototype would still apply. */
  6502. char gethostbyname ();
  6503. int
  6504. main ()
  6505. {
  6506. -gethostbyname ();
  6507. +return gethostbyname ();
  6508. ;
  6509. return 0;
  6510. }
  6511. _ACEOF
  6512. -rm -f conftest.$ac_objext conftest$ac_exeext
  6513. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6514. - (eval $ac_link) 2>conftest.er1
  6515. - ac_status=$?
  6516. - grep -v '^ *+' conftest.er1 >conftest.err
  6517. - rm -f conftest.er1
  6518. - cat conftest.err >&5
  6519. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6520. - (exit $ac_status); } &&
  6521. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6522. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6523. - (eval $ac_try) 2>&5
  6524. - ac_status=$?
  6525. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6526. - (exit $ac_status); }; } &&
  6527. - { ac_try='test -s conftest$ac_exeext'
  6528. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6529. - (eval $ac_try) 2>&5
  6530. - ac_status=$?
  6531. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6532. - (exit $ac_status); }; }; then
  6533. +if ac_fn_c_try_link "$LINENO"; then :
  6534. ac_cv_lib_nsl_gethostbyname=yes
  6535. else
  6536. - echo "$as_me: failed program was:" >&5
  6537. -sed 's/^/| /' conftest.$ac_ext >&5
  6538. -
  6539. -ac_cv_lib_nsl_gethostbyname=no
  6540. + ac_cv_lib_nsl_gethostbyname=no
  6541. fi
  6542. -rm -f conftest.err conftest.$ac_objext \
  6543. - conftest$ac_exeext conftest.$ac_ext
  6544. +rm -f core conftest.err conftest.$ac_objext \
  6545. + conftest$ac_exeext conftest.$ac_ext
  6546. LIBS=$ac_check_lib_save_LIBS
  6547. fi
  6548. -echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  6549. -echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  6550. -if test $ac_cv_lib_nsl_gethostbyname = yes; then
  6551. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  6552. +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  6553. +if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  6554. cat >>confdefs.h <<_ACEOF
  6555. #define HAVE_LIBNSL 1
  6556. _ACEOF
  6557. @@ -3899,35 +4145,30 @@
  6558. esac
  6559. if test $ac_cv_lbl_unaligned_fail = yes ; then
  6560. -cat >>confdefs.h <<\_ACEOF
  6561. -#define LBL_ALIGN 1
  6562. -_ACEOF
  6563. +$as_echo "#define LBL_ALIGN 1" >>confdefs.h
  6564. fi
  6565. -echo "$as_me:$LINENO: checking for libpcap" >&5
  6566. -echo $ECHO_N "checking for libpcap... $ECHO_C" >&6
  6567. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  6568. +$as_echo_n "checking for libpcap... " >&6; }
  6569. -# Check whether --with-libpcap or --without-libpcap was given.
  6570. -if test "${with_libpcap+set}" = set; then
  6571. - withval="$with_libpcap"
  6572. - case "$withval" in
  6573. +# Check whether --with-libpcap was given.
  6574. +if test "${with_libpcap+set}" = set; then :
  6575. + withval=$with_libpcap; case "$withval" in
  6576. yes|no)
  6577. - echo "$as_me:$LINENO: result: no" >&5
  6578. -echo "${ECHO_T}no" >&6
  6579. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6580. +$as_echo "no" >&6; }
  6581. ;;
  6582. *)
  6583. - echo "$as_me:$LINENO: result: $withval" >&5
  6584. -echo "${ECHO_T}$withval" >&6
  6585. - if test -f $withval/pcap.h -a -f $withval/libpcap.a; then
  6586. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  6587. +$as_echo "$withval" >&6; }
  6588. + if test -f $withval/include/pcap.h -a -f $withval/lib/libpcap.a; then
  6589. owd=`pwd`
  6590. if cd $withval; then withval=`pwd`; cd $owd; fi
  6591. PCAP_CFLAGS="-I$withval -I$withval/bpf"
  6592. PCAPLIB="-L$withval -lpcap"
  6593. else
  6594. - { { echo "$as_me:$LINENO: error: pcap.h or libpcap.a not found in $withval" >&5
  6595. -echo "$as_me: error: pcap.h or libpcap.a not found in $withval" >&2;}
  6596. - { (exit 1); exit 1; }; }
  6597. + as_fn_error "pcap.h or libpcap.a not found in $withval" "$LINENO" 5
  6598. fi
  6599. ;;
  6600. esac
  6601. @@ -3941,11 +4182,7 @@
  6602. else
  6603. TMP=$LIBS
  6604. LIBS="-lpcap $LIBS"
  6605. - cat >conftest.$ac_ext <<_ACEOF
  6606. -/* confdefs.h. */
  6607. -_ACEOF
  6608. -cat confdefs.h >>conftest.$ac_ext
  6609. -cat >>conftest.$ac_ext <<_ACEOF
  6610. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6611. /* end confdefs.h. */
  6612. #include <pcap.h>
  6613. int
  6614. @@ -3956,58 +4193,33 @@
  6615. return 0;
  6616. }
  6617. _ACEOF
  6618. -rm -f conftest.$ac_objext conftest$ac_exeext
  6619. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6620. - (eval $ac_link) 2>conftest.er1
  6621. - ac_status=$?
  6622. - grep -v '^ *+' conftest.er1 >conftest.err
  6623. - rm -f conftest.er1
  6624. - cat conftest.err >&5
  6625. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6626. - (exit $ac_status); } &&
  6627. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6628. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6629. - (eval $ac_try) 2>&5
  6630. - ac_status=$?
  6631. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6632. - (exit $ac_status); }; } &&
  6633. - { ac_try='test -s conftest$ac_exeext'
  6634. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6635. - (eval $ac_try) 2>&5
  6636. - ac_status=$?
  6637. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6638. - (exit $ac_status); }; }; then
  6639. +if ac_fn_c_try_link "$LINENO"; then :
  6640. LIBPCAP_FOUND=1
  6641. else
  6642. - echo "$as_me: failed program was:" >&5
  6643. -sed 's/^/| /' conftest.$ac_ext >&5
  6644. -
  6645. -LIBPCAP_FOUND=0
  6646. + LIBPCAP_FOUND=0
  6647. fi
  6648. -rm -f conftest.err conftest.$ac_objext \
  6649. - conftest$ac_exeext conftest.$ac_ext
  6650. +rm -f core conftest.err conftest.$ac_objext \
  6651. + conftest$ac_exeext conftest.$ac_ext
  6652. LIBS=$TMP
  6653. if test $LIBPCAP_FOUND = 1 ; then
  6654. PCAPLIB="-lpcap"
  6655. else
  6656. - { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  6657. -echo "$as_me: error: libpcap not found" >&2;}
  6658. - { (exit 1); exit 1; }; }
  6659. + as_fn_error "libpcap not found" "$LINENO" 5
  6660. fi
  6661. fi
  6662. - echo "$as_me:$LINENO: result: yes" >&5
  6663. -echo "${ECHO_T}yes" >&6
  6664. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6665. +$as_echo "yes" >&6; }
  6666. -fi;
  6667. +fi
  6668. -# Check whether --enable-libglib or --disable-libglib was given.
  6669. -if test "${enable_libglib+set}" = set; then
  6670. - enableval="$enable_libglib"
  6671. - echo "$as_me:$LINENO: result: skipping glib2 support" >&5
  6672. -echo "${ECHO_T}skipping glib2 support" >&6
  6673. +# Check whether --enable-libglib was given.
  6674. +if test "${enable_libglib+set}" = set; then :
  6675. + enableval=$enable_libglib;
  6676. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipping glib2 support" >&5
  6677. +$as_echo "skipping glib2 support" >&6; }
  6678. else
  6679. @@ -4017,10 +4229,10 @@
  6680. if test -n "$ac_tool_prefix"; then
  6681. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  6682. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  6683. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  6684. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6685. -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  6686. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6687. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6688. +$as_echo_n "checking for $ac_word... " >&6; }
  6689. +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  6690. + $as_echo_n "(cached) " >&6
  6691. else
  6692. case $PKG_CONFIG in
  6693. [\\/]* | ?:[\\/]*)
  6694. @@ -4032,37 +4244,38 @@
  6695. do
  6696. IFS=$as_save_IFS
  6697. test -z "$as_dir" && as_dir=.
  6698. - for ac_exec_ext in '' $ac_executable_extensions; do
  6699. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6700. + for ac_exec_ext in '' $ac_executable_extensions; do
  6701. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6702. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6703. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6704. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6705. break 2
  6706. fi
  6707. done
  6708. -done
  6709. + done
  6710. +IFS=$as_save_IFS
  6711. ;;
  6712. esac
  6713. fi
  6714. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  6715. -
  6716. if test -n "$PKG_CONFIG"; then
  6717. - echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  6718. -echo "${ECHO_T}$PKG_CONFIG" >&6
  6719. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  6720. +$as_echo "$PKG_CONFIG" >&6; }
  6721. else
  6722. - echo "$as_me:$LINENO: result: no" >&5
  6723. -echo "${ECHO_T}no" >&6
  6724. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6725. +$as_echo "no" >&6; }
  6726. fi
  6727. +
  6728. fi
  6729. if test -z "$ac_cv_path_PKG_CONFIG"; then
  6730. ac_pt_PKG_CONFIG=$PKG_CONFIG
  6731. # Extract the first word of "pkg-config", so it can be a program name with args.
  6732. set dummy pkg-config; ac_word=$2
  6733. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  6734. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6735. -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  6736. - echo $ECHO_N "(cached) $ECHO_C" >&6
  6737. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6738. +$as_echo_n "checking for $ac_word... " >&6; }
  6739. +if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  6740. + $as_echo_n "(cached) " >&6
  6741. else
  6742. case $ac_pt_PKG_CONFIG in
  6743. [\\/]* | ?:[\\/]*)
  6744. @@ -4074,278 +4287,274 @@
  6745. do
  6746. IFS=$as_save_IFS
  6747. test -z "$as_dir" && as_dir=.
  6748. - for ac_exec_ext in '' $ac_executable_extensions; do
  6749. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6750. + for ac_exec_ext in '' $ac_executable_extensions; do
  6751. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6752. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6753. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6754. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6755. break 2
  6756. fi
  6757. done
  6758. -done
  6759. + done
  6760. +IFS=$as_save_IFS
  6761. ;;
  6762. esac
  6763. fi
  6764. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  6765. -
  6766. if test -n "$ac_pt_PKG_CONFIG"; then
  6767. - echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  6768. -echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
  6769. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  6770. +$as_echo "$ac_pt_PKG_CONFIG" >&6; }
  6771. else
  6772. - echo "$as_me:$LINENO: result: no" >&5
  6773. -echo "${ECHO_T}no" >&6
  6774. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6775. +$as_echo "no" >&6; }
  6776. fi
  6777. - PKG_CONFIG=$ac_pt_PKG_CONFIG
  6778. -else
  6779. + if test "x$ac_pt_PKG_CONFIG" = x; then
  6780. + PKG_CONFIG=""
  6781. + else
  6782. + case $cross_compiling:$ac_tool_warned in
  6783. +yes:)
  6784. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6785. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6786. +ac_tool_warned=yes ;;
  6787. +esac
  6788. + PKG_CONFIG=$ac_pt_PKG_CONFIG
  6789. + fi
  6790. +else
  6791. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  6792. fi
  6793. fi
  6794. if test -n "$PKG_CONFIG"; then
  6795. _pkg_min_version=0.9.0
  6796. - echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  6797. -echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
  6798. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  6799. +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  6800. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  6801. - echo "$as_me:$LINENO: result: yes" >&5
  6802. -echo "${ECHO_T}yes" >&6
  6803. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6804. +$as_echo "yes" >&6; }
  6805. else
  6806. - echo "$as_me:$LINENO: result: no" >&5
  6807. -echo "${ECHO_T}no" >&6
  6808. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6809. +$as_echo "no" >&6; }
  6810. PKG_CONFIG=""
  6811. fi
  6812. fi
  6813. pkg_failed=no
  6814. -echo "$as_me:$LINENO: checking for GLIB" >&5
  6815. -echo $ECHO_N "checking for GLIB... $ECHO_C" >&6
  6816. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
  6817. +$as_echo_n "checking for GLIB... " >&6; }
  6818. if test -n "$PKG_CONFIG"; then
  6819. + if test -n "$GLIB_CFLAGS"; then
  6820. + pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
  6821. + else
  6822. if test -n "$PKG_CONFIG" && \
  6823. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0\"") >&5
  6824. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0\""; } >&5
  6825. ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.0") 2>&5
  6826. ac_status=$?
  6827. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6828. - (exit $ac_status); }; then
  6829. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6830. + test $ac_status = 0; }; then
  6831. pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2.0" 2>/dev/null`
  6832. else
  6833. pkg_failed=yes
  6834. fi
  6835. + fi
  6836. else
  6837. pkg_failed=untried
  6838. fi
  6839. if test -n "$PKG_CONFIG"; then
  6840. + if test -n "$GLIB_LIBS"; then
  6841. + pkg_cv_GLIB_LIBS="$GLIB_LIBS"
  6842. + else
  6843. if test -n "$PKG_CONFIG" && \
  6844. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0\"") >&5
  6845. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0\""; } >&5
  6846. ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.0") 2>&5
  6847. ac_status=$?
  6848. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6849. - (exit $ac_status); }; then
  6850. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6851. + test $ac_status = 0; }; then
  6852. pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2.0" 2>/dev/null`
  6853. else
  6854. pkg_failed=yes
  6855. fi
  6856. + fi
  6857. else
  6858. pkg_failed=untried
  6859. fi
  6860. +
  6861. +
  6862. if test $pkg_failed = yes; then
  6863. - GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2.0"`
  6864. +
  6865. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6866. + _pkg_short_errors_supported=yes
  6867. +else
  6868. + _pkg_short_errors_supported=no
  6869. +fi
  6870. + if test $_pkg_short_errors_supported = yes; then
  6871. + GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.2.0"`
  6872. + else
  6873. + GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2.0"`
  6874. + fi
  6875. # Put the nasty error message in config.log where it belongs
  6876. - echo "$GLIB_PKG_ERRORS" 1>&5
  6877. + echo "$GLIB_PKG_ERRORS" >&5
  6878. - { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.2.0) were not met.
  6879. -Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6880. -installed software in a non-standard prefix.
  6881. + as_fn_error "Package requirements (glib-2.0 >= 2.2.0) were not met:
  6882. +
  6883. +$GLIB_PKG_ERRORS
  6884. -Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
  6885. -to avoid the need to call pkg-config. See the pkg-config man page for
  6886. -more details." >&5
  6887. -echo "$as_me: error: Package requirements (glib-2.0 >= 2.2.0) were not met.
  6888. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  6889. installed software in a non-standard prefix.
  6890. -Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
  6891. -to avoid the need to call pkg-config. See the pkg-config man page for
  6892. -more details." >&2;}
  6893. - { (exit 1); exit 1; }; }
  6894. +Alternatively, you may set the environment variables GLIB_CFLAGS
  6895. +and GLIB_LIBS to avoid the need to call pkg-config.
  6896. +See the pkg-config man page for more details.
  6897. +" "$LINENO" 5
  6898. elif test $pkg_failed = untried; then
  6899. - { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  6900. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6901. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6902. +as_fn_error "The pkg-config script could not be found or is too old. Make sure it
  6903. is in your PATH or set the PKG_CONFIG environment variable to the full
  6904. path to pkg-config.
  6905. -Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
  6906. -to avoid the need to call pkg-config. See the pkg-config man page for
  6907. -more details.
  6908. -
  6909. -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  6910. -See \`config.log' for more details." >&5
  6911. -echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  6912. -is in your PATH or set the PKG_CONFIG environment variable to the full
  6913. -path to pkg-config.
  6914. +Alternatively, you may set the environment variables GLIB_CFLAGS
  6915. +and GLIB_LIBS to avoid the need to call pkg-config.
  6916. +See the pkg-config man page for more details.
  6917. -Alternatively you may set the GLIB_CFLAGS and GLIB_LIBS environment variables
  6918. -to avoid the need to call pkg-config. See the pkg-config man page for
  6919. -more details.
  6920. -
  6921. -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  6922. -See \`config.log' for more details." >&2;}
  6923. - { (exit 1); exit 1; }; }
  6924. +To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  6925. +See \`config.log' for more details." "$LINENO" 5; }
  6926. else
  6927. GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
  6928. GLIB_LIBS=$pkg_cv_GLIB_LIBS
  6929. - echo "$as_me:$LINENO: result: yes" >&5
  6930. -echo "${ECHO_T}yes" >&6
  6931. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6932. +$as_echo "yes" >&6; }
  6933. pkg_failed=no
  6934. -echo "$as_me:$LINENO: checking for GTHREAD" >&5
  6935. -echo $ECHO_N "checking for GTHREAD... $ECHO_C" >&6
  6936. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
  6937. +$as_echo_n "checking for GTHREAD... " >&6; }
  6938. if test -n "$PKG_CONFIG"; then
  6939. + if test -n "$GTHREAD_CFLAGS"; then
  6940. + pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
  6941. + else
  6942. if test -n "$PKG_CONFIG" && \
  6943. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\"") >&5
  6944. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\""; } >&5
  6945. ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.2.0") 2>&5
  6946. ac_status=$?
  6947. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6948. - (exit $ac_status); }; then
  6949. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6950. + test $ac_status = 0; }; then
  6951. pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.2.0" 2>/dev/null`
  6952. else
  6953. pkg_failed=yes
  6954. fi
  6955. + fi
  6956. else
  6957. pkg_failed=untried
  6958. fi
  6959. if test -n "$PKG_CONFIG"; then
  6960. + if test -n "$GTHREAD_LIBS"; then
  6961. + pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
  6962. + else
  6963. if test -n "$PKG_CONFIG" && \
  6964. - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\"") >&5
  6965. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\""; } >&5
  6966. ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.2.0") 2>&5
  6967. ac_status=$?
  6968. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6969. - (exit $ac_status); }; then
  6970. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6971. + test $ac_status = 0; }; then
  6972. pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.2.0" 2>/dev/null`
  6973. else
  6974. pkg_failed=yes
  6975. fi
  6976. + fi
  6977. else
  6978. pkg_failed=untried
  6979. fi
  6980. +
  6981. +
  6982. if test $pkg_failed = yes; then
  6983. - GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0 >= 2.2.0"`
  6984. +
  6985. +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  6986. + _pkg_short_errors_supported=yes
  6987. +else
  6988. + _pkg_short_errors_supported=no
  6989. +fi
  6990. + if test $_pkg_short_errors_supported = yes; then
  6991. + GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gthread-2.0 >= 2.2.0"`
  6992. + else
  6993. + GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0 >= 2.2.0"`
  6994. + fi
  6995. # Put the nasty error message in config.log where it belongs
  6996. - echo "$GTHREAD_PKG_ERRORS" 1>&5
  6997. + echo "$GTHREAD_PKG_ERRORS" >&5
  6998. - { { echo "$as_me:$LINENO: error: Package requirements (gthread-2.0 >= 2.2.0) were not met.
  6999. -Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7000. -installed software in a non-standard prefix.
  7001. + as_fn_error "Package requirements (gthread-2.0 >= 2.2.0) were not met:
  7002. +
  7003. +$GTHREAD_PKG_ERRORS
  7004. -Alternatively you may set the GTHREAD_CFLAGS and GTHREAD_LIBS environment variables
  7005. -to avoid the need to call pkg-config. See the pkg-config man page for
  7006. -more details." >&5
  7007. -echo "$as_me: error: Package requirements (gthread-2.0 >= 2.2.0) were not met.
  7008. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7009. installed software in a non-standard prefix.
  7010. -Alternatively you may set the GTHREAD_CFLAGS and GTHREAD_LIBS environment variables
  7011. -to avoid the need to call pkg-config. See the pkg-config man page for
  7012. -more details." >&2;}
  7013. - { (exit 1); exit 1; }; }
  7014. +Alternatively, you may set the environment variables GTHREAD_CFLAGS
  7015. +and GTHREAD_LIBS to avoid the need to call pkg-config.
  7016. +See the pkg-config man page for more details.
  7017. +" "$LINENO" 5
  7018. elif test $pkg_failed = untried; then
  7019. - { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  7020. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7021. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7022. +as_fn_error "The pkg-config script could not be found or is too old. Make sure it
  7023. is in your PATH or set the PKG_CONFIG environment variable to the full
  7024. path to pkg-config.
  7025. -Alternatively you may set the GTHREAD_CFLAGS and GTHREAD_LIBS environment variables
  7026. -to avoid the need to call pkg-config. See the pkg-config man page for
  7027. -more details.
  7028. -
  7029. -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  7030. -See \`config.log' for more details." >&5
  7031. -echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  7032. -is in your PATH or set the PKG_CONFIG environment variable to the full
  7033. -path to pkg-config.
  7034. +Alternatively, you may set the environment variables GTHREAD_CFLAGS
  7035. +and GTHREAD_LIBS to avoid the need to call pkg-config.
  7036. +See the pkg-config man page for more details.
  7037. -Alternatively you may set the GTHREAD_CFLAGS and GTHREAD_LIBS environment variables
  7038. -to avoid the need to call pkg-config. See the pkg-config man page for
  7039. -more details.
  7040. -
  7041. -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  7042. -See \`config.log' for more details." >&2;}
  7043. - { (exit 1); exit 1; }; }
  7044. +To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  7045. +See \`config.log' for more details." "$LINENO" 5; }
  7046. else
  7047. GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
  7048. GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
  7049. - echo "$as_me:$LINENO: result: yes" >&5
  7050. -echo "${ECHO_T}yes" >&6
  7051. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7052. +$as_echo "yes" >&6; }
  7053. :
  7054. fi
  7055. -
  7056. -echo "$as_me:$LINENO: checking for g_thread_init in -lgthread-2.0" >&5
  7057. -echo $ECHO_N "checking for g_thread_init in -lgthread-2.0... $ECHO_C" >&6
  7058. -if test "${ac_cv_lib_gthread_2_0_g_thread_init+set}" = set; then
  7059. - echo $ECHO_N "(cached) $ECHO_C" >&6
  7060. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_thread_init in -lgthread-2.0" >&5
  7061. +$as_echo_n "checking for g_thread_init in -lgthread-2.0... " >&6; }
  7062. +if test "${ac_cv_lib_gthread_2_0_g_thread_init+set}" = set; then :
  7063. + $as_echo_n "(cached) " >&6
  7064. else
  7065. ac_check_lib_save_LIBS=$LIBS
  7066. LIBS="-lgthread-2.0 $GTHREAD_LIBS $LIBS"
  7067. -cat >conftest.$ac_ext <<_ACEOF
  7068. -/* confdefs.h. */
  7069. -_ACEOF
  7070. -cat confdefs.h >>conftest.$ac_ext
  7071. -cat >>conftest.$ac_ext <<_ACEOF
  7072. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7073. /* end confdefs.h. */
  7074. -/* Override any gcc2 internal prototype to avoid an error. */
  7075. +/* Override any GCC internal prototype to avoid an error.
  7076. + Use char because int might match the return type of a GCC
  7077. + builtin and then its argument prototype would still apply. */
  7078. #ifdef __cplusplus
  7079. extern "C"
  7080. #endif
  7081. -/* We use char because int might match the return type of a gcc2
  7082. - builtin and then its argument prototype would still apply. */
  7083. char g_thread_init ();
  7084. int
  7085. main ()
  7086. {
  7087. -g_thread_init ();
  7088. +return g_thread_init ();
  7089. ;
  7090. return 0;
  7091. }
  7092. _ACEOF
  7093. -rm -f conftest.$ac_objext conftest$ac_exeext
  7094. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7095. - (eval $ac_link) 2>conftest.er1
  7096. - ac_status=$?
  7097. - grep -v '^ *+' conftest.er1 >conftest.err
  7098. - rm -f conftest.er1
  7099. - cat conftest.err >&5
  7100. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7101. - (exit $ac_status); } &&
  7102. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7103. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7104. - (eval $ac_try) 2>&5
  7105. - ac_status=$?
  7106. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7107. - (exit $ac_status); }; } &&
  7108. - { ac_try='test -s conftest$ac_exeext'
  7109. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7110. - (eval $ac_try) 2>&5
  7111. - ac_status=$?
  7112. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7113. - (exit $ac_status); }; }; then
  7114. +if ac_fn_c_try_link "$LINENO"; then :
  7115. ac_cv_lib_gthread_2_0_g_thread_init=yes
  7116. else
  7117. - echo "$as_me: failed program was:" >&5
  7118. -sed 's/^/| /' conftest.$ac_ext >&5
  7119. -
  7120. -ac_cv_lib_gthread_2_0_g_thread_init=no
  7121. + ac_cv_lib_gthread_2_0_g_thread_init=no
  7122. fi
  7123. -rm -f conftest.err conftest.$ac_objext \
  7124. - conftest$ac_exeext conftest.$ac_ext
  7125. +rm -f core conftest.err conftest.$ac_objext \
  7126. + conftest$ac_exeext conftest.$ac_ext
  7127. LIBS=$ac_check_lib_save_LIBS
  7128. fi
  7129. -echo "$as_me:$LINENO: result: $ac_cv_lib_gthread_2_0_g_thread_init" >&5
  7130. -echo "${ECHO_T}$ac_cv_lib_gthread_2_0_g_thread_init" >&6
  7131. -if test $ac_cv_lib_gthread_2_0_g_thread_init = yes; then
  7132. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gthread_2_0_g_thread_init" >&5
  7133. +$as_echo "$ac_cv_lib_gthread_2_0_g_thread_init" >&6; }
  7134. +if test "x$ac_cv_lib_gthread_2_0_g_thread_init" = x""yes; then :
  7135. cat >>confdefs.h <<_ACEOF
  7136. #define HAVE_LIBGTHREAD_2_0 1
  7137. _ACEOF
  7138. @@ -4358,47 +4567,45 @@
  7139. fi
  7140. -fi;
  7141. +fi
  7142. +
  7143. -echo "$as_me:$LINENO: checking for libnet" >&5
  7144. -echo $ECHO_N "checking for libnet... $ECHO_C" >&6
  7145. -# Check whether --enable-libnet or --disable-libnet was given.
  7146. -if test "${enable_libnet+set}" = set; then
  7147. - enableval="$enable_libnet"
  7148. - case "$enableval" in
  7149. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnet" >&5
  7150. +$as_echo_n "checking for libnet... " >&6; }
  7151. +# Check whether --enable-libnet was given.
  7152. +if test "${enable_libnet+set}" = set; then :
  7153. + enableval=$enable_libnet; case "$enableval" in
  7154. yes)
  7155. - echo "$as_me:$LINENO: result: yes" >&5
  7156. -echo "${ECHO_T}yes" >&6
  7157. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7158. +$as_echo "yes" >&6; }
  7159. ;;
  7160. no)
  7161. - echo "$as_me:$LINENO: result: no" >&5
  7162. -echo "${ECHO_T}no" >&6
  7163. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7164. +$as_echo "no" >&6; }
  7165. LIBNET_VER=-1
  7166. ;;
  7167. *)
  7168. - { { echo "$as_me:$LINENO: error: no arguments expected for --disable-libnet" >&5
  7169. -echo "$as_me: error: no arguments expected for --disable-libnet" >&2;}
  7170. - { (exit 1); exit 1; }; }
  7171. + as_fn_error "no arguments expected for --disable-libnet" "$LINENO" 5
  7172. ;;
  7173. esac
  7174. -fi;
  7175. +fi
  7176. -# Check whether --with-libnet or --without-libnet was given.
  7177. -if test "${with_libnet+set}" = set; then
  7178. - withval="$with_libnet"
  7179. - case "$withval" in
  7180. +
  7181. +# Check whether --with-libnet was given.
  7182. +if test "${with_libnet+set}" = set; then :
  7183. + withval=$with_libnet; case "$withval" in
  7184. yes)
  7185. ;;
  7186. no)
  7187. LIBNET_VER=-1
  7188. - echo "$as_me:$LINENO: result: no" >&5
  7189. -echo "${ECHO_T}no" >&6
  7190. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7191. +$as_echo "no" >&6; }
  7192. ;;
  7193. *)
  7194. - echo "$as_me:$LINENO: result: $withval" >&5
  7195. -echo "${ECHO_T}$withval" >&6
  7196. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  7197. +$as_echo "$withval" >&6; }
  7198. if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a -a -f $withval/libnet-config ; then
  7199. owd=`pwd`
  7200. if cd $withval; then withval=`pwd`; cd $owd; fi
  7201. @@ -4411,16 +4618,14 @@
  7202. LNETLIB="-L$withval/src -lnet"
  7203. else
  7204. echo "A working combination of libnet.h, libnet.a and libnet-config not found in $withval; get libnet from www.packetfactory.net/projects/libnet and reinstall"
  7205. - { { echo "$as_me:$LINENO: error: libnet" >&5
  7206. -echo "$as_me: error: libnet" >&2;}
  7207. - { (exit 1); exit 1; }; }
  7208. + as_fn_error "libnet" "$LINENO" 5
  7209. fi
  7210. ;;
  7211. esac
  7212. else
  7213. if test "x"$LIBNET_VER = "x"-1 ; then
  7214. - echo "$as_me:$LINENO: result: skipping libnet" >&5
  7215. -echo "${ECHO_T}skipping libnet" >&6
  7216. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipping libnet" >&5
  7217. +$as_echo "skipping libnet" >&6; }
  7218. else
  7219. if test -f ${prefix}/include/libnet.h -a ${exec_prefix}/lib/libnet.a ; then
  7220. LNET_CFLAGS="-I${prefix}/include `${exec_prefix}/bin/libnet-config --defines 2>/dev/null`"
  7221. @@ -4431,18 +4636,15 @@
  7222. fi
  7223. fi
  7224. -fi;
  7225. +fi
  7226. +
  7227. if test "x"$LIBNET_VER != "x"-1 ; then
  7228. TMPC="$CFLAGS"
  7229. TMPL="$LIBS"
  7230. CFLAGS="$CFLAGS $LNET_CFLAGS"
  7231. LIBS="$LNETLIB $LIBS"
  7232. - cat >conftest.$ac_ext <<_ACEOF
  7233. -/* confdefs.h. */
  7234. -_ACEOF
  7235. -cat confdefs.h >>conftest.$ac_ext
  7236. -cat >>conftest.$ac_ext <<_ACEOF
  7237. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7238. /* end confdefs.h. */
  7239. #include <libnet.h>
  7240. int
  7241. @@ -4453,47 +4655,22 @@
  7242. return 0;
  7243. }
  7244. _ACEOF
  7245. -rm -f conftest.$ac_objext conftest$ac_exeext
  7246. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7247. - (eval $ac_link) 2>conftest.er1
  7248. - ac_status=$?
  7249. - grep -v '^ *+' conftest.er1 >conftest.err
  7250. - rm -f conftest.er1
  7251. - cat conftest.err >&5
  7252. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7253. - (exit $ac_status); } &&
  7254. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7255. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7256. - (eval $ac_try) 2>&5
  7257. - ac_status=$?
  7258. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7259. - (exit $ac_status); }; } &&
  7260. - { ac_try='test -s conftest$ac_exeext'
  7261. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7262. - (eval $ac_try) 2>&5
  7263. - ac_status=$?
  7264. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7265. - (exit $ac_status); }; }; then
  7266. +if ac_fn_c_try_link "$LINENO"; then :
  7267. LIBNET_FOUND=1
  7268. else
  7269. - echo "$as_me: failed program was:" >&5
  7270. -sed 's/^/| /' conftest.$ac_ext >&5
  7271. -
  7272. -LIBNET_FOUND=0
  7273. + LIBNET_FOUND=0
  7274. fi
  7275. -rm -f conftest.err conftest.$ac_objext \
  7276. - conftest$ac_exeext conftest.$ac_ext
  7277. +rm -f core conftest.err conftest.$ac_objext \
  7278. + conftest$ac_exeext conftest.$ac_ext
  7279. CFLAGS="$TMPC"
  7280. LIBS="$TMPL"
  7281. if test $LIBNET_FOUND = 1 ; then
  7282. LNETLIB="-lnet"
  7283. - echo "$as_me:$LINENO: result: yes" >&5
  7284. -echo "${ECHO_T}yes" >&6
  7285. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7286. +$as_echo "yes" >&6; }
  7287. else
  7288. echo "Working libnet not found; get it from www.packetfactory.net/projects/libnet and reinstall"
  7289. - { { echo "$as_me:$LINENO: error: libnet" >&5
  7290. -echo "$as_me: error: libnet" >&2;}
  7291. - { (exit 1); exit 1; }; }
  7292. + as_fn_error "libnet" "$LINENO" 5
  7293. fi
  7294. fi
  7295. @@ -4501,41 +4678,35 @@
  7296. BUILD_SHARED=
  7297. -echo "$as_me:$LINENO: checking whether to build shared library" >&5
  7298. -echo $ECHO_N "checking whether to build shared library... $ECHO_C" >&6
  7299. -# Check whether --enable-shared or --disable-shared was given.
  7300. -if test "${enable_shared+set}" = set; then
  7301. - enableval="$enable_shared"
  7302. - case "$enableval" in
  7303. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared library" >&5
  7304. +$as_echo_n "checking whether to build shared library... " >&6; }
  7305. +# Check whether --enable-shared was given.
  7306. +if test "${enable_shared+set}" = set; then :
  7307. + enableval=$enable_shared; case "$enableval" in
  7308. yes)
  7309. - echo "$as_me:$LINENO: result: yes" >&5
  7310. -echo "${ECHO_T}yes" >&6
  7311. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7312. +$as_echo "yes" >&6; }
  7313. BUILD_SHARED=shared
  7314. ;;
  7315. no)
  7316. - echo "$as_me:$LINENO: result: no" >&5
  7317. -echo "${ECHO_T}no" >&6
  7318. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7319. +$as_echo "no" >&6; }
  7320. ;;
  7321. *)
  7322. - { { echo "$as_me:$LINENO: error: no arguments expected for --enable-shared" >&5
  7323. -echo "$as_me: error: no arguments expected for --enable-shared" >&2;}
  7324. - { (exit 1); exit 1; }; }
  7325. + as_fn_error "no arguments expected for --enable-shared" "$LINENO" 5
  7326. ;;
  7327. esac
  7328. else
  7329. - echo "$as_me:$LINENO: result: no" >&5
  7330. -echo "${ECHO_T}no" >&6
  7331. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7332. +$as_echo "no" >&6; }
  7333. -fi;
  7334. +fi
  7335. -echo "$as_me:$LINENO: checking the name of struct icmp" >&5
  7336. -echo $ECHO_N "checking the name of struct icmp... $ECHO_C" >&6
  7337. -cat >conftest.$ac_ext <<_ACEOF
  7338. -/* confdefs.h. */
  7339. -_ACEOF
  7340. -cat confdefs.h >>conftest.$ac_ext
  7341. -cat >>conftest.$ac_ext <<_ACEOF
  7342. +
  7343. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of struct icmp" >&5
  7344. +$as_echo_n "checking the name of struct icmp... " >&6; }
  7345. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7346. /* end confdefs.h. */
  7347. #include <sys/types.h>
  7348. #include <netinet/in.h>
  7349. @@ -4549,48 +4720,21 @@
  7350. return 0;
  7351. }
  7352. _ACEOF
  7353. -rm -f conftest.$ac_objext
  7354. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7355. - (eval $ac_compile) 2>conftest.er1
  7356. - ac_status=$?
  7357. - grep -v '^ *+' conftest.er1 >conftest.err
  7358. - rm -f conftest.er1
  7359. - cat conftest.err >&5
  7360. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7361. - (exit $ac_status); } &&
  7362. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7363. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7364. - (eval $ac_try) 2>&5
  7365. - ac_status=$?
  7366. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7367. - (exit $ac_status); }; } &&
  7368. - { ac_try='test -s conftest.$ac_objext'
  7369. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7370. - (eval $ac_try) 2>&5
  7371. - ac_status=$?
  7372. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7373. - (exit $ac_status); }; }; then
  7374. +if ac_fn_c_try_compile "$LINENO"; then :
  7375. ICMPHEADER=1
  7376. else
  7377. - echo "$as_me: failed program was:" >&5
  7378. -sed 's/^/| /' conftest.$ac_ext >&5
  7379. -
  7380. -ICMPHEADER=0
  7381. + ICMPHEADER=0
  7382. fi
  7383. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7384. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7385. if test $ICMPHEADER = 1 ; then
  7386. - echo "$as_me:$LINENO: result: struct icmphdr" >&5
  7387. -echo "${ECHO_T}struct icmphdr" >&6 ; else echo "$as_me:$LINENO: result: struct icmp" >&5
  7388. -echo "${ECHO_T}struct icmp" >&6
  7389. -fi
  7390. -echo "$as_me:$LINENO: checking if tcp states are defined" >&5
  7391. -echo $ECHO_N "checking if tcp states are defined... $ECHO_C" >&6
  7392. -cat >conftest.$ac_ext <<_ACEOF
  7393. -/* confdefs.h. */
  7394. -_ACEOF
  7395. -cat confdefs.h >>conftest.$ac_ext
  7396. -cat >>conftest.$ac_ext <<_ACEOF
  7397. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct icmphdr" >&5
  7398. +$as_echo "struct icmphdr" >&6; } ; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct icmp" >&5
  7399. +$as_echo "struct icmp" >&6; }
  7400. +fi
  7401. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tcp states are defined" >&5
  7402. +$as_echo_n "checking if tcp states are defined... " >&6; }
  7403. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7404. /* end confdefs.h. */
  7405. #include <sys/types.h>
  7406. #include <netinet/in.h>
  7407. @@ -4603,49 +4747,22 @@
  7408. return 0;
  7409. }
  7410. _ACEOF
  7411. -rm -f conftest.$ac_objext
  7412. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7413. - (eval $ac_compile) 2>conftest.er1
  7414. - ac_status=$?
  7415. - grep -v '^ *+' conftest.er1 >conftest.err
  7416. - rm -f conftest.er1
  7417. - cat conftest.err >&5
  7418. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7419. - (exit $ac_status); } &&
  7420. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7421. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7422. - (eval $ac_try) 2>&5
  7423. - ac_status=$?
  7424. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7425. - (exit $ac_status); }; } &&
  7426. - { ac_try='test -s conftest.$ac_objext'
  7427. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7428. - (eval $ac_try) 2>&5
  7429. - ac_status=$?
  7430. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7431. - (exit $ac_status); }; }; then
  7432. +if ac_fn_c_try_compile "$LINENO"; then :
  7433. TCPSTATES=1
  7434. else
  7435. - echo "$as_me: failed program was:" >&5
  7436. -sed 's/^/| /' conftest.$ac_ext >&5
  7437. -
  7438. -TCPSTATES=0
  7439. + TCPSTATES=0
  7440. fi
  7441. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7442. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7443. if test $TCPSTATES = 1 ; then
  7444. - echo "$as_me:$LINENO: result: yes" >&5
  7445. -echo "${ECHO_T}yes" >&6 ; else echo "$as_me:$LINENO: result: no" >&5
  7446. -echo "${ECHO_T}no" >&6
  7447. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7448. +$as_echo "yes" >&6; } ; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7449. +$as_echo "no" >&6; }
  7450. fi
  7451. -echo "$as_me:$LINENO: checking for bsd-ish struct udphdr" >&5
  7452. -echo $ECHO_N "checking for bsd-ish struct udphdr... $ECHO_C" >&6
  7453. -cat >conftest.$ac_ext <<_ACEOF
  7454. -/* confdefs.h. */
  7455. -_ACEOF
  7456. -cat confdefs.h >>conftest.$ac_ext
  7457. -cat >>conftest.$ac_ext <<_ACEOF
  7458. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd-ish struct udphdr" >&5
  7459. +$as_echo_n "checking for bsd-ish struct udphdr... " >&6; }
  7460. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7461. /* end confdefs.h. */
  7462. #include <sys/types.h>
  7463. #include <netinet/in.h>
  7464. @@ -4658,51 +4775,24 @@
  7465. return 0;
  7466. }
  7467. _ACEOF
  7468. -rm -f conftest.$ac_objext
  7469. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7470. - (eval $ac_compile) 2>conftest.er1
  7471. - ac_status=$?
  7472. - grep -v '^ *+' conftest.er1 >conftest.err
  7473. - rm -f conftest.er1
  7474. - cat conftest.err >&5
  7475. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7476. - (exit $ac_status); } &&
  7477. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7478. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7479. - (eval $ac_try) 2>&5
  7480. - ac_status=$?
  7481. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7482. - (exit $ac_status); }; } &&
  7483. - { ac_try='test -s conftest.$ac_objext'
  7484. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7485. - (eval $ac_try) 2>&5
  7486. - ac_status=$?
  7487. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7488. - (exit $ac_status); }; }; then
  7489. +if ac_fn_c_try_compile "$LINENO"; then :
  7490. HAVE_BSD_UDPHDR=1
  7491. else
  7492. - echo "$as_me: failed program was:" >&5
  7493. -sed 's/^/| /' conftest.$ac_ext >&5
  7494. -
  7495. -HAVE_BSD_UDPHDR=0
  7496. + HAVE_BSD_UDPHDR=0
  7497. fi
  7498. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7499. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7500. if test $HAVE_BSD_UDPHDR = 1 ; then
  7501. - echo "$as_me:$LINENO: result: yes" >&5
  7502. -echo "${ECHO_T}yes" >&6 ; else echo "$as_me:$LINENO: result: no" >&5
  7503. -echo "${ECHO_T}no" >&6
  7504. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7505. +$as_echo "yes" >&6; } ; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7506. +$as_echo "no" >&6; }
  7507. fi
  7508. if test "x"$LIBNET_VER != "x"-1 ; then
  7509. TMP=$CFLAGS
  7510. CFLAGS="$CFLAGS $LNET_CFLAGS"
  7511. - echo "$as_me:$LINENO: checking libnet version" >&5
  7512. -echo $ECHO_N "checking libnet version... $ECHO_C" >&6
  7513. - cat >conftest.$ac_ext <<_ACEOF
  7514. -/* confdefs.h. */
  7515. -_ACEOF
  7516. -cat confdefs.h >>conftest.$ac_ext
  7517. -cat >>conftest.$ac_ext <<_ACEOF
  7518. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking libnet version" >&5
  7519. +$as_echo_n "checking libnet version... " >&6; }
  7520. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7521. /* end confdefs.h. */
  7522. #include <libnet.h>
  7523. int
  7524. @@ -4713,44 +4803,22 @@
  7525. return 0;
  7526. }
  7527. _ACEOF
  7528. -rm -f conftest.$ac_objext
  7529. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7530. - (eval $ac_compile) 2>conftest.er1
  7531. - ac_status=$?
  7532. - grep -v '^ *+' conftest.er1 >conftest.err
  7533. - rm -f conftest.er1
  7534. - cat conftest.err >&5
  7535. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7536. - (exit $ac_status); } &&
  7537. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7538. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7539. - (eval $ac_try) 2>&5
  7540. - ac_status=$?
  7541. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7542. - (exit $ac_status); }; } &&
  7543. - { ac_try='test -s conftest.$ac_objext'
  7544. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7545. - (eval $ac_try) 2>&5
  7546. - ac_status=$?
  7547. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7548. - (exit $ac_status); }; }; then
  7549. +if ac_fn_c_try_compile "$LINENO"; then :
  7550. LIBNET_VER=1
  7551. else
  7552. - echo "$as_me: failed program was:" >&5
  7553. -sed 's/^/| /' conftest.$ac_ext >&5
  7554. -
  7555. -LIBNET_VER=0
  7556. + LIBNET_VER=0
  7557. fi
  7558. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7559. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7560. CFLAGS=$TMP
  7561. if test $LIBNET_VER = 1 ; then
  7562. - echo "$as_me:$LINENO: result: looks new" >&5
  7563. -echo "${ECHO_T}looks new" >&6 ; else echo "$as_me:$LINENO: result: looks old" >&5
  7564. -echo "${ECHO_T}looks old" >&6
  7565. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: looks new" >&5
  7566. +$as_echo "looks new" >&6; } ; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: looks old" >&5
  7567. +$as_echo "looks old" >&6; }
  7568. fi
  7569. fi
  7570. - ac_config_files="$ac_config_files Makefile src/Makefile samples/Makefile"
  7571. +ac_config_files="$ac_config_files Makefile src/Makefile samples/Makefile"
  7572. +
  7573. cat >confcache <<\_ACEOF
  7574. # This file is a shell script that caches the results of configure
  7575. # tests run on this system so they can be shared between configure
  7576. @@ -4769,39 +4837,59 @@
  7577. # The following way of writing the cache mishandles newlines in values,
  7578. # but we know of no workaround that is simple, portable, and efficient.
  7579. -# So, don't put newlines in cache variables' values.
  7580. +# So, we kill variables containing newlines.
  7581. # Ultrix sh set writes to stderr and can't be redirected directly,
  7582. # and sets the high bit in the cache file unless we assign to the vars.
  7583. -{
  7584. +(
  7585. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7586. + eval ac_val=\$$ac_var
  7587. + case $ac_val in #(
  7588. + *${as_nl}*)
  7589. + case $ac_var in #(
  7590. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7591. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7592. + esac
  7593. + case $ac_var in #(
  7594. + _ | IFS | as_nl) ;; #(
  7595. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7596. + *) { eval $ac_var=; unset $ac_var;} ;;
  7597. + esac ;;
  7598. + esac
  7599. + done
  7600. +
  7601. (set) 2>&1 |
  7602. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7603. - *ac_space=\ *)
  7604. - # `set' does not quote correctly, so add quotes (double-quote
  7605. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  7606. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7607. + *${as_nl}ac_space=\ *)
  7608. + # `set' does not quote correctly, so add quotes: double-quote
  7609. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  7610. sed -n \
  7611. "s/'/'\\\\''/g;
  7612. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7613. - ;;
  7614. + ;; #(
  7615. *)
  7616. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7617. - sed -n \
  7618. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7619. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7620. ;;
  7621. - esac;
  7622. -} |
  7623. + esac |
  7624. + sort
  7625. +) |
  7626. sed '
  7627. + /^ac_cv_env_/b end
  7628. t clear
  7629. - : clear
  7630. + :clear
  7631. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7632. t end
  7633. - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7634. - : end' >>confcache
  7635. -if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7636. - if test -w $cache_file; then
  7637. - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  7638. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7639. + :end' >>confcache
  7640. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7641. + if test -w "$cache_file"; then
  7642. + test "x$cache_file" != "x/dev/null" &&
  7643. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7644. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  7645. cat confcache >$cache_file
  7646. else
  7647. - echo "not updating unwritable cache $cache_file"
  7648. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7649. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7650. fi
  7651. fi
  7652. rm -f confcache
  7653. @@ -4810,32 +4898,18 @@
  7654. # Let make expand exec_prefix.
  7655. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7656. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  7657. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  7658. -# trailing colons and then remove the whole line if VPATH becomes empty
  7659. -# (actually we leave an empty line to preserve line numbers).
  7660. -if test "x$srcdir" = x.; then
  7661. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  7662. -s/:*\$(srcdir):*/:/;
  7663. -s/:*\${srcdir}:*/:/;
  7664. -s/:*@srcdir@:*/:/;
  7665. -s/^\([^=]*=[ ]*\):*/\1/;
  7666. -s/:*$//;
  7667. -s/^[^=]*=[ ]*$//;
  7668. -}'
  7669. -fi
  7670. -
  7671. DEFS=-DHAVE_CONFIG_H
  7672. ac_libobjs=
  7673. ac_ltlibobjs=
  7674. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7675. # 1. Remove the extension, and $U if already installed.
  7676. - ac_i=`echo "$ac_i" |
  7677. - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  7678. - # 2. Add them.
  7679. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  7680. - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  7681. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7682. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7683. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7684. + # will be set to the directory where LIBOBJS objects are built.
  7685. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7686. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7687. done
  7688. LIBOBJS=$ac_libobjs
  7689. @@ -4843,12 +4917,15 @@
  7690. +
  7691. : ${CONFIG_STATUS=./config.status}
  7692. +ac_write_fail=0
  7693. ac_clean_files_save=$ac_clean_files
  7694. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7695. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  7696. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7697. -cat >$CONFIG_STATUS <<_ACEOF
  7698. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7699. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7700. +as_write_fail=0
  7701. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7702. #! $SHELL
  7703. # Generated by $as_me.
  7704. # Run this file to recreate the current configuration.
  7705. @@ -4858,81 +4935,252 @@
  7706. debug=false
  7707. ac_cs_recheck=false
  7708. ac_cs_silent=false
  7709. -SHELL=\${CONFIG_SHELL-$SHELL}
  7710. -_ACEOF
  7711. -cat >>$CONFIG_STATUS <<\_ACEOF
  7712. -## --------------------- ##
  7713. -## M4sh Initialization. ##
  7714. -## --------------------- ##
  7715. +SHELL=\${CONFIG_SHELL-$SHELL}
  7716. +export SHELL
  7717. +_ASEOF
  7718. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7719. +## -------------------- ##
  7720. +## M4sh Initialization. ##
  7721. +## -------------------- ##
  7722. -# Be Bourne compatible
  7723. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  7724. +# Be more Bourne compatible
  7725. +DUALCASE=1; export DUALCASE # for MKS sh
  7726. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7727. emulate sh
  7728. NULLCMD=:
  7729. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  7730. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7731. # is contrary to our usage. Disable this feature.
  7732. alias -g '${1+"$@"}'='"$@"'
  7733. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  7734. - set -o posix
  7735. + setopt NO_GLOB_SUBST
  7736. +else
  7737. + case `(set -o) 2>/dev/null` in #(
  7738. + *posix*) :
  7739. + set -o posix ;; #(
  7740. + *) :
  7741. + ;;
  7742. +esac
  7743. fi
  7744. -DUALCASE=1; export DUALCASE # for MKS sh
  7745. -# Support unset when possible.
  7746. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7747. - as_unset=unset
  7748. -else
  7749. - as_unset=false
  7750. +
  7751. +as_nl='
  7752. +'
  7753. +export as_nl
  7754. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  7755. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7756. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7757. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7758. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  7759. +# but without wasting forks for bash or zsh.
  7760. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  7761. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7762. + as_echo='print -r --'
  7763. + as_echo_n='print -rn --'
  7764. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7765. + as_echo='printf %s\n'
  7766. + as_echo_n='printf %s'
  7767. +else
  7768. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7769. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7770. + as_echo_n='/usr/ucb/echo -n'
  7771. + else
  7772. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7773. + as_echo_n_body='eval
  7774. + arg=$1;
  7775. + case $arg in #(
  7776. + *"$as_nl"*)
  7777. + expr "X$arg" : "X\\(.*\\)$as_nl";
  7778. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7779. + esac;
  7780. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7781. + '
  7782. + export as_echo_n_body
  7783. + as_echo_n='sh -c $as_echo_n_body as_echo'
  7784. + fi
  7785. + export as_echo_body
  7786. + as_echo='sh -c $as_echo_body as_echo'
  7787. fi
  7788. +# The user is always right.
  7789. +if test "${PATH_SEPARATOR+set}" != set; then
  7790. + PATH_SEPARATOR=:
  7791. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7792. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7793. + PATH_SEPARATOR=';'
  7794. + }
  7795. +fi
  7796. -# Work around bugs in pre-3.0 UWIN ksh.
  7797. -$as_unset ENV MAIL MAILPATH
  7798. +
  7799. +# IFS
  7800. +# We need space, tab and new line, in precisely that order. Quoting is
  7801. +# there to prevent editors from complaining about space-tab.
  7802. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7803. +# splitting by setting IFS to empty value.)
  7804. +IFS=" "" $as_nl"
  7805. +
  7806. +# Find who we are. Look in the path if we contain no directory separator.
  7807. +case $0 in #((
  7808. + *[\\/]* ) as_myself=$0 ;;
  7809. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7810. +for as_dir in $PATH
  7811. +do
  7812. + IFS=$as_save_IFS
  7813. + test -z "$as_dir" && as_dir=.
  7814. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7815. + done
  7816. +IFS=$as_save_IFS
  7817. +
  7818. + ;;
  7819. +esac
  7820. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  7821. +# in which case we are not to be found in the path.
  7822. +if test "x$as_myself" = x; then
  7823. + as_myself=$0
  7824. +fi
  7825. +if test ! -f "$as_myself"; then
  7826. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7827. + exit 1
  7828. +fi
  7829. +
  7830. +# Unset variables that we do not need and which cause bugs (e.g. in
  7831. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7832. +# suppresses any "Segmentation fault" message there. '((' could
  7833. +# trigger a bug in pdksh 5.2.14.
  7834. +for as_var in BASH_ENV ENV MAIL MAILPATH
  7835. +do eval test x\${$as_var+set} = xset \
  7836. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7837. +done
  7838. PS1='$ '
  7839. PS2='> '
  7840. PS4='+ '
  7841. # NLS nuisances.
  7842. -for as_var in \
  7843. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  7844. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  7845. - LC_TELEPHONE LC_TIME
  7846. -do
  7847. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  7848. - eval $as_var=C; export $as_var
  7849. - else
  7850. - $as_unset $as_var
  7851. - fi
  7852. -done
  7853. +LC_ALL=C
  7854. +export LC_ALL
  7855. +LANGUAGE=C
  7856. +export LANGUAGE
  7857. -# Required to use basename.
  7858. -if expr a : '\(a\)' >/dev/null 2>&1; then
  7859. +# CDPATH.
  7860. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7861. +
  7862. +
  7863. +# as_fn_error ERROR [LINENO LOG_FD]
  7864. +# ---------------------------------
  7865. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7866. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7867. +# script with status $?, using 1 if that was 0.
  7868. +as_fn_error ()
  7869. +{
  7870. + as_status=$?; test $as_status -eq 0 && as_status=1
  7871. + if test "$3"; then
  7872. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7873. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  7874. + fi
  7875. + $as_echo "$as_me: error: $1" >&2
  7876. + as_fn_exit $as_status
  7877. +} # as_fn_error
  7878. +
  7879. +
  7880. +# as_fn_set_status STATUS
  7881. +# -----------------------
  7882. +# Set $? to STATUS, without forking.
  7883. +as_fn_set_status ()
  7884. +{
  7885. + return $1
  7886. +} # as_fn_set_status
  7887. +
  7888. +# as_fn_exit STATUS
  7889. +# -----------------
  7890. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7891. +as_fn_exit ()
  7892. +{
  7893. + set +e
  7894. + as_fn_set_status $1
  7895. + exit $1
  7896. +} # as_fn_exit
  7897. +
  7898. +# as_fn_unset VAR
  7899. +# ---------------
  7900. +# Portably unset VAR.
  7901. +as_fn_unset ()
  7902. +{
  7903. + { eval $1=; unset $1;}
  7904. +}
  7905. +as_unset=as_fn_unset
  7906. +# as_fn_append VAR VALUE
  7907. +# ----------------------
  7908. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  7909. +# advantage of any shell optimizations that allow amortized linear growth over
  7910. +# repeated appends, instead of the typical quadratic growth present in naive
  7911. +# implementations.
  7912. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7913. + eval 'as_fn_append ()
  7914. + {
  7915. + eval $1+=\$2
  7916. + }'
  7917. +else
  7918. + as_fn_append ()
  7919. + {
  7920. + eval $1=\$$1\$2
  7921. + }
  7922. +fi # as_fn_append
  7923. +
  7924. +# as_fn_arith ARG...
  7925. +# ------------------
  7926. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  7927. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  7928. +# must be portable across $(()) and expr.
  7929. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7930. + eval 'as_fn_arith ()
  7931. + {
  7932. + as_val=$(( $* ))
  7933. + }'
  7934. +else
  7935. + as_fn_arith ()
  7936. + {
  7937. + as_val=`expr "$@" || test $? -eq 1`
  7938. + }
  7939. +fi # as_fn_arith
  7940. +
  7941. +
  7942. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  7943. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7944. as_expr=expr
  7945. else
  7946. as_expr=false
  7947. fi
  7948. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  7949. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7950. as_basename=basename
  7951. else
  7952. as_basename=false
  7953. fi
  7954. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7955. + as_dirname=dirname
  7956. +else
  7957. + as_dirname=false
  7958. +fi
  7959. -# Name of the executable.
  7960. -as_me=`$as_basename "$0" ||
  7961. +as_me=`$as_basename -- "$0" ||
  7962. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7963. X"$0" : 'X\(//\)$' \| \
  7964. - X"$0" : 'X\(/\)$' \| \
  7965. - . : '\(.\)' 2>/dev/null ||
  7966. -echo X/"$0" |
  7967. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  7968. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  7969. - /^X\/\(\/\).*/{ s//\1/; q; }
  7970. - s/.*/./; q'`
  7971. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7972. +$as_echo X/"$0" |
  7973. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  7974. + s//\1/
  7975. + q
  7976. + }
  7977. + /^X\/\(\/\/\)$/{
  7978. + s//\1/
  7979. + q
  7980. + }
  7981. + /^X\/\(\/\).*/{
  7982. + s//\1/
  7983. + q
  7984. + }
  7985. + s/.*/./; q'`
  7986. -
  7987. -# PATH needs CR, and LINENO needs CR and PATH.
  7988. # Avoid depending upon Character Ranges.
  7989. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7990. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7991. @@ -4940,148 +5188,123 @@
  7992. as_cr_digits='0123456789'
  7993. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7994. -# The user is always right.
  7995. -if test "${PATH_SEPARATOR+set}" != set; then
  7996. - echo "#! /bin/sh" >conf$$.sh
  7997. - echo "exit 0" >>conf$$.sh
  7998. - chmod +x conf$$.sh
  7999. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8000. - PATH_SEPARATOR=';'
  8001. - else
  8002. - PATH_SEPARATOR=:
  8003. - fi
  8004. - rm -f conf$$.sh
  8005. -fi
  8006. -
  8007. -
  8008. - as_lineno_1=$LINENO
  8009. - as_lineno_2=$LINENO
  8010. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8011. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  8012. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  8013. - # Find who we are. Look in the path if we contain no path at all
  8014. - # relative or not.
  8015. - case $0 in
  8016. - *[\\/]* ) as_myself=$0 ;;
  8017. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8018. -for as_dir in $PATH
  8019. -do
  8020. - IFS=$as_save_IFS
  8021. - test -z "$as_dir" && as_dir=.
  8022. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8023. -done
  8024. -
  8025. - ;;
  8026. - esac
  8027. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  8028. - # in which case we are not to be found in the path.
  8029. - if test "x$as_myself" = x; then
  8030. - as_myself=$0
  8031. - fi
  8032. - if test ! -f "$as_myself"; then
  8033. - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8034. -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8035. - { (exit 1); exit 1; }; }
  8036. - fi
  8037. - case $CONFIG_SHELL in
  8038. - '')
  8039. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8040. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8041. -do
  8042. - IFS=$as_save_IFS
  8043. - test -z "$as_dir" && as_dir=.
  8044. - for as_base in sh bash ksh sh5; do
  8045. - case $as_dir in
  8046. - /*)
  8047. - if ("$as_dir/$as_base" -c '
  8048. - as_lineno_1=$LINENO
  8049. - as_lineno_2=$LINENO
  8050. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8051. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  8052. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8053. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8054. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8055. - CONFIG_SHELL=$as_dir/$as_base
  8056. - export CONFIG_SHELL
  8057. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8058. - fi;;
  8059. - esac
  8060. - done
  8061. -done
  8062. -;;
  8063. - esac
  8064. -
  8065. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8066. - # uniformly replaced by the line number. The first 'sed' inserts a
  8067. - # line-number line before each line; the second 'sed' does the real
  8068. - # work. The second script uses 'N' to pair each line-number line
  8069. - # with the numbered line, and appends trailing '-' during
  8070. - # substitution so that $LINENO is not a special case at line end.
  8071. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8072. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8073. - sed '=' <$as_myself |
  8074. - sed '
  8075. - N
  8076. - s,$,-,
  8077. - : loop
  8078. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8079. - t loop
  8080. - s,-$,,
  8081. - s,^['$as_cr_digits']*\n,,
  8082. - ' >$as_me.lineno &&
  8083. - chmod +x $as_me.lineno ||
  8084. - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8085. -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8086. - { (exit 1); exit 1; }; }
  8087. -
  8088. - # Don't try to exec as it changes $[0], causing all sort of problems
  8089. - # (the dirname of $[0] is not the place where we might find the
  8090. - # original and so on. Autoconf is especially sensible to this).
  8091. - . ./$as_me.lineno
  8092. - # Exit status is that of the last command.
  8093. - exit
  8094. -}
  8095. -
  8096. -
  8097. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8098. - *c*,-n*) ECHO_N= ECHO_C='
  8099. -' ECHO_T=' ' ;;
  8100. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8101. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8102. +ECHO_C= ECHO_N= ECHO_T=
  8103. +case `echo -n x` in #(((((
  8104. +-n*)
  8105. + case `echo 'xy\c'` in
  8106. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8107. + xy) ECHO_C='\c';;
  8108. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8109. + ECHO_T=' ';;
  8110. + esac;;
  8111. +*)
  8112. + ECHO_N='-n';;
  8113. esac
  8114. -if expr a : '\(a\)' >/dev/null 2>&1; then
  8115. - as_expr=expr
  8116. +rm -f conf$$ conf$$.exe conf$$.file
  8117. +if test -d conf$$.dir; then
  8118. + rm -f conf$$.dir/conf$$.file
  8119. else
  8120. - as_expr=false
  8121. + rm -f conf$$.dir
  8122. + mkdir conf$$.dir 2>/dev/null
  8123. fi
  8124. -
  8125. -rm -f conf$$ conf$$.exe conf$$.file
  8126. -echo >conf$$.file
  8127. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  8128. - # We could just check for DJGPP; but this test a) works b) is more generic
  8129. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8130. - if test -f conf$$.exe; then
  8131. - # Don't use ln at all; we don't have any links
  8132. - as_ln_s='cp -p'
  8133. - else
  8134. +if (echo >conf$$.file) 2>/dev/null; then
  8135. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  8136. as_ln_s='ln -s'
  8137. + # ... but there are two gotchas:
  8138. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8139. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8140. + # In both cases, we have to default to `cp -p'.
  8141. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8142. + as_ln_s='cp -p'
  8143. + elif ln conf$$.file conf$$ 2>/dev/null; then
  8144. + as_ln_s=ln
  8145. + else
  8146. + as_ln_s='cp -p'
  8147. fi
  8148. -elif ln conf$$.file conf$$ 2>/dev/null; then
  8149. - as_ln_s=ln
  8150. else
  8151. as_ln_s='cp -p'
  8152. fi
  8153. -rm -f conf$$ conf$$.exe conf$$.file
  8154. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8155. +rmdir conf$$.dir 2>/dev/null
  8156. +
  8157. +
  8158. +# as_fn_mkdir_p
  8159. +# -------------
  8160. +# Create "$as_dir" as a directory, including parents if necessary.
  8161. +as_fn_mkdir_p ()
  8162. +{
  8163. +
  8164. + case $as_dir in #(
  8165. + -*) as_dir=./$as_dir;;
  8166. + esac
  8167. + test -d "$as_dir" || eval $as_mkdir_p || {
  8168. + as_dirs=
  8169. + while :; do
  8170. + case $as_dir in #(
  8171. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8172. + *) as_qdir=$as_dir;;
  8173. + esac
  8174. + as_dirs="'$as_qdir' $as_dirs"
  8175. + as_dir=`$as_dirname -- "$as_dir" ||
  8176. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8177. + X"$as_dir" : 'X\(//\)[^/]' \| \
  8178. + X"$as_dir" : 'X\(//\)$' \| \
  8179. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8180. +$as_echo X"$as_dir" |
  8181. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8182. + s//\1/
  8183. + q
  8184. + }
  8185. + /^X\(\/\/\)[^/].*/{
  8186. + s//\1/
  8187. + q
  8188. + }
  8189. + /^X\(\/\/\)$/{
  8190. + s//\1/
  8191. + q
  8192. + }
  8193. + /^X\(\/\).*/{
  8194. + s//\1/
  8195. + q
  8196. + }
  8197. + s/.*/./; q'`
  8198. + test -d "$as_dir" && break
  8199. + done
  8200. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  8201. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  8202. +
  8203. +} # as_fn_mkdir_p
  8204. if mkdir -p . 2>/dev/null; then
  8205. - as_mkdir_p=:
  8206. + as_mkdir_p='mkdir -p "$as_dir"'
  8207. else
  8208. test -d ./-p && rmdir ./-p
  8209. as_mkdir_p=false
  8210. fi
  8211. -as_executable_p="test -f"
  8212. +if test -x / >/dev/null 2>&1; then
  8213. + as_test_x='test -x'
  8214. +else
  8215. + if ls -dL / >/dev/null 2>&1; then
  8216. + as_ls_L_option=L
  8217. + else
  8218. + as_ls_L_option=
  8219. + fi
  8220. + as_test_x='
  8221. + eval sh -c '\''
  8222. + if test -d "$1"; then
  8223. + test -d "$1/.";
  8224. + else
  8225. + case $1 in #(
  8226. + -*)set "./$1";;
  8227. + esac;
  8228. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  8229. + ???[sx]*):;;*)false;;esac;fi
  8230. + '\'' sh
  8231. + '
  8232. +fi
  8233. +as_executable_p=$as_test_x
  8234. # Sed expression to map a string onto a valid CPP name.
  8235. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8236. @@ -5090,31 +5313,20 @@
  8237. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8238. -# IFS
  8239. -# We need space, tab and new line, in precisely that order.
  8240. -as_nl='
  8241. -'
  8242. -IFS=" $as_nl"
  8243. -
  8244. -# CDPATH.
  8245. -$as_unset CDPATH
  8246. -
  8247. exec 6>&1
  8248. +## ----------------------------------- ##
  8249. +## Main body of $CONFIG_STATUS script. ##
  8250. +## ----------------------------------- ##
  8251. +_ASEOF
  8252. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8253. -# Open the log real soon, to keep \$[0] and so on meaningful, and to
  8254. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8255. +# Save the log message, to keep $0 and so on meaningful, and to
  8256. # report actual input values of CONFIG_FILES etc. instead of their
  8257. -# values after options handling. Logging --version etc. is OK.
  8258. -exec 5>>config.log
  8259. -{
  8260. - echo
  8261. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8262. -## Running $as_me. ##
  8263. -_ASBOX
  8264. -} >&5
  8265. -cat >&5 <<_CSEOF
  8266. -
  8267. +# values after options handling.
  8268. +ac_log="
  8269. This file was extended by $as_me, which was
  8270. -generated by GNU Autoconf 2.59. Invocation command line was
  8271. +generated by GNU Autoconf 2.65. Invocation command line was
  8272. CONFIG_FILES = $CONFIG_FILES
  8273. CONFIG_HEADERS = $CONFIG_HEADERS
  8274. @@ -5122,45 +5334,46 @@
  8275. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8276. $ $0 $@
  8277. -_CSEOF
  8278. -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8279. -echo >&5
  8280. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8281. +"
  8282. +
  8283. _ACEOF
  8284. -# Files that config.status was made for.
  8285. -if test -n "$ac_config_files"; then
  8286. - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8287. -fi
  8288. +case $ac_config_files in *"
  8289. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  8290. +esac
  8291. -if test -n "$ac_config_headers"; then
  8292. - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8293. -fi
  8294. +case $ac_config_headers in *"
  8295. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8296. +esac
  8297. -if test -n "$ac_config_links"; then
  8298. - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8299. -fi
  8300. -if test -n "$ac_config_commands"; then
  8301. - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8302. -fi
  8303. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8304. +# Files that config.status was made for.
  8305. +config_files="$ac_config_files"
  8306. +config_headers="$ac_config_headers"
  8307. -cat >>$CONFIG_STATUS <<\_ACEOF
  8308. +_ACEOF
  8309. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8310. ac_cs_usage="\
  8311. -\`$as_me' instantiates files from templates according to the
  8312. -current configuration.
  8313. +\`$as_me' instantiates files and other configuration actions
  8314. +from templates according to the current configuration. Unless the files
  8315. +and actions are specified as TAGs, all are instantiated by default.
  8316. -Usage: $0 [OPTIONS] [FILE]...
  8317. +Usage: $0 [OPTION]... [TAG]...
  8318. -h, --help print this help, then exit
  8319. - -V, --version print version number, then exit
  8320. - -q, --quiet do not print progress messages
  8321. + -V, --version print version number and configuration settings, then exit
  8322. + --config print configuration, then exit
  8323. + -q, --quiet, --silent
  8324. + do not print progress messages
  8325. -d, --debug don't remove temporary files
  8326. --recheck update $as_me by reconfiguring in the same conditions
  8327. - --file=FILE[:TEMPLATE]
  8328. - instantiate the configuration file FILE
  8329. - --header=FILE[:TEMPLATE]
  8330. - instantiate the configuration header FILE
  8331. + --file=FILE[:TEMPLATE]
  8332. + instantiate the configuration file FILE
  8333. + --header=FILE[:TEMPLATE]
  8334. + instantiate the configuration header FILE
  8335. Configuration files:
  8336. $config_files
  8337. @@ -5168,84 +5381,84 @@
  8338. Configuration headers:
  8339. $config_headers
  8340. -Report bugs to <bug-autoconf@gnu.org>."
  8341. -_ACEOF
  8342. +Report bugs to the package provider."
  8343. -cat >>$CONFIG_STATUS <<_ACEOF
  8344. +_ACEOF
  8345. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8346. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8347. ac_cs_version="\\
  8348. config.status
  8349. -configured by $0, generated by GNU Autoconf 2.59,
  8350. - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8351. +configured by $0, generated by GNU Autoconf 2.65,
  8352. + with options \\"\$ac_cs_config\\"
  8353. -Copyright (C) 2003 Free Software Foundation, Inc.
  8354. +Copyright (C) 2009 Free Software Foundation, Inc.
  8355. This config.status script is free software; the Free Software Foundation
  8356. gives unlimited permission to copy, distribute and modify it."
  8357. -srcdir=$srcdir
  8358. -INSTALL="$INSTALL"
  8359. +
  8360. +ac_pwd='$ac_pwd'
  8361. +srcdir='$srcdir'
  8362. +INSTALL='$INSTALL'
  8363. +test -n "\$AWK" || AWK=awk
  8364. _ACEOF
  8365. -cat >>$CONFIG_STATUS <<\_ACEOF
  8366. -# If no file are specified by the user, then we need to provide default
  8367. -# value. By we need to know if files were specified by the user.
  8368. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8369. +# The default lists apply if the user does not specify any file.
  8370. ac_need_defaults=:
  8371. while test $# != 0
  8372. do
  8373. case $1 in
  8374. --*=*)
  8375. - ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8376. - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8377. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8378. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8379. ac_shift=:
  8380. ;;
  8381. - -*)
  8382. + *)
  8383. ac_option=$1
  8384. ac_optarg=$2
  8385. ac_shift=shift
  8386. ;;
  8387. - *) # This is not an option, so the user has probably given explicit
  8388. - # arguments.
  8389. - ac_option=$1
  8390. - ac_need_defaults=false;;
  8391. esac
  8392. case $ac_option in
  8393. # Handling of the options.
  8394. -_ACEOF
  8395. -cat >>$CONFIG_STATUS <<\_ACEOF
  8396. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8397. ac_cs_recheck=: ;;
  8398. - --version | --vers* | -V )
  8399. - echo "$ac_cs_version"; exit 0 ;;
  8400. - --he | --h)
  8401. - # Conflict between --help and --header
  8402. - { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8403. -Try \`$0 --help' for more information." >&5
  8404. -echo "$as_me: error: ambiguous option: $1
  8405. -Try \`$0 --help' for more information." >&2;}
  8406. - { (exit 1); exit 1; }; };;
  8407. - --help | --hel | -h )
  8408. - echo "$ac_cs_usage"; exit 0 ;;
  8409. - --debug | --d* | -d )
  8410. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8411. + $as_echo "$ac_cs_version"; exit ;;
  8412. + --config | --confi | --conf | --con | --co | --c )
  8413. + $as_echo "$ac_cs_config"; exit ;;
  8414. + --debug | --debu | --deb | --de | --d | -d )
  8415. debug=: ;;
  8416. --file | --fil | --fi | --f )
  8417. $ac_shift
  8418. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8419. + case $ac_optarg in
  8420. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8421. + esac
  8422. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  8423. ac_need_defaults=false;;
  8424. --header | --heade | --head | --hea )
  8425. $ac_shift
  8426. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8427. + case $ac_optarg in
  8428. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8429. + esac
  8430. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8431. ac_need_defaults=false;;
  8432. + --he | --h)
  8433. + # Conflict between --help and --header
  8434. + as_fn_error "ambiguous option: \`$1'
  8435. +Try \`$0 --help' for more information.";;
  8436. + --help | --hel | -h )
  8437. + $as_echo "$ac_cs_usage"; exit ;;
  8438. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8439. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8440. ac_cs_silent=: ;;
  8441. # This is an error.
  8442. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8443. -Try \`$0 --help' for more information." >&5
  8444. -echo "$as_me: error: unrecognized option: $1
  8445. -Try \`$0 --help' for more information." >&2;}
  8446. - { (exit 1); exit 1; }; } ;;
  8447. + -*) as_fn_error "unrecognized option: \`$1'
  8448. +Try \`$0 --help' for more information." ;;
  8449. - *) ac_config_targets="$ac_config_targets $1" ;;
  8450. + *) as_fn_append ac_config_targets " $1"
  8451. + ac_need_defaults=false ;;
  8452. esac
  8453. shift
  8454. @@ -5259,33 +5472,47 @@
  8455. fi
  8456. _ACEOF
  8457. -cat >>$CONFIG_STATUS <<_ACEOF
  8458. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8459. if \$ac_cs_recheck; then
  8460. - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8461. - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8462. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8463. + shift
  8464. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8465. + CONFIG_SHELL='$SHELL'
  8466. + export CONFIG_SHELL
  8467. + exec "\$@"
  8468. fi
  8469. _ACEOF
  8470. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8471. +exec 5>>config.log
  8472. +{
  8473. + echo
  8474. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8475. +## Running $as_me. ##
  8476. +_ASBOX
  8477. + $as_echo "$ac_log"
  8478. +} >&5
  8479. +_ACEOF
  8480. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8481. +_ACEOF
  8482. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8483. -
  8484. -
  8485. -cat >>$CONFIG_STATUS <<\_ACEOF
  8486. +# Handling of arguments.
  8487. for ac_config_target in $ac_config_targets
  8488. do
  8489. - case "$ac_config_target" in
  8490. - # Handling of arguments.
  8491. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8492. - "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8493. - "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
  8494. - "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8495. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8496. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8497. - { (exit 1); exit 1; }; };;
  8498. + case $ac_config_target in
  8499. + "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8500. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8501. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8502. + "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
  8503. +
  8504. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8505. esac
  8506. done
  8507. +
  8508. # If the user did not use the arguments to specify the items to instantiate,
  8509. # then the envvar interface is used. Set only those that are not.
  8510. # We use the long form for the default assignment because of an extremely
  8511. @@ -5296,587 +5523,539 @@
  8512. fi
  8513. # Have a temporary directory for convenience. Make it in the build tree
  8514. -# simply because there is no reason to put it here, and in addition,
  8515. +# simply because there is no reason against having it here, and in addition,
  8516. # creating and moving files from /tmp can sometimes cause problems.
  8517. -# Create a temporary directory, and hook for its removal unless debugging.
  8518. +# Hook for its removal unless debugging.
  8519. +# Note that there is a small window in which the directory will not be cleaned:
  8520. +# after its creation but before its name has been assigned to `$tmp'.
  8521. $debug ||
  8522. {
  8523. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8524. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  8525. + tmp=
  8526. + trap 'exit_status=$?
  8527. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  8528. +' 0
  8529. + trap 'as_fn_exit 1' 1 2 13 15
  8530. }
  8531. -
  8532. # Create a (secure) tmp directory for tmp files.
  8533. {
  8534. - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  8535. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8536. test -n "$tmp" && test -d "$tmp"
  8537. } ||
  8538. {
  8539. - tmp=./confstat$$-$RANDOM
  8540. - (umask 077 && mkdir $tmp)
  8541. -} ||
  8542. + tmp=./conf$$-$RANDOM
  8543. + (umask 077 && mkdir "$tmp")
  8544. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  8545. +
  8546. +# Set up the scripts for CONFIG_FILES section.
  8547. +# No need to generate them if there are no CONFIG_FILES.
  8548. +# This happens for instance with `./config.status config.h'.
  8549. +if test -n "$CONFIG_FILES"; then
  8550. +
  8551. +
  8552. +ac_cr=`echo X | tr X '\015'`
  8553. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  8554. +# But we know of no other shell where ac_cr would be empty at this
  8555. +# point, so we can use a bashism as a fallback.
  8556. +if test "x$ac_cr" = x; then
  8557. + eval ac_cr=\$\'\\r\'
  8558. +fi
  8559. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8560. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8561. + ac_cs_awk_cr='\r'
  8562. +else
  8563. + ac_cs_awk_cr=$ac_cr
  8564. +fi
  8565. +
  8566. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  8567. +_ACEOF
  8568. +
  8569. +
  8570. {
  8571. - echo "$me: cannot create a temporary directory in ." >&2
  8572. - { (exit 1); exit 1; }
  8573. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  8574. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8575. + echo "_ACEOF"
  8576. +} >conf$$subs.sh ||
  8577. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  8578. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  8579. +ac_delim='%!_!# '
  8580. +for ac_last_try in false false false false false :; do
  8581. + . ./conf$$subs.sh ||
  8582. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  8583. +
  8584. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8585. + if test $ac_delim_n = $ac_delim_num; then
  8586. + break
  8587. + elif $ac_last_try; then
  8588. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  8589. + else
  8590. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8591. + fi
  8592. +done
  8593. +rm -f conf$$subs.sh
  8594. +
  8595. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8596. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  8597. +_ACEOF
  8598. +sed -n '
  8599. +h
  8600. +s/^/S["/; s/!.*/"]=/
  8601. +p
  8602. +g
  8603. +s/^[^!]*!//
  8604. +:repl
  8605. +t repl
  8606. +s/'"$ac_delim"'$//
  8607. +t delim
  8608. +:nl
  8609. +h
  8610. +s/\(.\{148\}\)..*/\1/
  8611. +t more1
  8612. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8613. +p
  8614. +n
  8615. +b repl
  8616. +:more1
  8617. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8618. +p
  8619. +g
  8620. +s/.\{148\}//
  8621. +t nl
  8622. +:delim
  8623. +h
  8624. +s/\(.\{148\}\)..*/\1/
  8625. +t more2
  8626. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  8627. +p
  8628. +b
  8629. +:more2
  8630. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8631. +p
  8632. +g
  8633. +s/.\{148\}//
  8634. +t delim
  8635. +' <conf$$subs.awk | sed '
  8636. +/^[^""]/{
  8637. + N
  8638. + s/\n//
  8639. }
  8640. +' >>$CONFIG_STATUS || ac_write_fail=1
  8641. +rm -f conf$$subs.awk
  8642. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8643. +_ACAWK
  8644. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  8645. + for (key in S) S_is_set[key] = 1
  8646. + FS = ""
  8647. +}
  8648. +{
  8649. + line = $ 0
  8650. + nfields = split(line, field, "@")
  8651. + substed = 0
  8652. + len = length(field[1])
  8653. + for (i = 2; i < nfields; i++) {
  8654. + key = field[i]
  8655. + keylen = length(key)
  8656. + if (S_is_set[key]) {
  8657. + value = S[key]
  8658. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8659. + len += length(value) + length(field[++i])
  8660. + substed = 1
  8661. + } else
  8662. + len += 1 + keylen
  8663. + }
  8664. +
  8665. + print line
  8666. +}
  8667. +
  8668. +_ACAWK
  8669. +_ACEOF
  8670. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8671. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8672. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8673. +else
  8674. + cat
  8675. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  8676. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  8677. _ACEOF
  8678. -cat >>$CONFIG_STATUS <<_ACEOF
  8679. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  8680. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8681. +# trailing colons and then remove the whole line if VPATH becomes empty
  8682. +# (actually we leave an empty line to preserve line numbers).
  8683. +if test "x$srcdir" = x.; then
  8684. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  8685. +s/:*\$(srcdir):*/:/
  8686. +s/:*\${srcdir}:*/:/
  8687. +s/:*@srcdir@:*/:/
  8688. +s/^\([^=]*=[ ]*\):*/\1/
  8689. +s/:*$//
  8690. +s/^[^=]*=[ ]*$//
  8691. +}'
  8692. +fi
  8693. -#
  8694. -# CONFIG_FILES section.
  8695. -#
  8696. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8697. +fi # test -n "$CONFIG_FILES"
  8698. -# No need to generate the scripts if there are no CONFIG_FILES.
  8699. -# This happens for instance when ./config.status config.h
  8700. -if test -n "\$CONFIG_FILES"; then
  8701. - # Protect against being on the right side of a sed subst in config.status.
  8702. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  8703. - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  8704. -s,@SHELL@,$SHELL,;t t
  8705. -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  8706. -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  8707. -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  8708. -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  8709. -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  8710. -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  8711. -s,@exec_prefix@,$exec_prefix,;t t
  8712. -s,@prefix@,$prefix,;t t
  8713. -s,@program_transform_name@,$program_transform_name,;t t
  8714. -s,@bindir@,$bindir,;t t
  8715. -s,@sbindir@,$sbindir,;t t
  8716. -s,@libexecdir@,$libexecdir,;t t
  8717. -s,@datadir@,$datadir,;t t
  8718. -s,@sysconfdir@,$sysconfdir,;t t
  8719. -s,@sharedstatedir@,$sharedstatedir,;t t
  8720. -s,@localstatedir@,$localstatedir,;t t
  8721. -s,@libdir@,$libdir,;t t
  8722. -s,@includedir@,$includedir,;t t
  8723. -s,@oldincludedir@,$oldincludedir,;t t
  8724. -s,@infodir@,$infodir,;t t
  8725. -s,@mandir@,$mandir,;t t
  8726. -s,@build_alias@,$build_alias,;t t
  8727. -s,@host_alias@,$host_alias,;t t
  8728. -s,@target_alias@,$target_alias,;t t
  8729. -s,@DEFS@,$DEFS,;t t
  8730. -s,@ECHO_C@,$ECHO_C,;t t
  8731. -s,@ECHO_N@,$ECHO_N,;t t
  8732. -s,@ECHO_T@,$ECHO_T,;t t
  8733. -s,@LIBS@,$LIBS,;t t
  8734. -s,@build@,$build,;t t
  8735. -s,@build_cpu@,$build_cpu,;t t
  8736. -s,@build_vendor@,$build_vendor,;t t
  8737. -s,@build_os@,$build_os,;t t
  8738. -s,@host@,$host,;t t
  8739. -s,@host_cpu@,$host_cpu,;t t
  8740. -s,@host_vendor@,$host_vendor,;t t
  8741. -s,@host_os@,$host_os,;t t
  8742. -s,@target@,$target,;t t
  8743. -s,@target_cpu@,$target_cpu,;t t
  8744. -s,@target_vendor@,$target_vendor,;t t
  8745. -s,@target_os@,$target_os,;t t
  8746. -s,@CC@,$CC,;t t
  8747. -s,@CFLAGS@,$CFLAGS,;t t
  8748. -s,@LDFLAGS@,$LDFLAGS,;t t
  8749. -s,@CPPFLAGS@,$CPPFLAGS,;t t
  8750. -s,@ac_ct_CC@,$ac_ct_CC,;t t
  8751. -s,@EXEEXT@,$EXEEXT,;t t
  8752. -s,@OBJEXT@,$OBJEXT,;t t
  8753. -s,@RANLIB@,$RANLIB,;t t
  8754. -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  8755. -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  8756. -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  8757. -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  8758. -s,@CPP@,$CPP,;t t
  8759. -s,@EGREP@,$EGREP,;t t
  8760. -s,@PCAP_CFLAGS@,$PCAP_CFLAGS,;t t
  8761. -s,@PCAPLIB@,$PCAPLIB,;t t
  8762. -s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  8763. -s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
  8764. -s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
  8765. -s,@GLIB_LIBS@,$GLIB_LIBS,;t t
  8766. -s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
  8767. -s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
  8768. -s,@LNET_CFLAGS@,$LNET_CFLAGS,;t t
  8769. -s,@LNETLIB@,$LNETLIB,;t t
  8770. -s,@BUILD_SHARED@,$BUILD_SHARED,;t t
  8771. -s,@ICMPHEADER@,$ICMPHEADER,;t t
  8772. -s,@TCPSTATES@,$TCPSTATES,;t t
  8773. -s,@HAVE_BSD_UDPHDR@,$HAVE_BSD_UDPHDR,;t t
  8774. -s,@LIBNET_VER@,$LIBNET_VER,;t t
  8775. -s,@LIBOBJS@,$LIBOBJS,;t t
  8776. -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  8777. -CEOF
  8778. -
  8779. -_ACEOF
  8780. -
  8781. - cat >>$CONFIG_STATUS <<\_ACEOF
  8782. - # Split the substitutions into bite-sized pieces for seds with
  8783. - # small command number limits, like on Digital OSF/1 and HP-UX.
  8784. - ac_max_sed_lines=48
  8785. - ac_sed_frag=1 # Number of current file.
  8786. - ac_beg=1 # First line for current file.
  8787. - ac_end=$ac_max_sed_lines # Line after last line for current file.
  8788. - ac_more_lines=:
  8789. - ac_sed_cmds=
  8790. - while $ac_more_lines; do
  8791. - if test $ac_beg -gt 1; then
  8792. - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8793. - else
  8794. - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8795. - fi
  8796. - if test ! -s $tmp/subs.frag; then
  8797. - ac_more_lines=false
  8798. - else
  8799. - # The purpose of the label and of the branching condition is to
  8800. - # speed up the sed processing (if there are no `@' at all, there
  8801. - # is no need to browse any of the substitutions).
  8802. - # These are the two extra sed commands mentioned above.
  8803. - (echo ':t
  8804. - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  8805. - if test -z "$ac_sed_cmds"; then
  8806. - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  8807. - else
  8808. - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  8809. - fi
  8810. - ac_sed_frag=`expr $ac_sed_frag + 1`
  8811. - ac_beg=$ac_end
  8812. - ac_end=`expr $ac_end + $ac_max_sed_lines`
  8813. - fi
  8814. - done
  8815. - if test -z "$ac_sed_cmds"; then
  8816. - ac_sed_cmds=cat
  8817. +# Set up the scripts for CONFIG_HEADERS section.
  8818. +# No need to generate them if there are no CONFIG_HEADERS.
  8819. +# This happens for instance with `./config.status Makefile'.
  8820. +if test -n "$CONFIG_HEADERS"; then
  8821. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  8822. +BEGIN {
  8823. +_ACEOF
  8824. +
  8825. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  8826. +# here-document in config.status, that substitutes the proper values into
  8827. +# config.h.in to produce config.h.
  8828. +
  8829. +# Create a delimiter string that does not exist in confdefs.h, to ease
  8830. +# handling of long lines.
  8831. +ac_delim='%!_!# '
  8832. +for ac_last_try in false false :; do
  8833. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  8834. + if test -z "$ac_t"; then
  8835. + break
  8836. + elif $ac_last_try; then
  8837. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  8838. + else
  8839. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8840. fi
  8841. -fi # test -n "$CONFIG_FILES"
  8842. +done
  8843. +# For the awk script, D is an array of macro values keyed by name,
  8844. +# likewise P contains macro parameters if any. Preserve backslash
  8845. +# newline sequences.
  8846. +
  8847. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8848. +sed -n '
  8849. +s/.\{148\}/&'"$ac_delim"'/g
  8850. +t rset
  8851. +:rset
  8852. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  8853. +t def
  8854. +d
  8855. +:def
  8856. +s/\\$//
  8857. +t bsnl
  8858. +s/["\\]/\\&/g
  8859. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8860. +D["\1"]=" \3"/p
  8861. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8862. +d
  8863. +:bsnl
  8864. +s/["\\]/\\&/g
  8865. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8866. +D["\1"]=" \3\\\\\\n"\\/p
  8867. +t cont
  8868. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8869. +t cont
  8870. +d
  8871. +:cont
  8872. +n
  8873. +s/.\{148\}/&'"$ac_delim"'/g
  8874. +t clear
  8875. +:clear
  8876. +s/\\$//
  8877. +t bsnlc
  8878. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8879. +d
  8880. +:bsnlc
  8881. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8882. +b cont
  8883. +' <confdefs.h | sed '
  8884. +s/'"$ac_delim"'/"\\\
  8885. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  8886. +
  8887. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8888. + for (key in D) D_is_set[key] = 1
  8889. + FS = ""
  8890. +}
  8891. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8892. + line = \$ 0
  8893. + split(line, arg, " ")
  8894. + if (arg[1] == "#") {
  8895. + defundef = arg[2]
  8896. + mac1 = arg[3]
  8897. + } else {
  8898. + defundef = substr(arg[1], 2)
  8899. + mac1 = arg[2]
  8900. + }
  8901. + split(mac1, mac2, "(") #)
  8902. + macro = mac2[1]
  8903. + prefix = substr(line, 1, index(line, defundef) - 1)
  8904. + if (D_is_set[macro]) {
  8905. + # Preserve the white space surrounding the "#".
  8906. + print prefix "define", macro P[macro] D[macro]
  8907. + next
  8908. + } else {
  8909. + # Replace #undef with comments. This is necessary, for example,
  8910. + # in the case of _POSIX_SOURCE, which is predefined and required
  8911. + # on some systems where configure will not decide to define it.
  8912. + if (defundef == "undef") {
  8913. + print "/*", prefix defundef, macro, "*/"
  8914. + next
  8915. + }
  8916. + }
  8917. +}
  8918. +{ print }
  8919. +_ACAWK
  8920. _ACEOF
  8921. -cat >>$CONFIG_STATUS <<\_ACEOF
  8922. -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  8923. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8924. - case $ac_file in
  8925. - - | *:- | *:-:* ) # input from stdin
  8926. - cat >$tmp/stdin
  8927. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8928. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8929. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8930. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8931. - * ) ac_file_in=$ac_file.in ;;
  8932. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8933. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  8934. +fi # test -n "$CONFIG_HEADERS"
  8935. +
  8936. +
  8937. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8938. +shift
  8939. +for ac_tag
  8940. +do
  8941. + case $ac_tag in
  8942. + :[FHLC]) ac_mode=$ac_tag; continue;;
  8943. + esac
  8944. + case $ac_mode$ac_tag in
  8945. + :[FHL]*:*);;
  8946. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8947. + :[FH]-) ac_tag=-:-;;
  8948. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8949. esac
  8950. + ac_save_IFS=$IFS
  8951. + IFS=:
  8952. + set x $ac_tag
  8953. + IFS=$ac_save_IFS
  8954. + shift
  8955. + ac_file=$1
  8956. + shift
  8957. - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  8958. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8959. + case $ac_mode in
  8960. + :L) ac_source=$1;;
  8961. + :[FH])
  8962. + ac_file_inputs=
  8963. + for ac_f
  8964. + do
  8965. + case $ac_f in
  8966. + -) ac_f="$tmp/stdin";;
  8967. + *) # Look for the file first in the build tree, then in the source tree
  8968. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  8969. + # because $ac_f cannot contain `:'.
  8970. + test -f "$ac_f" ||
  8971. + case $ac_f in
  8972. + [\\/$]*) false;;
  8973. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8974. + esac ||
  8975. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8976. + esac
  8977. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8978. + as_fn_append ac_file_inputs " '$ac_f'"
  8979. + done
  8980. +
  8981. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  8982. + # use $as_me), people would be surprised to read:
  8983. + # /* config.h. Generated by config.status. */
  8984. + configure_input='Generated from '`
  8985. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8986. + `' by configure.'
  8987. + if test x"$ac_file" != x-; then
  8988. + configure_input="$ac_file. $configure_input"
  8989. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8990. +$as_echo "$as_me: creating $ac_file" >&6;}
  8991. + fi
  8992. + # Neutralize special characters interpreted by sed in replacement strings.
  8993. + case $configure_input in #(
  8994. + *\&* | *\|* | *\\* )
  8995. + ac_sed_conf_input=`$as_echo "$configure_input" |
  8996. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8997. + *) ac_sed_conf_input=$configure_input;;
  8998. + esac
  8999. +
  9000. + case $ac_tag in
  9001. + *:-:* | *:-) cat >"$tmp/stdin" \
  9002. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  9003. + esac
  9004. + ;;
  9005. + esac
  9006. +
  9007. + ac_dir=`$as_dirname -- "$ac_file" ||
  9008. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9009. X"$ac_file" : 'X\(//\)[^/]' \| \
  9010. X"$ac_file" : 'X\(//\)$' \| \
  9011. - X"$ac_file" : 'X\(/\)' \| \
  9012. - . : '\(.\)' 2>/dev/null ||
  9013. -echo X"$ac_file" |
  9014. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9015. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9016. - /^X\(\/\/\)$/{ s//\1/; q; }
  9017. - /^X\(\/\).*/{ s//\1/; q; }
  9018. - s/.*/./; q'`
  9019. - { if $as_mkdir_p; then
  9020. - mkdir -p "$ac_dir"
  9021. - else
  9022. - as_dir="$ac_dir"
  9023. - as_dirs=
  9024. - while test ! -d "$as_dir"; do
  9025. - as_dirs="$as_dir $as_dirs"
  9026. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9027. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9028. - X"$as_dir" : 'X\(//\)[^/]' \| \
  9029. - X"$as_dir" : 'X\(//\)$' \| \
  9030. - X"$as_dir" : 'X\(/\)' \| \
  9031. - . : '\(.\)' 2>/dev/null ||
  9032. -echo X"$as_dir" |
  9033. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9034. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9035. - /^X\(\/\/\)$/{ s//\1/; q; }
  9036. - /^X\(\/\).*/{ s//\1/; q; }
  9037. - s/.*/./; q'`
  9038. - done
  9039. - test ! -n "$as_dirs" || mkdir $as_dirs
  9040. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9041. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9042. - { (exit 1); exit 1; }; }; }
  9043. -
  9044. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9045. +$as_echo X"$ac_file" |
  9046. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9047. + s//\1/
  9048. + q
  9049. + }
  9050. + /^X\(\/\/\)[^/].*/{
  9051. + s//\1/
  9052. + q
  9053. + }
  9054. + /^X\(\/\/\)$/{
  9055. + s//\1/
  9056. + q
  9057. + }
  9058. + /^X\(\/\).*/{
  9059. + s//\1/
  9060. + q
  9061. + }
  9062. + s/.*/./; q'`
  9063. + as_dir="$ac_dir"; as_fn_mkdir_p
  9064. ac_builddir=.
  9065. -if test "$ac_dir" != .; then
  9066. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9067. - # A "../" for each directory in $ac_dir_suffix.
  9068. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9069. -else
  9070. - ac_dir_suffix= ac_top_builddir=
  9071. -fi
  9072. +case "$ac_dir" in
  9073. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9074. +*)
  9075. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9076. + # A ".." for each directory in $ac_dir_suffix.
  9077. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9078. + case $ac_top_builddir_sub in
  9079. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9080. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9081. + esac ;;
  9082. +esac
  9083. +ac_abs_top_builddir=$ac_pwd
  9084. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9085. +# for backward compatibility:
  9086. +ac_top_builddir=$ac_top_build_prefix
  9087. case $srcdir in
  9088. - .) # No --srcdir option. We are building in place.
  9089. + .) # We are building in place.
  9090. ac_srcdir=.
  9091. - if test -z "$ac_top_builddir"; then
  9092. - ac_top_srcdir=.
  9093. - else
  9094. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9095. - fi ;;
  9096. - [\\/]* | ?:[\\/]* ) # Absolute path.
  9097. + ac_top_srcdir=$ac_top_builddir_sub
  9098. + ac_abs_top_srcdir=$ac_pwd ;;
  9099. + [\\/]* | ?:[\\/]* ) # Absolute name.
  9100. ac_srcdir=$srcdir$ac_dir_suffix;
  9101. - ac_top_srcdir=$srcdir ;;
  9102. - *) # Relative path.
  9103. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9104. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9105. + ac_top_srcdir=$srcdir
  9106. + ac_abs_top_srcdir=$srcdir ;;
  9107. + *) # Relative name.
  9108. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9109. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  9110. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9111. esac
  9112. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9113. -# Do not use `cd foo && pwd` to compute absolute paths, because
  9114. -# the directories may not exist.
  9115. -case `pwd` in
  9116. -.) ac_abs_builddir="$ac_dir";;
  9117. -*)
  9118. - case "$ac_dir" in
  9119. - .) ac_abs_builddir=`pwd`;;
  9120. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9121. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9122. - esac;;
  9123. -esac
  9124. -case $ac_abs_builddir in
  9125. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  9126. -*)
  9127. - case ${ac_top_builddir}. in
  9128. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  9129. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9130. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9131. - esac;;
  9132. -esac
  9133. -case $ac_abs_builddir in
  9134. -.) ac_abs_srcdir=$ac_srcdir;;
  9135. -*)
  9136. - case $ac_srcdir in
  9137. - .) ac_abs_srcdir=$ac_abs_builddir;;
  9138. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9139. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9140. - esac;;
  9141. -esac
  9142. -case $ac_abs_builddir in
  9143. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  9144. -*)
  9145. - case $ac_top_srcdir in
  9146. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  9147. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  9148. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  9149. - esac;;
  9150. -esac
  9151. + case $ac_mode in
  9152. + :F)
  9153. + #
  9154. + # CONFIG_FILE
  9155. + #
  9156. case $INSTALL in
  9157. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9158. - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  9159. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9160. esac
  9161. +_ACEOF
  9162. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  9163. - # use $as_me), people would be surprised to read:
  9164. - # /* config.h. Generated by config.status. */
  9165. - if test x"$ac_file" = x-; then
  9166. - configure_input=
  9167. - else
  9168. - configure_input="$ac_file. "
  9169. - fi
  9170. - configure_input=$configure_input"Generated from `echo $ac_file_in |
  9171. - sed 's,.*/,,'` by configure."
  9172. -
  9173. - # First look for the input files in the build tree, otherwise in the
  9174. - # src tree.
  9175. - ac_file_inputs=`IFS=:
  9176. - for f in $ac_file_in; do
  9177. - case $f in
  9178. - -) echo $tmp/stdin ;;
  9179. - [\\/$]*)
  9180. - # Absolute (can't be DOS-style, as IFS=:)
  9181. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9182. -echo "$as_me: error: cannot find input file: $f" >&2;}
  9183. - { (exit 1); exit 1; }; }
  9184. - echo "$f";;
  9185. - *) # Relative
  9186. - if test -f "$f"; then
  9187. - # Build tree
  9188. - echo "$f"
  9189. - elif test -f "$srcdir/$f"; then
  9190. - # Source tree
  9191. - echo "$srcdir/$f"
  9192. - else
  9193. - # /dev/null tree
  9194. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9195. -echo "$as_me: error: cannot find input file: $f" >&2;}
  9196. - { (exit 1); exit 1; }; }
  9197. - fi;;
  9198. - esac
  9199. - done` || { (exit 1); exit 1; }
  9200. -
  9201. - if test x"$ac_file" != x-; then
  9202. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  9203. -echo "$as_me: creating $ac_file" >&6;}
  9204. - rm -f "$ac_file"
  9205. - fi
  9206. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9207. +# If the template does not know about datarootdir, expand it.
  9208. +# FIXME: This hack should be removed a few years after 2.60.
  9209. +ac_datarootdir_hack=; ac_datarootdir_seen=
  9210. +ac_sed_dataroot='
  9211. +/datarootdir/ {
  9212. + p
  9213. + q
  9214. +}
  9215. +/@datadir@/p
  9216. +/@docdir@/p
  9217. +/@infodir@/p
  9218. +/@localedir@/p
  9219. +/@mandir@/p'
  9220. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9221. +*datarootdir*) ac_datarootdir_seen=yes;;
  9222. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9223. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9224. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9225. +_ACEOF
  9226. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9227. + ac_datarootdir_hack='
  9228. + s&@datadir@&$datadir&g
  9229. + s&@docdir@&$docdir&g
  9230. + s&@infodir@&$infodir&g
  9231. + s&@localedir@&$localedir&g
  9232. + s&@mandir@&$mandir&g
  9233. + s&\\\${datarootdir}&$datarootdir&g' ;;
  9234. +esac
  9235. _ACEOF
  9236. -cat >>$CONFIG_STATUS <<_ACEOF
  9237. - sed "$ac_vpsub
  9238. +
  9239. +# Neutralize VPATH when `$srcdir' = `.'.
  9240. +# Shell code in configure.ac might set extrasub.
  9241. +# FIXME: do we really want to maintain this feature?
  9242. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9243. +ac_sed_extra="$ac_vpsub
  9244. $extrasub
  9245. _ACEOF
  9246. -cat >>$CONFIG_STATUS <<\_ACEOF
  9247. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9248. :t
  9249. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9250. -s,@configure_input@,$configure_input,;t t
  9251. -s,@srcdir@,$ac_srcdir,;t t
  9252. -s,@abs_srcdir@,$ac_abs_srcdir,;t t
  9253. -s,@top_srcdir@,$ac_top_srcdir,;t t
  9254. -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  9255. -s,@builddir@,$ac_builddir,;t t
  9256. -s,@abs_builddir@,$ac_abs_builddir,;t t
  9257. -s,@top_builddir@,$ac_top_builddir,;t t
  9258. -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  9259. -s,@INSTALL@,$ac_INSTALL,;t t
  9260. -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  9261. - rm -f $tmp/stdin
  9262. - if test x"$ac_file" != x-; then
  9263. - mv $tmp/out $ac_file
  9264. - else
  9265. - cat $tmp/out
  9266. - rm -f $tmp/out
  9267. - fi
  9268. +s|@configure_input@|$ac_sed_conf_input|;t t
  9269. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  9270. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9271. +s&@srcdir@&$ac_srcdir&;t t
  9272. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9273. +s&@top_srcdir@&$ac_top_srcdir&;t t
  9274. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9275. +s&@builddir@&$ac_builddir&;t t
  9276. +s&@abs_builddir@&$ac_abs_builddir&;t t
  9277. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9278. +s&@INSTALL@&$ac_INSTALL&;t t
  9279. +$ac_datarootdir_hack
  9280. +"
  9281. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  9282. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  9283. +
  9284. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9285. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  9286. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  9287. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9288. +which seems to be undefined. Please make sure it is defined." >&5
  9289. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9290. +which seems to be undefined. Please make sure it is defined." >&2;}
  9291. -done
  9292. -_ACEOF
  9293. -cat >>$CONFIG_STATUS <<\_ACEOF
  9294. -
  9295. -#
  9296. -# CONFIG_HEADER section.
  9297. -#
  9298. -
  9299. -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9300. -# NAME is the cpp macro being defined and VALUE is the value it is being given.
  9301. -#
  9302. -# ac_d sets the value in "#define NAME VALUE" lines.
  9303. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9304. -ac_dB='[ ].*$,\1#\2'
  9305. -ac_dC=' '
  9306. -ac_dD=',;t'
  9307. -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9308. -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9309. -ac_uB='$,\1#\2define\3'
  9310. -ac_uC=' '
  9311. -ac_uD=',;t'
  9312. -
  9313. -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9314. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9315. + rm -f "$tmp/stdin"
  9316. case $ac_file in
  9317. - - | *:- | *:-:* ) # input from stdin
  9318. - cat >$tmp/stdin
  9319. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9320. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9321. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9322. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9323. - * ) ac_file_in=$ac_file.in ;;
  9324. - esac
  9325. -
  9326. - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9327. -echo "$as_me: creating $ac_file" >&6;}
  9328. -
  9329. - # First look for the input files in the build tree, otherwise in the
  9330. - # src tree.
  9331. - ac_file_inputs=`IFS=:
  9332. - for f in $ac_file_in; do
  9333. - case $f in
  9334. - -) echo $tmp/stdin ;;
  9335. - [\\/$]*)
  9336. - # Absolute (can't be DOS-style, as IFS=:)
  9337. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9338. -echo "$as_me: error: cannot find input file: $f" >&2;}
  9339. - { (exit 1); exit 1; }; }
  9340. - # Do quote $f, to prevent DOS paths from being IFS'd.
  9341. - echo "$f";;
  9342. - *) # Relative
  9343. - if test -f "$f"; then
  9344. - # Build tree
  9345. - echo "$f"
  9346. - elif test -f "$srcdir/$f"; then
  9347. - # Source tree
  9348. - echo "$srcdir/$f"
  9349. - else
  9350. - # /dev/null tree
  9351. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9352. -echo "$as_me: error: cannot find input file: $f" >&2;}
  9353. - { (exit 1); exit 1; }; }
  9354. - fi;;
  9355. - esac
  9356. - done` || { (exit 1); exit 1; }
  9357. - # Remove the trailing spaces.
  9358. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9359. -
  9360. -_ACEOF
  9361. -
  9362. -# Transform confdefs.h into two sed scripts, `conftest.defines' and
  9363. -# `conftest.undefs', that substitutes the proper values into
  9364. -# config.h.in to produce config.h. The first handles `#define'
  9365. -# templates, and the second `#undef' templates.
  9366. -# And first: Protect against being on the right side of a sed subst in
  9367. -# config.status. Protect against being in an unquoted here document
  9368. -# in config.status.
  9369. -rm -f conftest.defines conftest.undefs
  9370. -# Using a here document instead of a string reduces the quoting nightmare.
  9371. -# Putting comments in sed scripts is not portable.
  9372. -#
  9373. -# `end' is used to avoid that the second main sed command (meant for
  9374. -# 0-ary CPP macros) applies to n-ary macro definitions.
  9375. -# See the Autoconf documentation for `clear'.
  9376. -cat >confdef2sed.sed <<\_ACEOF
  9377. -s/[\\&,]/\\&/g
  9378. -s,[\\$`],\\&,g
  9379. -t clear
  9380. -: clear
  9381. -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9382. -t end
  9383. -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9384. -: end
  9385. -_ACEOF
  9386. -# If some macros were called several times there might be several times
  9387. -# the same #defines, which is useless. Nevertheless, we may not want to
  9388. -# sort them, since we want the *last* AC-DEFINE to be honored.
  9389. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9390. -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9391. -rm -f confdef2sed.sed
  9392. -
  9393. -# This sed command replaces #undef with comments. This is necessary, for
  9394. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  9395. -# on some systems where configure will not decide to define it.
  9396. -cat >>conftest.undefs <<\_ACEOF
  9397. -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9398. -_ACEOF
  9399. -
  9400. -# Break up conftest.defines because some shells have a limit on the size
  9401. -# of here documents, and old seds have small limits too (100 cmds).
  9402. -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9403. -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9404. -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9405. -echo ' :' >>$CONFIG_STATUS
  9406. -rm -f conftest.tail
  9407. -while grep . conftest.defines >/dev/null
  9408. -do
  9409. - # Write a limited-size here document to $tmp/defines.sed.
  9410. - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9411. - # Speed up: don't consider the non `#define' lines.
  9412. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9413. - # Work around the forget-to-reset-the-flag bug.
  9414. - echo 't clr' >>$CONFIG_STATUS
  9415. - echo ': clr' >>$CONFIG_STATUS
  9416. - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9417. - echo 'CEOF
  9418. - sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9419. - rm -f $tmp/in
  9420. - mv $tmp/out $tmp/in
  9421. -' >>$CONFIG_STATUS
  9422. - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9423. - rm -f conftest.defines
  9424. - mv conftest.tail conftest.defines
  9425. -done
  9426. -rm -f conftest.defines
  9427. -echo ' fi # grep' >>$CONFIG_STATUS
  9428. -echo >>$CONFIG_STATUS
  9429. -
  9430. -# Break up conftest.undefs because some shells have a limit on the size
  9431. -# of here documents, and old seds have small limits too (100 cmds).
  9432. -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9433. -rm -f conftest.tail
  9434. -while grep . conftest.undefs >/dev/null
  9435. -do
  9436. - # Write a limited-size here document to $tmp/undefs.sed.
  9437. - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9438. - # Speed up: don't consider the non `#undef'
  9439. - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9440. - # Work around the forget-to-reset-the-flag bug.
  9441. - echo 't clr' >>$CONFIG_STATUS
  9442. - echo ': clr' >>$CONFIG_STATUS
  9443. - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9444. - echo 'CEOF
  9445. - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9446. - rm -f $tmp/in
  9447. - mv $tmp/out $tmp/in
  9448. -' >>$CONFIG_STATUS
  9449. - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9450. - rm -f conftest.undefs
  9451. - mv conftest.tail conftest.undefs
  9452. -done
  9453. -rm -f conftest.undefs
  9454. -
  9455. -cat >>$CONFIG_STATUS <<\_ACEOF
  9456. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  9457. - # use $as_me), people would be surprised to read:
  9458. - # /* config.h. Generated by config.status. */
  9459. - if test x"$ac_file" = x-; then
  9460. - echo "/* Generated by configure. */" >$tmp/config.h
  9461. - else
  9462. - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9463. - fi
  9464. - cat $tmp/in >>$tmp/config.h
  9465. - rm -f $tmp/in
  9466. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  9467. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  9468. + esac \
  9469. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  9470. + ;;
  9471. + :H)
  9472. + #
  9473. + # CONFIG_HEADER
  9474. + #
  9475. if test x"$ac_file" != x-; then
  9476. - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  9477. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9478. -echo "$as_me: $ac_file is unchanged" >&6;}
  9479. + {
  9480. + $as_echo "/* $configure_input */" \
  9481. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  9482. + } >"$tmp/config.h" \
  9483. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  9484. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  9485. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9486. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  9487. else
  9488. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9489. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9490. - X"$ac_file" : 'X\(//\)[^/]' \| \
  9491. - X"$ac_file" : 'X\(//\)$' \| \
  9492. - X"$ac_file" : 'X\(/\)' \| \
  9493. - . : '\(.\)' 2>/dev/null ||
  9494. -echo X"$ac_file" |
  9495. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9496. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9497. - /^X\(\/\/\)$/{ s//\1/; q; }
  9498. - /^X\(\/\).*/{ s//\1/; q; }
  9499. - s/.*/./; q'`
  9500. - { if $as_mkdir_p; then
  9501. - mkdir -p "$ac_dir"
  9502. - else
  9503. - as_dir="$ac_dir"
  9504. - as_dirs=
  9505. - while test ! -d "$as_dir"; do
  9506. - as_dirs="$as_dir $as_dirs"
  9507. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9508. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9509. - X"$as_dir" : 'X\(//\)[^/]' \| \
  9510. - X"$as_dir" : 'X\(//\)$' \| \
  9511. - X"$as_dir" : 'X\(/\)' \| \
  9512. - . : '\(.\)' 2>/dev/null ||
  9513. -echo X"$as_dir" |
  9514. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9515. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9516. - /^X\(\/\/\)$/{ s//\1/; q; }
  9517. - /^X\(\/\).*/{ s//\1/; q; }
  9518. - s/.*/./; q'`
  9519. - done
  9520. - test ! -n "$as_dirs" || mkdir $as_dirs
  9521. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9522. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9523. - { (exit 1); exit 1; }; }; }
  9524. -
  9525. - rm -f $ac_file
  9526. - mv $tmp/config.h $ac_file
  9527. + rm -f "$ac_file"
  9528. + mv "$tmp/config.h" "$ac_file" \
  9529. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  9530. fi
  9531. else
  9532. - cat $tmp/config.h
  9533. - rm -f $tmp/config.h
  9534. + $as_echo "/* $configure_input */" \
  9535. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  9536. + || as_fn_error "could not create -" "$LINENO" 5
  9537. fi
  9538. -done
  9539. -_ACEOF
  9540. + ;;
  9541. -cat >>$CONFIG_STATUS <<\_ACEOF
  9542. -{ (exit 0); exit 0; }
  9543. + esac
  9544. +
  9545. +done # for ac_tag
  9546. +
  9547. +
  9548. +as_fn_exit 0
  9549. _ACEOF
  9550. -chmod +x $CONFIG_STATUS
  9551. ac_clean_files=$ac_clean_files_save
  9552. +test $ac_write_fail = 0 ||
  9553. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9554. +
  9555. # configure is writing to config.log, and then calls config.status.
  9556. # config.status does its own redirection, appending to config.log.
  9557. @@ -5896,6 +6075,10 @@
  9558. exec 5>>config.log
  9559. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9560. # would make configure fail if this is the last instruction.
  9561. - $ac_cs_success || { (exit 1); exit 1; }
  9562. + $ac_cs_success || as_fn_exit $?
  9563. +fi
  9564. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9565. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9566. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9567. fi
  9568. diff -Nur libnids-1.23.orig/configure.in libnids-1.23/configure.in
  9569. --- libnids-1.23.orig/configure.in 2006-05-01 19:14:51.000000000 +0200
  9570. +++ libnids-1.23/configure.in 2010-02-18 22:19:04.660854657 +0100
  9571. @@ -65,7 +65,7 @@
  9572. ;;
  9573. *)
  9574. AC_MSG_RESULT($withval)
  9575. - if test -f $withval/pcap.h -a -f $withval/libpcap.a; then
  9576. + if test -f $withval/include/pcap.h -a -f $withval/lib/libpcap.a; then
  9577. owd=`pwd`
  9578. if cd $withval; then withval=`pwd`; cd $owd; fi
  9579. PCAP_CFLAGS="-I$withval -I$withval/bpf"
  9580. diff -Nur libnids-1.23.orig/src/config.h.in libnids-1.23/src/config.h.in
  9581. --- libnids-1.23.orig/src/config.h.in 2006-05-01 19:14:51.000000000 +0200
  9582. +++ libnids-1.23/src/config.h.in 2010-02-18 22:19:12.812857022 +0100
  9583. @@ -1,5 +1,8 @@
  9584. /* src/config.h.in. Generated from configure.in by autoheader. */
  9585. +/* Define if building universal (internal helper macro) */
  9586. +#undef AC_APPLE_UNIVERSAL_BUILD
  9587. +
  9588. /* Define to 1 if you have the `gettimeofday' function. */
  9589. #undef HAVE_GETTIMEOFDAY
  9590. @@ -60,6 +63,9 @@
  9591. /* Define to the one symbol short name of this package. */
  9592. #undef PACKAGE_TARNAME
  9593. +/* Define to the home page for this package. */
  9594. +#undef PACKAGE_URL
  9595. +
  9596. /* Define to the version of this package. */
  9597. #undef PACKAGE_VERSION
  9598. @@ -69,9 +75,17 @@
  9599. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  9600. #undef TIME_WITH_SYS_TIME
  9601. -/* Define to 1 if your processor stores words with the most significant byte
  9602. - first (like Motorola and SPARC, unlike Intel and VAX). */
  9603. -#undef WORDS_BIGENDIAN
  9604. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  9605. + significant byte first (like Motorola and SPARC, unlike Intel). */
  9606. +#if defined AC_APPLE_UNIVERSAL_BUILD
  9607. +# if defined __BIG_ENDIAN__
  9608. +# define WORDS_BIGENDIAN 1
  9609. +# endif
  9610. +#else
  9611. +# ifndef WORDS_BIGENDIAN
  9612. +# undef WORDS_BIGENDIAN
  9613. +# endif
  9614. +#endif
  9615. /* Define to empty if `const' does not conform to ANSI C. */
  9616. #undef const
  9617. diff -Nur libnids-1.23.orig/src/config.h.in~ libnids-1.23/src/config.h.in~
  9618. --- libnids-1.23.orig/src/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  9619. +++ libnids-1.23/src/config.h.in~ 2010-02-18 22:18:55.584855934 +0100
  9620. @@ -0,0 +1,97 @@
  9621. +/* src/config.h.in. Generated from configure.in by autoheader. */
  9622. +
  9623. +/* Define if building universal (internal helper macro) */
  9624. +#undef AC_APPLE_UNIVERSAL_BUILD
  9625. +
  9626. +/* Define to 1 if you have the `gettimeofday' function. */
  9627. +#undef HAVE_GETTIMEOFDAY
  9628. +
  9629. +/* Define to 1 if you have the <inttypes.h> header file. */
  9630. +#undef HAVE_INTTYPES_H
  9631. +
  9632. +/* Define to 1 if you have the `gthread-2.0' library (-lgthread-2.0). */
  9633. +#undef HAVE_LIBGTHREAD_2_0
  9634. +
  9635. +/* Define to 1 if you have the `nsl' library (-lnsl). */
  9636. +#undef HAVE_LIBNSL
  9637. +
  9638. +/* Define to 1 if you have the `socket' library (-lsocket). */
  9639. +#undef HAVE_LIBSOCKET
  9640. +
  9641. +/* Define to 1 if you have the <memory.h> header file. */
  9642. +#undef HAVE_MEMORY_H
  9643. +
  9644. +/* Define to 1 if you have the <stdint.h> header file. */
  9645. +#undef HAVE_STDINT_H
  9646. +
  9647. +/* Define to 1 if you have the <stdlib.h> header file. */
  9648. +#undef HAVE_STDLIB_H
  9649. +
  9650. +/* Define to 1 if you have the <strings.h> header file. */
  9651. +#undef HAVE_STRINGS_H
  9652. +
  9653. +/* Define to 1 if you have the <string.h> header file. */
  9654. +#undef HAVE_STRING_H
  9655. +
  9656. +/* Define to 1 if you have the <syslog.h> header file. */
  9657. +#undef HAVE_SYSLOG_H
  9658. +
  9659. +/* Define to 1 if you have the <sys/stat.h> header file. */
  9660. +#undef HAVE_SYS_STAT_H
  9661. +
  9662. +/* Define to 1 if you have the <sys/time.h> header file. */
  9663. +#undef HAVE_SYS_TIME_H
  9664. +
  9665. +/* Define to 1 if you have the <sys/types.h> header file. */
  9666. +#undef HAVE_SYS_TYPES_H
  9667. +
  9668. +/* Define to 1 if you have the <unistd.h> header file. */
  9669. +#undef HAVE_UNISTD_H
  9670. +
  9671. +/* if unaligned access fails */
  9672. +#undef LBL_ALIGN
  9673. +
  9674. +/* Define to the address where bug reports for this package should be sent. */
  9675. +#undef PACKAGE_BUGREPORT
  9676. +
  9677. +/* Define to the full name of this package. */
  9678. +#undef PACKAGE_NAME
  9679. +
  9680. +/* Define to the full name and version of this package. */
  9681. +#undef PACKAGE_STRING
  9682. +
  9683. +/* Define to the one symbol short name of this package. */
  9684. +#undef PACKAGE_TARNAME
  9685. +
  9686. +/* Define to the home page for this package. */
  9687. +#undef PACKAGE_URL
  9688. +
  9689. +/* Define to the version of this package. */
  9690. +#undef PACKAGE_VERSION
  9691. +
  9692. +/* Define to 1 if you have the ANSI C header files. */
  9693. +#undef STDC_HEADERS
  9694. +
  9695. +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  9696. +#undef TIME_WITH_SYS_TIME
  9697. +
  9698. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  9699. + significant byte first (like Motorola and SPARC, unlike Intel). */
  9700. +#if defined AC_APPLE_UNIVERSAL_BUILD
  9701. +# if defined __BIG_ENDIAN__
  9702. +# define WORDS_BIGENDIAN 1
  9703. +# endif
  9704. +#else
  9705. +# ifndef WORDS_BIGENDIAN
  9706. +# undef WORDS_BIGENDIAN
  9707. +# endif
  9708. +#endif
  9709. +
  9710. +/* Define to empty if `const' does not conform to ANSI C. */
  9711. +#undef const
  9712. +
  9713. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  9714. + calls it, or to nothing if 'inline' is not supported under any name. */
  9715. +#ifndef __cplusplus
  9716. +#undef inline
  9717. +#endif