rtpproxy.patch 249 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859
  1. diff --git a/Makefile.am b/Makefile.am
  2. index 258de5e..a61bc57 100644
  3. --- a/Makefile.am
  4. +++ b/Makefile.am
  5. @@ -5,7 +5,7 @@ rtpproxy_SOURCES=main.c rtp.h rtp_server.c rtp_server.h \
  6. rtpp_command.c rtpp_command.h rtpp_log.c rtpp_network.h rtpp_network.c \
  7. rtpp_syslog_async.c rtpp_syslog_async.h rtpp_notify.c rtpp_notify.h \
  8. rtpp_command_async.h rtpp_command_async.c
  9. -rtpproxy_LDADD=-lm -lpthread
  10. +rtpproxy_LDADD=-lm -lpthread @LIBS_XMLRPC@
  11. dist_man_MANS=rtpproxy.8
  12. makeann_SOURCES=makeann.c rtp.h g711.h
  13. makeann_LDADD=@LIBS_G729@ @LIBS_GSM@
  14. diff --git a/Makefile.in b/Makefile.in
  15. index 47c14fd..cdb5e43 100644
  16. --- a/Makefile.in
  17. +++ b/Makefile.in
  18. @@ -217,7 +217,7 @@ rtpproxy_SOURCES = main.c rtp.h rtp_server.c rtp_server.h \
  19. rtpp_syslog_async.c rtpp_syslog_async.h rtpp_notify.c rtpp_notify.h \
  20. rtpp_command_async.h rtpp_command_async.c
  21. -rtpproxy_LDADD = -lm -lpthread
  22. +rtpproxy_LDADD = -lm -lpthread @LIBS_XMLRPC@
  23. dist_man_MANS = rtpproxy.8
  24. makeann_SOURCES = makeann.c rtp.h g711.h
  25. makeann_LDADD = @LIBS_G729@ @LIBS_GSM@
  26. diff --git a/aclocal.m4 b/aclocal.m4
  27. index b36bc80..0970c41 100644
  28. --- a/aclocal.m4
  29. +++ b/aclocal.m4
  30. @@ -13,8 +13,8 @@
  31. m4_ifndef([AC_AUTOCONF_VERSION],
  32. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  33. -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  34. -[m4_warning([this file was generated for autoconf 2.68.
  35. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
  36. +[m4_warning([this file was generated for autoconf 2.67.
  37. You have another version of autoconf. It may work, but is not guaranteed to.
  38. If you have problems, you may need to regenerate the build system entirely.
  39. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  40. diff --git a/config.h.in b/config.h.in
  41. index cd0c23a..87491e3 100644
  42. --- a/config.h.in
  43. +++ b/config.h.in
  44. @@ -14,6 +14,9 @@
  45. /* Define if you have libgsm library installed */
  46. #undef ENABLE_GSM
  47. +/* Define if you have xmlrpc library installed */
  48. +#undef ENABLE_XMLRPC
  49. +
  50. /* Define to 1 if you have `alloca', as a function or macro. */
  51. #undef HAVE_ALLOCA
  52. diff --git a/configure b/configure
  53. index 041c968..bcfa3e7 100755
  54. --- a/configure
  55. +++ b/configure
  56. @@ -1,20 +1,24 @@
  57. #! /bin/sh
  58. # Guess values for system-dependent variables and create Makefiles.
  59. -# Generated by GNU Autoconf 2.62 for rtpproxy 1.3.alpha.200903230.
  60. +# Generated by GNU Autoconf 2.67 for rtpproxy 1.3.alpha.200903230.
  61. #
  62. # Report bugs to <[email protected]>.
  63. #
  64. +#
  65. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  66. -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  67. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  68. +# Foundation, Inc.
  69. +#
  70. +#
  71. # This configure script is free software; the Free Software Foundation
  72. # gives unlimited permission to copy, distribute and modify it.
  73. -## --------------------- ##
  74. -## M4sh Initialization. ##
  75. -## --------------------- ##
  76. +## -------------------- ##
  77. +## M4sh Initialization. ##
  78. +## -------------------- ##
  79. # Be more Bourne compatible
  80. DUALCASE=1; export DUALCASE # for MKS sh
  81. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  82. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  83. emulate sh
  84. NULLCMD=:
  85. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  86. @@ -22,23 +26,15 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  87. alias -g '${1+"$@"}'='"$@"'
  88. setopt NO_GLOB_SUBST
  89. else
  90. - case `(set -o) 2>/dev/null` in
  91. - *posix*) set -o posix ;;
  92. + case `(set -o) 2>/dev/null` in #(
  93. + *posix*) :
  94. + set -o posix ;; #(
  95. + *) :
  96. + ;;
  97. esac
  98. -
  99. fi
  100. -
  101. -
  102. -# PATH needs CR
  103. -# Avoid depending upon Character Ranges.
  104. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  105. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  106. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  107. -as_cr_digits='0123456789'
  108. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  109. -
  110. as_nl='
  111. '
  112. export as_nl
  113. @@ -46,7 +42,13 @@ export as_nl
  114. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  115. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  116. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  117. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  118. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  119. +# but without wasting forks for bash or zsh.
  120. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  121. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  122. + as_echo='print -r --'
  123. + as_echo_n='print -rn --'
  124. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  125. as_echo='printf %s\n'
  126. as_echo_n='printf %s'
  127. else
  128. @@ -57,7 +59,7 @@ else
  129. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  130. as_echo_n_body='eval
  131. arg=$1;
  132. - case $arg in
  133. + case $arg in #(
  134. *"$as_nl"*)
  135. expr "X$arg" : "X\\(.*\\)$as_nl";
  136. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  137. @@ -80,13 +82,6 @@ if test "${PATH_SEPARATOR+set}" != set; then
  138. }
  139. fi
  140. -# Support unset when possible.
  141. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  142. - as_unset=unset
  143. -else
  144. - as_unset=false
  145. -fi
  146. -
  147. # IFS
  148. # We need space, tab and new line, in precisely that order. Quoting is
  149. @@ -96,15 +91,15 @@ fi
  150. IFS=" "" $as_nl"
  151. # Find who we are. Look in the path if we contain no directory separator.
  152. -case $0 in
  153. +case $0 in #((
  154. *[\\/]* ) as_myself=$0 ;;
  155. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  156. for as_dir in $PATH
  157. do
  158. IFS=$as_save_IFS
  159. test -z "$as_dir" && as_dir=.
  160. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  161. -done
  162. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  163. + done
  164. IFS=$as_save_IFS
  165. ;;
  166. @@ -116,12 +111,16 @@ if test "x$as_myself" = x; then
  167. fi
  168. if test ! -f "$as_myself"; then
  169. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  170. - { (exit 1); exit 1; }
  171. + exit 1
  172. fi
  173. -# Work around bugs in pre-3.0 UWIN ksh.
  174. -for as_var in ENV MAIL MAILPATH
  175. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  176. +# Unset variables that we do not need and which cause bugs (e.g. in
  177. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  178. +# suppresses any "Segmentation fault" message there. '((' could
  179. +# trigger a bug in pdksh 5.2.14.
  180. +for as_var in BASH_ENV ENV MAIL MAILPATH
  181. +do eval test x\${$as_var+set} = xset \
  182. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  183. done
  184. PS1='$ '
  185. PS2='> '
  186. @@ -133,330 +132,300 @@ export LC_ALL
  187. LANGUAGE=C
  188. export LANGUAGE
  189. -# Required to use basename.
  190. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  191. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  192. - as_expr=expr
  193. -else
  194. - as_expr=false
  195. -fi
  196. -
  197. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  198. - as_basename=basename
  199. -else
  200. - as_basename=false
  201. -fi
  202. -
  203. -
  204. -# Name of the executable.
  205. -as_me=`$as_basename -- "$0" ||
  206. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  207. - X"$0" : 'X\(//\)$' \| \
  208. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  209. -$as_echo X/"$0" |
  210. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  211. - s//\1/
  212. - q
  213. - }
  214. - /^X\/\(\/\/\)$/{
  215. - s//\1/
  216. - q
  217. - }
  218. - /^X\/\(\/\).*/{
  219. - s//\1/
  220. - q
  221. - }
  222. - s/.*/./; q'`
  223. -
  224. # CDPATH.
  225. -$as_unset CDPATH
  226. -
  227. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  228. if test "x$CONFIG_SHELL" = x; then
  229. - if (eval ":") 2>/dev/null; then
  230. - as_have_required=yes
  231. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  232. + emulate sh
  233. + NULLCMD=:
  234. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  235. + # is contrary to our usage. Disable this feature.
  236. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  237. + setopt NO_GLOB_SUBST
  238. else
  239. - as_have_required=no
  240. + case \`(set -o) 2>/dev/null\` in #(
  241. + *posix*) :
  242. + set -o posix ;; #(
  243. + *) :
  244. + ;;
  245. +esac
  246. fi
  247. -
  248. - if test $as_have_required = yes && (eval ":
  249. -(as_func_return () {
  250. - (exit \$1)
  251. -}
  252. -as_func_success () {
  253. - as_func_return 0
  254. -}
  255. -as_func_failure () {
  256. - as_func_return 1
  257. -}
  258. -as_func_ret_success () {
  259. - return 0
  260. -}
  261. -as_func_ret_failure () {
  262. - return 1
  263. -}
  264. +"
  265. + as_required="as_fn_return () { (exit \$1); }
  266. +as_fn_success () { as_fn_return 0; }
  267. +as_fn_failure () { as_fn_return 1; }
  268. +as_fn_ret_success () { return 0; }
  269. +as_fn_ret_failure () { return 1; }
  270. exitcode=0
  271. -if as_func_success; then
  272. - :
  273. -else
  274. - exitcode=1
  275. - echo as_func_success failed.
  276. -fi
  277. -
  278. -if as_func_failure; then
  279. - exitcode=1
  280. - echo as_func_failure succeeded.
  281. -fi
  282. -
  283. -if as_func_ret_success; then
  284. - :
  285. -else
  286. - exitcode=1
  287. - echo as_func_ret_success failed.
  288. -fi
  289. -
  290. -if as_func_ret_failure; then
  291. - exitcode=1
  292. - echo as_func_ret_failure succeeded.
  293. -fi
  294. -
  295. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  296. - :
  297. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  298. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  299. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  300. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  301. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  302. +
  303. +else
  304. + exitcode=1; echo positional parameters were not saved.
  305. +fi
  306. +test x\$exitcode = x0 || exit 1"
  307. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  308. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  309. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  310. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  311. +test \$(( 1 + 1 )) = 2 || exit 1"
  312. + if (eval "$as_required") 2>/dev/null; then :
  313. + as_have_required=yes
  314. else
  315. - exitcode=1
  316. - echo positional parameters were not saved.
  317. + as_have_required=no
  318. fi
  319. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  320. -test \$exitcode = 0) || { (exit 1); exit 1; }
  321. -
  322. -(
  323. - as_lineno_1=\$LINENO
  324. - as_lineno_2=\$LINENO
  325. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  326. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  327. -") 2> /dev/null; then
  328. - :
  329. else
  330. - as_candidate_shells=
  331. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  332. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  333. +as_found=false
  334. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  335. do
  336. IFS=$as_save_IFS
  337. test -z "$as_dir" && as_dir=.
  338. - case $as_dir in
  339. + as_found=:
  340. + case $as_dir in #(
  341. /*)
  342. for as_base in sh bash ksh sh5; do
  343. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  344. + # Try only shells that exist, to save several forks.
  345. + as_shell=$as_dir/$as_base
  346. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  347. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  348. + CONFIG_SHELL=$as_shell as_have_required=yes
  349. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  350. + break 2
  351. +fi
  352. +fi
  353. done;;
  354. esac
  355. + as_found=false
  356. done
  357. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  358. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  359. + CONFIG_SHELL=$SHELL as_have_required=yes
  360. +fi; }
  361. IFS=$as_save_IFS
  362. - for as_shell in $as_candidate_shells $SHELL; do
  363. - # Try only shells that exist, to save several forks.
  364. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  365. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  366. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  367. - emulate sh
  368. - NULLCMD=:
  369. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  370. - # is contrary to our usage. Disable this feature.
  371. - alias -g '${1+"$@"}'='"$@"'
  372. - setopt NO_GLOB_SUBST
  373. -else
  374. - case `(set -o) 2>/dev/null` in
  375. - *posix*) set -o posix ;;
  376. -esac
  377. -
  378. -fi
  379. -
  380. -
  381. -:
  382. -_ASEOF
  383. -}; then
  384. - CONFIG_SHELL=$as_shell
  385. - as_have_required=yes
  386. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  387. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  388. - emulate sh
  389. - NULLCMD=:
  390. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  391. - # is contrary to our usage. Disable this feature.
  392. - alias -g '${1+"$@"}'='"$@"'
  393. - setopt NO_GLOB_SUBST
  394. -else
  395. - case `(set -o) 2>/dev/null` in
  396. - *posix*) set -o posix ;;
  397. -esac
  398. -
  399. -fi
  400. -
  401. -
  402. -:
  403. -(as_func_return () {
  404. - (exit $1)
  405. -}
  406. -as_func_success () {
  407. - as_func_return 0
  408. -}
  409. -as_func_failure () {
  410. - as_func_return 1
  411. -}
  412. -as_func_ret_success () {
  413. - return 0
  414. -}
  415. -as_func_ret_failure () {
  416. - return 1
  417. -}
  418. -
  419. -exitcode=0
  420. -if as_func_success; then
  421. - :
  422. -else
  423. - exitcode=1
  424. - echo as_func_success failed.
  425. -fi
  426. -
  427. -if as_func_failure; then
  428. - exitcode=1
  429. - echo as_func_failure succeeded.
  430. -fi
  431. -
  432. -if as_func_ret_success; then
  433. - :
  434. -else
  435. - exitcode=1
  436. - echo as_func_ret_success failed.
  437. -fi
  438. -
  439. -if as_func_ret_failure; then
  440. - exitcode=1
  441. - echo as_func_ret_failure succeeded.
  442. -fi
  443. -
  444. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  445. - :
  446. -else
  447. - exitcode=1
  448. - echo positional parameters were not saved.
  449. -fi
  450. -
  451. -test $exitcode = 0) || { (exit 1); exit 1; }
  452. -
  453. -(
  454. - as_lineno_1=$LINENO
  455. - as_lineno_2=$LINENO
  456. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  457. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  458. -
  459. -_ASEOF
  460. -}; then
  461. - break
  462. -fi
  463. -
  464. -fi
  465. -
  466. - done
  467. -
  468. - if test "x$CONFIG_SHELL" != x; then
  469. - for as_var in BASH_ENV ENV
  470. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  471. - done
  472. + if test "x$CONFIG_SHELL" != x; then :
  473. + # We cannot yet assume a decent shell, so we have to provide a
  474. + # neutralization value for shells without unset; and this also
  475. + # works around shells that cannot unset nonexistent variables.
  476. + BASH_ENV=/dev/null
  477. + ENV=/dev/null
  478. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  479. export CONFIG_SHELL
  480. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  481. fi
  482. -
  483. - if test $as_have_required = no; then
  484. - echo This script requires a shell more modern than all the
  485. - echo shells that I found on your system. Please install a
  486. - echo modern shell, or manually run the script under such a
  487. - echo shell if you do have one.
  488. - { (exit 1); exit 1; }
  489. + if test x$as_have_required = xno; then :
  490. + $as_echo "$0: This script requires a shell more modern than all"
  491. + $as_echo "$0: the shells that I found on your system."
  492. + if test x${ZSH_VERSION+set} = xset ; then
  493. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  494. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  495. + else
  496. + $as_echo "$0: Please tell [email protected] and
  497. +$0: [email protected] about your system, including any
  498. +$0: error possibly output before this message. Then install
  499. +$0: a modern shell, or manually run the script under such a
  500. +$0: shell if you do have one."
  501. + fi
  502. + exit 1
  503. fi
  504. -
  505. -
  506. fi
  507. -
  508. fi
  509. +SHELL=${CONFIG_SHELL-/bin/sh}
  510. +export SHELL
  511. +# Unset more variables known to interfere with behavior of common tools.
  512. +CLICOLOR_FORCE= GREP_OPTIONS=
  513. +unset CLICOLOR_FORCE GREP_OPTIONS
  514. +## --------------------- ##
  515. +## M4sh Shell Functions. ##
  516. +## --------------------- ##
  517. +# as_fn_unset VAR
  518. +# ---------------
  519. +# Portably unset VAR.
  520. +as_fn_unset ()
  521. +{
  522. + { eval $1=; unset $1;}
  523. +}
  524. +as_unset=as_fn_unset
  525. +# as_fn_set_status STATUS
  526. +# -----------------------
  527. +# Set $? to STATUS, without forking.
  528. +as_fn_set_status ()
  529. +{
  530. + return $1
  531. +} # as_fn_set_status
  532. -(eval "as_func_return () {
  533. - (exit \$1)
  534. -}
  535. -as_func_success () {
  536. - as_func_return 0
  537. -}
  538. -as_func_failure () {
  539. - as_func_return 1
  540. -}
  541. -as_func_ret_success () {
  542. - return 0
  543. -}
  544. -as_func_ret_failure () {
  545. - return 1
  546. -}
  547. +# as_fn_exit STATUS
  548. +# -----------------
  549. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  550. +as_fn_exit ()
  551. +{
  552. + set +e
  553. + as_fn_set_status $1
  554. + exit $1
  555. +} # as_fn_exit
  556. +
  557. +# as_fn_mkdir_p
  558. +# -------------
  559. +# Create "$as_dir" as a directory, including parents if necessary.
  560. +as_fn_mkdir_p ()
  561. +{
  562. -exitcode=0
  563. -if as_func_success; then
  564. - :
  565. + case $as_dir in #(
  566. + -*) as_dir=./$as_dir;;
  567. + esac
  568. + test -d "$as_dir" || eval $as_mkdir_p || {
  569. + as_dirs=
  570. + while :; do
  571. + case $as_dir in #(
  572. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  573. + *) as_qdir=$as_dir;;
  574. + esac
  575. + as_dirs="'$as_qdir' $as_dirs"
  576. + as_dir=`$as_dirname -- "$as_dir" ||
  577. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  578. + X"$as_dir" : 'X\(//\)[^/]' \| \
  579. + X"$as_dir" : 'X\(//\)$' \| \
  580. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  581. +$as_echo X"$as_dir" |
  582. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  583. + s//\1/
  584. + q
  585. + }
  586. + /^X\(\/\/\)[^/].*/{
  587. + s//\1/
  588. + q
  589. + }
  590. + /^X\(\/\/\)$/{
  591. + s//\1/
  592. + q
  593. + }
  594. + /^X\(\/\).*/{
  595. + s//\1/
  596. + q
  597. + }
  598. + s/.*/./; q'`
  599. + test -d "$as_dir" && break
  600. + done
  601. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  602. + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  603. +
  604. +
  605. +} # as_fn_mkdir_p
  606. +# as_fn_append VAR VALUE
  607. +# ----------------------
  608. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  609. +# advantage of any shell optimizations that allow amortized linear growth over
  610. +# repeated appends, instead of the typical quadratic growth present in naive
  611. +# implementations.
  612. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  613. + eval 'as_fn_append ()
  614. + {
  615. + eval $1+=\$2
  616. + }'
  617. else
  618. - exitcode=1
  619. - echo as_func_success failed.
  620. -fi
  621. + as_fn_append ()
  622. + {
  623. + eval $1=\$$1\$2
  624. + }
  625. +fi # as_fn_append
  626. +
  627. +# as_fn_arith ARG...
  628. +# ------------------
  629. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  630. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  631. +# must be portable across $(()) and expr.
  632. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  633. + eval 'as_fn_arith ()
  634. + {
  635. + as_val=$(( $* ))
  636. + }'
  637. +else
  638. + as_fn_arith ()
  639. + {
  640. + as_val=`expr "$@" || test $? -eq 1`
  641. + }
  642. +fi # as_fn_arith
  643. -if as_func_failure; then
  644. - exitcode=1
  645. - echo as_func_failure succeeded.
  646. -fi
  647. -if as_func_ret_success; then
  648. - :
  649. +# as_fn_error STATUS ERROR [LINENO LOG_FD]
  650. +# ----------------------------------------
  651. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  652. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  653. +# script with STATUS, using 1 if that was 0.
  654. +as_fn_error ()
  655. +{
  656. + as_status=$1; test $as_status -eq 0 && as_status=1
  657. + if test "$4"; then
  658. + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  659. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  660. + fi
  661. + $as_echo "$as_me: error: $2" >&2
  662. + as_fn_exit $as_status
  663. +} # as_fn_error
  664. +
  665. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  666. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  667. + as_expr=expr
  668. else
  669. - exitcode=1
  670. - echo as_func_ret_success failed.
  671. + as_expr=false
  672. fi
  673. -if as_func_ret_failure; then
  674. - exitcode=1
  675. - echo as_func_ret_failure succeeded.
  676. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  677. + as_basename=basename
  678. +else
  679. + as_basename=false
  680. fi
  681. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  682. - :
  683. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  684. + as_dirname=dirname
  685. else
  686. - exitcode=1
  687. - echo positional parameters were not saved.
  688. + as_dirname=false
  689. fi
  690. -test \$exitcode = 0") || {
  691. - echo No shell found that supports shell functions.
  692. - echo Please tell [email protected] about your system,
  693. - echo including any error possibly output before this message.
  694. - echo This can help us improve future autoconf versions.
  695. - echo Configuration will now proceed without shell functions.
  696. -}
  697. -
  698. +as_me=`$as_basename -- "$0" ||
  699. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  700. + X"$0" : 'X\(//\)$' \| \
  701. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  702. +$as_echo X/"$0" |
  703. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  704. + s//\1/
  705. + q
  706. + }
  707. + /^X\/\(\/\/\)$/{
  708. + s//\1/
  709. + q
  710. + }
  711. + /^X\/\(\/\).*/{
  712. + s//\1/
  713. + q
  714. + }
  715. + s/.*/./; q'`
  716. +# Avoid depending upon Character Ranges.
  717. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  718. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  719. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  720. +as_cr_digits='0123456789'
  721. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  722. - as_lineno_1=$LINENO
  723. - as_lineno_2=$LINENO
  724. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  725. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  726. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  727. - # uniformly replaced by the line number. The first 'sed' inserts a
  728. - # line-number line after each line using $LINENO; the second 'sed'
  729. - # does the real work. The second script uses 'N' to pair each
  730. - # line-number line with the line containing $LINENO, and appends
  731. - # trailing '-' during substitution so that $LINENO is not a special
  732. - # case at line end.
  733. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  734. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  735. - # E. McMahon (1931-1989) for sed's syntax. :-)
  736. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  737. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  738. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  739. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  740. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  741. sed -n '
  742. p
  743. /[$]LINENO/=
  744. @@ -473,8 +442,7 @@ test \$exitcode = 0") || {
  745. s/-\n.*//
  746. ' >$as_me.lineno &&
  747. chmod +x "$as_me.lineno" ||
  748. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  749. - { (exit 1); exit 1; }; }
  750. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  751. # Don't try to exec as it changes $[0], causing all sort of problems
  752. # (the dirname of $[0] is not the place where we might find the
  753. @@ -484,29 +452,18 @@ test \$exitcode = 0") || {
  754. exit
  755. }
  756. -
  757. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  758. - as_dirname=dirname
  759. -else
  760. - as_dirname=false
  761. -fi
  762. -
  763. ECHO_C= ECHO_N= ECHO_T=
  764. -case `echo -n x` in
  765. +case `echo -n x` in #(((((
  766. -n*)
  767. - case `echo 'x\c'` in
  768. + case `echo 'xy\c'` in
  769. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  770. - *) ECHO_C='\c';;
  771. + xy) ECHO_C='\c';;
  772. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  773. + ECHO_T=' ';;
  774. esac;;
  775. *)
  776. ECHO_N='-n';;
  777. esac
  778. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  779. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  780. - as_expr=expr
  781. -else
  782. - as_expr=false
  783. -fi
  784. rm -f conf$$ conf$$.exe conf$$.file
  785. if test -d conf$$.dir; then
  786. @@ -536,7 +493,7 @@ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  787. rmdir conf$$.dir 2>/dev/null
  788. if mkdir -p . 2>/dev/null; then
  789. - as_mkdir_p=:
  790. + as_mkdir_p='mkdir -p "$as_dir"'
  791. else
  792. test -d ./-p && rmdir ./-p
  793. as_mkdir_p=false
  794. @@ -555,10 +512,10 @@ else
  795. if test -d "$1"; then
  796. test -d "$1/.";
  797. else
  798. - case $1 in
  799. + case $1 in #(
  800. -*)set "./$1";;
  801. esac;
  802. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  803. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  804. ???[sx]*):;;*)false;;esac;fi
  805. '\'' sh
  806. '
  807. @@ -572,11 +529,11 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  808. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  809. -
  810. -exec 7<&0 </dev/null 6>&1
  811. +test -n "$DJDIR" || exec 7<&0 </dev/null
  812. +exec 6>&1
  813. # Name of the host.
  814. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  815. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  816. # so uname gets run too.
  817. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  818. @@ -591,7 +548,6 @@ cross_compiling=no
  819. subdirs=
  820. MFLAGS=
  821. MAKEFLAGS=
  822. -SHELL=${CONFIG_SHELL-/bin/sh}
  823. # Identity of this package.
  824. PACKAGE_NAME='rtpproxy'
  825. @@ -599,6 +555,7 @@ PACKAGE_TARNAME='rtpproxy'
  826. PACKAGE_VERSION='1.3.alpha.200903230'
  827. PACKAGE_STRING='rtpproxy 1.3.alpha.200903230'
  828. PACKAGE_BUGREPORT='[email protected]'
  829. +PACKAGE_URL=''
  830. ac_unique_file="main.c"
  831. # Factoring default headers for most tests.
  832. @@ -637,100 +594,106 @@ ac_includes_default="\
  833. # include <unistd.h>
  834. #endif"
  835. -ac_subst_vars='SHELL
  836. -PATH_SEPARATOR
  837. -PACKAGE_NAME
  838. -PACKAGE_TARNAME
  839. -PACKAGE_VERSION
  840. -PACKAGE_STRING
  841. -PACKAGE_BUGREPORT
  842. -exec_prefix
  843. -prefix
  844. -program_transform_name
  845. -bindir
  846. -sbindir
  847. -libexecdir
  848. -datarootdir
  849. -datadir
  850. -sysconfdir
  851. -sharedstatedir
  852. -localstatedir
  853. -includedir
  854. -oldincludedir
  855. -docdir
  856. -infodir
  857. -htmldir
  858. -dvidir
  859. -pdfdir
  860. -psdir
  861. -libdir
  862. -localedir
  863. -mandir
  864. -DEFS
  865. -ECHO_C
  866. -ECHO_N
  867. -ECHO_T
  868. -LIBS
  869. -build_alias
  870. -host_alias
  871. -target_alias
  872. -INSTALL_PROGRAM
  873. -INSTALL_SCRIPT
  874. -INSTALL_DATA
  875. -CYGPATH_W
  876. -PACKAGE
  877. -VERSION
  878. -ACLOCAL
  879. -AUTOCONF
  880. -AUTOMAKE
  881. -AUTOHEADER
  882. -MAKEINFO
  883. -install_sh
  884. -STRIP
  885. -INSTALL_STRIP_PROGRAM
  886. -mkdir_p
  887. -AWK
  888. -SET_MAKE
  889. -am__leading_dot
  890. -AMTAR
  891. -am__tar
  892. -am__untar
  893. -MAINTAINER_MODE_TRUE
  894. -MAINTAINER_MODE_FALSE
  895. -MAINT
  896. -build
  897. -build_cpu
  898. -build_vendor
  899. -build_os
  900. -host
  901. -host_cpu
  902. -host_vendor
  903. -host_os
  904. -CC
  905. -CFLAGS
  906. -LDFLAGS
  907. -CPPFLAGS
  908. -ac_ct_CC
  909. -EXEEXT
  910. -OBJEXT
  911. -DEPDIR
  912. -am__include
  913. -am__quote
  914. -AMDEP_TRUE
  915. -AMDEP_FALSE
  916. -AMDEPBACKSLASH
  917. -CCDEPMODE
  918. -am__fastdepCC_TRUE
  919. -am__fastdepCC_FALSE
  920. -CPP
  921. -GREP
  922. -EGREP
  923. -ALLOCA
  924. -LIBOBJS
  925. -AM_CFLAGS
  926. -LIBS_GSM
  927. +ac_subst_vars='am__EXEEXT_FALSE
  928. +am__EXEEXT_TRUE
  929. +LTLIBOBJS
  930. +LIBS_XMLRPC
  931. LIBS_G729
  932. -LTLIBOBJS'
  933. +LIBS_GSM
  934. +AM_CFLAGS
  935. +LIBOBJS
  936. +ALLOCA
  937. +EGREP
  938. +GREP
  939. +CPP
  940. +am__fastdepCC_FALSE
  941. +am__fastdepCC_TRUE
  942. +CCDEPMODE
  943. +AMDEPBACKSLASH
  944. +AMDEP_FALSE
  945. +AMDEP_TRUE
  946. +am__quote
  947. +am__include
  948. +DEPDIR
  949. +OBJEXT
  950. +EXEEXT
  951. +ac_ct_CC
  952. +CPPFLAGS
  953. +LDFLAGS
  954. +CFLAGS
  955. +CC
  956. +host_os
  957. +host_vendor
  958. +host_cpu
  959. +host
  960. +build_os
  961. +build_vendor
  962. +build_cpu
  963. +build
  964. +MAINT
  965. +MAINTAINER_MODE_FALSE
  966. +MAINTAINER_MODE_TRUE
  967. +am__untar
  968. +am__tar
  969. +AMTAR
  970. +am__leading_dot
  971. +SET_MAKE
  972. +AWK
  973. +mkdir_p
  974. +MKDIR_P
  975. +INSTALL_STRIP_PROGRAM
  976. +STRIP
  977. +install_sh
  978. +MAKEINFO
  979. +AUTOHEADER
  980. +AUTOMAKE
  981. +AUTOCONF
  982. +ACLOCAL
  983. +VERSION
  984. +PACKAGE
  985. +CYGPATH_W
  986. +am__isrc
  987. +INSTALL_DATA
  988. +INSTALL_SCRIPT
  989. +INSTALL_PROGRAM
  990. +target_alias
  991. +host_alias
  992. +build_alias
  993. +LIBS
  994. +ECHO_T
  995. +ECHO_N
  996. +ECHO_C
  997. +DEFS
  998. +mandir
  999. +localedir
  1000. +libdir
  1001. +psdir
  1002. +pdfdir
  1003. +dvidir
  1004. +htmldir
  1005. +infodir
  1006. +docdir
  1007. +oldincludedir
  1008. +includedir
  1009. +localstatedir
  1010. +sharedstatedir
  1011. +sysconfdir
  1012. +datadir
  1013. +datarootdir
  1014. +libexecdir
  1015. +sbindir
  1016. +bindir
  1017. +program_transform_name
  1018. +prefix
  1019. +exec_prefix
  1020. +PACKAGE_URL
  1021. +PACKAGE_BUGREPORT
  1022. +PACKAGE_STRING
  1023. +PACKAGE_VERSION
  1024. +PACKAGE_TARNAME
  1025. +PACKAGE_NAME
  1026. +PATH_SEPARATOR
  1027. +SHELL'
  1028. ac_subst_files=''
  1029. ac_user_opts='
  1030. enable_option_checking
  1031. @@ -808,8 +771,9 @@ do
  1032. fi
  1033. case $ac_option in
  1034. - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1035. - *) ac_optarg=yes ;;
  1036. + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1037. + *=) ac_optarg= ;;
  1038. + *) ac_optarg=yes ;;
  1039. esac
  1040. # Accept the important Cygnus configure options, so we can diagnose typos.
  1041. @@ -854,8 +818,7 @@ do
  1042. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1043. # Reject names that are not valid shell variable names.
  1044. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1045. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1046. - { (exit 1); exit 1; }; }
  1047. + as_fn_error $? "invalid feature name: $ac_useropt"
  1048. ac_useropt_orig=$ac_useropt
  1049. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1050. case $ac_user_opts in
  1051. @@ -881,8 +844,7 @@ do
  1052. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1053. # Reject names that are not valid shell variable names.
  1054. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1055. - { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1056. - { (exit 1); exit 1; }; }
  1057. + as_fn_error $? "invalid feature name: $ac_useropt"
  1058. ac_useropt_orig=$ac_useropt
  1059. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1060. case $ac_user_opts in
  1061. @@ -1086,8 +1048,7 @@ do
  1062. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1063. # Reject names that are not valid shell variable names.
  1064. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1065. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1066. - { (exit 1); exit 1; }; }
  1067. + as_fn_error $? "invalid package name: $ac_useropt"
  1068. ac_useropt_orig=$ac_useropt
  1069. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1070. case $ac_user_opts in
  1071. @@ -1103,8 +1064,7 @@ do
  1072. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1073. # Reject names that are not valid shell variable names.
  1074. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1075. - { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1076. - { (exit 1); exit 1; }; }
  1077. + as_fn_error $? "invalid package name: $ac_useropt"
  1078. ac_useropt_orig=$ac_useropt
  1079. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1080. case $ac_user_opts in
  1081. @@ -1134,17 +1094,17 @@ do
  1082. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1083. x_libraries=$ac_optarg ;;
  1084. - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1085. -Try \`$0 --help' for more information." >&2
  1086. - { (exit 1); exit 1; }; }
  1087. + -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1088. +Try \`$0 --help' for more information"
  1089. ;;
  1090. *=*)
  1091. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1092. # Reject names that are not valid shell variable names.
  1093. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1094. - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1095. - { (exit 1); exit 1; }; }
  1096. + case $ac_envvar in #(
  1097. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  1098. + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1099. + esac
  1100. eval $ac_envvar=\$ac_optarg
  1101. export $ac_envvar ;;
  1102. @@ -1161,16 +1121,14 @@ done
  1103. if test -n "$ac_prev"; then
  1104. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1105. - { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1106. - { (exit 1); exit 1; }; }
  1107. + as_fn_error $? "missing argument to $ac_option"
  1108. fi
  1109. if test -n "$ac_unrecognized_opts"; then
  1110. case $enable_option_checking in
  1111. no) ;;
  1112. - fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
  1113. - { (exit 1); exit 1; }; } ;;
  1114. - *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1115. + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1116. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1117. esac
  1118. fi
  1119. @@ -1192,8 +1150,7 @@ do
  1120. [\\/$]* | ?:[\\/]* ) continue;;
  1121. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1122. esac
  1123. - { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1124. - { (exit 1); exit 1; }; }
  1125. + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1126. done
  1127. # There might be people who depend on the old broken behavior: `$host'
  1128. @@ -1207,8 +1164,8 @@ target=$target_alias
  1129. if test "x$host_alias" != x; then
  1130. if test "x$build_alias" = x; then
  1131. cross_compiling=maybe
  1132. - $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1133. - If a cross compiler is detected then cross compile mode will be used." >&2
  1134. + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1135. + If a cross compiler is detected then cross compile mode will be used" >&2
  1136. elif test "x$build_alias" != "x$host_alias"; then
  1137. cross_compiling=yes
  1138. fi
  1139. @@ -1223,11 +1180,9 @@ test "$silent" = yes && exec 6>/dev/null
  1140. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1141. ac_ls_di=`ls -di .` &&
  1142. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1143. - { $as_echo "$as_me: error: Working directory cannot be determined" >&2
  1144. - { (exit 1); exit 1; }; }
  1145. + as_fn_error $? "working directory cannot be determined"
  1146. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1147. - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1148. - { (exit 1); exit 1; }; }
  1149. + as_fn_error $? "pwd does not report name of working directory"
  1150. # Find the source files, if location was not specified.
  1151. @@ -1266,13 +1221,11 @@ else
  1152. fi
  1153. if test ! -r "$srcdir/$ac_unique_file"; then
  1154. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1155. - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1156. - { (exit 1); exit 1; }; }
  1157. + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1158. fi
  1159. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1160. ac_abs_confdir=`(
  1161. - cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1162. - { (exit 1); exit 1; }; }
  1163. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1164. pwd)`
  1165. # When building in place, set srcdir=.
  1166. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1167. @@ -1312,7 +1265,7 @@ Configuration:
  1168. --help=short display options specific to this package
  1169. --help=recursive display the short help of all the included packages
  1170. -V, --version display version information and exit
  1171. - -q, --quiet, --silent do not print \`checking...' messages
  1172. + -q, --quiet, --silent do not print \`checking ...' messages
  1173. --cache-file=FILE cache test results in FILE [disabled]
  1174. -C, --config-cache alias for \`--cache-file=config.cache'
  1175. -n, --no-create do not create output files
  1176. @@ -1387,7 +1340,7 @@ Some influential environment variables:
  1177. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1178. nonstandard directory <lib dir>
  1179. LIBS libraries to pass to the linker, e.g. -l<library>
  1180. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1181. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1182. you have headers in a nonstandard directory <include dir>
  1183. CPP C preprocessor
  1184. @@ -1458,21 +1411,433 @@ test -n "$ac_init_help" && exit $ac_status
  1185. if $ac_init_version; then
  1186. cat <<\_ACEOF
  1187. rtpproxy configure 1.3.alpha.200903230
  1188. -generated by GNU Autoconf 2.62
  1189. +generated by GNU Autoconf 2.67
  1190. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1191. -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1192. +Copyright (C) 2010 Free Software Foundation, Inc.
  1193. This configure script is free software; the Free Software Foundation
  1194. gives unlimited permission to copy, distribute and modify it.
  1195. _ACEOF
  1196. exit
  1197. fi
  1198. +
  1199. +## ------------------------ ##
  1200. +## Autoconf initialization. ##
  1201. +## ------------------------ ##
  1202. +
  1203. +# ac_fn_c_try_compile LINENO
  1204. +# --------------------------
  1205. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  1206. +ac_fn_c_try_compile ()
  1207. +{
  1208. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1209. + rm -f conftest.$ac_objext
  1210. + if { { ac_try="$ac_compile"
  1211. +case "(($ac_try" in
  1212. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1213. + *) ac_try_echo=$ac_try;;
  1214. +esac
  1215. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1216. +$as_echo "$ac_try_echo"; } >&5
  1217. + (eval "$ac_compile") 2>conftest.err
  1218. + ac_status=$?
  1219. + if test -s conftest.err; then
  1220. + grep -v '^ *+' conftest.err >conftest.er1
  1221. + cat conftest.er1 >&5
  1222. + mv -f conftest.er1 conftest.err
  1223. + fi
  1224. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1225. + test $ac_status = 0; } && {
  1226. + test -z "$ac_c_werror_flag" ||
  1227. + test ! -s conftest.err
  1228. + } && test -s conftest.$ac_objext; then :
  1229. + ac_retval=0
  1230. +else
  1231. + $as_echo "$as_me: failed program was:" >&5
  1232. +sed 's/^/| /' conftest.$ac_ext >&5
  1233. +
  1234. + ac_retval=1
  1235. +fi
  1236. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1237. + as_fn_set_status $ac_retval
  1238. +
  1239. +} # ac_fn_c_try_compile
  1240. +
  1241. +# ac_fn_c_try_cpp LINENO
  1242. +# ----------------------
  1243. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1244. +ac_fn_c_try_cpp ()
  1245. +{
  1246. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1247. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  1248. +case "(($ac_try" in
  1249. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1250. + *) ac_try_echo=$ac_try;;
  1251. +esac
  1252. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1253. +$as_echo "$ac_try_echo"; } >&5
  1254. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1255. + ac_status=$?
  1256. + if test -s conftest.err; then
  1257. + grep -v '^ *+' conftest.err >conftest.er1
  1258. + cat conftest.er1 >&5
  1259. + mv -f conftest.er1 conftest.err
  1260. + fi
  1261. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1262. + test $ac_status = 0; } > conftest.i && {
  1263. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1264. + test ! -s conftest.err
  1265. + }; then :
  1266. + ac_retval=0
  1267. +else
  1268. + $as_echo "$as_me: failed program was:" >&5
  1269. +sed 's/^/| /' conftest.$ac_ext >&5
  1270. +
  1271. + ac_retval=1
  1272. +fi
  1273. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1274. + as_fn_set_status $ac_retval
  1275. +
  1276. +} # ac_fn_c_try_cpp
  1277. +
  1278. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1279. +# -------------------------------------------------------
  1280. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1281. +# the include files in INCLUDES and setting the cache variable VAR
  1282. +# accordingly.
  1283. +ac_fn_c_check_header_mongrel ()
  1284. +{
  1285. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1286. + if eval "test \"\${$3+set}\"" = set; then :
  1287. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1288. +$as_echo_n "checking for $2... " >&6; }
  1289. +if eval "test \"\${$3+set}\"" = set; then :
  1290. + $as_echo_n "(cached) " >&6
  1291. +fi
  1292. +eval ac_res=\$$3
  1293. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1294. +$as_echo "$ac_res" >&6; }
  1295. +else
  1296. + # Is the header compilable?
  1297. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1298. +$as_echo_n "checking $2 usability... " >&6; }
  1299. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1300. +/* end confdefs.h. */
  1301. +$4
  1302. +#include <$2>
  1303. +_ACEOF
  1304. +if ac_fn_c_try_compile "$LINENO"; then :
  1305. + ac_header_compiler=yes
  1306. +else
  1307. + ac_header_compiler=no
  1308. +fi
  1309. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1311. +$as_echo "$ac_header_compiler" >&6; }
  1312. +
  1313. +# Is the header present?
  1314. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1315. +$as_echo_n "checking $2 presence... " >&6; }
  1316. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1317. +/* end confdefs.h. */
  1318. +#include <$2>
  1319. +_ACEOF
  1320. +if ac_fn_c_try_cpp "$LINENO"; then :
  1321. + ac_header_preproc=yes
  1322. +else
  1323. + ac_header_preproc=no
  1324. +fi
  1325. +rm -f conftest.err conftest.i conftest.$ac_ext
  1326. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1327. +$as_echo "$ac_header_preproc" >&6; }
  1328. +
  1329. +# So? What about this header?
  1330. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1331. + yes:no: )
  1332. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1333. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1334. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1335. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1336. + ;;
  1337. + no:yes:* )
  1338. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1339. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1340. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1341. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1342. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1343. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1344. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1345. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1346. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1347. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1348. +( $as_echo "## ------------------------------------ ##
  1349. +## Report this to [email protected] ##
  1350. +## ------------------------------------ ##"
  1351. + ) | sed "s/^/$as_me: WARNING: /" >&2
  1352. + ;;
  1353. +esac
  1354. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1355. +$as_echo_n "checking for $2... " >&6; }
  1356. +if eval "test \"\${$3+set}\"" = set; then :
  1357. + $as_echo_n "(cached) " >&6
  1358. +else
  1359. + eval "$3=\$ac_header_compiler"
  1360. +fi
  1361. +eval ac_res=\$$3
  1362. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1363. +$as_echo "$ac_res" >&6; }
  1364. +fi
  1365. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1366. +
  1367. +} # ac_fn_c_check_header_mongrel
  1368. +
  1369. +# ac_fn_c_try_run LINENO
  1370. +# ----------------------
  1371. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1372. +# that executables *can* be run.
  1373. +ac_fn_c_try_run ()
  1374. +{
  1375. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1376. + if { { ac_try="$ac_link"
  1377. +case "(($ac_try" in
  1378. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1379. + *) ac_try_echo=$ac_try;;
  1380. +esac
  1381. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1382. +$as_echo "$ac_try_echo"; } >&5
  1383. + (eval "$ac_link") 2>&5
  1384. + ac_status=$?
  1385. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1386. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1387. + { { case "(($ac_try" in
  1388. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1389. + *) ac_try_echo=$ac_try;;
  1390. +esac
  1391. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1392. +$as_echo "$ac_try_echo"; } >&5
  1393. + (eval "$ac_try") 2>&5
  1394. + ac_status=$?
  1395. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1396. + test $ac_status = 0; }; }; then :
  1397. + ac_retval=0
  1398. +else
  1399. + $as_echo "$as_me: program exited with status $ac_status" >&5
  1400. + $as_echo "$as_me: failed program was:" >&5
  1401. +sed 's/^/| /' conftest.$ac_ext >&5
  1402. +
  1403. + ac_retval=$ac_status
  1404. +fi
  1405. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1406. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1407. + as_fn_set_status $ac_retval
  1408. +
  1409. +} # ac_fn_c_try_run
  1410. +
  1411. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1412. +# -------------------------------------------------------
  1413. +# Tests whether HEADER exists and can be compiled using the include files in
  1414. +# INCLUDES, setting the cache variable VAR accordingly.
  1415. +ac_fn_c_check_header_compile ()
  1416. +{
  1417. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1418. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1419. +$as_echo_n "checking for $2... " >&6; }
  1420. +if eval "test \"\${$3+set}\"" = set; then :
  1421. + $as_echo_n "(cached) " >&6
  1422. +else
  1423. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1424. +/* end confdefs.h. */
  1425. +$4
  1426. +#include <$2>
  1427. +_ACEOF
  1428. +if ac_fn_c_try_compile "$LINENO"; then :
  1429. + eval "$3=yes"
  1430. +else
  1431. + eval "$3=no"
  1432. +fi
  1433. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1434. +fi
  1435. +eval ac_res=\$$3
  1436. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1437. +$as_echo "$ac_res" >&6; }
  1438. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1439. +
  1440. +} # ac_fn_c_check_header_compile
  1441. +
  1442. +# ac_fn_c_try_link LINENO
  1443. +# -----------------------
  1444. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  1445. +ac_fn_c_try_link ()
  1446. +{
  1447. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1448. + rm -f conftest.$ac_objext conftest$ac_exeext
  1449. + if { { ac_try="$ac_link"
  1450. +case "(($ac_try" in
  1451. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1452. + *) ac_try_echo=$ac_try;;
  1453. +esac
  1454. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1455. +$as_echo "$ac_try_echo"; } >&5
  1456. + (eval "$ac_link") 2>conftest.err
  1457. + ac_status=$?
  1458. + if test -s conftest.err; then
  1459. + grep -v '^ *+' conftest.err >conftest.er1
  1460. + cat conftest.er1 >&5
  1461. + mv -f conftest.er1 conftest.err
  1462. + fi
  1463. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1464. + test $ac_status = 0; } && {
  1465. + test -z "$ac_c_werror_flag" ||
  1466. + test ! -s conftest.err
  1467. + } && test -s conftest$ac_exeext && {
  1468. + test "$cross_compiling" = yes ||
  1469. + $as_test_x conftest$ac_exeext
  1470. + }; then :
  1471. + ac_retval=0
  1472. +else
  1473. + $as_echo "$as_me: failed program was:" >&5
  1474. +sed 's/^/| /' conftest.$ac_ext >&5
  1475. +
  1476. + ac_retval=1
  1477. +fi
  1478. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1479. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1480. + # interfere with the next link command; also delete a directory that is
  1481. + # left behind by Apple's compiler. We do this before executing the actions.
  1482. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1483. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1484. + as_fn_set_status $ac_retval
  1485. +
  1486. +} # ac_fn_c_try_link
  1487. +
  1488. +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1489. +# ----------------------------------------------------
  1490. +# Tries to find if the field MEMBER exists in type AGGR, after including
  1491. +# INCLUDES, setting cache variable VAR accordingly.
  1492. +ac_fn_c_check_member ()
  1493. +{
  1494. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1496. +$as_echo_n "checking for $2.$3... " >&6; }
  1497. +if eval "test \"\${$4+set}\"" = set; then :
  1498. + $as_echo_n "(cached) " >&6
  1499. +else
  1500. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1501. +/* end confdefs.h. */
  1502. +$5
  1503. +int
  1504. +main ()
  1505. +{
  1506. +static $2 ac_aggr;
  1507. +if (ac_aggr.$3)
  1508. +return 0;
  1509. + ;
  1510. + return 0;
  1511. +}
  1512. +_ACEOF
  1513. +if ac_fn_c_try_compile "$LINENO"; then :
  1514. + eval "$4=yes"
  1515. +else
  1516. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1517. +/* end confdefs.h. */
  1518. +$5
  1519. +int
  1520. +main ()
  1521. +{
  1522. +static $2 ac_aggr;
  1523. +if (sizeof ac_aggr.$3)
  1524. +return 0;
  1525. + ;
  1526. + return 0;
  1527. +}
  1528. +_ACEOF
  1529. +if ac_fn_c_try_compile "$LINENO"; then :
  1530. + eval "$4=yes"
  1531. +else
  1532. + eval "$4=no"
  1533. +fi
  1534. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1535. +fi
  1536. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1537. +fi
  1538. +eval ac_res=\$$4
  1539. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1540. +$as_echo "$ac_res" >&6; }
  1541. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1542. +
  1543. +} # ac_fn_c_check_member
  1544. +
  1545. +# ac_fn_c_check_func LINENO FUNC VAR
  1546. +# ----------------------------------
  1547. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  1548. +ac_fn_c_check_func ()
  1549. +{
  1550. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1551. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1552. +$as_echo_n "checking for $2... " >&6; }
  1553. +if eval "test \"\${$3+set}\"" = set; then :
  1554. + $as_echo_n "(cached) " >&6
  1555. +else
  1556. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1557. +/* end confdefs.h. */
  1558. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1559. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1560. +#define $2 innocuous_$2
  1561. +
  1562. +/* System header to define __stub macros and hopefully few prototypes,
  1563. + which can conflict with char $2 (); below.
  1564. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1565. + <limits.h> exists even on freestanding compilers. */
  1566. +
  1567. +#ifdef __STDC__
  1568. +# include <limits.h>
  1569. +#else
  1570. +# include <assert.h>
  1571. +#endif
  1572. +
  1573. +#undef $2
  1574. +
  1575. +/* Override any GCC internal prototype to avoid an error.
  1576. + Use char because int might match the return type of a GCC
  1577. + builtin and then its argument prototype would still apply. */
  1578. +#ifdef __cplusplus
  1579. +extern "C"
  1580. +#endif
  1581. +char $2 ();
  1582. +/* The GNU C library defines this for functions which it implements
  1583. + to always fail with ENOSYS. Some functions are actually named
  1584. + something starting with __ and the normal name is an alias. */
  1585. +#if defined __stub_$2 || defined __stub___$2
  1586. +choke me
  1587. +#endif
  1588. +
  1589. +int
  1590. +main ()
  1591. +{
  1592. +return $2 ();
  1593. + ;
  1594. + return 0;
  1595. +}
  1596. +_ACEOF
  1597. +if ac_fn_c_try_link "$LINENO"; then :
  1598. + eval "$3=yes"
  1599. +else
  1600. + eval "$3=no"
  1601. +fi
  1602. +rm -f core conftest.err conftest.$ac_objext \
  1603. + conftest$ac_exeext conftest.$ac_ext
  1604. +fi
  1605. +eval ac_res=\$$3
  1606. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1607. +$as_echo "$ac_res" >&6; }
  1608. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1609. +
  1610. +} # ac_fn_c_check_func
  1611. cat >config.log <<_ACEOF
  1612. This file contains any messages produced by compilers while
  1613. running configure, to aid debugging if configure makes a mistake.
  1614. It was created by rtpproxy $as_me 1.3.alpha.200903230, which was
  1615. -generated by GNU Autoconf 2.62. Invocation command line was
  1616. +generated by GNU Autoconf 2.67. Invocation command line was
  1617. $ $0 $@
  1618. @@ -1508,8 +1873,8 @@ for as_dir in $PATH
  1619. do
  1620. IFS=$as_save_IFS
  1621. test -z "$as_dir" && as_dir=.
  1622. - $as_echo "PATH: $as_dir"
  1623. -done
  1624. + $as_echo "PATH: $as_dir"
  1625. + done
  1626. IFS=$as_save_IFS
  1627. } >&5
  1628. @@ -1546,9 +1911,9 @@ do
  1629. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1630. esac
  1631. case $ac_pass in
  1632. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1633. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1634. 2)
  1635. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1636. + as_fn_append ac_configure_args1 " '$ac_arg'"
  1637. if test $ac_must_keep_next = true; then
  1638. ac_must_keep_next=false # Got value, back to normal.
  1639. else
  1640. @@ -1564,13 +1929,13 @@ do
  1641. -* ) ac_must_keep_next=true ;;
  1642. esac
  1643. fi
  1644. - ac_configure_args="$ac_configure_args '$ac_arg'"
  1645. + as_fn_append ac_configure_args " '$ac_arg'"
  1646. ;;
  1647. esac
  1648. done
  1649. done
  1650. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1651. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1652. +{ ac_configure_args0=; unset ac_configure_args0;}
  1653. +{ ac_configure_args1=; unset ac_configure_args1;}
  1654. # When interrupted or exit'd, cleanup temporary files, and complete
  1655. # config.log. We remove comments because anyway the quotes in there
  1656. @@ -1582,11 +1947,9 @@ trap 'exit_status=$?
  1657. {
  1658. echo
  1659. - cat <<\_ASBOX
  1660. -## ---------------- ##
  1661. + $as_echo "## ---------------- ##
  1662. ## Cache variables. ##
  1663. -## ---------------- ##
  1664. -_ASBOX
  1665. +## ---------------- ##"
  1666. echo
  1667. # The following way of writing the cache mishandles newlines in values,
  1668. (
  1669. @@ -1595,13 +1958,13 @@ _ASBOX
  1670. case $ac_val in #(
  1671. *${as_nl}*)
  1672. case $ac_var in #(
  1673. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1674. -$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1675. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1676. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1677. esac
  1678. case $ac_var in #(
  1679. _ | IFS | as_nl) ;; #(
  1680. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1681. - *) $as_unset $ac_var ;;
  1682. + *) { eval $ac_var=; unset $ac_var;} ;;
  1683. esac ;;
  1684. esac
  1685. done
  1686. @@ -1620,11 +1983,9 @@ $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1687. )
  1688. echo
  1689. - cat <<\_ASBOX
  1690. -## ----------------- ##
  1691. + $as_echo "## ----------------- ##
  1692. ## Output variables. ##
  1693. -## ----------------- ##
  1694. -_ASBOX
  1695. +## ----------------- ##"
  1696. echo
  1697. for ac_var in $ac_subst_vars
  1698. do
  1699. @@ -1637,11 +1998,9 @@ _ASBOX
  1700. echo
  1701. if test -n "$ac_subst_files"; then
  1702. - cat <<\_ASBOX
  1703. -## ------------------- ##
  1704. + $as_echo "## ------------------- ##
  1705. ## File substitutions. ##
  1706. -## ------------------- ##
  1707. -_ASBOX
  1708. +## ------------------- ##"
  1709. echo
  1710. for ac_var in $ac_subst_files
  1711. do
  1712. @@ -1655,11 +2014,9 @@ _ASBOX
  1713. fi
  1714. if test -s confdefs.h; then
  1715. - cat <<\_ASBOX
  1716. -## ----------- ##
  1717. + $as_echo "## ----------- ##
  1718. ## confdefs.h. ##
  1719. -## ----------- ##
  1720. -_ASBOX
  1721. +## ----------- ##"
  1722. echo
  1723. cat confdefs.h
  1724. echo
  1725. @@ -1673,46 +2030,53 @@ _ASBOX
  1726. exit $exit_status
  1727. ' 0
  1728. for ac_signal in 1 2 13 15; do
  1729. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1730. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1731. done
  1732. ac_signal=0
  1733. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1734. rm -f -r conftest* confdefs.h
  1735. +$as_echo "/* confdefs.h */" > confdefs.h
  1736. +
  1737. # Predefined preprocessor variables.
  1738. cat >>confdefs.h <<_ACEOF
  1739. #define PACKAGE_NAME "$PACKAGE_NAME"
  1740. _ACEOF
  1741. -
  1742. cat >>confdefs.h <<_ACEOF
  1743. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1744. _ACEOF
  1745. -
  1746. cat >>confdefs.h <<_ACEOF
  1747. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1748. _ACEOF
  1749. -
  1750. cat >>confdefs.h <<_ACEOF
  1751. #define PACKAGE_STRING "$PACKAGE_STRING"
  1752. _ACEOF
  1753. -
  1754. cat >>confdefs.h <<_ACEOF
  1755. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1756. _ACEOF
  1757. +cat >>confdefs.h <<_ACEOF
  1758. +#define PACKAGE_URL "$PACKAGE_URL"
  1759. +_ACEOF
  1760. +
  1761. # Let the site file select an alternate cache file if it wants to.
  1762. # Prefer an explicitly selected file to automatically selected ones.
  1763. ac_site_file1=NONE
  1764. ac_site_file2=NONE
  1765. if test -n "$CONFIG_SITE"; then
  1766. - ac_site_file1=$CONFIG_SITE
  1767. + # We do not want a PATH search for config.site.
  1768. + case $CONFIG_SITE in #((
  1769. + -*) ac_site_file1=./$CONFIG_SITE;;
  1770. + */*) ac_site_file1=$CONFIG_SITE;;
  1771. + *) ac_site_file1=./$CONFIG_SITE;;
  1772. + esac
  1773. elif test "x$prefix" != xNONE; then
  1774. ac_site_file1=$prefix/share/config.site
  1775. ac_site_file2=$prefix/etc/config.site
  1776. @@ -1723,19 +2087,23 @@ fi
  1777. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1778. do
  1779. test "x$ac_site_file" = xNONE && continue
  1780. - if test -r "$ac_site_file"; then
  1781. - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1782. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1783. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1784. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1785. sed 's/^/| /' "$ac_site_file" >&5
  1786. - . "$ac_site_file"
  1787. + . "$ac_site_file" \
  1788. + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1789. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1790. +as_fn_error $? "failed to load site script $ac_site_file
  1791. +See \`config.log' for more details" "$LINENO" 5 ; }
  1792. fi
  1793. done
  1794. if test -r "$cache_file"; then
  1795. - # Some versions of bash will fail to source /dev/null (special
  1796. - # files actually), so we avoid doing that.
  1797. - if test -f "$cache_file"; then
  1798. - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1799. + # Some versions of bash will fail to source /dev/null (special files
  1800. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1801. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1802. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1803. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1804. case $cache_file in
  1805. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1806. @@ -1743,7 +2111,7 @@ $as_echo "$as_me: loading cache $cache_file" >&6;}
  1807. esac
  1808. fi
  1809. else
  1810. - { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1811. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1812. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1813. >$cache_file
  1814. fi
  1815. @@ -1758,11 +2126,11 @@ for ac_var in $ac_precious_vars; do
  1816. eval ac_new_val=\$ac_env_${ac_var}_value
  1817. case $ac_old_set,$ac_new_set in
  1818. set,)
  1819. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1820. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1821. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1822. ac_cache_corrupted=: ;;
  1823. ,set)
  1824. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1825. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1826. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1827. ac_cache_corrupted=: ;;
  1828. ,);;
  1829. @@ -1772,17 +2140,17 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1830. ac_old_val_w=`echo x $ac_old_val`
  1831. ac_new_val_w=`echo x $ac_new_val`
  1832. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1833. - { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1834. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1835. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1836. ac_cache_corrupted=:
  1837. else
  1838. - { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1839. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1840. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1841. eval $ac_var=\$ac_old_val
  1842. fi
  1843. - { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1844. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1845. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1846. - { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1847. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1848. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1849. fi;;
  1850. esac
  1851. @@ -1794,41 +2162,20 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1852. esac
  1853. case " $ac_configure_args " in
  1854. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1855. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1856. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1857. esac
  1858. fi
  1859. done
  1860. if $ac_cache_corrupted; then
  1861. - { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1862. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1863. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1864. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1865. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1866. - { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1867. -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1868. - { (exit 1); exit 1; }; }
  1869. + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1870. fi
  1871. -
  1872. -
  1873. -
  1874. -
  1875. -
  1876. -
  1877. -
  1878. -
  1879. -
  1880. -
  1881. -
  1882. -
  1883. -
  1884. -
  1885. -
  1886. -
  1887. -
  1888. -
  1889. -
  1890. -
  1891. -
  1892. -
  1893. -
  1894. -
  1895. +## -------------------- ##
  1896. +## Main body of script. ##
  1897. +## -------------------- ##
  1898. ac_ext=c
  1899. ac_cpp='$CPP $CPPFLAGS'
  1900. @@ -1837,7 +2184,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
  1901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1902. -am__api_version="1.9"
  1903. +am__api_version='1.11'
  1904. +
  1905. ac_aux_dir=
  1906. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1907. if test -f "$ac_dir/install-sh"; then
  1908. @@ -1855,9 +2203,7 @@ for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1909. fi
  1910. done
  1911. if test -z "$ac_aux_dir"; then
  1912. - { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1913. -$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1914. - { (exit 1); exit 1; }; }
  1915. + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1916. fi
  1917. # These three variables are undocumented and unsupported,
  1918. @@ -1883,10 +2229,10 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1919. # OS/2's system install, which has a completely different semantic
  1920. # ./install, which can be erroneously created by make from ./install.sh.
  1921. # Reject install programs that cannot install multiple files.
  1922. -{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1923. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  1924. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1925. if test -z "$INSTALL"; then
  1926. -if test "${ac_cv_path_install+set}" = set; then
  1927. +if test "${ac_cv_path_install+set}" = set; then :
  1928. $as_echo_n "(cached) " >&6
  1929. else
  1930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1931. @@ -1894,11 +2240,11 @@ for as_dir in $PATH
  1932. do
  1933. IFS=$as_save_IFS
  1934. test -z "$as_dir" && as_dir=.
  1935. - # Account for people who put trailing slashes in PATH elements.
  1936. -case $as_dir/ in
  1937. - ./ | .// | /cC/* | \
  1938. + # Account for people who put trailing slashes in PATH elements.
  1939. +case $as_dir/ in #((
  1940. + ./ | .// | /[cC]/* | \
  1941. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1942. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1943. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  1944. /usr/ucb/* ) ;;
  1945. *)
  1946. # OSF1 and SCO ODT 3.0 have their own names for install.
  1947. @@ -1935,7 +2281,7 @@ case $as_dir/ in
  1948. ;;
  1949. esac
  1950. -done
  1951. + done
  1952. IFS=$as_save_IFS
  1953. rm -rf conftest.one conftest.two conftest.dir
  1954. @@ -1951,7 +2297,7 @@ fi
  1955. INSTALL=$ac_install_sh
  1956. fi
  1957. fi
  1958. -{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1959. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  1960. $as_echo "$INSTALL" >&6; }
  1961. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1962. @@ -1962,21 +2308,34 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1963. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1964. -{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  1966. $as_echo_n "checking whether build environment is sane... " >&6; }
  1967. # Just in case
  1968. sleep 1
  1969. echo timestamp > conftest.file
  1970. +# Reject unsafe characters in $srcdir or the absolute working directory
  1971. +# name. Accept space and tab only in the latter.
  1972. +am_lf='
  1973. +'
  1974. +case `pwd` in
  1975. + *[\\\"\#\$\&\'\`$am_lf]*)
  1976. + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  1977. +esac
  1978. +case $srcdir in
  1979. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  1980. + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  1981. +esac
  1982. +
  1983. # Do `set' in a subshell so we don't clobber the current shell's
  1984. # arguments. Must try -L first in case configure is actually a
  1985. # symlink; some systems play weird games with the mod time of symlinks
  1986. # (eg FreeBSD returns the mod time of the symlink's containing
  1987. # directory).
  1988. if (
  1989. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1990. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1991. if test "$*" = "X"; then
  1992. # -L didn't work.
  1993. - set X `ls -t $srcdir/configure conftest.file`
  1994. + set X `ls -t "$srcdir/configure" conftest.file`
  1995. fi
  1996. rm -f conftest.file
  1997. if test "$*" != "X $srcdir/configure conftest.file" \
  1998. @@ -1986,11 +2345,8 @@ if (
  1999. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2000. # broken ls alias from the environment. This has actually
  2001. # happened. Such a system could not be considered "sane".
  2002. - { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2003. -alias in your environment" >&5
  2004. -$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2005. -alias in your environment" >&2;}
  2006. - { (exit 1); exit 1; }; }
  2007. + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2008. +alias in your environment" "$LINENO" 5
  2009. fi
  2010. test "$2" = conftest.file
  2011. @@ -1999,13 +2355,10 @@ then
  2012. # Ok.
  2013. :
  2014. else
  2015. - { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2016. -Check your system clock" >&5
  2017. -$as_echo "$as_me: error: newly created file is older than distributed files!
  2018. -Check your system clock" >&2;}
  2019. - { (exit 1); exit 1; }; }
  2020. + as_fn_error $? "newly created file is older than distributed files!
  2021. +Check your system clock" "$LINENO" 5
  2022. fi
  2023. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  2024. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2025. $as_echo "yes" >&6; }
  2026. test "$program_prefix" != NONE &&
  2027. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2028. @@ -2020,56 +2373,187 @@ program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2029. # expand $ac_aux_dir to an absolute path
  2030. am_aux_dir=`cd $ac_aux_dir && pwd`
  2031. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2032. +if test x"${MISSING+set}" != xset; then
  2033. + case $am_aux_dir in
  2034. + *\ * | *\ *)
  2035. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2036. + *)
  2037. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2038. + esac
  2039. +fi
  2040. # Use eval to expand $SHELL
  2041. if eval "$MISSING --run true"; then
  2042. am_missing_run="$MISSING --run "
  2043. else
  2044. am_missing_run=
  2045. - { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2046. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2047. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2048. fi
  2049. -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2050. - # We used to keeping the `.' as first argument, in order to
  2051. - # allow $(mkdir_p) to be used without argument. As in
  2052. - # $(mkdir_p) $(somedir)
  2053. - # where $(somedir) is conditionally defined. However this is wrong
  2054. - # for two reasons:
  2055. - # 1. if the package is installed by a user who cannot write `.'
  2056. - # make install will fail,
  2057. - # 2. the above comment should most certainly read
  2058. - # $(mkdir_p) $(DESTDIR)$(somedir)
  2059. - # so it does not work when $(somedir) is undefined and
  2060. - # $(DESTDIR) is not.
  2061. - # To support the latter case, we have to write
  2062. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2063. - # so the `.' trick is pointless.
  2064. - mkdir_p='mkdir -p --'
  2065. -else
  2066. - # On NextStep and OpenStep, the `mkdir' command does not
  2067. - # recognize any option. It will interpret all options as
  2068. - # directories to create, and then abort because `.' already
  2069. - # exists.
  2070. - for d in ./-p ./--version;
  2071. - do
  2072. - test -d $d && rmdir $d
  2073. +if test x"${install_sh}" != xset; then
  2074. + case $am_aux_dir in
  2075. + *\ * | *\ *)
  2076. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2077. + *)
  2078. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  2079. + esac
  2080. +fi
  2081. +
  2082. +# Installed binaries are usually stripped using `strip' when the user
  2083. +# run `make install-strip'. However `strip' might not be the right
  2084. +# tool to use in cross-compilation environments, therefore Automake
  2085. +# will honor the `STRIP' environment variable to overrule this program.
  2086. +if test "$cross_compiling" != no; then
  2087. + if test -n "$ac_tool_prefix"; then
  2088. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2089. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  2090. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2091. +$as_echo_n "checking for $ac_word... " >&6; }
  2092. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  2093. + $as_echo_n "(cached) " >&6
  2094. +else
  2095. + if test -n "$STRIP"; then
  2096. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2097. +else
  2098. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2099. +for as_dir in $PATH
  2100. +do
  2101. + IFS=$as_save_IFS
  2102. + test -z "$as_dir" && as_dir=.
  2103. + for ac_exec_ext in '' $ac_executable_extensions; do
  2104. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2105. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2106. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2107. + break 2
  2108. + fi
  2109. +done
  2110. done
  2111. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2112. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  2113. - mkdir_p='$(mkinstalldirs)'
  2114. +IFS=$as_save_IFS
  2115. +
  2116. +fi
  2117. +fi
  2118. +STRIP=$ac_cv_prog_STRIP
  2119. +if test -n "$STRIP"; then
  2120. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2121. +$as_echo "$STRIP" >&6; }
  2122. +else
  2123. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2124. +$as_echo "no" >&6; }
  2125. +fi
  2126. +
  2127. +
  2128. +fi
  2129. +if test -z "$ac_cv_prog_STRIP"; then
  2130. + ac_ct_STRIP=$STRIP
  2131. + # Extract the first word of "strip", so it can be a program name with args.
  2132. +set dummy strip; ac_word=$2
  2133. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2134. +$as_echo_n "checking for $ac_word... " >&6; }
  2135. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2136. + $as_echo_n "(cached) " >&6
  2137. +else
  2138. + if test -n "$ac_ct_STRIP"; then
  2139. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2140. +else
  2141. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2142. +for as_dir in $PATH
  2143. +do
  2144. + IFS=$as_save_IFS
  2145. + test -z "$as_dir" && as_dir=.
  2146. + for ac_exec_ext in '' $ac_executable_extensions; do
  2147. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2148. + ac_cv_prog_ac_ct_STRIP="strip"
  2149. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2150. + break 2
  2151. + fi
  2152. +done
  2153. + done
  2154. +IFS=$as_save_IFS
  2155. +
  2156. +fi
  2157. +fi
  2158. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2159. +if test -n "$ac_ct_STRIP"; then
  2160. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2161. +$as_echo "$ac_ct_STRIP" >&6; }
  2162. +else
  2163. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2164. +$as_echo "no" >&6; }
  2165. +fi
  2166. +
  2167. + if test "x$ac_ct_STRIP" = x; then
  2168. + STRIP=":"
  2169. else
  2170. - mkdir_p='$(install_sh) -d'
  2171. + case $cross_compiling:$ac_tool_warned in
  2172. +yes:)
  2173. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2174. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2175. +ac_tool_warned=yes ;;
  2176. +esac
  2177. + STRIP=$ac_ct_STRIP
  2178. fi
  2179. +else
  2180. + STRIP="$ac_cv_prog_STRIP"
  2181. +fi
  2182. +
  2183. fi
  2184. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2185. +
  2186. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2187. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2188. +if test -z "$MKDIR_P"; then
  2189. + if test "${ac_cv_path_mkdir+set}" = set; then :
  2190. + $as_echo_n "(cached) " >&6
  2191. +else
  2192. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2193. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2194. +do
  2195. + IFS=$as_save_IFS
  2196. + test -z "$as_dir" && as_dir=.
  2197. + for ac_prog in mkdir gmkdir; do
  2198. + for ac_exec_ext in '' $ac_executable_extensions; do
  2199. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2200. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2201. + 'mkdir (GNU coreutils) '* | \
  2202. + 'mkdir (coreutils) '* | \
  2203. + 'mkdir (fileutils) '4.1*)
  2204. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2205. + break 3;;
  2206. + esac
  2207. + done
  2208. + done
  2209. + done
  2210. +IFS=$as_save_IFS
  2211. +
  2212. +fi
  2213. +
  2214. + test -d ./--version && rmdir ./--version
  2215. + if test "${ac_cv_path_mkdir+set}" = set; then
  2216. + MKDIR_P="$ac_cv_path_mkdir -p"
  2217. + else
  2218. + # As a last resort, use the slow shell script. Don't cache a
  2219. + # value for MKDIR_P within a source directory, because that will
  2220. + # break other packages using the cache if that directory is
  2221. + # removed, or if the value is a relative name.
  2222. + MKDIR_P="$ac_install_sh -d"
  2223. + fi
  2224. +fi
  2225. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2226. +$as_echo "$MKDIR_P" >&6; }
  2227. +
  2228. +mkdir_p="$MKDIR_P"
  2229. +case $mkdir_p in
  2230. + [\\/$]* | ?:[\\/]*) ;;
  2231. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2232. +esac
  2233. for ac_prog in gawk mawk nawk awk
  2234. do
  2235. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2236. set dummy $ac_prog; ac_word=$2
  2237. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2238. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2239. $as_echo_n "checking for $ac_word... " >&6; }
  2240. -if test "${ac_cv_prog_AWK+set}" = set; then
  2241. +if test "${ac_cv_prog_AWK+set}" = set; then :
  2242. $as_echo_n "(cached) " >&6
  2243. else
  2244. if test -n "$AWK"; then
  2245. @@ -2080,24 +2564,24 @@ for as_dir in $PATH
  2246. do
  2247. IFS=$as_save_IFS
  2248. test -z "$as_dir" && as_dir=.
  2249. - for ac_exec_ext in '' $ac_executable_extensions; do
  2250. + for ac_exec_ext in '' $ac_executable_extensions; do
  2251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2252. ac_cv_prog_AWK="$ac_prog"
  2253. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2254. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2255. break 2
  2256. fi
  2257. done
  2258. -done
  2259. + done
  2260. IFS=$as_save_IFS
  2261. fi
  2262. fi
  2263. AWK=$ac_cv_prog_AWK
  2264. if test -n "$AWK"; then
  2265. - { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2266. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2267. $as_echo "$AWK" >&6; }
  2268. else
  2269. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2270. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2271. $as_echo "no" >&6; }
  2272. fi
  2273. @@ -2105,11 +2589,11 @@ fi
  2274. test -n "$AWK" && break
  2275. done
  2276. -{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2277. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2278. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2279. set x ${MAKE-make}
  2280. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2281. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2282. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2283. $as_echo_n "(cached) " >&6
  2284. else
  2285. cat >conftest.make <<\_ACEOF
  2286. @@ -2117,7 +2601,7 @@ SHELL = /bin/sh
  2287. all:
  2288. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2289. _ACEOF
  2290. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2291. +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2292. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2293. *@@@%%%=?*=@@@%%%*)
  2294. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2295. @@ -2127,11 +2611,11 @@ esac
  2296. rm -f conftest.make
  2297. fi
  2298. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2299. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  2300. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2301. $as_echo "yes" >&6; }
  2302. SET_MAKE=
  2303. else
  2304. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2305. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2306. $as_echo "no" >&6; }
  2307. SET_MAKE="MAKE=${MAKE-make}"
  2308. fi
  2309. @@ -2145,12 +2629,14 @@ else
  2310. fi
  2311. rmdir .tst 2>/dev/null
  2312. -# test to see if srcdir already configured
  2313. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2314. - test -f $srcdir/config.status; then
  2315. - { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2316. -$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2317. - { (exit 1); exit 1; }; }
  2318. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2319. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2320. + # is not polluted with repeated "-I."
  2321. + am__isrc=' -I$(srcdir)'
  2322. + # test to see if srcdir already configured
  2323. + if test -f $srcdir/config.status; then
  2324. + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2325. + fi
  2326. fi
  2327. # test whether we have cygpath
  2328. @@ -2193,112 +2679,6 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2329. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2330. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2331. -
  2332. -# Installed binaries are usually stripped using `strip' when the user
  2333. -# run `make install-strip'. However `strip' might not be the right
  2334. -# tool to use in cross-compilation environments, therefore Automake
  2335. -# will honor the `STRIP' environment variable to overrule this program.
  2336. -if test "$cross_compiling" != no; then
  2337. - if test -n "$ac_tool_prefix"; then
  2338. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2339. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  2340. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2341. -$as_echo_n "checking for $ac_word... " >&6; }
  2342. -if test "${ac_cv_prog_STRIP+set}" = set; then
  2343. - $as_echo_n "(cached) " >&6
  2344. -else
  2345. - if test -n "$STRIP"; then
  2346. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2347. -else
  2348. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2349. -for as_dir in $PATH
  2350. -do
  2351. - IFS=$as_save_IFS
  2352. - test -z "$as_dir" && as_dir=.
  2353. - for ac_exec_ext in '' $ac_executable_extensions; do
  2354. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2355. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2356. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2357. - break 2
  2358. - fi
  2359. -done
  2360. -done
  2361. -IFS=$as_save_IFS
  2362. -
  2363. -fi
  2364. -fi
  2365. -STRIP=$ac_cv_prog_STRIP
  2366. -if test -n "$STRIP"; then
  2367. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2368. -$as_echo "$STRIP" >&6; }
  2369. -else
  2370. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2371. -$as_echo "no" >&6; }
  2372. -fi
  2373. -
  2374. -
  2375. -fi
  2376. -if test -z "$ac_cv_prog_STRIP"; then
  2377. - ac_ct_STRIP=$STRIP
  2378. - # Extract the first word of "strip", so it can be a program name with args.
  2379. -set dummy strip; ac_word=$2
  2380. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2381. -$as_echo_n "checking for $ac_word... " >&6; }
  2382. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2383. - $as_echo_n "(cached) " >&6
  2384. -else
  2385. - if test -n "$ac_ct_STRIP"; then
  2386. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2387. -else
  2388. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2389. -for as_dir in $PATH
  2390. -do
  2391. - IFS=$as_save_IFS
  2392. - test -z "$as_dir" && as_dir=.
  2393. - for ac_exec_ext in '' $ac_executable_extensions; do
  2394. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2395. - ac_cv_prog_ac_ct_STRIP="strip"
  2396. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2397. - break 2
  2398. - fi
  2399. -done
  2400. -done
  2401. -IFS=$as_save_IFS
  2402. -
  2403. -fi
  2404. -fi
  2405. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2406. -if test -n "$ac_ct_STRIP"; then
  2407. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2408. -$as_echo "$ac_ct_STRIP" >&6; }
  2409. -else
  2410. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2411. -$as_echo "no" >&6; }
  2412. -fi
  2413. -
  2414. - if test "x$ac_ct_STRIP" = x; then
  2415. - STRIP=":"
  2416. - else
  2417. - case $cross_compiling:$ac_tool_warned in
  2418. -yes:)
  2419. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2420. -whose name does not start with the host triplet. If you think this
  2421. -configuration is useful to you, please write to [email protected]." >&5
  2422. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2423. -whose name does not start with the host triplet. If you think this
  2424. -configuration is useful to you, please write to [email protected]." >&2;}
  2425. -ac_tool_warned=yes ;;
  2426. -esac
  2427. - STRIP=$ac_ct_STRIP
  2428. - fi
  2429. -else
  2430. - STRIP="$ac_cv_prog_STRIP"
  2431. -fi
  2432. -
  2433. -fi
  2434. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2435. -
  2436. # We need awk for the "check" target. The system "awk" is bad on
  2437. # some platforms.
  2438. # Always define AMTAR for backward compatibility.
  2439. @@ -2311,20 +2691,19 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2440. -{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2441. +
  2442. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2443. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2444. # Check whether --enable-maintainer-mode was given.
  2445. -if test "${enable_maintainer_mode+set}" = set; then
  2446. +if test "${enable_maintainer_mode+set}" = set; then :
  2447. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2448. else
  2449. USE_MAINTAINER_MODE=no
  2450. fi
  2451. - { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2452. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2453. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2454. -
  2455. -
  2456. -if test $USE_MAINTAINER_MODE = yes; then
  2457. + if test $USE_MAINTAINER_MODE = yes; then
  2458. MAINTAINER_MODE_TRUE=
  2459. MAINTAINER_MODE_FALSE='#'
  2460. else
  2461. @@ -2342,35 +2721,27 @@ ac_config_headers="$ac_config_headers config.h"
  2462. # cross-compile macros
  2463. # Make sure we can run config.sub.
  2464. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2465. - { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2466. -$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2467. - { (exit 1); exit 1; }; }
  2468. + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2469. -{ $as_echo "$as_me:$LINENO: checking build system type" >&5
  2470. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2471. $as_echo_n "checking build system type... " >&6; }
  2472. -if test "${ac_cv_build+set}" = set; then
  2473. +if test "${ac_cv_build+set}" = set; then :
  2474. $as_echo_n "(cached) " >&6
  2475. else
  2476. ac_build_alias=$build_alias
  2477. test "x$ac_build_alias" = x &&
  2478. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2479. test "x$ac_build_alias" = x &&
  2480. - { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2481. -$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2482. - { (exit 1); exit 1; }; }
  2483. + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2484. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2485. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2486. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2487. - { (exit 1); exit 1; }; }
  2488. + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2489. fi
  2490. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2491. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2492. $as_echo "$ac_cv_build" >&6; }
  2493. case $ac_cv_build in
  2494. *-*-*) ;;
  2495. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2496. -$as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2497. - { (exit 1); exit 1; }; };;
  2498. +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  2499. esac
  2500. build=$ac_cv_build
  2501. ac_save_IFS=$IFS; IFS='-'
  2502. @@ -2386,28 +2757,24 @@ IFS=$ac_save_IFS
  2503. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2504. -{ $as_echo "$as_me:$LINENO: checking host system type" >&5
  2505. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2506. $as_echo_n "checking host system type... " >&6; }
  2507. -if test "${ac_cv_host+set}" = set; then
  2508. +if test "${ac_cv_host+set}" = set; then :
  2509. $as_echo_n "(cached) " >&6
  2510. else
  2511. if test "x$host_alias" = x; then
  2512. ac_cv_host=$ac_cv_build
  2513. else
  2514. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2515. - { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2516. -$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2517. - { (exit 1); exit 1; }; }
  2518. + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2519. fi
  2520. fi
  2521. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2522. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2523. $as_echo "$ac_cv_host" >&6; }
  2524. case $ac_cv_host in
  2525. *-*-*) ;;
  2526. -*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2527. -$as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2528. - { (exit 1); exit 1; }; };;
  2529. +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  2530. esac
  2531. host=$ac_cv_host
  2532. ac_save_IFS=$IFS; IFS='-'
  2533. @@ -2433,9 +2800,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2534. if test -n "$ac_tool_prefix"; then
  2535. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2536. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2537. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2538. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2539. $as_echo_n "checking for $ac_word... " >&6; }
  2540. -if test "${ac_cv_prog_CC+set}" = set; then
  2541. +if test "${ac_cv_prog_CC+set}" = set; then :
  2542. $as_echo_n "(cached) " >&6
  2543. else
  2544. if test -n "$CC"; then
  2545. @@ -2446,24 +2813,24 @@ for as_dir in $PATH
  2546. do
  2547. IFS=$as_save_IFS
  2548. test -z "$as_dir" && as_dir=.
  2549. - for ac_exec_ext in '' $ac_executable_extensions; do
  2550. + for ac_exec_ext in '' $ac_executable_extensions; do
  2551. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2552. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2553. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2554. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2555. break 2
  2556. fi
  2557. done
  2558. -done
  2559. + done
  2560. IFS=$as_save_IFS
  2561. fi
  2562. fi
  2563. CC=$ac_cv_prog_CC
  2564. if test -n "$CC"; then
  2565. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2566. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2567. $as_echo "$CC" >&6; }
  2568. else
  2569. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2570. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2571. $as_echo "no" >&6; }
  2572. fi
  2573. @@ -2473,9 +2840,9 @@ if test -z "$ac_cv_prog_CC"; then
  2574. ac_ct_CC=$CC
  2575. # Extract the first word of "gcc", so it can be a program name with args.
  2576. set dummy gcc; ac_word=$2
  2577. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2578. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2579. $as_echo_n "checking for $ac_word... " >&6; }
  2580. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2581. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2582. $as_echo_n "(cached) " >&6
  2583. else
  2584. if test -n "$ac_ct_CC"; then
  2585. @@ -2486,24 +2853,24 @@ for as_dir in $PATH
  2586. do
  2587. IFS=$as_save_IFS
  2588. test -z "$as_dir" && as_dir=.
  2589. - for ac_exec_ext in '' $ac_executable_extensions; do
  2590. + for ac_exec_ext in '' $ac_executable_extensions; do
  2591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2592. ac_cv_prog_ac_ct_CC="gcc"
  2593. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2594. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2595. break 2
  2596. fi
  2597. done
  2598. -done
  2599. + done
  2600. IFS=$as_save_IFS
  2601. fi
  2602. fi
  2603. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2604. if test -n "$ac_ct_CC"; then
  2605. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2606. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2607. $as_echo "$ac_ct_CC" >&6; }
  2608. else
  2609. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2610. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2611. $as_echo "no" >&6; }
  2612. fi
  2613. @@ -2512,12 +2879,8 @@ fi
  2614. else
  2615. case $cross_compiling:$ac_tool_warned in
  2616. yes:)
  2617. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2618. -whose name does not start with the host triplet. If you think this
  2619. -configuration is useful to you, please write to [email protected]." >&5
  2620. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2621. -whose name does not start with the host triplet. If you think this
  2622. -configuration is useful to you, please write to [email protected]." >&2;}
  2623. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2624. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2625. ac_tool_warned=yes ;;
  2626. esac
  2627. CC=$ac_ct_CC
  2628. @@ -2530,9 +2893,9 @@ if test -z "$CC"; then
  2629. if test -n "$ac_tool_prefix"; then
  2630. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2631. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2632. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2633. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2634. $as_echo_n "checking for $ac_word... " >&6; }
  2635. -if test "${ac_cv_prog_CC+set}" = set; then
  2636. +if test "${ac_cv_prog_CC+set}" = set; then :
  2637. $as_echo_n "(cached) " >&6
  2638. else
  2639. if test -n "$CC"; then
  2640. @@ -2543,24 +2906,24 @@ for as_dir in $PATH
  2641. do
  2642. IFS=$as_save_IFS
  2643. test -z "$as_dir" && as_dir=.
  2644. - for ac_exec_ext in '' $ac_executable_extensions; do
  2645. + for ac_exec_ext in '' $ac_executable_extensions; do
  2646. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2647. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2648. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2649. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2650. break 2
  2651. fi
  2652. done
  2653. -done
  2654. + done
  2655. IFS=$as_save_IFS
  2656. fi
  2657. fi
  2658. CC=$ac_cv_prog_CC
  2659. if test -n "$CC"; then
  2660. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2661. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2662. $as_echo "$CC" >&6; }
  2663. else
  2664. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2665. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2666. $as_echo "no" >&6; }
  2667. fi
  2668. @@ -2570,9 +2933,9 @@ fi
  2669. if test -z "$CC"; then
  2670. # Extract the first word of "cc", so it can be a program name with args.
  2671. set dummy cc; ac_word=$2
  2672. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2673. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2674. $as_echo_n "checking for $ac_word... " >&6; }
  2675. -if test "${ac_cv_prog_CC+set}" = set; then
  2676. +if test "${ac_cv_prog_CC+set}" = set; then :
  2677. $as_echo_n "(cached) " >&6
  2678. else
  2679. if test -n "$CC"; then
  2680. @@ -2584,18 +2947,18 @@ for as_dir in $PATH
  2681. do
  2682. IFS=$as_save_IFS
  2683. test -z "$as_dir" && as_dir=.
  2684. - for ac_exec_ext in '' $ac_executable_extensions; do
  2685. + for ac_exec_ext in '' $ac_executable_extensions; do
  2686. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2687. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2688. ac_prog_rejected=yes
  2689. continue
  2690. fi
  2691. ac_cv_prog_CC="cc"
  2692. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2693. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2694. break 2
  2695. fi
  2696. done
  2697. -done
  2698. + done
  2699. IFS=$as_save_IFS
  2700. if test $ac_prog_rejected = yes; then
  2701. @@ -2614,10 +2977,10 @@ fi
  2702. fi
  2703. CC=$ac_cv_prog_CC
  2704. if test -n "$CC"; then
  2705. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2706. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2707. $as_echo "$CC" >&6; }
  2708. else
  2709. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2710. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2711. $as_echo "no" >&6; }
  2712. fi
  2713. @@ -2629,9 +2992,9 @@ if test -z "$CC"; then
  2714. do
  2715. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2716. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2717. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2718. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2719. $as_echo_n "checking for $ac_word... " >&6; }
  2720. -if test "${ac_cv_prog_CC+set}" = set; then
  2721. +if test "${ac_cv_prog_CC+set}" = set; then :
  2722. $as_echo_n "(cached) " >&6
  2723. else
  2724. if test -n "$CC"; then
  2725. @@ -2642,24 +3005,24 @@ for as_dir in $PATH
  2726. do
  2727. IFS=$as_save_IFS
  2728. test -z "$as_dir" && as_dir=.
  2729. - for ac_exec_ext in '' $ac_executable_extensions; do
  2730. + for ac_exec_ext in '' $ac_executable_extensions; do
  2731. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2732. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2733. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2734. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2735. break 2
  2736. fi
  2737. done
  2738. -done
  2739. + done
  2740. IFS=$as_save_IFS
  2741. fi
  2742. fi
  2743. CC=$ac_cv_prog_CC
  2744. if test -n "$CC"; then
  2745. - { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2746. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2747. $as_echo "$CC" >&6; }
  2748. else
  2749. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2750. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2751. $as_echo "no" >&6; }
  2752. fi
  2753. @@ -2673,9 +3036,9 @@ if test -z "$CC"; then
  2754. do
  2755. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2756. set dummy $ac_prog; ac_word=$2
  2757. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2758. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2759. $as_echo_n "checking for $ac_word... " >&6; }
  2760. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2761. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2762. $as_echo_n "(cached) " >&6
  2763. else
  2764. if test -n "$ac_ct_CC"; then
  2765. @@ -2686,24 +3049,24 @@ for as_dir in $PATH
  2766. do
  2767. IFS=$as_save_IFS
  2768. test -z "$as_dir" && as_dir=.
  2769. - for ac_exec_ext in '' $ac_executable_extensions; do
  2770. + for ac_exec_ext in '' $ac_executable_extensions; do
  2771. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2772. ac_cv_prog_ac_ct_CC="$ac_prog"
  2773. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2774. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2775. break 2
  2776. fi
  2777. done
  2778. -done
  2779. + done
  2780. IFS=$as_save_IFS
  2781. fi
  2782. fi
  2783. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2784. if test -n "$ac_ct_CC"; then
  2785. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2786. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2787. $as_echo "$ac_ct_CC" >&6; }
  2788. else
  2789. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2790. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2791. $as_echo "no" >&6; }
  2792. fi
  2793. @@ -2716,12 +3079,8 @@ done
  2794. else
  2795. case $cross_compiling:$ac_tool_warned in
  2796. yes:)
  2797. -{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2798. -whose name does not start with the host triplet. If you think this
  2799. -configuration is useful to you, please write to [email protected]." >&5
  2800. -$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2801. -whose name does not start with the host triplet. If you think this
  2802. -configuration is useful to you, please write to [email protected]." >&2;}
  2803. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2804. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2805. ac_tool_warned=yes ;;
  2806. esac
  2807. CC=$ac_ct_CC
  2808. @@ -2731,55 +3090,37 @@ fi
  2809. fi
  2810. -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2811. -See \`config.log' for more details." >&5
  2812. -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2813. -See \`config.log' for more details." >&2;}
  2814. - { (exit 1); exit 1; }; }
  2815. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2816. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2817. +as_fn_error $? "no acceptable C compiler found in \$PATH
  2818. +See \`config.log' for more details" "$LINENO" 5 ; }
  2819. # Provide some information about the compiler.
  2820. -$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2821. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2822. set X $ac_compile
  2823. ac_compiler=$2
  2824. -{ (ac_try="$ac_compiler --version >&5"
  2825. -case "(($ac_try" in
  2826. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2827. - *) ac_try_echo=$ac_try;;
  2828. -esac
  2829. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2830. -$as_echo "$ac_try_echo") >&5
  2831. - (eval "$ac_compiler --version >&5") 2>&5
  2832. - ac_status=$?
  2833. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2834. - (exit $ac_status); }
  2835. -{ (ac_try="$ac_compiler -v >&5"
  2836. +for ac_option in --version -v -V -qversion; do
  2837. + { { ac_try="$ac_compiler $ac_option >&5"
  2838. case "(($ac_try" in
  2839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2840. *) ac_try_echo=$ac_try;;
  2841. esac
  2842. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2843. -$as_echo "$ac_try_echo") >&5
  2844. - (eval "$ac_compiler -v >&5") 2>&5
  2845. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2846. +$as_echo "$ac_try_echo"; } >&5
  2847. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2848. ac_status=$?
  2849. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2850. - (exit $ac_status); }
  2851. -{ (ac_try="$ac_compiler -V >&5"
  2852. -case "(($ac_try" in
  2853. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2854. - *) ac_try_echo=$ac_try;;
  2855. -esac
  2856. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2857. -$as_echo "$ac_try_echo") >&5
  2858. - (eval "$ac_compiler -V >&5") 2>&5
  2859. - ac_status=$?
  2860. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2861. - (exit $ac_status); }
  2862. + if test -s conftest.err; then
  2863. + sed '10a\
  2864. +... rest of stderr output deleted ...
  2865. + 10q' conftest.err >conftest.er1
  2866. + cat conftest.er1 >&5
  2867. + fi
  2868. + rm -f conftest.er1 conftest.err
  2869. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2870. + test $ac_status = 0; }
  2871. +done
  2872. -cat >conftest.$ac_ext <<_ACEOF
  2873. -/* confdefs.h. */
  2874. -_ACEOF
  2875. -cat confdefs.h >>conftest.$ac_ext
  2876. -cat >>conftest.$ac_ext <<_ACEOF
  2877. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2878. /* end confdefs.h. */
  2879. int
  2880. @@ -2795,8 +3136,8 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2881. # Try to create an executable without -o first, disregard a.out.
  2882. # It will help us diagnose broken compilers, and finding out an intuition
  2883. # of exeext.
  2884. -{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2885. -$as_echo_n "checking for C compiler default output file name... " >&6; }
  2886. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2887. +$as_echo_n "checking whether the C compiler works... " >&6; }
  2888. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2889. # The possible output files:
  2890. @@ -2812,17 +3153,17 @@ do
  2891. done
  2892. rm -f $ac_rmfiles
  2893. -if { (ac_try="$ac_link_default"
  2894. +if { { ac_try="$ac_link_default"
  2895. case "(($ac_try" in
  2896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2897. *) ac_try_echo=$ac_try;;
  2898. esac
  2899. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2900. -$as_echo "$ac_try_echo") >&5
  2901. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2902. +$as_echo "$ac_try_echo"; } >&5
  2903. (eval "$ac_link_default") 2>&5
  2904. ac_status=$?
  2905. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2906. - (exit $ac_status); }; then
  2907. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2908. + test $ac_status = 0; }; then :
  2909. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2910. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2911. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2912. @@ -2839,7 +3180,7 @@ do
  2913. # certainly right.
  2914. break;;
  2915. *.* )
  2916. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2917. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2918. then :; else
  2919. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2920. fi
  2921. @@ -2858,80 +3199,41 @@ test "$ac_cv_exeext" = no && ac_cv_exeext=
  2922. else
  2923. ac_file=''
  2924. fi
  2925. -
  2926. -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2927. -$as_echo "$ac_file" >&6; }
  2928. -if test -z "$ac_file"; then
  2929. - $as_echo "$as_me: failed program was:" >&5
  2930. +if test -z "$ac_file"; then :
  2931. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2932. +$as_echo "no" >&6; }
  2933. +$as_echo "$as_me: failed program was:" >&5
  2934. sed 's/^/| /' conftest.$ac_ext >&5
  2935. -{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2936. -See \`config.log' for more details." >&5
  2937. -$as_echo "$as_me: error: C compiler cannot create executables
  2938. -See \`config.log' for more details." >&2;}
  2939. - { (exit 77); exit 77; }; }
  2940. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2941. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2942. +as_fn_error 77 "C compiler cannot create executables
  2943. +See \`config.log' for more details" "$LINENO" 5 ; }
  2944. +else
  2945. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2946. +$as_echo "yes" >&6; }
  2947. fi
  2948. -
  2949. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2950. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  2951. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2952. +$as_echo "$ac_file" >&6; }
  2953. ac_exeext=$ac_cv_exeext
  2954. -# Check that the compiler produces executables we can run. If not, either
  2955. -# the compiler is broken, or we cross compile.
  2956. -{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2957. -$as_echo_n "checking whether the C compiler works... " >&6; }
  2958. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2959. -# If not cross compiling, check that we can run a simple program.
  2960. -if test "$cross_compiling" != yes; then
  2961. - if { ac_try='./$ac_file'
  2962. - { (case "(($ac_try" in
  2963. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2964. - *) ac_try_echo=$ac_try;;
  2965. -esac
  2966. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2967. -$as_echo "$ac_try_echo") >&5
  2968. - (eval "$ac_try") 2>&5
  2969. - ac_status=$?
  2970. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2971. - (exit $ac_status); }; }; then
  2972. - cross_compiling=no
  2973. - else
  2974. - if test "$cross_compiling" = maybe; then
  2975. - cross_compiling=yes
  2976. - else
  2977. - { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2978. -If you meant to cross compile, use \`--host'.
  2979. -See \`config.log' for more details." >&5
  2980. -$as_echo "$as_me: error: cannot run C compiled programs.
  2981. -If you meant to cross compile, use \`--host'.
  2982. -See \`config.log' for more details." >&2;}
  2983. - { (exit 1); exit 1; }; }
  2984. - fi
  2985. - fi
  2986. -fi
  2987. -{ $as_echo "$as_me:$LINENO: result: yes" >&5
  2988. -$as_echo "yes" >&6; }
  2989. -
  2990. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2991. ac_clean_files=$ac_clean_files_save
  2992. -# Check that the compiler produces executables we can run. If not, either
  2993. -# the compiler is broken, or we cross compile.
  2994. -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2995. -$as_echo_n "checking whether we are cross compiling... " >&6; }
  2996. -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2997. -$as_echo "$cross_compiling" >&6; }
  2998. -
  2999. -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3000. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3001. $as_echo_n "checking for suffix of executables... " >&6; }
  3002. -if { (ac_try="$ac_link"
  3003. +if { { ac_try="$ac_link"
  3004. case "(($ac_try" in
  3005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3006. *) ac_try_echo=$ac_try;;
  3007. esac
  3008. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3009. -$as_echo "$ac_try_echo") >&5
  3010. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3011. +$as_echo "$ac_try_echo"; } >&5
  3012. (eval "$ac_link") 2>&5
  3013. ac_status=$?
  3014. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3015. - (exit $ac_status); }; then
  3016. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3017. + test $ac_status = 0; }; then :
  3018. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3019. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3020. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3021. @@ -2946,30 +3248,83 @@ for ac_file in conftest.exe conftest conftest.*; do
  3022. esac
  3023. done
  3024. else
  3025. - { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3026. -See \`config.log' for more details." >&5
  3027. -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3028. -See \`config.log' for more details." >&2;}
  3029. - { (exit 1); exit 1; }; }
  3030. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3031. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3032. +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3033. +See \`config.log' for more details" "$LINENO" 5 ; }
  3034. fi
  3035. -
  3036. -rm -f conftest$ac_cv_exeext
  3037. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3038. +rm -f conftest conftest$ac_cv_exeext
  3039. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3040. $as_echo "$ac_cv_exeext" >&6; }
  3041. rm -f conftest.$ac_ext
  3042. EXEEXT=$ac_cv_exeext
  3043. ac_exeext=$EXEEXT
  3044. -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3045. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3046. +/* end confdefs.h. */
  3047. +#include <stdio.h>
  3048. +int
  3049. +main ()
  3050. +{
  3051. +FILE *f = fopen ("conftest.out", "w");
  3052. + return ferror (f) || fclose (f) != 0;
  3053. +
  3054. + ;
  3055. + return 0;
  3056. +}
  3057. +_ACEOF
  3058. +ac_clean_files="$ac_clean_files conftest.out"
  3059. +# Check that the compiler produces executables we can run. If not, either
  3060. +# the compiler is broken, or we cross compile.
  3061. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3062. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  3063. +if test "$cross_compiling" != yes; then
  3064. + { { ac_try="$ac_link"
  3065. +case "(($ac_try" in
  3066. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3067. + *) ac_try_echo=$ac_try;;
  3068. +esac
  3069. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3070. +$as_echo "$ac_try_echo"; } >&5
  3071. + (eval "$ac_link") 2>&5
  3072. + ac_status=$?
  3073. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3074. + test $ac_status = 0; }
  3075. + if { ac_try='./conftest$ac_cv_exeext'
  3076. + { { case "(($ac_try" in
  3077. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3078. + *) ac_try_echo=$ac_try;;
  3079. +esac
  3080. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3081. +$as_echo "$ac_try_echo"; } >&5
  3082. + (eval "$ac_try") 2>&5
  3083. + ac_status=$?
  3084. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3085. + test $ac_status = 0; }; }; then
  3086. + cross_compiling=no
  3087. + else
  3088. + if test "$cross_compiling" = maybe; then
  3089. + cross_compiling=yes
  3090. + else
  3091. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3092. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3093. +as_fn_error $? "cannot run C compiled programs.
  3094. +If you meant to cross compile, use \`--host'.
  3095. +See \`config.log' for more details" "$LINENO" 5 ; }
  3096. + fi
  3097. + fi
  3098. +fi
  3099. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3100. +$as_echo "$cross_compiling" >&6; }
  3101. +
  3102. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3103. +ac_clean_files=$ac_clean_files_save
  3104. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3105. $as_echo_n "checking for suffix of object files... " >&6; }
  3106. -if test "${ac_cv_objext+set}" = set; then
  3107. +if test "${ac_cv_objext+set}" = set; then :
  3108. $as_echo_n "(cached) " >&6
  3109. else
  3110. - cat >conftest.$ac_ext <<_ACEOF
  3111. -/* confdefs.h. */
  3112. -_ACEOF
  3113. -cat confdefs.h >>conftest.$ac_ext
  3114. -cat >>conftest.$ac_ext <<_ACEOF
  3115. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3116. /* end confdefs.h. */
  3117. int
  3118. @@ -2981,17 +3336,17 @@ main ()
  3119. }
  3120. _ACEOF
  3121. rm -f conftest.o conftest.obj
  3122. -if { (ac_try="$ac_compile"
  3123. +if { { ac_try="$ac_compile"
  3124. case "(($ac_try" in
  3125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3126. *) ac_try_echo=$ac_try;;
  3127. esac
  3128. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3129. -$as_echo "$ac_try_echo") >&5
  3130. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3131. +$as_echo "$ac_try_echo"; } >&5
  3132. (eval "$ac_compile") 2>&5
  3133. ac_status=$?
  3134. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3135. - (exit $ac_status); }; then
  3136. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3137. + test $ac_status = 0; }; then :
  3138. for ac_file in conftest.o conftest.obj conftest.*; do
  3139. test -f "$ac_file" || continue;
  3140. case $ac_file in
  3141. @@ -3004,29 +3359,23 @@ else
  3142. $as_echo "$as_me: failed program was:" >&5
  3143. sed 's/^/| /' conftest.$ac_ext >&5
  3144. -{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3145. -See \`config.log' for more details." >&5
  3146. -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3147. -See \`config.log' for more details." >&2;}
  3148. - { (exit 1); exit 1; }; }
  3149. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3150. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3151. +as_fn_error $? "cannot compute suffix of object files: cannot compile
  3152. +See \`config.log' for more details" "$LINENO" 5 ; }
  3153. fi
  3154. -
  3155. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3156. fi
  3157. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3158. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3159. $as_echo "$ac_cv_objext" >&6; }
  3160. OBJEXT=$ac_cv_objext
  3161. ac_objext=$OBJEXT
  3162. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3163. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3164. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3165. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3166. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3167. $as_echo_n "(cached) " >&6
  3168. else
  3169. - cat >conftest.$ac_ext <<_ACEOF
  3170. -/* confdefs.h. */
  3171. -_ACEOF
  3172. -cat confdefs.h >>conftest.$ac_ext
  3173. -cat >>conftest.$ac_ext <<_ACEOF
  3174. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3175. /* end confdefs.h. */
  3176. int
  3177. @@ -3040,37 +3389,16 @@ main ()
  3178. return 0;
  3179. }
  3180. _ACEOF
  3181. -rm -f conftest.$ac_objext
  3182. -if { (ac_try="$ac_compile"
  3183. -case "(($ac_try" in
  3184. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3185. - *) ac_try_echo=$ac_try;;
  3186. -esac
  3187. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3188. -$as_echo "$ac_try_echo") >&5
  3189. - (eval "$ac_compile") 2>conftest.er1
  3190. - ac_status=$?
  3191. - grep -v '^ *+' conftest.er1 >conftest.err
  3192. - rm -f conftest.er1
  3193. - cat conftest.err >&5
  3194. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3195. - (exit $ac_status); } && {
  3196. - test -z "$ac_c_werror_flag" ||
  3197. - test ! -s conftest.err
  3198. - } && test -s conftest.$ac_objext; then
  3199. +if ac_fn_c_try_compile "$LINENO"; then :
  3200. ac_compiler_gnu=yes
  3201. else
  3202. - $as_echo "$as_me: failed program was:" >&5
  3203. -sed 's/^/| /' conftest.$ac_ext >&5
  3204. -
  3205. - ac_compiler_gnu=no
  3206. + ac_compiler_gnu=no
  3207. fi
  3208. -
  3209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3210. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3211. fi
  3212. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3213. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3214. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3215. if test $ac_compiler_gnu = yes; then
  3216. GCC=yes
  3217. @@ -3079,20 +3407,16 @@ else
  3218. fi
  3219. ac_test_CFLAGS=${CFLAGS+set}
  3220. ac_save_CFLAGS=$CFLAGS
  3221. -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3222. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3223. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3224. -if test "${ac_cv_prog_cc_g+set}" = set; then
  3225. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  3226. $as_echo_n "(cached) " >&6
  3227. else
  3228. ac_save_c_werror_flag=$ac_c_werror_flag
  3229. ac_c_werror_flag=yes
  3230. ac_cv_prog_cc_g=no
  3231. CFLAGS="-g"
  3232. - cat >conftest.$ac_ext <<_ACEOF
  3233. -/* confdefs.h. */
  3234. -_ACEOF
  3235. -cat confdefs.h >>conftest.$ac_ext
  3236. -cat >>conftest.$ac_ext <<_ACEOF
  3237. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3238. /* end confdefs.h. */
  3239. int
  3240. @@ -3103,35 +3427,11 @@ main ()
  3241. return 0;
  3242. }
  3243. _ACEOF
  3244. -rm -f conftest.$ac_objext
  3245. -if { (ac_try="$ac_compile"
  3246. -case "(($ac_try" in
  3247. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3248. - *) ac_try_echo=$ac_try;;
  3249. -esac
  3250. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3251. -$as_echo "$ac_try_echo") >&5
  3252. - (eval "$ac_compile") 2>conftest.er1
  3253. - ac_status=$?
  3254. - grep -v '^ *+' conftest.er1 >conftest.err
  3255. - rm -f conftest.er1
  3256. - cat conftest.err >&5
  3257. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3258. - (exit $ac_status); } && {
  3259. - test -z "$ac_c_werror_flag" ||
  3260. - test ! -s conftest.err
  3261. - } && test -s conftest.$ac_objext; then
  3262. +if ac_fn_c_try_compile "$LINENO"; then :
  3263. ac_cv_prog_cc_g=yes
  3264. else
  3265. - $as_echo "$as_me: failed program was:" >&5
  3266. -sed 's/^/| /' conftest.$ac_ext >&5
  3267. -
  3268. - CFLAGS=""
  3269. - cat >conftest.$ac_ext <<_ACEOF
  3270. -/* confdefs.h. */
  3271. -_ACEOF
  3272. -cat confdefs.h >>conftest.$ac_ext
  3273. -cat >>conftest.$ac_ext <<_ACEOF
  3274. + CFLAGS=""
  3275. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3276. /* end confdefs.h. */
  3277. int
  3278. @@ -3142,36 +3442,12 @@ main ()
  3279. return 0;
  3280. }
  3281. _ACEOF
  3282. -rm -f conftest.$ac_objext
  3283. -if { (ac_try="$ac_compile"
  3284. -case "(($ac_try" in
  3285. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3286. - *) ac_try_echo=$ac_try;;
  3287. -esac
  3288. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3289. -$as_echo "$ac_try_echo") >&5
  3290. - (eval "$ac_compile") 2>conftest.er1
  3291. - ac_status=$?
  3292. - grep -v '^ *+' conftest.er1 >conftest.err
  3293. - rm -f conftest.er1
  3294. - cat conftest.err >&5
  3295. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3296. - (exit $ac_status); } && {
  3297. - test -z "$ac_c_werror_flag" ||
  3298. - test ! -s conftest.err
  3299. - } && test -s conftest.$ac_objext; then
  3300. - :
  3301. -else
  3302. - $as_echo "$as_me: failed program was:" >&5
  3303. -sed 's/^/| /' conftest.$ac_ext >&5
  3304. +if ac_fn_c_try_compile "$LINENO"; then :
  3305. - ac_c_werror_flag=$ac_save_c_werror_flag
  3306. +else
  3307. + ac_c_werror_flag=$ac_save_c_werror_flag
  3308. CFLAGS="-g"
  3309. - cat >conftest.$ac_ext <<_ACEOF
  3310. -/* confdefs.h. */
  3311. -_ACEOF
  3312. -cat confdefs.h >>conftest.$ac_ext
  3313. -cat >>conftest.$ac_ext <<_ACEOF
  3314. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3315. /* end confdefs.h. */
  3316. int
  3317. @@ -3182,42 +3458,17 @@ main ()
  3318. return 0;
  3319. }
  3320. _ACEOF
  3321. -rm -f conftest.$ac_objext
  3322. -if { (ac_try="$ac_compile"
  3323. -case "(($ac_try" in
  3324. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3325. - *) ac_try_echo=$ac_try;;
  3326. -esac
  3327. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3328. -$as_echo "$ac_try_echo") >&5
  3329. - (eval "$ac_compile") 2>conftest.er1
  3330. - ac_status=$?
  3331. - grep -v '^ *+' conftest.er1 >conftest.err
  3332. - rm -f conftest.er1
  3333. - cat conftest.err >&5
  3334. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3335. - (exit $ac_status); } && {
  3336. - test -z "$ac_c_werror_flag" ||
  3337. - test ! -s conftest.err
  3338. - } && test -s conftest.$ac_objext; then
  3339. +if ac_fn_c_try_compile "$LINENO"; then :
  3340. ac_cv_prog_cc_g=yes
  3341. -else
  3342. - $as_echo "$as_me: failed program was:" >&5
  3343. -sed 's/^/| /' conftest.$ac_ext >&5
  3344. -
  3345. -
  3346. fi
  3347. -
  3348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3349. fi
  3350. -
  3351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3352. fi
  3353. -
  3354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3355. ac_c_werror_flag=$ac_save_c_werror_flag
  3356. fi
  3357. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3358. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3359. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3360. if test "$ac_test_CFLAGS" = set; then
  3361. CFLAGS=$ac_save_CFLAGS
  3362. @@ -3234,18 +3485,14 @@ else
  3363. CFLAGS=
  3364. fi
  3365. fi
  3366. -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3367. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3368. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3369. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  3370. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3371. $as_echo_n "(cached) " >&6
  3372. else
  3373. ac_cv_prog_cc_c89=no
  3374. ac_save_CC=$CC
  3375. -cat >conftest.$ac_ext <<_ACEOF
  3376. -/* confdefs.h. */
  3377. -_ACEOF
  3378. -cat confdefs.h >>conftest.$ac_ext
  3379. -cat >>conftest.$ac_ext <<_ACEOF
  3380. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3381. /* end confdefs.h. */
  3382. #include <stdarg.h>
  3383. #include <stdio.h>
  3384. @@ -3302,32 +3549,9 @@ for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3385. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3386. do
  3387. CC="$ac_save_CC $ac_arg"
  3388. - rm -f conftest.$ac_objext
  3389. -if { (ac_try="$ac_compile"
  3390. -case "(($ac_try" in
  3391. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3392. - *) ac_try_echo=$ac_try;;
  3393. -esac
  3394. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3395. -$as_echo "$ac_try_echo") >&5
  3396. - (eval "$ac_compile") 2>conftest.er1
  3397. - ac_status=$?
  3398. - grep -v '^ *+' conftest.er1 >conftest.err
  3399. - rm -f conftest.er1
  3400. - cat conftest.err >&5
  3401. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3402. - (exit $ac_status); } && {
  3403. - test -z "$ac_c_werror_flag" ||
  3404. - test ! -s conftest.err
  3405. - } && test -s conftest.$ac_objext; then
  3406. + if ac_fn_c_try_compile "$LINENO"; then :
  3407. ac_cv_prog_cc_c89=$ac_arg
  3408. -else
  3409. - $as_echo "$as_me: failed program was:" >&5
  3410. -sed 's/^/| /' conftest.$ac_ext >&5
  3411. -
  3412. -
  3413. fi
  3414. -
  3415. rm -f core conftest.err conftest.$ac_objext
  3416. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3417. done
  3418. @@ -3338,17 +3562,19 @@ fi
  3419. # AC_CACHE_VAL
  3420. case "x$ac_cv_prog_cc_c89" in
  3421. x)
  3422. - { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3423. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3424. $as_echo "none needed" >&6; } ;;
  3425. xno)
  3426. - { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3427. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3428. $as_echo "unsupported" >&6; } ;;
  3429. *)
  3430. CC="$CC $ac_cv_prog_cc_c89"
  3431. - { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3432. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3433. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3434. esac
  3435. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  3436. +fi
  3437. ac_ext=c
  3438. ac_cpp='$CPP $CPPFLAGS'
  3439. @@ -3363,44 +3589,44 @@ ac_config_commands="$ac_config_commands depfiles"
  3440. am_make=${MAKE-make}
  3441. cat > confinc << 'END'
  3442. am__doit:
  3443. - @echo done
  3444. + @echo this is the am__doit target
  3445. .PHONY: am__doit
  3446. END
  3447. # If we don't find an include directive, just comment out the code.
  3448. -{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3449. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3450. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3451. am__include="#"
  3452. am__quote=
  3453. _am_result=none
  3454. # First try GNU make style include.
  3455. echo "include confinc" > confmf
  3456. -# We grep out `Entering directory' and `Leaving directory'
  3457. -# messages which can occur if `w' ends up in MAKEFLAGS.
  3458. -# In particular we don't look at `^make:' because GNU make might
  3459. -# be invoked under some other name (usually "gmake"), in which
  3460. -# case it prints its new name instead of `make'.
  3461. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3462. - am__include=include
  3463. - am__quote=
  3464. - _am_result=GNU
  3465. -fi
  3466. +# Ignore all kinds of additional output from `make'.
  3467. +case `$am_make -s -f confmf 2> /dev/null` in #(
  3468. +*the\ am__doit\ target*)
  3469. + am__include=include
  3470. + am__quote=
  3471. + _am_result=GNU
  3472. + ;;
  3473. +esac
  3474. # Now try BSD make style include.
  3475. if test "$am__include" = "#"; then
  3476. echo '.include "confinc"' > confmf
  3477. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3478. - am__include=.include
  3479. - am__quote="\""
  3480. - _am_result=BSD
  3481. - fi
  3482. + case `$am_make -s -f confmf 2> /dev/null` in #(
  3483. + *the\ am__doit\ target*)
  3484. + am__include=.include
  3485. + am__quote="\""
  3486. + _am_result=BSD
  3487. + ;;
  3488. + esac
  3489. fi
  3490. -{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3491. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3492. $as_echo "$_am_result" >&6; }
  3493. rm -f confinc confmf
  3494. # Check whether --enable-dependency-tracking was given.
  3495. -if test "${enable_dependency_tracking+set}" = set; then
  3496. +if test "${enable_dependency_tracking+set}" = set; then :
  3497. enableval=$enable_dependency_tracking;
  3498. fi
  3499. @@ -3408,9 +3634,7 @@ if test "x$enable_dependency_tracking" != xno; then
  3500. am_depcomp="$ac_aux_dir/depcomp"
  3501. AMDEPBACKSLASH='\'
  3502. fi
  3503. -
  3504. -
  3505. -if test "x$enable_dependency_tracking" != xno; then
  3506. + if test "x$enable_dependency_tracking" != xno; then
  3507. AMDEP_TRUE=
  3508. AMDEP_FALSE='#'
  3509. else
  3510. @@ -3420,12 +3644,11 @@ fi
  3511. -
  3512. depcc="$CC" am_compiler_list=
  3513. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3514. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3515. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3516. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3517. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3518. $as_echo_n "(cached) " >&6
  3519. else
  3520. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3521. @@ -3451,6 +3674,11 @@ else
  3522. if test "$am_compiler_list" = ""; then
  3523. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3524. fi
  3525. + am__universal=false
  3526. + case " $depcc " in #(
  3527. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3528. + esac
  3529. +
  3530. for depmode in $am_compiler_list; do
  3531. # Setup a source with many dependencies, because some compilers
  3532. # like to wrap large dependency lists on column 80 (with \), and
  3533. @@ -3468,7 +3696,17 @@ else
  3534. done
  3535. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3536. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3537. + # mode. It turns out that the SunPro C++ compiler does not properly
  3538. + # handle `-M -o', and we need to detect this. Also, some Intel
  3539. + # versions had trouble with output in subdirs
  3540. + am__obj=sub/conftest.${OBJEXT-o}
  3541. + am__minus_obj="-o $am__obj"
  3542. case $depmode in
  3543. + gcc)
  3544. + # This depmode causes a compiler race in universal mode.
  3545. + test "$am__universal" = false || continue
  3546. + ;;
  3547. nosideeffect)
  3548. # after this tag, mechanisms are not by side-effect, so they'll
  3549. # only be used when explicitly requested
  3550. @@ -3478,18 +3716,23 @@ else
  3551. break
  3552. fi
  3553. ;;
  3554. + msvisualcpp | msvcmsys)
  3555. + # This compiler won't grok `-c -o', but also, the minuso test has
  3556. + # not run yet. These depmodes are late enough in the game, and
  3557. + # so weak that their functioning should not be impacted.
  3558. + am__obj=conftest.${OBJEXT-o}
  3559. + am__minus_obj=
  3560. + ;;
  3561. none) break ;;
  3562. esac
  3563. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3564. - # mode. It turns out that the SunPro C++ compiler does not properly
  3565. - # handle `-M -o', and we need to detect this.
  3566. if depmode=$depmode \
  3567. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3568. + source=sub/conftest.c object=$am__obj \
  3569. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3570. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3571. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3572. >/dev/null 2>conftest.err &&
  3573. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3574. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3575. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3576. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3577. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3578. # icc doesn't choke on unknown options, it will just issue warnings
  3579. # or remarks (even with -Werror). So we grep stderr for any message
  3580. @@ -3513,13 +3756,11 @@ else
  3581. fi
  3582. fi
  3583. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3584. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3585. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3586. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3587. -
  3588. -
  3589. -if
  3590. + if
  3591. test "x$enable_dependency_tracking" != xno \
  3592. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3593. am__fastdepCC_TRUE=
  3594. @@ -3556,14 +3797,14 @@ ac_cpp='$CPP $CPPFLAGS'
  3595. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3596. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3597. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3598. -{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3599. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3600. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3601. # On Suns, sometimes $CPP names a directory.
  3602. if test -n "$CPP" && test -d "$CPP"; then
  3603. CPP=
  3604. fi
  3605. if test -z "$CPP"; then
  3606. - if test "${ac_cv_prog_CPP+set}" = set; then
  3607. + if test "${ac_cv_prog_CPP+set}" = set; then :
  3608. $as_echo_n "(cached) " >&6
  3609. else
  3610. # Double quotes because CPP needs to be expanded
  3611. @@ -3578,11 +3819,7 @@ do
  3612. # <limits.h> exists even on freestanding compilers.
  3613. # On the NeXT, cc -E runs the code through the compiler's parser,
  3614. # not just through cpp. "Syntax error" is here to catch this case.
  3615. - cat >conftest.$ac_ext <<_ACEOF
  3616. -/* confdefs.h. */
  3617. -_ACEOF
  3618. -cat confdefs.h >>conftest.$ac_ext
  3619. -cat >>conftest.$ac_ext <<_ACEOF
  3620. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3621. /* end confdefs.h. */
  3622. #ifdef __STDC__
  3623. # include <limits.h>
  3624. @@ -3591,78 +3828,34 @@ cat >>conftest.$ac_ext <<_ACEOF
  3625. #endif
  3626. Syntax error
  3627. _ACEOF
  3628. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  3629. -case "(($ac_try" in
  3630. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3631. - *) ac_try_echo=$ac_try;;
  3632. -esac
  3633. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3634. -$as_echo "$ac_try_echo") >&5
  3635. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3636. - ac_status=$?
  3637. - grep -v '^ *+' conftest.er1 >conftest.err
  3638. - rm -f conftest.er1
  3639. - cat conftest.err >&5
  3640. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3641. - (exit $ac_status); } >/dev/null && {
  3642. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3643. - test ! -s conftest.err
  3644. - }; then
  3645. - :
  3646. -else
  3647. - $as_echo "$as_me: failed program was:" >&5
  3648. -sed 's/^/| /' conftest.$ac_ext >&5
  3649. +if ac_fn_c_try_cpp "$LINENO"; then :
  3650. +else
  3651. # Broken: fails on valid input.
  3652. continue
  3653. fi
  3654. -
  3655. -rm -f conftest.err conftest.$ac_ext
  3656. +rm -f conftest.err conftest.i conftest.$ac_ext
  3657. # OK, works on sane cases. Now check whether nonexistent headers
  3658. # can be detected and how.
  3659. - cat >conftest.$ac_ext <<_ACEOF
  3660. -/* confdefs.h. */
  3661. -_ACEOF
  3662. -cat confdefs.h >>conftest.$ac_ext
  3663. -cat >>conftest.$ac_ext <<_ACEOF
  3664. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3665. /* end confdefs.h. */
  3666. #include <ac_nonexistent.h>
  3667. _ACEOF
  3668. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  3669. -case "(($ac_try" in
  3670. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3671. - *) ac_try_echo=$ac_try;;
  3672. -esac
  3673. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3674. -$as_echo "$ac_try_echo") >&5
  3675. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3676. - ac_status=$?
  3677. - grep -v '^ *+' conftest.er1 >conftest.err
  3678. - rm -f conftest.er1
  3679. - cat conftest.err >&5
  3680. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3681. - (exit $ac_status); } >/dev/null && {
  3682. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3683. - test ! -s conftest.err
  3684. - }; then
  3685. +if ac_fn_c_try_cpp "$LINENO"; then :
  3686. # Broken: success on invalid input.
  3687. continue
  3688. else
  3689. - $as_echo "$as_me: failed program was:" >&5
  3690. -sed 's/^/| /' conftest.$ac_ext >&5
  3691. -
  3692. # Passes both tests.
  3693. ac_preproc_ok=:
  3694. break
  3695. fi
  3696. -
  3697. -rm -f conftest.err conftest.$ac_ext
  3698. +rm -f conftest.err conftest.i conftest.$ac_ext
  3699. done
  3700. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3701. -rm -f conftest.err conftest.$ac_ext
  3702. -if $ac_preproc_ok; then
  3703. +rm -f conftest.i conftest.err conftest.$ac_ext
  3704. +if $ac_preproc_ok; then :
  3705. break
  3706. fi
  3707. @@ -3674,7 +3867,7 @@ fi
  3708. else
  3709. ac_cv_prog_CPP=$CPP
  3710. fi
  3711. -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
  3712. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3713. $as_echo "$CPP" >&6; }
  3714. ac_preproc_ok=false
  3715. for ac_c_preproc_warn_flag in '' yes
  3716. @@ -3685,11 +3878,7 @@ do
  3717. # <limits.h> exists even on freestanding compilers.
  3718. # On the NeXT, cc -E runs the code through the compiler's parser,
  3719. # not just through cpp. "Syntax error" is here to catch this case.
  3720. - cat >conftest.$ac_ext <<_ACEOF
  3721. -/* confdefs.h. */
  3722. -_ACEOF
  3723. -cat confdefs.h >>conftest.$ac_ext
  3724. -cat >>conftest.$ac_ext <<_ACEOF
  3725. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3726. /* end confdefs.h. */
  3727. #ifdef __STDC__
  3728. # include <limits.h>
  3729. @@ -3698,85 +3887,40 @@ cat >>conftest.$ac_ext <<_ACEOF
  3730. #endif
  3731. Syntax error
  3732. _ACEOF
  3733. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  3734. -case "(($ac_try" in
  3735. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3736. - *) ac_try_echo=$ac_try;;
  3737. -esac
  3738. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3739. -$as_echo "$ac_try_echo") >&5
  3740. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3741. - ac_status=$?
  3742. - grep -v '^ *+' conftest.er1 >conftest.err
  3743. - rm -f conftest.er1
  3744. - cat conftest.err >&5
  3745. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3746. - (exit $ac_status); } >/dev/null && {
  3747. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3748. - test ! -s conftest.err
  3749. - }; then
  3750. - :
  3751. -else
  3752. - $as_echo "$as_me: failed program was:" >&5
  3753. -sed 's/^/| /' conftest.$ac_ext >&5
  3754. +if ac_fn_c_try_cpp "$LINENO"; then :
  3755. +else
  3756. # Broken: fails on valid input.
  3757. continue
  3758. fi
  3759. -
  3760. -rm -f conftest.err conftest.$ac_ext
  3761. +rm -f conftest.err conftest.i conftest.$ac_ext
  3762. # OK, works on sane cases. Now check whether nonexistent headers
  3763. # can be detected and how.
  3764. - cat >conftest.$ac_ext <<_ACEOF
  3765. -/* confdefs.h. */
  3766. -_ACEOF
  3767. -cat confdefs.h >>conftest.$ac_ext
  3768. -cat >>conftest.$ac_ext <<_ACEOF
  3769. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3770. /* end confdefs.h. */
  3771. #include <ac_nonexistent.h>
  3772. _ACEOF
  3773. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  3774. -case "(($ac_try" in
  3775. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3776. - *) ac_try_echo=$ac_try;;
  3777. -esac
  3778. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3779. -$as_echo "$ac_try_echo") >&5
  3780. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3781. - ac_status=$?
  3782. - grep -v '^ *+' conftest.er1 >conftest.err
  3783. - rm -f conftest.er1
  3784. - cat conftest.err >&5
  3785. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3786. - (exit $ac_status); } >/dev/null && {
  3787. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3788. - test ! -s conftest.err
  3789. - }; then
  3790. +if ac_fn_c_try_cpp "$LINENO"; then :
  3791. # Broken: success on invalid input.
  3792. continue
  3793. else
  3794. - $as_echo "$as_me: failed program was:" >&5
  3795. -sed 's/^/| /' conftest.$ac_ext >&5
  3796. -
  3797. # Passes both tests.
  3798. ac_preproc_ok=:
  3799. break
  3800. fi
  3801. -
  3802. -rm -f conftest.err conftest.$ac_ext
  3803. +rm -f conftest.err conftest.i conftest.$ac_ext
  3804. done
  3805. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3806. -rm -f conftest.err conftest.$ac_ext
  3807. -if $ac_preproc_ok; then
  3808. - :
  3809. +rm -f conftest.i conftest.err conftest.$ac_ext
  3810. +if $ac_preproc_ok; then :
  3811. +
  3812. else
  3813. - { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3814. -See \`config.log' for more details." >&5
  3815. -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3816. -See \`config.log' for more details." >&2;}
  3817. - { (exit 1); exit 1; }; }
  3818. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3819. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3820. +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3821. +See \`config.log' for more details" "$LINENO" 5 ; }
  3822. fi
  3823. ac_ext=c
  3824. @@ -3786,9 +3930,9 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
  3825. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3826. -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3827. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3828. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3829. -if test "${ac_cv_path_GREP+set}" = set; then
  3830. +if test "${ac_cv_path_GREP+set}" = set; then :
  3831. $as_echo_n "(cached) " >&6
  3832. else
  3833. if test -z "$GREP"; then
  3834. @@ -3799,7 +3943,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3835. do
  3836. IFS=$as_save_IFS
  3837. test -z "$as_dir" && as_dir=.
  3838. - for ac_prog in grep ggrep; do
  3839. + for ac_prog in grep ggrep; do
  3840. for ac_exec_ext in '' $ac_executable_extensions; do
  3841. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3842. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3843. @@ -3819,7 +3963,7 @@ case `"$ac_path_GREP" --version 2>&1` in
  3844. $as_echo 'GREP' >> "conftest.nl"
  3845. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3846. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3847. - ac_count=`expr $ac_count + 1`
  3848. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  3849. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3850. # Best one so far, save it but keep looking for a better one
  3851. ac_cv_path_GREP="$ac_path_GREP"
  3852. @@ -3834,26 +3978,24 @@ esac
  3853. $ac_path_GREP_found && break 3
  3854. done
  3855. done
  3856. -done
  3857. + done
  3858. IFS=$as_save_IFS
  3859. if test -z "$ac_cv_path_GREP"; then
  3860. - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3861. -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3862. - { (exit 1); exit 1; }; }
  3863. + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3864. fi
  3865. else
  3866. ac_cv_path_GREP=$GREP
  3867. fi
  3868. fi
  3869. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3870. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3871. $as_echo "$ac_cv_path_GREP" >&6; }
  3872. GREP="$ac_cv_path_GREP"
  3873. -{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3874. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3875. $as_echo_n "checking for egrep... " >&6; }
  3876. -if test "${ac_cv_path_EGREP+set}" = set; then
  3877. +if test "${ac_cv_path_EGREP+set}" = set; then :
  3878. $as_echo_n "(cached) " >&6
  3879. else
  3880. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3881. @@ -3867,7 +4009,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3882. do
  3883. IFS=$as_save_IFS
  3884. test -z "$as_dir" && as_dir=.
  3885. - for ac_prog in egrep; do
  3886. + for ac_prog in egrep; do
  3887. for ac_exec_ext in '' $ac_executable_extensions; do
  3888. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3889. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3890. @@ -3887,7 +4029,7 @@ case `"$ac_path_EGREP" --version 2>&1` in
  3891. $as_echo 'EGREP' >> "conftest.nl"
  3892. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3893. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3894. - ac_count=`expr $ac_count + 1`
  3895. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  3896. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3897. # Best one so far, save it but keep looking for a better one
  3898. ac_cv_path_EGREP="$ac_path_EGREP"
  3899. @@ -3902,12 +4044,10 @@ esac
  3900. $ac_path_EGREP_found && break 3
  3901. done
  3902. done
  3903. -done
  3904. + done
  3905. IFS=$as_save_IFS
  3906. if test -z "$ac_cv_path_EGREP"; then
  3907. - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3908. -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3909. - { (exit 1); exit 1; }; }
  3910. + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3911. fi
  3912. else
  3913. ac_cv_path_EGREP=$EGREP
  3914. @@ -3915,21 +4055,17 @@ fi
  3915. fi
  3916. fi
  3917. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3918. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3919. $as_echo "$ac_cv_path_EGREP" >&6; }
  3920. EGREP="$ac_cv_path_EGREP"
  3921. -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3922. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3923. $as_echo_n "checking for ANSI C header files... " >&6; }
  3924. -if test "${ac_cv_header_stdc+set}" = set; then
  3925. +if test "${ac_cv_header_stdc+set}" = set; then :
  3926. $as_echo_n "(cached) " >&6
  3927. else
  3928. - cat >conftest.$ac_ext <<_ACEOF
  3929. -/* confdefs.h. */
  3930. -_ACEOF
  3931. -cat confdefs.h >>conftest.$ac_ext
  3932. -cat >>conftest.$ac_ext <<_ACEOF
  3933. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3934. /* end confdefs.h. */
  3935. #include <stdlib.h>
  3936. #include <stdarg.h>
  3937. @@ -3944,48 +4080,23 @@ main ()
  3938. return 0;
  3939. }
  3940. _ACEOF
  3941. -rm -f conftest.$ac_objext
  3942. -if { (ac_try="$ac_compile"
  3943. -case "(($ac_try" in
  3944. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3945. - *) ac_try_echo=$ac_try;;
  3946. -esac
  3947. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3948. -$as_echo "$ac_try_echo") >&5
  3949. - (eval "$ac_compile") 2>conftest.er1
  3950. - ac_status=$?
  3951. - grep -v '^ *+' conftest.er1 >conftest.err
  3952. - rm -f conftest.er1
  3953. - cat conftest.err >&5
  3954. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3955. - (exit $ac_status); } && {
  3956. - test -z "$ac_c_werror_flag" ||
  3957. - test ! -s conftest.err
  3958. - } && test -s conftest.$ac_objext; then
  3959. +if ac_fn_c_try_compile "$LINENO"; then :
  3960. ac_cv_header_stdc=yes
  3961. else
  3962. - $as_echo "$as_me: failed program was:" >&5
  3963. -sed 's/^/| /' conftest.$ac_ext >&5
  3964. -
  3965. - ac_cv_header_stdc=no
  3966. + ac_cv_header_stdc=no
  3967. fi
  3968. -
  3969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3970. if test $ac_cv_header_stdc = yes; then
  3971. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3972. - cat >conftest.$ac_ext <<_ACEOF
  3973. -/* confdefs.h. */
  3974. -_ACEOF
  3975. -cat confdefs.h >>conftest.$ac_ext
  3976. -cat >>conftest.$ac_ext <<_ACEOF
  3977. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3978. /* end confdefs.h. */
  3979. #include <string.h>
  3980. _ACEOF
  3981. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3982. - $EGREP "memchr" >/dev/null 2>&1; then
  3983. - :
  3984. + $EGREP "memchr" >/dev/null 2>&1; then :
  3985. +
  3986. else
  3987. ac_cv_header_stdc=no
  3988. fi
  3989. @@ -3995,18 +4106,14 @@ fi
  3990. if test $ac_cv_header_stdc = yes; then
  3991. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3992. - cat >conftest.$ac_ext <<_ACEOF
  3993. -/* confdefs.h. */
  3994. -_ACEOF
  3995. -cat confdefs.h >>conftest.$ac_ext
  3996. -cat >>conftest.$ac_ext <<_ACEOF
  3997. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3998. /* end confdefs.h. */
  3999. #include <stdlib.h>
  4000. _ACEOF
  4001. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4002. - $EGREP "free" >/dev/null 2>&1; then
  4003. - :
  4004. + $EGREP "free" >/dev/null 2>&1; then :
  4005. +
  4006. else
  4007. ac_cv_header_stdc=no
  4008. fi
  4009. @@ -4016,14 +4123,10 @@ fi
  4010. if test $ac_cv_header_stdc = yes; then
  4011. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4012. - if test "$cross_compiling" = yes; then
  4013. + if test "$cross_compiling" = yes; then :
  4014. :
  4015. else
  4016. - cat >conftest.$ac_ext <<_ACEOF
  4017. -/* confdefs.h. */
  4018. -_ACEOF
  4019. -cat confdefs.h >>conftest.$ac_ext
  4020. -cat >>conftest.$ac_ext <<_ACEOF
  4021. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4022. /* end confdefs.h. */
  4023. #include <ctype.h>
  4024. #include <stdlib.h>
  4025. @@ -4050,117 +4153,33 @@ main ()
  4026. return 0;
  4027. }
  4028. _ACEOF
  4029. -rm -f conftest$ac_exeext
  4030. -if { (ac_try="$ac_link"
  4031. -case "(($ac_try" in
  4032. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4033. - *) ac_try_echo=$ac_try;;
  4034. -esac
  4035. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4036. -$as_echo "$ac_try_echo") >&5
  4037. - (eval "$ac_link") 2>&5
  4038. - ac_status=$?
  4039. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4040. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4041. - { (case "(($ac_try" in
  4042. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4043. - *) ac_try_echo=$ac_try;;
  4044. -esac
  4045. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4046. -$as_echo "$ac_try_echo") >&5
  4047. - (eval "$ac_try") 2>&5
  4048. - ac_status=$?
  4049. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4050. - (exit $ac_status); }; }; then
  4051. - :
  4052. -else
  4053. - $as_echo "$as_me: program exited with status $ac_status" >&5
  4054. -$as_echo "$as_me: failed program was:" >&5
  4055. -sed 's/^/| /' conftest.$ac_ext >&5
  4056. +if ac_fn_c_try_run "$LINENO"; then :
  4057. -( exit $ac_status )
  4058. -ac_cv_header_stdc=no
  4059. +else
  4060. + ac_cv_header_stdc=no
  4061. fi
  4062. -rm -rf conftest.dSYM
  4063. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4064. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4065. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  4066. fi
  4067. -
  4068. fi
  4069. fi
  4070. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4071. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4072. $as_echo "$ac_cv_header_stdc" >&6; }
  4073. if test $ac_cv_header_stdc = yes; then
  4074. -cat >>confdefs.h <<\_ACEOF
  4075. -#define STDC_HEADERS 1
  4076. -_ACEOF
  4077. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4078. fi
  4079. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4080. -
  4081. -
  4082. -
  4083. -
  4084. -
  4085. -
  4086. -
  4087. -
  4088. -
  4089. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4090. inttypes.h stdint.h unistd.h
  4091. -do
  4092. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4093. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4094. -$as_echo_n "checking for $ac_header... " >&6; }
  4095. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4096. - $as_echo_n "(cached) " >&6
  4097. -else
  4098. - cat >conftest.$ac_ext <<_ACEOF
  4099. -/* confdefs.h. */
  4100. -_ACEOF
  4101. -cat confdefs.h >>conftest.$ac_ext
  4102. -cat >>conftest.$ac_ext <<_ACEOF
  4103. -/* end confdefs.h. */
  4104. -$ac_includes_default
  4105. -
  4106. -#include <$ac_header>
  4107. -_ACEOF
  4108. -rm -f conftest.$ac_objext
  4109. -if { (ac_try="$ac_compile"
  4110. -case "(($ac_try" in
  4111. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4112. - *) ac_try_echo=$ac_try;;
  4113. -esac
  4114. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4115. -$as_echo "$ac_try_echo") >&5
  4116. - (eval "$ac_compile") 2>conftest.er1
  4117. - ac_status=$?
  4118. - grep -v '^ *+' conftest.er1 >conftest.err
  4119. - rm -f conftest.er1
  4120. - cat conftest.err >&5
  4121. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4122. - (exit $ac_status); } && {
  4123. - test -z "$ac_c_werror_flag" ||
  4124. - test ! -s conftest.err
  4125. - } && test -s conftest.$ac_objext; then
  4126. - eval "$as_ac_Header=yes"
  4127. -else
  4128. - $as_echo "$as_me: failed program was:" >&5
  4129. -sed 's/^/| /' conftest.$ac_ext >&5
  4130. -
  4131. - eval "$as_ac_Header=no"
  4132. -fi
  4133. -
  4134. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4135. -fi
  4136. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  4137. - $as_echo "$as_val"'`
  4138. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4139. -$as_echo "$ac_res" >&6; }
  4140. -if test `eval 'as_val=${'$as_ac_Header'}
  4141. - $as_echo "$as_val"'` = yes; then
  4142. +do :
  4143. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4144. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4145. +"
  4146. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4147. cat >>confdefs.h <<_ACEOF
  4148. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4149. _ACEOF
  4150. @@ -4170,150 +4189,12 @@ fi
  4151. done
  4152. -
  4153. for ac_header in gsm.h
  4154. -do
  4155. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4156. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4157. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4158. -$as_echo_n "checking for $ac_header... " >&6; }
  4159. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4160. - $as_echo_n "(cached) " >&6
  4161. -fi
  4162. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  4163. - $as_echo "$as_val"'`
  4164. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4165. -$as_echo "$ac_res" >&6; }
  4166. -else
  4167. - # Is the header compilable?
  4168. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4169. -$as_echo_n "checking $ac_header usability... " >&6; }
  4170. -cat >conftest.$ac_ext <<_ACEOF
  4171. -/* confdefs.h. */
  4172. -_ACEOF
  4173. -cat confdefs.h >>conftest.$ac_ext
  4174. -cat >>conftest.$ac_ext <<_ACEOF
  4175. -/* end confdefs.h. */
  4176. -$ac_includes_default
  4177. -#include <$ac_header>
  4178. -_ACEOF
  4179. -rm -f conftest.$ac_objext
  4180. -if { (ac_try="$ac_compile"
  4181. -case "(($ac_try" in
  4182. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4183. - *) ac_try_echo=$ac_try;;
  4184. -esac
  4185. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4186. -$as_echo "$ac_try_echo") >&5
  4187. - (eval "$ac_compile") 2>conftest.er1
  4188. - ac_status=$?
  4189. - grep -v '^ *+' conftest.er1 >conftest.err
  4190. - rm -f conftest.er1
  4191. - cat conftest.err >&5
  4192. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4193. - (exit $ac_status); } && {
  4194. - test -z "$ac_c_werror_flag" ||
  4195. - test ! -s conftest.err
  4196. - } && test -s conftest.$ac_objext; then
  4197. - ac_header_compiler=yes
  4198. -else
  4199. - $as_echo "$as_me: failed program was:" >&5
  4200. -sed 's/^/| /' conftest.$ac_ext >&5
  4201. -
  4202. - ac_header_compiler=no
  4203. -fi
  4204. -
  4205. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4206. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4207. -$as_echo "$ac_header_compiler" >&6; }
  4208. -
  4209. -# Is the header present?
  4210. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4211. -$as_echo_n "checking $ac_header presence... " >&6; }
  4212. -cat >conftest.$ac_ext <<_ACEOF
  4213. -/* confdefs.h. */
  4214. -_ACEOF
  4215. -cat confdefs.h >>conftest.$ac_ext
  4216. -cat >>conftest.$ac_ext <<_ACEOF
  4217. -/* end confdefs.h. */
  4218. -#include <$ac_header>
  4219. -_ACEOF
  4220. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  4221. -case "(($ac_try" in
  4222. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4223. - *) ac_try_echo=$ac_try;;
  4224. -esac
  4225. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4226. -$as_echo "$ac_try_echo") >&5
  4227. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4228. - ac_status=$?
  4229. - grep -v '^ *+' conftest.er1 >conftest.err
  4230. - rm -f conftest.er1
  4231. - cat conftest.err >&5
  4232. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4233. - (exit $ac_status); } >/dev/null && {
  4234. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4235. - test ! -s conftest.err
  4236. - }; then
  4237. - ac_header_preproc=yes
  4238. -else
  4239. - $as_echo "$as_me: failed program was:" >&5
  4240. -sed 's/^/| /' conftest.$ac_ext >&5
  4241. -
  4242. - ac_header_preproc=no
  4243. -fi
  4244. -
  4245. -rm -f conftest.err conftest.$ac_ext
  4246. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4247. -$as_echo "$ac_header_preproc" >&6; }
  4248. -
  4249. -# So? What about this header?
  4250. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4251. - yes:no: )
  4252. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4253. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4254. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4255. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4256. - ac_header_preproc=yes
  4257. - ;;
  4258. - no:yes:* )
  4259. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4260. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4261. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4262. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4263. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4264. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4265. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4266. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4267. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4268. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4269. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4270. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4271. - ( cat <<\_ASBOX
  4272. -## ------------------------------------ ##
  4273. -## Report this to [email protected] ##
  4274. -## ------------------------------------ ##
  4275. -_ASBOX
  4276. - ) | sed "s/^/$as_me: WARNING: /" >&2
  4277. - ;;
  4278. -esac
  4279. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4280. -$as_echo_n "checking for $ac_header... " >&6; }
  4281. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4282. - $as_echo_n "(cached) " >&6
  4283. -else
  4284. - eval "$as_ac_Header=\$ac_header_preproc"
  4285. -fi
  4286. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  4287. - $as_echo "$as_val"'`
  4288. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4289. -$as_echo "$ac_res" >&6; }
  4290. -
  4291. -fi
  4292. -if test `eval 'as_val=${'$as_ac_Header'}
  4293. - $as_echo "$as_val"'` = yes; then
  4294. +do :
  4295. + ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
  4296. +if test "x$ac_cv_header_gsm_h" = x""yes; then :
  4297. cat >>confdefs.h <<_ACEOF
  4298. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4299. +#define HAVE_GSM_H 1
  4300. _ACEOF
  4301. found_libgsm=yes
  4302. fi
  4303. @@ -4322,18 +4203,14 @@ done
  4304. if test "$found_libgsm" = yes
  4305. then
  4306. - { $as_echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
  4307. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
  4308. $as_echo_n "checking for gsm_create in -lgsm... " >&6; }
  4309. -if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
  4310. +if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then :
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. ac_check_lib_save_LIBS=$LIBS
  4314. LIBS="-lgsm $LIBS"
  4315. -cat >conftest.$ac_ext <<_ACEOF
  4316. -/* confdefs.h. */
  4317. -_ACEOF
  4318. -cat confdefs.h >>conftest.$ac_ext
  4319. -cat >>conftest.$ac_ext <<_ACEOF
  4320. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4321. /* end confdefs.h. */
  4322. /* Override any GCC internal prototype to avoid an error.
  4323. @@ -4351,219 +4228,113 @@ return gsm_create ();
  4324. return 0;
  4325. }
  4326. _ACEOF
  4327. -rm -f conftest.$ac_objext conftest$ac_exeext
  4328. -if { (ac_try="$ac_link"
  4329. -case "(($ac_try" in
  4330. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4331. - *) ac_try_echo=$ac_try;;
  4332. -esac
  4333. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4334. -$as_echo "$ac_try_echo") >&5
  4335. - (eval "$ac_link") 2>conftest.er1
  4336. - ac_status=$?
  4337. - grep -v '^ *+' conftest.er1 >conftest.err
  4338. - rm -f conftest.er1
  4339. - cat conftest.err >&5
  4340. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4341. - (exit $ac_status); } && {
  4342. - test -z "$ac_c_werror_flag" ||
  4343. - test ! -s conftest.err
  4344. - } && test -s conftest$ac_exeext && {
  4345. - test "$cross_compiling" = yes ||
  4346. - $as_test_x conftest$ac_exeext
  4347. - }; then
  4348. +if ac_fn_c_try_link "$LINENO"; then :
  4349. ac_cv_lib_gsm_gsm_create=yes
  4350. else
  4351. - $as_echo "$as_me: failed program was:" >&5
  4352. -sed 's/^/| /' conftest.$ac_ext >&5
  4353. -
  4354. - ac_cv_lib_gsm_gsm_create=no
  4355. + ac_cv_lib_gsm_gsm_create=no
  4356. fi
  4357. -
  4358. -rm -rf conftest.dSYM
  4359. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4360. - conftest$ac_exeext conftest.$ac_ext
  4361. +rm -f core conftest.err conftest.$ac_objext \
  4362. + conftest$ac_exeext conftest.$ac_ext
  4363. LIBS=$ac_check_lib_save_LIBS
  4364. fi
  4365. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
  4366. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5
  4367. $as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
  4368. -if test $ac_cv_lib_gsm_gsm_create = yes; then
  4369. +if test "x$ac_cv_lib_gsm_gsm_create" = x""yes; then :
  4370. LIBS_GSM="-lgsm"
  4371. GSM_SUPPORT=ext
  4372. -cat >>confdefs.h <<\_ACEOF
  4373. -#define ENABLE_GSM 1
  4374. -_ACEOF
  4375. +$as_echo "#define ENABLE_GSM 1" >>confdefs.h
  4376. fi
  4377. fi
  4378. # G.729
  4379. -
  4380. for ac_header in g729_encoder.h
  4381. -do
  4382. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4383. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4384. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4385. -$as_echo_n "checking for $ac_header... " >&6; }
  4386. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4387. - $as_echo_n "(cached) " >&6
  4388. -fi
  4389. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  4390. - $as_echo "$as_val"'`
  4391. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4392. -$as_echo "$ac_res" >&6; }
  4393. -else
  4394. - # Is the header compilable?
  4395. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4396. -$as_echo_n "checking $ac_header usability... " >&6; }
  4397. -cat >conftest.$ac_ext <<_ACEOF
  4398. -/* confdefs.h. */
  4399. -_ACEOF
  4400. -cat confdefs.h >>conftest.$ac_ext
  4401. -cat >>conftest.$ac_ext <<_ACEOF
  4402. -/* end confdefs.h. */
  4403. -$ac_includes_default
  4404. -#include <$ac_header>
  4405. +do :
  4406. + ac_fn_c_check_header_mongrel "$LINENO" "g729_encoder.h" "ac_cv_header_g729_encoder_h" "$ac_includes_default"
  4407. +if test "x$ac_cv_header_g729_encoder_h" = x""yes; then :
  4408. + cat >>confdefs.h <<_ACEOF
  4409. +#define HAVE_G729_ENCODER_H 1
  4410. _ACEOF
  4411. -rm -f conftest.$ac_objext
  4412. -if { (ac_try="$ac_compile"
  4413. -case "(($ac_try" in
  4414. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4415. - *) ac_try_echo=$ac_try;;
  4416. -esac
  4417. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4418. -$as_echo "$ac_try_echo") >&5
  4419. - (eval "$ac_compile") 2>conftest.er1
  4420. - ac_status=$?
  4421. - grep -v '^ *+' conftest.er1 >conftest.err
  4422. - rm -f conftest.er1
  4423. - cat conftest.err >&5
  4424. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4425. - (exit $ac_status); } && {
  4426. - test -z "$ac_c_werror_flag" ||
  4427. - test ! -s conftest.err
  4428. - } && test -s conftest.$ac_objext; then
  4429. - ac_header_compiler=yes
  4430. -else
  4431. - $as_echo "$as_me: failed program was:" >&5
  4432. -sed 's/^/| /' conftest.$ac_ext >&5
  4433. -
  4434. - ac_header_compiler=no
  4435. + found_libg729=yes
  4436. fi
  4437. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4438. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4439. -$as_echo "$ac_header_compiler" >&6; }
  4440. +done
  4441. -# Is the header present?
  4442. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4443. -$as_echo_n "checking $ac_header presence... " >&6; }
  4444. -cat >conftest.$ac_ext <<_ACEOF
  4445. -/* confdefs.h. */
  4446. -_ACEOF
  4447. -cat confdefs.h >>conftest.$ac_ext
  4448. -cat >>conftest.$ac_ext <<_ACEOF
  4449. +if test "$found_libg729" = yes
  4450. +then
  4451. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g729_encoder_new in -lg729" >&5
  4452. +$as_echo_n "checking for g729_encoder_new in -lg729... " >&6; }
  4453. +if test "${ac_cv_lib_g729_g729_encoder_new+set}" = set; then :
  4454. + $as_echo_n "(cached) " >&6
  4455. +else
  4456. + ac_check_lib_save_LIBS=$LIBS
  4457. +LIBS="-lg729 $LIBS"
  4458. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4459. /* end confdefs.h. */
  4460. -#include <$ac_header>
  4461. +
  4462. +/* Override any GCC internal prototype to avoid an error.
  4463. + Use char because int might match the return type of a GCC
  4464. + builtin and then its argument prototype would still apply. */
  4465. +#ifdef __cplusplus
  4466. +extern "C"
  4467. +#endif
  4468. +char g729_encoder_new ();
  4469. +int
  4470. +main ()
  4471. +{
  4472. +return g729_encoder_new ();
  4473. + ;
  4474. + return 0;
  4475. +}
  4476. _ACEOF
  4477. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  4478. -case "(($ac_try" in
  4479. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4480. - *) ac_try_echo=$ac_try;;
  4481. -esac
  4482. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4483. -$as_echo "$ac_try_echo") >&5
  4484. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4485. - ac_status=$?
  4486. - grep -v '^ *+' conftest.er1 >conftest.err
  4487. - rm -f conftest.er1
  4488. - cat conftest.err >&5
  4489. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4490. - (exit $ac_status); } >/dev/null && {
  4491. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4492. - test ! -s conftest.err
  4493. - }; then
  4494. - ac_header_preproc=yes
  4495. +if ac_fn_c_try_link "$LINENO"; then :
  4496. + ac_cv_lib_g729_g729_encoder_new=yes
  4497. else
  4498. - $as_echo "$as_me: failed program was:" >&5
  4499. -sed 's/^/| /' conftest.$ac_ext >&5
  4500. -
  4501. - ac_header_preproc=no
  4502. + ac_cv_lib_g729_g729_encoder_new=no
  4503. fi
  4504. +rm -f core conftest.err conftest.$ac_objext \
  4505. + conftest$ac_exeext conftest.$ac_ext
  4506. +LIBS=$ac_check_lib_save_LIBS
  4507. +fi
  4508. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g729_g729_encoder_new" >&5
  4509. +$as_echo "$ac_cv_lib_g729_g729_encoder_new" >&6; }
  4510. +if test "x$ac_cv_lib_g729_g729_encoder_new" = x""yes; then :
  4511. + LIBS_G729="-lg729"
  4512. + G729_SUPPORT=ext
  4513. +
  4514. +$as_echo "#define ENABLE_G729 1" >>confdefs.h
  4515. -rm -f conftest.err conftest.$ac_ext
  4516. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4517. -$as_echo "$ac_header_preproc" >&6; }
  4518. -# So? What about this header?
  4519. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4520. - yes:no: )
  4521. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4522. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4523. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4524. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4525. - ac_header_preproc=yes
  4526. - ;;
  4527. - no:yes:* )
  4528. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4529. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4530. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4531. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4532. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4533. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4534. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4535. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4536. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4537. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4538. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4539. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4540. - ( cat <<\_ASBOX
  4541. -## ------------------------------------ ##
  4542. -## Report this to [email protected] ##
  4543. -## ------------------------------------ ##
  4544. -_ASBOX
  4545. - ) | sed "s/^/$as_me: WARNING: /" >&2
  4546. - ;;
  4547. -esac
  4548. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4549. -$as_echo_n "checking for $ac_header... " >&6; }
  4550. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4551. - $as_echo_n "(cached) " >&6
  4552. -else
  4553. - eval "$as_ac_Header=\$ac_header_preproc"
  4554. fi
  4555. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  4556. - $as_echo "$as_val"'`
  4557. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4558. -$as_echo "$ac_res" >&6; }
  4559. fi
  4560. -if test `eval 'as_val=${'$as_ac_Header'}
  4561. - $as_echo "$as_val"'` = yes; then
  4562. +
  4563. +# XML-RPC-Libs:
  4564. +for ac_header in xmlrpc_client.h xmlrpc.h
  4565. +do :
  4566. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4567. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4568. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4569. cat >>confdefs.h <<_ACEOF
  4570. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4571. _ACEOF
  4572. - found_libg729=yes
  4573. + found_xmlrpc=yes
  4574. fi
  4575. done
  4576. -if test "$found_libg729" = yes
  4577. +if test "$found_xmlrpc" = yes
  4578. then
  4579. - { $as_echo "$as_me:$LINENO: checking for g729_encoder_new in -lg729" >&5
  4580. -$as_echo_n "checking for g729_encoder_new in -lg729... " >&6; }
  4581. -if test "${ac_cv_lib_g729_g729_encoder_new+set}" = set; then
  4582. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_version in -lcurl" >&5
  4583. +$as_echo_n "checking for curl_version in -lcurl... " >&6; }
  4584. +if test "${ac_cv_lib_curl_curl_version+set}" = set; then :
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. ac_check_lib_save_LIBS=$LIBS
  4588. -LIBS="-lg729 $LIBS"
  4589. -cat >conftest.$ac_ext <<_ACEOF
  4590. -/* confdefs.h. */
  4591. -_ACEOF
  4592. -cat confdefs.h >>conftest.$ac_ext
  4593. -cat >>conftest.$ac_ext <<_ACEOF
  4594. +LIBS="-lcurl $LIBS"
  4595. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4596. /* end confdefs.h. */
  4597. /* Override any GCC internal prototype to avoid an error.
  4598. @@ -4572,63 +4343,36 @@ cat >>conftest.$ac_ext <<_ACEOF
  4599. #ifdef __cplusplus
  4600. extern "C"
  4601. #endif
  4602. -char g729_encoder_new ();
  4603. +char curl_version ();
  4604. int
  4605. main ()
  4606. {
  4607. -return g729_encoder_new ();
  4608. +return curl_version ();
  4609. ;
  4610. return 0;
  4611. }
  4612. _ACEOF
  4613. -rm -f conftest.$ac_objext conftest$ac_exeext
  4614. -if { (ac_try="$ac_link"
  4615. -case "(($ac_try" in
  4616. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4617. - *) ac_try_echo=$ac_try;;
  4618. -esac
  4619. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4620. -$as_echo "$ac_try_echo") >&5
  4621. - (eval "$ac_link") 2>conftest.er1
  4622. - ac_status=$?
  4623. - grep -v '^ *+' conftest.er1 >conftest.err
  4624. - rm -f conftest.er1
  4625. - cat conftest.err >&5
  4626. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4627. - (exit $ac_status); } && {
  4628. - test -z "$ac_c_werror_flag" ||
  4629. - test ! -s conftest.err
  4630. - } && test -s conftest$ac_exeext && {
  4631. - test "$cross_compiling" = yes ||
  4632. - $as_test_x conftest$ac_exeext
  4633. - }; then
  4634. - ac_cv_lib_g729_g729_encoder_new=yes
  4635. +if ac_fn_c_try_link "$LINENO"; then :
  4636. + ac_cv_lib_curl_curl_version=yes
  4637. else
  4638. - $as_echo "$as_me: failed program was:" >&5
  4639. -sed 's/^/| /' conftest.$ac_ext >&5
  4640. -
  4641. - ac_cv_lib_g729_g729_encoder_new=no
  4642. + ac_cv_lib_curl_curl_version=no
  4643. fi
  4644. -
  4645. -rm -rf conftest.dSYM
  4646. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4647. - conftest$ac_exeext conftest.$ac_ext
  4648. +rm -f core conftest.err conftest.$ac_objext \
  4649. + conftest$ac_exeext conftest.$ac_ext
  4650. LIBS=$ac_check_lib_save_LIBS
  4651. fi
  4652. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_g729_g729_encoder_new" >&5
  4653. -$as_echo "$ac_cv_lib_g729_g729_encoder_new" >&6; }
  4654. -if test $ac_cv_lib_g729_g729_encoder_new = yes; then
  4655. - LIBS_G729="-lg729"
  4656. - G729_SUPPORT=ext
  4657. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_version" >&5
  4658. +$as_echo "$ac_cv_lib_curl_curl_version" >&6; }
  4659. +if test "x$ac_cv_lib_curl_curl_version" = x""yes; then :
  4660. + LIBS_XMLRPC="-lcurl -lxmlrpc_client -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok"
  4661. -cat >>confdefs.h <<\_ACEOF
  4662. -#define ENABLE_G729 1
  4663. -_ACEOF
  4664. +$as_echo "#define ENABLE_XMLRPC 1" >>confdefs.h
  4665. fi
  4666. fi
  4667. +
  4668. ##if test -z "$G729_SUPPORT"
  4669. ##then
  4670. ## echo "*************************************************************************** $ECHO_C" 1>&6
  4671. @@ -4638,16 +4382,12 @@ fi
  4672. ##fi
  4673. # Checks for header files.
  4674. -{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4675. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4676. $as_echo_n "checking for ANSI C header files... " >&6; }
  4677. -if test "${ac_cv_header_stdc+set}" = set; then
  4678. +if test "${ac_cv_header_stdc+set}" = set; then :
  4679. $as_echo_n "(cached) " >&6
  4680. else
  4681. - cat >conftest.$ac_ext <<_ACEOF
  4682. -/* confdefs.h. */
  4683. -_ACEOF
  4684. -cat confdefs.h >>conftest.$ac_ext
  4685. -cat >>conftest.$ac_ext <<_ACEOF
  4686. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4687. /* end confdefs.h. */
  4688. #include <stdlib.h>
  4689. #include <stdarg.h>
  4690. @@ -4662,48 +4402,23 @@ main ()
  4691. return 0;
  4692. }
  4693. _ACEOF
  4694. -rm -f conftest.$ac_objext
  4695. -if { (ac_try="$ac_compile"
  4696. -case "(($ac_try" in
  4697. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4698. - *) ac_try_echo=$ac_try;;
  4699. -esac
  4700. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4701. -$as_echo "$ac_try_echo") >&5
  4702. - (eval "$ac_compile") 2>conftest.er1
  4703. - ac_status=$?
  4704. - grep -v '^ *+' conftest.er1 >conftest.err
  4705. - rm -f conftest.er1
  4706. - cat conftest.err >&5
  4707. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4708. - (exit $ac_status); } && {
  4709. - test -z "$ac_c_werror_flag" ||
  4710. - test ! -s conftest.err
  4711. - } && test -s conftest.$ac_objext; then
  4712. +if ac_fn_c_try_compile "$LINENO"; then :
  4713. ac_cv_header_stdc=yes
  4714. else
  4715. - $as_echo "$as_me: failed program was:" >&5
  4716. -sed 's/^/| /' conftest.$ac_ext >&5
  4717. -
  4718. - ac_cv_header_stdc=no
  4719. + ac_cv_header_stdc=no
  4720. fi
  4721. -
  4722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4723. if test $ac_cv_header_stdc = yes; then
  4724. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4725. - cat >conftest.$ac_ext <<_ACEOF
  4726. -/* confdefs.h. */
  4727. -_ACEOF
  4728. -cat confdefs.h >>conftest.$ac_ext
  4729. -cat >>conftest.$ac_ext <<_ACEOF
  4730. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4731. /* end confdefs.h. */
  4732. #include <string.h>
  4733. _ACEOF
  4734. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4735. - $EGREP "memchr" >/dev/null 2>&1; then
  4736. - :
  4737. + $EGREP "memchr" >/dev/null 2>&1; then :
  4738. +
  4739. else
  4740. ac_cv_header_stdc=no
  4741. fi
  4742. @@ -4713,18 +4428,14 @@ fi
  4743. if test $ac_cv_header_stdc = yes; then
  4744. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4745. - cat >conftest.$ac_ext <<_ACEOF
  4746. -/* confdefs.h. */
  4747. -_ACEOF
  4748. -cat confdefs.h >>conftest.$ac_ext
  4749. -cat >>conftest.$ac_ext <<_ACEOF
  4750. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4751. /* end confdefs.h. */
  4752. #include <stdlib.h>
  4753. _ACEOF
  4754. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4755. - $EGREP "free" >/dev/null 2>&1; then
  4756. - :
  4757. + $EGREP "free" >/dev/null 2>&1; then :
  4758. +
  4759. else
  4760. ac_cv_header_stdc=no
  4761. fi
  4762. @@ -4734,14 +4445,10 @@ fi
  4763. if test $ac_cv_header_stdc = yes; then
  4764. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4765. - if test "$cross_compiling" = yes; then
  4766. + if test "$cross_compiling" = yes; then :
  4767. :
  4768. else
  4769. - cat >conftest.$ac_ext <<_ACEOF
  4770. -/* confdefs.h. */
  4771. -_ACEOF
  4772. -cat confdefs.h >>conftest.$ac_ext
  4773. -cat >>conftest.$ac_ext <<_ACEOF
  4774. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4775. /* end confdefs.h. */
  4776. #include <ctype.h>
  4777. #include <stdlib.h>
  4778. @@ -4768,207 +4475,30 @@ main ()
  4779. return 0;
  4780. }
  4781. _ACEOF
  4782. -rm -f conftest$ac_exeext
  4783. -if { (ac_try="$ac_link"
  4784. -case "(($ac_try" in
  4785. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4786. - *) ac_try_echo=$ac_try;;
  4787. -esac
  4788. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4789. -$as_echo "$ac_try_echo") >&5
  4790. - (eval "$ac_link") 2>&5
  4791. - ac_status=$?
  4792. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4793. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4794. - { (case "(($ac_try" in
  4795. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4796. - *) ac_try_echo=$ac_try;;
  4797. -esac
  4798. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4799. -$as_echo "$ac_try_echo") >&5
  4800. - (eval "$ac_try") 2>&5
  4801. - ac_status=$?
  4802. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4803. - (exit $ac_status); }; }; then
  4804. - :
  4805. -else
  4806. - $as_echo "$as_me: program exited with status $ac_status" >&5
  4807. -$as_echo "$as_me: failed program was:" >&5
  4808. -sed 's/^/| /' conftest.$ac_ext >&5
  4809. +if ac_fn_c_try_run "$LINENO"; then :
  4810. -( exit $ac_status )
  4811. -ac_cv_header_stdc=no
  4812. +else
  4813. + ac_cv_header_stdc=no
  4814. fi
  4815. -rm -rf conftest.dSYM
  4816. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4817. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4818. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  4819. fi
  4820. -
  4821. fi
  4822. fi
  4823. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4824. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4825. $as_echo "$ac_cv_header_stdc" >&6; }
  4826. if test $ac_cv_header_stdc = yes; then
  4827. -cat >>confdefs.h <<\_ACEOF
  4828. -#define STDC_HEADERS 1
  4829. -_ACEOF
  4830. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4831. fi
  4832. -
  4833. -
  4834. -
  4835. -
  4836. -
  4837. -
  4838. -
  4839. -
  4840. -
  4841. -
  4842. -
  4843. -
  4844. for ac_header in arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h err.h
  4845. -do
  4846. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4847. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4848. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4849. -$as_echo_n "checking for $ac_header... " >&6; }
  4850. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4851. - $as_echo_n "(cached) " >&6
  4852. -fi
  4853. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  4854. - $as_echo "$as_val"'`
  4855. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4856. -$as_echo "$ac_res" >&6; }
  4857. -else
  4858. - # Is the header compilable?
  4859. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4860. -$as_echo_n "checking $ac_header usability... " >&6; }
  4861. -cat >conftest.$ac_ext <<_ACEOF
  4862. -/* confdefs.h. */
  4863. -_ACEOF
  4864. -cat confdefs.h >>conftest.$ac_ext
  4865. -cat >>conftest.$ac_ext <<_ACEOF
  4866. -/* end confdefs.h. */
  4867. -$ac_includes_default
  4868. -#include <$ac_header>
  4869. -_ACEOF
  4870. -rm -f conftest.$ac_objext
  4871. -if { (ac_try="$ac_compile"
  4872. -case "(($ac_try" in
  4873. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4874. - *) ac_try_echo=$ac_try;;
  4875. -esac
  4876. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4877. -$as_echo "$ac_try_echo") >&5
  4878. - (eval "$ac_compile") 2>conftest.er1
  4879. - ac_status=$?
  4880. - grep -v '^ *+' conftest.er1 >conftest.err
  4881. - rm -f conftest.er1
  4882. - cat conftest.err >&5
  4883. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4884. - (exit $ac_status); } && {
  4885. - test -z "$ac_c_werror_flag" ||
  4886. - test ! -s conftest.err
  4887. - } && test -s conftest.$ac_objext; then
  4888. - ac_header_compiler=yes
  4889. -else
  4890. - $as_echo "$as_me: failed program was:" >&5
  4891. -sed 's/^/| /' conftest.$ac_ext >&5
  4892. -
  4893. - ac_header_compiler=no
  4894. -fi
  4895. -
  4896. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4897. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4898. -$as_echo "$ac_header_compiler" >&6; }
  4899. -
  4900. -# Is the header present?
  4901. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4902. -$as_echo_n "checking $ac_header presence... " >&6; }
  4903. -cat >conftest.$ac_ext <<_ACEOF
  4904. -/* confdefs.h. */
  4905. -_ACEOF
  4906. -cat confdefs.h >>conftest.$ac_ext
  4907. -cat >>conftest.$ac_ext <<_ACEOF
  4908. -/* end confdefs.h. */
  4909. -#include <$ac_header>
  4910. -_ACEOF
  4911. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  4912. -case "(($ac_try" in
  4913. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4914. - *) ac_try_echo=$ac_try;;
  4915. -esac
  4916. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4917. -$as_echo "$ac_try_echo") >&5
  4918. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4919. - ac_status=$?
  4920. - grep -v '^ *+' conftest.er1 >conftest.err
  4921. - rm -f conftest.er1
  4922. - cat conftest.err >&5
  4923. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4924. - (exit $ac_status); } >/dev/null && {
  4925. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4926. - test ! -s conftest.err
  4927. - }; then
  4928. - ac_header_preproc=yes
  4929. -else
  4930. - $as_echo "$as_me: failed program was:" >&5
  4931. -sed 's/^/| /' conftest.$ac_ext >&5
  4932. -
  4933. - ac_header_preproc=no
  4934. -fi
  4935. -
  4936. -rm -f conftest.err conftest.$ac_ext
  4937. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4938. -$as_echo "$ac_header_preproc" >&6; }
  4939. -
  4940. -# So? What about this header?
  4941. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4942. - yes:no: )
  4943. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4944. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4945. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4946. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4947. - ac_header_preproc=yes
  4948. - ;;
  4949. - no:yes:* )
  4950. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4951. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4952. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4953. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4954. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4955. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4956. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4957. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4958. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4959. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4960. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4961. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4962. - ( cat <<\_ASBOX
  4963. -## ------------------------------------ ##
  4964. -## Report this to [email protected] ##
  4965. -## ------------------------------------ ##
  4966. -_ASBOX
  4967. - ) | sed "s/^/$as_me: WARNING: /" >&2
  4968. - ;;
  4969. -esac
  4970. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4971. -$as_echo_n "checking for $ac_header... " >&6; }
  4972. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4973. - $as_echo_n "(cached) " >&6
  4974. -else
  4975. - eval "$as_ac_Header=\$ac_header_preproc"
  4976. -fi
  4977. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  4978. - $as_echo "$as_val"'`
  4979. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4980. -$as_echo "$ac_res" >&6; }
  4981. -
  4982. -fi
  4983. -if test `eval 'as_val=${'$as_ac_Header'}
  4984. - $as_echo "$as_val"'` = yes; then
  4985. +do :
  4986. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4987. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4988. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4989. cat >>confdefs.h <<_ACEOF
  4990. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4991. _ACEOF
  4992. @@ -4979,16 +4509,12 @@ done
  4993. # Checks for typedefs, structures, and compiler characteristics.
  4994. -{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4995. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4996. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4997. -if test "${ac_cv_c_const+set}" = set; then
  4998. +if test "${ac_cv_c_const+set}" = set; then :
  4999. $as_echo_n "(cached) " >&6
  5000. else
  5001. - cat >conftest.$ac_ext <<_ACEOF
  5002. -/* confdefs.h. */
  5003. -_ACEOF
  5004. -cat confdefs.h >>conftest.$ac_ext
  5005. -cat >>conftest.$ac_ext <<_ACEOF
  5006. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5007. /* end confdefs.h. */
  5008. int
  5009. @@ -5048,54 +4574,27 @@ main ()
  5010. return 0;
  5011. }
  5012. _ACEOF
  5013. -rm -f conftest.$ac_objext
  5014. -if { (ac_try="$ac_compile"
  5015. -case "(($ac_try" in
  5016. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5017. - *) ac_try_echo=$ac_try;;
  5018. -esac
  5019. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5020. -$as_echo "$ac_try_echo") >&5
  5021. - (eval "$ac_compile") 2>conftest.er1
  5022. - ac_status=$?
  5023. - grep -v '^ *+' conftest.er1 >conftest.err
  5024. - rm -f conftest.er1
  5025. - cat conftest.err >&5
  5026. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5027. - (exit $ac_status); } && {
  5028. - test -z "$ac_c_werror_flag" ||
  5029. - test ! -s conftest.err
  5030. - } && test -s conftest.$ac_objext; then
  5031. +if ac_fn_c_try_compile "$LINENO"; then :
  5032. ac_cv_c_const=yes
  5033. else
  5034. - $as_echo "$as_me: failed program was:" >&5
  5035. -sed 's/^/| /' conftest.$ac_ext >&5
  5036. -
  5037. - ac_cv_c_const=no
  5038. + ac_cv_c_const=no
  5039. fi
  5040. -
  5041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5042. fi
  5043. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5044. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  5045. $as_echo "$ac_cv_c_const" >&6; }
  5046. if test $ac_cv_c_const = no; then
  5047. -cat >>confdefs.h <<\_ACEOF
  5048. -#define const /**/
  5049. -_ACEOF
  5050. +$as_echo "#define const /**/" >>confdefs.h
  5051. fi
  5052. -{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5053. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5054. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5055. -if test "${ac_cv_header_time+set}" = set; then
  5056. +if test "${ac_cv_header_time+set}" = set; then :
  5057. $as_echo_n "(cached) " >&6
  5058. else
  5059. - cat >conftest.$ac_ext <<_ACEOF
  5060. -/* confdefs.h. */
  5061. -_ACEOF
  5062. -cat confdefs.h >>conftest.$ac_ext
  5063. -cat >>conftest.$ac_ext <<_ACEOF
  5064. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5065. /* end confdefs.h. */
  5066. #include <sys/types.h>
  5067. #include <sys/time.h>
  5068. @@ -5110,151 +4609,29 @@ return 0;
  5069. return 0;
  5070. }
  5071. _ACEOF
  5072. -rm -f conftest.$ac_objext
  5073. -if { (ac_try="$ac_compile"
  5074. -case "(($ac_try" in
  5075. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5076. - *) ac_try_echo=$ac_try;;
  5077. -esac
  5078. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5079. -$as_echo "$ac_try_echo") >&5
  5080. - (eval "$ac_compile") 2>conftest.er1
  5081. - ac_status=$?
  5082. - grep -v '^ *+' conftest.er1 >conftest.err
  5083. - rm -f conftest.er1
  5084. - cat conftest.err >&5
  5085. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5086. - (exit $ac_status); } && {
  5087. - test -z "$ac_c_werror_flag" ||
  5088. - test ! -s conftest.err
  5089. - } && test -s conftest.$ac_objext; then
  5090. +if ac_fn_c_try_compile "$LINENO"; then :
  5091. ac_cv_header_time=yes
  5092. else
  5093. - $as_echo "$as_me: failed program was:" >&5
  5094. -sed 's/^/| /' conftest.$ac_ext >&5
  5095. -
  5096. - ac_cv_header_time=no
  5097. + ac_cv_header_time=no
  5098. fi
  5099. -
  5100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5101. fi
  5102. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5103. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5104. $as_echo "$ac_cv_header_time" >&6; }
  5105. if test $ac_cv_header_time = yes; then
  5106. -cat >>confdefs.h <<\_ACEOF
  5107. -#define TIME_WITH_SYS_TIME 1
  5108. -_ACEOF
  5109. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  5110. fi
  5111. -{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
  5112. -$as_echo_n "checking for struct sockaddr_un.sun_len... " >&6; }
  5113. -if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
  5114. - $as_echo_n "(cached) " >&6
  5115. -else
  5116. - cat >conftest.$ac_ext <<_ACEOF
  5117. -/* confdefs.h. */
  5118. -_ACEOF
  5119. -cat confdefs.h >>conftest.$ac_ext
  5120. -cat >>conftest.$ac_ext <<_ACEOF
  5121. -/* end confdefs.h. */
  5122. - #include <sys/types.h>
  5123. +ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h>
  5124. #include <sys/un.h>
  5125. +"
  5126. +if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
  5127. -int
  5128. -main ()
  5129. -{
  5130. -static struct sockaddr_un ac_aggr;
  5131. -if (ac_aggr.sun_len)
  5132. -return 0;
  5133. - ;
  5134. - return 0;
  5135. -}
  5136. -_ACEOF
  5137. -rm -f conftest.$ac_objext
  5138. -if { (ac_try="$ac_compile"
  5139. -case "(($ac_try" in
  5140. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5141. - *) ac_try_echo=$ac_try;;
  5142. -esac
  5143. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5144. -$as_echo "$ac_try_echo") >&5
  5145. - (eval "$ac_compile") 2>conftest.er1
  5146. - ac_status=$?
  5147. - grep -v '^ *+' conftest.er1 >conftest.err
  5148. - rm -f conftest.er1
  5149. - cat conftest.err >&5
  5150. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5151. - (exit $ac_status); } && {
  5152. - test -z "$ac_c_werror_flag" ||
  5153. - test ! -s conftest.err
  5154. - } && test -s conftest.$ac_objext; then
  5155. - ac_cv_member_struct_sockaddr_un_sun_len=yes
  5156. -else
  5157. - $as_echo "$as_me: failed program was:" >&5
  5158. -sed 's/^/| /' conftest.$ac_ext >&5
  5159. -
  5160. - cat >conftest.$ac_ext <<_ACEOF
  5161. -/* confdefs.h. */
  5162. -_ACEOF
  5163. -cat confdefs.h >>conftest.$ac_ext
  5164. -cat >>conftest.$ac_ext <<_ACEOF
  5165. -/* end confdefs.h. */
  5166. - #include <sys/types.h>
  5167. - #include <sys/un.h>
  5168. -
  5169. -
  5170. -int
  5171. -main ()
  5172. -{
  5173. -static struct sockaddr_un ac_aggr;
  5174. -if (sizeof ac_aggr.sun_len)
  5175. -return 0;
  5176. - ;
  5177. - return 0;
  5178. -}
  5179. -_ACEOF
  5180. -rm -f conftest.$ac_objext
  5181. -if { (ac_try="$ac_compile"
  5182. -case "(($ac_try" in
  5183. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5184. - *) ac_try_echo=$ac_try;;
  5185. -esac
  5186. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5187. -$as_echo "$ac_try_echo") >&5
  5188. - (eval "$ac_compile") 2>conftest.er1
  5189. - ac_status=$?
  5190. - grep -v '^ *+' conftest.er1 >conftest.err
  5191. - rm -f conftest.er1
  5192. - cat conftest.err >&5
  5193. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5194. - (exit $ac_status); } && {
  5195. - test -z "$ac_c_werror_flag" ||
  5196. - test ! -s conftest.err
  5197. - } && test -s conftest.$ac_objext; then
  5198. - ac_cv_member_struct_sockaddr_un_sun_len=yes
  5199. -else
  5200. - $as_echo "$as_me: failed program was:" >&5
  5201. -sed 's/^/| /' conftest.$ac_ext >&5
  5202. -
  5203. - ac_cv_member_struct_sockaddr_un_sun_len=no
  5204. -fi
  5205. -
  5206. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5207. -fi
  5208. -
  5209. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5210. -fi
  5211. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
  5212. -$as_echo "$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
  5213. -if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
  5214. -
  5215. -cat >>confdefs.h <<\_ACEOF
  5216. -#define HAVE_SOCKADDR_SUN_LEN 1
  5217. -_ACEOF
  5218. +$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
  5219. fi
  5220. @@ -5262,16 +4639,12 @@ fi
  5221. # Checks for library functions.
  5222. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5223. # for constant arguments. Useless!
  5224. -{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5225. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  5226. $as_echo_n "checking for working alloca.h... " >&6; }
  5227. -if test "${ac_cv_working_alloca_h+set}" = set; then
  5228. +if test "${ac_cv_working_alloca_h+set}" = set; then :
  5229. $as_echo_n "(cached) " >&6
  5230. else
  5231. - cat >conftest.$ac_ext <<_ACEOF
  5232. -/* confdefs.h. */
  5233. -_ACEOF
  5234. -cat confdefs.h >>conftest.$ac_ext
  5235. -cat >>conftest.$ac_ext <<_ACEOF
  5236. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5237. /* end confdefs.h. */
  5238. #include <alloca.h>
  5239. int
  5240. @@ -5283,59 +4656,28 @@ char *p = (char *) alloca (2 * sizeof (int));
  5241. return 0;
  5242. }
  5243. _ACEOF
  5244. -rm -f conftest.$ac_objext conftest$ac_exeext
  5245. -if { (ac_try="$ac_link"
  5246. -case "(($ac_try" in
  5247. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5248. - *) ac_try_echo=$ac_try;;
  5249. -esac
  5250. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5251. -$as_echo "$ac_try_echo") >&5
  5252. - (eval "$ac_link") 2>conftest.er1
  5253. - ac_status=$?
  5254. - grep -v '^ *+' conftest.er1 >conftest.err
  5255. - rm -f conftest.er1
  5256. - cat conftest.err >&5
  5257. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5258. - (exit $ac_status); } && {
  5259. - test -z "$ac_c_werror_flag" ||
  5260. - test ! -s conftest.err
  5261. - } && test -s conftest$ac_exeext && {
  5262. - test "$cross_compiling" = yes ||
  5263. - $as_test_x conftest$ac_exeext
  5264. - }; then
  5265. +if ac_fn_c_try_link "$LINENO"; then :
  5266. ac_cv_working_alloca_h=yes
  5267. else
  5268. - $as_echo "$as_me: failed program was:" >&5
  5269. -sed 's/^/| /' conftest.$ac_ext >&5
  5270. -
  5271. - ac_cv_working_alloca_h=no
  5272. + ac_cv_working_alloca_h=no
  5273. fi
  5274. -
  5275. -rm -rf conftest.dSYM
  5276. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5277. - conftest$ac_exeext conftest.$ac_ext
  5278. +rm -f core conftest.err conftest.$ac_objext \
  5279. + conftest$ac_exeext conftest.$ac_ext
  5280. fi
  5281. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  5282. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  5283. $as_echo "$ac_cv_working_alloca_h" >&6; }
  5284. if test $ac_cv_working_alloca_h = yes; then
  5285. -cat >>confdefs.h <<\_ACEOF
  5286. -#define HAVE_ALLOCA_H 1
  5287. -_ACEOF
  5288. +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  5289. fi
  5290. -{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
  5291. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  5292. $as_echo_n "checking for alloca... " >&6; }
  5293. -if test "${ac_cv_func_alloca_works+set}" = set; then
  5294. +if test "${ac_cv_func_alloca_works+set}" = set; then :
  5295. $as_echo_n "(cached) " >&6
  5296. else
  5297. - cat >conftest.$ac_ext <<_ACEOF
  5298. -/* confdefs.h. */
  5299. -_ACEOF
  5300. -cat confdefs.h >>conftest.$ac_ext
  5301. -cat >>conftest.$ac_ext <<_ACEOF
  5302. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5303. /* end confdefs.h. */
  5304. #ifdef __GNUC__
  5305. # define alloca __builtin_alloca
  5306. @@ -5367,47 +4709,20 @@ char *p = (char *) alloca (1);
  5307. return 0;
  5308. }
  5309. _ACEOF
  5310. -rm -f conftest.$ac_objext conftest$ac_exeext
  5311. -if { (ac_try="$ac_link"
  5312. -case "(($ac_try" in
  5313. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5314. - *) ac_try_echo=$ac_try;;
  5315. -esac
  5316. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5317. -$as_echo "$ac_try_echo") >&5
  5318. - (eval "$ac_link") 2>conftest.er1
  5319. - ac_status=$?
  5320. - grep -v '^ *+' conftest.er1 >conftest.err
  5321. - rm -f conftest.er1
  5322. - cat conftest.err >&5
  5323. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5324. - (exit $ac_status); } && {
  5325. - test -z "$ac_c_werror_flag" ||
  5326. - test ! -s conftest.err
  5327. - } && test -s conftest$ac_exeext && {
  5328. - test "$cross_compiling" = yes ||
  5329. - $as_test_x conftest$ac_exeext
  5330. - }; then
  5331. +if ac_fn_c_try_link "$LINENO"; then :
  5332. ac_cv_func_alloca_works=yes
  5333. else
  5334. - $as_echo "$as_me: failed program was:" >&5
  5335. -sed 's/^/| /' conftest.$ac_ext >&5
  5336. -
  5337. - ac_cv_func_alloca_works=no
  5338. + ac_cv_func_alloca_works=no
  5339. fi
  5340. -
  5341. -rm -rf conftest.dSYM
  5342. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5343. - conftest$ac_exeext conftest.$ac_ext
  5344. +rm -f core conftest.err conftest.$ac_objext \
  5345. + conftest$ac_exeext conftest.$ac_ext
  5346. fi
  5347. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  5348. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  5349. $as_echo "$ac_cv_func_alloca_works" >&6; }
  5350. if test $ac_cv_func_alloca_works = yes; then
  5351. -cat >>confdefs.h <<\_ACEOF
  5352. -#define HAVE_ALLOCA 1
  5353. -_ACEOF
  5354. +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  5355. else
  5356. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5357. @@ -5417,21 +4732,15 @@ else
  5358. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5359. -cat >>confdefs.h <<\_ACEOF
  5360. -#define C_ALLOCA 1
  5361. -_ACEOF
  5362. +$as_echo "#define C_ALLOCA 1" >>confdefs.h
  5363. -{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  5364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  5365. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  5366. -if test "${ac_cv_os_cray+set}" = set; then
  5367. +if test "${ac_cv_os_cray+set}" = set; then :
  5368. $as_echo_n "(cached) " >&6
  5369. else
  5370. - cat >conftest.$ac_ext <<_ACEOF
  5371. -/* confdefs.h. */
  5372. -_ACEOF
  5373. -cat confdefs.h >>conftest.$ac_ext
  5374. -cat >>conftest.$ac_ext <<_ACEOF
  5375. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5376. /* end confdefs.h. */
  5377. #if defined CRAY && ! defined CRAY2
  5378. webecray
  5379. @@ -5441,7 +4750,7 @@ wenotbecray
  5380. _ACEOF
  5381. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5382. - $EGREP "webecray" >/dev/null 2>&1; then
  5383. + $EGREP "webecray" >/dev/null 2>&1; then :
  5384. ac_cv_os_cray=yes
  5385. else
  5386. ac_cv_os_cray=no
  5387. @@ -5449,100 +4758,13 @@ fi
  5388. rm -f conftest*
  5389. fi
  5390. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  5391. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  5392. $as_echo "$ac_cv_os_cray" >&6; }
  5393. if test $ac_cv_os_cray = yes; then
  5394. for ac_func in _getb67 GETB67 getb67; do
  5395. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5396. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  5397. -$as_echo_n "checking for $ac_func... " >&6; }
  5398. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5399. - $as_echo_n "(cached) " >&6
  5400. -else
  5401. - cat >conftest.$ac_ext <<_ACEOF
  5402. -/* confdefs.h. */
  5403. -_ACEOF
  5404. -cat confdefs.h >>conftest.$ac_ext
  5405. -cat >>conftest.$ac_ext <<_ACEOF
  5406. -/* end confdefs.h. */
  5407. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5408. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5409. -#define $ac_func innocuous_$ac_func
  5410. -
  5411. -/* System header to define __stub macros and hopefully few prototypes,
  5412. - which can conflict with char $ac_func (); below.
  5413. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5414. - <limits.h> exists even on freestanding compilers. */
  5415. -
  5416. -#ifdef __STDC__
  5417. -# include <limits.h>
  5418. -#else
  5419. -# include <assert.h>
  5420. -#endif
  5421. -
  5422. -#undef $ac_func
  5423. -
  5424. -/* Override any GCC internal prototype to avoid an error.
  5425. - Use char because int might match the return type of a GCC
  5426. - builtin and then its argument prototype would still apply. */
  5427. -#ifdef __cplusplus
  5428. -extern "C"
  5429. -#endif
  5430. -char $ac_func ();
  5431. -/* The GNU C library defines this for functions which it implements
  5432. - to always fail with ENOSYS. Some functions are actually named
  5433. - something starting with __ and the normal name is an alias. */
  5434. -#if defined __stub_$ac_func || defined __stub___$ac_func
  5435. -choke me
  5436. -#endif
  5437. -
  5438. -int
  5439. -main ()
  5440. -{
  5441. -return $ac_func ();
  5442. - ;
  5443. - return 0;
  5444. -}
  5445. -_ACEOF
  5446. -rm -f conftest.$ac_objext conftest$ac_exeext
  5447. -if { (ac_try="$ac_link"
  5448. -case "(($ac_try" in
  5449. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5450. - *) ac_try_echo=$ac_try;;
  5451. -esac
  5452. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5453. -$as_echo "$ac_try_echo") >&5
  5454. - (eval "$ac_link") 2>conftest.er1
  5455. - ac_status=$?
  5456. - grep -v '^ *+' conftest.er1 >conftest.err
  5457. - rm -f conftest.er1
  5458. - cat conftest.err >&5
  5459. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5460. - (exit $ac_status); } && {
  5461. - test -z "$ac_c_werror_flag" ||
  5462. - test ! -s conftest.err
  5463. - } && test -s conftest$ac_exeext && {
  5464. - test "$cross_compiling" = yes ||
  5465. - $as_test_x conftest$ac_exeext
  5466. - }; then
  5467. - eval "$as_ac_var=yes"
  5468. -else
  5469. - $as_echo "$as_me: failed program was:" >&5
  5470. -sed 's/^/| /' conftest.$ac_ext >&5
  5471. -
  5472. - eval "$as_ac_var=no"
  5473. -fi
  5474. -
  5475. -rm -rf conftest.dSYM
  5476. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5477. - conftest$ac_exeext conftest.$ac_ext
  5478. -fi
  5479. -ac_res=`eval 'as_val=${'$as_ac_var'}
  5480. - $as_echo "$as_val"'`
  5481. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5482. -$as_echo "$ac_res" >&6; }
  5483. -if test `eval 'as_val=${'$as_ac_var'}
  5484. - $as_echo "$as_val"'` = yes; then
  5485. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5486. +if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5487. cat >>confdefs.h <<_ACEOF
  5488. #define CRAY_STACKSEG_END $ac_func
  5489. @@ -5554,19 +4776,15 @@ fi
  5490. done
  5491. fi
  5492. -{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  5493. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  5494. $as_echo_n "checking stack direction for C alloca... " >&6; }
  5495. -if test "${ac_cv_c_stack_direction+set}" = set; then
  5496. +if test "${ac_cv_c_stack_direction+set}" = set; then :
  5497. $as_echo_n "(cached) " >&6
  5498. else
  5499. - if test "$cross_compiling" = yes; then
  5500. + if test "$cross_compiling" = yes; then :
  5501. ac_cv_c_stack_direction=0
  5502. else
  5503. - cat >conftest.$ac_ext <<_ACEOF
  5504. -/* confdefs.h. */
  5505. -_ACEOF
  5506. -cat confdefs.h >>conftest.$ac_ext
  5507. -cat >>conftest.$ac_ext <<_ACEOF
  5508. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5509. /* end confdefs.h. */
  5510. $ac_includes_default
  5511. int
  5512. @@ -5589,46 +4807,18 @@ main ()
  5513. return find_stack_direction () < 0;
  5514. }
  5515. _ACEOF
  5516. -rm -f conftest$ac_exeext
  5517. -if { (ac_try="$ac_link"
  5518. -case "(($ac_try" in
  5519. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5520. - *) ac_try_echo=$ac_try;;
  5521. -esac
  5522. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5523. -$as_echo "$ac_try_echo") >&5
  5524. - (eval "$ac_link") 2>&5
  5525. - ac_status=$?
  5526. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5527. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5528. - { (case "(($ac_try" in
  5529. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5530. - *) ac_try_echo=$ac_try;;
  5531. -esac
  5532. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5533. -$as_echo "$ac_try_echo") >&5
  5534. - (eval "$ac_try") 2>&5
  5535. - ac_status=$?
  5536. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5537. - (exit $ac_status); }; }; then
  5538. +if ac_fn_c_try_run "$LINENO"; then :
  5539. ac_cv_c_stack_direction=1
  5540. else
  5541. - $as_echo "$as_me: program exited with status $ac_status" >&5
  5542. -$as_echo "$as_me: failed program was:" >&5
  5543. -sed 's/^/| /' conftest.$ac_ext >&5
  5544. -
  5545. -( exit $ac_status )
  5546. -ac_cv_c_stack_direction=-1
  5547. + ac_cv_c_stack_direction=-1
  5548. fi
  5549. -rm -rf conftest.dSYM
  5550. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5551. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5552. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  5553. fi
  5554. -
  5555. fi
  5556. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  5557. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  5558. $as_echo "$ac_cv_c_stack_direction" >&6; }
  5559. -
  5560. cat >>confdefs.h <<_ACEOF
  5561. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5562. _ACEOF
  5563. @@ -5636,169 +4826,27 @@ _ACEOF
  5564. fi
  5565. -
  5566. for ac_header in stdlib.h
  5567. -do
  5568. -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5569. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5570. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5571. -$as_echo_n "checking for $ac_header... " >&6; }
  5572. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5573. - $as_echo_n "(cached) " >&6
  5574. -fi
  5575. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  5576. - $as_echo "$as_val"'`
  5577. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5578. -$as_echo "$ac_res" >&6; }
  5579. -else
  5580. - # Is the header compilable?
  5581. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5582. -$as_echo_n "checking $ac_header usability... " >&6; }
  5583. -cat >conftest.$ac_ext <<_ACEOF
  5584. -/* confdefs.h. */
  5585. -_ACEOF
  5586. -cat confdefs.h >>conftest.$ac_ext
  5587. -cat >>conftest.$ac_ext <<_ACEOF
  5588. -/* end confdefs.h. */
  5589. -$ac_includes_default
  5590. -#include <$ac_header>
  5591. -_ACEOF
  5592. -rm -f conftest.$ac_objext
  5593. -if { (ac_try="$ac_compile"
  5594. -case "(($ac_try" in
  5595. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5596. - *) ac_try_echo=$ac_try;;
  5597. -esac
  5598. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5599. -$as_echo "$ac_try_echo") >&5
  5600. - (eval "$ac_compile") 2>conftest.er1
  5601. - ac_status=$?
  5602. - grep -v '^ *+' conftest.er1 >conftest.err
  5603. - rm -f conftest.er1
  5604. - cat conftest.err >&5
  5605. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5606. - (exit $ac_status); } && {
  5607. - test -z "$ac_c_werror_flag" ||
  5608. - test ! -s conftest.err
  5609. - } && test -s conftest.$ac_objext; then
  5610. - ac_header_compiler=yes
  5611. -else
  5612. - $as_echo "$as_me: failed program was:" >&5
  5613. -sed 's/^/| /' conftest.$ac_ext >&5
  5614. -
  5615. - ac_header_compiler=no
  5616. -fi
  5617. -
  5618. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5619. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5620. -$as_echo "$ac_header_compiler" >&6; }
  5621. -
  5622. -# Is the header present?
  5623. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5624. -$as_echo_n "checking $ac_header presence... " >&6; }
  5625. -cat >conftest.$ac_ext <<_ACEOF
  5626. -/* confdefs.h. */
  5627. -_ACEOF
  5628. -cat confdefs.h >>conftest.$ac_ext
  5629. -cat >>conftest.$ac_ext <<_ACEOF
  5630. -/* end confdefs.h. */
  5631. -#include <$ac_header>
  5632. -_ACEOF
  5633. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  5634. -case "(($ac_try" in
  5635. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5636. - *) ac_try_echo=$ac_try;;
  5637. -esac
  5638. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5639. -$as_echo "$ac_try_echo") >&5
  5640. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5641. - ac_status=$?
  5642. - grep -v '^ *+' conftest.er1 >conftest.err
  5643. - rm -f conftest.er1
  5644. - cat conftest.err >&5
  5645. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5646. - (exit $ac_status); } >/dev/null && {
  5647. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5648. - test ! -s conftest.err
  5649. - }; then
  5650. - ac_header_preproc=yes
  5651. -else
  5652. - $as_echo "$as_me: failed program was:" >&5
  5653. -sed 's/^/| /' conftest.$ac_ext >&5
  5654. -
  5655. - ac_header_preproc=no
  5656. -fi
  5657. -
  5658. -rm -f conftest.err conftest.$ac_ext
  5659. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5660. -$as_echo "$ac_header_preproc" >&6; }
  5661. -
  5662. -# So? What about this header?
  5663. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5664. - yes:no: )
  5665. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5666. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5667. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5668. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5669. - ac_header_preproc=yes
  5670. - ;;
  5671. - no:yes:* )
  5672. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5673. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5674. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5675. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5676. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5677. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5678. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5679. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5680. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5681. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5682. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5683. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5684. - ( cat <<\_ASBOX
  5685. -## ------------------------------------ ##
  5686. -## Report this to [email protected] ##
  5687. -## ------------------------------------ ##
  5688. -_ASBOX
  5689. - ) | sed "s/^/$as_me: WARNING: /" >&2
  5690. - ;;
  5691. -esac
  5692. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5693. -$as_echo_n "checking for $ac_header... " >&6; }
  5694. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5695. - $as_echo_n "(cached) " >&6
  5696. -else
  5697. - eval "$as_ac_Header=\$ac_header_preproc"
  5698. -fi
  5699. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  5700. - $as_echo "$as_val"'`
  5701. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5702. -$as_echo "$ac_res" >&6; }
  5703. -
  5704. -fi
  5705. -if test `eval 'as_val=${'$as_ac_Header'}
  5706. - $as_echo "$as_val"'` = yes; then
  5707. +do :
  5708. + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  5709. +if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  5710. cat >>confdefs.h <<_ACEOF
  5711. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5712. +#define HAVE_STDLIB_H 1
  5713. _ACEOF
  5714. fi
  5715. done
  5716. -{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  5717. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  5718. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  5719. -if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  5720. +if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  5721. $as_echo_n "(cached) " >&6
  5722. else
  5723. - if test "$cross_compiling" = yes; then
  5724. + if test "$cross_compiling" = yes; then :
  5725. ac_cv_func_malloc_0_nonnull=no
  5726. else
  5727. - cat >conftest.$ac_ext <<_ACEOF
  5728. -/* confdefs.h. */
  5729. -_ACEOF
  5730. -cat confdefs.h >>conftest.$ac_ext
  5731. -cat >>conftest.$ac_ext <<_ACEOF
  5732. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5733. /* end confdefs.h. */
  5734. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  5735. # include <stdlib.h>
  5736. @@ -5814,55 +4862,24 @@ return ! malloc (0);
  5737. return 0;
  5738. }
  5739. _ACEOF
  5740. -rm -f conftest$ac_exeext
  5741. -if { (ac_try="$ac_link"
  5742. -case "(($ac_try" in
  5743. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5744. - *) ac_try_echo=$ac_try;;
  5745. -esac
  5746. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5747. -$as_echo "$ac_try_echo") >&5
  5748. - (eval "$ac_link") 2>&5
  5749. - ac_status=$?
  5750. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5751. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5752. - { (case "(($ac_try" in
  5753. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5754. - *) ac_try_echo=$ac_try;;
  5755. -esac
  5756. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5757. -$as_echo "$ac_try_echo") >&5
  5758. - (eval "$ac_try") 2>&5
  5759. - ac_status=$?
  5760. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5761. - (exit $ac_status); }; }; then
  5762. +if ac_fn_c_try_run "$LINENO"; then :
  5763. ac_cv_func_malloc_0_nonnull=yes
  5764. else
  5765. - $as_echo "$as_me: program exited with status $ac_status" >&5
  5766. -$as_echo "$as_me: failed program was:" >&5
  5767. -sed 's/^/| /' conftest.$ac_ext >&5
  5768. -
  5769. -( exit $ac_status )
  5770. -ac_cv_func_malloc_0_nonnull=no
  5771. + ac_cv_func_malloc_0_nonnull=no
  5772. fi
  5773. -rm -rf conftest.dSYM
  5774. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5775. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5776. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  5777. fi
  5778. -
  5779. fi
  5780. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  5781. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  5782. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  5783. -if test $ac_cv_func_malloc_0_nonnull = yes; then
  5784. +if test $ac_cv_func_malloc_0_nonnull = yes; then :
  5785. -cat >>confdefs.h <<\_ACEOF
  5786. -#define HAVE_MALLOC 1
  5787. -_ACEOF
  5788. +$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  5789. else
  5790. - cat >>confdefs.h <<\_ACEOF
  5791. -#define HAVE_MALLOC 0
  5792. -_ACEOF
  5793. + $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  5794. case " $LIBOBJS " in
  5795. *" malloc.$ac_objext "* ) ;;
  5796. @@ -5871,27 +4888,20 @@ _ACEOF
  5797. esac
  5798. -cat >>confdefs.h <<\_ACEOF
  5799. -#define malloc rpl_malloc
  5800. -_ACEOF
  5801. +$as_echo "#define malloc rpl_malloc" >>confdefs.h
  5802. fi
  5803. -
  5804. -{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  5805. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  5806. $as_echo_n "checking for working memcmp... " >&6; }
  5807. -if test "${ac_cv_func_memcmp_working+set}" = set; then
  5808. +if test "${ac_cv_func_memcmp_working+set}" = set; then :
  5809. $as_echo_n "(cached) " >&6
  5810. else
  5811. - if test "$cross_compiling" = yes; then
  5812. + if test "$cross_compiling" = yes; then :
  5813. ac_cv_func_memcmp_working=no
  5814. else
  5815. - cat >conftest.$ac_ext <<_ACEOF
  5816. -/* confdefs.h. */
  5817. -_ACEOF
  5818. -cat confdefs.h >>conftest.$ac_ext
  5819. -cat >>conftest.$ac_ext <<_ACEOF
  5820. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5821. /* end confdefs.h. */
  5822. $ac_includes_default
  5823. int
  5824. @@ -5926,44 +4936,17 @@ main ()
  5825. return 0;
  5826. }
  5827. _ACEOF
  5828. -rm -f conftest$ac_exeext
  5829. -if { (ac_try="$ac_link"
  5830. -case "(($ac_try" in
  5831. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5832. - *) ac_try_echo=$ac_try;;
  5833. -esac
  5834. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5835. -$as_echo "$ac_try_echo") >&5
  5836. - (eval "$ac_link") 2>&5
  5837. - ac_status=$?
  5838. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5839. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5840. - { (case "(($ac_try" in
  5841. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5842. - *) ac_try_echo=$ac_try;;
  5843. -esac
  5844. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5845. -$as_echo "$ac_try_echo") >&5
  5846. - (eval "$ac_try") 2>&5
  5847. - ac_status=$?
  5848. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5849. - (exit $ac_status); }; }; then
  5850. +if ac_fn_c_try_run "$LINENO"; then :
  5851. ac_cv_func_memcmp_working=yes
  5852. else
  5853. - $as_echo "$as_me: program exited with status $ac_status" >&5
  5854. -$as_echo "$as_me: failed program was:" >&5
  5855. -sed 's/^/| /' conftest.$ac_ext >&5
  5856. -
  5857. -( exit $ac_status )
  5858. -ac_cv_func_memcmp_working=no
  5859. + ac_cv_func_memcmp_working=no
  5860. fi
  5861. -rm -rf conftest.dSYM
  5862. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5863. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5864. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  5865. fi
  5866. -
  5867. fi
  5868. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  5869. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  5870. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  5871. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  5872. *" memcmp.$ac_objext "* ) ;;
  5873. @@ -5972,16 +4955,12 @@ test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  5874. esac
  5875. -{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  5876. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  5877. $as_echo_n "checking return type of signal handlers... " >&6; }
  5878. -if test "${ac_cv_type_signal+set}" = set; then
  5879. +if test "${ac_cv_type_signal+set}" = set; then :
  5880. $as_echo_n "(cached) " >&6
  5881. else
  5882. - cat >conftest.$ac_ext <<_ACEOF
  5883. -/* confdefs.h. */
  5884. -_ACEOF
  5885. -cat confdefs.h >>conftest.$ac_ext
  5886. -cat >>conftest.$ac_ext <<_ACEOF
  5887. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5888. /* end confdefs.h. */
  5889. #include <sys/types.h>
  5890. #include <signal.h>
  5891. @@ -5994,35 +4973,14 @@ return *(signal (0, 0)) (0) == 1;
  5892. return 0;
  5893. }
  5894. _ACEOF
  5895. -rm -f conftest.$ac_objext
  5896. -if { (ac_try="$ac_compile"
  5897. -case "(($ac_try" in
  5898. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5899. - *) ac_try_echo=$ac_try;;
  5900. -esac
  5901. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5902. -$as_echo "$ac_try_echo") >&5
  5903. - (eval "$ac_compile") 2>conftest.er1
  5904. - ac_status=$?
  5905. - grep -v '^ *+' conftest.er1 >conftest.err
  5906. - rm -f conftest.er1
  5907. - cat conftest.err >&5
  5908. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5909. - (exit $ac_status); } && {
  5910. - test -z "$ac_c_werror_flag" ||
  5911. - test ! -s conftest.err
  5912. - } && test -s conftest.$ac_objext; then
  5913. +if ac_fn_c_try_compile "$LINENO"; then :
  5914. ac_cv_type_signal=int
  5915. else
  5916. - $as_echo "$as_me: failed program was:" >&5
  5917. -sed 's/^/| /' conftest.$ac_ext >&5
  5918. -
  5919. - ac_cv_type_signal=void
  5920. + ac_cv_type_signal=void
  5921. fi
  5922. -
  5923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5924. fi
  5925. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  5926. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  5927. $as_echo "$ac_cv_type_signal" >&6; }
  5928. cat >>confdefs.h <<_ACEOF
  5929. @@ -6030,106 +4988,11 @@ cat >>confdefs.h <<_ACEOF
  5930. _ACEOF
  5931. -
  5932. -
  5933. -
  5934. -
  5935. -
  5936. -
  5937. -
  5938. -
  5939. for ac_func in atexit gettimeofday memset mkdir socket strchr strdup strerror
  5940. -do
  5941. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5942. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  5943. -$as_echo_n "checking for $ac_func... " >&6; }
  5944. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5945. - $as_echo_n "(cached) " >&6
  5946. -else
  5947. - cat >conftest.$ac_ext <<_ACEOF
  5948. -/* confdefs.h. */
  5949. -_ACEOF
  5950. -cat confdefs.h >>conftest.$ac_ext
  5951. -cat >>conftest.$ac_ext <<_ACEOF
  5952. -/* end confdefs.h. */
  5953. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5954. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5955. -#define $ac_func innocuous_$ac_func
  5956. -
  5957. -/* System header to define __stub macros and hopefully few prototypes,
  5958. - which can conflict with char $ac_func (); below.
  5959. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5960. - <limits.h> exists even on freestanding compilers. */
  5961. -
  5962. -#ifdef __STDC__
  5963. -# include <limits.h>
  5964. -#else
  5965. -# include <assert.h>
  5966. -#endif
  5967. -
  5968. -#undef $ac_func
  5969. -
  5970. -/* Override any GCC internal prototype to avoid an error.
  5971. - Use char because int might match the return type of a GCC
  5972. - builtin and then its argument prototype would still apply. */
  5973. -#ifdef __cplusplus
  5974. -extern "C"
  5975. -#endif
  5976. -char $ac_func ();
  5977. -/* The GNU C library defines this for functions which it implements
  5978. - to always fail with ENOSYS. Some functions are actually named
  5979. - something starting with __ and the normal name is an alias. */
  5980. -#if defined __stub_$ac_func || defined __stub___$ac_func
  5981. -choke me
  5982. -#endif
  5983. -
  5984. -int
  5985. -main ()
  5986. -{
  5987. -return $ac_func ();
  5988. - ;
  5989. - return 0;
  5990. -}
  5991. -_ACEOF
  5992. -rm -f conftest.$ac_objext conftest$ac_exeext
  5993. -if { (ac_try="$ac_link"
  5994. -case "(($ac_try" in
  5995. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5996. - *) ac_try_echo=$ac_try;;
  5997. -esac
  5998. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5999. -$as_echo "$ac_try_echo") >&5
  6000. - (eval "$ac_link") 2>conftest.er1
  6001. - ac_status=$?
  6002. - grep -v '^ *+' conftest.er1 >conftest.err
  6003. - rm -f conftest.er1
  6004. - cat conftest.err >&5
  6005. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6006. - (exit $ac_status); } && {
  6007. - test -z "$ac_c_werror_flag" ||
  6008. - test ! -s conftest.err
  6009. - } && test -s conftest$ac_exeext && {
  6010. - test "$cross_compiling" = yes ||
  6011. - $as_test_x conftest$ac_exeext
  6012. - }; then
  6013. - eval "$as_ac_var=yes"
  6014. -else
  6015. - $as_echo "$as_me: failed program was:" >&5
  6016. -sed 's/^/| /' conftest.$ac_ext >&5
  6017. -
  6018. - eval "$as_ac_var=no"
  6019. -fi
  6020. -
  6021. -rm -rf conftest.dSYM
  6022. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6023. - conftest$ac_exeext conftest.$ac_ext
  6024. -fi
  6025. -ac_res=`eval 'as_val=${'$as_ac_var'}
  6026. - $as_echo "$as_val"'`
  6027. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6028. -$as_echo "$ac_res" >&6; }
  6029. -if test `eval 'as_val=${'$as_ac_var'}
  6030. - $as_echo "$as_val"'` = yes; then
  6031. +do :
  6032. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6033. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6034. +if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6035. cat >>confdefs.h <<_ACEOF
  6036. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6037. _ACEOF
  6038. @@ -6149,6 +5012,7 @@ ac_config_files="$ac_config_files Makefile"
  6039. +
  6040. cat >confcache <<\_ACEOF
  6041. # This file is a shell script that caches the results of configure
  6042. # tests run on this system so they can be shared between configure
  6043. @@ -6176,13 +5040,13 @@ _ACEOF
  6044. case $ac_val in #(
  6045. *${as_nl}*)
  6046. case $ac_var in #(
  6047. - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  6048. -$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  6049. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6050. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6051. esac
  6052. case $ac_var in #(
  6053. _ | IFS | as_nl) ;; #(
  6054. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6055. - *) $as_unset $ac_var ;;
  6056. + *) { eval $ac_var=; unset $ac_var;} ;;
  6057. esac ;;
  6058. esac
  6059. done
  6060. @@ -6190,8 +5054,8 @@ $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  6061. (set) 2>&1 |
  6062. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6063. *${as_nl}ac_space=\ *)
  6064. - # `set' does not quote correctly, so add quotes (double-quote
  6065. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  6066. + # `set' does not quote correctly, so add quotes: double-quote
  6067. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  6068. sed -n \
  6069. "s/'/'\\\\''/g;
  6070. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6071. @@ -6214,11 +5078,11 @@ $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  6072. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6073. if test -w "$cache_file"; then
  6074. test "x$cache_file" != "x/dev/null" &&
  6075. - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  6076. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6077. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6078. cat confcache >$cache_file
  6079. else
  6080. - { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  6081. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6082. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6083. fi
  6084. fi
  6085. @@ -6232,49 +5096,50 @@ DEFS=-DHAVE_CONFIG_H
  6086. ac_libobjs=
  6087. ac_ltlibobjs=
  6088. +U=
  6089. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6090. # 1. Remove the extension, and $U if already installed.
  6091. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6092. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6093. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6094. # will be set to the directory where LIBOBJS objects are built.
  6095. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6096. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  6097. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6098. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6099. done
  6100. LIBOBJS=$ac_libobjs
  6101. LTLIBOBJS=$ac_ltlibobjs
  6102. + if test -n "$EXEEXT"; then
  6103. + am__EXEEXT_TRUE=
  6104. + am__EXEEXT_FALSE='#'
  6105. +else
  6106. + am__EXEEXT_TRUE='#'
  6107. + am__EXEEXT_FALSE=
  6108. +fi
  6109. +
  6110. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  6111. - { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  6112. -Usually this means the macro was only invoked conditionally." >&5
  6113. -$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  6114. -Usually this means the macro was only invoked conditionally." >&2;}
  6115. - { (exit 1); exit 1; }; }
  6116. + as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  6117. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6118. fi
  6119. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  6120. - { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  6121. -Usually this means the macro was only invoked conditionally." >&5
  6122. -$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  6123. -Usually this means the macro was only invoked conditionally." >&2;}
  6124. - { (exit 1); exit 1; }; }
  6125. + as_fn_error $? "conditional \"AMDEP\" was never defined.
  6126. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6127. fi
  6128. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  6129. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  6130. -Usually this means the macro was only invoked conditionally." >&5
  6131. -$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  6132. -Usually this means the macro was only invoked conditionally." >&2;}
  6133. - { (exit 1); exit 1; }; }
  6134. + as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  6135. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  6136. fi
  6137. : ${CONFIG_STATUS=./config.status}
  6138. ac_write_fail=0
  6139. ac_clean_files_save=$ac_clean_files
  6140. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6141. -{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  6142. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6143. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6144. -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6145. +as_write_fail=0
  6146. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6147. #! $SHELL
  6148. # Generated by $as_me.
  6149. # Run this file to recreate the current configuration.
  6150. @@ -6284,17 +5149,18 @@ cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6151. debug=false
  6152. ac_cs_recheck=false
  6153. ac_cs_silent=false
  6154. -SHELL=\${CONFIG_SHELL-$SHELL}
  6155. -_ACEOF
  6156. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6157. -## --------------------- ##
  6158. -## M4sh Initialization. ##
  6159. -## --------------------- ##
  6160. +SHELL=\${CONFIG_SHELL-$SHELL}
  6161. +export SHELL
  6162. +_ASEOF
  6163. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6164. +## -------------------- ##
  6165. +## M4sh Initialization. ##
  6166. +## -------------------- ##
  6167. # Be more Bourne compatible
  6168. DUALCASE=1; export DUALCASE # for MKS sh
  6169. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  6170. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6171. emulate sh
  6172. NULLCMD=:
  6173. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6174. @@ -6302,23 +5168,15 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  6175. alias -g '${1+"$@"}'='"$@"'
  6176. setopt NO_GLOB_SUBST
  6177. else
  6178. - case `(set -o) 2>/dev/null` in
  6179. - *posix*) set -o posix ;;
  6180. + case `(set -o) 2>/dev/null` in #(
  6181. + *posix*) :
  6182. + set -o posix ;; #(
  6183. + *) :
  6184. + ;;
  6185. esac
  6186. -
  6187. fi
  6188. -
  6189. -
  6190. -# PATH needs CR
  6191. -# Avoid depending upon Character Ranges.
  6192. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6193. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6194. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6195. -as_cr_digits='0123456789'
  6196. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  6197. -
  6198. as_nl='
  6199. '
  6200. export as_nl
  6201. @@ -6326,7 +5184,13 @@ export as_nl
  6202. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6203. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6204. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6205. -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6206. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  6207. +# but without wasting forks for bash or zsh.
  6208. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  6209. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6210. + as_echo='print -r --'
  6211. + as_echo_n='print -rn --'
  6212. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6213. as_echo='printf %s\n'
  6214. as_echo_n='printf %s'
  6215. else
  6216. @@ -6337,7 +5201,7 @@ else
  6217. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6218. as_echo_n_body='eval
  6219. arg=$1;
  6220. - case $arg in
  6221. + case $arg in #(
  6222. *"$as_nl"*)
  6223. expr "X$arg" : "X\\(.*\\)$as_nl";
  6224. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6225. @@ -6360,13 +5224,6 @@ if test "${PATH_SEPARATOR+set}" != set; then
  6226. }
  6227. fi
  6228. -# Support unset when possible.
  6229. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6230. - as_unset=unset
  6231. -else
  6232. - as_unset=false
  6233. -fi
  6234. -
  6235. # IFS
  6236. # We need space, tab and new line, in precisely that order. Quoting is
  6237. @@ -6376,15 +5233,15 @@ fi
  6238. IFS=" "" $as_nl"
  6239. # Find who we are. Look in the path if we contain no directory separator.
  6240. -case $0 in
  6241. +case $0 in #((
  6242. *[\\/]* ) as_myself=$0 ;;
  6243. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6244. for as_dir in $PATH
  6245. do
  6246. IFS=$as_save_IFS
  6247. test -z "$as_dir" && as_dir=.
  6248. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6249. -done
  6250. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6251. + done
  6252. IFS=$as_save_IFS
  6253. ;;
  6254. @@ -6396,12 +5253,16 @@ if test "x$as_myself" = x; then
  6255. fi
  6256. if test ! -f "$as_myself"; then
  6257. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6258. - { (exit 1); exit 1; }
  6259. + exit 1
  6260. fi
  6261. -# Work around bugs in pre-3.0 UWIN ksh.
  6262. -for as_var in ENV MAIL MAILPATH
  6263. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  6264. +# Unset variables that we do not need and which cause bugs (e.g. in
  6265. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6266. +# suppresses any "Segmentation fault" message there. '((' could
  6267. +# trigger a bug in pdksh 5.2.14.
  6268. +for as_var in BASH_ENV ENV MAIL MAILPATH
  6269. +do eval test x\${$as_var+set} = xset \
  6270. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6271. done
  6272. PS1='$ '
  6273. PS2='> '
  6274. @@ -6413,7 +5274,89 @@ export LC_ALL
  6275. LANGUAGE=C
  6276. export LANGUAGE
  6277. -# Required to use basename.
  6278. +# CDPATH.
  6279. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6280. +
  6281. +
  6282. +# as_fn_error STATUS ERROR [LINENO LOG_FD]
  6283. +# ----------------------------------------
  6284. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6285. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6286. +# script with STATUS, using 1 if that was 0.
  6287. +as_fn_error ()
  6288. +{
  6289. + as_status=$1; test $as_status -eq 0 && as_status=1
  6290. + if test "$4"; then
  6291. + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6292. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6293. + fi
  6294. + $as_echo "$as_me: error: $2" >&2
  6295. + as_fn_exit $as_status
  6296. +} # as_fn_error
  6297. +
  6298. +
  6299. +# as_fn_set_status STATUS
  6300. +# -----------------------
  6301. +# Set $? to STATUS, without forking.
  6302. +as_fn_set_status ()
  6303. +{
  6304. + return $1
  6305. +} # as_fn_set_status
  6306. +
  6307. +# as_fn_exit STATUS
  6308. +# -----------------
  6309. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6310. +as_fn_exit ()
  6311. +{
  6312. + set +e
  6313. + as_fn_set_status $1
  6314. + exit $1
  6315. +} # as_fn_exit
  6316. +
  6317. +# as_fn_unset VAR
  6318. +# ---------------
  6319. +# Portably unset VAR.
  6320. +as_fn_unset ()
  6321. +{
  6322. + { eval $1=; unset $1;}
  6323. +}
  6324. +as_unset=as_fn_unset
  6325. +# as_fn_append VAR VALUE
  6326. +# ----------------------
  6327. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  6328. +# advantage of any shell optimizations that allow amortized linear growth over
  6329. +# repeated appends, instead of the typical quadratic growth present in naive
  6330. +# implementations.
  6331. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6332. + eval 'as_fn_append ()
  6333. + {
  6334. + eval $1+=\$2
  6335. + }'
  6336. +else
  6337. + as_fn_append ()
  6338. + {
  6339. + eval $1=\$$1\$2
  6340. + }
  6341. +fi # as_fn_append
  6342. +
  6343. +# as_fn_arith ARG...
  6344. +# ------------------
  6345. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  6346. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  6347. +# must be portable across $(()) and expr.
  6348. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6349. + eval 'as_fn_arith ()
  6350. + {
  6351. + as_val=$(( $* ))
  6352. + }'
  6353. +else
  6354. + as_fn_arith ()
  6355. + {
  6356. + as_val=`expr "$@" || test $? -eq 1`
  6357. + }
  6358. +fi # as_fn_arith
  6359. +
  6360. +
  6361. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6362. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6363. as_expr=expr
  6364. @@ -6427,8 +5370,12 @@ else
  6365. as_basename=false
  6366. fi
  6367. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6368. + as_dirname=dirname
  6369. +else
  6370. + as_dirname=false
  6371. +fi
  6372. -# Name of the executable.
  6373. as_me=`$as_basename -- "$0" ||
  6374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6375. X"$0" : 'X\(//\)$' \| \
  6376. @@ -6448,76 +5395,25 @@ $as_echo X/"$0" |
  6377. }
  6378. s/.*/./; q'`
  6379. -# CDPATH.
  6380. -$as_unset CDPATH
  6381. -
  6382. -
  6383. -
  6384. - as_lineno_1=$LINENO
  6385. - as_lineno_2=$LINENO
  6386. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  6387. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  6388. -
  6389. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  6390. - # uniformly replaced by the line number. The first 'sed' inserts a
  6391. - # line-number line after each line using $LINENO; the second 'sed'
  6392. - # does the real work. The second script uses 'N' to pair each
  6393. - # line-number line with the line containing $LINENO, and appends
  6394. - # trailing '-' during substitution so that $LINENO is not a special
  6395. - # case at line end.
  6396. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  6397. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  6398. - # E. McMahon (1931-1989) for sed's syntax. :-)
  6399. - sed -n '
  6400. - p
  6401. - /[$]LINENO/=
  6402. - ' <$as_myself |
  6403. - sed '
  6404. - s/[$]LINENO.*/&-/
  6405. - t lineno
  6406. - b
  6407. - :lineno
  6408. - N
  6409. - :loop
  6410. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  6411. - t loop
  6412. - s/-\n.*//
  6413. - ' >$as_me.lineno &&
  6414. - chmod +x "$as_me.lineno" ||
  6415. - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  6416. - { (exit 1); exit 1; }; }
  6417. -
  6418. - # Don't try to exec as it changes $[0], causing all sort of problems
  6419. - # (the dirname of $[0] is not the place where we might find the
  6420. - # original and so on. Autoconf is especially sensitive to this).
  6421. - . "./$as_me.lineno"
  6422. - # Exit status is that of the last command.
  6423. - exit
  6424. -}
  6425. -
  6426. -
  6427. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6428. - as_dirname=dirname
  6429. -else
  6430. - as_dirname=false
  6431. -fi
  6432. +# Avoid depending upon Character Ranges.
  6433. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6434. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6435. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6436. +as_cr_digits='0123456789'
  6437. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  6438. ECHO_C= ECHO_N= ECHO_T=
  6439. -case `echo -n x` in
  6440. +case `echo -n x` in #(((((
  6441. -n*)
  6442. - case `echo 'x\c'` in
  6443. + case `echo 'xy\c'` in
  6444. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6445. - *) ECHO_C='\c';;
  6446. + xy) ECHO_C='\c';;
  6447. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6448. + ECHO_T=' ';;
  6449. esac;;
  6450. *)
  6451. ECHO_N='-n';;
  6452. esac
  6453. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  6454. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6455. - as_expr=expr
  6456. -else
  6457. - as_expr=false
  6458. -fi
  6459. rm -f conf$$ conf$$.exe conf$$.file
  6460. if test -d conf$$.dir; then
  6461. @@ -6546,8 +5442,56 @@ fi
  6462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6463. rmdir conf$$.dir 2>/dev/null
  6464. +
  6465. +# as_fn_mkdir_p
  6466. +# -------------
  6467. +# Create "$as_dir" as a directory, including parents if necessary.
  6468. +as_fn_mkdir_p ()
  6469. +{
  6470. +
  6471. + case $as_dir in #(
  6472. + -*) as_dir=./$as_dir;;
  6473. + esac
  6474. + test -d "$as_dir" || eval $as_mkdir_p || {
  6475. + as_dirs=
  6476. + while :; do
  6477. + case $as_dir in #(
  6478. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6479. + *) as_qdir=$as_dir;;
  6480. + esac
  6481. + as_dirs="'$as_qdir' $as_dirs"
  6482. + as_dir=`$as_dirname -- "$as_dir" ||
  6483. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6484. + X"$as_dir" : 'X\(//\)[^/]' \| \
  6485. + X"$as_dir" : 'X\(//\)$' \| \
  6486. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6487. +$as_echo X"$as_dir" |
  6488. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6489. + s//\1/
  6490. + q
  6491. + }
  6492. + /^X\(\/\/\)[^/].*/{
  6493. + s//\1/
  6494. + q
  6495. + }
  6496. + /^X\(\/\/\)$/{
  6497. + s//\1/
  6498. + q
  6499. + }
  6500. + /^X\(\/\).*/{
  6501. + s//\1/
  6502. + q
  6503. + }
  6504. + s/.*/./; q'`
  6505. + test -d "$as_dir" && break
  6506. + done
  6507. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  6508. + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6509. +
  6510. +
  6511. +} # as_fn_mkdir_p
  6512. if mkdir -p . 2>/dev/null; then
  6513. - as_mkdir_p=:
  6514. + as_mkdir_p='mkdir -p "$as_dir"'
  6515. else
  6516. test -d ./-p && rmdir ./-p
  6517. as_mkdir_p=false
  6518. @@ -6566,10 +5510,10 @@ else
  6519. if test -d "$1"; then
  6520. test -d "$1/.";
  6521. else
  6522. - case $1 in
  6523. + case $1 in #(
  6524. -*)set "./$1";;
  6525. esac;
  6526. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  6527. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  6528. ???[sx]*):;;*)false;;esac;fi
  6529. '\'' sh
  6530. '
  6531. @@ -6584,13 +5528,19 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6532. exec 6>&1
  6533. +## ----------------------------------- ##
  6534. +## Main body of $CONFIG_STATUS script. ##
  6535. +## ----------------------------------- ##
  6536. +_ASEOF
  6537. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6538. -# Save the log message, to keep $[0] and so on meaningful, and to
  6539. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6540. +# Save the log message, to keep $0 and so on meaningful, and to
  6541. # report actual input values of CONFIG_FILES etc. instead of their
  6542. # values after options handling.
  6543. ac_log="
  6544. This file was extended by rtpproxy $as_me 1.3.alpha.200903230, which was
  6545. -generated by GNU Autoconf 2.62. Invocation command line was
  6546. +generated by GNU Autoconf 2.67. Invocation command line was
  6547. CONFIG_FILES = $CONFIG_FILES
  6548. CONFIG_HEADERS = $CONFIG_HEADERS
  6549. @@ -6603,6 +5553,15 @@ on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6550. _ACEOF
  6551. +case $ac_config_files in *"
  6552. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  6553. +esac
  6554. +
  6555. +case $ac_config_headers in *"
  6556. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6557. +esac
  6558. +
  6559. +
  6560. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6561. # Files that config.status was made for.
  6562. config_files="$ac_config_files"
  6563. @@ -6613,19 +5572,22 @@ _ACEOF
  6564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6565. ac_cs_usage="\
  6566. -\`$as_me' instantiates files from templates according to the
  6567. -current configuration.
  6568. +\`$as_me' instantiates files and other configuration actions
  6569. +from templates according to the current configuration. Unless the files
  6570. +and actions are specified as TAGs, all are instantiated by default.
  6571. -Usage: $0 [OPTIONS] [FILE]...
  6572. +Usage: $0 [OPTION]... [TAG]...
  6573. -h, --help print this help, then exit
  6574. -V, --version print version number and configuration settings, then exit
  6575. - -q, --quiet do not print progress messages
  6576. + --config print configuration, then exit
  6577. + -q, --quiet, --silent
  6578. + do not print progress messages
  6579. -d, --debug don't remove temporary files
  6580. --recheck update $as_me by reconfiguring in the same conditions
  6581. - --file=FILE[:TEMPLATE]
  6582. + --file=FILE[:TEMPLATE]
  6583. instantiate the configuration file FILE
  6584. - --header=FILE[:TEMPLATE]
  6585. + --header=FILE[:TEMPLATE]
  6586. instantiate the configuration header FILE
  6587. Configuration files:
  6588. @@ -6637,22 +5599,24 @@ $config_headers
  6589. Configuration commands:
  6590. $config_commands
  6591. -Report bugs to <[email protected]>."
  6592. +Report bugs to <[email protected]>."
  6593. _ACEOF
  6594. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6595. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6596. ac_cs_version="\\
  6597. rtpproxy config.status 1.3.alpha.200903230
  6598. -configured by $0, generated by GNU Autoconf 2.62,
  6599. - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  6600. +configured by $0, generated by GNU Autoconf 2.67,
  6601. + with options \\"\$ac_cs_config\\"
  6602. -Copyright (C) 2008 Free Software Foundation, Inc.
  6603. +Copyright (C) 2010 Free Software Foundation, Inc.
  6604. This config.status script is free software; the Free Software Foundation
  6605. gives unlimited permission to copy, distribute and modify it."
  6606. ac_pwd='$ac_pwd'
  6607. srcdir='$srcdir'
  6608. INSTALL='$INSTALL'
  6609. +MKDIR_P='$MKDIR_P'
  6610. AWK='$AWK'
  6611. test -n "\$AWK" || AWK=awk
  6612. _ACEOF
  6613. @@ -6663,11 +5627,16 @@ ac_need_defaults=:
  6614. while test $# != 0
  6615. do
  6616. case $1 in
  6617. - --*=*)
  6618. + --*=?*)
  6619. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6620. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6621. ac_shift=:
  6622. ;;
  6623. + --*=)
  6624. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6625. + ac_optarg=
  6626. + ac_shift=:
  6627. + ;;
  6628. *)
  6629. ac_option=$1
  6630. ac_optarg=$2
  6631. @@ -6681,27 +5650,29 @@ do
  6632. ac_cs_recheck=: ;;
  6633. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6634. $as_echo "$ac_cs_version"; exit ;;
  6635. + --config | --confi | --conf | --con | --co | --c )
  6636. + $as_echo "$ac_cs_config"; exit ;;
  6637. --debug | --debu | --deb | --de | --d | -d )
  6638. debug=: ;;
  6639. --file | --fil | --fi | --f )
  6640. $ac_shift
  6641. case $ac_optarg in
  6642. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6643. + '') as_fn_error $? "missing file argument" ;;
  6644. esac
  6645. - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  6646. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  6647. ac_need_defaults=false;;
  6648. --header | --heade | --head | --hea )
  6649. $ac_shift
  6650. case $ac_optarg in
  6651. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6652. esac
  6653. - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  6654. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6655. ac_need_defaults=false;;
  6656. --he | --h)
  6657. # Conflict between --help and --header
  6658. - { $as_echo "$as_me: error: ambiguous option: $1
  6659. -Try \`$0 --help' for more information." >&2
  6660. - { (exit 1); exit 1; }; };;
  6661. + as_fn_error $? "ambiguous option: \`$1'
  6662. +Try \`$0 --help' for more information.";;
  6663. --help | --hel | -h )
  6664. $as_echo "$ac_cs_usage"; exit ;;
  6665. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6666. @@ -6709,11 +5680,10 @@ Try \`$0 --help' for more information." >&2
  6667. ac_cs_silent=: ;;
  6668. # This is an error.
  6669. - -*) { $as_echo "$as_me: error: unrecognized option: $1
  6670. -Try \`$0 --help' for more information." >&2
  6671. - { (exit 1); exit 1; }; } ;;
  6672. + -*) as_fn_error $? "unrecognized option: \`$1'
  6673. +Try \`$0 --help' for more information." ;;
  6674. - *) ac_config_targets="$ac_config_targets $1"
  6675. + *) as_fn_append ac_config_targets " $1"
  6676. ac_need_defaults=false ;;
  6677. esac
  6678. @@ -6768,9 +5738,7 @@ do
  6679. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  6680. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6681. - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  6682. -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  6683. - { (exit 1); exit 1; }; };;
  6684. + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  6685. esac
  6686. done
  6687. @@ -6797,7 +5765,7 @@ $debug ||
  6688. trap 'exit_status=$?
  6689. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  6690. ' 0
  6691. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  6692. + trap 'as_fn_exit 1' 1 2 13 15
  6693. }
  6694. # Create a (secure) tmp directory for tmp files.
  6695. @@ -6808,11 +5776,7 @@ $debug ||
  6696. {
  6697. tmp=./conf$$-$RANDOM
  6698. (umask 077 && mkdir "$tmp")
  6699. -} ||
  6700. -{
  6701. - $as_echo "$as_me: cannot create a temporary directory in ." >&2
  6702. - { (exit 1); exit 1; }
  6703. -}
  6704. +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6705. # Set up the scripts for CONFIG_FILES section.
  6706. # No need to generate them if there are no CONFIG_FILES.
  6707. @@ -6820,7 +5784,13 @@ $debug ||
  6708. if test -n "$CONFIG_FILES"; then
  6709. -ac_cr=' '
  6710. +ac_cr=`echo X | tr X '\015'`
  6711. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  6712. +# But we know of no other shell where ac_cr would be empty at this
  6713. +# point, so we can use a bashism as a fallback.
  6714. +if test "x$ac_cr" = x; then
  6715. + eval ac_cr=\$\'\\r\'
  6716. +fi
  6717. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6718. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6719. ac_cs_awk_cr='\\r'
  6720. @@ -6837,23 +5807,18 @@ _ACEOF
  6721. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6722. echo "_ACEOF"
  6723. } >conf$$subs.sh ||
  6724. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  6725. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  6726. - { (exit 1); exit 1; }; }
  6727. -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  6728. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6729. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  6730. ac_delim='%!_!# '
  6731. for ac_last_try in false false false false false :; do
  6732. . ./conf$$subs.sh ||
  6733. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  6734. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  6735. - { (exit 1); exit 1; }; }
  6736. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6737. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
  6738. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6739. + if test $ac_delim_n = $ac_delim_num; then
  6740. break
  6741. elif $ac_last_try; then
  6742. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  6743. -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  6744. - { (exit 1); exit 1; }; }
  6745. + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6746. else
  6747. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6748. fi
  6749. @@ -6875,7 +5840,7 @@ s/'"$ac_delim"'$//
  6750. t delim
  6751. :nl
  6752. h
  6753. -s/\(.\{148\}\).*/\1/
  6754. +s/\(.\{148\}\)..*/\1/
  6755. t more1
  6756. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6757. p
  6758. @@ -6889,7 +5854,7 @@ s/.\{148\}//
  6759. t nl
  6760. :delim
  6761. h
  6762. -s/\(.\{148\}\).*/\1/
  6763. +s/\(.\{148\}\)..*/\1/
  6764. t more2
  6765. s/["\\]/\\&/g; s/^/"/; s/$/"/
  6766. p
  6767. @@ -6942,22 +5907,28 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  6768. else
  6769. cat
  6770. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  6771. - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  6772. -$as_echo "$as_me: error: could not setup config files machinery" >&2;}
  6773. - { (exit 1); exit 1; }; }
  6774. + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  6775. _ACEOF
  6776. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  6777. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  6778. +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  6779. +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  6780. # trailing colons and then remove the whole line if VPATH becomes empty
  6781. # (actually we leave an empty line to preserve line numbers).
  6782. if test "x$srcdir" = x.; then
  6783. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  6784. -s/:*\$(srcdir):*/:/
  6785. -s/:*\${srcdir}:*/:/
  6786. -s/:*@srcdir@:*/:/
  6787. -s/^\([^=]*=[ ]*\):*/\1/
  6788. + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  6789. +h
  6790. +s///
  6791. +s/^/:/
  6792. +s/[ ]*$/:/
  6793. +s/:\$(srcdir):/:/g
  6794. +s/:\${srcdir}:/:/g
  6795. +s/:@srcdir@:/:/g
  6796. +s/^:*//
  6797. s/:*$//
  6798. +x
  6799. +s/\(=[ ]*\).*/\1/
  6800. +G
  6801. +s/\n//
  6802. s/^[^=]*=[ ]*$//
  6803. }'
  6804. fi
  6805. @@ -6985,9 +5956,7 @@ for ac_last_try in false false :; do
  6806. if test -z "$ac_t"; then
  6807. break
  6808. elif $ac_last_try; then
  6809. - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  6810. -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  6811. - { (exit 1); exit 1; }; }
  6812. + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  6813. else
  6814. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6815. fi
  6816. @@ -7053,9 +6022,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6817. }
  6818. split(mac1, mac2, "(") #)
  6819. macro = mac2[1]
  6820. + prefix = substr(line, 1, index(line, defundef) - 1)
  6821. if (D_is_set[macro]) {
  6822. # Preserve the white space surrounding the "#".
  6823. - prefix = substr(line, 1, index(line, defundef) - 1)
  6824. print prefix "define", macro P[macro] D[macro]
  6825. next
  6826. } else {
  6827. @@ -7063,7 +6032,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6828. # in the case of _POSIX_SOURCE, which is predefined and required
  6829. # on some systems where configure will not decide to define it.
  6830. if (defundef == "undef") {
  6831. - print "/*", line, "*/"
  6832. + print "/*", prefix defundef, macro, "*/"
  6833. next
  6834. }
  6835. }
  6836. @@ -7072,9 +6041,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6837. _ACAWK
  6838. _ACEOF
  6839. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6840. - { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  6841. -$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  6842. - { (exit 1); exit 1; }; }
  6843. + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  6844. fi # test -n "$CONFIG_HEADERS"
  6845. @@ -7087,9 +6054,7 @@ do
  6846. esac
  6847. case $ac_mode$ac_tag in
  6848. :[FHL]*:*);;
  6849. - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  6850. -$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  6851. - { (exit 1); exit 1; }; };;
  6852. + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  6853. :[FH]-) ac_tag=-:-;;
  6854. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  6855. esac
  6856. @@ -7117,12 +6082,10 @@ $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  6857. [\\/$]*) false;;
  6858. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  6859. esac ||
  6860. - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  6861. -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  6862. - { (exit 1); exit 1; }; };;
  6863. + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  6864. esac
  6865. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  6866. - ac_file_inputs="$ac_file_inputs '$ac_f'"
  6867. + as_fn_append ac_file_inputs " '$ac_f'"
  6868. done
  6869. # Let's still pretend it is `configure' which instantiates (i.e., don't
  6870. @@ -7133,7 +6096,7 @@ $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  6871. `' by configure.'
  6872. if test x"$ac_file" != x-; then
  6873. configure_input="$ac_file. $configure_input"
  6874. - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  6875. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  6876. $as_echo "$as_me: creating $ac_file" >&6;}
  6877. fi
  6878. # Neutralize special characters interpreted by sed in replacement strings.
  6879. @@ -7146,9 +6109,7 @@ $as_echo "$as_me: creating $ac_file" >&6;}
  6880. case $ac_tag in
  6881. *:-:* | *:-) cat >"$tmp/stdin" \
  6882. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  6883. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  6884. - { (exit 1); exit 1; }; } ;;
  6885. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  6886. esac
  6887. ;;
  6888. esac
  6889. @@ -7176,47 +6137,7 @@ $as_echo X"$ac_file" |
  6890. q
  6891. }
  6892. s/.*/./; q'`
  6893. - { as_dir="$ac_dir"
  6894. - case $as_dir in #(
  6895. - -*) as_dir=./$as_dir;;
  6896. - esac
  6897. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  6898. - as_dirs=
  6899. - while :; do
  6900. - case $as_dir in #(
  6901. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6902. - *) as_qdir=$as_dir;;
  6903. - esac
  6904. - as_dirs="'$as_qdir' $as_dirs"
  6905. - as_dir=`$as_dirname -- "$as_dir" ||
  6906. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6907. - X"$as_dir" : 'X\(//\)[^/]' \| \
  6908. - X"$as_dir" : 'X\(//\)$' \| \
  6909. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6910. -$as_echo X"$as_dir" |
  6911. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6912. - s//\1/
  6913. - q
  6914. - }
  6915. - /^X\(\/\/\)[^/].*/{
  6916. - s//\1/
  6917. - q
  6918. - }
  6919. - /^X\(\/\/\)$/{
  6920. - s//\1/
  6921. - q
  6922. - }
  6923. - /^X\(\/\).*/{
  6924. - s//\1/
  6925. - q
  6926. - }
  6927. - s/.*/./; q'`
  6928. - test -d "$as_dir" && break
  6929. - done
  6930. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  6931. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  6932. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  6933. - { (exit 1); exit 1; }; }; }
  6934. + as_dir="$ac_dir"; as_fn_mkdir_p
  6935. ac_builddir=.
  6936. case "$ac_dir" in
  6937. @@ -7262,13 +6183,17 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6938. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  6939. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  6940. esac
  6941. + ac_MKDIR_P=$MKDIR_P
  6942. + case $MKDIR_P in
  6943. + [\\/$]* | ?:[\\/]* ) ;;
  6944. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  6945. + esac
  6946. _ACEOF
  6947. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6948. # If the template does not know about datarootdir, expand it.
  6949. # FIXME: This hack should be removed a few years after 2.60.
  6950. ac_datarootdir_hack=; ac_datarootdir_seen=
  6951. -
  6952. ac_sed_dataroot='
  6953. /datarootdir/ {
  6954. p
  6955. @@ -7278,12 +6203,11 @@ ac_sed_dataroot='
  6956. /@docdir@/p
  6957. /@infodir@/p
  6958. /@localedir@/p
  6959. -/@mandir@/p
  6960. -'
  6961. +/@mandir@/p'
  6962. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  6963. *datarootdir*) ac_datarootdir_seen=yes;;
  6964. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  6965. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  6966. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  6967. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  6968. _ACEOF
  6969. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6970. @@ -7293,7 +6217,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6971. s&@infodir@&$infodir&g
  6972. s&@localedir@&$localedir&g
  6973. s&@mandir@&$mandir&g
  6974. - s&\\\${datarootdir}&$datarootdir&g' ;;
  6975. + s&\\\${datarootdir}&$datarootdir&g' ;;
  6976. esac
  6977. _ACEOF
  6978. @@ -7318,29 +6242,26 @@ s&@builddir@&$ac_builddir&;t t
  6979. s&@abs_builddir@&$ac_abs_builddir&;t t
  6980. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  6981. s&@INSTALL@&$ac_INSTALL&;t t
  6982. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  6983. $ac_datarootdir_hack
  6984. "
  6985. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  6986. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  6987. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  6988. - { (exit 1); exit 1; }; }
  6989. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6990. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  6991. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  6992. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  6993. - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6994. -which seems to be undefined. Please make sure it is defined." >&5
  6995. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6996. +which seems to be undefined. Please make sure it is defined" >&5
  6997. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6998. -which seems to be undefined. Please make sure it is defined." >&2;}
  6999. +which seems to be undefined. Please make sure it is defined" >&2;}
  7000. rm -f "$tmp/stdin"
  7001. case $ac_file in
  7002. -) cat "$tmp/out" && rm -f "$tmp/out";;
  7003. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  7004. esac \
  7005. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  7006. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  7007. - { (exit 1); exit 1; }; }
  7008. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7009. ;;
  7010. :H)
  7011. #
  7012. @@ -7351,42 +6272,37 @@ $as_echo "$as_me: error: could not create $ac_file" >&2;}
  7013. $as_echo "/* $configure_input */" \
  7014. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  7015. } >"$tmp/config.h" \
  7016. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  7017. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  7018. - { (exit 1); exit 1; }; }
  7019. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7020. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  7021. - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  7022. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7023. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7024. else
  7025. rm -f "$ac_file"
  7026. mv "$tmp/config.h" "$ac_file" \
  7027. - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  7028. -$as_echo "$as_me: error: could not create $ac_file" >&2;}
  7029. - { (exit 1); exit 1; }; }
  7030. + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7031. fi
  7032. else
  7033. $as_echo "/* $configure_input */" \
  7034. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  7035. - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  7036. -$as_echo "$as_me: error: could not create -" >&2;}
  7037. - { (exit 1); exit 1; }; }
  7038. + || as_fn_error $? "could not create -" "$LINENO" 5
  7039. fi
  7040. # Compute "$ac_file"'s index in $config_headers.
  7041. +_am_arg="$ac_file"
  7042. _am_stamp_count=1
  7043. for _am_header in $config_headers :; do
  7044. case $_am_header in
  7045. - "$ac_file" | "$ac_file":* )
  7046. + $_am_arg | $_am_arg:* )
  7047. break ;;
  7048. * )
  7049. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  7050. esac
  7051. done
  7052. -echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
  7053. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7054. - X"$ac_file" : 'X\(//\)[^/]' \| \
  7055. - X"$ac_file" : 'X\(//\)$' \| \
  7056. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7057. -$as_echo X"$ac_file" |
  7058. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  7059. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7060. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  7061. + X"$_am_arg" : 'X\(//\)$' \| \
  7062. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  7063. +$as_echo X"$_am_arg" |
  7064. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7065. s//\1/
  7066. q
  7067. @@ -7406,24 +6322,35 @@ $as_echo X"$ac_file" |
  7068. s/.*/./; q'`/stamp-h$_am_stamp_count
  7069. ;;
  7070. - :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  7071. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  7072. $as_echo "$as_me: executing $ac_file commands" >&6;}
  7073. ;;
  7074. esac
  7075. case $ac_file$ac_mode in
  7076. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  7077. - # Strip MF so we end up with the name of the file.
  7078. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  7079. - # Check whether this is an Automake generated Makefile or not.
  7080. - # We used to match only the files named `Makefile.in', but
  7081. - # some people rename them; so instead we look at the file content.
  7082. - # Grep'ing the first line is not enough: some people post-process
  7083. - # each Makefile.in and add a new line on top of each file to say so.
  7084. - # So let's grep whole file.
  7085. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  7086. - dirpart=`$as_dirname -- "$mf" ||
  7087. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  7088. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  7089. + # are listed without --file. Let's play safe and only enable the eval
  7090. + # if we detect the quoting.
  7091. + case $CONFIG_FILES in
  7092. + *\'*) eval set x "$CONFIG_FILES" ;;
  7093. + *) set x $CONFIG_FILES ;;
  7094. + esac
  7095. + shift
  7096. + for mf
  7097. + do
  7098. + # Strip MF so we end up with the name of the file.
  7099. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  7100. + # Check whether this is an Automake generated Makefile or not.
  7101. + # We used to match only the files named `Makefile.in', but
  7102. + # some people rename them; so instead we look at the file content.
  7103. + # Grep'ing the first line is not enough: some people post-process
  7104. + # each Makefile.in and add a new line on top of each file to say so.
  7105. + # Grep'ing the whole file is not good either: AIX grep has a line
  7106. + # limit of 2048, but all sed's we know have understand at least 4000.
  7107. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  7108. + dirpart=`$as_dirname -- "$mf" ||
  7109. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7110. X"$mf" : 'X\(//\)[^/]' \| \
  7111. X"$mf" : 'X\(//\)$' \| \
  7112. @@ -7446,28 +6373,28 @@ $as_echo X"$mf" |
  7113. q
  7114. }
  7115. s/.*/./; q'`
  7116. - else
  7117. - continue
  7118. - fi
  7119. - # Extract the definition of DEPDIR, am__include, and am__quote
  7120. - # from the Makefile without running `make'.
  7121. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  7122. - test -z "$DEPDIR" && continue
  7123. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  7124. - test -z "am__include" && continue
  7125. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  7126. - # When using ansi2knr, U may be empty or an underscore; expand it
  7127. - U=`sed -n 's/^U = //p' < "$mf"`
  7128. - # Find all dependency output files, they are included files with
  7129. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  7130. - # simplest approach to changing $(DEPDIR) to its actual value in the
  7131. - # expansion.
  7132. - for file in `sed -n "
  7133. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  7134. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  7135. - # Make sure the directory exists.
  7136. - test -f "$dirpart/$file" && continue
  7137. - fdir=`$as_dirname -- "$file" ||
  7138. + else
  7139. + continue
  7140. + fi
  7141. + # Extract the definition of DEPDIR, am__include, and am__quote
  7142. + # from the Makefile without running `make'.
  7143. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  7144. + test -z "$DEPDIR" && continue
  7145. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  7146. + test -z "am__include" && continue
  7147. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  7148. + # When using ansi2knr, U may be empty or an underscore; expand it
  7149. + U=`sed -n 's/^U = //p' < "$mf"`
  7150. + # Find all dependency output files, they are included files with
  7151. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  7152. + # simplest approach to changing $(DEPDIR) to its actual value in the
  7153. + # expansion.
  7154. + for file in `sed -n "
  7155. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  7156. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  7157. + # Make sure the directory exists.
  7158. + test -f "$dirpart/$file" && continue
  7159. + fdir=`$as_dirname -- "$file" ||
  7160. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7161. X"$file" : 'X\(//\)[^/]' \| \
  7162. X"$file" : 'X\(//\)$' \| \
  7163. @@ -7490,66 +6417,24 @@ $as_echo X"$file" |
  7164. q
  7165. }
  7166. s/.*/./; q'`
  7167. - { as_dir=$dirpart/$fdir
  7168. - case $as_dir in #(
  7169. - -*) as_dir=./$as_dir;;
  7170. - esac
  7171. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  7172. - as_dirs=
  7173. - while :; do
  7174. - case $as_dir in #(
  7175. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7176. - *) as_qdir=$as_dir;;
  7177. - esac
  7178. - as_dirs="'$as_qdir' $as_dirs"
  7179. - as_dir=`$as_dirname -- "$as_dir" ||
  7180. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7181. - X"$as_dir" : 'X\(//\)[^/]' \| \
  7182. - X"$as_dir" : 'X\(//\)$' \| \
  7183. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7184. -$as_echo X"$as_dir" |
  7185. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7186. - s//\1/
  7187. - q
  7188. - }
  7189. - /^X\(\/\/\)[^/].*/{
  7190. - s//\1/
  7191. - q
  7192. - }
  7193. - /^X\(\/\/\)$/{
  7194. - s//\1/
  7195. - q
  7196. - }
  7197. - /^X\(\/\).*/{
  7198. - s//\1/
  7199. - q
  7200. - }
  7201. - s/.*/./; q'`
  7202. - test -d "$as_dir" && break
  7203. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  7204. + # echo "creating $dirpart/$file"
  7205. + echo '# dummy' > "$dirpart/$file"
  7206. done
  7207. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  7208. - } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  7209. -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  7210. - { (exit 1); exit 1; }; }; }
  7211. - # echo "creating $dirpart/$file"
  7212. - echo '# dummy' > "$dirpart/$file"
  7213. done
  7214. -done
  7215. +}
  7216. ;;
  7217. esac
  7218. done # for ac_tag
  7219. -{ (exit 0); exit 0; }
  7220. +as_fn_exit 0
  7221. _ACEOF
  7222. -chmod +x $CONFIG_STATUS
  7223. ac_clean_files=$ac_clean_files_save
  7224. test $ac_write_fail = 0 ||
  7225. - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  7226. -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  7227. - { (exit 1); exit 1; }; }
  7228. + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7229. # configure is writing to config.log, and then calls config.status.
  7230. @@ -7570,10 +6455,10 @@ if test "$no_create" != yes; then
  7231. exec 5>>config.log
  7232. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7233. # would make configure fail if this is the last instruction.
  7234. - $ac_cs_success || { (exit 1); exit 1; }
  7235. + $ac_cs_success || as_fn_exit 1
  7236. fi
  7237. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7238. - { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
  7239. -$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
  7240. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7241. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7242. fi
  7243. diff --git a/configure.ac b/configure.ac
  7244. index 54c1a60..1c88b99 100644
  7245. --- a/configure.ac
  7246. +++ b/configure.ac
  7247. @@ -53,6 +53,17 @@ then
  7248. AC_DEFINE([ENABLE_G729], 1, [Define if you have libg729 library installed])
  7249. )
  7250. fi
  7251. +
  7252. +# XML-RPC-Libs:
  7253. +AC_CHECK_HEADERS(xmlrpc_client.h xmlrpc.h, found_xmlrpc=yes)
  7254. +if test "$found_xmlrpc" = yes
  7255. +then
  7256. + AC_CHECK_LIB(curl, curl_version,
  7257. + LIBS_XMLRPC="-lcurl -lxmlrpc_client -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok"
  7258. + AC_DEFINE([ENABLE_XMLRPC], 1, [Define if you have XML-RPC-Client library installed])
  7259. + )
  7260. +fi
  7261. +
  7262. ##if test -z "$G729_SUPPORT"
  7263. ##then
  7264. ## echo "*************************************************************************** $ECHO_C" 1>&6
  7265. @@ -94,4 +105,5 @@ AC_CONFIG_FILES([Makefile])
  7266. AC_SUBST(AM_CFLAGS)
  7267. AC_SUBST(LIBS_GSM)
  7268. AC_SUBST(LIBS_G729)
  7269. +AC_SUBST(LIBS_XMLRPC)
  7270. AC_OUTPUT
  7271. diff --git a/rtpp_command.c b/rtpp_command.c
  7272. index c5734ae..d6072de 100644
  7273. --- a/rtpp_command.c
  7274. +++ b/rtpp_command.c
  7275. @@ -69,6 +69,9 @@ struct proto_cap proto_caps[] = {
  7276. { "20081102", "Support for setting codecs in the update/lookup command" },
  7277. { "20081224", "Support for session timeout notifications" },
  7278. { "20090810", "Support for automatic bridging" },
  7279. +#ifdef ENABLE_XMLRPC
  7280. + { "20100819", "Support for timeout notifications using XML-RPC towards Kamailio/sip-router.org" },
  7281. +#endif
  7282. { NULL, NULL }
  7283. };
  7284. @@ -269,6 +272,7 @@ handle_command(struct cfg *cf, int controlfd, double dtime)
  7285. char *socket_name_u, *notify_tag;
  7286. struct sockaddr *local_addr;
  7287. char c;
  7288. + struct rtpp_timeout_handler * my_timeout_h;
  7289. requested_nsamples = -1;
  7290. ia[0] = ia[1] = NULL;
  7291. @@ -468,7 +472,7 @@ handle_command(struct cfg *cf, int controlfd, double dtime)
  7292. }
  7293. call_id = argv[1];
  7294. if (op == UPDATE || op == LOOKUP || op == PLAY) {
  7295. - max_argc = (op == UPDATE ? 8 : 6);
  7296. + max_argc = (op == PLAY ? 6 : 8);
  7297. if (argc < 5 || argc > max_argc) {
  7298. rtpp_log_write(RTPP_LOG_ERR, cf->stable.glog, "command syntax error");
  7299. reply_error(&cf->stable, controlfd, &raddr, rlen, cookie, 4);
  7300. @@ -478,7 +482,7 @@ handle_command(struct cfg *cf, int controlfd, double dtime)
  7301. to_tag = argv[5];
  7302. if (op == PLAY && argv[0][1] != '\0')
  7303. playcount = atoi(argv[0] + 1);
  7304. - if (op == UPDATE && argc > 6) {
  7305. + if (op != PLAY && argc > 6) {
  7306. socket_name_u = argv[6];
  7307. if (strncmp("unix:", socket_name_u, 5) == 0)
  7308. socket_name_u += 5;
  7309. @@ -965,25 +969,39 @@ handle_command(struct cfg *cf, int controlfd, double dtime)
  7310. }
  7311. pthread_mutex_lock(&cf->glock);
  7312. - if (op == UPDATE) {
  7313. - if (cf->timeout_handler->socket_name == NULL && socket_name_u != NULL)
  7314. - rtpp_log_write(RTPP_LOG_ERR, spa->log, "must permit notification socket with -n");
  7315. +
  7316. + if ((op == UPDATE) || (op == LOOKUP)){
  7317. if (spa->timeout_data.notify_tag != NULL) {
  7318. free(spa->timeout_data.notify_tag);
  7319. spa->timeout_data.notify_tag = NULL;
  7320. }
  7321. - if (cf->timeout_handler->socket_name != NULL && socket_name_u != NULL) {
  7322. - if (strcmp(cf->timeout_handler->socket_name, socket_name_u) != 0) {
  7323. - rtpp_log_write(RTPP_LOG_ERR, spa->log, "invalid socket name %s", socket_name_u);
  7324. - socket_name_u = NULL;
  7325. - } else {
  7326. + spa->timeout_data.handler = NULL;
  7327. + if (socket_name_u != NULL) {
  7328. + if (cf->timeout_handler != NULL && cf->timeout_handler->socket_name != NULL
  7329. + && strlen(cf->timeout_handler->socket_name) == strlen(socket_name_u)
  7330. + && strcmp(cf->timeout_handler->socket_name, socket_name_u) != 0) {
  7331. rtpp_log_write(RTPP_LOG_INFO, spa->log, "setting timeout handler");
  7332. spa->timeout_data.handler = cf->timeout_handler;
  7333. spa->timeout_data.notify_tag = strdup(notify_tag);
  7334. + } else {
  7335. + rtpp_log_write(RTPP_LOG_INFO, spa->log, "setting custom timeout handler (%s)", socket_name_u);
  7336. + my_timeout_h = malloc(sizeof(struct rtpp_timeout_handler));
  7337. + if (my_timeout_h == NULL) {
  7338. + rtpp_log_write(RTPP_LOG_ERR, spa->log, "Unable to allocate memory");
  7339. + } else {
  7340. + memset(my_timeout_h, 0, sizeof(struct rtpp_timeout_handler));
  7341. + my_timeout_h->socket_name = (char *)malloc(strlen(socket_name_u) + 1);
  7342. + if(my_timeout_h->socket_name != NULL) {
  7343. + strcpy(my_timeout_h->socket_name, socket_name_u);
  7344. + spa->timeout_data.handler = my_timeout_h;
  7345. + if (notify_tag != NULL) spa->timeout_data.notify_tag = strdup(notify_tag);
  7346. + else spa->timeout_data.notify_tag = NULL;
  7347. + } else {
  7348. + rtpp_log_write(RTPP_LOG_ERR, spa->log, "Unable to allocate memory");
  7349. + free(my_timeout_h);
  7350. + }
  7351. + }
  7352. }
  7353. - } else if (socket_name_u == NULL && spa->timeout_data.handler != NULL) {
  7354. - spa->timeout_data.handler = NULL;
  7355. - rtpp_log_write(RTPP_LOG_INFO, spa->log, "disabling timeout handler");
  7356. }
  7357. }
  7358. diff --git a/rtpp_notify.c b/rtpp_notify.c
  7359. index e92c9ec..35982bf 100644
  7360. --- a/rtpp_notify.c
  7361. +++ b/rtpp_notify.c
  7362. @@ -42,10 +42,23 @@
  7363. #include "rtpp_session.h"
  7364. #include "rtpp_util.h"
  7365. +#ifdef ENABLE_XMLRPC
  7366. +#include <xmlrpc.h>
  7367. +#include <xmlrpc_client.h>
  7368. +#define XMLRPC_CLIENT_NAME "XML-RPC RTPProxy Client"
  7369. +#define XMLRPC_CLIENT_VERSION "0.2"
  7370. +#endif
  7371. +
  7372. struct rtpp_notify_wi
  7373. {
  7374. char *notify_buf;
  7375. int len;
  7376. +#ifdef ENABLE_XMLRPC
  7377. + char *call_id;
  7378. + int call_id_len;
  7379. + char *param;
  7380. + int param_len;
  7381. +#endif
  7382. struct rtpp_timeout_handler *th;
  7383. rtpp_log_t glog;
  7384. struct rtpp_notify_wi *next;
  7385. @@ -289,6 +302,51 @@ rtpp_notify_schedule(struct cfg *cf, struct rtpp_session *sp)
  7386. len = snprintf(wi->notify_buf, len, "%s\n",
  7387. sp->timeout_data.notify_tag);
  7388. }
  7389. +#ifdef ENABLE_XMLRPC
  7390. + if (strncmp("xmlrpc:", wi->th->socket_name, 7) == 0) {
  7391. + // Copy the Socket-Name
  7392. + len = strlen(wi->th->socket_name)+1;
  7393. + if (wi->param == NULL) {
  7394. + wi->param = malloc(len);
  7395. + if (wi->param == NULL) {
  7396. + rtpp_notify_queue_return_free_item(wi);
  7397. + return -1;
  7398. + }
  7399. + } else {
  7400. + notify_buf = realloc(wi->param, len);
  7401. + if (notify_buf == NULL) {
  7402. + rtpp_notify_queue_return_free_item(wi);
  7403. + return -1;
  7404. + }
  7405. + wi->param = notify_buf;
  7406. + }
  7407. + memset(wi->param, '\0', len);
  7408. + len = snprintf(wi->param, len, "%s",
  7409. + wi->th->socket_name);
  7410. + wi->param_len = len;
  7411. +
  7412. + // Copy the Call-ID:
  7413. + len = strlen(sp->call_id)+1;
  7414. + if (wi->call_id == NULL) {
  7415. + wi->call_id = malloc(len);
  7416. + if (wi->call_id == NULL) {
  7417. + rtpp_notify_queue_return_free_item(wi);
  7418. + return -1;
  7419. + }
  7420. + } else {
  7421. + notify_buf = realloc(wi->call_id, len);
  7422. + if (notify_buf == NULL) {
  7423. + rtpp_notify_queue_return_free_item(wi);
  7424. + return -1;
  7425. + }
  7426. + wi->call_id = notify_buf;
  7427. + }
  7428. + memset(wi->call_id, '\0', len);
  7429. + len = snprintf(wi->call_id, len, "%s",
  7430. + sp->call_id);
  7431. + wi->call_id_len = len;
  7432. + }
  7433. +#endif
  7434. wi->glog = cf->stable.glog;
  7435. @@ -345,25 +403,59 @@ reconnect_timeout_handler(rtpp_log_t log, struct rtpp_timeout_handler *th)
  7436. }
  7437. }
  7438. +#ifdef ENABLE_XMLRPC
  7439. +static int
  7440. +do_xmlrpc_timeout_notification(rtpp_log_t log, struct rtpp_notify_wi *wi) {
  7441. + xmlrpc_env env;
  7442. + xmlrpc_value *result;
  7443. +
  7444. + /* Start up our XML-RPC client library. */
  7445. + xmlrpc_client_init(XMLRPC_CLIENT_NO_FLAGS, XMLRPC_CLIENT_NAME, XMLRPC_CLIENT_VERSION);
  7446. + xmlrpc_env_init(&env);
  7447. +
  7448. + /* Get the dialog-Info: */
  7449. + result = xmlrpc_client_call(&env, wi->param+7,
  7450. + "dlg_terminate_dlg", "(s)",
  7451. + wi->call_id);
  7452. + if (env.fault_occurred) {
  7453. + rtpp_log_write(RTPP_LOG_ERR, wi->glog, "XML-RPC Fault: %s (%d)\n", env.fault_string, env.fault_code);
  7454. + return -1;
  7455. + }
  7456. +
  7457. + /* Dispose of our result value. */
  7458. + xmlrpc_DECREF(result);
  7459. +
  7460. + /* Shutdown our XML-RPC client library. */
  7461. + xmlrpc_env_clean(&env);
  7462. + xmlrpc_client_cleanup();
  7463. +
  7464. + return 0;
  7465. +}
  7466. +#endif
  7467. +
  7468. static void
  7469. do_timeout_notification(struct rtpp_notify_wi *wi, int retries)
  7470. {
  7471. int result;
  7472. - if (wi->th->connected == 0) {
  7473. - reconnect_timeout_handler(wi->glog, wi->th);
  7474. -
  7475. - /* If connect fails, no notification will be sent */
  7476. - if (wi->th->connected == 0) {
  7477. - rtpp_log_write(RTPP_LOG_ERR, wi->glog, "unable to send timeout notification");
  7478. - return;
  7479. - }
  7480. + if (strncmp("xmlrpc:", wi->th->socket_name, 7) == 0) {
  7481. + result = do_xmlrpc_timeout_notification(wi->glog, wi);
  7482. + } else {
  7483. + if (wi->th->connected == 0) {
  7484. + reconnect_timeout_handler(wi->glog, wi->th);
  7485. +
  7486. + /* If connect fails, no notification will be sent */
  7487. + if (wi->th->connected == 0) {
  7488. + rtpp_log_write(RTPP_LOG_ERR, wi->glog, "unable to send timeout notification");
  7489. + return;
  7490. + }
  7491. + }
  7492. +
  7493. + do {
  7494. + result = send(wi->th->fd, wi->notify_buf, wi->len - 1, 0);
  7495. + } while (result == -1 && errno == EINTR);
  7496. }
  7497. - do {
  7498. - result = send(wi->th->fd, wi->notify_buf, wi->len - 1, 0);
  7499. - } while (result == -1 && errno == EINTR);
  7500. -
  7501. if (result < 0) {
  7502. wi->th->connected = 0;
  7503. rtpp_log_ewrite(RTPP_LOG_ERR, wi->glog, "failed to send timeout notification");
  7504. diff --git a/rtpp_session.c b/rtpp_session.c
  7505. index 03e3d8a..44a34fa 100644
  7506. --- a/rtpp_session.c
  7507. +++ b/rtpp_session.c
  7508. @@ -41,6 +41,7 @@
  7509. #include "rtpp_record.h"
  7510. #include "rtpp_session.h"
  7511. #include "rtpp_util.h"
  7512. +#include "rtpp_notify.h"
  7513. void
  7514. init_hash_table(struct cfg_stable *cf)
  7515. @@ -207,6 +208,13 @@ remove_session(struct cfg *cf, struct rtpp_session *sp)
  7516. }
  7517. if (sp->timeout_data.notify_tag != NULL)
  7518. free(sp->timeout_data.notify_tag);
  7519. +#ifdef ENABLE_XMLRPC
  7520. + // In case we use a custom timeout handler, we have to free it.
  7521. + if (sp->timeout_data.handler && (sp->timeout_data.handler != &cf->timeout_handler)) {
  7522. + free(sp->timeout_data.handler->socket_name);
  7523. + free(sp->timeout_data.handler);
  7524. + }
  7525. +#endif
  7526. hash_table_remove(cf, sp);
  7527. if (sp->call_id != NULL)
  7528. free(sp->call_id);