configure 844 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266
  1. #! /bin/sh
  2. # From configure.ac Revision: 421228 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69 for asterisk trunk.
  5. #
  6. # Report bugs to <https://issues.asterisk.org>.
  7. #
  8. #
  9. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. #
  15. # "Asterisk"
  16. ## -------------------- ##
  17. ## M4sh Initialization. ##
  18. ## -------------------- ##
  19. # Be more Bourne compatible
  20. DUALCASE=1; export DUALCASE # for MKS sh
  21. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='print -r --'
  48. as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in #(
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73. # The user is always right.
  74. if test "${PATH_SEPARATOR+set}" != set; then
  75. PATH_SEPARATOR=:
  76. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  77. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  78. PATH_SEPARATOR=';'
  79. }
  80. fi
  81. # IFS
  82. # We need space, tab and new line, in precisely that order. Quoting is
  83. # there to prevent editors from complaining about space-tab.
  84. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  85. # splitting by setting IFS to empty value.)
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. as_myself=
  89. case $0 in #((
  90. *[\\/]* ) as_myself=$0 ;;
  91. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  92. for as_dir in $PATH
  93. do
  94. IFS=$as_save_IFS
  95. test -z "$as_dir" && as_dir=.
  96. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  97. done
  98. IFS=$as_save_IFS
  99. ;;
  100. esac
  101. # We did not find ourselves, most probably we were run as `sh COMMAND'
  102. # in which case we are not to be found in the path.
  103. if test "x$as_myself" = x; then
  104. as_myself=$0
  105. fi
  106. if test ! -f "$as_myself"; then
  107. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  108. exit 1
  109. fi
  110. # Unset variables that we do not need and which cause bugs (e.g. in
  111. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  112. # suppresses any "Segmentation fault" message there. '((' could
  113. # trigger a bug in pdksh 5.2.14.
  114. for as_var in BASH_ENV ENV MAIL MAILPATH
  115. do eval test x\${$as_var+set} = xset \
  116. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  117. done
  118. PS1='$ '
  119. PS2='> '
  120. PS4='+ '
  121. # NLS nuisances.
  122. LC_ALL=C
  123. export LC_ALL
  124. LANGUAGE=C
  125. export LANGUAGE
  126. # CDPATH.
  127. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  128. # Use a proper internal environment variable to ensure we don't fall
  129. # into an infinite loop, continuously re-executing ourselves.
  130. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  131. _as_can_reexec=no; export _as_can_reexec;
  132. # We cannot yet assume a decent shell, so we have to provide a
  133. # neutralization value for shells without unset; and this also
  134. # works around shells that cannot unset nonexistent variables.
  135. # Preserve -v and -x to the replacement shell.
  136. BASH_ENV=/dev/null
  137. ENV=/dev/null
  138. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  139. case $- in # ((((
  140. *v*x* | *x*v* ) as_opts=-vx ;;
  141. *v* ) as_opts=-v ;;
  142. *x* ) as_opts=-x ;;
  143. * ) as_opts= ;;
  144. esac
  145. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  146. # Admittedly, this is quite paranoid, since all the known shells bail
  147. # out after a failed `exec'.
  148. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  149. as_fn_exit 255
  150. fi
  151. # We don't want this to propagate to other subprocesses.
  152. { _as_can_reexec=; unset _as_can_reexec;}
  153. if test "x$CONFIG_SHELL" = x; then
  154. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  155. emulate sh
  156. NULLCMD=:
  157. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  158. # is contrary to our usage. Disable this feature.
  159. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  160. setopt NO_GLOB_SUBST
  161. else
  162. case \`(set -o) 2>/dev/null\` in #(
  163. *posix*) :
  164. set -o posix ;; #(
  165. *) :
  166. ;;
  167. esac
  168. fi
  169. "
  170. as_required="as_fn_return () { (exit \$1); }
  171. as_fn_success () { as_fn_return 0; }
  172. as_fn_failure () { as_fn_return 1; }
  173. as_fn_ret_success () { return 0; }
  174. as_fn_ret_failure () { return 1; }
  175. exitcode=0
  176. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  177. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  178. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  179. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  180. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  181. else
  182. exitcode=1; echo positional parameters were not saved.
  183. fi
  184. test x\$exitcode = x0 || exit 1
  185. test -x / || exit 1"
  186. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  187. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  188. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  189. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  190. test \$(( 1 + 1 )) = 2 || exit 1"
  191. if (eval "$as_required") 2>/dev/null; then :
  192. as_have_required=yes
  193. else
  194. as_have_required=no
  195. fi
  196. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  197. else
  198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  199. as_found=false
  200. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  201. do
  202. IFS=$as_save_IFS
  203. test -z "$as_dir" && as_dir=.
  204. as_found=:
  205. case $as_dir in #(
  206. /*)
  207. for as_base in sh bash ksh sh5; do
  208. # Try only shells that exist, to save several forks.
  209. as_shell=$as_dir/$as_base
  210. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  211. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. CONFIG_SHELL=$as_shell as_have_required=yes
  213. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. break 2
  215. fi
  216. fi
  217. done;;
  218. esac
  219. as_found=false
  220. done
  221. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  222. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  223. CONFIG_SHELL=$SHELL as_have_required=yes
  224. fi; }
  225. IFS=$as_save_IFS
  226. if test "x$CONFIG_SHELL" != x; then :
  227. export CONFIG_SHELL
  228. # We cannot yet assume a decent shell, so we have to provide a
  229. # neutralization value for shells without unset; and this also
  230. # works around shells that cannot unset nonexistent variables.
  231. # Preserve -v and -x to the replacement shell.
  232. BASH_ENV=/dev/null
  233. ENV=/dev/null
  234. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. case $- in # ((((
  236. *v*x* | *x*v* ) as_opts=-vx ;;
  237. *v* ) as_opts=-v ;;
  238. *x* ) as_opts=-x ;;
  239. * ) as_opts= ;;
  240. esac
  241. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  242. # Admittedly, this is quite paranoid, since all the known shells bail
  243. # out after a failed `exec'.
  244. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  245. exit 255
  246. fi
  247. if test x$as_have_required = xno; then :
  248. $as_echo "$0: This script requires a shell more modern than all"
  249. $as_echo "$0: the shells that I found on your system."
  250. if test x${ZSH_VERSION+set} = xset ; then
  251. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  252. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  253. else
  254. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  255. $0: https://issues.asterisk.org about your system,
  256. $0: including any error possibly output before this
  257. $0: message. Then install a modern shell, or manually run
  258. $0: the script under such a shell if you do have one."
  259. fi
  260. exit 1
  261. fi
  262. fi
  263. fi
  264. SHELL=${CONFIG_SHELL-/bin/sh}
  265. export SHELL
  266. # Unset more variables known to interfere with behavior of common tools.
  267. CLICOLOR_FORCE= GREP_OPTIONS=
  268. unset CLICOLOR_FORCE GREP_OPTIONS
  269. ## --------------------- ##
  270. ## M4sh Shell Functions. ##
  271. ## --------------------- ##
  272. # as_fn_unset VAR
  273. # ---------------
  274. # Portably unset VAR.
  275. as_fn_unset ()
  276. {
  277. { eval $1=; unset $1;}
  278. }
  279. as_unset=as_fn_unset
  280. # as_fn_set_status STATUS
  281. # -----------------------
  282. # Set $? to STATUS, without forking.
  283. as_fn_set_status ()
  284. {
  285. return $1
  286. } # as_fn_set_status
  287. # as_fn_exit STATUS
  288. # -----------------
  289. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  290. as_fn_exit ()
  291. {
  292. set +e
  293. as_fn_set_status $1
  294. exit $1
  295. } # as_fn_exit
  296. # as_fn_mkdir_p
  297. # -------------
  298. # Create "$as_dir" as a directory, including parents if necessary.
  299. as_fn_mkdir_p ()
  300. {
  301. case $as_dir in #(
  302. -*) as_dir=./$as_dir;;
  303. esac
  304. test -d "$as_dir" || eval $as_mkdir_p || {
  305. as_dirs=
  306. while :; do
  307. case $as_dir in #(
  308. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  309. *) as_qdir=$as_dir;;
  310. esac
  311. as_dirs="'$as_qdir' $as_dirs"
  312. as_dir=`$as_dirname -- "$as_dir" ||
  313. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  314. X"$as_dir" : 'X\(//\)[^/]' \| \
  315. X"$as_dir" : 'X\(//\)$' \| \
  316. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  317. $as_echo X"$as_dir" |
  318. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  319. s//\1/
  320. q
  321. }
  322. /^X\(\/\/\)[^/].*/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)$/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\).*/{
  331. s//\1/
  332. q
  333. }
  334. s/.*/./; q'`
  335. test -d "$as_dir" && break
  336. done
  337. test -z "$as_dirs" || eval "mkdir $as_dirs"
  338. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  339. } # as_fn_mkdir_p
  340. # as_fn_executable_p FILE
  341. # -----------------------
  342. # Test if FILE is an executable regular file.
  343. as_fn_executable_p ()
  344. {
  345. test -f "$1" && test -x "$1"
  346. } # as_fn_executable_p
  347. # as_fn_append VAR VALUE
  348. # ----------------------
  349. # Append the text in VALUE to the end of the definition contained in VAR. Take
  350. # advantage of any shell optimizations that allow amortized linear growth over
  351. # repeated appends, instead of the typical quadratic growth present in naive
  352. # implementations.
  353. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  354. eval 'as_fn_append ()
  355. {
  356. eval $1+=\$2
  357. }'
  358. else
  359. as_fn_append ()
  360. {
  361. eval $1=\$$1\$2
  362. }
  363. fi # as_fn_append
  364. # as_fn_arith ARG...
  365. # ------------------
  366. # Perform arithmetic evaluation on the ARGs, and store the result in the
  367. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  368. # must be portable across $(()) and expr.
  369. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  370. eval 'as_fn_arith ()
  371. {
  372. as_val=$(( $* ))
  373. }'
  374. else
  375. as_fn_arith ()
  376. {
  377. as_val=`expr "$@" || test $? -eq 1`
  378. }
  379. fi # as_fn_arith
  380. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  381. # ----------------------------------------
  382. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  383. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  384. # script with STATUS, using 1 if that was 0.
  385. as_fn_error ()
  386. {
  387. as_status=$1; test $as_status -eq 0 && as_status=1
  388. if test "$4"; then
  389. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  390. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  391. fi
  392. $as_echo "$as_me: error: $2" >&2
  393. as_fn_exit $as_status
  394. } # as_fn_error
  395. if expr a : '\(a\)' >/dev/null 2>&1 &&
  396. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  397. as_expr=expr
  398. else
  399. as_expr=false
  400. fi
  401. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  402. as_basename=basename
  403. else
  404. as_basename=false
  405. fi
  406. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  407. as_dirname=dirname
  408. else
  409. as_dirname=false
  410. fi
  411. as_me=`$as_basename -- "$0" ||
  412. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  413. X"$0" : 'X\(//\)$' \| \
  414. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  415. $as_echo X/"$0" |
  416. sed '/^.*\/\([^/][^/]*\)\/*$/{
  417. s//\1/
  418. q
  419. }
  420. /^X\/\(\/\/\)$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\).*/{
  425. s//\1/
  426. q
  427. }
  428. s/.*/./; q'`
  429. # Avoid depending upon Character Ranges.
  430. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  431. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  432. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  433. as_cr_digits='0123456789'
  434. as_cr_alnum=$as_cr_Letters$as_cr_digits
  435. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  436. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  437. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  438. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  439. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  440. sed -n '
  441. p
  442. /[$]LINENO/=
  443. ' <$as_myself |
  444. sed '
  445. s/[$]LINENO.*/&-/
  446. t lineno
  447. b
  448. :lineno
  449. N
  450. :loop
  451. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  452. t loop
  453. s/-\n.*//
  454. ' >$as_me.lineno &&
  455. chmod +x "$as_me.lineno" ||
  456. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  457. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  458. # already done that, so ensure we don't try to do so again and fall
  459. # in an infinite loop. This has already happened in practice.
  460. _as_can_reexec=no; export _as_can_reexec
  461. # Don't try to exec as it changes $[0], causing all sort of problems
  462. # (the dirname of $[0] is not the place where we might find the
  463. # original and so on. Autoconf is especially sensitive to this).
  464. . "./$as_me.lineno"
  465. # Exit status is that of the last command.
  466. exit
  467. }
  468. ECHO_C= ECHO_N= ECHO_T=
  469. case `echo -n x` in #(((((
  470. -n*)
  471. case `echo 'xy\c'` in
  472. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  473. xy) ECHO_C='\c';;
  474. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  475. ECHO_T=' ';;
  476. esac;;
  477. *)
  478. ECHO_N='-n';;
  479. esac
  480. rm -f conf$$ conf$$.exe conf$$.file
  481. if test -d conf$$.dir; then
  482. rm -f conf$$.dir/conf$$.file
  483. else
  484. rm -f conf$$.dir
  485. mkdir conf$$.dir 2>/dev/null
  486. fi
  487. if (echo >conf$$.file) 2>/dev/null; then
  488. if ln -s conf$$.file conf$$ 2>/dev/null; then
  489. as_ln_s='ln -s'
  490. # ... but there are two gotchas:
  491. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  492. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  493. # In both cases, we have to default to `cp -pR'.
  494. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  495. as_ln_s='cp -pR'
  496. elif ln conf$$.file conf$$ 2>/dev/null; then
  497. as_ln_s=ln
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. else
  502. as_ln_s='cp -pR'
  503. fi
  504. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  505. rmdir conf$$.dir 2>/dev/null
  506. if mkdir -p . 2>/dev/null; then
  507. as_mkdir_p='mkdir -p "$as_dir"'
  508. else
  509. test -d ./-p && rmdir ./-p
  510. as_mkdir_p=false
  511. fi
  512. as_test_x='test -x'
  513. as_executable_p=as_fn_executable_p
  514. # Sed expression to map a string onto a valid CPP name.
  515. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  516. # Sed expression to map a string onto a valid variable name.
  517. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  518. test -n "$DJDIR" || exec 7<&0 </dev/null
  519. exec 6>&1
  520. # Name of the host.
  521. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  522. # so uname gets run too.
  523. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  524. #
  525. # Initializations.
  526. #
  527. ac_default_prefix=/usr/local
  528. ac_clean_files=
  529. ac_config_libobj_dir=.
  530. LIBOBJS=
  531. cross_compiling=no
  532. subdirs=
  533. MFLAGS=
  534. MAKEFLAGS=
  535. # Identity of this package.
  536. PACKAGE_NAME='asterisk'
  537. PACKAGE_TARNAME='asterisk'
  538. PACKAGE_VERSION='trunk'
  539. PACKAGE_STRING='asterisk trunk'
  540. PACKAGE_BUGREPORT='https://issues.asterisk.org'
  541. PACKAGE_URL=''
  542. ac_unique_file="main/asterisk.c"
  543. # Factoring default headers for most tests.
  544. ac_includes_default="\
  545. #include <stdio.h>
  546. #ifdef HAVE_SYS_TYPES_H
  547. # include <sys/types.h>
  548. #endif
  549. #ifdef HAVE_SYS_STAT_H
  550. # include <sys/stat.h>
  551. #endif
  552. #ifdef STDC_HEADERS
  553. # include <stdlib.h>
  554. # include <stddef.h>
  555. #else
  556. # ifdef HAVE_STDLIB_H
  557. # include <stdlib.h>
  558. # endif
  559. #endif
  560. #ifdef HAVE_STRING_H
  561. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  562. # include <memory.h>
  563. # endif
  564. # include <string.h>
  565. #endif
  566. #ifdef HAVE_STRINGS_H
  567. # include <strings.h>
  568. #endif
  569. #ifdef HAVE_INTTYPES_H
  570. # include <inttypes.h>
  571. #endif
  572. #ifdef HAVE_STDINT_H
  573. # include <stdint.h>
  574. #endif
  575. #ifdef HAVE_UNISTD_H
  576. # include <unistd.h>
  577. #endif"
  578. ac_header_list=
  579. ac_subst_vars='LTLIBOBJS
  580. PBX_SYSLOG
  581. PBX_SYSLOG_FACILITY_LOG_UUCP
  582. PBX_SYSLOG_FACILITY_LOG_SYSLOG
  583. PBX_SYSLOG_FACILITY_LOG_NEWS
  584. PBX_SYSLOG_FACILITY_LOG_MAIL
  585. PBX_SYSLOG_FACILITY_LOG_LPR
  586. PBX_SYSLOG_FACILITY_LOG_KERN
  587. PBX_SYSLOG_FACILITY_LOG_FTP
  588. PBX_SYSLOG_FACILITY_LOG_DAEMON
  589. PBX_SYSLOG_FACILITY_LOG_CRON
  590. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
  591. PBX_SYSLOG_FACILITY_LOG_AUTH
  592. PBX_GENERIC_ODBC
  593. GENERIC_ODBC_INCLUDE
  594. GENERIC_ODBC_LIB
  595. GTK2_LIBS
  596. GTK2_CFLAGS
  597. PBX_LAUNCHD
  598. CONFIG_SDL
  599. PBX_SO_NOSIGPIPE
  600. PBX_MSG_NOSIGNAL
  601. PBX_IXJUSER
  602. PBX_H323
  603. GMIME_LIBS
  604. GMIME_CFLAGS
  605. OPENH323_BUILD
  606. OPENH323_SUFFIX
  607. OPENH323_LIBDIR
  608. OPENH323_INCDIR
  609. OPENH323DIR
  610. PWLIB_PLATFORM
  611. PWLIB_LIBDIR
  612. PWLIB_INCDIR
  613. PWLIBDIR
  614. PTLIB_CONFIG
  615. PG_CONFIG
  616. CONFIG_NETSNMP
  617. CONFIG_NEON29
  618. CONFIG_NEON
  619. CONFIG_MYSQLCLIENT
  620. PBX_MISDN_FAC_ERROR
  621. PBX_MISDN_FAC_RESULT
  622. LIBEDIT_LIBS
  623. LIBEDIT_CFLAGS
  624. LIBEDIT_INTERNAL
  625. ILBC_LIBS
  626. ILBC_CFLAGS
  627. ILBC_INTERNAL
  628. GSM_INTERNAL
  629. PBX_DAHDI_HALF_FULL
  630. PKG_CONFIG_LIBDIR
  631. PKG_CONFIG_PATH
  632. PKG_CONFIG
  633. PBX_DLADDR
  634. PBX_IP_MTU_DISCOVER
  635. PBX_GLOB_BRACE
  636. PBX_GLOB_NOMAGIC
  637. AST_RPATH
  638. AST_NESTED_FUNCTIONS
  639. AST_NATIVE_ARCH
  640. AST_SHADOW_WARNINGS
  641. AST_NO_STRICT_OVERFLOW
  642. AST_FORTIFY_SOURCE
  643. AST_TRAMPOLINES
  644. AST_DECLARATION_AFTER_STATEMENT
  645. GC_LDFLAGS
  646. GC_CFLAGS
  647. PBX_WEAKREF
  648. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
  649. PBX_PTHREAD_RWLOCK_INITIALIZER
  650. AST_ASTERISKSSL
  651. HAS_POLL
  652. PBX_DYNAMIC_LIST
  653. POW_LIB
  654. PBX_WORKING_FORK
  655. LIBOBJS
  656. CONFIG_LIBXML2
  657. EDITLINE_LIB
  658. ALLOCA
  659. PBX_ZLIB
  660. ZLIB_DIR
  661. ZLIB_INCLUDE
  662. ZLIB_LIB
  663. PBX_X11
  664. X11_DIR
  665. X11_INCLUDE
  666. X11_LIB
  667. PBX_VPB
  668. VPB_DIR
  669. VPB_INCLUDE
  670. VPB_LIB
  671. PBX_VORBIS
  672. VORBIS_DIR
  673. VORBIS_INCLUDE
  674. VORBIS_LIB
  675. PBX_UUID
  676. UUID_DIR
  677. UUID_INCLUDE
  678. UUID_LIB
  679. PBX_UNIXODBC
  680. UNIXODBC_DIR
  681. UNIXODBC_INCLUDE
  682. UNIXODBC_LIB
  683. PBX_TONEZONE
  684. TONEZONE_DIR
  685. TONEZONE_INCLUDE
  686. TONEZONE_LIB
  687. PBX_TINFO
  688. TINFO_DIR
  689. TINFO_INCLUDE
  690. TINFO_LIB
  691. PBX_TIMERFD
  692. TIMERFD_DIR
  693. TIMERFD_INCLUDE
  694. TIMERFD_LIB
  695. PBX_TERMCAP
  696. TERMCAP_DIR
  697. TERMCAP_INCLUDE
  698. TERMCAP_LIB
  699. PBX_FREETDS
  700. FREETDS_DIR
  701. FREETDS_INCLUDE
  702. FREETDS_LIB
  703. PBX_SUPPSERV
  704. SUPPSERV_DIR
  705. SUPPSERV_INCLUDE
  706. SUPPSERV_LIB
  707. PBX_OPENSSL
  708. OPENSSL_DIR
  709. OPENSSL_INCLUDE
  710. OPENSSL_LIB
  711. PBX_SRTP_SHUTDOWN
  712. SRTP_SHUTDOWN_DIR
  713. SRTP_SHUTDOWN_INCLUDE
  714. SRTP_SHUTDOWN_LIB
  715. PBX_SRTP
  716. SRTP_DIR
  717. SRTP_INCLUDE
  718. SRTP_LIB
  719. PBX_SQLITE3
  720. SQLITE3_DIR
  721. SQLITE3_INCLUDE
  722. SQLITE3_LIB
  723. PBX_SQLITE
  724. SQLITE_DIR
  725. SQLITE_INCLUDE
  726. SQLITE_LIB
  727. PBX_SPEEXDSP
  728. SPEEXDSP_DIR
  729. SPEEXDSP_INCLUDE
  730. SPEEXDSP_LIB
  731. PBX_SPEEX_PREPROCESS
  732. SPEEX_PREPROCESS_DIR
  733. SPEEX_PREPROCESS_INCLUDE
  734. SPEEX_PREPROCESS_LIB
  735. PBX_SPEEX
  736. SPEEX_DIR
  737. SPEEX_INCLUDE
  738. SPEEX_LIB
  739. PBX_SS7
  740. SS7_DIR
  741. SS7_INCLUDE
  742. SS7_LIB
  743. PBX_SPANDSP
  744. SPANDSP_DIR
  745. SPANDSP_INCLUDE
  746. SPANDSP_LIB
  747. SOUNDS_CACHE_DIR
  748. PBX_SDL_IMAGE
  749. SDL_IMAGE_DIR
  750. SDL_IMAGE_INCLUDE
  751. SDL_IMAGE_LIB
  752. PBX_SDL
  753. SDL_DIR
  754. SDL_INCLUDE
  755. SDL_LIB
  756. PBX_RESAMPLE
  757. RESAMPLE_DIR
  758. RESAMPLE_INCLUDE
  759. RESAMPLE_LIB
  760. PBX_RADIUS
  761. RADIUS_DIR
  762. RADIUS_INCLUDE
  763. RADIUS_LIB
  764. PBX_PWLIB
  765. PWLIB_DIR
  766. PWLIB_INCLUDE
  767. PWLIB_LIB
  768. PBX_PRI_REVERSE_CHARGE
  769. PRI_REVERSE_CHARGE_DIR
  770. PRI_REVERSE_CHARGE_INCLUDE
  771. PRI_REVERSE_CHARGE_LIB
  772. PBX_PRI_SERVICE_MESSAGES
  773. PRI_SERVICE_MESSAGES_DIR
  774. PRI_SERVICE_MESSAGES_INCLUDE
  775. PRI_SERVICE_MESSAGES_LIB
  776. PBX_PRI_PROG_W_CAUSE
  777. PRI_PROG_W_CAUSE_DIR
  778. PRI_PROG_W_CAUSE_INCLUDE
  779. PRI_PROG_W_CAUSE_LIB
  780. PBX_PRI_INBANDDISCONNECT
  781. PRI_INBANDDISCONNECT_DIR
  782. PRI_INBANDDISCONNECT_INCLUDE
  783. PRI_INBANDDISCONNECT_LIB
  784. PBX_PRI_SETUP_KEYPAD
  785. PRI_SETUP_KEYPAD_DIR
  786. PRI_SETUP_KEYPAD_INCLUDE
  787. PRI_SETUP_KEYPAD_LIB
  788. PBX_PRI_CALL_REROUTING
  789. PRI_CALL_REROUTING_DIR
  790. PRI_CALL_REROUTING_INCLUDE
  791. PRI_CALL_REROUTING_LIB
  792. PBX_PRI_CALL_HOLD
  793. PRI_CALL_HOLD_DIR
  794. PRI_CALL_HOLD_INCLUDE
  795. PRI_CALL_HOLD_LIB
  796. PBX_PRI_SUBADDR
  797. PRI_SUBADDR_DIR
  798. PRI_SUBADDR_INCLUDE
  799. PRI_SUBADDR_LIB
  800. PBX_PRI_HANGUP_FIX
  801. PRI_HANGUP_FIX_DIR
  802. PRI_HANGUP_FIX_INCLUDE
  803. PRI_HANGUP_FIX_LIB
  804. PBX_PRI_CCSS
  805. PRI_CCSS_DIR
  806. PRI_CCSS_INCLUDE
  807. PRI_CCSS_LIB
  808. PBX_PRI_TRANSFER
  809. PRI_TRANSFER_DIR
  810. PRI_TRANSFER_INCLUDE
  811. PRI_TRANSFER_LIB
  812. PBX_PRI_AOC_EVENTS
  813. PRI_AOC_EVENTS_DIR
  814. PRI_AOC_EVENTS_INCLUDE
  815. PRI_AOC_EVENTS_LIB
  816. PBX_PRI_CALL_WAITING
  817. PRI_CALL_WAITING_DIR
  818. PRI_CALL_WAITING_INCLUDE
  819. PRI_CALL_WAITING_LIB
  820. PBX_PRI_MCID
  821. PRI_MCID_DIR
  822. PRI_MCID_INCLUDE
  823. PRI_MCID_LIB
  824. PBX_PRI_MWI
  825. PRI_MWI_DIR
  826. PRI_MWI_INCLUDE
  827. PRI_MWI_LIB
  828. PBX_PRI_DISPLAY_TEXT
  829. PRI_DISPLAY_TEXT_DIR
  830. PRI_DISPLAY_TEXT_INCLUDE
  831. PRI_DISPLAY_TEXT_LIB
  832. PBX_PRI_MWI_V2
  833. PRI_MWI_V2_DIR
  834. PRI_MWI_V2_INCLUDE
  835. PRI_MWI_V2_LIB
  836. PBX_PRI_DATETIME_SEND
  837. PRI_DATETIME_SEND_DIR
  838. PRI_DATETIME_SEND_INCLUDE
  839. PRI_DATETIME_SEND_LIB
  840. PBX_PRI_L2_PERSISTENCE
  841. PRI_L2_PERSISTENCE_DIR
  842. PRI_L2_PERSISTENCE_INCLUDE
  843. PRI_L2_PERSISTENCE_LIB
  844. PBX_PRI_SETUP_ACK_INBAND
  845. PRI_SETUP_ACK_INBAND_DIR
  846. PRI_SETUP_ACK_INBAND_INCLUDE
  847. PRI_SETUP_ACK_INBAND_LIB
  848. PBX_PRI
  849. PRI_DIR
  850. PRI_INCLUDE
  851. PRI_LIB
  852. PBX_PORTAUDIO
  853. PORTAUDIO_DIR
  854. PORTAUDIO_INCLUDE
  855. PORTAUDIO_LIB
  856. PBX_POPT
  857. POPT_DIR
  858. POPT_INCLUDE
  859. POPT_LIB
  860. PBX_PGSQL
  861. PGSQL_DIR
  862. PGSQL_INCLUDE
  863. PGSQL_LIB
  864. PBX_OSS
  865. OSS_DIR
  866. OSS_INCLUDE
  867. OSS_LIB
  868. PBX_OSPTK
  869. OSPTK_DIR
  870. OSPTK_INCLUDE
  871. OSPTK_LIB
  872. PBX_OPENR2
  873. OPENR2_DIR
  874. OPENR2_INCLUDE
  875. OPENR2_LIB
  876. PBX_OGG
  877. OGG_DIR
  878. OGG_INCLUDE
  879. OGG_LIB
  880. PBX_NEWT
  881. NEWT_DIR
  882. NEWT_INCLUDE
  883. NEWT_LIB
  884. PBX_NETSNMP
  885. NETSNMP_DIR
  886. NETSNMP_INCLUDE
  887. NETSNMP_LIB
  888. PBX_NEON29
  889. NEON29_DIR
  890. NEON29_INCLUDE
  891. NEON29_LIB
  892. PBX_NEON
  893. NEON_DIR
  894. NEON_INCLUDE
  895. NEON_LIB
  896. PBX_NCURSES
  897. NCURSES_DIR
  898. NCURSES_INCLUDE
  899. NCURSES_LIB
  900. PBX_NBS
  901. NBS_DIR
  902. NBS_INCLUDE
  903. NBS_LIB
  904. PBX_MYSQLCLIENT
  905. MYSQLCLIENT_DIR
  906. MYSQLCLIENT_INCLUDE
  907. MYSQLCLIENT_LIB
  908. PBX_MISDN
  909. MISDN_DIR
  910. MISDN_INCLUDE
  911. MISDN_LIB
  912. PBX_LUA
  913. LUA_DIR
  914. LUA_INCLUDE
  915. LUA_LIB
  916. PBX_LTDL
  917. LTDL_DIR
  918. LTDL_INCLUDE
  919. LTDL_LIB
  920. PBX_LIBXML2
  921. LIBXML2_DIR
  922. LIBXML2_INCLUDE
  923. LIBXML2_LIB
  924. PBX_LIBEDIT
  925. LIBEDIT_DIR
  926. LIBEDIT_INCLUDE
  927. LIBEDIT_LIB
  928. CURL_LIB
  929. CURL_INCLUDE
  930. _libcurl_config
  931. PBX_CURL
  932. PBX_LDAP
  933. LDAP_DIR
  934. LDAP_INCLUDE
  935. LDAP_LIB
  936. PBX_KQUEUE
  937. KQUEUE_DIR
  938. KQUEUE_INCLUDE
  939. KQUEUE_LIB
  940. PBX_JACK
  941. JACK_DIR
  942. JACK_INCLUDE
  943. JACK_LIB
  944. PBX_ISDNNET
  945. ISDNNET_DIR
  946. ISDNNET_INCLUDE
  947. ISDNNET_LIB
  948. PBX_IODBC
  949. IODBC_DIR
  950. IODBC_INCLUDE
  951. IODBC_LIB
  952. PBX_INOTIFY
  953. INOTIFY_DIR
  954. INOTIFY_INCLUDE
  955. INOTIFY_LIB
  956. PBX_IMAP_TK
  957. IMAP_TK_DIR
  958. IMAP_TK_INCLUDE
  959. IMAP_TK_LIB
  960. PBX_IKSEMEL
  961. IKSEMEL_DIR
  962. IKSEMEL_INCLUDE
  963. IKSEMEL_LIB
  964. PBX_ICONV
  965. ICONV_DIR
  966. ICONV_INCLUDE
  967. ICONV_LIB
  968. PBX_ICAL
  969. ICAL_DIR
  970. ICAL_INCLUDE
  971. ICAL_LIB
  972. PBX_HOARD
  973. HOARD_DIR
  974. HOARD_INCLUDE
  975. HOARD_LIB
  976. PBX_OPENH323
  977. OPENH323_DIR
  978. OPENH323_INCLUDE
  979. OPENH323_LIB
  980. PBX_GMIME
  981. GMIME_DIR
  982. GMIME_INCLUDE
  983. GMIME_LIB
  984. PBX_GTK2
  985. GTK2_DIR
  986. GTK2_INCLUDE
  987. GTK2_LIB
  988. PBX_ILBC
  989. ILBC_DIR
  990. ILBC_INCLUDE
  991. ILBC_LIB
  992. PBX_GSM
  993. GSM_DIR
  994. GSM_INCLUDE
  995. GSM_LIB
  996. PBX_FFMPEG
  997. FFMPEG_DIR
  998. FFMPEG_INCLUDE
  999. FFMPEG_LIB
  1000. PBX_DAHDI
  1001. DAHDI_DIR
  1002. DAHDI_INCLUDE
  1003. DAHDI_LIB
  1004. PBX_OPENSSL_SRTP
  1005. OPENSSL_SRTP_DIR
  1006. OPENSSL_SRTP_INCLUDE
  1007. OPENSSL_SRTP_LIB
  1008. PBX_CRYPTO
  1009. CRYPTO_DIR
  1010. CRYPTO_INCLUDE
  1011. CRYPTO_LIB
  1012. PBX_CURSES
  1013. CURSES_DIR
  1014. CURSES_INCLUDE
  1015. CURSES_LIB
  1016. PBX_COROSYNC_CFG_STATE_TRACK
  1017. COROSYNC_CFG_STATE_TRACK_DIR
  1018. COROSYNC_CFG_STATE_TRACK_INCLUDE
  1019. COROSYNC_CFG_STATE_TRACK_LIB
  1020. PBX_COROSYNC
  1021. COROSYNC_DIR
  1022. COROSYNC_INCLUDE
  1023. COROSYNC_LIB
  1024. PBX_CAP
  1025. CAP_DIR
  1026. CAP_INCLUDE
  1027. CAP_LIB
  1028. PBX_BLUETOOTH
  1029. BLUETOOTH_DIR
  1030. BLUETOOTH_INCLUDE
  1031. BLUETOOTH_LIB
  1032. PBX_BKTR
  1033. BKTR_DIR
  1034. BKTR_INCLUDE
  1035. BKTR_LIB
  1036. PBX_BFD
  1037. BFD_DIR
  1038. BFD_INCLUDE
  1039. BFD_LIB
  1040. PBX_ALSA
  1041. ALSA_DIR
  1042. ALSA_INCLUDE
  1043. ALSA_LIB
  1044. AST_CODE_COVERAGE
  1045. AST_DEVMODE_STRICT
  1046. AST_DEVMODE
  1047. NOISY_BUILD
  1048. PTHREAD_CFLAGS
  1049. PTHREAD_LIBS
  1050. PTHREAD_CC
  1051. acx_pthread_config
  1052. MD5
  1053. SOXMIX
  1054. PBX_FLEX
  1055. PBX_BISON
  1056. OPENSSL
  1057. SHA1SUM
  1058. LDCONFIG
  1059. DOWNLOAD
  1060. FETCH
  1061. GIT
  1062. XMLSTARLET
  1063. XMLLINT
  1064. KPATHSEA
  1065. CATDVI
  1066. RUBBER
  1067. CURL
  1068. WGET
  1069. DOT
  1070. LN
  1071. DIRNAME
  1072. BASENAME
  1073. COMPRESS
  1074. FIND
  1075. PYTHON
  1076. FLEX
  1077. CMP
  1078. BISON
  1079. GNU_LD
  1080. ac_ct_AR
  1081. AR
  1082. ac_ct_STRIP
  1083. STRIP
  1084. GNU_MAKE
  1085. LN_S
  1086. INSTALL_DATA
  1087. INSTALL_SCRIPT
  1088. INSTALL_PROGRAM
  1089. AWK
  1090. SED
  1091. CXXCPP
  1092. ac_ct_CXX
  1093. CXXFLAGS
  1094. RANLIB
  1095. LD
  1096. CXX
  1097. PBX_OSREV
  1098. UNAME
  1099. PBX_WINARCH
  1100. OSARCH
  1101. HOST_OS
  1102. HOST_VENDOR
  1103. HOST_CPU
  1104. HOST_PLATFORM
  1105. BUILD_OS
  1106. BUILD_VENDOR
  1107. BUILD_CPU
  1108. BUILD_PLATFORM
  1109. astvarrundir
  1110. astlogdir
  1111. astspooldir
  1112. astkeydir
  1113. astdbdir
  1114. astdatadir
  1115. astvarlibdir
  1116. astmandir
  1117. astmoddir
  1118. astlibdir
  1119. astheaderdir
  1120. astetcdir
  1121. astsbindir
  1122. EGREP
  1123. GREP
  1124. CPP
  1125. OBJEXT
  1126. EXEEXT
  1127. ac_ct_CC
  1128. CPPFLAGS
  1129. LDFLAGS
  1130. CFLAGS
  1131. CC
  1132. CONFIG_LDFLAGS
  1133. CONFIG_CFLAGS
  1134. host_os
  1135. host_vendor
  1136. host_cpu
  1137. host
  1138. build_os
  1139. build_vendor
  1140. build_cpu
  1141. build
  1142. target_alias
  1143. host_alias
  1144. build_alias
  1145. LIBS
  1146. ECHO_T
  1147. ECHO_N
  1148. ECHO_C
  1149. DEFS
  1150. mandir
  1151. localedir
  1152. libdir
  1153. psdir
  1154. pdfdir
  1155. dvidir
  1156. htmldir
  1157. infodir
  1158. docdir
  1159. oldincludedir
  1160. includedir
  1161. localstatedir
  1162. sharedstatedir
  1163. sysconfdir
  1164. datadir
  1165. datarootdir
  1166. libexecdir
  1167. sbindir
  1168. bindir
  1169. program_transform_name
  1170. prefix
  1171. exec_prefix
  1172. PACKAGE_URL
  1173. PACKAGE_BUGREPORT
  1174. PACKAGE_STRING
  1175. PACKAGE_VERSION
  1176. PACKAGE_TARNAME
  1177. PACKAGE_NAME
  1178. PATH_SEPARATOR
  1179. SHELL'
  1180. ac_subst_files=''
  1181. ac_user_opts='
  1182. enable_option_checking
  1183. with_gnu_ld
  1184. enable_dev_mode
  1185. enable_coverage
  1186. with_asound
  1187. with_bfd
  1188. with_execinfo
  1189. with_bluetooth
  1190. with_cap
  1191. with_cpg
  1192. with_curses
  1193. with_crypto
  1194. with_dahdi
  1195. with_avcodec
  1196. with_gsm
  1197. with_ilbc
  1198. with_gtk2
  1199. with_gmime
  1200. with_h323
  1201. with_hoard
  1202. with_ical
  1203. with_iconv
  1204. with_iksemel
  1205. with_imap
  1206. with_inotify
  1207. with_iodbc
  1208. with_isdnnet
  1209. with_jack
  1210. with_kqueue
  1211. with_ldap
  1212. with_libcurl
  1213. with_libedit
  1214. with_libxml2
  1215. with_ltdl
  1216. with_lua
  1217. with_misdn
  1218. with_mysqlclient
  1219. with_nbs
  1220. with_ncurses
  1221. with_neon
  1222. with_neon29
  1223. with_netsnmp
  1224. with_newt
  1225. with_ogg
  1226. with_openr2
  1227. with_osptk
  1228. with_oss
  1229. with_postgres
  1230. with_popt
  1231. with_portaudio
  1232. with_pri
  1233. with_pwlib
  1234. with_radius
  1235. with_resample
  1236. with_sdl
  1237. with_SDL_image
  1238. with_sounds_cache
  1239. with_spandsp
  1240. with_ss7
  1241. with_speex
  1242. with_speexdsp
  1243. with_sqlite
  1244. with_sqlite3
  1245. with_srtp
  1246. with_ssl
  1247. with_suppserv
  1248. with_tds
  1249. with_termcap
  1250. with_timerfd
  1251. with_tinfo
  1252. with_tonezone
  1253. with_unixodbc
  1254. with_uuid
  1255. with_vorbis
  1256. with_vpb
  1257. with_x11
  1258. with_z
  1259. enable_xmldoc
  1260. enable_largefile
  1261. enable_internal_poll
  1262. enable_asteriskssl
  1263. enable_rpath
  1264. '
  1265. ac_precious_vars='build_alias
  1266. host_alias
  1267. target_alias
  1268. CC
  1269. CFLAGS
  1270. LDFLAGS
  1271. LIBS
  1272. CPPFLAGS
  1273. CPP
  1274. CXX
  1275. CXXFLAGS
  1276. CCC
  1277. CXXCPP
  1278. PKG_CONFIG
  1279. PKG_CONFIG_PATH
  1280. PKG_CONFIG_LIBDIR
  1281. ILBC_CFLAGS
  1282. ILBC_LIBS
  1283. LIBEDIT_CFLAGS
  1284. LIBEDIT_LIBS
  1285. GMIME_CFLAGS
  1286. GMIME_LIBS
  1287. GTK2_CFLAGS
  1288. GTK2_LIBS'
  1289. # Initialize some variables set by options.
  1290. ac_init_help=
  1291. ac_init_version=false
  1292. ac_unrecognized_opts=
  1293. ac_unrecognized_sep=
  1294. # The variables have the same names as the options, with
  1295. # dashes changed to underlines.
  1296. cache_file=/dev/null
  1297. exec_prefix=NONE
  1298. no_create=
  1299. no_recursion=
  1300. prefix=NONE
  1301. program_prefix=NONE
  1302. program_suffix=NONE
  1303. program_transform_name=s,x,x,
  1304. silent=
  1305. site=
  1306. srcdir=
  1307. verbose=
  1308. x_includes=NONE
  1309. x_libraries=NONE
  1310. # Installation directory options.
  1311. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1312. # and all the variables that are supposed to be based on exec_prefix
  1313. # by default will actually change.
  1314. # Use braces instead of parens because sh, perl, etc. also accept them.
  1315. # (The list follows the same order as the GNU Coding Standards.)
  1316. bindir='${exec_prefix}/bin'
  1317. sbindir='${exec_prefix}/sbin'
  1318. libexecdir='${exec_prefix}/libexec'
  1319. datarootdir='${prefix}/share'
  1320. datadir='${datarootdir}'
  1321. sysconfdir='${prefix}/etc'
  1322. sharedstatedir='${prefix}/com'
  1323. localstatedir='${prefix}/var'
  1324. includedir='${prefix}/include'
  1325. oldincludedir='/usr/include'
  1326. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1327. infodir='${datarootdir}/info'
  1328. htmldir='${docdir}'
  1329. dvidir='${docdir}'
  1330. pdfdir='${docdir}'
  1331. psdir='${docdir}'
  1332. libdir='${exec_prefix}/lib'
  1333. localedir='${datarootdir}/locale'
  1334. mandir='${datarootdir}/man'
  1335. ac_prev=
  1336. ac_dashdash=
  1337. for ac_option
  1338. do
  1339. # If the previous option needs an argument, assign it.
  1340. if test -n "$ac_prev"; then
  1341. eval $ac_prev=\$ac_option
  1342. ac_prev=
  1343. continue
  1344. fi
  1345. case $ac_option in
  1346. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1347. *=) ac_optarg= ;;
  1348. *) ac_optarg=yes ;;
  1349. esac
  1350. # Accept the important Cygnus configure options, so we can diagnose typos.
  1351. case $ac_dashdash$ac_option in
  1352. --)
  1353. ac_dashdash=yes ;;
  1354. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1355. ac_prev=bindir ;;
  1356. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1357. bindir=$ac_optarg ;;
  1358. -build | --build | --buil | --bui | --bu)
  1359. ac_prev=build_alias ;;
  1360. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1361. build_alias=$ac_optarg ;;
  1362. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1363. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1364. ac_prev=cache_file ;;
  1365. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1366. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1367. cache_file=$ac_optarg ;;
  1368. --config-cache | -C)
  1369. cache_file=config.cache ;;
  1370. -datadir | --datadir | --datadi | --datad)
  1371. ac_prev=datadir ;;
  1372. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1373. datadir=$ac_optarg ;;
  1374. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1375. | --dataroo | --dataro | --datar)
  1376. ac_prev=datarootdir ;;
  1377. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1378. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1379. datarootdir=$ac_optarg ;;
  1380. -disable-* | --disable-*)
  1381. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1382. # Reject names that are not valid shell variable names.
  1383. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1384. as_fn_error $? "invalid feature name: $ac_useropt"
  1385. ac_useropt_orig=$ac_useropt
  1386. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1387. case $ac_user_opts in
  1388. *"
  1389. "enable_$ac_useropt"
  1390. "*) ;;
  1391. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1392. ac_unrecognized_sep=', ';;
  1393. esac
  1394. eval enable_$ac_useropt=no ;;
  1395. -docdir | --docdir | --docdi | --doc | --do)
  1396. ac_prev=docdir ;;
  1397. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1398. docdir=$ac_optarg ;;
  1399. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1400. ac_prev=dvidir ;;
  1401. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1402. dvidir=$ac_optarg ;;
  1403. -enable-* | --enable-*)
  1404. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1405. # Reject names that are not valid shell variable names.
  1406. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1407. as_fn_error $? "invalid feature name: $ac_useropt"
  1408. ac_useropt_orig=$ac_useropt
  1409. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1410. case $ac_user_opts in
  1411. *"
  1412. "enable_$ac_useropt"
  1413. "*) ;;
  1414. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1415. ac_unrecognized_sep=', ';;
  1416. esac
  1417. eval enable_$ac_useropt=\$ac_optarg ;;
  1418. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1419. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1420. | --exec | --exe | --ex)
  1421. ac_prev=exec_prefix ;;
  1422. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1423. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1424. | --exec=* | --exe=* | --ex=*)
  1425. exec_prefix=$ac_optarg ;;
  1426. -gas | --gas | --ga | --g)
  1427. # Obsolete; use --with-gas.
  1428. with_gas=yes ;;
  1429. -help | --help | --hel | --he | -h)
  1430. ac_init_help=long ;;
  1431. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1432. ac_init_help=recursive ;;
  1433. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1434. ac_init_help=short ;;
  1435. -host | --host | --hos | --ho)
  1436. ac_prev=host_alias ;;
  1437. -host=* | --host=* | --hos=* | --ho=*)
  1438. host_alias=$ac_optarg ;;
  1439. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1440. ac_prev=htmldir ;;
  1441. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1442. | --ht=*)
  1443. htmldir=$ac_optarg ;;
  1444. -includedir | --includedir | --includedi | --included | --include \
  1445. | --includ | --inclu | --incl | --inc)
  1446. ac_prev=includedir ;;
  1447. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1448. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1449. includedir=$ac_optarg ;;
  1450. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1451. ac_prev=infodir ;;
  1452. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1453. infodir=$ac_optarg ;;
  1454. -libdir | --libdir | --libdi | --libd)
  1455. ac_prev=libdir ;;
  1456. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1457. libdir=$ac_optarg ;;
  1458. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1459. | --libexe | --libex | --libe)
  1460. ac_prev=libexecdir ;;
  1461. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1462. | --libexe=* | --libex=* | --libe=*)
  1463. libexecdir=$ac_optarg ;;
  1464. -localedir | --localedir | --localedi | --localed | --locale)
  1465. ac_prev=localedir ;;
  1466. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1467. localedir=$ac_optarg ;;
  1468. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1469. | --localstate | --localstat | --localsta | --localst | --locals)
  1470. ac_prev=localstatedir ;;
  1471. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1472. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1473. localstatedir=$ac_optarg ;;
  1474. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1475. ac_prev=mandir ;;
  1476. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1477. mandir=$ac_optarg ;;
  1478. -nfp | --nfp | --nf)
  1479. # Obsolete; use --without-fp.
  1480. with_fp=no ;;
  1481. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1482. | --no-cr | --no-c | -n)
  1483. no_create=yes ;;
  1484. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1485. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1486. no_recursion=yes ;;
  1487. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1488. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1489. | --oldin | --oldi | --old | --ol | --o)
  1490. ac_prev=oldincludedir ;;
  1491. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1492. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1493. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1494. oldincludedir=$ac_optarg ;;
  1495. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1496. ac_prev=prefix ;;
  1497. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1498. prefix=$ac_optarg ;;
  1499. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1500. | --program-pre | --program-pr | --program-p)
  1501. ac_prev=program_prefix ;;
  1502. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1503. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1504. program_prefix=$ac_optarg ;;
  1505. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1506. | --program-suf | --program-su | --program-s)
  1507. ac_prev=program_suffix ;;
  1508. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1509. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1510. program_suffix=$ac_optarg ;;
  1511. -program-transform-name | --program-transform-name \
  1512. | --program-transform-nam | --program-transform-na \
  1513. | --program-transform-n | --program-transform- \
  1514. | --program-transform | --program-transfor \
  1515. | --program-transfo | --program-transf \
  1516. | --program-trans | --program-tran \
  1517. | --progr-tra | --program-tr | --program-t)
  1518. ac_prev=program_transform_name ;;
  1519. -program-transform-name=* | --program-transform-name=* \
  1520. | --program-transform-nam=* | --program-transform-na=* \
  1521. | --program-transform-n=* | --program-transform-=* \
  1522. | --program-transform=* | --program-transfor=* \
  1523. | --program-transfo=* | --program-transf=* \
  1524. | --program-trans=* | --program-tran=* \
  1525. | --progr-tra=* | --program-tr=* | --program-t=*)
  1526. program_transform_name=$ac_optarg ;;
  1527. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1528. ac_prev=pdfdir ;;
  1529. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1530. pdfdir=$ac_optarg ;;
  1531. -psdir | --psdir | --psdi | --psd | --ps)
  1532. ac_prev=psdir ;;
  1533. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1534. psdir=$ac_optarg ;;
  1535. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1536. | -silent | --silent | --silen | --sile | --sil)
  1537. silent=yes ;;
  1538. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1539. ac_prev=sbindir ;;
  1540. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1541. | --sbi=* | --sb=*)
  1542. sbindir=$ac_optarg ;;
  1543. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1544. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1545. | --sharedst | --shareds | --shared | --share | --shar \
  1546. | --sha | --sh)
  1547. ac_prev=sharedstatedir ;;
  1548. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1549. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1550. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1551. | --sha=* | --sh=*)
  1552. sharedstatedir=$ac_optarg ;;
  1553. -site | --site | --sit)
  1554. ac_prev=site ;;
  1555. -site=* | --site=* | --sit=*)
  1556. site=$ac_optarg ;;
  1557. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1558. ac_prev=srcdir ;;
  1559. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1560. srcdir=$ac_optarg ;;
  1561. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1562. | --syscon | --sysco | --sysc | --sys | --sy)
  1563. ac_prev=sysconfdir ;;
  1564. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1565. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1566. sysconfdir=$ac_optarg ;;
  1567. -target | --target | --targe | --targ | --tar | --ta | --t)
  1568. ac_prev=target_alias ;;
  1569. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1570. target_alias=$ac_optarg ;;
  1571. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1572. verbose=yes ;;
  1573. -version | --version | --versio | --versi | --vers | -V)
  1574. ac_init_version=: ;;
  1575. -with-* | --with-*)
  1576. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1577. # Reject names that are not valid shell variable names.
  1578. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1579. as_fn_error $? "invalid package name: $ac_useropt"
  1580. ac_useropt_orig=$ac_useropt
  1581. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1582. case $ac_user_opts in
  1583. *"
  1584. "with_$ac_useropt"
  1585. "*) ;;
  1586. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1587. ac_unrecognized_sep=', ';;
  1588. esac
  1589. eval with_$ac_useropt=\$ac_optarg ;;
  1590. -without-* | --without-*)
  1591. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1592. # Reject names that are not valid shell variable names.
  1593. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1594. as_fn_error $? "invalid package name: $ac_useropt"
  1595. ac_useropt_orig=$ac_useropt
  1596. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1597. case $ac_user_opts in
  1598. *"
  1599. "with_$ac_useropt"
  1600. "*) ;;
  1601. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1602. ac_unrecognized_sep=', ';;
  1603. esac
  1604. eval with_$ac_useropt=no ;;
  1605. --x)
  1606. # Obsolete; use --with-x.
  1607. with_x=yes ;;
  1608. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1609. | --x-incl | --x-inc | --x-in | --x-i)
  1610. ac_prev=x_includes ;;
  1611. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1612. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1613. x_includes=$ac_optarg ;;
  1614. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1615. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1616. ac_prev=x_libraries ;;
  1617. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1618. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1619. x_libraries=$ac_optarg ;;
  1620. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1621. Try \`$0 --help' for more information"
  1622. ;;
  1623. *=*)
  1624. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1625. # Reject names that are not valid shell variable names.
  1626. case $ac_envvar in #(
  1627. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1628. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1629. esac
  1630. eval $ac_envvar=\$ac_optarg
  1631. export $ac_envvar ;;
  1632. *)
  1633. # FIXME: should be removed in autoconf 3.0.
  1634. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1635. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1636. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1637. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1638. ;;
  1639. esac
  1640. done
  1641. if test -n "$ac_prev"; then
  1642. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1643. as_fn_error $? "missing argument to $ac_option"
  1644. fi
  1645. if test -n "$ac_unrecognized_opts"; then
  1646. case $enable_option_checking in
  1647. no) ;;
  1648. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1649. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1650. esac
  1651. fi
  1652. # Check all directory arguments for consistency.
  1653. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1654. datadir sysconfdir sharedstatedir localstatedir includedir \
  1655. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1656. libdir localedir mandir
  1657. do
  1658. eval ac_val=\$$ac_var
  1659. # Remove trailing slashes.
  1660. case $ac_val in
  1661. */ )
  1662. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1663. eval $ac_var=\$ac_val;;
  1664. esac
  1665. # Be sure to have absolute directory names.
  1666. case $ac_val in
  1667. [\\/$]* | ?:[\\/]* ) continue;;
  1668. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1669. esac
  1670. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1671. done
  1672. # There might be people who depend on the old broken behavior: `$host'
  1673. # used to hold the argument of --host etc.
  1674. # FIXME: To remove some day.
  1675. build=$build_alias
  1676. host=$host_alias
  1677. target=$target_alias
  1678. # FIXME: To remove some day.
  1679. if test "x$host_alias" != x; then
  1680. if test "x$build_alias" = x; then
  1681. cross_compiling=maybe
  1682. elif test "x$build_alias" != "x$host_alias"; then
  1683. cross_compiling=yes
  1684. fi
  1685. fi
  1686. ac_tool_prefix=
  1687. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1688. test "$silent" = yes && exec 6>/dev/null
  1689. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1690. ac_ls_di=`ls -di .` &&
  1691. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1692. as_fn_error $? "working directory cannot be determined"
  1693. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1694. as_fn_error $? "pwd does not report name of working directory"
  1695. # Find the source files, if location was not specified.
  1696. if test -z "$srcdir"; then
  1697. ac_srcdir_defaulted=yes
  1698. # Try the directory containing this script, then the parent directory.
  1699. ac_confdir=`$as_dirname -- "$as_myself" ||
  1700. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1701. X"$as_myself" : 'X\(//\)[^/]' \| \
  1702. X"$as_myself" : 'X\(//\)$' \| \
  1703. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1704. $as_echo X"$as_myself" |
  1705. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1706. s//\1/
  1707. q
  1708. }
  1709. /^X\(\/\/\)[^/].*/{
  1710. s//\1/
  1711. q
  1712. }
  1713. /^X\(\/\/\)$/{
  1714. s//\1/
  1715. q
  1716. }
  1717. /^X\(\/\).*/{
  1718. s//\1/
  1719. q
  1720. }
  1721. s/.*/./; q'`
  1722. srcdir=$ac_confdir
  1723. if test ! -r "$srcdir/$ac_unique_file"; then
  1724. srcdir=..
  1725. fi
  1726. else
  1727. ac_srcdir_defaulted=no
  1728. fi
  1729. if test ! -r "$srcdir/$ac_unique_file"; then
  1730. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1731. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1732. fi
  1733. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1734. ac_abs_confdir=`(
  1735. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1736. pwd)`
  1737. # When building in place, set srcdir=.
  1738. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1739. srcdir=.
  1740. fi
  1741. # Remove unnecessary trailing slashes from srcdir.
  1742. # Double slashes in file names in object file debugging info
  1743. # mess up M-x gdb in Emacs.
  1744. case $srcdir in
  1745. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1746. esac
  1747. for ac_var in $ac_precious_vars; do
  1748. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1749. eval ac_env_${ac_var}_value=\$${ac_var}
  1750. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1751. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1752. done
  1753. #
  1754. # Report the --help message.
  1755. #
  1756. if test "$ac_init_help" = "long"; then
  1757. # Omit some internal or obsolete options to make the list less imposing.
  1758. # This message is too long to be a string in the A/UX 3.1 sh.
  1759. cat <<_ACEOF
  1760. \`configure' configures asterisk trunk to adapt to many kinds of systems.
  1761. Usage: $0 [OPTION]... [VAR=VALUE]...
  1762. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1763. VAR=VALUE. See below for descriptions of some of the useful variables.
  1764. Defaults for the options are specified in brackets.
  1765. Configuration:
  1766. -h, --help display this help and exit
  1767. --help=short display options specific to this package
  1768. --help=recursive display the short help of all the included packages
  1769. -V, --version display version information and exit
  1770. -q, --quiet, --silent do not print \`checking ...' messages
  1771. --cache-file=FILE cache test results in FILE [disabled]
  1772. -C, --config-cache alias for \`--cache-file=config.cache'
  1773. -n, --no-create do not create output files
  1774. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1775. Installation directories:
  1776. --prefix=PREFIX install architecture-independent files in PREFIX
  1777. [$ac_default_prefix]
  1778. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1779. [PREFIX]
  1780. By default, \`make install' will install all the files in
  1781. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1782. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1783. for instance \`--prefix=\$HOME'.
  1784. For better control, use the options below.
  1785. Fine tuning of the installation directories:
  1786. --bindir=DIR user executables [EPREFIX/bin]
  1787. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1788. --libexecdir=DIR program executables [EPREFIX/libexec]
  1789. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1790. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1791. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1792. --libdir=DIR object code libraries [EPREFIX/lib]
  1793. --includedir=DIR C header files [PREFIX/include]
  1794. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1795. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1796. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1797. --infodir=DIR info documentation [DATAROOTDIR/info]
  1798. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1799. --mandir=DIR man documentation [DATAROOTDIR/man]
  1800. --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
  1801. --htmldir=DIR html documentation [DOCDIR]
  1802. --dvidir=DIR dvi documentation [DOCDIR]
  1803. --pdfdir=DIR pdf documentation [DOCDIR]
  1804. --psdir=DIR ps documentation [DOCDIR]
  1805. _ACEOF
  1806. cat <<\_ACEOF
  1807. System types:
  1808. --build=BUILD configure for building on BUILD [guessed]
  1809. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1810. _ACEOF
  1811. fi
  1812. if test -n "$ac_init_help"; then
  1813. case $ac_init_help in
  1814. short | recursive ) echo "Configuration of asterisk trunk:";;
  1815. esac
  1816. cat <<\_ACEOF
  1817. Optional Features:
  1818. --disable-option-checking ignore unrecognized --enable/--with options
  1819. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1820. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1821. --enable-dev-mode Turn on developer mode
  1822. --enable-coverage Turn on code coverage tracking (for gcov)
  1823. --disable-xmldoc Explicitly disable XML documentation
  1824. --disable-largefile omit support for large files
  1825. --enable-internal-poll Use Asterisk's poll implementation
  1826. --disable-asteriskssl Disable Asterisk's SSL wrapper library
  1827. --disable-rpath Disables rpath linker option checking
  1828. Optional Packages:
  1829. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1830. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1831. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1832. --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
  1833. --with-bfd=PATH use Debug symbol decoding files in PATH
  1834. --with-execinfo=PATH use Stack Backtrace files in PATH
  1835. --with-bluetooth=PATH use Bluetooth files in PATH
  1836. --with-cap=PATH use POSIX 1.e capabilities files in PATH
  1837. --with-cpg=PATH use Corosync files in PATH
  1838. --with-curses=PATH use curses files in PATH
  1839. --with-crypto=PATH use OpenSSL Cryptography files in PATH
  1840. --with-dahdi=PATH use DAHDI files in PATH
  1841. --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
  1842. --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
  1843. otherwise
  1844. --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
  1845. otherwise
  1846. --with-gtk2=PATH use gtk2 files in PATH
  1847. --with-gmime=PATH use GMime files in PATH
  1848. --with-h323=PATH use OpenH323 files in PATH
  1849. --with-hoard=PATH use Hoard Memory Allocator files in PATH
  1850. --with-ical=PATH use iCal files in PATH
  1851. --with-iconv=PATH use Iconv files in PATH
  1852. --with-iksemel=PATH use Iksemel Jabber files in PATH
  1853. --with-imap=PATH use UW IMAP Toolkit files in PATH
  1854. --with-inotify=PATH use inotify support files in PATH
  1855. --with-iodbc=PATH use iODBC files in PATH
  1856. --with-isdnnet=PATH use ISDN4Linux files in PATH
  1857. --with-jack=PATH use Jack Audio Connection Kit files in PATH
  1858. --with-kqueue=PATH use kqueue support files in PATH
  1859. --with-ldap=PATH use OpenLDAP files in PATH
  1860. --with-libcurl=DIR look for the curl library in DIR
  1861. --with-libedit=PATH use NetBSD Editline library files in PATH, use
  1862. 'internal' Editline otherwise
  1863. --with-libxml2=PATH use LibXML2 files in PATH
  1864. --with-ltdl=PATH use libtool files in PATH
  1865. --with-lua=PATH use Lua files in PATH
  1866. --with-misdn=PATH use mISDN user files in PATH
  1867. --with-mysqlclient=PATH use MySQL client files in PATH
  1868. --with-nbs=PATH use Network Broadcast Sound files in PATH
  1869. --with-ncurses=PATH use ncurses files in PATH
  1870. --with-neon=PATH use neon files in PATH
  1871. --with-neon29=PATH use neon29 files in PATH
  1872. --with-netsnmp=PATH use Net-SNMP files in PATH
  1873. --with-newt=PATH use newt files in PATH
  1874. --with-ogg=PATH use OGG files in PATH
  1875. --with-openr2=PATH use MFR2 files in PATH
  1876. --with-osptk=PATH use OSP Toolkit files in PATH
  1877. --with-oss=PATH use Open Sound System files in PATH
  1878. --with-postgres=PATH use PostgreSQL files in PATH
  1879. --with-popt=PATH use popt files in PATH
  1880. --with-portaudio=PATH use PortAudio files in PATH
  1881. --with-pri=PATH use ISDN PRI files in PATH
  1882. --with-pwlib=PATH use PWlib files in PATH
  1883. --with-radius=PATH use Radius Client files in PATH
  1884. --with-resample=PATH use LIBRESAMPLE files in PATH
  1885. --with-sdl=PATH use Sdl files in PATH
  1886. --with-SDL_image=PATH use Sdl Image files in PATH
  1887. --with-sounds-cache=PATH
  1888. use cached sound tarfiles in PATH
  1889. --with-spandsp=PATH use SPANDSP files in PATH
  1890. --with-ss7=PATH use ISDN SS7 files in PATH
  1891. --with-speex=PATH use Speex files in PATH
  1892. --with-speex=PATH use Speex preprocess routines files in PATH
  1893. --with-speexdsp=PATH use SpeexDSP files in PATH
  1894. --with-sqlite=PATH use SQLite files in PATH
  1895. --with-sqlite3=PATH use SQLite files in PATH
  1896. --with-srtp=PATH use Secure RTP files in PATH
  1897. --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
  1898. --with-suppserv=PATH use mISDN Supplemental Services files in PATH
  1899. --with-tds=PATH use FreeTDS files in PATH
  1900. --with-termcap=PATH use Termcap files in PATH
  1901. --with-timerfd=PATH use timerfd files in PATH
  1902. --with-tinfo=PATH use Term Info files in PATH
  1903. --with-tonezone=PATH use tonezone files in PATH
  1904. --with-unixodbc=PATH use unixODBC files in PATH
  1905. --with-uuid=PATH use UUID files in PATH
  1906. --with-vorbis=PATH use Vorbis files in PATH
  1907. --with-vpb=PATH use Voicetronix API files in PATH
  1908. --with-x11=PATH use X11 files in PATH
  1909. --with-z=PATH use zlib compression files in PATH
  1910. Some influential environment variables:
  1911. CC C compiler command
  1912. CFLAGS C compiler flags
  1913. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1914. nonstandard directory <lib dir>
  1915. LIBS libraries to pass to the linker, e.g. -l<library>
  1916. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1917. you have headers in a nonstandard directory <include dir>
  1918. CPP C preprocessor
  1919. CXX C++ compiler command
  1920. CXXFLAGS C++ compiler flags
  1921. CXXCPP C++ preprocessor
  1922. PKG_CONFIG path to pkg-config utility
  1923. PKG_CONFIG_PATH
  1924. directories to add to pkg-config's search path
  1925. PKG_CONFIG_LIBDIR
  1926. path overriding pkg-config's built-in search path
  1927. ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
  1928. ILBC_LIBS linker flags for ILBC, overriding pkg-config
  1929. LIBEDIT_CFLAGS
  1930. C compiler flags for LIBEDIT, overriding pkg-config
  1931. LIBEDIT_LIBS
  1932. linker flags for LIBEDIT, overriding pkg-config
  1933. GMIME_CFLAGS
  1934. C compiler flags for GMIME, overriding pkg-config
  1935. GMIME_LIBS linker flags for GMIME, overriding pkg-config
  1936. GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
  1937. GTK2_LIBS linker flags for GTK2, overriding pkg-config
  1938. Use these variables to override the choices made by `configure' or to help
  1939. it to find libraries and programs with nonstandard names/locations.
  1940. Report bugs to <https://issues.asterisk.org>.
  1941. _ACEOF
  1942. ac_status=$?
  1943. fi
  1944. if test "$ac_init_help" = "recursive"; then
  1945. # If there are subdirs, report their specific --help.
  1946. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1947. test -d "$ac_dir" ||
  1948. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1949. continue
  1950. ac_builddir=.
  1951. case "$ac_dir" in
  1952. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1953. *)
  1954. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1955. # A ".." for each directory in $ac_dir_suffix.
  1956. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1957. case $ac_top_builddir_sub in
  1958. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1959. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1960. esac ;;
  1961. esac
  1962. ac_abs_top_builddir=$ac_pwd
  1963. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1964. # for backward compatibility:
  1965. ac_top_builddir=$ac_top_build_prefix
  1966. case $srcdir in
  1967. .) # We are building in place.
  1968. ac_srcdir=.
  1969. ac_top_srcdir=$ac_top_builddir_sub
  1970. ac_abs_top_srcdir=$ac_pwd ;;
  1971. [\\/]* | ?:[\\/]* ) # Absolute name.
  1972. ac_srcdir=$srcdir$ac_dir_suffix;
  1973. ac_top_srcdir=$srcdir
  1974. ac_abs_top_srcdir=$srcdir ;;
  1975. *) # Relative name.
  1976. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1977. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1978. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1979. esac
  1980. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1981. cd "$ac_dir" || { ac_status=$?; continue; }
  1982. # Check for guested configure.
  1983. if test -f "$ac_srcdir/configure.gnu"; then
  1984. echo &&
  1985. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1986. elif test -f "$ac_srcdir/configure"; then
  1987. echo &&
  1988. $SHELL "$ac_srcdir/configure" --help=recursive
  1989. else
  1990. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1991. fi || ac_status=$?
  1992. cd "$ac_pwd" || { ac_status=$?; break; }
  1993. done
  1994. fi
  1995. test -n "$ac_init_help" && exit $ac_status
  1996. if $ac_init_version; then
  1997. cat <<\_ACEOF
  1998. asterisk configure trunk
  1999. generated by GNU Autoconf 2.69
  2000. Copyright (C) 2012 Free Software Foundation, Inc.
  2001. This configure script is free software; the Free Software Foundation
  2002. gives unlimited permission to copy, distribute and modify it.
  2003. "Asterisk"
  2004. _ACEOF
  2005. exit
  2006. fi
  2007. ## ------------------------ ##
  2008. ## Autoconf initialization. ##
  2009. ## ------------------------ ##
  2010. # ac_fn_c_try_compile LINENO
  2011. # --------------------------
  2012. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2013. ac_fn_c_try_compile ()
  2014. {
  2015. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2016. rm -f conftest.$ac_objext
  2017. if { { ac_try="$ac_compile"
  2018. case "(($ac_try" in
  2019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2020. *) ac_try_echo=$ac_try;;
  2021. esac
  2022. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2023. $as_echo "$ac_try_echo"; } >&5
  2024. (eval "$ac_compile") 2>conftest.err
  2025. ac_status=$?
  2026. if test -s conftest.err; then
  2027. grep -v '^ *+' conftest.err >conftest.er1
  2028. cat conftest.er1 >&5
  2029. mv -f conftest.er1 conftest.err
  2030. fi
  2031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2032. test $ac_status = 0; } && {
  2033. test -z "$ac_c_werror_flag" ||
  2034. test ! -s conftest.err
  2035. } && test -s conftest.$ac_objext; then :
  2036. ac_retval=0
  2037. else
  2038. $as_echo "$as_me: failed program was:" >&5
  2039. sed 's/^/| /' conftest.$ac_ext >&5
  2040. ac_retval=1
  2041. fi
  2042. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2043. as_fn_set_status $ac_retval
  2044. } # ac_fn_c_try_compile
  2045. # ac_fn_c_try_cpp LINENO
  2046. # ----------------------
  2047. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2048. ac_fn_c_try_cpp ()
  2049. {
  2050. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2051. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2052. case "(($ac_try" in
  2053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2054. *) ac_try_echo=$ac_try;;
  2055. esac
  2056. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2057. $as_echo "$ac_try_echo"; } >&5
  2058. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2059. ac_status=$?
  2060. if test -s conftest.err; then
  2061. grep -v '^ *+' conftest.err >conftest.er1
  2062. cat conftest.er1 >&5
  2063. mv -f conftest.er1 conftest.err
  2064. fi
  2065. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2066. test $ac_status = 0; } > conftest.i && {
  2067. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2068. test ! -s conftest.err
  2069. }; then :
  2070. ac_retval=0
  2071. else
  2072. $as_echo "$as_me: failed program was:" >&5
  2073. sed 's/^/| /' conftest.$ac_ext >&5
  2074. ac_retval=1
  2075. fi
  2076. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2077. as_fn_set_status $ac_retval
  2078. } # ac_fn_c_try_cpp
  2079. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2080. # -------------------------------------------------------
  2081. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2082. # the include files in INCLUDES and setting the cache variable VAR
  2083. # accordingly.
  2084. ac_fn_c_check_header_mongrel ()
  2085. {
  2086. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2087. if eval \${$3+:} false; then :
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2089. $as_echo_n "checking for $2... " >&6; }
  2090. if eval \${$3+:} false; then :
  2091. $as_echo_n "(cached) " >&6
  2092. fi
  2093. eval ac_res=\$$3
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2095. $as_echo "$ac_res" >&6; }
  2096. else
  2097. # Is the header compilable?
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2099. $as_echo_n "checking $2 usability... " >&6; }
  2100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2101. /* end confdefs.h. */
  2102. $4
  2103. #include <$2>
  2104. _ACEOF
  2105. if ac_fn_c_try_compile "$LINENO"; then :
  2106. ac_header_compiler=yes
  2107. else
  2108. ac_header_compiler=no
  2109. fi
  2110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2112. $as_echo "$ac_header_compiler" >&6; }
  2113. # Is the header present?
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2115. $as_echo_n "checking $2 presence... " >&6; }
  2116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2117. /* end confdefs.h. */
  2118. #include <$2>
  2119. _ACEOF
  2120. if ac_fn_c_try_cpp "$LINENO"; then :
  2121. ac_header_preproc=yes
  2122. else
  2123. ac_header_preproc=no
  2124. fi
  2125. rm -f conftest.err conftest.i conftest.$ac_ext
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2127. $as_echo "$ac_header_preproc" >&6; }
  2128. # So? What about this header?
  2129. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2130. yes:no: )
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2132. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2134. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2135. ;;
  2136. no:yes:* )
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2138. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2140. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2142. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2144. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2146. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2147. ( $as_echo "## ------------------------------------------ ##
  2148. ## Report this to https://issues.asterisk.org ##
  2149. ## ------------------------------------------ ##"
  2150. ) | sed "s/^/$as_me: WARNING: /" >&2
  2151. ;;
  2152. esac
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2154. $as_echo_n "checking for $2... " >&6; }
  2155. if eval \${$3+:} false; then :
  2156. $as_echo_n "(cached) " >&6
  2157. else
  2158. eval "$3=\$ac_header_compiler"
  2159. fi
  2160. eval ac_res=\$$3
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2162. $as_echo "$ac_res" >&6; }
  2163. fi
  2164. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2165. } # ac_fn_c_check_header_mongrel
  2166. # ac_fn_c_try_run LINENO
  2167. # ----------------------
  2168. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2169. # that executables *can* be run.
  2170. ac_fn_c_try_run ()
  2171. {
  2172. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2173. if { { ac_try="$ac_link"
  2174. case "(($ac_try" in
  2175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2176. *) ac_try_echo=$ac_try;;
  2177. esac
  2178. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2179. $as_echo "$ac_try_echo"; } >&5
  2180. (eval "$ac_link") 2>&5
  2181. ac_status=$?
  2182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2183. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2184. { { case "(($ac_try" in
  2185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2186. *) ac_try_echo=$ac_try;;
  2187. esac
  2188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2189. $as_echo "$ac_try_echo"; } >&5
  2190. (eval "$ac_try") 2>&5
  2191. ac_status=$?
  2192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2193. test $ac_status = 0; }; }; then :
  2194. ac_retval=0
  2195. else
  2196. $as_echo "$as_me: program exited with status $ac_status" >&5
  2197. $as_echo "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. ac_retval=$ac_status
  2200. fi
  2201. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2202. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2203. as_fn_set_status $ac_retval
  2204. } # ac_fn_c_try_run
  2205. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2206. # -------------------------------------------------------
  2207. # Tests whether HEADER exists and can be compiled using the include files in
  2208. # INCLUDES, setting the cache variable VAR accordingly.
  2209. ac_fn_c_check_header_compile ()
  2210. {
  2211. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2213. $as_echo_n "checking for $2... " >&6; }
  2214. if eval \${$3+:} false; then :
  2215. $as_echo_n "(cached) " >&6
  2216. else
  2217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2218. /* end confdefs.h. */
  2219. $4
  2220. #include <$2>
  2221. _ACEOF
  2222. if ac_fn_c_try_compile "$LINENO"; then :
  2223. eval "$3=yes"
  2224. else
  2225. eval "$3=no"
  2226. fi
  2227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2228. fi
  2229. eval ac_res=\$$3
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2231. $as_echo "$ac_res" >&6; }
  2232. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2233. } # ac_fn_c_check_header_compile
  2234. # ac_fn_cxx_try_compile LINENO
  2235. # ----------------------------
  2236. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2237. ac_fn_cxx_try_compile ()
  2238. {
  2239. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2240. rm -f conftest.$ac_objext
  2241. if { { ac_try="$ac_compile"
  2242. case "(($ac_try" in
  2243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2244. *) ac_try_echo=$ac_try;;
  2245. esac
  2246. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2247. $as_echo "$ac_try_echo"; } >&5
  2248. (eval "$ac_compile") 2>conftest.err
  2249. ac_status=$?
  2250. if test -s conftest.err; then
  2251. grep -v '^ *+' conftest.err >conftest.er1
  2252. cat conftest.er1 >&5
  2253. mv -f conftest.er1 conftest.err
  2254. fi
  2255. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2256. test $ac_status = 0; } && {
  2257. test -z "$ac_cxx_werror_flag" ||
  2258. test ! -s conftest.err
  2259. } && test -s conftest.$ac_objext; then :
  2260. ac_retval=0
  2261. else
  2262. $as_echo "$as_me: failed program was:" >&5
  2263. sed 's/^/| /' conftest.$ac_ext >&5
  2264. ac_retval=1
  2265. fi
  2266. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2267. as_fn_set_status $ac_retval
  2268. } # ac_fn_cxx_try_compile
  2269. # ac_fn_cxx_try_cpp LINENO
  2270. # ------------------------
  2271. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2272. ac_fn_cxx_try_cpp ()
  2273. {
  2274. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2275. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2276. case "(($ac_try" in
  2277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2278. *) ac_try_echo=$ac_try;;
  2279. esac
  2280. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2281. $as_echo "$ac_try_echo"; } >&5
  2282. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2283. ac_status=$?
  2284. if test -s conftest.err; then
  2285. grep -v '^ *+' conftest.err >conftest.er1
  2286. cat conftest.er1 >&5
  2287. mv -f conftest.er1 conftest.err
  2288. fi
  2289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2290. test $ac_status = 0; } > conftest.i && {
  2291. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2292. test ! -s conftest.err
  2293. }; then :
  2294. ac_retval=0
  2295. else
  2296. $as_echo "$as_me: failed program was:" >&5
  2297. sed 's/^/| /' conftest.$ac_ext >&5
  2298. ac_retval=1
  2299. fi
  2300. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2301. as_fn_set_status $ac_retval
  2302. } # ac_fn_cxx_try_cpp
  2303. # ac_fn_c_try_link LINENO
  2304. # -----------------------
  2305. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2306. ac_fn_c_try_link ()
  2307. {
  2308. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2309. rm -f conftest.$ac_objext conftest$ac_exeext
  2310. if { { ac_try="$ac_link"
  2311. case "(($ac_try" in
  2312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2313. *) ac_try_echo=$ac_try;;
  2314. esac
  2315. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2316. $as_echo "$ac_try_echo"; } >&5
  2317. (eval "$ac_link") 2>conftest.err
  2318. ac_status=$?
  2319. if test -s conftest.err; then
  2320. grep -v '^ *+' conftest.err >conftest.er1
  2321. cat conftest.er1 >&5
  2322. mv -f conftest.er1 conftest.err
  2323. fi
  2324. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2325. test $ac_status = 0; } && {
  2326. test -z "$ac_c_werror_flag" ||
  2327. test ! -s conftest.err
  2328. } && test -s conftest$ac_exeext && {
  2329. test "$cross_compiling" = yes ||
  2330. test -x conftest$ac_exeext
  2331. }; then :
  2332. ac_retval=0
  2333. else
  2334. $as_echo "$as_me: failed program was:" >&5
  2335. sed 's/^/| /' conftest.$ac_ext >&5
  2336. ac_retval=1
  2337. fi
  2338. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2339. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2340. # interfere with the next link command; also delete a directory that is
  2341. # left behind by Apple's compiler. We do this before executing the actions.
  2342. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2343. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2344. as_fn_set_status $ac_retval
  2345. } # ac_fn_c_try_link
  2346. # ac_fn_c_check_func LINENO FUNC VAR
  2347. # ----------------------------------
  2348. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2349. ac_fn_c_check_func ()
  2350. {
  2351. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2353. $as_echo_n "checking for $2... " >&6; }
  2354. if eval \${$3+:} false; then :
  2355. $as_echo_n "(cached) " >&6
  2356. else
  2357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2358. /* end confdefs.h. */
  2359. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2360. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2361. #define $2 innocuous_$2
  2362. /* System header to define __stub macros and hopefully few prototypes,
  2363. which can conflict with char $2 (); below.
  2364. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2365. <limits.h> exists even on freestanding compilers. */
  2366. #ifdef __STDC__
  2367. # include <limits.h>
  2368. #else
  2369. # include <assert.h>
  2370. #endif
  2371. #undef $2
  2372. /* Override any GCC internal prototype to avoid an error.
  2373. Use char because int might match the return type of a GCC
  2374. builtin and then its argument prototype would still apply. */
  2375. #ifdef __cplusplus
  2376. extern "C"
  2377. #endif
  2378. char $2 ();
  2379. /* The GNU C library defines this for functions which it implements
  2380. to always fail with ENOSYS. Some functions are actually named
  2381. something starting with __ and the normal name is an alias. */
  2382. #if defined __stub_$2 || defined __stub___$2
  2383. choke me
  2384. #endif
  2385. int
  2386. main ()
  2387. {
  2388. return $2 ();
  2389. ;
  2390. return 0;
  2391. }
  2392. _ACEOF
  2393. if ac_fn_c_try_link "$LINENO"; then :
  2394. eval "$3=yes"
  2395. else
  2396. eval "$3=no"
  2397. fi
  2398. rm -f core conftest.err conftest.$ac_objext \
  2399. conftest$ac_exeext conftest.$ac_ext
  2400. fi
  2401. eval ac_res=\$$3
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2403. $as_echo "$ac_res" >&6; }
  2404. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2405. } # ac_fn_c_check_func
  2406. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2407. # -------------------------------------------
  2408. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2409. # variable VAR accordingly.
  2410. ac_fn_c_check_type ()
  2411. {
  2412. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2414. $as_echo_n "checking for $2... " >&6; }
  2415. if eval \${$3+:} false; then :
  2416. $as_echo_n "(cached) " >&6
  2417. else
  2418. eval "$3=no"
  2419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2420. /* end confdefs.h. */
  2421. $4
  2422. int
  2423. main ()
  2424. {
  2425. if (sizeof ($2))
  2426. return 0;
  2427. ;
  2428. return 0;
  2429. }
  2430. _ACEOF
  2431. if ac_fn_c_try_compile "$LINENO"; then :
  2432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2433. /* end confdefs.h. */
  2434. $4
  2435. int
  2436. main ()
  2437. {
  2438. if (sizeof (($2)))
  2439. return 0;
  2440. ;
  2441. return 0;
  2442. }
  2443. _ACEOF
  2444. if ac_fn_c_try_compile "$LINENO"; then :
  2445. else
  2446. eval "$3=yes"
  2447. fi
  2448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2449. fi
  2450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2451. fi
  2452. eval ac_res=\$$3
  2453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2454. $as_echo "$ac_res" >&6; }
  2455. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2456. } # ac_fn_c_check_type
  2457. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2458. # ----------------------------------------------------
  2459. # Tries to find if the field MEMBER exists in type AGGR, after including
  2460. # INCLUDES, setting cache variable VAR accordingly.
  2461. ac_fn_c_check_member ()
  2462. {
  2463. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2465. $as_echo_n "checking for $2.$3... " >&6; }
  2466. if eval \${$4+:} false; then :
  2467. $as_echo_n "(cached) " >&6
  2468. else
  2469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2470. /* end confdefs.h. */
  2471. $5
  2472. int
  2473. main ()
  2474. {
  2475. static $2 ac_aggr;
  2476. if (ac_aggr.$3)
  2477. return 0;
  2478. ;
  2479. return 0;
  2480. }
  2481. _ACEOF
  2482. if ac_fn_c_try_compile "$LINENO"; then :
  2483. eval "$4=yes"
  2484. else
  2485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2486. /* end confdefs.h. */
  2487. $5
  2488. int
  2489. main ()
  2490. {
  2491. static $2 ac_aggr;
  2492. if (sizeof ac_aggr.$3)
  2493. return 0;
  2494. ;
  2495. return 0;
  2496. }
  2497. _ACEOF
  2498. if ac_fn_c_try_compile "$LINENO"; then :
  2499. eval "$4=yes"
  2500. else
  2501. eval "$4=no"
  2502. fi
  2503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2504. fi
  2505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2506. fi
  2507. eval ac_res=\$$4
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2509. $as_echo "$ac_res" >&6; }
  2510. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2511. } # ac_fn_c_check_member
  2512. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2513. # --------------------------------------------
  2514. # Tries to find the compile-time value of EXPR in a program that includes
  2515. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2516. # computed
  2517. ac_fn_c_compute_int ()
  2518. {
  2519. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2520. if test "$cross_compiling" = yes; then
  2521. # Depending upon the size, compute the lo and hi bounds.
  2522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2523. /* end confdefs.h. */
  2524. $4
  2525. int
  2526. main ()
  2527. {
  2528. static int test_array [1 - 2 * !(($2) >= 0)];
  2529. test_array [0] = 0;
  2530. return test_array [0];
  2531. ;
  2532. return 0;
  2533. }
  2534. _ACEOF
  2535. if ac_fn_c_try_compile "$LINENO"; then :
  2536. ac_lo=0 ac_mid=0
  2537. while :; do
  2538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2539. /* end confdefs.h. */
  2540. $4
  2541. int
  2542. main ()
  2543. {
  2544. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2545. test_array [0] = 0;
  2546. return test_array [0];
  2547. ;
  2548. return 0;
  2549. }
  2550. _ACEOF
  2551. if ac_fn_c_try_compile "$LINENO"; then :
  2552. ac_hi=$ac_mid; break
  2553. else
  2554. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2555. if test $ac_lo -le $ac_mid; then
  2556. ac_lo= ac_hi=
  2557. break
  2558. fi
  2559. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2560. fi
  2561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2562. done
  2563. else
  2564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2565. /* end confdefs.h. */
  2566. $4
  2567. int
  2568. main ()
  2569. {
  2570. static int test_array [1 - 2 * !(($2) < 0)];
  2571. test_array [0] = 0;
  2572. return test_array [0];
  2573. ;
  2574. return 0;
  2575. }
  2576. _ACEOF
  2577. if ac_fn_c_try_compile "$LINENO"; then :
  2578. ac_hi=-1 ac_mid=-1
  2579. while :; do
  2580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2581. /* end confdefs.h. */
  2582. $4
  2583. int
  2584. main ()
  2585. {
  2586. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2587. test_array [0] = 0;
  2588. return test_array [0];
  2589. ;
  2590. return 0;
  2591. }
  2592. _ACEOF
  2593. if ac_fn_c_try_compile "$LINENO"; then :
  2594. ac_lo=$ac_mid; break
  2595. else
  2596. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2597. if test $ac_mid -le $ac_hi; then
  2598. ac_lo= ac_hi=
  2599. break
  2600. fi
  2601. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2602. fi
  2603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2604. done
  2605. else
  2606. ac_lo= ac_hi=
  2607. fi
  2608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2609. fi
  2610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2611. # Binary search between lo and hi bounds.
  2612. while test "x$ac_lo" != "x$ac_hi"; do
  2613. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2615. /* end confdefs.h. */
  2616. $4
  2617. int
  2618. main ()
  2619. {
  2620. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2621. test_array [0] = 0;
  2622. return test_array [0];
  2623. ;
  2624. return 0;
  2625. }
  2626. _ACEOF
  2627. if ac_fn_c_try_compile "$LINENO"; then :
  2628. ac_hi=$ac_mid
  2629. else
  2630. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2631. fi
  2632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2633. done
  2634. case $ac_lo in #((
  2635. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2636. '') ac_retval=1 ;;
  2637. esac
  2638. else
  2639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2640. /* end confdefs.h. */
  2641. $4
  2642. static long int longval () { return $2; }
  2643. static unsigned long int ulongval () { return $2; }
  2644. #include <stdio.h>
  2645. #include <stdlib.h>
  2646. int
  2647. main ()
  2648. {
  2649. FILE *f = fopen ("conftest.val", "w");
  2650. if (! f)
  2651. return 1;
  2652. if (($2) < 0)
  2653. {
  2654. long int i = longval ();
  2655. if (i != ($2))
  2656. return 1;
  2657. fprintf (f, "%ld", i);
  2658. }
  2659. else
  2660. {
  2661. unsigned long int i = ulongval ();
  2662. if (i != ($2))
  2663. return 1;
  2664. fprintf (f, "%lu", i);
  2665. }
  2666. /* Do not output a trailing newline, as this causes \r\n confusion
  2667. on some platforms. */
  2668. return ferror (f) || fclose (f) != 0;
  2669. ;
  2670. return 0;
  2671. }
  2672. _ACEOF
  2673. if ac_fn_c_try_run "$LINENO"; then :
  2674. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2675. else
  2676. ac_retval=1
  2677. fi
  2678. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2679. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2680. rm -f conftest.val
  2681. fi
  2682. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2683. as_fn_set_status $ac_retval
  2684. } # ac_fn_c_compute_int
  2685. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2686. # ---------------------------------------------------------
  2687. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2688. # the include files in INCLUDES and setting the cache variable VAR
  2689. # accordingly.
  2690. ac_fn_cxx_check_header_mongrel ()
  2691. {
  2692. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2693. if eval \${$3+:} false; then :
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2695. $as_echo_n "checking for $2... " >&6; }
  2696. if eval \${$3+:} false; then :
  2697. $as_echo_n "(cached) " >&6
  2698. fi
  2699. eval ac_res=\$$3
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2701. $as_echo "$ac_res" >&6; }
  2702. else
  2703. # Is the header compilable?
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2705. $as_echo_n "checking $2 usability... " >&6; }
  2706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2707. /* end confdefs.h. */
  2708. $4
  2709. #include <$2>
  2710. _ACEOF
  2711. if ac_fn_cxx_try_compile "$LINENO"; then :
  2712. ac_header_compiler=yes
  2713. else
  2714. ac_header_compiler=no
  2715. fi
  2716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2718. $as_echo "$ac_header_compiler" >&6; }
  2719. # Is the header present?
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2721. $as_echo_n "checking $2 presence... " >&6; }
  2722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2723. /* end confdefs.h. */
  2724. #include <$2>
  2725. _ACEOF
  2726. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2727. ac_header_preproc=yes
  2728. else
  2729. ac_header_preproc=no
  2730. fi
  2731. rm -f conftest.err conftest.i conftest.$ac_ext
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2733. $as_echo "$ac_header_preproc" >&6; }
  2734. # So? What about this header?
  2735. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2736. yes:no: )
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2738. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2740. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2741. ;;
  2742. no:yes:* )
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2744. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2746. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2748. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2750. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2752. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2753. ( $as_echo "## ------------------------------------------ ##
  2754. ## Report this to https://issues.asterisk.org ##
  2755. ## ------------------------------------------ ##"
  2756. ) | sed "s/^/$as_me: WARNING: /" >&2
  2757. ;;
  2758. esac
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2760. $as_echo_n "checking for $2... " >&6; }
  2761. if eval \${$3+:} false; then :
  2762. $as_echo_n "(cached) " >&6
  2763. else
  2764. eval "$3=\$ac_header_compiler"
  2765. fi
  2766. eval ac_res=\$$3
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2768. $as_echo "$ac_res" >&6; }
  2769. fi
  2770. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2771. } # ac_fn_cxx_check_header_mongrel
  2772. # ac_fn_cxx_try_link LINENO
  2773. # -------------------------
  2774. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2775. ac_fn_cxx_try_link ()
  2776. {
  2777. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2778. rm -f conftest.$ac_objext conftest$ac_exeext
  2779. if { { ac_try="$ac_link"
  2780. case "(($ac_try" in
  2781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2782. *) ac_try_echo=$ac_try;;
  2783. esac
  2784. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2785. $as_echo "$ac_try_echo"; } >&5
  2786. (eval "$ac_link") 2>conftest.err
  2787. ac_status=$?
  2788. if test -s conftest.err; then
  2789. grep -v '^ *+' conftest.err >conftest.er1
  2790. cat conftest.er1 >&5
  2791. mv -f conftest.er1 conftest.err
  2792. fi
  2793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2794. test $ac_status = 0; } && {
  2795. test -z "$ac_cxx_werror_flag" ||
  2796. test ! -s conftest.err
  2797. } && test -s conftest$ac_exeext && {
  2798. test "$cross_compiling" = yes ||
  2799. test -x conftest$ac_exeext
  2800. }; then :
  2801. ac_retval=0
  2802. else
  2803. $as_echo "$as_me: failed program was:" >&5
  2804. sed 's/^/| /' conftest.$ac_ext >&5
  2805. ac_retval=1
  2806. fi
  2807. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2808. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2809. # interfere with the next link command; also delete a directory that is
  2810. # left behind by Apple's compiler. We do this before executing the actions.
  2811. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2812. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2813. as_fn_set_status $ac_retval
  2814. } # ac_fn_cxx_try_link
  2815. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  2816. # ---------------------------------------------------------
  2817. # Tests whether HEADER exists and can be compiled using the include files in
  2818. # INCLUDES, setting the cache variable VAR accordingly.
  2819. ac_fn_cxx_check_header_compile ()
  2820. {
  2821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2823. $as_echo_n "checking for $2... " >&6; }
  2824. if eval \${$3+:} false; then :
  2825. $as_echo_n "(cached) " >&6
  2826. else
  2827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2828. /* end confdefs.h. */
  2829. $4
  2830. #include <$2>
  2831. _ACEOF
  2832. if ac_fn_cxx_try_compile "$LINENO"; then :
  2833. eval "$3=yes"
  2834. else
  2835. eval "$3=no"
  2836. fi
  2837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2838. fi
  2839. eval ac_res=\$$3
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2841. $as_echo "$ac_res" >&6; }
  2842. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2843. } # ac_fn_cxx_check_header_compile
  2844. cat >config.log <<_ACEOF
  2845. This file contains any messages produced by compilers while
  2846. running configure, to aid debugging if configure makes a mistake.
  2847. It was created by asterisk $as_me trunk, which was
  2848. generated by GNU Autoconf 2.69. Invocation command line was
  2849. $ $0 $@
  2850. _ACEOF
  2851. exec 5>>config.log
  2852. {
  2853. cat <<_ASUNAME
  2854. ## --------- ##
  2855. ## Platform. ##
  2856. ## --------- ##
  2857. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2858. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2859. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2860. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2861. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2862. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2863. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2864. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2865. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2866. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2867. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2868. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2869. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2870. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2871. _ASUNAME
  2872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2873. for as_dir in $PATH
  2874. do
  2875. IFS=$as_save_IFS
  2876. test -z "$as_dir" && as_dir=.
  2877. $as_echo "PATH: $as_dir"
  2878. done
  2879. IFS=$as_save_IFS
  2880. } >&5
  2881. cat >&5 <<_ACEOF
  2882. ## ----------- ##
  2883. ## Core tests. ##
  2884. ## ----------- ##
  2885. _ACEOF
  2886. # Keep a trace of the command line.
  2887. # Strip out --no-create and --no-recursion so they do not pile up.
  2888. # Strip out --silent because we don't want to record it for future runs.
  2889. # Also quote any args containing shell meta-characters.
  2890. # Make two passes to allow for proper duplicate-argument suppression.
  2891. ac_configure_args=
  2892. ac_configure_args0=
  2893. ac_configure_args1=
  2894. ac_must_keep_next=false
  2895. for ac_pass in 1 2
  2896. do
  2897. for ac_arg
  2898. do
  2899. case $ac_arg in
  2900. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2901. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2902. | -silent | --silent | --silen | --sile | --sil)
  2903. continue ;;
  2904. *\'*)
  2905. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2906. esac
  2907. case $ac_pass in
  2908. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2909. 2)
  2910. as_fn_append ac_configure_args1 " '$ac_arg'"
  2911. if test $ac_must_keep_next = true; then
  2912. ac_must_keep_next=false # Got value, back to normal.
  2913. else
  2914. case $ac_arg in
  2915. *=* | --config-cache | -C | -disable-* | --disable-* \
  2916. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2917. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2918. | -with-* | --with-* | -without-* | --without-* | --x)
  2919. case "$ac_configure_args0 " in
  2920. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2921. esac
  2922. ;;
  2923. -* ) ac_must_keep_next=true ;;
  2924. esac
  2925. fi
  2926. as_fn_append ac_configure_args " '$ac_arg'"
  2927. ;;
  2928. esac
  2929. done
  2930. done
  2931. { ac_configure_args0=; unset ac_configure_args0;}
  2932. { ac_configure_args1=; unset ac_configure_args1;}
  2933. # When interrupted or exit'd, cleanup temporary files, and complete
  2934. # config.log. We remove comments because anyway the quotes in there
  2935. # would cause problems or look ugly.
  2936. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2937. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2938. trap 'exit_status=$?
  2939. # Save into config.log some information that might help in debugging.
  2940. {
  2941. echo
  2942. $as_echo "## ---------------- ##
  2943. ## Cache variables. ##
  2944. ## ---------------- ##"
  2945. echo
  2946. # The following way of writing the cache mishandles newlines in values,
  2947. (
  2948. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2949. eval ac_val=\$$ac_var
  2950. case $ac_val in #(
  2951. *${as_nl}*)
  2952. case $ac_var in #(
  2953. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2954. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2955. esac
  2956. case $ac_var in #(
  2957. _ | IFS | as_nl) ;; #(
  2958. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2959. *) { eval $ac_var=; unset $ac_var;} ;;
  2960. esac ;;
  2961. esac
  2962. done
  2963. (set) 2>&1 |
  2964. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2965. *${as_nl}ac_space=\ *)
  2966. sed -n \
  2967. "s/'\''/'\''\\\\'\'''\''/g;
  2968. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2969. ;; #(
  2970. *)
  2971. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2972. ;;
  2973. esac |
  2974. sort
  2975. )
  2976. echo
  2977. $as_echo "## ----------------- ##
  2978. ## Output variables. ##
  2979. ## ----------------- ##"
  2980. echo
  2981. for ac_var in $ac_subst_vars
  2982. do
  2983. eval ac_val=\$$ac_var
  2984. case $ac_val in
  2985. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2986. esac
  2987. $as_echo "$ac_var='\''$ac_val'\''"
  2988. done | sort
  2989. echo
  2990. if test -n "$ac_subst_files"; then
  2991. $as_echo "## ------------------- ##
  2992. ## File substitutions. ##
  2993. ## ------------------- ##"
  2994. echo
  2995. for ac_var in $ac_subst_files
  2996. do
  2997. eval ac_val=\$$ac_var
  2998. case $ac_val in
  2999. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3000. esac
  3001. $as_echo "$ac_var='\''$ac_val'\''"
  3002. done | sort
  3003. echo
  3004. fi
  3005. if test -s confdefs.h; then
  3006. $as_echo "## ----------- ##
  3007. ## confdefs.h. ##
  3008. ## ----------- ##"
  3009. echo
  3010. cat confdefs.h
  3011. echo
  3012. fi
  3013. test "$ac_signal" != 0 &&
  3014. $as_echo "$as_me: caught signal $ac_signal"
  3015. $as_echo "$as_me: exit $exit_status"
  3016. } >&5
  3017. rm -f core *.core core.conftest.* &&
  3018. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  3019. exit $exit_status
  3020. ' 0
  3021. for ac_signal in 1 2 13 15; do
  3022. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  3023. done
  3024. ac_signal=0
  3025. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  3026. rm -f -r conftest* confdefs.h
  3027. $as_echo "/* confdefs.h */" > confdefs.h
  3028. # Predefined preprocessor variables.
  3029. cat >>confdefs.h <<_ACEOF
  3030. #define PACKAGE_NAME "$PACKAGE_NAME"
  3031. _ACEOF
  3032. cat >>confdefs.h <<_ACEOF
  3033. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  3034. _ACEOF
  3035. cat >>confdefs.h <<_ACEOF
  3036. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  3037. _ACEOF
  3038. cat >>confdefs.h <<_ACEOF
  3039. #define PACKAGE_STRING "$PACKAGE_STRING"
  3040. _ACEOF
  3041. cat >>confdefs.h <<_ACEOF
  3042. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  3043. _ACEOF
  3044. cat >>confdefs.h <<_ACEOF
  3045. #define PACKAGE_URL "$PACKAGE_URL"
  3046. _ACEOF
  3047. # Let the site file select an alternate cache file if it wants to.
  3048. # Prefer an explicitly selected file to automatically selected ones.
  3049. ac_site_file1=NONE
  3050. ac_site_file2=NONE
  3051. if test -n "$CONFIG_SITE"; then
  3052. # We do not want a PATH search for config.site.
  3053. case $CONFIG_SITE in #((
  3054. -*) ac_site_file1=./$CONFIG_SITE;;
  3055. */*) ac_site_file1=$CONFIG_SITE;;
  3056. *) ac_site_file1=./$CONFIG_SITE;;
  3057. esac
  3058. elif test "x$prefix" != xNONE; then
  3059. ac_site_file1=$prefix/share/config.site
  3060. ac_site_file2=$prefix/etc/config.site
  3061. else
  3062. ac_site_file1=$ac_default_prefix/share/config.site
  3063. ac_site_file2=$ac_default_prefix/etc/config.site
  3064. fi
  3065. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  3066. do
  3067. test "x$ac_site_file" = xNONE && continue
  3068. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  3070. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  3071. sed 's/^/| /' "$ac_site_file" >&5
  3072. . "$ac_site_file" \
  3073. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3074. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3075. as_fn_error $? "failed to load site script $ac_site_file
  3076. See \`config.log' for more details" "$LINENO" 5; }
  3077. fi
  3078. done
  3079. if test -r "$cache_file"; then
  3080. # Some versions of bash will fail to source /dev/null (special files
  3081. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  3082. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  3084. $as_echo "$as_me: loading cache $cache_file" >&6;}
  3085. case $cache_file in
  3086. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  3087. *) . "./$cache_file";;
  3088. esac
  3089. fi
  3090. else
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  3092. $as_echo "$as_me: creating cache $cache_file" >&6;}
  3093. >$cache_file
  3094. fi
  3095. as_fn_append ac_header_list " stdlib.h"
  3096. as_fn_append ac_header_list " unistd.h"
  3097. as_fn_append ac_header_list " sys/param.h"
  3098. as_fn_append ac_header_list " utime.h"
  3099. # Check that the precious variables saved in the cache have kept the same
  3100. # value.
  3101. ac_cache_corrupted=false
  3102. for ac_var in $ac_precious_vars; do
  3103. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3104. eval ac_new_set=\$ac_env_${ac_var}_set
  3105. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3106. eval ac_new_val=\$ac_env_${ac_var}_value
  3107. case $ac_old_set,$ac_new_set in
  3108. set,)
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3110. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3111. ac_cache_corrupted=: ;;
  3112. ,set)
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3114. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3115. ac_cache_corrupted=: ;;
  3116. ,);;
  3117. *)
  3118. if test "x$ac_old_val" != "x$ac_new_val"; then
  3119. # differences in whitespace do not lead to failure.
  3120. ac_old_val_w=`echo x $ac_old_val`
  3121. ac_new_val_w=`echo x $ac_new_val`
  3122. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3124. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3125. ac_cache_corrupted=:
  3126. else
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3128. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3129. eval $ac_var=\$ac_old_val
  3130. fi
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3132. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3134. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  3135. fi;;
  3136. esac
  3137. # Pass precious variables to config.status.
  3138. if test "$ac_new_set" = set; then
  3139. case $ac_new_val in
  3140. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3141. *) ac_arg=$ac_var=$ac_new_val ;;
  3142. esac
  3143. case " $ac_configure_args " in
  3144. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3145. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3146. esac
  3147. fi
  3148. done
  3149. if $ac_cache_corrupted; then
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3151. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3153. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3154. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  3155. fi
  3156. ## -------------------- ##
  3157. ## Main body of script. ##
  3158. ## -------------------- ##
  3159. ac_ext=c
  3160. ac_cpp='$CPP $CPPFLAGS'
  3161. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3162. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3163. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3164. # cross-compile macros
  3165. ac_aux_dir=
  3166. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3167. if test -f "$ac_dir/install-sh"; then
  3168. ac_aux_dir=$ac_dir
  3169. ac_install_sh="$ac_aux_dir/install-sh -c"
  3170. break
  3171. elif test -f "$ac_dir/install.sh"; then
  3172. ac_aux_dir=$ac_dir
  3173. ac_install_sh="$ac_aux_dir/install.sh -c"
  3174. break
  3175. elif test -f "$ac_dir/shtool"; then
  3176. ac_aux_dir=$ac_dir
  3177. ac_install_sh="$ac_aux_dir/shtool install -c"
  3178. break
  3179. fi
  3180. done
  3181. if test -z "$ac_aux_dir"; then
  3182. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3183. fi
  3184. # These three variables are undocumented and unsupported,
  3185. # and are intended to be withdrawn in a future Autoconf release.
  3186. # They can cause serious problems if a builder's source tree is in a directory
  3187. # whose full name contains unusual characters.
  3188. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3189. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3190. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3191. # Make sure we can run config.sub.
  3192. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3193. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3195. $as_echo_n "checking build system type... " >&6; }
  3196. if ${ac_cv_build+:} false; then :
  3197. $as_echo_n "(cached) " >&6
  3198. else
  3199. ac_build_alias=$build_alias
  3200. test "x$ac_build_alias" = x &&
  3201. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3202. test "x$ac_build_alias" = x &&
  3203. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3204. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3205. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3206. fi
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3208. $as_echo "$ac_cv_build" >&6; }
  3209. case $ac_cv_build in
  3210. *-*-*) ;;
  3211. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3212. esac
  3213. build=$ac_cv_build
  3214. ac_save_IFS=$IFS; IFS='-'
  3215. set x $ac_cv_build
  3216. shift
  3217. build_cpu=$1
  3218. build_vendor=$2
  3219. shift; shift
  3220. # Remember, the first character of IFS is used to create $*,
  3221. # except with old shells:
  3222. build_os=$*
  3223. IFS=$ac_save_IFS
  3224. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3226. $as_echo_n "checking host system type... " >&6; }
  3227. if ${ac_cv_host+:} false; then :
  3228. $as_echo_n "(cached) " >&6
  3229. else
  3230. if test "x$host_alias" = x; then
  3231. ac_cv_host=$ac_cv_build
  3232. else
  3233. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3234. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3235. fi
  3236. fi
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3238. $as_echo "$ac_cv_host" >&6; }
  3239. case $ac_cv_host in
  3240. *-*-*) ;;
  3241. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3242. esac
  3243. host=$ac_cv_host
  3244. ac_save_IFS=$IFS; IFS='-'
  3245. set x $ac_cv_host
  3246. shift
  3247. host_cpu=$1
  3248. host_vendor=$2
  3249. shift; shift
  3250. # Remember, the first character of IFS is used to create $*,
  3251. # except with old shells:
  3252. host_os=$*
  3253. IFS=$ac_save_IFS
  3254. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3255. # check existence of the package
  3256. ac_aux_dir=
  3257. for ac_dir in `pwd` "$srcdir"/`pwd`; do
  3258. if test -f "$ac_dir/install-sh"; then
  3259. ac_aux_dir=$ac_dir
  3260. ac_install_sh="$ac_aux_dir/install-sh -c"
  3261. break
  3262. elif test -f "$ac_dir/install.sh"; then
  3263. ac_aux_dir=$ac_dir
  3264. ac_install_sh="$ac_aux_dir/install.sh -c"
  3265. break
  3266. elif test -f "$ac_dir/shtool"; then
  3267. ac_aux_dir=$ac_dir
  3268. ac_install_sh="$ac_aux_dir/shtool install -c"
  3269. break
  3270. fi
  3271. done
  3272. if test -z "$ac_aux_dir"; then
  3273. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
  3274. fi
  3275. # These three variables are undocumented and unsupported,
  3276. # and are intended to be withdrawn in a future Autoconf release.
  3277. # They can cause serious problems if a builder's source tree is in a directory
  3278. # whose full name contains unusual characters.
  3279. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3280. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3281. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3282. # preserve any CFLAGS or LDFLAGS that may be set
  3283. # NOTE: This must be done before calling any macros that end up
  3284. # calling AC_PROG_CC or the like, since they will set a default
  3285. # set of CFLAGS ("-g -O2") if the user did not supply any, and
  3286. # we don't want those default flags to be carried over into the
  3287. # rest of the build system since we have other means of controlling
  3288. # debugging symbol generation and optimization.
  3289. CONFIG_CFLAGS="${CFLAGS}"
  3290. CONFIG_LDFLAGS="${LDFLAGS}"
  3291. # specify output header file
  3292. ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
  3293. # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
  3294. # other macro that uses the C compiler, or the default order will be used.
  3295. ac_ext=c
  3296. ac_cpp='$CPP $CPPFLAGS'
  3297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3300. if test -n "$ac_tool_prefix"; then
  3301. for ac_prog in gcc cc
  3302. do
  3303. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3304. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3306. $as_echo_n "checking for $ac_word... " >&6; }
  3307. if ${ac_cv_prog_CC+:} false; then :
  3308. $as_echo_n "(cached) " >&6
  3309. else
  3310. if test -n "$CC"; then
  3311. ac_cv_prog_CC="$CC" # Let the user override the test.
  3312. else
  3313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3314. for as_dir in $PATH
  3315. do
  3316. IFS=$as_save_IFS
  3317. test -z "$as_dir" && as_dir=.
  3318. for ac_exec_ext in '' $ac_executable_extensions; do
  3319. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3320. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3322. break 2
  3323. fi
  3324. done
  3325. done
  3326. IFS=$as_save_IFS
  3327. fi
  3328. fi
  3329. CC=$ac_cv_prog_CC
  3330. if test -n "$CC"; then
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3332. $as_echo "$CC" >&6; }
  3333. else
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3335. $as_echo "no" >&6; }
  3336. fi
  3337. test -n "$CC" && break
  3338. done
  3339. fi
  3340. if test -z "$CC"; then
  3341. ac_ct_CC=$CC
  3342. for ac_prog in gcc cc
  3343. do
  3344. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3345. set dummy $ac_prog; ac_word=$2
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3347. $as_echo_n "checking for $ac_word... " >&6; }
  3348. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3349. $as_echo_n "(cached) " >&6
  3350. else
  3351. if test -n "$ac_ct_CC"; then
  3352. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3353. else
  3354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3355. for as_dir in $PATH
  3356. do
  3357. IFS=$as_save_IFS
  3358. test -z "$as_dir" && as_dir=.
  3359. for ac_exec_ext in '' $ac_executable_extensions; do
  3360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3361. ac_cv_prog_ac_ct_CC="$ac_prog"
  3362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3363. break 2
  3364. fi
  3365. done
  3366. done
  3367. IFS=$as_save_IFS
  3368. fi
  3369. fi
  3370. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3371. if test -n "$ac_ct_CC"; then
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3373. $as_echo "$ac_ct_CC" >&6; }
  3374. else
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3376. $as_echo "no" >&6; }
  3377. fi
  3378. test -n "$ac_ct_CC" && break
  3379. done
  3380. if test "x$ac_ct_CC" = x; then
  3381. CC=""
  3382. else
  3383. case $cross_compiling:$ac_tool_warned in
  3384. yes:)
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3386. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3387. ac_tool_warned=yes ;;
  3388. esac
  3389. CC=$ac_ct_CC
  3390. fi
  3391. fi
  3392. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3394. as_fn_error $? "no acceptable C compiler found in \$PATH
  3395. See \`config.log' for more details" "$LINENO" 5; }
  3396. # Provide some information about the compiler.
  3397. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3398. set X $ac_compile
  3399. ac_compiler=$2
  3400. for ac_option in --version -v -V -qversion; do
  3401. { { ac_try="$ac_compiler $ac_option >&5"
  3402. case "(($ac_try" in
  3403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3404. *) ac_try_echo=$ac_try;;
  3405. esac
  3406. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3407. $as_echo "$ac_try_echo"; } >&5
  3408. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3409. ac_status=$?
  3410. if test -s conftest.err; then
  3411. sed '10a\
  3412. ... rest of stderr output deleted ...
  3413. 10q' conftest.err >conftest.er1
  3414. cat conftest.er1 >&5
  3415. fi
  3416. rm -f conftest.er1 conftest.err
  3417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3418. test $ac_status = 0; }
  3419. done
  3420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3421. /* end confdefs.h. */
  3422. int
  3423. main ()
  3424. {
  3425. ;
  3426. return 0;
  3427. }
  3428. _ACEOF
  3429. ac_clean_files_save=$ac_clean_files
  3430. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3431. # Try to create an executable without -o first, disregard a.out.
  3432. # It will help us diagnose broken compilers, and finding out an intuition
  3433. # of exeext.
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3435. $as_echo_n "checking whether the C compiler works... " >&6; }
  3436. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3437. # The possible output files:
  3438. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3439. ac_rmfiles=
  3440. for ac_file in $ac_files
  3441. do
  3442. case $ac_file in
  3443. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3444. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3445. esac
  3446. done
  3447. rm -f $ac_rmfiles
  3448. if { { ac_try="$ac_link_default"
  3449. case "(($ac_try" in
  3450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3451. *) ac_try_echo=$ac_try;;
  3452. esac
  3453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3454. $as_echo "$ac_try_echo"; } >&5
  3455. (eval "$ac_link_default") 2>&5
  3456. ac_status=$?
  3457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3458. test $ac_status = 0; }; then :
  3459. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3460. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3461. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3462. # so that the user can short-circuit this test for compilers unknown to
  3463. # Autoconf.
  3464. for ac_file in $ac_files ''
  3465. do
  3466. test -f "$ac_file" || continue
  3467. case $ac_file in
  3468. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3469. ;;
  3470. [ab].out )
  3471. # We found the default executable, but exeext='' is most
  3472. # certainly right.
  3473. break;;
  3474. *.* )
  3475. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3476. then :; else
  3477. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3478. fi
  3479. # We set ac_cv_exeext here because the later test for it is not
  3480. # safe: cross compilers may not add the suffix if given an `-o'
  3481. # argument, so we may need to know it at that point already.
  3482. # Even if this section looks crufty: it has the advantage of
  3483. # actually working.
  3484. break;;
  3485. * )
  3486. break;;
  3487. esac
  3488. done
  3489. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3490. else
  3491. ac_file=''
  3492. fi
  3493. if test -z "$ac_file"; then :
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3495. $as_echo "no" >&6; }
  3496. $as_echo "$as_me: failed program was:" >&5
  3497. sed 's/^/| /' conftest.$ac_ext >&5
  3498. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3499. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3500. as_fn_error 77 "C compiler cannot create executables
  3501. See \`config.log' for more details" "$LINENO" 5; }
  3502. else
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3504. $as_echo "yes" >&6; }
  3505. fi
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3507. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3509. $as_echo "$ac_file" >&6; }
  3510. ac_exeext=$ac_cv_exeext
  3511. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3512. ac_clean_files=$ac_clean_files_save
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3514. $as_echo_n "checking for suffix of executables... " >&6; }
  3515. if { { ac_try="$ac_link"
  3516. case "(($ac_try" in
  3517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3518. *) ac_try_echo=$ac_try;;
  3519. esac
  3520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3521. $as_echo "$ac_try_echo"; } >&5
  3522. (eval "$ac_link") 2>&5
  3523. ac_status=$?
  3524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3525. test $ac_status = 0; }; then :
  3526. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3527. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3528. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3529. # `rm'.
  3530. for ac_file in conftest.exe conftest conftest.*; do
  3531. test -f "$ac_file" || continue
  3532. case $ac_file in
  3533. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3534. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3535. break;;
  3536. * ) break;;
  3537. esac
  3538. done
  3539. else
  3540. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3541. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3542. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3543. See \`config.log' for more details" "$LINENO" 5; }
  3544. fi
  3545. rm -f conftest conftest$ac_cv_exeext
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3547. $as_echo "$ac_cv_exeext" >&6; }
  3548. rm -f conftest.$ac_ext
  3549. EXEEXT=$ac_cv_exeext
  3550. ac_exeext=$EXEEXT
  3551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3552. /* end confdefs.h. */
  3553. #include <stdio.h>
  3554. int
  3555. main ()
  3556. {
  3557. FILE *f = fopen ("conftest.out", "w");
  3558. return ferror (f) || fclose (f) != 0;
  3559. ;
  3560. return 0;
  3561. }
  3562. _ACEOF
  3563. ac_clean_files="$ac_clean_files conftest.out"
  3564. # Check that the compiler produces executables we can run. If not, either
  3565. # the compiler is broken, or we cross compile.
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3567. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3568. if test "$cross_compiling" != yes; then
  3569. { { ac_try="$ac_link"
  3570. case "(($ac_try" in
  3571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3572. *) ac_try_echo=$ac_try;;
  3573. esac
  3574. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3575. $as_echo "$ac_try_echo"; } >&5
  3576. (eval "$ac_link") 2>&5
  3577. ac_status=$?
  3578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3579. test $ac_status = 0; }
  3580. if { ac_try='./conftest$ac_cv_exeext'
  3581. { { case "(($ac_try" in
  3582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3583. *) ac_try_echo=$ac_try;;
  3584. esac
  3585. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3586. $as_echo "$ac_try_echo"; } >&5
  3587. (eval "$ac_try") 2>&5
  3588. ac_status=$?
  3589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3590. test $ac_status = 0; }; }; then
  3591. cross_compiling=no
  3592. else
  3593. if test "$cross_compiling" = maybe; then
  3594. cross_compiling=yes
  3595. else
  3596. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3597. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3598. as_fn_error $? "cannot run C compiled programs.
  3599. If you meant to cross compile, use \`--host'.
  3600. See \`config.log' for more details" "$LINENO" 5; }
  3601. fi
  3602. fi
  3603. fi
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3605. $as_echo "$cross_compiling" >&6; }
  3606. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3607. ac_clean_files=$ac_clean_files_save
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3609. $as_echo_n "checking for suffix of object files... " >&6; }
  3610. if ${ac_cv_objext+:} false; then :
  3611. $as_echo_n "(cached) " >&6
  3612. else
  3613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3614. /* end confdefs.h. */
  3615. int
  3616. main ()
  3617. {
  3618. ;
  3619. return 0;
  3620. }
  3621. _ACEOF
  3622. rm -f conftest.o conftest.obj
  3623. if { { ac_try="$ac_compile"
  3624. case "(($ac_try" in
  3625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3626. *) ac_try_echo=$ac_try;;
  3627. esac
  3628. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3629. $as_echo "$ac_try_echo"; } >&5
  3630. (eval "$ac_compile") 2>&5
  3631. ac_status=$?
  3632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3633. test $ac_status = 0; }; then :
  3634. for ac_file in conftest.o conftest.obj conftest.*; do
  3635. test -f "$ac_file" || continue;
  3636. case $ac_file in
  3637. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3638. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3639. break;;
  3640. esac
  3641. done
  3642. else
  3643. $as_echo "$as_me: failed program was:" >&5
  3644. sed 's/^/| /' conftest.$ac_ext >&5
  3645. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3646. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3647. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3648. See \`config.log' for more details" "$LINENO" 5; }
  3649. fi
  3650. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3651. fi
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3653. $as_echo "$ac_cv_objext" >&6; }
  3654. OBJEXT=$ac_cv_objext
  3655. ac_objext=$OBJEXT
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3657. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3658. if ${ac_cv_c_compiler_gnu+:} false; then :
  3659. $as_echo_n "(cached) " >&6
  3660. else
  3661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3662. /* end confdefs.h. */
  3663. int
  3664. main ()
  3665. {
  3666. #ifndef __GNUC__
  3667. choke me
  3668. #endif
  3669. ;
  3670. return 0;
  3671. }
  3672. _ACEOF
  3673. if ac_fn_c_try_compile "$LINENO"; then :
  3674. ac_compiler_gnu=yes
  3675. else
  3676. ac_compiler_gnu=no
  3677. fi
  3678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3679. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3680. fi
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3682. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3683. if test $ac_compiler_gnu = yes; then
  3684. GCC=yes
  3685. else
  3686. GCC=
  3687. fi
  3688. ac_test_CFLAGS=${CFLAGS+set}
  3689. ac_save_CFLAGS=$CFLAGS
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3691. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3692. if ${ac_cv_prog_cc_g+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. ac_save_c_werror_flag=$ac_c_werror_flag
  3696. ac_c_werror_flag=yes
  3697. ac_cv_prog_cc_g=no
  3698. CFLAGS="-g"
  3699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3700. /* end confdefs.h. */
  3701. int
  3702. main ()
  3703. {
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. if ac_fn_c_try_compile "$LINENO"; then :
  3709. ac_cv_prog_cc_g=yes
  3710. else
  3711. CFLAGS=""
  3712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3713. /* end confdefs.h. */
  3714. int
  3715. main ()
  3716. {
  3717. ;
  3718. return 0;
  3719. }
  3720. _ACEOF
  3721. if ac_fn_c_try_compile "$LINENO"; then :
  3722. else
  3723. ac_c_werror_flag=$ac_save_c_werror_flag
  3724. CFLAGS="-g"
  3725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3726. /* end confdefs.h. */
  3727. int
  3728. main ()
  3729. {
  3730. ;
  3731. return 0;
  3732. }
  3733. _ACEOF
  3734. if ac_fn_c_try_compile "$LINENO"; then :
  3735. ac_cv_prog_cc_g=yes
  3736. fi
  3737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3738. fi
  3739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3740. fi
  3741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3742. ac_c_werror_flag=$ac_save_c_werror_flag
  3743. fi
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3745. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3746. if test "$ac_test_CFLAGS" = set; then
  3747. CFLAGS=$ac_save_CFLAGS
  3748. elif test $ac_cv_prog_cc_g = yes; then
  3749. if test "$GCC" = yes; then
  3750. CFLAGS="-g -O2"
  3751. else
  3752. CFLAGS="-g"
  3753. fi
  3754. else
  3755. if test "$GCC" = yes; then
  3756. CFLAGS="-O2"
  3757. else
  3758. CFLAGS=
  3759. fi
  3760. fi
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3762. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3763. if ${ac_cv_prog_cc_c89+:} false; then :
  3764. $as_echo_n "(cached) " >&6
  3765. else
  3766. ac_cv_prog_cc_c89=no
  3767. ac_save_CC=$CC
  3768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3769. /* end confdefs.h. */
  3770. #include <stdarg.h>
  3771. #include <stdio.h>
  3772. struct stat;
  3773. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3774. struct buf { int x; };
  3775. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3776. static char *e (p, i)
  3777. char **p;
  3778. int i;
  3779. {
  3780. return p[i];
  3781. }
  3782. static char *f (char * (*g) (char **, int), char **p, ...)
  3783. {
  3784. char *s;
  3785. va_list v;
  3786. va_start (v,p);
  3787. s = g (p, va_arg (v,int));
  3788. va_end (v);
  3789. return s;
  3790. }
  3791. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3792. function prototypes and stuff, but not '\xHH' hex character constants.
  3793. These don't provoke an error unfortunately, instead are silently treated
  3794. as 'x'. The following induces an error, until -std is added to get
  3795. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3796. array size at least. It's necessary to write '\x00'==0 to get something
  3797. that's true only with -std. */
  3798. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3799. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3800. inside strings and character constants. */
  3801. #define FOO(x) 'x'
  3802. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3803. int test (int i, double x);
  3804. struct s1 {int (*f) (int a);};
  3805. struct s2 {int (*f) (double a);};
  3806. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3807. int argc;
  3808. char **argv;
  3809. int
  3810. main ()
  3811. {
  3812. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3813. ;
  3814. return 0;
  3815. }
  3816. _ACEOF
  3817. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3818. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3819. do
  3820. CC="$ac_save_CC $ac_arg"
  3821. if ac_fn_c_try_compile "$LINENO"; then :
  3822. ac_cv_prog_cc_c89=$ac_arg
  3823. fi
  3824. rm -f core conftest.err conftest.$ac_objext
  3825. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3826. done
  3827. rm -f conftest.$ac_ext
  3828. CC=$ac_save_CC
  3829. fi
  3830. # AC_CACHE_VAL
  3831. case "x$ac_cv_prog_cc_c89" in
  3832. x)
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3834. $as_echo "none needed" >&6; } ;;
  3835. xno)
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3837. $as_echo "unsupported" >&6; } ;;
  3838. *)
  3839. CC="$CC $ac_cv_prog_cc_c89"
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3841. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3842. esac
  3843. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3844. fi
  3845. ac_ext=c
  3846. ac_cpp='$CPP $CPPFLAGS'
  3847. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3848. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3849. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3850. ac_ext=c
  3851. ac_cpp='$CPP $CPPFLAGS'
  3852. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3853. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3854. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3856. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3857. # On Suns, sometimes $CPP names a directory.
  3858. if test -n "$CPP" && test -d "$CPP"; then
  3859. CPP=
  3860. fi
  3861. if test -z "$CPP"; then
  3862. if ${ac_cv_prog_CPP+:} false; then :
  3863. $as_echo_n "(cached) " >&6
  3864. else
  3865. # Double quotes because CPP needs to be expanded
  3866. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3867. do
  3868. ac_preproc_ok=false
  3869. for ac_c_preproc_warn_flag in '' yes
  3870. do
  3871. # Use a header file that comes with gcc, so configuring glibc
  3872. # with a fresh cross-compiler works.
  3873. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3874. # <limits.h> exists even on freestanding compilers.
  3875. # On the NeXT, cc -E runs the code through the compiler's parser,
  3876. # not just through cpp. "Syntax error" is here to catch this case.
  3877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3878. /* end confdefs.h. */
  3879. #ifdef __STDC__
  3880. # include <limits.h>
  3881. #else
  3882. # include <assert.h>
  3883. #endif
  3884. Syntax error
  3885. _ACEOF
  3886. if ac_fn_c_try_cpp "$LINENO"; then :
  3887. else
  3888. # Broken: fails on valid input.
  3889. continue
  3890. fi
  3891. rm -f conftest.err conftest.i conftest.$ac_ext
  3892. # OK, works on sane cases. Now check whether nonexistent headers
  3893. # can be detected and how.
  3894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3895. /* end confdefs.h. */
  3896. #include <ac_nonexistent.h>
  3897. _ACEOF
  3898. if ac_fn_c_try_cpp "$LINENO"; then :
  3899. # Broken: success on invalid input.
  3900. continue
  3901. else
  3902. # Passes both tests.
  3903. ac_preproc_ok=:
  3904. break
  3905. fi
  3906. rm -f conftest.err conftest.i conftest.$ac_ext
  3907. done
  3908. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3909. rm -f conftest.i conftest.err conftest.$ac_ext
  3910. if $ac_preproc_ok; then :
  3911. break
  3912. fi
  3913. done
  3914. ac_cv_prog_CPP=$CPP
  3915. fi
  3916. CPP=$ac_cv_prog_CPP
  3917. else
  3918. ac_cv_prog_CPP=$CPP
  3919. fi
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3921. $as_echo "$CPP" >&6; }
  3922. ac_preproc_ok=false
  3923. for ac_c_preproc_warn_flag in '' yes
  3924. do
  3925. # Use a header file that comes with gcc, so configuring glibc
  3926. # with a fresh cross-compiler works.
  3927. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3928. # <limits.h> exists even on freestanding compilers.
  3929. # On the NeXT, cc -E runs the code through the compiler's parser,
  3930. # not just through cpp. "Syntax error" is here to catch this case.
  3931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3932. /* end confdefs.h. */
  3933. #ifdef __STDC__
  3934. # include <limits.h>
  3935. #else
  3936. # include <assert.h>
  3937. #endif
  3938. Syntax error
  3939. _ACEOF
  3940. if ac_fn_c_try_cpp "$LINENO"; then :
  3941. else
  3942. # Broken: fails on valid input.
  3943. continue
  3944. fi
  3945. rm -f conftest.err conftest.i conftest.$ac_ext
  3946. # OK, works on sane cases. Now check whether nonexistent headers
  3947. # can be detected and how.
  3948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3949. /* end confdefs.h. */
  3950. #include <ac_nonexistent.h>
  3951. _ACEOF
  3952. if ac_fn_c_try_cpp "$LINENO"; then :
  3953. # Broken: success on invalid input.
  3954. continue
  3955. else
  3956. # Passes both tests.
  3957. ac_preproc_ok=:
  3958. break
  3959. fi
  3960. rm -f conftest.err conftest.i conftest.$ac_ext
  3961. done
  3962. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3963. rm -f conftest.i conftest.err conftest.$ac_ext
  3964. if $ac_preproc_ok; then :
  3965. else
  3966. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3967. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3968. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3969. See \`config.log' for more details" "$LINENO" 5; }
  3970. fi
  3971. ac_ext=c
  3972. ac_cpp='$CPP $CPPFLAGS'
  3973. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3974. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3975. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3977. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3978. if ${ac_cv_path_GREP+:} false; then :
  3979. $as_echo_n "(cached) " >&6
  3980. else
  3981. if test -z "$GREP"; then
  3982. ac_path_GREP_found=false
  3983. # Loop through the user's path and test for each of PROGNAME-LIST
  3984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3985. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3986. do
  3987. IFS=$as_save_IFS
  3988. test -z "$as_dir" && as_dir=.
  3989. for ac_prog in grep ggrep; do
  3990. for ac_exec_ext in '' $ac_executable_extensions; do
  3991. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3992. as_fn_executable_p "$ac_path_GREP" || continue
  3993. # Check for GNU ac_path_GREP and select it if it is found.
  3994. # Check for GNU $ac_path_GREP
  3995. case `"$ac_path_GREP" --version 2>&1` in
  3996. *GNU*)
  3997. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3998. *)
  3999. ac_count=0
  4000. $as_echo_n 0123456789 >"conftest.in"
  4001. while :
  4002. do
  4003. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4004. mv "conftest.tmp" "conftest.in"
  4005. cp "conftest.in" "conftest.nl"
  4006. $as_echo 'GREP' >> "conftest.nl"
  4007. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4008. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4009. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4010. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4011. # Best one so far, save it but keep looking for a better one
  4012. ac_cv_path_GREP="$ac_path_GREP"
  4013. ac_path_GREP_max=$ac_count
  4014. fi
  4015. # 10*(2^10) chars as input seems more than enough
  4016. test $ac_count -gt 10 && break
  4017. done
  4018. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4019. esac
  4020. $ac_path_GREP_found && break 3
  4021. done
  4022. done
  4023. done
  4024. IFS=$as_save_IFS
  4025. if test -z "$ac_cv_path_GREP"; then
  4026. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4027. fi
  4028. else
  4029. ac_cv_path_GREP=$GREP
  4030. fi
  4031. fi
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4033. $as_echo "$ac_cv_path_GREP" >&6; }
  4034. GREP="$ac_cv_path_GREP"
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4036. $as_echo_n "checking for egrep... " >&6; }
  4037. if ${ac_cv_path_EGREP+:} false; then :
  4038. $as_echo_n "(cached) " >&6
  4039. else
  4040. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4041. then ac_cv_path_EGREP="$GREP -E"
  4042. else
  4043. if test -z "$EGREP"; then
  4044. ac_path_EGREP_found=false
  4045. # Loop through the user's path and test for each of PROGNAME-LIST
  4046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4047. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4048. do
  4049. IFS=$as_save_IFS
  4050. test -z "$as_dir" && as_dir=.
  4051. for ac_prog in egrep; do
  4052. for ac_exec_ext in '' $ac_executable_extensions; do
  4053. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4054. as_fn_executable_p "$ac_path_EGREP" || continue
  4055. # Check for GNU ac_path_EGREP and select it if it is found.
  4056. # Check for GNU $ac_path_EGREP
  4057. case `"$ac_path_EGREP" --version 2>&1` in
  4058. *GNU*)
  4059. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4060. *)
  4061. ac_count=0
  4062. $as_echo_n 0123456789 >"conftest.in"
  4063. while :
  4064. do
  4065. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4066. mv "conftest.tmp" "conftest.in"
  4067. cp "conftest.in" "conftest.nl"
  4068. $as_echo 'EGREP' >> "conftest.nl"
  4069. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4070. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4071. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4072. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4073. # Best one so far, save it but keep looking for a better one
  4074. ac_cv_path_EGREP="$ac_path_EGREP"
  4075. ac_path_EGREP_max=$ac_count
  4076. fi
  4077. # 10*(2^10) chars as input seems more than enough
  4078. test $ac_count -gt 10 && break
  4079. done
  4080. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4081. esac
  4082. $ac_path_EGREP_found && break 3
  4083. done
  4084. done
  4085. done
  4086. IFS=$as_save_IFS
  4087. if test -z "$ac_cv_path_EGREP"; then
  4088. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4089. fi
  4090. else
  4091. ac_cv_path_EGREP=$EGREP
  4092. fi
  4093. fi
  4094. fi
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4096. $as_echo "$ac_cv_path_EGREP" >&6; }
  4097. EGREP="$ac_cv_path_EGREP"
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4099. $as_echo_n "checking for ANSI C header files... " >&6; }
  4100. if ${ac_cv_header_stdc+:} false; then :
  4101. $as_echo_n "(cached) " >&6
  4102. else
  4103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4104. /* end confdefs.h. */
  4105. #include <stdlib.h>
  4106. #include <stdarg.h>
  4107. #include <string.h>
  4108. #include <float.h>
  4109. int
  4110. main ()
  4111. {
  4112. ;
  4113. return 0;
  4114. }
  4115. _ACEOF
  4116. if ac_fn_c_try_compile "$LINENO"; then :
  4117. ac_cv_header_stdc=yes
  4118. else
  4119. ac_cv_header_stdc=no
  4120. fi
  4121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4122. if test $ac_cv_header_stdc = yes; then
  4123. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4125. /* end confdefs.h. */
  4126. #include <string.h>
  4127. _ACEOF
  4128. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4129. $EGREP "memchr" >/dev/null 2>&1; then :
  4130. else
  4131. ac_cv_header_stdc=no
  4132. fi
  4133. rm -f conftest*
  4134. fi
  4135. if test $ac_cv_header_stdc = yes; then
  4136. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4138. /* end confdefs.h. */
  4139. #include <stdlib.h>
  4140. _ACEOF
  4141. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4142. $EGREP "free" >/dev/null 2>&1; then :
  4143. else
  4144. ac_cv_header_stdc=no
  4145. fi
  4146. rm -f conftest*
  4147. fi
  4148. if test $ac_cv_header_stdc = yes; then
  4149. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4150. if test "$cross_compiling" = yes; then :
  4151. :
  4152. else
  4153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4154. /* end confdefs.h. */
  4155. #include <ctype.h>
  4156. #include <stdlib.h>
  4157. #if ((' ' & 0x0FF) == 0x020)
  4158. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4159. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4160. #else
  4161. # define ISLOWER(c) \
  4162. (('a' <= (c) && (c) <= 'i') \
  4163. || ('j' <= (c) && (c) <= 'r') \
  4164. || ('s' <= (c) && (c) <= 'z'))
  4165. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4166. #endif
  4167. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4168. int
  4169. main ()
  4170. {
  4171. int i;
  4172. for (i = 0; i < 256; i++)
  4173. if (XOR (islower (i), ISLOWER (i))
  4174. || toupper (i) != TOUPPER (i))
  4175. return 2;
  4176. return 0;
  4177. }
  4178. _ACEOF
  4179. if ac_fn_c_try_run "$LINENO"; then :
  4180. else
  4181. ac_cv_header_stdc=no
  4182. fi
  4183. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4184. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4185. fi
  4186. fi
  4187. fi
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4189. $as_echo "$ac_cv_header_stdc" >&6; }
  4190. if test $ac_cv_header_stdc = yes; then
  4191. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4192. fi
  4193. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4194. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4195. inttypes.h stdint.h unistd.h
  4196. do :
  4197. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4198. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4199. "
  4200. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4201. cat >>confdefs.h <<_ACEOF
  4202. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4203. _ACEOF
  4204. fi
  4205. done
  4206. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4207. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4208. MINIX=yes
  4209. else
  4210. MINIX=
  4211. fi
  4212. if test "$MINIX" = yes; then
  4213. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4214. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4215. $as_echo "#define _MINIX 1" >>confdefs.h
  4216. fi
  4217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4218. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4219. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4220. $as_echo_n "(cached) " >&6
  4221. else
  4222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4223. /* end confdefs.h. */
  4224. # define __EXTENSIONS__ 1
  4225. $ac_includes_default
  4226. int
  4227. main ()
  4228. {
  4229. ;
  4230. return 0;
  4231. }
  4232. _ACEOF
  4233. if ac_fn_c_try_compile "$LINENO"; then :
  4234. ac_cv_safe_to_define___extensions__=yes
  4235. else
  4236. ac_cv_safe_to_define___extensions__=no
  4237. fi
  4238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4239. fi
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4241. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4242. test $ac_cv_safe_to_define___extensions__ = yes &&
  4243. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4244. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4245. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4246. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4247. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4248. # System default paths
  4249. astsbindir='${sbindir}'
  4250. astetcdir='${sysconfdir}/asterisk'
  4251. astheaderdir='${includedir}/asterisk'
  4252. astlibdir='${libdir}'
  4253. astmoddir='${libdir}/asterisk/modules'
  4254. astmandir='${mandir}'
  4255. astvarlibdir='${localstatedir}/lib/asterisk'
  4256. astdatadir='${astvarlibdir}'
  4257. astdbdir='${astvarlibdir}'
  4258. astkeydir='${astvarlibdir}'
  4259. astspooldir='${localstatedir}/spool/asterisk'
  4260. astlogdir='${localstatedir}/log/asterisk'
  4261. astvarrundir='${localstatedir}/run/asterisk'
  4262. case "${host_os}" in
  4263. *bsd*)
  4264. if test ${prefix} = 'NONE'; then
  4265. astvarlibdir='${prefix}/share/asterisk'
  4266. astdbdir='${localstatedir}/db/asterisk'
  4267. fi
  4268. ;;
  4269. darwin*)
  4270. if test ${prefix} = 'NONE'; then
  4271. astvarrundir='/Library/Application Support/Asterisk/Run'
  4272. fi
  4273. ;;
  4274. esac
  4275. case "${host_os}" in
  4276. freebsd*)
  4277. ac_default_prefix=/usr/local
  4278. CPPFLAGS=-I/usr/local/include
  4279. LDFLAGS=-L/usr/local/lib
  4280. ;;
  4281. openbsd*)
  4282. ac_default_prefix=/usr/local
  4283. if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
  4284. if test ${sysconfdir} = '${prefix}/etc'; then
  4285. astetcdir=/etc/asterisk
  4286. fi
  4287. if test ${mandir} = '${prefix}/man'; then
  4288. astmandir=/usr/share/man
  4289. fi
  4290. fi
  4291. CPPFLAGS=-I/usr/local/include
  4292. LDFLAGS=-L/usr/local/lib
  4293. ;;
  4294. darwin*)
  4295. ac_default_prefix=/usr/local
  4296. if test ${prefix} = 'NONE'; then
  4297. astmoddir='/Library/Application Support/Asterisk/Modules'
  4298. astvarlibdir='/Library/Application Support/Asterisk'
  4299. astlogdir=/Library/Logs/Asterisk
  4300. astvarrundir='/Library/Application Support/Asterisk/Run'
  4301. fi
  4302. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  4303. $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
  4304. ;;
  4305. solaris*)
  4306. if test ${prefix} = 'NONE'; then
  4307. astetcdir=/var/etc/asterisk
  4308. astsbindir=/opt/asterisk/sbin
  4309. astlibdir=/opt/asterisk/lib
  4310. astmoddir=/opt/asterisk/lib/modules
  4311. astheaderdir=/opt/asterisk/include
  4312. astmandir=/opt/asterisk/man
  4313. astvarlibdir=/var/opt/asterisk
  4314. astspooldir=/var/spool/asterisk
  4315. astlogdir=/var/log/asterisk
  4316. astvarrundir=/var/run/asterisk
  4317. fi
  4318. ;;
  4319. *)
  4320. ac_default_prefix=/usr
  4321. if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
  4322. if test ${sysconfdir} = '${prefix}/etc'; then
  4323. sysconfdir=/etc
  4324. fi
  4325. if test ${mandir} = '${prefix}/man'; then
  4326. mandir=/usr/share/man
  4327. fi
  4328. fi
  4329. ;;
  4330. esac
  4331. if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
  4332. if test ${localstatedir} = '${prefix}/var'; then
  4333. localstatedir=/var
  4334. fi
  4335. fi
  4336. BUILD_PLATFORM=${build}
  4337. BUILD_CPU=${build_cpu}
  4338. BUILD_VENDOR=${build_vendor}
  4339. BUILD_OS=${build_os}
  4340. HOST_PLATFORM=${host}
  4341. HOST_CPU=${host_cpu}
  4342. HOST_VENDOR=${host_vendor}
  4343. HOST_OS=${host_os}
  4344. PBX_WINARCH=0
  4345. case "${host_os}" in
  4346. freebsd*)
  4347. OSARCH=FreeBSD
  4348. ;;
  4349. netbsd*)
  4350. OSARCH=NetBSD
  4351. ;;
  4352. openbsd*)
  4353. OSARCH=OpenBSD
  4354. ;;
  4355. solaris*)
  4356. OSARCH=SunOS
  4357. ;;
  4358. mingw32)
  4359. OSARCH=mingw32
  4360. PBX_WINARCH=1
  4361. ;;
  4362. cygwin)
  4363. OSARCH=cygwin
  4364. PBX_WINARCH=1
  4365. ;;
  4366. linux-gnueabi* | linux-gnuspe)
  4367. OSARCH=linux-gnu
  4368. ;;
  4369. kfreebsd*-gnu)
  4370. OSARCH=kfreebsd-gnu
  4371. ;;
  4372. *)
  4373. OSARCH=${host_os}
  4374. ;;
  4375. esac
  4376. # check for uname
  4377. if test -n "$ac_tool_prefix"; then
  4378. # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
  4379. set dummy ${ac_tool_prefix}uname; ac_word=$2
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4381. $as_echo_n "checking for $ac_word... " >&6; }
  4382. if ${ac_cv_path_UNAME+:} false; then :
  4383. $as_echo_n "(cached) " >&6
  4384. else
  4385. case $UNAME in
  4386. [\\/]* | ?:[\\/]*)
  4387. ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
  4388. ;;
  4389. *)
  4390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4391. for as_dir in $PATH
  4392. do
  4393. IFS=$as_save_IFS
  4394. test -z "$as_dir" && as_dir=.
  4395. for ac_exec_ext in '' $ac_executable_extensions; do
  4396. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4397. ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4399. break 2
  4400. fi
  4401. done
  4402. done
  4403. IFS=$as_save_IFS
  4404. ;;
  4405. esac
  4406. fi
  4407. UNAME=$ac_cv_path_UNAME
  4408. if test -n "$UNAME"; then
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4410. $as_echo "$UNAME" >&6; }
  4411. else
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4413. $as_echo "no" >&6; }
  4414. fi
  4415. fi
  4416. if test -z "$ac_cv_path_UNAME"; then
  4417. ac_pt_UNAME=$UNAME
  4418. # Extract the first word of "uname", so it can be a program name with args.
  4419. set dummy uname; ac_word=$2
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4421. $as_echo_n "checking for $ac_word... " >&6; }
  4422. if ${ac_cv_path_ac_pt_UNAME+:} false; then :
  4423. $as_echo_n "(cached) " >&6
  4424. else
  4425. case $ac_pt_UNAME in
  4426. [\\/]* | ?:[\\/]*)
  4427. ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
  4428. ;;
  4429. *)
  4430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4431. for as_dir in $PATH
  4432. do
  4433. IFS=$as_save_IFS
  4434. test -z "$as_dir" && as_dir=.
  4435. for ac_exec_ext in '' $ac_executable_extensions; do
  4436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4437. ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4439. break 2
  4440. fi
  4441. done
  4442. done
  4443. IFS=$as_save_IFS
  4444. ;;
  4445. esac
  4446. fi
  4447. ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
  4448. if test -n "$ac_pt_UNAME"; then
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_UNAME" >&5
  4450. $as_echo "$ac_pt_UNAME" >&6; }
  4451. else
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4453. $as_echo "no" >&6; }
  4454. fi
  4455. if test "x$ac_pt_UNAME" = x; then
  4456. UNAME="No"
  4457. else
  4458. case $cross_compiling:$ac_tool_warned in
  4459. yes:)
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4461. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4462. ac_tool_warned=yes ;;
  4463. esac
  4464. UNAME=$ac_pt_UNAME
  4465. fi
  4466. else
  4467. UNAME="$ac_cv_path_UNAME"
  4468. fi
  4469. if test ! x"${UNAME}" = xNo; then
  4470. PBX_OSREV=$(${UNAME} -r)
  4471. fi
  4472. # cross-compile checks
  4473. if test "${cross_compiling}" = "yes";
  4474. then
  4475. if test -n "$ac_tool_prefix"; then
  4476. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4477. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4479. $as_echo_n "checking for $ac_word... " >&6; }
  4480. if ${ac_cv_prog_CC+:} false; then :
  4481. $as_echo_n "(cached) " >&6
  4482. else
  4483. if test -n "$CC"; then
  4484. ac_cv_prog_CC="$CC" # Let the user override the test.
  4485. else
  4486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4487. for as_dir in $PATH
  4488. do
  4489. IFS=$as_save_IFS
  4490. test -z "$as_dir" && as_dir=.
  4491. for ac_exec_ext in '' $ac_executable_extensions; do
  4492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4493. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4495. break 2
  4496. fi
  4497. done
  4498. done
  4499. IFS=$as_save_IFS
  4500. fi
  4501. fi
  4502. CC=$ac_cv_prog_CC
  4503. if test -n "$CC"; then
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4505. $as_echo "$CC" >&6; }
  4506. else
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4508. $as_echo "no" >&6; }
  4509. fi
  4510. fi
  4511. if test -z "$ac_cv_prog_CC"; then
  4512. ac_ct_CC=$CC
  4513. # Extract the first word of "gcc", so it can be a program name with args.
  4514. set dummy gcc; ac_word=$2
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4516. $as_echo_n "checking for $ac_word... " >&6; }
  4517. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4518. $as_echo_n "(cached) " >&6
  4519. else
  4520. if test -n "$ac_ct_CC"; then
  4521. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4522. else
  4523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4524. for as_dir in $PATH
  4525. do
  4526. IFS=$as_save_IFS
  4527. test -z "$as_dir" && as_dir=.
  4528. for ac_exec_ext in '' $ac_executable_extensions; do
  4529. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4530. ac_cv_prog_ac_ct_CC="gcc"
  4531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4532. break 2
  4533. fi
  4534. done
  4535. done
  4536. IFS=$as_save_IFS
  4537. fi
  4538. fi
  4539. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4540. if test -n "$ac_ct_CC"; then
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4542. $as_echo "$ac_ct_CC" >&6; }
  4543. else
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4545. $as_echo "no" >&6; }
  4546. fi
  4547. if test "x$ac_ct_CC" = x; then
  4548. CC=":"
  4549. else
  4550. case $cross_compiling:$ac_tool_warned in
  4551. yes:)
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4553. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4554. ac_tool_warned=yes ;;
  4555. esac
  4556. CC=$ac_ct_CC
  4557. fi
  4558. else
  4559. CC="$ac_cv_prog_CC"
  4560. fi
  4561. if test -n "$ac_tool_prefix"; then
  4562. # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
  4563. set dummy ${ac_tool_prefix}g++; ac_word=$2
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4565. $as_echo_n "checking for $ac_word... " >&6; }
  4566. if ${ac_cv_prog_CXX+:} false; then :
  4567. $as_echo_n "(cached) " >&6
  4568. else
  4569. if test -n "$CXX"; then
  4570. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4571. else
  4572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4573. for as_dir in $PATH
  4574. do
  4575. IFS=$as_save_IFS
  4576. test -z "$as_dir" && as_dir=.
  4577. for ac_exec_ext in '' $ac_executable_extensions; do
  4578. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4579. ac_cv_prog_CXX="${ac_tool_prefix}g++"
  4580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4581. break 2
  4582. fi
  4583. done
  4584. done
  4585. IFS=$as_save_IFS
  4586. fi
  4587. fi
  4588. CXX=$ac_cv_prog_CXX
  4589. if test -n "$CXX"; then
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4591. $as_echo "$CXX" >&6; }
  4592. else
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4594. $as_echo "no" >&6; }
  4595. fi
  4596. fi
  4597. if test -z "$ac_cv_prog_CXX"; then
  4598. ac_ct_CXX=$CXX
  4599. # Extract the first word of "g++", so it can be a program name with args.
  4600. set dummy g++; ac_word=$2
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4602. $as_echo_n "checking for $ac_word... " >&6; }
  4603. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. if test -n "$ac_ct_CXX"; then
  4607. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4608. else
  4609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4610. for as_dir in $PATH
  4611. do
  4612. IFS=$as_save_IFS
  4613. test -z "$as_dir" && as_dir=.
  4614. for ac_exec_ext in '' $ac_executable_extensions; do
  4615. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4616. ac_cv_prog_ac_ct_CXX="g++"
  4617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4618. break 2
  4619. fi
  4620. done
  4621. done
  4622. IFS=$as_save_IFS
  4623. fi
  4624. fi
  4625. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4626. if test -n "$ac_ct_CXX"; then
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4628. $as_echo "$ac_ct_CXX" >&6; }
  4629. else
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4631. $as_echo "no" >&6; }
  4632. fi
  4633. if test "x$ac_ct_CXX" = x; then
  4634. CXX=":"
  4635. else
  4636. case $cross_compiling:$ac_tool_warned in
  4637. yes:)
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4639. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4640. ac_tool_warned=yes ;;
  4641. esac
  4642. CXX=$ac_ct_CXX
  4643. fi
  4644. else
  4645. CXX="$ac_cv_prog_CXX"
  4646. fi
  4647. if test -n "$ac_tool_prefix"; then
  4648. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  4649. set dummy ${ac_tool_prefix}ld; ac_word=$2
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4651. $as_echo_n "checking for $ac_word... " >&6; }
  4652. if ${ac_cv_prog_LD+:} false; then :
  4653. $as_echo_n "(cached) " >&6
  4654. else
  4655. if test -n "$LD"; then
  4656. ac_cv_prog_LD="$LD" # Let the user override the test.
  4657. else
  4658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4659. for as_dir in $PATH
  4660. do
  4661. IFS=$as_save_IFS
  4662. test -z "$as_dir" && as_dir=.
  4663. for ac_exec_ext in '' $ac_executable_extensions; do
  4664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4665. ac_cv_prog_LD="${ac_tool_prefix}ld"
  4666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4667. break 2
  4668. fi
  4669. done
  4670. done
  4671. IFS=$as_save_IFS
  4672. fi
  4673. fi
  4674. LD=$ac_cv_prog_LD
  4675. if test -n "$LD"; then
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4677. $as_echo "$LD" >&6; }
  4678. else
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4680. $as_echo "no" >&6; }
  4681. fi
  4682. fi
  4683. if test -z "$ac_cv_prog_LD"; then
  4684. ac_ct_LD=$LD
  4685. # Extract the first word of "ld", so it can be a program name with args.
  4686. set dummy ld; ac_word=$2
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4688. $as_echo_n "checking for $ac_word... " >&6; }
  4689. if ${ac_cv_prog_ac_ct_LD+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. if test -n "$ac_ct_LD"; then
  4693. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  4694. else
  4695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4696. for as_dir in $PATH
  4697. do
  4698. IFS=$as_save_IFS
  4699. test -z "$as_dir" && as_dir=.
  4700. for ac_exec_ext in '' $ac_executable_extensions; do
  4701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4702. ac_cv_prog_ac_ct_LD="ld"
  4703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4704. break 2
  4705. fi
  4706. done
  4707. done
  4708. IFS=$as_save_IFS
  4709. fi
  4710. fi
  4711. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  4712. if test -n "$ac_ct_LD"; then
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
  4714. $as_echo "$ac_ct_LD" >&6; }
  4715. else
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4717. $as_echo "no" >&6; }
  4718. fi
  4719. if test "x$ac_ct_LD" = x; then
  4720. LD=":"
  4721. else
  4722. case $cross_compiling:$ac_tool_warned in
  4723. yes:)
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4725. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4726. ac_tool_warned=yes ;;
  4727. esac
  4728. LD=$ac_ct_LD
  4729. fi
  4730. else
  4731. LD="$ac_cv_prog_LD"
  4732. fi
  4733. if test -n "$ac_tool_prefix"; then
  4734. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4735. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4737. $as_echo_n "checking for $ac_word... " >&6; }
  4738. if ${ac_cv_prog_RANLIB+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. if test -n "$RANLIB"; then
  4742. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4743. else
  4744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4745. for as_dir in $PATH
  4746. do
  4747. IFS=$as_save_IFS
  4748. test -z "$as_dir" && as_dir=.
  4749. for ac_exec_ext in '' $ac_executable_extensions; do
  4750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4751. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4753. break 2
  4754. fi
  4755. done
  4756. done
  4757. IFS=$as_save_IFS
  4758. fi
  4759. fi
  4760. RANLIB=$ac_cv_prog_RANLIB
  4761. if test -n "$RANLIB"; then
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4763. $as_echo "$RANLIB" >&6; }
  4764. else
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4766. $as_echo "no" >&6; }
  4767. fi
  4768. fi
  4769. if test -z "$ac_cv_prog_RANLIB"; then
  4770. ac_ct_RANLIB=$RANLIB
  4771. # Extract the first word of "ranlib", so it can be a program name with args.
  4772. set dummy ranlib; ac_word=$2
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4774. $as_echo_n "checking for $ac_word... " >&6; }
  4775. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4776. $as_echo_n "(cached) " >&6
  4777. else
  4778. if test -n "$ac_ct_RANLIB"; then
  4779. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4780. else
  4781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4782. for as_dir in $PATH
  4783. do
  4784. IFS=$as_save_IFS
  4785. test -z "$as_dir" && as_dir=.
  4786. for ac_exec_ext in '' $ac_executable_extensions; do
  4787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4788. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4790. break 2
  4791. fi
  4792. done
  4793. done
  4794. IFS=$as_save_IFS
  4795. fi
  4796. fi
  4797. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4798. if test -n "$ac_ct_RANLIB"; then
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4800. $as_echo "$ac_ct_RANLIB" >&6; }
  4801. else
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4803. $as_echo "no" >&6; }
  4804. fi
  4805. if test "x$ac_ct_RANLIB" = x; then
  4806. RANLIB=":"
  4807. else
  4808. case $cross_compiling:$ac_tool_warned in
  4809. yes:)
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4811. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4812. ac_tool_warned=yes ;;
  4813. esac
  4814. RANLIB=$ac_ct_RANLIB
  4815. fi
  4816. else
  4817. RANLIB="$ac_cv_prog_RANLIB"
  4818. fi
  4819. fi
  4820. # Checks for programs.
  4821. ac_ext=cpp
  4822. ac_cpp='$CXXCPP $CPPFLAGS'
  4823. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4824. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4825. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4826. if test -z "$CXX"; then
  4827. if test -n "$CCC"; then
  4828. CXX=$CCC
  4829. else
  4830. if test -n "$ac_tool_prefix"; then
  4831. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4832. do
  4833. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4834. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4836. $as_echo_n "checking for $ac_word... " >&6; }
  4837. if ${ac_cv_prog_CXX+:} false; then :
  4838. $as_echo_n "(cached) " >&6
  4839. else
  4840. if test -n "$CXX"; then
  4841. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4842. else
  4843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4844. for as_dir in $PATH
  4845. do
  4846. IFS=$as_save_IFS
  4847. test -z "$as_dir" && as_dir=.
  4848. for ac_exec_ext in '' $ac_executable_extensions; do
  4849. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4850. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4852. break 2
  4853. fi
  4854. done
  4855. done
  4856. IFS=$as_save_IFS
  4857. fi
  4858. fi
  4859. CXX=$ac_cv_prog_CXX
  4860. if test -n "$CXX"; then
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4862. $as_echo "$CXX" >&6; }
  4863. else
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4865. $as_echo "no" >&6; }
  4866. fi
  4867. test -n "$CXX" && break
  4868. done
  4869. fi
  4870. if test -z "$CXX"; then
  4871. ac_ct_CXX=$CXX
  4872. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4873. do
  4874. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4875. set dummy $ac_prog; ac_word=$2
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4877. $as_echo_n "checking for $ac_word... " >&6; }
  4878. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4879. $as_echo_n "(cached) " >&6
  4880. else
  4881. if test -n "$ac_ct_CXX"; then
  4882. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4883. else
  4884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4885. for as_dir in $PATH
  4886. do
  4887. IFS=$as_save_IFS
  4888. test -z "$as_dir" && as_dir=.
  4889. for ac_exec_ext in '' $ac_executable_extensions; do
  4890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4891. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4893. break 2
  4894. fi
  4895. done
  4896. done
  4897. IFS=$as_save_IFS
  4898. fi
  4899. fi
  4900. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4901. if test -n "$ac_ct_CXX"; then
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4903. $as_echo "$ac_ct_CXX" >&6; }
  4904. else
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4906. $as_echo "no" >&6; }
  4907. fi
  4908. test -n "$ac_ct_CXX" && break
  4909. done
  4910. if test "x$ac_ct_CXX" = x; then
  4911. CXX="g++"
  4912. else
  4913. case $cross_compiling:$ac_tool_warned in
  4914. yes:)
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4916. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4917. ac_tool_warned=yes ;;
  4918. esac
  4919. CXX=$ac_ct_CXX
  4920. fi
  4921. fi
  4922. fi
  4923. fi
  4924. # Provide some information about the compiler.
  4925. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4926. set X $ac_compile
  4927. ac_compiler=$2
  4928. for ac_option in --version -v -V -qversion; do
  4929. { { ac_try="$ac_compiler $ac_option >&5"
  4930. case "(($ac_try" in
  4931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4932. *) ac_try_echo=$ac_try;;
  4933. esac
  4934. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4935. $as_echo "$ac_try_echo"; } >&5
  4936. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4937. ac_status=$?
  4938. if test -s conftest.err; then
  4939. sed '10a\
  4940. ... rest of stderr output deleted ...
  4941. 10q' conftest.err >conftest.er1
  4942. cat conftest.er1 >&5
  4943. fi
  4944. rm -f conftest.er1 conftest.err
  4945. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4946. test $ac_status = 0; }
  4947. done
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4949. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4950. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4951. $as_echo_n "(cached) " >&6
  4952. else
  4953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4954. /* end confdefs.h. */
  4955. int
  4956. main ()
  4957. {
  4958. #ifndef __GNUC__
  4959. choke me
  4960. #endif
  4961. ;
  4962. return 0;
  4963. }
  4964. _ACEOF
  4965. if ac_fn_cxx_try_compile "$LINENO"; then :
  4966. ac_compiler_gnu=yes
  4967. else
  4968. ac_compiler_gnu=no
  4969. fi
  4970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4971. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4972. fi
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4974. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4975. if test $ac_compiler_gnu = yes; then
  4976. GXX=yes
  4977. else
  4978. GXX=
  4979. fi
  4980. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4981. ac_save_CXXFLAGS=$CXXFLAGS
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4983. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4984. if ${ac_cv_prog_cxx_g+:} false; then :
  4985. $as_echo_n "(cached) " >&6
  4986. else
  4987. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4988. ac_cxx_werror_flag=yes
  4989. ac_cv_prog_cxx_g=no
  4990. CXXFLAGS="-g"
  4991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4992. /* end confdefs.h. */
  4993. int
  4994. main ()
  4995. {
  4996. ;
  4997. return 0;
  4998. }
  4999. _ACEOF
  5000. if ac_fn_cxx_try_compile "$LINENO"; then :
  5001. ac_cv_prog_cxx_g=yes
  5002. else
  5003. CXXFLAGS=""
  5004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5005. /* end confdefs.h. */
  5006. int
  5007. main ()
  5008. {
  5009. ;
  5010. return 0;
  5011. }
  5012. _ACEOF
  5013. if ac_fn_cxx_try_compile "$LINENO"; then :
  5014. else
  5015. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5016. CXXFLAGS="-g"
  5017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5018. /* end confdefs.h. */
  5019. int
  5020. main ()
  5021. {
  5022. ;
  5023. return 0;
  5024. }
  5025. _ACEOF
  5026. if ac_fn_cxx_try_compile "$LINENO"; then :
  5027. ac_cv_prog_cxx_g=yes
  5028. fi
  5029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5030. fi
  5031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5032. fi
  5033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5034. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5035. fi
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5037. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5038. if test "$ac_test_CXXFLAGS" = set; then
  5039. CXXFLAGS=$ac_save_CXXFLAGS
  5040. elif test $ac_cv_prog_cxx_g = yes; then
  5041. if test "$GXX" = yes; then
  5042. CXXFLAGS="-g -O2"
  5043. else
  5044. CXXFLAGS="-g"
  5045. fi
  5046. else
  5047. if test "$GXX" = yes; then
  5048. CXXFLAGS="-O2"
  5049. else
  5050. CXXFLAGS=
  5051. fi
  5052. fi
  5053. ac_ext=c
  5054. ac_cpp='$CPP $CPPFLAGS'
  5055. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5056. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5057. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5058. ac_ext=c
  5059. ac_cpp='$CPP $CPPFLAGS'
  5060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5064. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5065. # On Suns, sometimes $CPP names a directory.
  5066. if test -n "$CPP" && test -d "$CPP"; then
  5067. CPP=
  5068. fi
  5069. if test -z "$CPP"; then
  5070. if ${ac_cv_prog_CPP+:} false; then :
  5071. $as_echo_n "(cached) " >&6
  5072. else
  5073. # Double quotes because CPP needs to be expanded
  5074. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5075. do
  5076. ac_preproc_ok=false
  5077. for ac_c_preproc_warn_flag in '' yes
  5078. do
  5079. # Use a header file that comes with gcc, so configuring glibc
  5080. # with a fresh cross-compiler works.
  5081. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5082. # <limits.h> exists even on freestanding compilers.
  5083. # On the NeXT, cc -E runs the code through the compiler's parser,
  5084. # not just through cpp. "Syntax error" is here to catch this case.
  5085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5086. /* end confdefs.h. */
  5087. #ifdef __STDC__
  5088. # include <limits.h>
  5089. #else
  5090. # include <assert.h>
  5091. #endif
  5092. Syntax error
  5093. _ACEOF
  5094. if ac_fn_c_try_cpp "$LINENO"; then :
  5095. else
  5096. # Broken: fails on valid input.
  5097. continue
  5098. fi
  5099. rm -f conftest.err conftest.i conftest.$ac_ext
  5100. # OK, works on sane cases. Now check whether nonexistent headers
  5101. # can be detected and how.
  5102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5103. /* end confdefs.h. */
  5104. #include <ac_nonexistent.h>
  5105. _ACEOF
  5106. if ac_fn_c_try_cpp "$LINENO"; then :
  5107. # Broken: success on invalid input.
  5108. continue
  5109. else
  5110. # Passes both tests.
  5111. ac_preproc_ok=:
  5112. break
  5113. fi
  5114. rm -f conftest.err conftest.i conftest.$ac_ext
  5115. done
  5116. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5117. rm -f conftest.i conftest.err conftest.$ac_ext
  5118. if $ac_preproc_ok; then :
  5119. break
  5120. fi
  5121. done
  5122. ac_cv_prog_CPP=$CPP
  5123. fi
  5124. CPP=$ac_cv_prog_CPP
  5125. else
  5126. ac_cv_prog_CPP=$CPP
  5127. fi
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5129. $as_echo "$CPP" >&6; }
  5130. ac_preproc_ok=false
  5131. for ac_c_preproc_warn_flag in '' yes
  5132. do
  5133. # Use a header file that comes with gcc, so configuring glibc
  5134. # with a fresh cross-compiler works.
  5135. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5136. # <limits.h> exists even on freestanding compilers.
  5137. # On the NeXT, cc -E runs the code through the compiler's parser,
  5138. # not just through cpp. "Syntax error" is here to catch this case.
  5139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5140. /* end confdefs.h. */
  5141. #ifdef __STDC__
  5142. # include <limits.h>
  5143. #else
  5144. # include <assert.h>
  5145. #endif
  5146. Syntax error
  5147. _ACEOF
  5148. if ac_fn_c_try_cpp "$LINENO"; then :
  5149. else
  5150. # Broken: fails on valid input.
  5151. continue
  5152. fi
  5153. rm -f conftest.err conftest.i conftest.$ac_ext
  5154. # OK, works on sane cases. Now check whether nonexistent headers
  5155. # can be detected and how.
  5156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5157. /* end confdefs.h. */
  5158. #include <ac_nonexistent.h>
  5159. _ACEOF
  5160. if ac_fn_c_try_cpp "$LINENO"; then :
  5161. # Broken: success on invalid input.
  5162. continue
  5163. else
  5164. # Passes both tests.
  5165. ac_preproc_ok=:
  5166. break
  5167. fi
  5168. rm -f conftest.err conftest.i conftest.$ac_ext
  5169. done
  5170. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5171. rm -f conftest.i conftest.err conftest.$ac_ext
  5172. if $ac_preproc_ok; then :
  5173. else
  5174. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5175. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5176. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5177. See \`config.log' for more details" "$LINENO" 5; }
  5178. fi
  5179. ac_ext=c
  5180. ac_cpp='$CPP $CPPFLAGS'
  5181. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5182. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5183. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5184. ac_ext=cpp
  5185. ac_cpp='$CXXCPP $CPPFLAGS'
  5186. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5187. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5188. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  5190. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  5191. if test -z "$CXXCPP"; then
  5192. if ${ac_cv_prog_CXXCPP+:} false; then :
  5193. $as_echo_n "(cached) " >&6
  5194. else
  5195. # Double quotes because CXXCPP needs to be expanded
  5196. for CXXCPP in "$CXX -E" "/lib/cpp"
  5197. do
  5198. ac_preproc_ok=false
  5199. for ac_cxx_preproc_warn_flag in '' yes
  5200. do
  5201. # Use a header file that comes with gcc, so configuring glibc
  5202. # with a fresh cross-compiler works.
  5203. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5204. # <limits.h> exists even on freestanding compilers.
  5205. # On the NeXT, cc -E runs the code through the compiler's parser,
  5206. # not just through cpp. "Syntax error" is here to catch this case.
  5207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5208. /* end confdefs.h. */
  5209. #ifdef __STDC__
  5210. # include <limits.h>
  5211. #else
  5212. # include <assert.h>
  5213. #endif
  5214. Syntax error
  5215. _ACEOF
  5216. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5217. else
  5218. # Broken: fails on valid input.
  5219. continue
  5220. fi
  5221. rm -f conftest.err conftest.i conftest.$ac_ext
  5222. # OK, works on sane cases. Now check whether nonexistent headers
  5223. # can be detected and how.
  5224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5225. /* end confdefs.h. */
  5226. #include <ac_nonexistent.h>
  5227. _ACEOF
  5228. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5229. # Broken: success on invalid input.
  5230. continue
  5231. else
  5232. # Passes both tests.
  5233. ac_preproc_ok=:
  5234. break
  5235. fi
  5236. rm -f conftest.err conftest.i conftest.$ac_ext
  5237. done
  5238. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5239. rm -f conftest.i conftest.err conftest.$ac_ext
  5240. if $ac_preproc_ok; then :
  5241. break
  5242. fi
  5243. done
  5244. ac_cv_prog_CXXCPP=$CXXCPP
  5245. fi
  5246. CXXCPP=$ac_cv_prog_CXXCPP
  5247. else
  5248. ac_cv_prog_CXXCPP=$CXXCPP
  5249. fi
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  5251. $as_echo "$CXXCPP" >&6; }
  5252. ac_preproc_ok=false
  5253. for ac_cxx_preproc_warn_flag in '' yes
  5254. do
  5255. # Use a header file that comes with gcc, so configuring glibc
  5256. # with a fresh cross-compiler works.
  5257. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5258. # <limits.h> exists even on freestanding compilers.
  5259. # On the NeXT, cc -E runs the code through the compiler's parser,
  5260. # not just through cpp. "Syntax error" is here to catch this case.
  5261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5262. /* end confdefs.h. */
  5263. #ifdef __STDC__
  5264. # include <limits.h>
  5265. #else
  5266. # include <assert.h>
  5267. #endif
  5268. Syntax error
  5269. _ACEOF
  5270. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5271. else
  5272. # Broken: fails on valid input.
  5273. continue
  5274. fi
  5275. rm -f conftest.err conftest.i conftest.$ac_ext
  5276. # OK, works on sane cases. Now check whether nonexistent headers
  5277. # can be detected and how.
  5278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5279. /* end confdefs.h. */
  5280. #include <ac_nonexistent.h>
  5281. _ACEOF
  5282. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5283. # Broken: success on invalid input.
  5284. continue
  5285. else
  5286. # Passes both tests.
  5287. ac_preproc_ok=:
  5288. break
  5289. fi
  5290. rm -f conftest.err conftest.i conftest.$ac_ext
  5291. done
  5292. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5293. rm -f conftest.i conftest.err conftest.$ac_ext
  5294. if $ac_preproc_ok; then :
  5295. else
  5296. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5297. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5298. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  5299. See \`config.log' for more details" "$LINENO" 5; }
  5300. fi
  5301. ac_ext=c
  5302. ac_cpp='$CPP $CPPFLAGS'
  5303. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5304. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5305. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5306. # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
  5307. # the developers regenerating the configure script don't have to install libtool.
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5309. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5310. if ${ac_cv_path_SED+:} false; then :
  5311. $as_echo_n "(cached) " >&6
  5312. else
  5313. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5314. for ac_i in 1 2 3 4 5 6 7; do
  5315. ac_script="$ac_script$as_nl$ac_script"
  5316. done
  5317. echo "$ac_script" | sed 99q >conftest.sed
  5318. $as_unset ac_script || ac_script=
  5319. if test -z "$SED"; then
  5320. ac_path_SED_found=false
  5321. # Loop through the user's path and test for each of PROGNAME-LIST
  5322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5323. for as_dir in $PATH
  5324. do
  5325. IFS=$as_save_IFS
  5326. test -z "$as_dir" && as_dir=.
  5327. for ac_prog in sed gsed; do
  5328. for ac_exec_ext in '' $ac_executable_extensions; do
  5329. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5330. as_fn_executable_p "$ac_path_SED" || continue
  5331. # Check for GNU ac_path_SED and select it if it is found.
  5332. # Check for GNU $ac_path_SED
  5333. case `"$ac_path_SED" --version 2>&1` in
  5334. *GNU*)
  5335. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5336. *)
  5337. ac_count=0
  5338. $as_echo_n 0123456789 >"conftest.in"
  5339. while :
  5340. do
  5341. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5342. mv "conftest.tmp" "conftest.in"
  5343. cp "conftest.in" "conftest.nl"
  5344. $as_echo '' >> "conftest.nl"
  5345. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5346. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5347. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5348. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5349. # Best one so far, save it but keep looking for a better one
  5350. ac_cv_path_SED="$ac_path_SED"
  5351. ac_path_SED_max=$ac_count
  5352. fi
  5353. # 10*(2^10) chars as input seems more than enough
  5354. test $ac_count -gt 10 && break
  5355. done
  5356. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5357. esac
  5358. $ac_path_SED_found && break 3
  5359. done
  5360. done
  5361. done
  5362. IFS=$as_save_IFS
  5363. if test -z "$ac_cv_path_SED"; then
  5364. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5365. fi
  5366. else
  5367. ac_cv_path_SED=$SED
  5368. fi
  5369. fi
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5371. $as_echo "$ac_cv_path_SED" >&6; }
  5372. SED="$ac_cv_path_SED"
  5373. rm -f conftest.sed
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5375. $as_echo_n "checking for egrep... " >&6; }
  5376. if ${ac_cv_prog_egrep+:} false; then :
  5377. $as_echo_n "(cached) " >&6
  5378. else
  5379. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5380. then ac_cv_prog_egrep='grep -E'
  5381. else ac_cv_prog_egrep='egrep'
  5382. fi
  5383. fi
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_egrep" >&5
  5385. $as_echo "$ac_cv_prog_egrep" >&6; }
  5386. EGREP=$ac_cv_prog_egrep
  5387. # Check whether --with-gnu-ld was given.
  5388. if test "${with_gnu_ld+set}" = set; then :
  5389. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5390. else
  5391. with_gnu_ld=no
  5392. fi
  5393. ac_prog=ld
  5394. if test "$GCC" = yes; then
  5395. # Check if gcc -print-prog-name=ld gives a path.
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5397. $as_echo_n "checking for ld used by $CC... " >&6; }
  5398. case $host in
  5399. *-*-mingw*)
  5400. # gcc leaves a trailing carriage return which upsets mingw
  5401. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5402. *)
  5403. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5404. esac
  5405. case $ac_prog in
  5406. # Accept absolute paths.
  5407. [\\/]* | ?:[\\/]*)
  5408. re_direlt='/[^/][^/]*/\.\./'
  5409. # Canonicalize the pathname of ld
  5410. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5411. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5412. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5413. done
  5414. test -z "$LD" && LD="$ac_prog"
  5415. ;;
  5416. "")
  5417. # If it fails, then pretend we aren't using GCC.
  5418. ac_prog=ld
  5419. ;;
  5420. *)
  5421. # If it is relative, then search for the first ld in PATH.
  5422. with_gnu_ld=unknown
  5423. ;;
  5424. esac
  5425. elif test "$with_gnu_ld" = yes; then
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5427. $as_echo_n "checking for GNU ld... " >&6; }
  5428. else
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5430. $as_echo_n "checking for non-GNU ld... " >&6; }
  5431. fi
  5432. if ${lt_cv_path_LD+:} false; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. if test -z "$LD"; then
  5436. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5437. for ac_dir in $PATH; do
  5438. IFS="$lt_save_ifs"
  5439. test -z "$ac_dir" && ac_dir=.
  5440. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5441. lt_cv_path_LD="$ac_dir/$ac_prog"
  5442. # Check to see if the program is GNU ld. I'd rather use --version,
  5443. # but apparently some variants of GNU ld only accept -v.
  5444. # Break only if it was the GNU/non-GNU ld that we prefer.
  5445. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5446. *GNU* | *'with BFD'*)
  5447. test "$with_gnu_ld" != no && break
  5448. ;;
  5449. *)
  5450. test "$with_gnu_ld" != yes && break
  5451. ;;
  5452. esac
  5453. fi
  5454. done
  5455. IFS="$lt_save_ifs"
  5456. else
  5457. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5458. fi
  5459. fi
  5460. LD="$lt_cv_path_LD"
  5461. if test -n "$LD"; then
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5463. $as_echo "$LD" >&6; }
  5464. else
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5466. $as_echo "no" >&6; }
  5467. fi
  5468. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5470. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5471. if ${lt_cv_prog_gnu_ld+:} false; then :
  5472. $as_echo_n "(cached) " >&6
  5473. else
  5474. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5475. case `$LD -v 2>&1 </dev/null` in
  5476. *GNU* | *'with BFD'*)
  5477. lt_cv_prog_gnu_ld=yes
  5478. ;;
  5479. *)
  5480. lt_cv_prog_gnu_ld=no
  5481. ;;
  5482. esac
  5483. fi
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5485. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5486. with_gnu_ld=$lt_cv_prog_gnu_ld
  5487. # note, does not work on FreeBSD
  5488. for ac_prog in gawk mawk nawk awk
  5489. do
  5490. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5491. set dummy $ac_prog; ac_word=$2
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5493. $as_echo_n "checking for $ac_word... " >&6; }
  5494. if ${ac_cv_prog_AWK+:} false; then :
  5495. $as_echo_n "(cached) " >&6
  5496. else
  5497. if test -n "$AWK"; then
  5498. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5499. else
  5500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5501. for as_dir in $PATH
  5502. do
  5503. IFS=$as_save_IFS
  5504. test -z "$as_dir" && as_dir=.
  5505. for ac_exec_ext in '' $ac_executable_extensions; do
  5506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5507. ac_cv_prog_AWK="$ac_prog"
  5508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5509. break 2
  5510. fi
  5511. done
  5512. done
  5513. IFS=$as_save_IFS
  5514. fi
  5515. fi
  5516. AWK=$ac_cv_prog_AWK
  5517. if test -n "$AWK"; then
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5519. $as_echo "$AWK" >&6; }
  5520. else
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5522. $as_echo "no" >&6; }
  5523. fi
  5524. test -n "$AWK" && break
  5525. done
  5526. # Find a good install program. We prefer a C program (faster),
  5527. # so one script is as good as another. But avoid the broken or
  5528. # incompatible versions:
  5529. # SysV /etc/install, /usr/sbin/install
  5530. # SunOS /usr/etc/install
  5531. # IRIX /sbin/install
  5532. # AIX /bin/install
  5533. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5534. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5535. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5536. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5537. # OS/2's system install, which has a completely different semantic
  5538. # ./install, which can be erroneously created by make from ./install.sh.
  5539. # Reject install programs that cannot install multiple files.
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  5541. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  5542. if test -z "$INSTALL"; then
  5543. if ${ac_cv_path_install+:} false; then :
  5544. $as_echo_n "(cached) " >&6
  5545. else
  5546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5547. for as_dir in $PATH
  5548. do
  5549. IFS=$as_save_IFS
  5550. test -z "$as_dir" && as_dir=.
  5551. # Account for people who put trailing slashes in PATH elements.
  5552. case $as_dir/ in #((
  5553. ./ | .// | /[cC]/* | \
  5554. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5555. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  5556. /usr/ucb/* ) ;;
  5557. *)
  5558. # OSF1 and SCO ODT 3.0 have their own names for install.
  5559. # Don't use installbsd from OSF since it installs stuff as root
  5560. # by default.
  5561. for ac_prog in ginstall scoinst install; do
  5562. for ac_exec_ext in '' $ac_executable_extensions; do
  5563. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  5564. if test $ac_prog = install &&
  5565. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5566. # AIX install. It has an incompatible calling convention.
  5567. :
  5568. elif test $ac_prog = install &&
  5569. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5570. # program-specific install script used by HP pwplus--don't use.
  5571. :
  5572. else
  5573. rm -rf conftest.one conftest.two conftest.dir
  5574. echo one > conftest.one
  5575. echo two > conftest.two
  5576. mkdir conftest.dir
  5577. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  5578. test -s conftest.one && test -s conftest.two &&
  5579. test -s conftest.dir/conftest.one &&
  5580. test -s conftest.dir/conftest.two
  5581. then
  5582. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5583. break 3
  5584. fi
  5585. fi
  5586. fi
  5587. done
  5588. done
  5589. ;;
  5590. esac
  5591. done
  5592. IFS=$as_save_IFS
  5593. rm -rf conftest.one conftest.two conftest.dir
  5594. fi
  5595. if test "${ac_cv_path_install+set}" = set; then
  5596. INSTALL=$ac_cv_path_install
  5597. else
  5598. # As a last resort, use the slow shell script. Don't cache a
  5599. # value for INSTALL within a source directory, because that will
  5600. # break other packages using the cache if that directory is
  5601. # removed, or if the value is a relative name.
  5602. INSTALL=$ac_install_sh
  5603. fi
  5604. fi
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  5606. $as_echo "$INSTALL" >&6; }
  5607. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5608. # It thinks the first close brace ends the variable substitution.
  5609. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5610. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5611. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5613. $as_echo_n "checking whether ln -s works... " >&6; }
  5614. LN_S=$as_ln_s
  5615. if test "$LN_S" = "ln -s"; then
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5617. $as_echo "yes" >&6; }
  5618. else
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5620. $as_echo "no, using $LN_S" >&6; }
  5621. fi
  5622. if test -n "$ac_tool_prefix"; then
  5623. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5624. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5626. $as_echo_n "checking for $ac_word... " >&6; }
  5627. if ${ac_cv_prog_RANLIB+:} false; then :
  5628. $as_echo_n "(cached) " >&6
  5629. else
  5630. if test -n "$RANLIB"; then
  5631. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5632. else
  5633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5634. for as_dir in $PATH
  5635. do
  5636. IFS=$as_save_IFS
  5637. test -z "$as_dir" && as_dir=.
  5638. for ac_exec_ext in '' $ac_executable_extensions; do
  5639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5640. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5642. break 2
  5643. fi
  5644. done
  5645. done
  5646. IFS=$as_save_IFS
  5647. fi
  5648. fi
  5649. RANLIB=$ac_cv_prog_RANLIB
  5650. if test -n "$RANLIB"; then
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5652. $as_echo "$RANLIB" >&6; }
  5653. else
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5655. $as_echo "no" >&6; }
  5656. fi
  5657. fi
  5658. if test -z "$ac_cv_prog_RANLIB"; then
  5659. ac_ct_RANLIB=$RANLIB
  5660. # Extract the first word of "ranlib", so it can be a program name with args.
  5661. set dummy ranlib; ac_word=$2
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5663. $as_echo_n "checking for $ac_word... " >&6; }
  5664. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5665. $as_echo_n "(cached) " >&6
  5666. else
  5667. if test -n "$ac_ct_RANLIB"; then
  5668. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5669. else
  5670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5671. for as_dir in $PATH
  5672. do
  5673. IFS=$as_save_IFS
  5674. test -z "$as_dir" && as_dir=.
  5675. for ac_exec_ext in '' $ac_executable_extensions; do
  5676. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5677. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5679. break 2
  5680. fi
  5681. done
  5682. done
  5683. IFS=$as_save_IFS
  5684. fi
  5685. fi
  5686. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5687. if test -n "$ac_ct_RANLIB"; then
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5689. $as_echo "$ac_ct_RANLIB" >&6; }
  5690. else
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5692. $as_echo "no" >&6; }
  5693. fi
  5694. if test "x$ac_ct_RANLIB" = x; then
  5695. RANLIB=":"
  5696. else
  5697. case $cross_compiling:$ac_tool_warned in
  5698. yes:)
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5700. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5701. ac_tool_warned=yes ;;
  5702. esac
  5703. RANLIB=$ac_ct_RANLIB
  5704. fi
  5705. else
  5706. RANLIB="$ac_cv_prog_RANLIB"
  5707. fi
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  5709. $as_echo_n "checking for GNU make... " >&6; }
  5710. if ${ac_cv_GNU_MAKE+:} false; then :
  5711. $as_echo_n "(cached) " >&6
  5712. else
  5713. ac_cv_GNU_MAKE='Not Found' ;
  5714. ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
  5715. ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
  5716. for a in make gmake gnumake ; do
  5717. if test -z "$a" ; then continue ; fi ;
  5718. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
  5719. ac_cv_GNU_MAKE=$a ;
  5720. ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
  5721. ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
  5722. break;
  5723. fi
  5724. done ;
  5725. fi
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
  5727. $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
  5728. if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
  5729. as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
  5730. exit 1
  5731. fi
  5732. GNU_MAKE=$ac_cv_GNU_MAKE
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5734. $as_echo_n "checking for egrep... " >&6; }
  5735. if ${ac_cv_path_EGREP+:} false; then :
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5739. then ac_cv_path_EGREP="$GREP -E"
  5740. else
  5741. if test -z "$EGREP"; then
  5742. ac_path_EGREP_found=false
  5743. # Loop through the user's path and test for each of PROGNAME-LIST
  5744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5745. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5746. do
  5747. IFS=$as_save_IFS
  5748. test -z "$as_dir" && as_dir=.
  5749. for ac_prog in egrep; do
  5750. for ac_exec_ext in '' $ac_executable_extensions; do
  5751. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5752. as_fn_executable_p "$ac_path_EGREP" || continue
  5753. # Check for GNU ac_path_EGREP and select it if it is found.
  5754. # Check for GNU $ac_path_EGREP
  5755. case `"$ac_path_EGREP" --version 2>&1` in
  5756. *GNU*)
  5757. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5758. *)
  5759. ac_count=0
  5760. $as_echo_n 0123456789 >"conftest.in"
  5761. while :
  5762. do
  5763. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5764. mv "conftest.tmp" "conftest.in"
  5765. cp "conftest.in" "conftest.nl"
  5766. $as_echo 'EGREP' >> "conftest.nl"
  5767. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5768. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5769. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5770. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5771. # Best one so far, save it but keep looking for a better one
  5772. ac_cv_path_EGREP="$ac_path_EGREP"
  5773. ac_path_EGREP_max=$ac_count
  5774. fi
  5775. # 10*(2^10) chars as input seems more than enough
  5776. test $ac_count -gt 10 && break
  5777. done
  5778. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5779. esac
  5780. $ac_path_EGREP_found && break 3
  5781. done
  5782. done
  5783. done
  5784. IFS=$as_save_IFS
  5785. if test -z "$ac_cv_path_EGREP"; then
  5786. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5787. fi
  5788. else
  5789. ac_cv_path_EGREP=$EGREP
  5790. fi
  5791. fi
  5792. fi
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5794. $as_echo "$ac_cv_path_EGREP" >&6; }
  5795. EGREP="$ac_cv_path_EGREP"
  5796. if test -n "$ac_tool_prefix"; then
  5797. for ac_prog in strip gstrip
  5798. do
  5799. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5800. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5802. $as_echo_n "checking for $ac_word... " >&6; }
  5803. if ${ac_cv_prog_STRIP+:} false; then :
  5804. $as_echo_n "(cached) " >&6
  5805. else
  5806. if test -n "$STRIP"; then
  5807. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5808. else
  5809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5810. for as_dir in $PATH
  5811. do
  5812. IFS=$as_save_IFS
  5813. test -z "$as_dir" && as_dir=.
  5814. for ac_exec_ext in '' $ac_executable_extensions; do
  5815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5816. ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
  5817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5818. break 2
  5819. fi
  5820. done
  5821. done
  5822. IFS=$as_save_IFS
  5823. fi
  5824. fi
  5825. STRIP=$ac_cv_prog_STRIP
  5826. if test -n "$STRIP"; then
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5828. $as_echo "$STRIP" >&6; }
  5829. else
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5831. $as_echo "no" >&6; }
  5832. fi
  5833. test -n "$STRIP" && break
  5834. done
  5835. fi
  5836. if test -z "$STRIP"; then
  5837. ac_ct_STRIP=$STRIP
  5838. for ac_prog in strip gstrip
  5839. do
  5840. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5841. set dummy $ac_prog; ac_word=$2
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5843. $as_echo_n "checking for $ac_word... " >&6; }
  5844. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5845. $as_echo_n "(cached) " >&6
  5846. else
  5847. if test -n "$ac_ct_STRIP"; then
  5848. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5849. else
  5850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5851. for as_dir in $PATH
  5852. do
  5853. IFS=$as_save_IFS
  5854. test -z "$as_dir" && as_dir=.
  5855. for ac_exec_ext in '' $ac_executable_extensions; do
  5856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5857. ac_cv_prog_ac_ct_STRIP="$ac_prog"
  5858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5859. break 2
  5860. fi
  5861. done
  5862. done
  5863. IFS=$as_save_IFS
  5864. fi
  5865. fi
  5866. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5867. if test -n "$ac_ct_STRIP"; then
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5869. $as_echo "$ac_ct_STRIP" >&6; }
  5870. else
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5872. $as_echo "no" >&6; }
  5873. fi
  5874. test -n "$ac_ct_STRIP" && break
  5875. done
  5876. if test "x$ac_ct_STRIP" = x; then
  5877. STRIP=":"
  5878. else
  5879. case $cross_compiling:$ac_tool_warned in
  5880. yes:)
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5883. ac_tool_warned=yes ;;
  5884. esac
  5885. STRIP=$ac_ct_STRIP
  5886. fi
  5887. fi
  5888. if test -n "$ac_tool_prefix"; then
  5889. for ac_prog in ar gar
  5890. do
  5891. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5892. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5894. $as_echo_n "checking for $ac_word... " >&6; }
  5895. if ${ac_cv_prog_AR+:} false; then :
  5896. $as_echo_n "(cached) " >&6
  5897. else
  5898. if test -n "$AR"; then
  5899. ac_cv_prog_AR="$AR" # Let the user override the test.
  5900. else
  5901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5902. for as_dir in $PATH
  5903. do
  5904. IFS=$as_save_IFS
  5905. test -z "$as_dir" && as_dir=.
  5906. for ac_exec_ext in '' $ac_executable_extensions; do
  5907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5908. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5910. break 2
  5911. fi
  5912. done
  5913. done
  5914. IFS=$as_save_IFS
  5915. fi
  5916. fi
  5917. AR=$ac_cv_prog_AR
  5918. if test -n "$AR"; then
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5920. $as_echo "$AR" >&6; }
  5921. else
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5923. $as_echo "no" >&6; }
  5924. fi
  5925. test -n "$AR" && break
  5926. done
  5927. fi
  5928. if test -z "$AR"; then
  5929. ac_ct_AR=$AR
  5930. for ac_prog in ar gar
  5931. do
  5932. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5933. set dummy $ac_prog; ac_word=$2
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5935. $as_echo_n "checking for $ac_word... " >&6; }
  5936. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5937. $as_echo_n "(cached) " >&6
  5938. else
  5939. if test -n "$ac_ct_AR"; then
  5940. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5941. else
  5942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5943. for as_dir in $PATH
  5944. do
  5945. IFS=$as_save_IFS
  5946. test -z "$as_dir" && as_dir=.
  5947. for ac_exec_ext in '' $ac_executable_extensions; do
  5948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5949. ac_cv_prog_ac_ct_AR="$ac_prog"
  5950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5951. break 2
  5952. fi
  5953. done
  5954. done
  5955. IFS=$as_save_IFS
  5956. fi
  5957. fi
  5958. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5959. if test -n "$ac_ct_AR"; then
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5961. $as_echo "$ac_ct_AR" >&6; }
  5962. else
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5964. $as_echo "no" >&6; }
  5965. fi
  5966. test -n "$ac_ct_AR" && break
  5967. done
  5968. if test "x$ac_ct_AR" = x; then
  5969. AR=":"
  5970. else
  5971. case $cross_compiling:$ac_tool_warned in
  5972. yes:)
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5974. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5975. ac_tool_warned=yes ;;
  5976. esac
  5977. AR=$ac_ct_AR
  5978. fi
  5979. fi
  5980. GNU_LD=0
  5981. if test "x$with_gnu_ld" = "xyes" ; then
  5982. GNU_LD=1
  5983. fi
  5984. # Extract the first word of "bison", so it can be a program name with args.
  5985. set dummy bison; ac_word=$2
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5987. $as_echo_n "checking for $ac_word... " >&6; }
  5988. if ${ac_cv_path_BISON+:} false; then :
  5989. $as_echo_n "(cached) " >&6
  5990. else
  5991. case $BISON in
  5992. [\\/]* | ?:[\\/]*)
  5993. ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  5994. ;;
  5995. *)
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6003. ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=":"
  6011. ;;
  6012. esac
  6013. fi
  6014. BISON=$ac_cv_path_BISON
  6015. if test -n "$BISON"; then
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6017. $as_echo "$BISON" >&6; }
  6018. else
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6020. $as_echo "no" >&6; }
  6021. fi
  6022. # Extract the first word of "cmp", so it can be a program name with args.
  6023. set dummy cmp; ac_word=$2
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6025. $as_echo_n "checking for $ac_word... " >&6; }
  6026. if ${ac_cv_path_CMP+:} false; then :
  6027. $as_echo_n "(cached) " >&6
  6028. else
  6029. case $CMP in
  6030. [\\/]* | ?:[\\/]*)
  6031. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  6032. ;;
  6033. *)
  6034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6035. for as_dir in $PATH
  6036. do
  6037. IFS=$as_save_IFS
  6038. test -z "$as_dir" && as_dir=.
  6039. for ac_exec_ext in '' $ac_executable_extensions; do
  6040. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6041. ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
  6042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6043. break 2
  6044. fi
  6045. done
  6046. done
  6047. IFS=$as_save_IFS
  6048. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP=":"
  6049. ;;
  6050. esac
  6051. fi
  6052. CMP=$ac_cv_path_CMP
  6053. if test -n "$CMP"; then
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
  6055. $as_echo "$CMP" >&6; }
  6056. else
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6058. $as_echo "no" >&6; }
  6059. fi
  6060. # Extract the first word of "flex", so it can be a program name with args.
  6061. set dummy flex; ac_word=$2
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6063. $as_echo_n "checking for $ac_word... " >&6; }
  6064. if ${ac_cv_path_FLEX+:} false; then :
  6065. $as_echo_n "(cached) " >&6
  6066. else
  6067. case $FLEX in
  6068. [\\/]* | ?:[\\/]*)
  6069. ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
  6070. ;;
  6071. *)
  6072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6073. for as_dir in $PATH
  6074. do
  6075. IFS=$as_save_IFS
  6076. test -z "$as_dir" && as_dir=.
  6077. for ac_exec_ext in '' $ac_executable_extensions; do
  6078. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6079. ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
  6080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6081. break 2
  6082. fi
  6083. done
  6084. done
  6085. IFS=$as_save_IFS
  6086. test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX=":"
  6087. ;;
  6088. esac
  6089. fi
  6090. FLEX=$ac_cv_path_FLEX
  6091. if test -n "$FLEX"; then
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  6093. $as_echo "$FLEX" >&6; }
  6094. else
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6096. $as_echo "no" >&6; }
  6097. fi
  6098. # Extract the first word of "grep", so it can be a program name with args.
  6099. set dummy grep; ac_word=$2
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6101. $as_echo_n "checking for $ac_word... " >&6; }
  6102. if ${ac_cv_path_GREP+:} false; then :
  6103. $as_echo_n "(cached) " >&6
  6104. else
  6105. case $GREP in
  6106. [\\/]* | ?:[\\/]*)
  6107. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  6108. ;;
  6109. *)
  6110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6111. for as_dir in $PATH
  6112. do
  6113. IFS=$as_save_IFS
  6114. test -z "$as_dir" && as_dir=.
  6115. for ac_exec_ext in '' $ac_executable_extensions; do
  6116. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6117. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  6118. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6119. break 2
  6120. fi
  6121. done
  6122. done
  6123. IFS=$as_save_IFS
  6124. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
  6125. ;;
  6126. esac
  6127. fi
  6128. GREP=$ac_cv_path_GREP
  6129. if test -n "$GREP"; then
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  6131. $as_echo "$GREP" >&6; }
  6132. else
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6134. $as_echo "no" >&6; }
  6135. fi
  6136. # Extract the first word of "python", so it can be a program name with args.
  6137. set dummy python; ac_word=$2
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6139. $as_echo_n "checking for $ac_word... " >&6; }
  6140. if ${ac_cv_path_PYTHON+:} false; then :
  6141. $as_echo_n "(cached) " >&6
  6142. else
  6143. case $PYTHON in
  6144. [\\/]* | ?:[\\/]*)
  6145. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  6146. ;;
  6147. *)
  6148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6149. for as_dir in $PATH
  6150. do
  6151. IFS=$as_save_IFS
  6152. test -z "$as_dir" && as_dir=.
  6153. for ac_exec_ext in '' $ac_executable_extensions; do
  6154. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6155. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  6156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6157. break 2
  6158. fi
  6159. done
  6160. done
  6161. IFS=$as_save_IFS
  6162. test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
  6163. ;;
  6164. esac
  6165. fi
  6166. PYTHON=$ac_cv_path_PYTHON
  6167. if test -n "$PYTHON"; then
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  6169. $as_echo "$PYTHON" >&6; }
  6170. else
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6172. $as_echo "no" >&6; }
  6173. fi
  6174. # Extract the first word of "find", so it can be a program name with args.
  6175. set dummy find; ac_word=$2
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6177. $as_echo_n "checking for $ac_word... " >&6; }
  6178. if ${ac_cv_path_FIND+:} false; then :
  6179. $as_echo_n "(cached) " >&6
  6180. else
  6181. case $FIND in
  6182. [\\/]* | ?:[\\/]*)
  6183. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  6184. ;;
  6185. *)
  6186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6187. for as_dir in $PATH
  6188. do
  6189. IFS=$as_save_IFS
  6190. test -z "$as_dir" && as_dir=.
  6191. for ac_exec_ext in '' $ac_executable_extensions; do
  6192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6193. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  6194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6195. break 2
  6196. fi
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
  6201. ;;
  6202. esac
  6203. fi
  6204. FIND=$ac_cv_path_FIND
  6205. if test -n "$FIND"; then
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
  6207. $as_echo "$FIND" >&6; }
  6208. else
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6210. $as_echo "no" >&6; }
  6211. fi
  6212. # Extract the first word of "compress", so it can be a program name with args.
  6213. set dummy compress; ac_word=$2
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6215. $as_echo_n "checking for $ac_word... " >&6; }
  6216. if ${ac_cv_path_COMPRESS+:} false; then :
  6217. $as_echo_n "(cached) " >&6
  6218. else
  6219. case $COMPRESS in
  6220. [\\/]* | ?:[\\/]*)
  6221. ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
  6222. ;;
  6223. *)
  6224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6225. for as_dir in $PATH
  6226. do
  6227. IFS=$as_save_IFS
  6228. test -z "$as_dir" && as_dir=.
  6229. for ac_exec_ext in '' $ac_executable_extensions; do
  6230. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6231. ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
  6232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6233. break 2
  6234. fi
  6235. done
  6236. done
  6237. IFS=$as_save_IFS
  6238. test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
  6239. ;;
  6240. esac
  6241. fi
  6242. COMPRESS=$ac_cv_path_COMPRESS
  6243. if test -n "$COMPRESS"; then
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
  6245. $as_echo "$COMPRESS" >&6; }
  6246. else
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6248. $as_echo "no" >&6; }
  6249. fi
  6250. # Extract the first word of "basename", so it can be a program name with args.
  6251. set dummy basename; ac_word=$2
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6253. $as_echo_n "checking for $ac_word... " >&6; }
  6254. if ${ac_cv_path_BASENAME+:} false; then :
  6255. $as_echo_n "(cached) " >&6
  6256. else
  6257. case $BASENAME in
  6258. [\\/]* | ?:[\\/]*)
  6259. ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
  6260. ;;
  6261. *)
  6262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6263. for as_dir in $PATH
  6264. do
  6265. IFS=$as_save_IFS
  6266. test -z "$as_dir" && as_dir=.
  6267. for ac_exec_ext in '' $ac_executable_extensions; do
  6268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6269. ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
  6270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6271. break 2
  6272. fi
  6273. done
  6274. done
  6275. IFS=$as_save_IFS
  6276. test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
  6277. ;;
  6278. esac
  6279. fi
  6280. BASENAME=$ac_cv_path_BASENAME
  6281. if test -n "$BASENAME"; then
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  6283. $as_echo "$BASENAME" >&6; }
  6284. else
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6286. $as_echo "no" >&6; }
  6287. fi
  6288. # Extract the first word of "dirname", so it can be a program name with args.
  6289. set dummy dirname; ac_word=$2
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6291. $as_echo_n "checking for $ac_word... " >&6; }
  6292. if ${ac_cv_path_DIRNAME+:} false; then :
  6293. $as_echo_n "(cached) " >&6
  6294. else
  6295. case $DIRNAME in
  6296. [\\/]* | ?:[\\/]*)
  6297. ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
  6298. ;;
  6299. *)
  6300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6301. for as_dir in $PATH
  6302. do
  6303. IFS=$as_save_IFS
  6304. test -z "$as_dir" && as_dir=.
  6305. for ac_exec_ext in '' $ac_executable_extensions; do
  6306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6307. ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
  6308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6309. break 2
  6310. fi
  6311. done
  6312. done
  6313. IFS=$as_save_IFS
  6314. test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
  6315. ;;
  6316. esac
  6317. fi
  6318. DIRNAME=$ac_cv_path_DIRNAME
  6319. if test -n "$DIRNAME"; then
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
  6321. $as_echo "$DIRNAME" >&6; }
  6322. else
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6324. $as_echo "no" >&6; }
  6325. fi
  6326. # Extract the first word of "sh", so it can be a program name with args.
  6327. set dummy sh; ac_word=$2
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6329. $as_echo_n "checking for $ac_word... " >&6; }
  6330. if ${ac_cv_path_SHELL+:} false; then :
  6331. $as_echo_n "(cached) " >&6
  6332. else
  6333. case $SHELL in
  6334. [\\/]* | ?:[\\/]*)
  6335. ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
  6336. ;;
  6337. *)
  6338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6339. for as_dir in $PATH
  6340. do
  6341. IFS=$as_save_IFS
  6342. test -z "$as_dir" && as_dir=.
  6343. for ac_exec_ext in '' $ac_executable_extensions; do
  6344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6345. ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
  6346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6347. break 2
  6348. fi
  6349. done
  6350. done
  6351. IFS=$as_save_IFS
  6352. test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
  6353. ;;
  6354. esac
  6355. fi
  6356. SHELL=$ac_cv_path_SHELL
  6357. if test -n "$SHELL"; then
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL" >&5
  6359. $as_echo "$SHELL" >&6; }
  6360. else
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6362. $as_echo "no" >&6; }
  6363. fi
  6364. # Extract the first word of "ln", so it can be a program name with args.
  6365. set dummy ln; ac_word=$2
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6367. $as_echo_n "checking for $ac_word... " >&6; }
  6368. if ${ac_cv_path_LN+:} false; then :
  6369. $as_echo_n "(cached) " >&6
  6370. else
  6371. case $LN in
  6372. [\\/]* | ?:[\\/]*)
  6373. ac_cv_path_LN="$LN" # Let the user override the test with a path.
  6374. ;;
  6375. *)
  6376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6377. for as_dir in $PATH
  6378. do
  6379. IFS=$as_save_IFS
  6380. test -z "$as_dir" && as_dir=.
  6381. for ac_exec_ext in '' $ac_executable_extensions; do
  6382. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6383. ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
  6384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6385. break 2
  6386. fi
  6387. done
  6388. done
  6389. IFS=$as_save_IFS
  6390. test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
  6391. ;;
  6392. esac
  6393. fi
  6394. LN=$ac_cv_path_LN
  6395. if test -n "$LN"; then
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
  6397. $as_echo "$LN" >&6; }
  6398. else
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6400. $as_echo "no" >&6; }
  6401. fi
  6402. # Extract the first word of "dot", so it can be a program name with args.
  6403. set dummy dot; ac_word=$2
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6405. $as_echo_n "checking for $ac_word... " >&6; }
  6406. if ${ac_cv_path_DOT+:} false; then :
  6407. $as_echo_n "(cached) " >&6
  6408. else
  6409. case $DOT in
  6410. [\\/]* | ?:[\\/]*)
  6411. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  6412. ;;
  6413. *)
  6414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6415. for as_dir in $PATH
  6416. do
  6417. IFS=$as_save_IFS
  6418. test -z "$as_dir" && as_dir=.
  6419. for ac_exec_ext in '' $ac_executable_extensions; do
  6420. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6421. ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
  6422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6423. break 2
  6424. fi
  6425. done
  6426. done
  6427. IFS=$as_save_IFS
  6428. test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
  6429. ;;
  6430. esac
  6431. fi
  6432. DOT=$ac_cv_path_DOT
  6433. if test -n "$DOT"; then
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
  6435. $as_echo "$DOT" >&6; }
  6436. else
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6438. $as_echo "no" >&6; }
  6439. fi
  6440. # Extract the first word of "wget", so it can be a program name with args.
  6441. set dummy wget; ac_word=$2
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6443. $as_echo_n "checking for $ac_word... " >&6; }
  6444. if ${ac_cv_path_WGET+:} false; then :
  6445. $as_echo_n "(cached) " >&6
  6446. else
  6447. case $WGET in
  6448. [\\/]* | ?:[\\/]*)
  6449. ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
  6450. ;;
  6451. *)
  6452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6453. for as_dir in $PATH
  6454. do
  6455. IFS=$as_save_IFS
  6456. test -z "$as_dir" && as_dir=.
  6457. for ac_exec_ext in '' $ac_executable_extensions; do
  6458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6459. ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
  6460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6461. break 2
  6462. fi
  6463. done
  6464. done
  6465. IFS=$as_save_IFS
  6466. test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
  6467. ;;
  6468. esac
  6469. fi
  6470. WGET=$ac_cv_path_WGET
  6471. if test -n "$WGET"; then
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
  6473. $as_echo "$WGET" >&6; }
  6474. else
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6476. $as_echo "no" >&6; }
  6477. fi
  6478. # Extract the first word of "curl", so it can be a program name with args.
  6479. set dummy curl; ac_word=$2
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6481. $as_echo_n "checking for $ac_word... " >&6; }
  6482. if ${ac_cv_path_CURL+:} false; then :
  6483. $as_echo_n "(cached) " >&6
  6484. else
  6485. case $CURL in
  6486. [\\/]* | ?:[\\/]*)
  6487. ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
  6488. ;;
  6489. *)
  6490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6491. for as_dir in $PATH
  6492. do
  6493. IFS=$as_save_IFS
  6494. test -z "$as_dir" && as_dir=.
  6495. for ac_exec_ext in '' $ac_executable_extensions; do
  6496. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6497. ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
  6498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6499. break 2
  6500. fi
  6501. done
  6502. done
  6503. IFS=$as_save_IFS
  6504. test -z "$ac_cv_path_CURL" && ac_cv_path_CURL=":"
  6505. ;;
  6506. esac
  6507. fi
  6508. CURL=$ac_cv_path_CURL
  6509. if test -n "$CURL"; then
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
  6511. $as_echo "$CURL" >&6; }
  6512. else
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6514. $as_echo "no" >&6; }
  6515. fi
  6516. # Extract the first word of "rubber", so it can be a program name with args.
  6517. set dummy rubber; ac_word=$2
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6519. $as_echo_n "checking for $ac_word... " >&6; }
  6520. if ${ac_cv_path_RUBBER+:} false; then :
  6521. $as_echo_n "(cached) " >&6
  6522. else
  6523. case $RUBBER in
  6524. [\\/]* | ?:[\\/]*)
  6525. ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
  6526. ;;
  6527. *)
  6528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6529. for as_dir in $PATH
  6530. do
  6531. IFS=$as_save_IFS
  6532. test -z "$as_dir" && as_dir=.
  6533. for ac_exec_ext in '' $ac_executable_extensions; do
  6534. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6535. ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
  6536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6537. break 2
  6538. fi
  6539. done
  6540. done
  6541. IFS=$as_save_IFS
  6542. test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
  6543. ;;
  6544. esac
  6545. fi
  6546. RUBBER=$ac_cv_path_RUBBER
  6547. if test -n "$RUBBER"; then
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBBER" >&5
  6549. $as_echo "$RUBBER" >&6; }
  6550. else
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6552. $as_echo "no" >&6; }
  6553. fi
  6554. # Extract the first word of "catdvi", so it can be a program name with args.
  6555. set dummy catdvi; ac_word=$2
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6557. $as_echo_n "checking for $ac_word... " >&6; }
  6558. if ${ac_cv_path_CATDVI+:} false; then :
  6559. $as_echo_n "(cached) " >&6
  6560. else
  6561. case $CATDVI in
  6562. [\\/]* | ?:[\\/]*)
  6563. ac_cv_path_CATDVI="$CATDVI" # Let the user override the test with a path.
  6564. ;;
  6565. *)
  6566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6567. for as_dir in $PATH
  6568. do
  6569. IFS=$as_save_IFS
  6570. test -z "$as_dir" && as_dir=.
  6571. for ac_exec_ext in '' $ac_executable_extensions; do
  6572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6573. ac_cv_path_CATDVI="$as_dir/$ac_word$ac_exec_ext"
  6574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6575. break 2
  6576. fi
  6577. done
  6578. done
  6579. IFS=$as_save_IFS
  6580. test -z "$ac_cv_path_CATDVI" && ac_cv_path_CATDVI=":"
  6581. ;;
  6582. esac
  6583. fi
  6584. CATDVI=$ac_cv_path_CATDVI
  6585. if test -n "$CATDVI"; then
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CATDVI" >&5
  6587. $as_echo "$CATDVI" >&6; }
  6588. else
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6590. $as_echo "no" >&6; }
  6591. fi
  6592. # Extract the first word of "kpsewhich", so it can be a program name with args.
  6593. set dummy kpsewhich; ac_word=$2
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6595. $as_echo_n "checking for $ac_word... " >&6; }
  6596. if ${ac_cv_path_KPATHSEA+:} false; then :
  6597. $as_echo_n "(cached) " >&6
  6598. else
  6599. case $KPATHSEA in
  6600. [\\/]* | ?:[\\/]*)
  6601. ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
  6602. ;;
  6603. *)
  6604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6605. for as_dir in $PATH
  6606. do
  6607. IFS=$as_save_IFS
  6608. test -z "$as_dir" && as_dir=.
  6609. for ac_exec_ext in '' $ac_executable_extensions; do
  6610. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6611. ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
  6612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6613. break 2
  6614. fi
  6615. done
  6616. done
  6617. IFS=$as_save_IFS
  6618. test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
  6619. ;;
  6620. esac
  6621. fi
  6622. KPATHSEA=$ac_cv_path_KPATHSEA
  6623. if test -n "$KPATHSEA"; then
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KPATHSEA" >&5
  6625. $as_echo "$KPATHSEA" >&6; }
  6626. else
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6628. $as_echo "no" >&6; }
  6629. fi
  6630. # Extract the first word of "xmllint", so it can be a program name with args.
  6631. set dummy xmllint; ac_word=$2
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6633. $as_echo_n "checking for $ac_word... " >&6; }
  6634. if ${ac_cv_path_XMLLINT+:} false; then :
  6635. $as_echo_n "(cached) " >&6
  6636. else
  6637. case $XMLLINT in
  6638. [\\/]* | ?:[\\/]*)
  6639. ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
  6640. ;;
  6641. *)
  6642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6643. for as_dir in $PATH
  6644. do
  6645. IFS=$as_save_IFS
  6646. test -z "$as_dir" && as_dir=.
  6647. for ac_exec_ext in '' $ac_executable_extensions; do
  6648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6649. ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
  6650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6651. break 2
  6652. fi
  6653. done
  6654. done
  6655. IFS=$as_save_IFS
  6656. test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT=":"
  6657. ;;
  6658. esac
  6659. fi
  6660. XMLLINT=$ac_cv_path_XMLLINT
  6661. if test -n "$XMLLINT"; then
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
  6663. $as_echo "$XMLLINT" >&6; }
  6664. else
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6666. $as_echo "no" >&6; }
  6667. fi
  6668. # Extract the first word of "xmlstarlet", so it can be a program name with args.
  6669. set dummy xmlstarlet; ac_word=$2
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6671. $as_echo_n "checking for $ac_word... " >&6; }
  6672. if ${ac_cv_path_XMLSTARLET+:} false; then :
  6673. $as_echo_n "(cached) " >&6
  6674. else
  6675. case $XMLSTARLET in
  6676. [\\/]* | ?:[\\/]*)
  6677. ac_cv_path_XMLSTARLET="$XMLSTARLET" # Let the user override the test with a path.
  6678. ;;
  6679. *)
  6680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6681. for as_dir in $PATH
  6682. do
  6683. IFS=$as_save_IFS
  6684. test -z "$as_dir" && as_dir=.
  6685. for ac_exec_ext in '' $ac_executable_extensions; do
  6686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6687. ac_cv_path_XMLSTARLET="$as_dir/$ac_word$ac_exec_ext"
  6688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6689. break 2
  6690. fi
  6691. done
  6692. done
  6693. IFS=$as_save_IFS
  6694. test -z "$ac_cv_path_XMLSTARLET" && ac_cv_path_XMLSTARLET=":"
  6695. ;;
  6696. esac
  6697. fi
  6698. XMLSTARLET=$ac_cv_path_XMLSTARLET
  6699. if test -n "$XMLSTARLET"; then
  6700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLSTARLET" >&5
  6701. $as_echo "$XMLSTARLET" >&6; }
  6702. else
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6704. $as_echo "no" >&6; }
  6705. fi
  6706. # Extract the first word of "git", so it can be a program name with args.
  6707. set dummy git; ac_word=$2
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6709. $as_echo_n "checking for $ac_word... " >&6; }
  6710. if ${ac_cv_path_GIT+:} false; then :
  6711. $as_echo_n "(cached) " >&6
  6712. else
  6713. case $GIT in
  6714. [\\/]* | ?:[\\/]*)
  6715. ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  6716. ;;
  6717. *)
  6718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6719. for as_dir in $PATH
  6720. do
  6721. IFS=$as_save_IFS
  6722. test -z "$as_dir" && as_dir=.
  6723. for ac_exec_ext in '' $ac_executable_extensions; do
  6724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6725. ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
  6726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6727. break 2
  6728. fi
  6729. done
  6730. done
  6731. IFS=$as_save_IFS
  6732. test -z "$ac_cv_path_GIT" && ac_cv_path_GIT=":"
  6733. ;;
  6734. esac
  6735. fi
  6736. GIT=$ac_cv_path_GIT
  6737. if test -n "$GIT"; then
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
  6739. $as_echo "$GIT" >&6; }
  6740. else
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6742. $as_echo "no" >&6; }
  6743. fi
  6744. if test "${WGET}" != ":" ; then
  6745. DOWNLOAD=${WGET}
  6746. else if test "${CURL}" != ":" ; then
  6747. DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\""
  6748. else
  6749. # Extract the first word of "fetch", so it can be a program name with args.
  6750. set dummy fetch; ac_word=$2
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6752. $as_echo_n "checking for $ac_word... " >&6; }
  6753. if ${ac_cv_path_FETCH+:} false; then :
  6754. $as_echo_n "(cached) " >&6
  6755. else
  6756. case $FETCH in
  6757. [\\/]* | ?:[\\/]*)
  6758. ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
  6759. ;;
  6760. *)
  6761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6762. for as_dir in $PATH
  6763. do
  6764. IFS=$as_save_IFS
  6765. test -z "$as_dir" && as_dir=.
  6766. for ac_exec_ext in '' $ac_executable_extensions; do
  6767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6768. ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
  6769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6770. break 2
  6771. fi
  6772. done
  6773. done
  6774. IFS=$as_save_IFS
  6775. test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
  6776. ;;
  6777. esac
  6778. fi
  6779. FETCH=$ac_cv_path_FETCH
  6780. if test -n "$FETCH"; then
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FETCH" >&5
  6782. $as_echo "$FETCH" >&6; }
  6783. else
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6785. $as_echo "no" >&6; }
  6786. fi
  6787. DOWNLOAD=${FETCH}
  6788. fi
  6789. fi
  6790. # Extract the first word of "ldconfig", so it can be a program name with args.
  6791. set dummy ldconfig; ac_word=$2
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6793. $as_echo_n "checking for $ac_word... " >&6; }
  6794. if ${ac_cv_path_LDCONFIG+:} false; then :
  6795. $as_echo_n "(cached) " >&6
  6796. else
  6797. case $LDCONFIG in
  6798. [\\/]* | ?:[\\/]*)
  6799. ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
  6800. ;;
  6801. *)
  6802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6803. for as_dir in $PATH
  6804. do
  6805. IFS=$as_save_IFS
  6806. test -z "$as_dir" && as_dir=.
  6807. for ac_exec_ext in '' $ac_executable_extensions; do
  6808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6809. ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
  6810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6811. break 2
  6812. fi
  6813. done
  6814. done
  6815. IFS=$as_save_IFS
  6816. test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
  6817. ;;
  6818. esac
  6819. fi
  6820. LDCONFIG=$ac_cv_path_LDCONFIG
  6821. if test -n "$LDCONFIG"; then
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
  6823. $as_echo "$LDCONFIG" >&6; }
  6824. else
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6826. $as_echo "no" >&6; }
  6827. fi
  6828. # Extract the first word of "sha1sum", so it can be a program name with args.
  6829. set dummy sha1sum; ac_word=$2
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6831. $as_echo_n "checking for $ac_word... " >&6; }
  6832. if ${ac_cv_path_SHA1SUM+:} false; then :
  6833. $as_echo_n "(cached) " >&6
  6834. else
  6835. case $SHA1SUM in
  6836. [\\/]* | ?:[\\/]*)
  6837. ac_cv_path_SHA1SUM="$SHA1SUM" # Let the user override the test with a path.
  6838. ;;
  6839. *)
  6840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6841. for as_dir in $PATH
  6842. do
  6843. IFS=$as_save_IFS
  6844. test -z "$as_dir" && as_dir=.
  6845. for ac_exec_ext in '' $ac_executable_extensions; do
  6846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6847. ac_cv_path_SHA1SUM="$as_dir/$ac_word$ac_exec_ext"
  6848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6849. break 2
  6850. fi
  6851. done
  6852. done
  6853. IFS=$as_save_IFS
  6854. test -z "$ac_cv_path_SHA1SUM" && ac_cv_path_SHA1SUM="$ac_aux_dir/build_tools/sha1sum-sh"
  6855. ;;
  6856. esac
  6857. fi
  6858. SHA1SUM=$ac_cv_path_SHA1SUM
  6859. if test -n "$SHA1SUM"; then
  6860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHA1SUM" >&5
  6861. $as_echo "$SHA1SUM" >&6; }
  6862. else
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6864. $as_echo "no" >&6; }
  6865. fi
  6866. # Extract the first word of "openssl", so it can be a program name with args.
  6867. set dummy openssl; ac_word=$2
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6869. $as_echo_n "checking for $ac_word... " >&6; }
  6870. if ${ac_cv_path_OPENSSL+:} false; then :
  6871. $as_echo_n "(cached) " >&6
  6872. else
  6873. case $OPENSSL in
  6874. [\\/]* | ?:[\\/]*)
  6875. ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
  6876. ;;
  6877. *)
  6878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6879. for as_dir in $PATH
  6880. do
  6881. IFS=$as_save_IFS
  6882. test -z "$as_dir" && as_dir=.
  6883. for ac_exec_ext in '' $ac_executable_extensions; do
  6884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6885. ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
  6886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6887. break 2
  6888. fi
  6889. done
  6890. done
  6891. IFS=$as_save_IFS
  6892. test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL=":"
  6893. ;;
  6894. esac
  6895. fi
  6896. OPENSSL=$ac_cv_path_OPENSSL
  6897. if test -n "$OPENSSL"; then
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  6899. $as_echo "$OPENSSL" >&6; }
  6900. else
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6902. $as_echo "no" >&6; }
  6903. fi
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison that supports parse-param" >&5
  6905. $as_echo_n "checking for bison that supports parse-param... " >&6; }
  6906. if ${ac_cv_path_BISON2+:} false; then :
  6907. $as_echo_n "(cached) " >&6
  6908. else
  6909. if test "x$BISON" != "x:" ; then
  6910. # Create a temporary directory $tmp in $TMPDIR (default /tmp).
  6911. # Use mktemp if possible; otherwise fall back on mkdir,
  6912. # with $RANDOM to make collisions less likely.
  6913. : ${TMPDIR=/tmp}
  6914. {
  6915. tmp=`
  6916. (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
  6917. ` &&
  6918. test -n "$tmp" && test -d "$tmp"
  6919. } || {
  6920. tmp=$TMPDIR/foo$$-$RANDOM
  6921. (umask 077 && mkdir "$tmp")
  6922. } || exit $?
  6923. cat >$tmp/test.y <<__EOL__
  6924. %parse-param {struct parse_io *parseio}
  6925. %%
  6926. file : { \$\$ = parseio->pval = 1; }
  6927. ;
  6928. %%
  6929. __EOL__
  6930. ${BISON} -o ${tmp}/test.tab.c ${tmp}/test.y >/dev/null 2>&1
  6931. if test -e "${tmp}/test.tab.c"; then
  6932. ac_cv_path_BISON2=${BISON}
  6933. fi
  6934. rm -rf ${tmp}
  6935. fi
  6936. fi
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_BISON2" >&5
  6938. $as_echo "$ac_cv_path_BISON2" >&6; }
  6939. if test "x${ac_cv_path_BISON2}" = "x" ; then
  6940. BISON=:
  6941. PBX_BISON=0
  6942. else
  6943. PBX_BISON=1
  6944. fi
  6945. if test "x${FLEX}" = "x:" ; then
  6946. PBX_FLEX=0
  6947. else
  6948. PBX_FLEX=1
  6949. fi
  6950. if test -n "$ac_tool_prefix"; then
  6951. # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
  6952. set dummy ${ac_tool_prefix}soxmix; ac_word=$2
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6954. $as_echo_n "checking for $ac_word... " >&6; }
  6955. if ${ac_cv_prog_SOXMIX+:} false; then :
  6956. $as_echo_n "(cached) " >&6
  6957. else
  6958. if test -n "$SOXMIX"; then
  6959. ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
  6960. else
  6961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6962. for as_dir in $PATH
  6963. do
  6964. IFS=$as_save_IFS
  6965. test -z "$as_dir" && as_dir=.
  6966. for ac_exec_ext in '' $ac_executable_extensions; do
  6967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6968. ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
  6969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6970. break 2
  6971. fi
  6972. done
  6973. done
  6974. IFS=$as_save_IFS
  6975. fi
  6976. fi
  6977. SOXMIX=$ac_cv_prog_SOXMIX
  6978. if test -n "$SOXMIX"; then
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOXMIX" >&5
  6980. $as_echo "$SOXMIX" >&6; }
  6981. else
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6983. $as_echo "no" >&6; }
  6984. fi
  6985. fi
  6986. if test -z "$ac_cv_prog_SOXMIX"; then
  6987. ac_ct_SOXMIX=$SOXMIX
  6988. # Extract the first word of "soxmix", so it can be a program name with args.
  6989. set dummy soxmix; ac_word=$2
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6991. $as_echo_n "checking for $ac_word... " >&6; }
  6992. if ${ac_cv_prog_ac_ct_SOXMIX+:} false; then :
  6993. $as_echo_n "(cached) " >&6
  6994. else
  6995. if test -n "$ac_ct_SOXMIX"; then
  6996. ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
  6997. else
  6998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6999. for as_dir in $PATH
  7000. do
  7001. IFS=$as_save_IFS
  7002. test -z "$as_dir" && as_dir=.
  7003. for ac_exec_ext in '' $ac_executable_extensions; do
  7004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7005. ac_cv_prog_ac_ct_SOXMIX="soxmix"
  7006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7007. break 2
  7008. fi
  7009. done
  7010. done
  7011. IFS=$as_save_IFS
  7012. fi
  7013. fi
  7014. ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
  7015. if test -n "$ac_ct_SOXMIX"; then
  7016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SOXMIX" >&5
  7017. $as_echo "$ac_ct_SOXMIX" >&6; }
  7018. else
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7020. $as_echo "no" >&6; }
  7021. fi
  7022. if test "x$ac_ct_SOXMIX" = x; then
  7023. SOXMIX=":"
  7024. else
  7025. case $cross_compiling:$ac_tool_warned in
  7026. yes:)
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7028. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7029. ac_tool_warned=yes ;;
  7030. esac
  7031. SOXMIX=$ac_ct_SOXMIX
  7032. fi
  7033. else
  7034. SOXMIX="$ac_cv_prog_SOXMIX"
  7035. fi
  7036. if test "${SOXMIX}" != ":" ; then
  7037. $as_echo "#define HAVE_SOXMIX 1" >>confdefs.h
  7038. fi
  7039. for ac_prog in md5 md5sum gmd5sum digest
  7040. do
  7041. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7042. set dummy $ac_prog; ac_word=$2
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7044. $as_echo_n "checking for $ac_word... " >&6; }
  7045. if ${ac_cv_prog_MD5+:} false; then :
  7046. $as_echo_n "(cached) " >&6
  7047. else
  7048. if test -n "$MD5"; then
  7049. ac_cv_prog_MD5="$MD5" # Let the user override the test.
  7050. else
  7051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7052. for as_dir in $PATH
  7053. do
  7054. IFS=$as_save_IFS
  7055. test -z "$as_dir" && as_dir=.
  7056. for ac_exec_ext in '' $ac_executable_extensions; do
  7057. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7058. ac_cv_prog_MD5="$ac_prog"
  7059. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7060. break 2
  7061. fi
  7062. done
  7063. done
  7064. IFS=$as_save_IFS
  7065. fi
  7066. fi
  7067. MD5=$ac_cv_prog_MD5
  7068. if test -n "$MD5"; then
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5" >&5
  7070. $as_echo "$MD5" >&6; }
  7071. else
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7073. $as_echo "no" >&6; }
  7074. fi
  7075. test -n "$MD5" && break
  7076. done
  7077. if test "${MD5}" = "digest" ; then
  7078. MD5="${MD5} -a md5"
  7079. fi
  7080. ac_ext=c
  7081. ac_cpp='$CPP $CPPFLAGS'
  7082. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7083. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7084. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7085. acx_pthread_ok=no
  7086. # We used to check for pthread.h first, but this fails if pthread.h
  7087. # requires special compiler flags (e.g. on True64 or Sequent).
  7088. # It gets checked for in the link test anyway.
  7089. # First of all, check if the user has set any of the PTHREAD_LIBS,
  7090. # etcetera environment variables, and if threads linking works using
  7091. # them:
  7092. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  7093. save_CFLAGS="$CFLAGS"
  7094. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7095. save_LIBS="$LIBS"
  7096. LIBS="$PTHREAD_LIBS $LIBS"
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  7098. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  7099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7100. /* end confdefs.h. */
  7101. /* Override any GCC internal prototype to avoid an error.
  7102. Use char because int might match the return type of a GCC
  7103. builtin and then its argument prototype would still apply. */
  7104. #ifdef __cplusplus
  7105. extern "C"
  7106. #endif
  7107. char pthread_join ();
  7108. int
  7109. main ()
  7110. {
  7111. return pthread_join ();
  7112. ;
  7113. return 0;
  7114. }
  7115. _ACEOF
  7116. if ac_fn_c_try_link "$LINENO"; then :
  7117. acx_pthread_ok=yes
  7118. fi
  7119. rm -f core conftest.err conftest.$ac_objext \
  7120. conftest$ac_exeext conftest.$ac_ext
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  7122. $as_echo "$acx_pthread_ok" >&6; }
  7123. if test x"$acx_pthread_ok" = xno; then
  7124. PTHREAD_LIBS=""
  7125. PTHREAD_CFLAGS=""
  7126. fi
  7127. LIBS="$save_LIBS"
  7128. CFLAGS="$save_CFLAGS"
  7129. fi
  7130. # We must check for the threads library under a number of different
  7131. # names; the ordering is very important because some systems
  7132. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  7133. # libraries is broken (non-POSIX).
  7134. # Create a list of thread flags to try. Items starting with a "-" are
  7135. # C compiler flags, and other items are library names, except for "none"
  7136. # which indicates that we try without any flags at all, and "pthread-config"
  7137. # which is a program returning the flags for the Pth emulation library.
  7138. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  7139. # The ordering *is* (sometimes) important. Some notes on the
  7140. # individual items follow:
  7141. # pthreads: AIX (must check this before -lpthread)
  7142. # none: in case threads are in libc; should be tried before -Kthread and
  7143. # other compiler flags to prevent continual compiler warnings
  7144. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  7145. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  7146. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  7147. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  7148. # -pthreads: Solaris/gcc
  7149. # -mthreads: Mingw32/gcc, Lynx/gcc
  7150. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  7151. # doesn't hurt to check since this sometimes defines pthreads too;
  7152. # also defines -D_REENTRANT)
  7153. # ... -mt is also the pthreads flag for HP/aCC
  7154. # pthread: Linux, etcetera
  7155. # --thread-safe: KAI C++
  7156. # pthread-config: use pthread-config program (for GNU Pth library)
  7157. case "${host_cpu}-${host_os}" in
  7158. *solaris*)
  7159. # On Solaris (at least, for some versions), libc contains stubbed
  7160. # (non-functional) versions of the pthreads routines, so link-based
  7161. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  7162. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  7163. # a function called by this macro, so we could check for that, but
  7164. # who knows whether they'll stub that too in a future libc.) So,
  7165. # we'll just look for -pthreads and -lpthread first:
  7166. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  7167. ;;
  7168. esac
  7169. if test x"$acx_pthread_ok" = xno; then
  7170. for flag in $acx_pthread_flags; do
  7171. case $flag in
  7172. none)
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  7174. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  7175. ;;
  7176. -*)
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  7178. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  7179. PTHREAD_CFLAGS="$flag"
  7180. ;;
  7181. pthread-config)
  7182. # Extract the first word of "pthread-config", so it can be a program name with args.
  7183. set dummy pthread-config; ac_word=$2
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7185. $as_echo_n "checking for $ac_word... " >&6; }
  7186. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  7187. $as_echo_n "(cached) " >&6
  7188. else
  7189. if test -n "$acx_pthread_config"; then
  7190. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  7191. else
  7192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7193. for as_dir in $PATH
  7194. do
  7195. IFS=$as_save_IFS
  7196. test -z "$as_dir" && as_dir=.
  7197. for ac_exec_ext in '' $ac_executable_extensions; do
  7198. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7199. ac_cv_prog_acx_pthread_config="yes"
  7200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7201. break 2
  7202. fi
  7203. done
  7204. done
  7205. IFS=$as_save_IFS
  7206. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  7207. fi
  7208. fi
  7209. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  7210. if test -n "$acx_pthread_config"; then
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  7212. $as_echo "$acx_pthread_config" >&6; }
  7213. else
  7214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7215. $as_echo "no" >&6; }
  7216. fi
  7217. if test x"$acx_pthread_config" = xno; then continue; fi
  7218. PTHREAD_CFLAGS="`pthread-config --cflags`"
  7219. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  7220. ;;
  7221. *)
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  7223. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  7224. PTHREAD_LIBS="-l$flag"
  7225. ;;
  7226. esac
  7227. save_LIBS="$LIBS"
  7228. save_CFLAGS="$CFLAGS"
  7229. LIBS="$PTHREAD_LIBS $LIBS"
  7230. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7231. # Check for various functions. We must include pthread.h,
  7232. # since some functions may be macros. (On the Sequent, we
  7233. # need a special flag -Kthread to make this header compile.)
  7234. # We check for pthread_join because it is in -lpthread on IRIX
  7235. # while pthread_create is in libc. We check for pthread_attr_init
  7236. # due to DEC craziness with -lpthreads. We check for
  7237. # pthread_cleanup_push because it is one of the few pthread
  7238. # functions on Solaris that doesn't have a non-functional libc stub.
  7239. # We try pthread_create on general principles.
  7240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7241. /* end confdefs.h. */
  7242. #include <pthread.h>
  7243. int
  7244. main ()
  7245. {
  7246. pthread_t th; pthread_join(th, 0);
  7247. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  7248. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  7249. ;
  7250. return 0;
  7251. }
  7252. _ACEOF
  7253. if ac_fn_c_try_link "$LINENO"; then :
  7254. acx_pthread_ok=yes
  7255. fi
  7256. rm -f core conftest.err conftest.$ac_objext \
  7257. conftest$ac_exeext conftest.$ac_ext
  7258. LIBS="$save_LIBS"
  7259. CFLAGS="$save_CFLAGS"
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  7261. $as_echo "$acx_pthread_ok" >&6; }
  7262. if test "x$acx_pthread_ok" = xyes; then
  7263. break;
  7264. fi
  7265. PTHREAD_LIBS=""
  7266. PTHREAD_CFLAGS=""
  7267. done
  7268. fi
  7269. # Various other checks:
  7270. if test "x$acx_pthread_ok" = xyes; then
  7271. save_LIBS="$LIBS"
  7272. LIBS="$PTHREAD_LIBS $LIBS"
  7273. save_CFLAGS="$CFLAGS"
  7274. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7275. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  7277. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  7278. attr_name=unknown
  7279. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  7280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7281. /* end confdefs.h. */
  7282. #include <pthread.h>
  7283. int
  7284. main ()
  7285. {
  7286. int attr=$attr; return attr;
  7287. ;
  7288. return 0;
  7289. }
  7290. _ACEOF
  7291. if ac_fn_c_try_link "$LINENO"; then :
  7292. attr_name=$attr; break
  7293. fi
  7294. rm -f core conftest.err conftest.$ac_objext \
  7295. conftest$ac_exeext conftest.$ac_ext
  7296. done
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  7298. $as_echo "$attr_name" >&6; }
  7299. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  7300. cat >>confdefs.h <<_ACEOF
  7301. #define PTHREAD_CREATE_JOINABLE $attr_name
  7302. _ACEOF
  7303. fi
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  7305. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  7306. flag=no
  7307. case "${host_cpu}-${host_os}" in
  7308. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  7309. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  7310. esac
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  7312. $as_echo "${flag}" >&6; }
  7313. if test "x$flag" != xno; then
  7314. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  7315. fi
  7316. LIBS="$save_LIBS"
  7317. CFLAGS="$save_CFLAGS"
  7318. # More AIX lossage: must compile with xlc_r or cc_r
  7319. if test x"$GCC" != xyes; then
  7320. for ac_prog in xlc_r cc_r
  7321. do
  7322. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7323. set dummy $ac_prog; ac_word=$2
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7325. $as_echo_n "checking for $ac_word... " >&6; }
  7326. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  7327. $as_echo_n "(cached) " >&6
  7328. else
  7329. if test -n "$PTHREAD_CC"; then
  7330. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  7331. else
  7332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7333. for as_dir in $PATH
  7334. do
  7335. IFS=$as_save_IFS
  7336. test -z "$as_dir" && as_dir=.
  7337. for ac_exec_ext in '' $ac_executable_extensions; do
  7338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7339. ac_cv_prog_PTHREAD_CC="$ac_prog"
  7340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7341. break 2
  7342. fi
  7343. done
  7344. done
  7345. IFS=$as_save_IFS
  7346. fi
  7347. fi
  7348. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  7349. if test -n "$PTHREAD_CC"; then
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  7351. $as_echo "$PTHREAD_CC" >&6; }
  7352. else
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7354. $as_echo "no" >&6; }
  7355. fi
  7356. test -n "$PTHREAD_CC" && break
  7357. done
  7358. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  7359. else
  7360. PTHREAD_CC=$CC
  7361. fi
  7362. else
  7363. PTHREAD_CC="$CC"
  7364. fi
  7365. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  7366. if test x"$acx_pthread_ok" = xyes; then
  7367. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  7368. :
  7369. else
  7370. acx_pthread_ok=no
  7371. fi
  7372. ac_ext=c
  7373. ac_cpp='$CPP $CPPFLAGS'
  7374. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7375. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7376. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7377. ac_ext=c
  7378. ac_cpp='$CPP $CPPFLAGS'
  7379. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7380. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7381. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7382. # Check whether --enable-dev-mode was given.
  7383. if test "${enable_dev_mode+set}" = set; then :
  7384. enableval=$enable_dev_mode; case "${enableval}" in
  7385. y|ye|yes) AST_DEVMODE=yes ;;
  7386. n|no) AST_DEVMODE=no ;;
  7387. noisy)
  7388. AST_DEVMODE=yes
  7389. NOISY_BUILD=yes
  7390. ;;
  7391. strict)
  7392. AST_DEVMODE=yes
  7393. AST_DEVMODE_STRICT=yes
  7394. ;;
  7395. *) as_fn_error $? "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;;
  7396. esac
  7397. fi
  7398. AST_CODE_COVERAGE=no
  7399. # Check whether --enable-coverage was given.
  7400. if test "${enable_coverage+set}" = set; then :
  7401. enableval=$enable_coverage; case "${enableval}" in
  7402. y|ye|yes) AST_CODE_COVERAGE=yes ;;
  7403. n|no) AST_CODE_COVERAGE=no ;;
  7404. *) as_fn_error $? "bad value ${enableval} for --enable-coverage" "$LINENO" 5 ;;
  7405. esac
  7406. fi
  7407. # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
  7408. # various packages.
  7409. # $1 is the prefix for the variables in makeopts and autoconfig.h
  7410. # $2 is the short comment, $4 is the long comment
  7411. # $3 is the name used in --with- or --without- flags for configure.
  7412. #
  7413. # Package option names should be in alphabetical order
  7414. # by the --with option name (the third field),
  7415. # to make things easier for the users.
  7416. ALSA_DESCRIP="Advanced Linux Sound Architecture"
  7417. ALSA_OPTION="asound"
  7418. PBX_ALSA=0
  7419. # Check whether --with-asound was given.
  7420. if test "${with_asound+set}" = set; then :
  7421. withval=$with_asound;
  7422. case ${withval} in
  7423. n|no)
  7424. USE_ALSA=no
  7425. # -1 is a magic value used by menuselect to know that the package
  7426. # was disabled, other than 'not found'
  7427. PBX_ALSA=-1
  7428. ;;
  7429. y|ye|yes)
  7430. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7431. ;;
  7432. *)
  7433. ALSA_DIR="${withval}"
  7434. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7435. ;;
  7436. esac
  7437. fi
  7438. BFD_DESCRIP="Debug symbol decoding"
  7439. BFD_OPTION="bfd"
  7440. PBX_BFD=0
  7441. # Check whether --with-bfd was given.
  7442. if test "${with_bfd+set}" = set; then :
  7443. withval=$with_bfd;
  7444. case ${withval} in
  7445. n|no)
  7446. USE_BFD=no
  7447. # -1 is a magic value used by menuselect to know that the package
  7448. # was disabled, other than 'not found'
  7449. PBX_BFD=-1
  7450. ;;
  7451. y|ye|yes)
  7452. ac_mandatory_list="${ac_mandatory_list} BFD"
  7453. ;;
  7454. *)
  7455. BFD_DIR="${withval}"
  7456. ac_mandatory_list="${ac_mandatory_list} BFD"
  7457. ;;
  7458. esac
  7459. fi
  7460. # BKTR is used for backtrace support on platforms that do not
  7461. # have it natively.
  7462. BKTR_DESCRIP="Stack Backtrace"
  7463. BKTR_OPTION="execinfo"
  7464. PBX_BKTR=0
  7465. # Check whether --with-execinfo was given.
  7466. if test "${with_execinfo+set}" = set; then :
  7467. withval=$with_execinfo;
  7468. case ${withval} in
  7469. n|no)
  7470. USE_BKTR=no
  7471. # -1 is a magic value used by menuselect to know that the package
  7472. # was disabled, other than 'not found'
  7473. PBX_BKTR=-1
  7474. ;;
  7475. y|ye|yes)
  7476. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7477. ;;
  7478. *)
  7479. BKTR_DIR="${withval}"
  7480. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7481. ;;
  7482. esac
  7483. fi
  7484. BLUETOOTH_DESCRIP="Bluetooth"
  7485. BLUETOOTH_OPTION="bluetooth"
  7486. PBX_BLUETOOTH=0
  7487. # Check whether --with-bluetooth was given.
  7488. if test "${with_bluetooth+set}" = set; then :
  7489. withval=$with_bluetooth;
  7490. case ${withval} in
  7491. n|no)
  7492. USE_BLUETOOTH=no
  7493. # -1 is a magic value used by menuselect to know that the package
  7494. # was disabled, other than 'not found'
  7495. PBX_BLUETOOTH=-1
  7496. ;;
  7497. y|ye|yes)
  7498. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7499. ;;
  7500. *)
  7501. BLUETOOTH_DIR="${withval}"
  7502. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7503. ;;
  7504. esac
  7505. fi
  7506. CAP_DESCRIP="POSIX 1.e capabilities"
  7507. CAP_OPTION="cap"
  7508. PBX_CAP=0
  7509. # Check whether --with-cap was given.
  7510. if test "${with_cap+set}" = set; then :
  7511. withval=$with_cap;
  7512. case ${withval} in
  7513. n|no)
  7514. USE_CAP=no
  7515. # -1 is a magic value used by menuselect to know that the package
  7516. # was disabled, other than 'not found'
  7517. PBX_CAP=-1
  7518. ;;
  7519. y|ye|yes)
  7520. ac_mandatory_list="${ac_mandatory_list} CAP"
  7521. ;;
  7522. *)
  7523. CAP_DIR="${withval}"
  7524. ac_mandatory_list="${ac_mandatory_list} CAP"
  7525. ;;
  7526. esac
  7527. fi
  7528. COROSYNC_DESCRIP="Corosync"
  7529. COROSYNC_OPTION="cpg"
  7530. PBX_COROSYNC=0
  7531. # Check whether --with-cpg was given.
  7532. if test "${with_cpg+set}" = set; then :
  7533. withval=$with_cpg;
  7534. case ${withval} in
  7535. n|no)
  7536. USE_COROSYNC=no
  7537. # -1 is a magic value used by menuselect to know that the package
  7538. # was disabled, other than 'not found'
  7539. PBX_COROSYNC=-1
  7540. ;;
  7541. y|ye|yes)
  7542. ac_mandatory_list="${ac_mandatory_list} COROSYNC"
  7543. ;;
  7544. *)
  7545. COROSYNC_DIR="${withval}"
  7546. ac_mandatory_list="${ac_mandatory_list} COROSYNC"
  7547. ;;
  7548. esac
  7549. fi
  7550. COROSYNC_CFG_STATE_TRACK_DESCRIP="A callback only in corosync 1.x"
  7551. COROSYNC_CFG_STATE_TRACK_OPTION=cfg
  7552. COROSYNC_CFG_STATE_TRACK_DIR=${COROSYNC_DIR}
  7553. PBX_COROSYNC_CFG_STATE_TRACK=0
  7554. CURSES_DESCRIP="curses"
  7555. CURSES_OPTION="curses"
  7556. PBX_CURSES=0
  7557. # Check whether --with-curses was given.
  7558. if test "${with_curses+set}" = set; then :
  7559. withval=$with_curses;
  7560. case ${withval} in
  7561. n|no)
  7562. USE_CURSES=no
  7563. # -1 is a magic value used by menuselect to know that the package
  7564. # was disabled, other than 'not found'
  7565. PBX_CURSES=-1
  7566. ;;
  7567. y|ye|yes)
  7568. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7569. ;;
  7570. *)
  7571. CURSES_DIR="${withval}"
  7572. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7573. ;;
  7574. esac
  7575. fi
  7576. CRYPTO_DESCRIP="OpenSSL Cryptography"
  7577. CRYPTO_OPTION="crypto"
  7578. PBX_CRYPTO=0
  7579. # Check whether --with-crypto was given.
  7580. if test "${with_crypto+set}" = set; then :
  7581. withval=$with_crypto;
  7582. case ${withval} in
  7583. n|no)
  7584. USE_CRYPTO=no
  7585. # -1 is a magic value used by menuselect to know that the package
  7586. # was disabled, other than 'not found'
  7587. PBX_CRYPTO=-1
  7588. ;;
  7589. y|ye|yes)
  7590. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7591. ;;
  7592. *)
  7593. CRYPTO_DIR="${withval}"
  7594. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7595. ;;
  7596. esac
  7597. fi
  7598. OPENSSL_SRTP_DESCRIP="OpenSSL SRTP Extension Support"
  7599. OPENSSL_SRTP_OPTION=crypto
  7600. OPENSSL_SRTP_DIR=${CRYPTO_DIR}
  7601. PBX_OPENSSL_SRTP=0
  7602. DAHDI_DESCRIP="DAHDI"
  7603. DAHDI_OPTION="dahdi"
  7604. PBX_DAHDI=0
  7605. # Check whether --with-dahdi was given.
  7606. if test "${with_dahdi+set}" = set; then :
  7607. withval=$with_dahdi;
  7608. case ${withval} in
  7609. n|no)
  7610. USE_DAHDI=no
  7611. # -1 is a magic value used by menuselect to know that the package
  7612. # was disabled, other than 'not found'
  7613. PBX_DAHDI=-1
  7614. ;;
  7615. y|ye|yes)
  7616. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7617. ;;
  7618. *)
  7619. DAHDI_DIR="${withval}"
  7620. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7621. ;;
  7622. esac
  7623. fi
  7624. FFMPEG_DESCRIP="Ffmpeg and avcodec"
  7625. FFMPEG_OPTION="avcodec"
  7626. PBX_FFMPEG=0
  7627. # Check whether --with-avcodec was given.
  7628. if test "${with_avcodec+set}" = set; then :
  7629. withval=$with_avcodec;
  7630. case ${withval} in
  7631. n|no)
  7632. USE_FFMPEG=no
  7633. # -1 is a magic value used by menuselect to know that the package
  7634. # was disabled, other than 'not found'
  7635. PBX_FFMPEG=-1
  7636. ;;
  7637. y|ye|yes)
  7638. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7639. ;;
  7640. *)
  7641. FFMPEG_DIR="${withval}"
  7642. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7643. ;;
  7644. esac
  7645. fi
  7646. GSM_DESCRIP="External GSM"
  7647. GSM_OPTION="gsm"
  7648. PBX_GSM=0
  7649. # Check whether --with-gsm was given.
  7650. if test "${with_gsm+set}" = set; then :
  7651. withval=$with_gsm;
  7652. case ${withval} in
  7653. n|no)
  7654. USE_GSM=no
  7655. # -1 is a magic value used by menuselect to know that the package
  7656. # was disabled, other than 'not found'
  7657. PBX_GSM=-1
  7658. ;;
  7659. y|ye|yes)
  7660. ac_mandatory_list="${ac_mandatory_list} GSM"
  7661. ;;
  7662. *)
  7663. GSM_DIR="${withval}"
  7664. ac_mandatory_list="${ac_mandatory_list} GSM"
  7665. ;;
  7666. esac
  7667. fi
  7668. ILBC_DESCRIP="System iLBC"
  7669. ILBC_OPTION="ilbc"
  7670. PBX_ILBC=0
  7671. # Check whether --with-ilbc was given.
  7672. if test "${with_ilbc+set}" = set; then :
  7673. withval=$with_ilbc;
  7674. case ${withval} in
  7675. n|no)
  7676. USE_ILBC=no
  7677. # -1 is a magic value used by menuselect to know that the package
  7678. # was disabled, other than 'not found'
  7679. PBX_ILBC=-1
  7680. ;;
  7681. y|ye|yes)
  7682. ac_mandatory_list="${ac_mandatory_list} ILBC"
  7683. ;;
  7684. *)
  7685. ILBC_DIR="${withval}"
  7686. ac_mandatory_list="${ac_mandatory_list} ILBC"
  7687. ;;
  7688. esac
  7689. fi
  7690. GTK2_DESCRIP="gtk2"
  7691. GTK2_OPTION="gtk2"
  7692. PBX_GTK2=0
  7693. # Check whether --with-gtk2 was given.
  7694. if test "${with_gtk2+set}" = set; then :
  7695. withval=$with_gtk2;
  7696. case ${withval} in
  7697. n|no)
  7698. USE_GTK2=no
  7699. # -1 is a magic value used by menuselect to know that the package
  7700. # was disabled, other than 'not found'
  7701. PBX_GTK2=-1
  7702. ;;
  7703. y|ye|yes)
  7704. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7705. ;;
  7706. *)
  7707. GTK2_DIR="${withval}"
  7708. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7709. ;;
  7710. esac
  7711. fi
  7712. GMIME_DESCRIP="GMime"
  7713. GMIME_OPTION="gmime"
  7714. PBX_GMIME=0
  7715. # Check whether --with-gmime was given.
  7716. if test "${with_gmime+set}" = set; then :
  7717. withval=$with_gmime;
  7718. case ${withval} in
  7719. n|no)
  7720. USE_GMIME=no
  7721. # -1 is a magic value used by menuselect to know that the package
  7722. # was disabled, other than 'not found'
  7723. PBX_GMIME=-1
  7724. ;;
  7725. y|ye|yes)
  7726. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7727. ;;
  7728. *)
  7729. GMIME_DIR="${withval}"
  7730. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7731. ;;
  7732. esac
  7733. fi
  7734. OPENH323_DESCRIP="OpenH323"
  7735. OPENH323_OPTION="h323"
  7736. PBX_OPENH323=0
  7737. # Check whether --with-h323 was given.
  7738. if test "${with_h323+set}" = set; then :
  7739. withval=$with_h323;
  7740. case ${withval} in
  7741. n|no)
  7742. USE_OPENH323=no
  7743. # -1 is a magic value used by menuselect to know that the package
  7744. # was disabled, other than 'not found'
  7745. PBX_OPENH323=-1
  7746. ;;
  7747. y|ye|yes)
  7748. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7749. ;;
  7750. *)
  7751. OPENH323_DIR="${withval}"
  7752. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7753. ;;
  7754. esac
  7755. fi
  7756. HOARD_DESCRIP="Hoard Memory Allocator"
  7757. HOARD_OPTION="hoard"
  7758. PBX_HOARD=0
  7759. # Check whether --with-hoard was given.
  7760. if test "${with_hoard+set}" = set; then :
  7761. withval=$with_hoard;
  7762. case ${withval} in
  7763. n|no)
  7764. USE_HOARD=no
  7765. # -1 is a magic value used by menuselect to know that the package
  7766. # was disabled, other than 'not found'
  7767. PBX_HOARD=-1
  7768. ;;
  7769. y|ye|yes)
  7770. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7771. ;;
  7772. *)
  7773. HOARD_DIR="${withval}"
  7774. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7775. ;;
  7776. esac
  7777. fi
  7778. ICAL_DESCRIP="iCal"
  7779. ICAL_OPTION="ical"
  7780. PBX_ICAL=0
  7781. # Check whether --with-ical was given.
  7782. if test "${with_ical+set}" = set; then :
  7783. withval=$with_ical;
  7784. case ${withval} in
  7785. n|no)
  7786. USE_ICAL=no
  7787. # -1 is a magic value used by menuselect to know that the package
  7788. # was disabled, other than 'not found'
  7789. PBX_ICAL=-1
  7790. ;;
  7791. y|ye|yes)
  7792. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7793. ;;
  7794. *)
  7795. ICAL_DIR="${withval}"
  7796. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7797. ;;
  7798. esac
  7799. fi
  7800. ICONV_DESCRIP="Iconv"
  7801. ICONV_OPTION="iconv"
  7802. PBX_ICONV=0
  7803. # Check whether --with-iconv was given.
  7804. if test "${with_iconv+set}" = set; then :
  7805. withval=$with_iconv;
  7806. case ${withval} in
  7807. n|no)
  7808. USE_ICONV=no
  7809. # -1 is a magic value used by menuselect to know that the package
  7810. # was disabled, other than 'not found'
  7811. PBX_ICONV=-1
  7812. ;;
  7813. y|ye|yes)
  7814. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7815. ;;
  7816. *)
  7817. ICONV_DIR="${withval}"
  7818. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7819. ;;
  7820. esac
  7821. fi
  7822. IKSEMEL_DESCRIP="Iksemel Jabber"
  7823. IKSEMEL_OPTION="iksemel"
  7824. PBX_IKSEMEL=0
  7825. # Check whether --with-iksemel was given.
  7826. if test "${with_iksemel+set}" = set; then :
  7827. withval=$with_iksemel;
  7828. case ${withval} in
  7829. n|no)
  7830. USE_IKSEMEL=no
  7831. # -1 is a magic value used by menuselect to know that the package
  7832. # was disabled, other than 'not found'
  7833. PBX_IKSEMEL=-1
  7834. ;;
  7835. y|ye|yes)
  7836. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7837. ;;
  7838. *)
  7839. IKSEMEL_DIR="${withval}"
  7840. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7841. ;;
  7842. esac
  7843. fi
  7844. IMAP_TK_DESCRIP="UW IMAP Toolkit"
  7845. IMAP_TK_OPTION="imap"
  7846. PBX_IMAP_TK=0
  7847. # Check whether --with-imap was given.
  7848. if test "${with_imap+set}" = set; then :
  7849. withval=$with_imap;
  7850. case ${withval} in
  7851. n|no)
  7852. USE_IMAP_TK=no
  7853. # -1 is a magic value used by menuselect to know that the package
  7854. # was disabled, other than 'not found'
  7855. PBX_IMAP_TK=-1
  7856. ;;
  7857. y|ye|yes)
  7858. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  7859. ;;
  7860. *)
  7861. IMAP_TK_DIR="${withval}"
  7862. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  7863. ;;
  7864. esac
  7865. fi
  7866. INOTIFY_DESCRIP="inotify support"
  7867. INOTIFY_OPTION="inotify"
  7868. PBX_INOTIFY=0
  7869. # Check whether --with-inotify was given.
  7870. if test "${with_inotify+set}" = set; then :
  7871. withval=$with_inotify;
  7872. case ${withval} in
  7873. n|no)
  7874. USE_INOTIFY=no
  7875. # -1 is a magic value used by menuselect to know that the package
  7876. # was disabled, other than 'not found'
  7877. PBX_INOTIFY=-1
  7878. ;;
  7879. y|ye|yes)
  7880. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  7881. ;;
  7882. *)
  7883. INOTIFY_DIR="${withval}"
  7884. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  7885. ;;
  7886. esac
  7887. fi
  7888. IODBC_DESCRIP="iODBC"
  7889. IODBC_OPTION="iodbc"
  7890. PBX_IODBC=0
  7891. # Check whether --with-iodbc was given.
  7892. if test "${with_iodbc+set}" = set; then :
  7893. withval=$with_iodbc;
  7894. case ${withval} in
  7895. n|no)
  7896. USE_IODBC=no
  7897. # -1 is a magic value used by menuselect to know that the package
  7898. # was disabled, other than 'not found'
  7899. PBX_IODBC=-1
  7900. ;;
  7901. y|ye|yes)
  7902. ac_mandatory_list="${ac_mandatory_list} IODBC"
  7903. ;;
  7904. *)
  7905. IODBC_DIR="${withval}"
  7906. ac_mandatory_list="${ac_mandatory_list} IODBC"
  7907. ;;
  7908. esac
  7909. fi
  7910. ISDNNET_DESCRIP="ISDN4Linux"
  7911. ISDNNET_OPTION="isdnnet"
  7912. PBX_ISDNNET=0
  7913. # Check whether --with-isdnnet was given.
  7914. if test "${with_isdnnet+set}" = set; then :
  7915. withval=$with_isdnnet;
  7916. case ${withval} in
  7917. n|no)
  7918. USE_ISDNNET=no
  7919. # -1 is a magic value used by menuselect to know that the package
  7920. # was disabled, other than 'not found'
  7921. PBX_ISDNNET=-1
  7922. ;;
  7923. y|ye|yes)
  7924. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  7925. ;;
  7926. *)
  7927. ISDNNET_DIR="${withval}"
  7928. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  7929. ;;
  7930. esac
  7931. fi
  7932. JACK_DESCRIP="Jack Audio Connection Kit"
  7933. JACK_OPTION="jack"
  7934. PBX_JACK=0
  7935. # Check whether --with-jack was given.
  7936. if test "${with_jack+set}" = set; then :
  7937. withval=$with_jack;
  7938. case ${withval} in
  7939. n|no)
  7940. USE_JACK=no
  7941. # -1 is a magic value used by menuselect to know that the package
  7942. # was disabled, other than 'not found'
  7943. PBX_JACK=-1
  7944. ;;
  7945. y|ye|yes)
  7946. ac_mandatory_list="${ac_mandatory_list} JACK"
  7947. ;;
  7948. *)
  7949. JACK_DIR="${withval}"
  7950. ac_mandatory_list="${ac_mandatory_list} JACK"
  7951. ;;
  7952. esac
  7953. fi
  7954. KQUEUE_DESCRIP="kqueue support"
  7955. KQUEUE_OPTION="kqueue"
  7956. PBX_KQUEUE=0
  7957. # Check whether --with-kqueue was given.
  7958. if test "${with_kqueue+set}" = set; then :
  7959. withval=$with_kqueue;
  7960. case ${withval} in
  7961. n|no)
  7962. USE_KQUEUE=no
  7963. # -1 is a magic value used by menuselect to know that the package
  7964. # was disabled, other than 'not found'
  7965. PBX_KQUEUE=-1
  7966. ;;
  7967. y|ye|yes)
  7968. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  7969. ;;
  7970. *)
  7971. KQUEUE_DIR="${withval}"
  7972. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  7973. ;;
  7974. esac
  7975. fi
  7976. LDAP_DESCRIP="OpenLDAP"
  7977. LDAP_OPTION="ldap"
  7978. PBX_LDAP=0
  7979. # Check whether --with-ldap was given.
  7980. if test "${with_ldap+set}" = set; then :
  7981. withval=$with_ldap;
  7982. case ${withval} in
  7983. n|no)
  7984. USE_LDAP=no
  7985. # -1 is a magic value used by menuselect to know that the package
  7986. # was disabled, other than 'not found'
  7987. PBX_LDAP=-1
  7988. ;;
  7989. y|ye|yes)
  7990. ac_mandatory_list="${ac_mandatory_list} LDAP"
  7991. ;;
  7992. *)
  7993. LDAP_DIR="${withval}"
  7994. ac_mandatory_list="${ac_mandatory_list} LDAP"
  7995. ;;
  7996. esac
  7997. fi
  7998. # Check whether --with-libcurl was given.
  7999. if test "${with_libcurl+set}" = set; then :
  8000. withval=$with_libcurl; _libcurl_with=$withval
  8001. else
  8002. _libcurl_with=yes
  8003. fi
  8004. if test "$_libcurl_with" != "no" ; then
  8005. for ac_prog in gawk mawk nawk awk
  8006. do
  8007. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8008. set dummy $ac_prog; ac_word=$2
  8009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8010. $as_echo_n "checking for $ac_word... " >&6; }
  8011. if ${ac_cv_prog_AWK+:} false; then :
  8012. $as_echo_n "(cached) " >&6
  8013. else
  8014. if test -n "$AWK"; then
  8015. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  8016. else
  8017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8018. for as_dir in $PATH
  8019. do
  8020. IFS=$as_save_IFS
  8021. test -z "$as_dir" && as_dir=.
  8022. for ac_exec_ext in '' $ac_executable_extensions; do
  8023. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8024. ac_cv_prog_AWK="$ac_prog"
  8025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8026. break 2
  8027. fi
  8028. done
  8029. done
  8030. IFS=$as_save_IFS
  8031. fi
  8032. fi
  8033. AWK=$ac_cv_prog_AWK
  8034. if test -n "$AWK"; then
  8035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  8036. $as_echo "$AWK" >&6; }
  8037. else
  8038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8039. $as_echo "no" >&6; }
  8040. fi
  8041. test -n "$AWK" && break
  8042. done
  8043. _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  8044. _libcurl_try_link=yes
  8045. if test -d "$_libcurl_with" ; then
  8046. CURL_INCLUDE="-I$withval/include"
  8047. _libcurl_ldflags="-L$withval/lib"
  8048. # Extract the first word of "curl-config", so it can be a program name with args.
  8049. set dummy curl-config; ac_word=$2
  8050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8051. $as_echo_n "checking for $ac_word... " >&6; }
  8052. if ${ac_cv_path__libcurl_config+:} false; then :
  8053. $as_echo_n "(cached) " >&6
  8054. else
  8055. case $_libcurl_config in
  8056. [\\/]* | ?:[\\/]*)
  8057. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8058. ;;
  8059. *)
  8060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8061. for as_dir in "$withval/bin"
  8062. do
  8063. IFS=$as_save_IFS
  8064. test -z "$as_dir" && as_dir=.
  8065. for ac_exec_ext in '' $ac_executable_extensions; do
  8066. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8067. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8068. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8069. break 2
  8070. fi
  8071. done
  8072. done
  8073. IFS=$as_save_IFS
  8074. test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
  8075. ;;
  8076. esac
  8077. fi
  8078. _libcurl_config=$ac_cv_path__libcurl_config
  8079. if test -n "$_libcurl_config"; then
  8080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  8081. $as_echo "$_libcurl_config" >&6; }
  8082. else
  8083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8084. $as_echo "no" >&6; }
  8085. fi
  8086. else
  8087. # Extract the first word of "curl-config", so it can be a program name with args.
  8088. set dummy curl-config; ac_word=$2
  8089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8090. $as_echo_n "checking for $ac_word... " >&6; }
  8091. if ${ac_cv_path__libcurl_config+:} false; then :
  8092. $as_echo_n "(cached) " >&6
  8093. else
  8094. case $_libcurl_config in
  8095. [\\/]* | ?:[\\/]*)
  8096. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8097. ;;
  8098. *)
  8099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8100. for as_dir in $PATH
  8101. do
  8102. IFS=$as_save_IFS
  8103. test -z "$as_dir" && as_dir=.
  8104. for ac_exec_ext in '' $ac_executable_extensions; do
  8105. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8106. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8108. break 2
  8109. fi
  8110. done
  8111. done
  8112. IFS=$as_save_IFS
  8113. ;;
  8114. esac
  8115. fi
  8116. _libcurl_config=$ac_cv_path__libcurl_config
  8117. if test -n "$_libcurl_config"; then
  8118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  8119. $as_echo "$_libcurl_config" >&6; }
  8120. else
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8122. $as_echo "no" >&6; }
  8123. fi
  8124. fi
  8125. if test x$_libcurl_config != "x" ; then
  8126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
  8127. $as_echo_n "checking for the version of libcurl... " >&6; }
  8128. if ${libcurl_cv_lib_curl_version+:} false; then :
  8129. $as_echo_n "(cached) " >&6
  8130. else
  8131. libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  8132. fi
  8133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
  8134. $as_echo "$libcurl_cv_lib_curl_version" >&6; }
  8135. _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  8136. _libcurl_wanted=`echo 7.10.1 | $_libcurl_version_parse`
  8137. if test $_libcurl_wanted -gt 0 ; then
  8138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.1" >&5
  8139. $as_echo_n "checking for libcurl >= version 7.10.1... " >&6; }
  8140. if ${libcurl_cv_lib_version_ok+:} false; then :
  8141. $as_echo_n "(cached) " >&6
  8142. else
  8143. if test $_libcurl_version -ge $_libcurl_wanted ; then
  8144. libcurl_cv_lib_version_ok=yes
  8145. else
  8146. libcurl_cv_lib_version_ok=no
  8147. fi
  8148. fi
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
  8150. $as_echo "$libcurl_cv_lib_version_ok" >&6; }
  8151. fi
  8152. if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
  8153. if test x"$CURL_INCLUDE" = "x" ; then
  8154. CURL_INCLUDE=`$_libcurl_config --cflags`
  8155. fi
  8156. if test x"$CURL_LIB" = "x" ; then
  8157. CURL_LIB=`$_libcurl_config --libs`
  8158. # This is so silly, but Apple actually has a bug in their
  8159. # curl-config script. Fixed in Tiger, but there are still
  8160. # lots of Panther installs around.
  8161. case "${host}" in
  8162. powerpc-apple-darwin7*)
  8163. CURL_LIB=`echo $CURL_LIB | sed -e 's|-arch i386||g'`
  8164. ;;
  8165. esac
  8166. fi
  8167. # All curl-config scripts support --feature
  8168. _libcurl_features=`$_libcurl_config --feature`
  8169. # Is it modern enough to have --protocols? (7.12.4)
  8170. if test $_libcurl_version -ge 461828 ; then
  8171. _libcurl_protocols=`$_libcurl_config --protocols`
  8172. fi
  8173. else
  8174. _libcurl_try_link=no
  8175. fi
  8176. unset _libcurl_wanted
  8177. fi
  8178. if test $_libcurl_try_link = yes ; then
  8179. # we didn't find curl-config, so let's see if the user-supplied
  8180. # link line (or failing that, "-lcurl") is enough.
  8181. CURL_LIB=${CURL_LIB-"$_libcurl_ldflags -lcurl"}
  8182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
  8183. $as_echo_n "checking whether libcurl is usable... " >&6; }
  8184. if ${libcurl_cv_lib_curl_usable+:} false; then :
  8185. $as_echo_n "(cached) " >&6
  8186. else
  8187. _libcurl_save_cppflags=$CPPFLAGS
  8188. CPPFLAGS="$CURL_INCLUDE $CPPFLAGS"
  8189. _libcurl_save_libs=$LIBS
  8190. LIBS="$CURL_LIB $LIBS"
  8191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8192. /* end confdefs.h. */
  8193. #include <curl/curl.h>
  8194. int
  8195. main ()
  8196. {
  8197. /* Try and use a few common options to force a failure if we are
  8198. missing symbols or can't link. */
  8199. int x;
  8200. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  8201. x=CURL_ERROR_SIZE;
  8202. x=CURLOPT_WRITEFUNCTION;
  8203. x=CURLOPT_FILE;
  8204. x=CURLOPT_ERRORBUFFER;
  8205. x=CURLOPT_STDERR;
  8206. x=CURLOPT_VERBOSE;
  8207. ;
  8208. return 0;
  8209. }
  8210. _ACEOF
  8211. if ac_fn_c_try_link "$LINENO"; then :
  8212. libcurl_cv_lib_curl_usable=yes
  8213. else
  8214. libcurl_cv_lib_curl_usable=no
  8215. fi
  8216. rm -f core conftest.err conftest.$ac_objext \
  8217. conftest$ac_exeext conftest.$ac_ext
  8218. CPPFLAGS=$_libcurl_save_cppflags
  8219. LIBS=$_libcurl_save_libs
  8220. unset _libcurl_save_cppflags
  8221. unset _libcurl_save_libs
  8222. fi
  8223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
  8224. $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
  8225. if test $libcurl_cv_lib_curl_usable = yes ; then
  8226. # Does curl_free() exist in this version of libcurl?
  8227. # If not, fake it with free()
  8228. _libcurl_save_cppflags=$CPPFLAGS
  8229. CPPFLAGS="$CPPFLAGS $CURL_INCLUDE"
  8230. _libcurl_save_libs=$LIBS
  8231. LIBS="$LIBS $CURL_LIB"
  8232. ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
  8233. if test "x$ac_cv_func_curl_free" = xyes; then :
  8234. else
  8235. $as_echo "#define curl_free free" >>confdefs.h
  8236. fi
  8237. CPPFLAGS=$_libcurl_save_cppflags
  8238. LIBS=$_libcurl_save_libs
  8239. unset _libcurl_save_cppflags
  8240. unset _libcurl_save_libs
  8241. $as_echo "#define HAVE_CURL 1" >>confdefs.h
  8242. PBX_CURL=1
  8243. for _libcurl_feature in $_libcurl_features ; do
  8244. cat >>confdefs.h <<_ACEOF
  8245. #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  8246. _ACEOF
  8247. eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  8248. done
  8249. if test "x$_libcurl_protocols" = "x" ; then
  8250. # We don't have --protocols, so just assume that all
  8251. # protocols are available
  8252. _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
  8253. if test x$libcurl_feature_SSL = xyes ; then
  8254. _libcurl_protocols="$_libcurl_protocols HTTPS"
  8255. # FTPS wasn't standards-compliant until version
  8256. # 7.11.0
  8257. if test $_libcurl_version -ge 461568; then
  8258. _libcurl_protocols="$_libcurl_protocols FTPS"
  8259. fi
  8260. fi
  8261. fi
  8262. for _libcurl_protocol in $_libcurl_protocols ; do
  8263. cat >>confdefs.h <<_ACEOF
  8264. #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  8265. _ACEOF
  8266. eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  8267. done
  8268. else
  8269. unset CURL_LIB
  8270. unset CURL_INCLUDE
  8271. PBX_CURL=0
  8272. fi
  8273. fi
  8274. unset _libcurl_try_link
  8275. unset _libcurl_version_parse
  8276. unset _libcurl_config
  8277. unset _libcurl_feature
  8278. unset _libcurl_features
  8279. unset _libcurl_protocol
  8280. unset _libcurl_protocols
  8281. unset _libcurl_version
  8282. unset _libcurl_ldflags
  8283. fi
  8284. if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
  8285. # This is the IF-NO path
  8286. :
  8287. else
  8288. # This is the IF-YES path
  8289. :
  8290. fi
  8291. unset _libcurl_with
  8292. LIBEDIT_DESCRIP="NetBSD Editline library"
  8293. LIBEDIT_OPTION="libedit"
  8294. PBX_LIBEDIT=0
  8295. # Check whether --with-libedit was given.
  8296. if test "${with_libedit+set}" = set; then :
  8297. withval=$with_libedit;
  8298. case ${withval} in
  8299. n|no)
  8300. USE_LIBEDIT=no
  8301. # -1 is a magic value used by menuselect to know that the package
  8302. # was disabled, other than 'not found'
  8303. PBX_LIBEDIT=-1
  8304. ;;
  8305. y|ye|yes)
  8306. ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
  8307. ;;
  8308. *)
  8309. LIBEDIT_DIR="${withval}"
  8310. ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
  8311. ;;
  8312. esac
  8313. fi
  8314. LIBXML2_DESCRIP="LibXML2"
  8315. LIBXML2_OPTION="libxml2"
  8316. PBX_LIBXML2=0
  8317. # Check whether --with-libxml2 was given.
  8318. if test "${with_libxml2+set}" = set; then :
  8319. withval=$with_libxml2;
  8320. case ${withval} in
  8321. n|no)
  8322. USE_LIBXML2=no
  8323. # -1 is a magic value used by menuselect to know that the package
  8324. # was disabled, other than 'not found'
  8325. PBX_LIBXML2=-1
  8326. ;;
  8327. y|ye|yes)
  8328. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8329. ;;
  8330. *)
  8331. LIBXML2_DIR="${withval}"
  8332. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8333. ;;
  8334. esac
  8335. fi
  8336. LTDL_DESCRIP="libtool"
  8337. LTDL_OPTION="ltdl"
  8338. PBX_LTDL=0
  8339. # Check whether --with-ltdl was given.
  8340. if test "${with_ltdl+set}" = set; then :
  8341. withval=$with_ltdl;
  8342. case ${withval} in
  8343. n|no)
  8344. USE_LTDL=no
  8345. # -1 is a magic value used by menuselect to know that the package
  8346. # was disabled, other than 'not found'
  8347. PBX_LTDL=-1
  8348. ;;
  8349. y|ye|yes)
  8350. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8351. ;;
  8352. *)
  8353. LTDL_DIR="${withval}"
  8354. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8355. ;;
  8356. esac
  8357. fi
  8358. LUA_DESCRIP="Lua"
  8359. LUA_OPTION="lua"
  8360. PBX_LUA=0
  8361. # Check whether --with-lua was given.
  8362. if test "${with_lua+set}" = set; then :
  8363. withval=$with_lua;
  8364. case ${withval} in
  8365. n|no)
  8366. USE_LUA=no
  8367. # -1 is a magic value used by menuselect to know that the package
  8368. # was disabled, other than 'not found'
  8369. PBX_LUA=-1
  8370. ;;
  8371. y|ye|yes)
  8372. ac_mandatory_list="${ac_mandatory_list} LUA"
  8373. ;;
  8374. *)
  8375. LUA_DIR="${withval}"
  8376. ac_mandatory_list="${ac_mandatory_list} LUA"
  8377. ;;
  8378. esac
  8379. fi
  8380. MISDN_DESCRIP="mISDN user"
  8381. MISDN_OPTION="misdn"
  8382. PBX_MISDN=0
  8383. # Check whether --with-misdn was given.
  8384. if test "${with_misdn+set}" = set; then :
  8385. withval=$with_misdn;
  8386. case ${withval} in
  8387. n|no)
  8388. USE_MISDN=no
  8389. # -1 is a magic value used by menuselect to know that the package
  8390. # was disabled, other than 'not found'
  8391. PBX_MISDN=-1
  8392. ;;
  8393. y|ye|yes)
  8394. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8395. ;;
  8396. *)
  8397. MISDN_DIR="${withval}"
  8398. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8399. ;;
  8400. esac
  8401. fi
  8402. MYSQLCLIENT_DESCRIP="MySQL client"
  8403. MYSQLCLIENT_OPTION="mysqlclient"
  8404. PBX_MYSQLCLIENT=0
  8405. # Check whether --with-mysqlclient was given.
  8406. if test "${with_mysqlclient+set}" = set; then :
  8407. withval=$with_mysqlclient;
  8408. case ${withval} in
  8409. n|no)
  8410. USE_MYSQLCLIENT=no
  8411. # -1 is a magic value used by menuselect to know that the package
  8412. # was disabled, other than 'not found'
  8413. PBX_MYSQLCLIENT=-1
  8414. ;;
  8415. y|ye|yes)
  8416. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8417. ;;
  8418. *)
  8419. MYSQLCLIENT_DIR="${withval}"
  8420. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8421. ;;
  8422. esac
  8423. fi
  8424. NBS_DESCRIP="Network Broadcast Sound"
  8425. NBS_OPTION="nbs"
  8426. PBX_NBS=0
  8427. # Check whether --with-nbs was given.
  8428. if test "${with_nbs+set}" = set; then :
  8429. withval=$with_nbs;
  8430. case ${withval} in
  8431. n|no)
  8432. USE_NBS=no
  8433. # -1 is a magic value used by menuselect to know that the package
  8434. # was disabled, other than 'not found'
  8435. PBX_NBS=-1
  8436. ;;
  8437. y|ye|yes)
  8438. ac_mandatory_list="${ac_mandatory_list} NBS"
  8439. ;;
  8440. *)
  8441. NBS_DIR="${withval}"
  8442. ac_mandatory_list="${ac_mandatory_list} NBS"
  8443. ;;
  8444. esac
  8445. fi
  8446. NCURSES_DESCRIP="ncurses"
  8447. NCURSES_OPTION="ncurses"
  8448. PBX_NCURSES=0
  8449. # Check whether --with-ncurses was given.
  8450. if test "${with_ncurses+set}" = set; then :
  8451. withval=$with_ncurses;
  8452. case ${withval} in
  8453. n|no)
  8454. USE_NCURSES=no
  8455. # -1 is a magic value used by menuselect to know that the package
  8456. # was disabled, other than 'not found'
  8457. PBX_NCURSES=-1
  8458. ;;
  8459. y|ye|yes)
  8460. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8461. ;;
  8462. *)
  8463. NCURSES_DIR="${withval}"
  8464. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8465. ;;
  8466. esac
  8467. fi
  8468. NEON_DESCRIP="neon"
  8469. NEON_OPTION="neon"
  8470. PBX_NEON=0
  8471. # Check whether --with-neon was given.
  8472. if test "${with_neon+set}" = set; then :
  8473. withval=$with_neon;
  8474. case ${withval} in
  8475. n|no)
  8476. USE_NEON=no
  8477. # -1 is a magic value used by menuselect to know that the package
  8478. # was disabled, other than 'not found'
  8479. PBX_NEON=-1
  8480. ;;
  8481. y|ye|yes)
  8482. ac_mandatory_list="${ac_mandatory_list} NEON"
  8483. ;;
  8484. *)
  8485. NEON_DIR="${withval}"
  8486. ac_mandatory_list="${ac_mandatory_list} NEON"
  8487. ;;
  8488. esac
  8489. fi
  8490. NEON29_DESCRIP="neon29"
  8491. NEON29_OPTION="neon29"
  8492. PBX_NEON29=0
  8493. # Check whether --with-neon29 was given.
  8494. if test "${with_neon29+set}" = set; then :
  8495. withval=$with_neon29;
  8496. case ${withval} in
  8497. n|no)
  8498. USE_NEON29=no
  8499. # -1 is a magic value used by menuselect to know that the package
  8500. # was disabled, other than 'not found'
  8501. PBX_NEON29=-1
  8502. ;;
  8503. y|ye|yes)
  8504. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8505. ;;
  8506. *)
  8507. NEON29_DIR="${withval}"
  8508. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8509. ;;
  8510. esac
  8511. fi
  8512. NETSNMP_DESCRIP="Net-SNMP"
  8513. NETSNMP_OPTION="netsnmp"
  8514. PBX_NETSNMP=0
  8515. # Check whether --with-netsnmp was given.
  8516. if test "${with_netsnmp+set}" = set; then :
  8517. withval=$with_netsnmp;
  8518. case ${withval} in
  8519. n|no)
  8520. USE_NETSNMP=no
  8521. # -1 is a magic value used by menuselect to know that the package
  8522. # was disabled, other than 'not found'
  8523. PBX_NETSNMP=-1
  8524. ;;
  8525. y|ye|yes)
  8526. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8527. ;;
  8528. *)
  8529. NETSNMP_DIR="${withval}"
  8530. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8531. ;;
  8532. esac
  8533. fi
  8534. NEWT_DESCRIP="newt"
  8535. NEWT_OPTION="newt"
  8536. PBX_NEWT=0
  8537. # Check whether --with-newt was given.
  8538. if test "${with_newt+set}" = set; then :
  8539. withval=$with_newt;
  8540. case ${withval} in
  8541. n|no)
  8542. USE_NEWT=no
  8543. # -1 is a magic value used by menuselect to know that the package
  8544. # was disabled, other than 'not found'
  8545. PBX_NEWT=-1
  8546. ;;
  8547. y|ye|yes)
  8548. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8549. ;;
  8550. *)
  8551. NEWT_DIR="${withval}"
  8552. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8553. ;;
  8554. esac
  8555. fi
  8556. OGG_DESCRIP="OGG"
  8557. OGG_OPTION="ogg"
  8558. PBX_OGG=0
  8559. # Check whether --with-ogg was given.
  8560. if test "${with_ogg+set}" = set; then :
  8561. withval=$with_ogg;
  8562. case ${withval} in
  8563. n|no)
  8564. USE_OGG=no
  8565. # -1 is a magic value used by menuselect to know that the package
  8566. # was disabled, other than 'not found'
  8567. PBX_OGG=-1
  8568. ;;
  8569. y|ye|yes)
  8570. ac_mandatory_list="${ac_mandatory_list} OGG"
  8571. ;;
  8572. *)
  8573. OGG_DIR="${withval}"
  8574. ac_mandatory_list="${ac_mandatory_list} OGG"
  8575. ;;
  8576. esac
  8577. fi
  8578. OPENR2_DESCRIP="MFR2"
  8579. OPENR2_OPTION="openr2"
  8580. PBX_OPENR2=0
  8581. # Check whether --with-openr2 was given.
  8582. if test "${with_openr2+set}" = set; then :
  8583. withval=$with_openr2;
  8584. case ${withval} in
  8585. n|no)
  8586. USE_OPENR2=no
  8587. # -1 is a magic value used by menuselect to know that the package
  8588. # was disabled, other than 'not found'
  8589. PBX_OPENR2=-1
  8590. ;;
  8591. y|ye|yes)
  8592. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8593. ;;
  8594. *)
  8595. OPENR2_DIR="${withval}"
  8596. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8597. ;;
  8598. esac
  8599. fi
  8600. OSPTK_DESCRIP="OSP Toolkit"
  8601. OSPTK_OPTION="osptk"
  8602. PBX_OSPTK=0
  8603. # Check whether --with-osptk was given.
  8604. if test "${with_osptk+set}" = set; then :
  8605. withval=$with_osptk;
  8606. case ${withval} in
  8607. n|no)
  8608. USE_OSPTK=no
  8609. # -1 is a magic value used by menuselect to know that the package
  8610. # was disabled, other than 'not found'
  8611. PBX_OSPTK=-1
  8612. ;;
  8613. y|ye|yes)
  8614. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8615. ;;
  8616. *)
  8617. OSPTK_DIR="${withval}"
  8618. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8619. ;;
  8620. esac
  8621. fi
  8622. OSS_DESCRIP="Open Sound System"
  8623. OSS_OPTION="oss"
  8624. PBX_OSS=0
  8625. # Check whether --with-oss was given.
  8626. if test "${with_oss+set}" = set; then :
  8627. withval=$with_oss;
  8628. case ${withval} in
  8629. n|no)
  8630. USE_OSS=no
  8631. # -1 is a magic value used by menuselect to know that the package
  8632. # was disabled, other than 'not found'
  8633. PBX_OSS=-1
  8634. ;;
  8635. y|ye|yes)
  8636. ac_mandatory_list="${ac_mandatory_list} OSS"
  8637. ;;
  8638. *)
  8639. OSS_DIR="${withval}"
  8640. ac_mandatory_list="${ac_mandatory_list} OSS"
  8641. ;;
  8642. esac
  8643. fi
  8644. PGSQL_DESCRIP="PostgreSQL"
  8645. PGSQL_OPTION="postgres"
  8646. PBX_PGSQL=0
  8647. # Check whether --with-postgres was given.
  8648. if test "${with_postgres+set}" = set; then :
  8649. withval=$with_postgres;
  8650. case ${withval} in
  8651. n|no)
  8652. USE_PGSQL=no
  8653. # -1 is a magic value used by menuselect to know that the package
  8654. # was disabled, other than 'not found'
  8655. PBX_PGSQL=-1
  8656. ;;
  8657. y|ye|yes)
  8658. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8659. ;;
  8660. *)
  8661. PGSQL_DIR="${withval}"
  8662. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8663. ;;
  8664. esac
  8665. fi
  8666. POPT_DESCRIP="popt"
  8667. POPT_OPTION="popt"
  8668. PBX_POPT=0
  8669. # Check whether --with-popt was given.
  8670. if test "${with_popt+set}" = set; then :
  8671. withval=$with_popt;
  8672. case ${withval} in
  8673. n|no)
  8674. USE_POPT=no
  8675. # -1 is a magic value used by menuselect to know that the package
  8676. # was disabled, other than 'not found'
  8677. PBX_POPT=-1
  8678. ;;
  8679. y|ye|yes)
  8680. ac_mandatory_list="${ac_mandatory_list} POPT"
  8681. ;;
  8682. *)
  8683. POPT_DIR="${withval}"
  8684. ac_mandatory_list="${ac_mandatory_list} POPT"
  8685. ;;
  8686. esac
  8687. fi
  8688. PORTAUDIO_DESCRIP="PortAudio"
  8689. PORTAUDIO_OPTION="portaudio"
  8690. PBX_PORTAUDIO=0
  8691. # Check whether --with-portaudio was given.
  8692. if test "${with_portaudio+set}" = set; then :
  8693. withval=$with_portaudio;
  8694. case ${withval} in
  8695. n|no)
  8696. USE_PORTAUDIO=no
  8697. # -1 is a magic value used by menuselect to know that the package
  8698. # was disabled, other than 'not found'
  8699. PBX_PORTAUDIO=-1
  8700. ;;
  8701. y|ye|yes)
  8702. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8703. ;;
  8704. *)
  8705. PORTAUDIO_DIR="${withval}"
  8706. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8707. ;;
  8708. esac
  8709. fi
  8710. PRI_DESCRIP="ISDN PRI"
  8711. PRI_OPTION="pri"
  8712. PBX_PRI=0
  8713. # Check whether --with-pri was given.
  8714. if test "${with_pri+set}" = set; then :
  8715. withval=$with_pri;
  8716. case ${withval} in
  8717. n|no)
  8718. USE_PRI=no
  8719. # -1 is a magic value used by menuselect to know that the package
  8720. # was disabled, other than 'not found'
  8721. PBX_PRI=-1
  8722. ;;
  8723. y|ye|yes)
  8724. ac_mandatory_list="${ac_mandatory_list} PRI"
  8725. ;;
  8726. *)
  8727. PRI_DIR="${withval}"
  8728. ac_mandatory_list="${ac_mandatory_list} PRI"
  8729. ;;
  8730. esac
  8731. fi
  8732. PRI_SETUP_ACK_INBAND_DESCRIP="ISDN PRI progress inband ie in SETUP ACK"
  8733. PRI_SETUP_ACK_INBAND_OPTION=pri
  8734. PRI_SETUP_ACK_INBAND_DIR=${PRI_DIR}
  8735. PBX_PRI_SETUP_ACK_INBAND=0
  8736. PRI_L2_PERSISTENCE_DESCRIP="ISDN Layer 2 persistence option"
  8737. PRI_L2_PERSISTENCE_OPTION=pri
  8738. PRI_L2_PERSISTENCE_DIR=${PRI_DIR}
  8739. PBX_PRI_L2_PERSISTENCE=0
  8740. PRI_DATETIME_SEND_DESCRIP="ISDN PRI Date/time ie send policy"
  8741. PRI_DATETIME_SEND_OPTION=pri
  8742. PRI_DATETIME_SEND_DIR=${PRI_DIR}
  8743. PBX_PRI_DATETIME_SEND=0
  8744. PRI_MWI_V2_DESCRIP="ISDN PRI Message Waiting Indication (Fixed)"
  8745. PRI_MWI_V2_OPTION=pri
  8746. PRI_MWI_V2_DIR=${PRI_DIR}
  8747. PBX_PRI_MWI_V2=0
  8748. PRI_DISPLAY_TEXT_DESCRIP="ISDN PRI user display text IE contents during call"
  8749. PRI_DISPLAY_TEXT_OPTION=pri
  8750. PRI_DISPLAY_TEXT_DIR=${PRI_DIR}
  8751. PBX_PRI_DISPLAY_TEXT=0
  8752. PRI_MWI_DESCRIP="ISDN PRI Message Waiting Indication"
  8753. PRI_MWI_OPTION=pri
  8754. PRI_MWI_DIR=${PRI_DIR}
  8755. PBX_PRI_MWI=0
  8756. PRI_MCID_DESCRIP="ISDN PRI Malicious Call ID"
  8757. PRI_MCID_OPTION=pri
  8758. PRI_MCID_DIR=${PRI_DIR}
  8759. PBX_PRI_MCID=0
  8760. PRI_CALL_WAITING_DESCRIP="ISDN PRI call waiting supplementary service"
  8761. PRI_CALL_WAITING_OPTION=pri
  8762. PRI_CALL_WAITING_DIR=${PRI_DIR}
  8763. PBX_PRI_CALL_WAITING=0
  8764. PRI_AOC_EVENTS_DESCRIP="ISDN PRI advice of charge supplementary service events"
  8765. PRI_AOC_EVENTS_OPTION=pri
  8766. PRI_AOC_EVENTS_DIR=${PRI_DIR}
  8767. PBX_PRI_AOC_EVENTS=0
  8768. PRI_TRANSFER_DESCRIP="ISDN PRI call transfer supplementary service"
  8769. PRI_TRANSFER_OPTION=pri
  8770. PRI_TRANSFER_DIR=${PRI_DIR}
  8771. PBX_PRI_TRANSFER=0
  8772. PRI_CCSS_DESCRIP="ISDN PRI call completion supplementary service"
  8773. PRI_CCSS_OPTION=pri
  8774. PRI_CCSS_DIR=${PRI_DIR}
  8775. PBX_PRI_CCSS=0
  8776. PRI_HANGUP_FIX_DESCRIP="ISDN PRI hangup fix"
  8777. PRI_HANGUP_FIX_OPTION=pri
  8778. PRI_HANGUP_FIX_DIR=${PRI_DIR}
  8779. PBX_PRI_HANGUP_FIX=0
  8780. PRI_SUBADDR_DESCRIP="ISDN PRI subaddressing"
  8781. PRI_SUBADDR_OPTION=pri
  8782. PRI_SUBADDR_DIR=${PRI_DIR}
  8783. PBX_PRI_SUBADDR=0
  8784. PRI_CALL_HOLD_DESCRIP="ISDN PRI call hold"
  8785. PRI_CALL_HOLD_OPTION=pri
  8786. PRI_CALL_HOLD_DIR=${PRI_DIR}
  8787. PBX_PRI_CALL_HOLD=0
  8788. PRI_CALL_REROUTING_DESCRIP="ISDN PRI call rerouting and call deflection"
  8789. PRI_CALL_REROUTING_OPTION=pri
  8790. PRI_CALL_REROUTING_DIR=${PRI_DIR}
  8791. PBX_PRI_CALL_REROUTING=0
  8792. PRI_SETUP_KEYPAD_DESCRIP="ISDN PRI keypad facility in SETUP"
  8793. PRI_SETUP_KEYPAD_OPTION=pri
  8794. PRI_SETUP_KEYPAD_DIR=${PRI_DIR}
  8795. PBX_PRI_SETUP_KEYPAD=0
  8796. # ------------------------------------v
  8797. # TODO: The code can be changed to always include these features now.
  8798. # These features will always be present if pri_connected_line_update is available.
  8799. PRI_INBANDDISCONNECT_DESCRIP="ISDN PRI set_inbanddisconnect"
  8800. PRI_INBANDDISCONNECT_OPTION=pri
  8801. PRI_INBANDDISCONNECT_DIR=${PRI_DIR}
  8802. PBX_PRI_INBANDDISCONNECT=0
  8803. PRI_PROG_W_CAUSE_DESCRIP="ISDN progress with cause"
  8804. PRI_PROG_W_CAUSE_OPTION=pri
  8805. PRI_PROG_W_CAUSE_DIR=${PRI_DIR}
  8806. PBX_PRI_PROG_W_CAUSE=0
  8807. PRI_SERVICE_MESSAGES_DESCRIP="ISDN service messages"
  8808. PRI_SERVICE_MESSAGES_OPTION=pri
  8809. PRI_SERVICE_MESSAGES_DIR=${PRI_DIR}
  8810. PBX_PRI_SERVICE_MESSAGES=0
  8811. PRI_REVERSE_CHARGE_DESCRIP="ISDN reverse charge"
  8812. PRI_REVERSE_CHARGE_OPTION=pri
  8813. PRI_REVERSE_CHARGE_DIR=${PRI_DIR}
  8814. PBX_PRI_REVERSE_CHARGE=0
  8815. # ------------------------------------^
  8816. PWLIB_DESCRIP="PWlib"
  8817. PWLIB_OPTION="pwlib"
  8818. PBX_PWLIB=0
  8819. # Check whether --with-pwlib was given.
  8820. if test "${with_pwlib+set}" = set; then :
  8821. withval=$with_pwlib;
  8822. case ${withval} in
  8823. n|no)
  8824. USE_PWLIB=no
  8825. # -1 is a magic value used by menuselect to know that the package
  8826. # was disabled, other than 'not found'
  8827. PBX_PWLIB=-1
  8828. ;;
  8829. y|ye|yes)
  8830. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  8831. ;;
  8832. *)
  8833. PWLIB_DIR="${withval}"
  8834. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  8835. ;;
  8836. esac
  8837. fi
  8838. RADIUS_DESCRIP="Radius Client"
  8839. RADIUS_OPTION="radius"
  8840. PBX_RADIUS=0
  8841. # Check whether --with-radius was given.
  8842. if test "${with_radius+set}" = set; then :
  8843. withval=$with_radius;
  8844. case ${withval} in
  8845. n|no)
  8846. USE_RADIUS=no
  8847. # -1 is a magic value used by menuselect to know that the package
  8848. # was disabled, other than 'not found'
  8849. PBX_RADIUS=-1
  8850. ;;
  8851. y|ye|yes)
  8852. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  8853. ;;
  8854. *)
  8855. RADIUS_DIR="${withval}"
  8856. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  8857. ;;
  8858. esac
  8859. fi
  8860. RESAMPLE_DESCRIP="LIBRESAMPLE"
  8861. RESAMPLE_OPTION="resample"
  8862. PBX_RESAMPLE=0
  8863. # Check whether --with-resample was given.
  8864. if test "${with_resample+set}" = set; then :
  8865. withval=$with_resample;
  8866. case ${withval} in
  8867. n|no)
  8868. USE_RESAMPLE=no
  8869. # -1 is a magic value used by menuselect to know that the package
  8870. # was disabled, other than 'not found'
  8871. PBX_RESAMPLE=-1
  8872. ;;
  8873. y|ye|yes)
  8874. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  8875. ;;
  8876. *)
  8877. RESAMPLE_DIR="${withval}"
  8878. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  8879. ;;
  8880. esac
  8881. fi
  8882. SDL_DESCRIP="Sdl"
  8883. SDL_OPTION="sdl"
  8884. PBX_SDL=0
  8885. # Check whether --with-sdl was given.
  8886. if test "${with_sdl+set}" = set; then :
  8887. withval=$with_sdl;
  8888. case ${withval} in
  8889. n|no)
  8890. USE_SDL=no
  8891. # -1 is a magic value used by menuselect to know that the package
  8892. # was disabled, other than 'not found'
  8893. PBX_SDL=-1
  8894. ;;
  8895. y|ye|yes)
  8896. ac_mandatory_list="${ac_mandatory_list} SDL"
  8897. ;;
  8898. *)
  8899. SDL_DIR="${withval}"
  8900. ac_mandatory_list="${ac_mandatory_list} SDL"
  8901. ;;
  8902. esac
  8903. fi
  8904. SDL_IMAGE_DESCRIP="Sdl Image"
  8905. SDL_IMAGE_OPTION="SDL_image"
  8906. PBX_SDL_IMAGE=0
  8907. # Check whether --with-SDL_image was given.
  8908. if test "${with_SDL_image+set}" = set; then :
  8909. withval=$with_SDL_image;
  8910. case ${withval} in
  8911. n|no)
  8912. USE_SDL_IMAGE=no
  8913. # -1 is a magic value used by menuselect to know that the package
  8914. # was disabled, other than 'not found'
  8915. PBX_SDL_IMAGE=-1
  8916. ;;
  8917. y|ye|yes)
  8918. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  8919. ;;
  8920. *)
  8921. SDL_IMAGE_DIR="${withval}"
  8922. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  8923. ;;
  8924. esac
  8925. fi
  8926. # Check whether --with-sounds-cache was given.
  8927. if test "${with_sounds_cache+set}" = set; then :
  8928. withval=$with_sounds_cache;
  8929. case ${withval} in
  8930. n|no)
  8931. unset SOUNDS_CACHE_DIR
  8932. ;;
  8933. *)
  8934. if test "x${withval}" = "x"; then
  8935. :
  8936. else
  8937. SOUNDS_CACHE_DIR="${withval}"
  8938. fi
  8939. ;;
  8940. esac
  8941. else
  8942. :
  8943. fi
  8944. SPANDSP_DESCRIP="SPANDSP"
  8945. SPANDSP_OPTION="spandsp"
  8946. PBX_SPANDSP=0
  8947. # Check whether --with-spandsp was given.
  8948. if test "${with_spandsp+set}" = set; then :
  8949. withval=$with_spandsp;
  8950. case ${withval} in
  8951. n|no)
  8952. USE_SPANDSP=no
  8953. # -1 is a magic value used by menuselect to know that the package
  8954. # was disabled, other than 'not found'
  8955. PBX_SPANDSP=-1
  8956. ;;
  8957. y|ye|yes)
  8958. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  8959. ;;
  8960. *)
  8961. SPANDSP_DIR="${withval}"
  8962. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  8963. ;;
  8964. esac
  8965. fi
  8966. SS7_DESCRIP="ISDN SS7"
  8967. SS7_OPTION="ss7"
  8968. PBX_SS7=0
  8969. # Check whether --with-ss7 was given.
  8970. if test "${with_ss7+set}" = set; then :
  8971. withval=$with_ss7;
  8972. case ${withval} in
  8973. n|no)
  8974. USE_SS7=no
  8975. # -1 is a magic value used by menuselect to know that the package
  8976. # was disabled, other than 'not found'
  8977. PBX_SS7=-1
  8978. ;;
  8979. y|ye|yes)
  8980. ac_mandatory_list="${ac_mandatory_list} SS7"
  8981. ;;
  8982. *)
  8983. SS7_DIR="${withval}"
  8984. ac_mandatory_list="${ac_mandatory_list} SS7"
  8985. ;;
  8986. esac
  8987. fi
  8988. SPEEX_DESCRIP="Speex"
  8989. SPEEX_OPTION="speex"
  8990. PBX_SPEEX=0
  8991. # Check whether --with-speex was given.
  8992. if test "${with_speex+set}" = set; then :
  8993. withval=$with_speex;
  8994. case ${withval} in
  8995. n|no)
  8996. USE_SPEEX=no
  8997. # -1 is a magic value used by menuselect to know that the package
  8998. # was disabled, other than 'not found'
  8999. PBX_SPEEX=-1
  9000. ;;
  9001. y|ye|yes)
  9002. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9003. ;;
  9004. *)
  9005. SPEEX_DIR="${withval}"
  9006. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9007. ;;
  9008. esac
  9009. fi
  9010. SPEEX_PREPROCESS_DESCRIP="Speex preprocess routines"
  9011. SPEEX_PREPROCESS_OPTION="speex"
  9012. PBX_SPEEX_PREPROCESS=0
  9013. # Check whether --with-speex was given.
  9014. if test "${with_speex+set}" = set; then :
  9015. withval=$with_speex;
  9016. case ${withval} in
  9017. n|no)
  9018. USE_SPEEX_PREPROCESS=no
  9019. # -1 is a magic value used by menuselect to know that the package
  9020. # was disabled, other than 'not found'
  9021. PBX_SPEEX_PREPROCESS=-1
  9022. ;;
  9023. y|ye|yes)
  9024. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9025. ;;
  9026. *)
  9027. SPEEX_PREPROCESS_DIR="${withval}"
  9028. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9029. ;;
  9030. esac
  9031. fi
  9032. SPEEXDSP_DESCRIP="SpeexDSP"
  9033. SPEEXDSP_OPTION="speexdsp"
  9034. PBX_SPEEXDSP=0
  9035. # Check whether --with-speexdsp was given.
  9036. if test "${with_speexdsp+set}" = set; then :
  9037. withval=$with_speexdsp;
  9038. case ${withval} in
  9039. n|no)
  9040. USE_SPEEXDSP=no
  9041. # -1 is a magic value used by menuselect to know that the package
  9042. # was disabled, other than 'not found'
  9043. PBX_SPEEXDSP=-1
  9044. ;;
  9045. y|ye|yes)
  9046. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9047. ;;
  9048. *)
  9049. SPEEXDSP_DIR="${withval}"
  9050. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9051. ;;
  9052. esac
  9053. fi
  9054. SPEEX_PREPROCESS_DESCRIP="speex_preprocess_ctl"
  9055. SPEEX_PREPROCESS_OPTION=speex
  9056. PBX_SPEEX_PREPROCESS=0
  9057. SQLITE_DESCRIP="SQLite"
  9058. SQLITE_OPTION="sqlite"
  9059. PBX_SQLITE=0
  9060. # Check whether --with-sqlite was given.
  9061. if test "${with_sqlite+set}" = set; then :
  9062. withval=$with_sqlite;
  9063. case ${withval} in
  9064. n|no)
  9065. USE_SQLITE=no
  9066. # -1 is a magic value used by menuselect to know that the package
  9067. # was disabled, other than 'not found'
  9068. PBX_SQLITE=-1
  9069. ;;
  9070. y|ye|yes)
  9071. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9072. ;;
  9073. *)
  9074. SQLITE_DIR="${withval}"
  9075. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9076. ;;
  9077. esac
  9078. fi
  9079. SQLITE3_DESCRIP="SQLite"
  9080. SQLITE3_OPTION="sqlite3"
  9081. PBX_SQLITE3=0
  9082. # Check whether --with-sqlite3 was given.
  9083. if test "${with_sqlite3+set}" = set; then :
  9084. withval=$with_sqlite3;
  9085. case ${withval} in
  9086. n|no)
  9087. USE_SQLITE3=no
  9088. # -1 is a magic value used by menuselect to know that the package
  9089. # was disabled, other than 'not found'
  9090. PBX_SQLITE3=-1
  9091. ;;
  9092. y|ye|yes)
  9093. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9094. ;;
  9095. *)
  9096. SQLITE3_DIR="${withval}"
  9097. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9098. ;;
  9099. esac
  9100. fi
  9101. SRTP_DESCRIP="Secure RTP"
  9102. SRTP_OPTION="srtp"
  9103. PBX_SRTP=0
  9104. # Check whether --with-srtp was given.
  9105. if test "${with_srtp+set}" = set; then :
  9106. withval=$with_srtp;
  9107. case ${withval} in
  9108. n|no)
  9109. USE_SRTP=no
  9110. # -1 is a magic value used by menuselect to know that the package
  9111. # was disabled, other than 'not found'
  9112. PBX_SRTP=-1
  9113. ;;
  9114. y|ye|yes)
  9115. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9116. ;;
  9117. *)
  9118. SRTP_DIR="${withval}"
  9119. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9120. ;;
  9121. esac
  9122. fi
  9123. SRTP_SHUTDOWN_DESCRIP="SRTP Library Shutdown Function"
  9124. SRTP_SHUTDOWN_OPTION=srtp
  9125. SRTP_SHUTDOWN_DIR=${SRTP_DIR}
  9126. PBX_SRTP_SHUTDOWN=0
  9127. OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer"
  9128. OPENSSL_OPTION="ssl"
  9129. PBX_OPENSSL=0
  9130. # Check whether --with-ssl was given.
  9131. if test "${with_ssl+set}" = set; then :
  9132. withval=$with_ssl;
  9133. case ${withval} in
  9134. n|no)
  9135. USE_OPENSSL=no
  9136. # -1 is a magic value used by menuselect to know that the package
  9137. # was disabled, other than 'not found'
  9138. PBX_OPENSSL=-1
  9139. ;;
  9140. y|ye|yes)
  9141. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9142. ;;
  9143. *)
  9144. OPENSSL_DIR="${withval}"
  9145. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9146. ;;
  9147. esac
  9148. fi
  9149. SUPPSERV_DESCRIP="mISDN Supplemental Services"
  9150. SUPPSERV_OPTION="suppserv"
  9151. PBX_SUPPSERV=0
  9152. # Check whether --with-suppserv was given.
  9153. if test "${with_suppserv+set}" = set; then :
  9154. withval=$with_suppserv;
  9155. case ${withval} in
  9156. n|no)
  9157. USE_SUPPSERV=no
  9158. # -1 is a magic value used by menuselect to know that the package
  9159. # was disabled, other than 'not found'
  9160. PBX_SUPPSERV=-1
  9161. ;;
  9162. y|ye|yes)
  9163. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9164. ;;
  9165. *)
  9166. SUPPSERV_DIR="${withval}"
  9167. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9168. ;;
  9169. esac
  9170. fi
  9171. FREETDS_DESCRIP="FreeTDS"
  9172. FREETDS_OPTION="tds"
  9173. PBX_FREETDS=0
  9174. # Check whether --with-tds was given.
  9175. if test "${with_tds+set}" = set; then :
  9176. withval=$with_tds;
  9177. case ${withval} in
  9178. n|no)
  9179. USE_FREETDS=no
  9180. # -1 is a magic value used by menuselect to know that the package
  9181. # was disabled, other than 'not found'
  9182. PBX_FREETDS=-1
  9183. ;;
  9184. y|ye|yes)
  9185. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9186. ;;
  9187. *)
  9188. FREETDS_DIR="${withval}"
  9189. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9190. ;;
  9191. esac
  9192. fi
  9193. TERMCAP_DESCRIP="Termcap"
  9194. TERMCAP_OPTION="termcap"
  9195. PBX_TERMCAP=0
  9196. # Check whether --with-termcap was given.
  9197. if test "${with_termcap+set}" = set; then :
  9198. withval=$with_termcap;
  9199. case ${withval} in
  9200. n|no)
  9201. USE_TERMCAP=no
  9202. # -1 is a magic value used by menuselect to know that the package
  9203. # was disabled, other than 'not found'
  9204. PBX_TERMCAP=-1
  9205. ;;
  9206. y|ye|yes)
  9207. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9208. ;;
  9209. *)
  9210. TERMCAP_DIR="${withval}"
  9211. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9212. ;;
  9213. esac
  9214. fi
  9215. TIMERFD_DESCRIP="timerfd"
  9216. TIMERFD_OPTION="timerfd"
  9217. PBX_TIMERFD=0
  9218. # Check whether --with-timerfd was given.
  9219. if test "${with_timerfd+set}" = set; then :
  9220. withval=$with_timerfd;
  9221. case ${withval} in
  9222. n|no)
  9223. USE_TIMERFD=no
  9224. # -1 is a magic value used by menuselect to know that the package
  9225. # was disabled, other than 'not found'
  9226. PBX_TIMERFD=-1
  9227. ;;
  9228. y|ye|yes)
  9229. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9230. ;;
  9231. *)
  9232. TIMERFD_DIR="${withval}"
  9233. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9234. ;;
  9235. esac
  9236. fi
  9237. TINFO_DESCRIP="Term Info"
  9238. TINFO_OPTION="tinfo"
  9239. PBX_TINFO=0
  9240. # Check whether --with-tinfo was given.
  9241. if test "${with_tinfo+set}" = set; then :
  9242. withval=$with_tinfo;
  9243. case ${withval} in
  9244. n|no)
  9245. USE_TINFO=no
  9246. # -1 is a magic value used by menuselect to know that the package
  9247. # was disabled, other than 'not found'
  9248. PBX_TINFO=-1
  9249. ;;
  9250. y|ye|yes)
  9251. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9252. ;;
  9253. *)
  9254. TINFO_DIR="${withval}"
  9255. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9256. ;;
  9257. esac
  9258. fi
  9259. TONEZONE_DESCRIP="tonezone"
  9260. TONEZONE_OPTION="tonezone"
  9261. PBX_TONEZONE=0
  9262. # Check whether --with-tonezone was given.
  9263. if test "${with_tonezone+set}" = set; then :
  9264. withval=$with_tonezone;
  9265. case ${withval} in
  9266. n|no)
  9267. USE_TONEZONE=no
  9268. # -1 is a magic value used by menuselect to know that the package
  9269. # was disabled, other than 'not found'
  9270. PBX_TONEZONE=-1
  9271. ;;
  9272. y|ye|yes)
  9273. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9274. ;;
  9275. *)
  9276. TONEZONE_DIR="${withval}"
  9277. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9278. ;;
  9279. esac
  9280. fi
  9281. UNIXODBC_DESCRIP="unixODBC"
  9282. UNIXODBC_OPTION="unixodbc"
  9283. PBX_UNIXODBC=0
  9284. # Check whether --with-unixodbc was given.
  9285. if test "${with_unixodbc+set}" = set; then :
  9286. withval=$with_unixodbc;
  9287. case ${withval} in
  9288. n|no)
  9289. USE_UNIXODBC=no
  9290. # -1 is a magic value used by menuselect to know that the package
  9291. # was disabled, other than 'not found'
  9292. PBX_UNIXODBC=-1
  9293. ;;
  9294. y|ye|yes)
  9295. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9296. ;;
  9297. *)
  9298. UNIXODBC_DIR="${withval}"
  9299. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9300. ;;
  9301. esac
  9302. fi
  9303. UUID_DESCRIP="UUID"
  9304. UUID_OPTION="uuid"
  9305. PBX_UUID=0
  9306. # Check whether --with-uuid was given.
  9307. if test "${with_uuid+set}" = set; then :
  9308. withval=$with_uuid;
  9309. case ${withval} in
  9310. n|no)
  9311. USE_UUID=no
  9312. # -1 is a magic value used by menuselect to know that the package
  9313. # was disabled, other than 'not found'
  9314. PBX_UUID=-1
  9315. ;;
  9316. y|ye|yes)
  9317. ac_mandatory_list="${ac_mandatory_list} UUID"
  9318. ;;
  9319. *)
  9320. UUID_DIR="${withval}"
  9321. ac_mandatory_list="${ac_mandatory_list} UUID"
  9322. ;;
  9323. esac
  9324. fi
  9325. VORBIS_DESCRIP="Vorbis"
  9326. VORBIS_OPTION="vorbis"
  9327. PBX_VORBIS=0
  9328. # Check whether --with-vorbis was given.
  9329. if test "${with_vorbis+set}" = set; then :
  9330. withval=$with_vorbis;
  9331. case ${withval} in
  9332. n|no)
  9333. USE_VORBIS=no
  9334. # -1 is a magic value used by menuselect to know that the package
  9335. # was disabled, other than 'not found'
  9336. PBX_VORBIS=-1
  9337. ;;
  9338. y|ye|yes)
  9339. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9340. ;;
  9341. *)
  9342. VORBIS_DIR="${withval}"
  9343. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9344. ;;
  9345. esac
  9346. fi
  9347. VPB_DESCRIP="Voicetronix API"
  9348. VPB_OPTION="vpb"
  9349. PBX_VPB=0
  9350. # Check whether --with-vpb was given.
  9351. if test "${with_vpb+set}" = set; then :
  9352. withval=$with_vpb;
  9353. case ${withval} in
  9354. n|no)
  9355. USE_VPB=no
  9356. # -1 is a magic value used by menuselect to know that the package
  9357. # was disabled, other than 'not found'
  9358. PBX_VPB=-1
  9359. ;;
  9360. y|ye|yes)
  9361. ac_mandatory_list="${ac_mandatory_list} VPB"
  9362. ;;
  9363. *)
  9364. VPB_DIR="${withval}"
  9365. ac_mandatory_list="${ac_mandatory_list} VPB"
  9366. ;;
  9367. esac
  9368. fi
  9369. X11_DESCRIP="X11"
  9370. X11_OPTION="x11"
  9371. PBX_X11=0
  9372. # Check whether --with-x11 was given.
  9373. if test "${with_x11+set}" = set; then :
  9374. withval=$with_x11;
  9375. case ${withval} in
  9376. n|no)
  9377. USE_X11=no
  9378. # -1 is a magic value used by menuselect to know that the package
  9379. # was disabled, other than 'not found'
  9380. PBX_X11=-1
  9381. ;;
  9382. y|ye|yes)
  9383. ac_mandatory_list="${ac_mandatory_list} X11"
  9384. ;;
  9385. *)
  9386. X11_DIR="${withval}"
  9387. ac_mandatory_list="${ac_mandatory_list} X11"
  9388. ;;
  9389. esac
  9390. fi
  9391. ZLIB_DESCRIP="zlib compression"
  9392. ZLIB_OPTION="z"
  9393. PBX_ZLIB=0
  9394. # Check whether --with-z was given.
  9395. if test "${with_z+set}" = set; then :
  9396. withval=$with_z;
  9397. case ${withval} in
  9398. n|no)
  9399. USE_ZLIB=no
  9400. # -1 is a magic value used by menuselect to know that the package
  9401. # was disabled, other than 'not found'
  9402. PBX_ZLIB=-1
  9403. ;;
  9404. y|ye|yes)
  9405. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9406. ;;
  9407. *)
  9408. ZLIB_DIR="${withval}"
  9409. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9410. ;;
  9411. esac
  9412. fi
  9413. # check for basic system features and functionality before
  9414. # checking for package libraries
  9415. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  9416. if test "x$ac_cv_type_size_t" = xyes; then :
  9417. else
  9418. cat >>confdefs.h <<_ACEOF
  9419. #define size_t unsigned int
  9420. _ACEOF
  9421. fi
  9422. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  9423. # for constant arguments. Useless!
  9424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  9425. $as_echo_n "checking for working alloca.h... " >&6; }
  9426. if ${ac_cv_working_alloca_h+:} false; then :
  9427. $as_echo_n "(cached) " >&6
  9428. else
  9429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9430. /* end confdefs.h. */
  9431. #include <alloca.h>
  9432. int
  9433. main ()
  9434. {
  9435. char *p = (char *) alloca (2 * sizeof (int));
  9436. if (p) return 0;
  9437. ;
  9438. return 0;
  9439. }
  9440. _ACEOF
  9441. if ac_fn_c_try_link "$LINENO"; then :
  9442. ac_cv_working_alloca_h=yes
  9443. else
  9444. ac_cv_working_alloca_h=no
  9445. fi
  9446. rm -f core conftest.err conftest.$ac_objext \
  9447. conftest$ac_exeext conftest.$ac_ext
  9448. fi
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  9450. $as_echo "$ac_cv_working_alloca_h" >&6; }
  9451. if test $ac_cv_working_alloca_h = yes; then
  9452. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  9453. fi
  9454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  9455. $as_echo_n "checking for alloca... " >&6; }
  9456. if ${ac_cv_func_alloca_works+:} false; then :
  9457. $as_echo_n "(cached) " >&6
  9458. else
  9459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9460. /* end confdefs.h. */
  9461. #ifdef __GNUC__
  9462. # define alloca __builtin_alloca
  9463. #else
  9464. # ifdef _MSC_VER
  9465. # include <malloc.h>
  9466. # define alloca _alloca
  9467. # else
  9468. # ifdef HAVE_ALLOCA_H
  9469. # include <alloca.h>
  9470. # else
  9471. # ifdef _AIX
  9472. #pragma alloca
  9473. # else
  9474. # ifndef alloca /* predefined by HP cc +Olibcalls */
  9475. void *alloca (size_t);
  9476. # endif
  9477. # endif
  9478. # endif
  9479. # endif
  9480. #endif
  9481. int
  9482. main ()
  9483. {
  9484. char *p = (char *) alloca (1);
  9485. if (p) return 0;
  9486. ;
  9487. return 0;
  9488. }
  9489. _ACEOF
  9490. if ac_fn_c_try_link "$LINENO"; then :
  9491. ac_cv_func_alloca_works=yes
  9492. else
  9493. ac_cv_func_alloca_works=no
  9494. fi
  9495. rm -f core conftest.err conftest.$ac_objext \
  9496. conftest$ac_exeext conftest.$ac_ext
  9497. fi
  9498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  9499. $as_echo "$ac_cv_func_alloca_works" >&6; }
  9500. if test $ac_cv_func_alloca_works = yes; then
  9501. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  9502. else
  9503. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  9504. # that cause trouble. Some versions do not even contain alloca or
  9505. # contain a buggy version. If you still want to use their alloca,
  9506. # use ar to extract alloca.o from them instead of compiling alloca.c.
  9507. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  9508. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  9509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  9510. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  9511. if ${ac_cv_os_cray+:} false; then :
  9512. $as_echo_n "(cached) " >&6
  9513. else
  9514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9515. /* end confdefs.h. */
  9516. #if defined CRAY && ! defined CRAY2
  9517. webecray
  9518. #else
  9519. wenotbecray
  9520. #endif
  9521. _ACEOF
  9522. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9523. $EGREP "webecray" >/dev/null 2>&1; then :
  9524. ac_cv_os_cray=yes
  9525. else
  9526. ac_cv_os_cray=no
  9527. fi
  9528. rm -f conftest*
  9529. fi
  9530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  9531. $as_echo "$ac_cv_os_cray" >&6; }
  9532. if test $ac_cv_os_cray = yes; then
  9533. for ac_func in _getb67 GETB67 getb67; do
  9534. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9535. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9536. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  9537. cat >>confdefs.h <<_ACEOF
  9538. #define CRAY_STACKSEG_END $ac_func
  9539. _ACEOF
  9540. break
  9541. fi
  9542. done
  9543. fi
  9544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  9545. $as_echo_n "checking stack direction for C alloca... " >&6; }
  9546. if ${ac_cv_c_stack_direction+:} false; then :
  9547. $as_echo_n "(cached) " >&6
  9548. else
  9549. if test "$cross_compiling" = yes; then :
  9550. ac_cv_c_stack_direction=0
  9551. else
  9552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9553. /* end confdefs.h. */
  9554. $ac_includes_default
  9555. int
  9556. find_stack_direction (int *addr, int depth)
  9557. {
  9558. int dir, dummy = 0;
  9559. if (! addr)
  9560. addr = &dummy;
  9561. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  9562. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  9563. return dir + dummy;
  9564. }
  9565. int
  9566. main (int argc, char **argv)
  9567. {
  9568. return find_stack_direction (0, argc + !argv + 20) < 0;
  9569. }
  9570. _ACEOF
  9571. if ac_fn_c_try_run "$LINENO"; then :
  9572. ac_cv_c_stack_direction=1
  9573. else
  9574. ac_cv_c_stack_direction=-1
  9575. fi
  9576. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9577. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9578. fi
  9579. fi
  9580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  9581. $as_echo "$ac_cv_c_stack_direction" >&6; }
  9582. cat >>confdefs.h <<_ACEOF
  9583. #define STACK_DIRECTION $ac_cv_c_stack_direction
  9584. _ACEOF
  9585. fi
  9586. ac_header_dirent=no
  9587. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  9588. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  9590. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  9591. if eval \${$as_ac_Header+:} false; then :
  9592. $as_echo_n "(cached) " >&6
  9593. else
  9594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9595. /* end confdefs.h. */
  9596. #include <sys/types.h>
  9597. #include <$ac_hdr>
  9598. int
  9599. main ()
  9600. {
  9601. if ((DIR *) 0)
  9602. return 0;
  9603. ;
  9604. return 0;
  9605. }
  9606. _ACEOF
  9607. if ac_fn_c_try_compile "$LINENO"; then :
  9608. eval "$as_ac_Header=yes"
  9609. else
  9610. eval "$as_ac_Header=no"
  9611. fi
  9612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9613. fi
  9614. eval ac_res=\$$as_ac_Header
  9615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9616. $as_echo "$ac_res" >&6; }
  9617. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9618. cat >>confdefs.h <<_ACEOF
  9619. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  9620. _ACEOF
  9621. ac_header_dirent=$ac_hdr; break
  9622. fi
  9623. done
  9624. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  9625. if test $ac_header_dirent = dirent.h; then
  9626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  9627. $as_echo_n "checking for library containing opendir... " >&6; }
  9628. if ${ac_cv_search_opendir+:} false; then :
  9629. $as_echo_n "(cached) " >&6
  9630. else
  9631. ac_func_search_save_LIBS=$LIBS
  9632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9633. /* end confdefs.h. */
  9634. /* Override any GCC internal prototype to avoid an error.
  9635. Use char because int might match the return type of a GCC
  9636. builtin and then its argument prototype would still apply. */
  9637. #ifdef __cplusplus
  9638. extern "C"
  9639. #endif
  9640. char opendir ();
  9641. int
  9642. main ()
  9643. {
  9644. return opendir ();
  9645. ;
  9646. return 0;
  9647. }
  9648. _ACEOF
  9649. for ac_lib in '' dir; do
  9650. if test -z "$ac_lib"; then
  9651. ac_res="none required"
  9652. else
  9653. ac_res=-l$ac_lib
  9654. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9655. fi
  9656. if ac_fn_c_try_link "$LINENO"; then :
  9657. ac_cv_search_opendir=$ac_res
  9658. fi
  9659. rm -f core conftest.err conftest.$ac_objext \
  9660. conftest$ac_exeext
  9661. if ${ac_cv_search_opendir+:} false; then :
  9662. break
  9663. fi
  9664. done
  9665. if ${ac_cv_search_opendir+:} false; then :
  9666. else
  9667. ac_cv_search_opendir=no
  9668. fi
  9669. rm conftest.$ac_ext
  9670. LIBS=$ac_func_search_save_LIBS
  9671. fi
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  9673. $as_echo "$ac_cv_search_opendir" >&6; }
  9674. ac_res=$ac_cv_search_opendir
  9675. if test "$ac_res" != no; then :
  9676. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9677. fi
  9678. else
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  9680. $as_echo_n "checking for library containing opendir... " >&6; }
  9681. if ${ac_cv_search_opendir+:} false; then :
  9682. $as_echo_n "(cached) " >&6
  9683. else
  9684. ac_func_search_save_LIBS=$LIBS
  9685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9686. /* end confdefs.h. */
  9687. /* Override any GCC internal prototype to avoid an error.
  9688. Use char because int might match the return type of a GCC
  9689. builtin and then its argument prototype would still apply. */
  9690. #ifdef __cplusplus
  9691. extern "C"
  9692. #endif
  9693. char opendir ();
  9694. int
  9695. main ()
  9696. {
  9697. return opendir ();
  9698. ;
  9699. return 0;
  9700. }
  9701. _ACEOF
  9702. for ac_lib in '' x; do
  9703. if test -z "$ac_lib"; then
  9704. ac_res="none required"
  9705. else
  9706. ac_res=-l$ac_lib
  9707. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9708. fi
  9709. if ac_fn_c_try_link "$LINENO"; then :
  9710. ac_cv_search_opendir=$ac_res
  9711. fi
  9712. rm -f core conftest.err conftest.$ac_objext \
  9713. conftest$ac_exeext
  9714. if ${ac_cv_search_opendir+:} false; then :
  9715. break
  9716. fi
  9717. done
  9718. if ${ac_cv_search_opendir+:} false; then :
  9719. else
  9720. ac_cv_search_opendir=no
  9721. fi
  9722. rm conftest.$ac_ext
  9723. LIBS=$ac_func_search_save_LIBS
  9724. fi
  9725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  9726. $as_echo "$ac_cv_search_opendir" >&6; }
  9727. ac_res=$ac_cv_search_opendir
  9728. if test "$ac_res" != no; then :
  9729. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9730. fi
  9731. fi
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9733. $as_echo_n "checking for ANSI C header files... " >&6; }
  9734. if ${ac_cv_header_stdc+:} false; then :
  9735. $as_echo_n "(cached) " >&6
  9736. else
  9737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9738. /* end confdefs.h. */
  9739. #include <stdlib.h>
  9740. #include <stdarg.h>
  9741. #include <string.h>
  9742. #include <float.h>
  9743. int
  9744. main ()
  9745. {
  9746. ;
  9747. return 0;
  9748. }
  9749. _ACEOF
  9750. if ac_fn_c_try_compile "$LINENO"; then :
  9751. ac_cv_header_stdc=yes
  9752. else
  9753. ac_cv_header_stdc=no
  9754. fi
  9755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9756. if test $ac_cv_header_stdc = yes; then
  9757. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9759. /* end confdefs.h. */
  9760. #include <string.h>
  9761. _ACEOF
  9762. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9763. $EGREP "memchr" >/dev/null 2>&1; then :
  9764. else
  9765. ac_cv_header_stdc=no
  9766. fi
  9767. rm -f conftest*
  9768. fi
  9769. if test $ac_cv_header_stdc = yes; then
  9770. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9772. /* end confdefs.h. */
  9773. #include <stdlib.h>
  9774. _ACEOF
  9775. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9776. $EGREP "free" >/dev/null 2>&1; then :
  9777. else
  9778. ac_cv_header_stdc=no
  9779. fi
  9780. rm -f conftest*
  9781. fi
  9782. if test $ac_cv_header_stdc = yes; then
  9783. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9784. if test "$cross_compiling" = yes; then :
  9785. :
  9786. else
  9787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9788. /* end confdefs.h. */
  9789. #include <ctype.h>
  9790. #include <stdlib.h>
  9791. #if ((' ' & 0x0FF) == 0x020)
  9792. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9793. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9794. #else
  9795. # define ISLOWER(c) \
  9796. (('a' <= (c) && (c) <= 'i') \
  9797. || ('j' <= (c) && (c) <= 'r') \
  9798. || ('s' <= (c) && (c) <= 'z'))
  9799. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9800. #endif
  9801. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9802. int
  9803. main ()
  9804. {
  9805. int i;
  9806. for (i = 0; i < 256; i++)
  9807. if (XOR (islower (i), ISLOWER (i))
  9808. || toupper (i) != TOUPPER (i))
  9809. return 2;
  9810. return 0;
  9811. }
  9812. _ACEOF
  9813. if ac_fn_c_try_run "$LINENO"; then :
  9814. else
  9815. ac_cv_header_stdc=no
  9816. fi
  9817. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9818. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9819. fi
  9820. fi
  9821. fi
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  9823. $as_echo "$ac_cv_header_stdc" >&6; }
  9824. if test $ac_cv_header_stdc = yes; then
  9825. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  9826. fi
  9827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  9828. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  9829. if ${ac_cv_header_sys_wait_h+:} false; then :
  9830. $as_echo_n "(cached) " >&6
  9831. else
  9832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9833. /* end confdefs.h. */
  9834. #include <sys/types.h>
  9835. #include <sys/wait.h>
  9836. #ifndef WEXITSTATUS
  9837. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  9838. #endif
  9839. #ifndef WIFEXITED
  9840. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  9841. #endif
  9842. int
  9843. main ()
  9844. {
  9845. int s;
  9846. wait (&s);
  9847. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  9848. ;
  9849. return 0;
  9850. }
  9851. _ACEOF
  9852. if ac_fn_c_try_compile "$LINENO"; then :
  9853. ac_cv_header_sys_wait_h=yes
  9854. else
  9855. ac_cv_header_sys_wait_h=no
  9856. fi
  9857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9858. fi
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  9860. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  9861. if test $ac_cv_header_sys_wait_h = yes; then
  9862. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  9863. fi
  9864. for ac_header in arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/event.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h sys/io.h
  9865. do :
  9866. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9867. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9868. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9869. cat >>confdefs.h <<_ACEOF
  9870. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9871. _ACEOF
  9872. fi
  9873. done
  9874. # Any one of these 4 packages support a mandatory requirement, so we want to check on them as early as possible.
  9875. if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
  9876. pbxlibdir=""
  9877. # if --with-TERMCAP=DIR has been specified, use it.
  9878. if test "x${TERMCAP_DIR}" != "x"; then
  9879. if test -d ${TERMCAP_DIR}/lib; then
  9880. pbxlibdir="-L${TERMCAP_DIR}/lib"
  9881. else
  9882. pbxlibdir="-L${TERMCAP_DIR}"
  9883. fi
  9884. fi
  9885. pbxfuncname="tgetent"
  9886. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  9887. AST_TERMCAP_FOUND=yes
  9888. else
  9889. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  9890. CFLAGS="${CFLAGS} "
  9891. as_ac_Lib=`$as_echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltermcap" >&5
  9893. $as_echo_n "checking for ${pbxfuncname} in -ltermcap... " >&6; }
  9894. if eval \${$as_ac_Lib+:} false; then :
  9895. $as_echo_n "(cached) " >&6
  9896. else
  9897. ac_check_lib_save_LIBS=$LIBS
  9898. LIBS="-ltermcap ${pbxlibdir} $LIBS"
  9899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9900. /* end confdefs.h. */
  9901. /* Override any GCC internal prototype to avoid an error.
  9902. Use char because int might match the return type of a GCC
  9903. builtin and then its argument prototype would still apply. */
  9904. #ifdef __cplusplus
  9905. extern "C"
  9906. #endif
  9907. char ${pbxfuncname} ();
  9908. int
  9909. main ()
  9910. {
  9911. return ${pbxfuncname} ();
  9912. ;
  9913. return 0;
  9914. }
  9915. _ACEOF
  9916. if ac_fn_c_try_link "$LINENO"; then :
  9917. eval "$as_ac_Lib=yes"
  9918. else
  9919. eval "$as_ac_Lib=no"
  9920. fi
  9921. rm -f core conftest.err conftest.$ac_objext \
  9922. conftest$ac_exeext conftest.$ac_ext
  9923. LIBS=$ac_check_lib_save_LIBS
  9924. fi
  9925. eval ac_res=\$$as_ac_Lib
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9927. $as_echo "$ac_res" >&6; }
  9928. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  9929. AST_TERMCAP_FOUND=yes
  9930. else
  9931. AST_TERMCAP_FOUND=no
  9932. fi
  9933. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  9934. fi
  9935. # now check for the header.
  9936. if test "${AST_TERMCAP_FOUND}" = "yes"; then
  9937. TERMCAP_LIB="${pbxlibdir} -ltermcap "
  9938. # if --with-TERMCAP=DIR has been specified, use it.
  9939. if test "x${TERMCAP_DIR}" != "x"; then
  9940. TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
  9941. fi
  9942. TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
  9943. if test "x" = "x" ; then # no header, assume found
  9944. TERMCAP_HEADER_FOUND="1"
  9945. else # check for the header
  9946. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  9947. CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
  9948. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  9949. if test "x$ac_cv_header_" = xyes; then :
  9950. TERMCAP_HEADER_FOUND=1
  9951. else
  9952. TERMCAP_HEADER_FOUND=0
  9953. fi
  9954. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  9955. fi
  9956. if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
  9957. TERMCAP_LIB=""
  9958. TERMCAP_INCLUDE=""
  9959. else
  9960. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  9961. TERMCAP_LIB=""
  9962. fi
  9963. PBX_TERMCAP=1
  9964. cat >>confdefs.h <<_ACEOF
  9965. #define HAVE_TERMCAP 1
  9966. _ACEOF
  9967. fi
  9968. fi
  9969. fi
  9970. if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
  9971. pbxlibdir=""
  9972. # if --with-TINFO=DIR has been specified, use it.
  9973. if test "x${TINFO_DIR}" != "x"; then
  9974. if test -d ${TINFO_DIR}/lib; then
  9975. pbxlibdir="-L${TINFO_DIR}/lib"
  9976. else
  9977. pbxlibdir="-L${TINFO_DIR}"
  9978. fi
  9979. fi
  9980. pbxfuncname="tgetent"
  9981. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  9982. AST_TINFO_FOUND=yes
  9983. else
  9984. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  9985. CFLAGS="${CFLAGS} "
  9986. as_ac_Lib=`$as_echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltinfo" >&5
  9988. $as_echo_n "checking for ${pbxfuncname} in -ltinfo... " >&6; }
  9989. if eval \${$as_ac_Lib+:} false; then :
  9990. $as_echo_n "(cached) " >&6
  9991. else
  9992. ac_check_lib_save_LIBS=$LIBS
  9993. LIBS="-ltinfo ${pbxlibdir} $LIBS"
  9994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9995. /* end confdefs.h. */
  9996. /* Override any GCC internal prototype to avoid an error.
  9997. Use char because int might match the return type of a GCC
  9998. builtin and then its argument prototype would still apply. */
  9999. #ifdef __cplusplus
  10000. extern "C"
  10001. #endif
  10002. char ${pbxfuncname} ();
  10003. int
  10004. main ()
  10005. {
  10006. return ${pbxfuncname} ();
  10007. ;
  10008. return 0;
  10009. }
  10010. _ACEOF
  10011. if ac_fn_c_try_link "$LINENO"; then :
  10012. eval "$as_ac_Lib=yes"
  10013. else
  10014. eval "$as_ac_Lib=no"
  10015. fi
  10016. rm -f core conftest.err conftest.$ac_objext \
  10017. conftest$ac_exeext conftest.$ac_ext
  10018. LIBS=$ac_check_lib_save_LIBS
  10019. fi
  10020. eval ac_res=\$$as_ac_Lib
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10022. $as_echo "$ac_res" >&6; }
  10023. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10024. AST_TINFO_FOUND=yes
  10025. else
  10026. AST_TINFO_FOUND=no
  10027. fi
  10028. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10029. fi
  10030. # now check for the header.
  10031. if test "${AST_TINFO_FOUND}" = "yes"; then
  10032. TINFO_LIB="${pbxlibdir} -ltinfo "
  10033. # if --with-TINFO=DIR has been specified, use it.
  10034. if test "x${TINFO_DIR}" != "x"; then
  10035. TINFO_INCLUDE="-I${TINFO_DIR}/include"
  10036. fi
  10037. TINFO_INCLUDE="${TINFO_INCLUDE} "
  10038. if test "x" = "x" ; then # no header, assume found
  10039. TINFO_HEADER_FOUND="1"
  10040. else # check for the header
  10041. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10042. CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
  10043. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  10044. if test "x$ac_cv_header_" = xyes; then :
  10045. TINFO_HEADER_FOUND=1
  10046. else
  10047. TINFO_HEADER_FOUND=0
  10048. fi
  10049. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10050. fi
  10051. if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
  10052. TINFO_LIB=""
  10053. TINFO_INCLUDE=""
  10054. else
  10055. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10056. TINFO_LIB=""
  10057. fi
  10058. PBX_TINFO=1
  10059. cat >>confdefs.h <<_ACEOF
  10060. #define HAVE_TINFO 1
  10061. _ACEOF
  10062. fi
  10063. fi
  10064. fi
  10065. if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
  10066. pbxlibdir=""
  10067. # if --with-CURSES=DIR has been specified, use it.
  10068. if test "x${CURSES_DIR}" != "x"; then
  10069. if test -d ${CURSES_DIR}/lib; then
  10070. pbxlibdir="-L${CURSES_DIR}/lib"
  10071. else
  10072. pbxlibdir="-L${CURSES_DIR}"
  10073. fi
  10074. fi
  10075. pbxfuncname="initscr"
  10076. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10077. AST_CURSES_FOUND=yes
  10078. else
  10079. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10080. CFLAGS="${CFLAGS} "
  10081. as_ac_Lib=`$as_echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
  10082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcurses" >&5
  10083. $as_echo_n "checking for ${pbxfuncname} in -lcurses... " >&6; }
  10084. if eval \${$as_ac_Lib+:} false; then :
  10085. $as_echo_n "(cached) " >&6
  10086. else
  10087. ac_check_lib_save_LIBS=$LIBS
  10088. LIBS="-lcurses ${pbxlibdir} $LIBS"
  10089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10090. /* end confdefs.h. */
  10091. /* Override any GCC internal prototype to avoid an error.
  10092. Use char because int might match the return type of a GCC
  10093. builtin and then its argument prototype would still apply. */
  10094. #ifdef __cplusplus
  10095. extern "C"
  10096. #endif
  10097. char ${pbxfuncname} ();
  10098. int
  10099. main ()
  10100. {
  10101. return ${pbxfuncname} ();
  10102. ;
  10103. return 0;
  10104. }
  10105. _ACEOF
  10106. if ac_fn_c_try_link "$LINENO"; then :
  10107. eval "$as_ac_Lib=yes"
  10108. else
  10109. eval "$as_ac_Lib=no"
  10110. fi
  10111. rm -f core conftest.err conftest.$ac_objext \
  10112. conftest$ac_exeext conftest.$ac_ext
  10113. LIBS=$ac_check_lib_save_LIBS
  10114. fi
  10115. eval ac_res=\$$as_ac_Lib
  10116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10117. $as_echo "$ac_res" >&6; }
  10118. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10119. AST_CURSES_FOUND=yes
  10120. else
  10121. AST_CURSES_FOUND=no
  10122. fi
  10123. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10124. fi
  10125. # now check for the header.
  10126. if test "${AST_CURSES_FOUND}" = "yes"; then
  10127. CURSES_LIB="${pbxlibdir} -lcurses "
  10128. # if --with-CURSES=DIR has been specified, use it.
  10129. if test "x${CURSES_DIR}" != "x"; then
  10130. CURSES_INCLUDE="-I${CURSES_DIR}/include"
  10131. fi
  10132. CURSES_INCLUDE="${CURSES_INCLUDE} "
  10133. if test "xcurses.h" = "x" ; then # no header, assume found
  10134. CURSES_HEADER_FOUND="1"
  10135. else # check for the header
  10136. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10137. CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
  10138. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  10139. if test "x$ac_cv_header_curses_h" = xyes; then :
  10140. CURSES_HEADER_FOUND=1
  10141. else
  10142. CURSES_HEADER_FOUND=0
  10143. fi
  10144. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10145. fi
  10146. if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
  10147. CURSES_LIB=""
  10148. CURSES_INCLUDE=""
  10149. else
  10150. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10151. CURSES_LIB=""
  10152. fi
  10153. PBX_CURSES=1
  10154. cat >>confdefs.h <<_ACEOF
  10155. #define HAVE_CURSES 1
  10156. _ACEOF
  10157. fi
  10158. fi
  10159. fi
  10160. if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
  10161. pbxlibdir=""
  10162. # if --with-NCURSES=DIR has been specified, use it.
  10163. if test "x${NCURSES_DIR}" != "x"; then
  10164. if test -d ${NCURSES_DIR}/lib; then
  10165. pbxlibdir="-L${NCURSES_DIR}/lib"
  10166. else
  10167. pbxlibdir="-L${NCURSES_DIR}"
  10168. fi
  10169. fi
  10170. pbxfuncname="initscr"
  10171. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10172. AST_NCURSES_FOUND=yes
  10173. else
  10174. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10175. CFLAGS="${CFLAGS} "
  10176. as_ac_Lib=`$as_echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lncurses" >&5
  10178. $as_echo_n "checking for ${pbxfuncname} in -lncurses... " >&6; }
  10179. if eval \${$as_ac_Lib+:} false; then :
  10180. $as_echo_n "(cached) " >&6
  10181. else
  10182. ac_check_lib_save_LIBS=$LIBS
  10183. LIBS="-lncurses ${pbxlibdir} $LIBS"
  10184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10185. /* end confdefs.h. */
  10186. /* Override any GCC internal prototype to avoid an error.
  10187. Use char because int might match the return type of a GCC
  10188. builtin and then its argument prototype would still apply. */
  10189. #ifdef __cplusplus
  10190. extern "C"
  10191. #endif
  10192. char ${pbxfuncname} ();
  10193. int
  10194. main ()
  10195. {
  10196. return ${pbxfuncname} ();
  10197. ;
  10198. return 0;
  10199. }
  10200. _ACEOF
  10201. if ac_fn_c_try_link "$LINENO"; then :
  10202. eval "$as_ac_Lib=yes"
  10203. else
  10204. eval "$as_ac_Lib=no"
  10205. fi
  10206. rm -f core conftest.err conftest.$ac_objext \
  10207. conftest$ac_exeext conftest.$ac_ext
  10208. LIBS=$ac_check_lib_save_LIBS
  10209. fi
  10210. eval ac_res=\$$as_ac_Lib
  10211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10212. $as_echo "$ac_res" >&6; }
  10213. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10214. AST_NCURSES_FOUND=yes
  10215. else
  10216. AST_NCURSES_FOUND=no
  10217. fi
  10218. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10219. fi
  10220. # now check for the header.
  10221. if test "${AST_NCURSES_FOUND}" = "yes"; then
  10222. NCURSES_LIB="${pbxlibdir} -lncurses "
  10223. # if --with-NCURSES=DIR has been specified, use it.
  10224. if test "x${NCURSES_DIR}" != "x"; then
  10225. NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
  10226. fi
  10227. NCURSES_INCLUDE="${NCURSES_INCLUDE} "
  10228. if test "xcurses.h" = "x" ; then # no header, assume found
  10229. NCURSES_HEADER_FOUND="1"
  10230. else # check for the header
  10231. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10232. CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
  10233. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  10234. if test "x$ac_cv_header_curses_h" = xyes; then :
  10235. NCURSES_HEADER_FOUND=1
  10236. else
  10237. NCURSES_HEADER_FOUND=0
  10238. fi
  10239. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10240. fi
  10241. if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
  10242. NCURSES_LIB=""
  10243. NCURSES_INCLUDE=""
  10244. else
  10245. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10246. NCURSES_LIB=""
  10247. fi
  10248. PBX_NCURSES=1
  10249. cat >>confdefs.h <<_ACEOF
  10250. #define HAVE_NCURSES 1
  10251. _ACEOF
  10252. fi
  10253. fi
  10254. fi
  10255. EDITLINE_LIB=""
  10256. if test "x$TERMCAP_LIB" != "x" ; then
  10257. EDITLINE_LIB="$TERMCAP_LIB"
  10258. elif test "x$TINFO_LIB" != "x" ; then
  10259. EDITLINE_LIB="$TINFO_LIB"
  10260. elif test "x$CURSES_LIB" != "x" ; then
  10261. EDITLINE_LIB="$CURSES_LIB"
  10262. elif test "x$NCURSES_LIB" != "x" ; then
  10263. EDITLINE_LIB="$NCURSES_LIB"
  10264. else
  10265. as_fn_error $? "*** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" "$LINENO" 5
  10266. fi
  10267. # Another mandatory item (unless it's explicitly disabled)
  10268. # Check whether --enable-xmldoc was given.
  10269. if test "${enable_xmldoc+set}" = set; then :
  10270. enableval=$enable_xmldoc; case "${enableval}" in
  10271. y|ye|yes) disable_xmldoc=no ;;
  10272. n|no) disable_xmldoc=yes ;;
  10273. *) as_fn_error $? "bad value ${enableval} for --disable-xmldoc" "$LINENO" 5 ;;
  10274. esac
  10275. else
  10276. disable_xmldoc=no
  10277. fi
  10278. if test "${disable_xmldoc}" != "yes"; then
  10279. if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
  10280. PBX_LIBXML2=0
  10281. if test -n "$ac_tool_prefix"; then
  10282. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  10283. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10285. $as_echo_n "checking for $ac_word... " >&6; }
  10286. if ${ac_cv_path_CONFIG_LIBXML2+:} false; then :
  10287. $as_echo_n "(cached) " >&6
  10288. else
  10289. case $CONFIG_LIBXML2 in
  10290. [\\/]* | ?:[\\/]*)
  10291. ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path.
  10292. ;;
  10293. *)
  10294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10295. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  10296. for as_dir in $as_dummy
  10297. do
  10298. IFS=$as_save_IFS
  10299. test -z "$as_dir" && as_dir=.
  10300. for ac_exec_ext in '' $ac_executable_extensions; do
  10301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10302. ac_cv_path_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  10303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10304. break 2
  10305. fi
  10306. done
  10307. done
  10308. IFS=$as_save_IFS
  10309. ;;
  10310. esac
  10311. fi
  10312. CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2
  10313. if test -n "$CONFIG_LIBXML2"; then
  10314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_LIBXML2" >&5
  10315. $as_echo "$CONFIG_LIBXML2" >&6; }
  10316. else
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10318. $as_echo "no" >&6; }
  10319. fi
  10320. fi
  10321. if test -z "$ac_cv_path_CONFIG_LIBXML2"; then
  10322. ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2
  10323. # Extract the first word of "xml2-config", so it can be a program name with args.
  10324. set dummy xml2-config; ac_word=$2
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10326. $as_echo_n "checking for $ac_word... " >&6; }
  10327. if ${ac_cv_path_ac_pt_CONFIG_LIBXML2+:} false; then :
  10328. $as_echo_n "(cached) " >&6
  10329. else
  10330. case $ac_pt_CONFIG_LIBXML2 in
  10331. [\\/]* | ?:[\\/]*)
  10332. ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path.
  10333. ;;
  10334. *)
  10335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10336. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  10337. for as_dir in $as_dummy
  10338. do
  10339. IFS=$as_save_IFS
  10340. test -z "$as_dir" && as_dir=.
  10341. for ac_exec_ext in '' $ac_executable_extensions; do
  10342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10343. ac_cv_path_ac_pt_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  10344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10345. break 2
  10346. fi
  10347. done
  10348. done
  10349. IFS=$as_save_IFS
  10350. ;;
  10351. esac
  10352. fi
  10353. ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2
  10354. if test -n "$ac_pt_CONFIG_LIBXML2"; then
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_LIBXML2" >&5
  10356. $as_echo "$ac_pt_CONFIG_LIBXML2" >&6; }
  10357. else
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10359. $as_echo "no" >&6; }
  10360. fi
  10361. if test "x$ac_pt_CONFIG_LIBXML2" = x; then
  10362. CONFIG_LIBXML2="No"
  10363. else
  10364. case $cross_compiling:$ac_tool_warned in
  10365. yes:)
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10367. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10368. ac_tool_warned=yes ;;
  10369. esac
  10370. CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2
  10371. fi
  10372. else
  10373. CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2"
  10374. fi
  10375. if test ! "x${CONFIG_LIBXML2}" = xNo; then
  10376. if test x"" = x ; then A=--cflags ; else A="" ; fi
  10377. LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} $A)
  10378. LIBXML2_INCLUDE=$(echo ${LIBXML2_INCLUDE} | $SED -e "s|-I|-I${LIBXML2_DIR}|g")
  10379. if test x"" = x ; then A=--libs ; else A="" ; fi
  10380. LIBXML2_LIB=$(${CONFIG_LIBXML2} $A)
  10381. LIBXML2_LIB=$(echo ${LIBXML2_LIB} | $SED -e "s|-L|-L${LIBXML2_DIR}|g")
  10382. if test x"#include <libxml/tree.h>
  10383. #include <libxml/parser.h>" != x ; then
  10384. saved_cppflags="${CPPFLAGS}"
  10385. CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}"
  10386. saved_libs="${LIBS}"
  10387. LIBS=${LIBXML2_LIB}
  10388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10389. /* end confdefs.h. */
  10390. #include <libxml/tree.h>
  10391. #include <libxml/parser.h>
  10392. int
  10393. main ()
  10394. {
  10395. LIBXML_TEST_VERSION;
  10396. ;
  10397. return 0;
  10398. }
  10399. _ACEOF
  10400. if ac_fn_c_try_link "$LINENO"; then :
  10401. PBX_LIBXML2=1
  10402. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  10403. fi
  10404. rm -f core conftest.err conftest.$ac_objext \
  10405. conftest$ac_exeext conftest.$ac_ext
  10406. CPPFLAGS="${saved_cppflags}"
  10407. LIBS="${saved_libs}"
  10408. else
  10409. PBX_LIBXML2=1
  10410. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  10411. fi
  10412. fi
  10413. fi
  10414. if test "${PBX_LIBXML2}" != 1; then
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: *** XML documentation will not be available because the 'libxml2' development package is missing." >&5
  10416. $as_echo "$as_me: *** XML documentation will not be available because the 'libxml2' development package is missing." >&6;}
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option" >&5
  10418. $as_echo "$as_me: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option" >&6;}
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: *** or install the 'libxml2' development package." >&5
  10420. $as_echo "$as_me: *** or install the 'libxml2' development package." >&6;}
  10421. exit 1
  10422. fi
  10423. fi
  10424. # some embedded systems omit internationalization (locale) support
  10425. for ac_header in xlocale.h
  10426. do :
  10427. ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  10428. if test "x$ac_cv_header_xlocale_h" = xyes; then :
  10429. cat >>confdefs.h <<_ACEOF
  10430. #define HAVE_XLOCALE_H 1
  10431. _ACEOF
  10432. fi
  10433. done
  10434. for ac_header in winsock.h winsock2.h
  10435. do :
  10436. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10437. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10438. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10439. cat >>confdefs.h <<_ACEOF
  10440. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10441. _ACEOF
  10442. fi
  10443. done
  10444. ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  10445. if test "x$ac_cv_header_sys_poll_h" = xyes; then :
  10446. else
  10447. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  10448. fi
  10449. # Check whether --enable-largefile was given.
  10450. if test "${enable_largefile+set}" = set; then :
  10451. enableval=$enable_largefile;
  10452. fi
  10453. if test "$enable_largefile" != no; then
  10454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10455. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10456. if ${ac_cv_sys_largefile_CC+:} false; then :
  10457. $as_echo_n "(cached) " >&6
  10458. else
  10459. ac_cv_sys_largefile_CC=no
  10460. if test "$GCC" != yes; then
  10461. ac_save_CC=$CC
  10462. while :; do
  10463. # IRIX 6.2 and later do not support large files by default,
  10464. # so use the C compiler's -n32 option if that helps.
  10465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10466. /* end confdefs.h. */
  10467. #include <sys/types.h>
  10468. /* Check that off_t can represent 2**63 - 1 correctly.
  10469. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10470. since some C++ compilers masquerading as C compilers
  10471. incorrectly reject 9223372036854775807. */
  10472. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  10473. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10474. && LARGE_OFF_T % 2147483647 == 1)
  10475. ? 1 : -1];
  10476. int
  10477. main ()
  10478. {
  10479. ;
  10480. return 0;
  10481. }
  10482. _ACEOF
  10483. if ac_fn_c_try_compile "$LINENO"; then :
  10484. break
  10485. fi
  10486. rm -f core conftest.err conftest.$ac_objext
  10487. CC="$CC -n32"
  10488. if ac_fn_c_try_compile "$LINENO"; then :
  10489. ac_cv_sys_largefile_CC=' -n32'; break
  10490. fi
  10491. rm -f core conftest.err conftest.$ac_objext
  10492. break
  10493. done
  10494. CC=$ac_save_CC
  10495. rm -f conftest.$ac_ext
  10496. fi
  10497. fi
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10499. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10500. if test "$ac_cv_sys_largefile_CC" != no; then
  10501. CC=$CC$ac_cv_sys_largefile_CC
  10502. fi
  10503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10504. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10505. if ${ac_cv_sys_file_offset_bits+:} false; then :
  10506. $as_echo_n "(cached) " >&6
  10507. else
  10508. while :; do
  10509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10510. /* end confdefs.h. */
  10511. #include <sys/types.h>
  10512. /* Check that off_t can represent 2**63 - 1 correctly.
  10513. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10514. since some C++ compilers masquerading as C compilers
  10515. incorrectly reject 9223372036854775807. */
  10516. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  10517. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10518. && LARGE_OFF_T % 2147483647 == 1)
  10519. ? 1 : -1];
  10520. int
  10521. main ()
  10522. {
  10523. ;
  10524. return 0;
  10525. }
  10526. _ACEOF
  10527. if ac_fn_c_try_compile "$LINENO"; then :
  10528. ac_cv_sys_file_offset_bits=no; break
  10529. fi
  10530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10532. /* end confdefs.h. */
  10533. #define _FILE_OFFSET_BITS 64
  10534. #include <sys/types.h>
  10535. /* Check that off_t can represent 2**63 - 1 correctly.
  10536. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10537. since some C++ compilers masquerading as C compilers
  10538. incorrectly reject 9223372036854775807. */
  10539. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  10540. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10541. && LARGE_OFF_T % 2147483647 == 1)
  10542. ? 1 : -1];
  10543. int
  10544. main ()
  10545. {
  10546. ;
  10547. return 0;
  10548. }
  10549. _ACEOF
  10550. if ac_fn_c_try_compile "$LINENO"; then :
  10551. ac_cv_sys_file_offset_bits=64; break
  10552. fi
  10553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10554. ac_cv_sys_file_offset_bits=unknown
  10555. break
  10556. done
  10557. fi
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10559. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10560. case $ac_cv_sys_file_offset_bits in #(
  10561. no | unknown) ;;
  10562. *)
  10563. cat >>confdefs.h <<_ACEOF
  10564. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10565. _ACEOF
  10566. ;;
  10567. esac
  10568. rm -rf conftest*
  10569. if test $ac_cv_sys_file_offset_bits = unknown; then
  10570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10571. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10572. if ${ac_cv_sys_large_files+:} false; then :
  10573. $as_echo_n "(cached) " >&6
  10574. else
  10575. while :; do
  10576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10577. /* end confdefs.h. */
  10578. #include <sys/types.h>
  10579. /* Check that off_t can represent 2**63 - 1 correctly.
  10580. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10581. since some C++ compilers masquerading as C compilers
  10582. incorrectly reject 9223372036854775807. */
  10583. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  10584. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10585. && LARGE_OFF_T % 2147483647 == 1)
  10586. ? 1 : -1];
  10587. int
  10588. main ()
  10589. {
  10590. ;
  10591. return 0;
  10592. }
  10593. _ACEOF
  10594. if ac_fn_c_try_compile "$LINENO"; then :
  10595. ac_cv_sys_large_files=no; break
  10596. fi
  10597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10599. /* end confdefs.h. */
  10600. #define _LARGE_FILES 1
  10601. #include <sys/types.h>
  10602. /* Check that off_t can represent 2**63 - 1 correctly.
  10603. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10604. since some C++ compilers masquerading as C compilers
  10605. incorrectly reject 9223372036854775807. */
  10606. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  10607. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10608. && LARGE_OFF_T % 2147483647 == 1)
  10609. ? 1 : -1];
  10610. int
  10611. main ()
  10612. {
  10613. ;
  10614. return 0;
  10615. }
  10616. _ACEOF
  10617. if ac_fn_c_try_compile "$LINENO"; then :
  10618. ac_cv_sys_large_files=1; break
  10619. fi
  10620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10621. ac_cv_sys_large_files=unknown
  10622. break
  10623. done
  10624. fi
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10626. $as_echo "$ac_cv_sys_large_files" >&6; }
  10627. case $ac_cv_sys_large_files in #(
  10628. no | unknown) ;;
  10629. *)
  10630. cat >>confdefs.h <<_ACEOF
  10631. #define _LARGE_FILES $ac_cv_sys_large_files
  10632. _ACEOF
  10633. ;;
  10634. esac
  10635. rm -rf conftest*
  10636. fi
  10637. fi
  10638. # Checks for typedefs, structures, and compiler characteristics.
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  10640. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  10641. if ${ac_cv_header_stdbool_h+:} false; then :
  10642. $as_echo_n "(cached) " >&6
  10643. else
  10644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10645. /* end confdefs.h. */
  10646. #include <stdbool.h>
  10647. #ifndef bool
  10648. "error: bool is not defined"
  10649. #endif
  10650. #ifndef false
  10651. "error: false is not defined"
  10652. #endif
  10653. #if false
  10654. "error: false is not 0"
  10655. #endif
  10656. #ifndef true
  10657. "error: true is not defined"
  10658. #endif
  10659. #if true != 1
  10660. "error: true is not 1"
  10661. #endif
  10662. #ifndef __bool_true_false_are_defined
  10663. "error: __bool_true_false_are_defined is not defined"
  10664. #endif
  10665. struct s { _Bool s: 1; _Bool t; } s;
  10666. char a[true == 1 ? 1 : -1];
  10667. char b[false == 0 ? 1 : -1];
  10668. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  10669. char d[(bool) 0.5 == true ? 1 : -1];
  10670. /* See body of main program for 'e'. */
  10671. char f[(_Bool) 0.0 == false ? 1 : -1];
  10672. char g[true];
  10673. char h[sizeof (_Bool)];
  10674. char i[sizeof s.t];
  10675. enum { j = false, k = true, l = false * true, m = true * 256 };
  10676. /* The following fails for
  10677. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  10678. _Bool n[m];
  10679. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  10680. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  10681. /* Catch a bug in an HP-UX C compiler. See
  10682. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  10683. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  10684. */
  10685. _Bool q = true;
  10686. _Bool *pq = &q;
  10687. int
  10688. main ()
  10689. {
  10690. bool e = &s;
  10691. *pq |= q;
  10692. *pq |= ! q;
  10693. /* Refer to every declared value, to avoid compiler optimizations. */
  10694. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  10695. + !m + !n + !o + !p + !q + !pq);
  10696. ;
  10697. return 0;
  10698. }
  10699. _ACEOF
  10700. if ac_fn_c_try_compile "$LINENO"; then :
  10701. ac_cv_header_stdbool_h=yes
  10702. else
  10703. ac_cv_header_stdbool_h=no
  10704. fi
  10705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10706. fi
  10707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  10708. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  10709. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  10710. if test "x$ac_cv_type__Bool" = xyes; then :
  10711. cat >>confdefs.h <<_ACEOF
  10712. #define HAVE__BOOL 1
  10713. _ACEOF
  10714. fi
  10715. if test $ac_cv_header_stdbool_h = yes; then
  10716. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  10717. fi
  10718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10719. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10720. if ${ac_cv_c_const+:} false; then :
  10721. $as_echo_n "(cached) " >&6
  10722. else
  10723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10724. /* end confdefs.h. */
  10725. int
  10726. main ()
  10727. {
  10728. #ifndef __cplusplus
  10729. /* Ultrix mips cc rejects this sort of thing. */
  10730. typedef int charset[2];
  10731. const charset cs = { 0, 0 };
  10732. /* SunOS 4.1.1 cc rejects this. */
  10733. char const *const *pcpcc;
  10734. char **ppc;
  10735. /* NEC SVR4.0.2 mips cc rejects this. */
  10736. struct point {int x, y;};
  10737. static struct point const zero = {0,0};
  10738. /* AIX XL C 1.02.0.0 rejects this.
  10739. It does not let you subtract one const X* pointer from another in
  10740. an arm of an if-expression whose if-part is not a constant
  10741. expression */
  10742. const char *g = "string";
  10743. pcpcc = &g + (g ? g-g : 0);
  10744. /* HPUX 7.0 cc rejects these. */
  10745. ++pcpcc;
  10746. ppc = (char**) pcpcc;
  10747. pcpcc = (char const *const *) ppc;
  10748. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10749. char tx;
  10750. char *t = &tx;
  10751. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10752. *t++ = 0;
  10753. if (s) return 0;
  10754. }
  10755. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10756. int x[] = {25, 17};
  10757. const int *foo = &x[0];
  10758. ++foo;
  10759. }
  10760. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10761. typedef const int *iptr;
  10762. iptr p = 0;
  10763. ++p;
  10764. }
  10765. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  10766. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10767. struct s { int j; const int *ap[3]; } bx;
  10768. struct s *b = &bx; b->j = 5;
  10769. }
  10770. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10771. const int foo = 10;
  10772. if (!foo) return 0;
  10773. }
  10774. return !cs[0] && !zero.x;
  10775. #endif
  10776. ;
  10777. return 0;
  10778. }
  10779. _ACEOF
  10780. if ac_fn_c_try_compile "$LINENO"; then :
  10781. ac_cv_c_const=yes
  10782. else
  10783. ac_cv_c_const=no
  10784. fi
  10785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10786. fi
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10788. $as_echo "$ac_cv_c_const" >&6; }
  10789. if test $ac_cv_c_const = no; then
  10790. $as_echo "#define const /**/" >>confdefs.h
  10791. fi
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  10793. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  10794. if ${ac_cv_type_uid_t+:} false; then :
  10795. $as_echo_n "(cached) " >&6
  10796. else
  10797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10798. /* end confdefs.h. */
  10799. #include <sys/types.h>
  10800. _ACEOF
  10801. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10802. $EGREP "uid_t" >/dev/null 2>&1; then :
  10803. ac_cv_type_uid_t=yes
  10804. else
  10805. ac_cv_type_uid_t=no
  10806. fi
  10807. rm -f conftest*
  10808. fi
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  10810. $as_echo "$ac_cv_type_uid_t" >&6; }
  10811. if test $ac_cv_type_uid_t = no; then
  10812. $as_echo "#define uid_t int" >>confdefs.h
  10813. $as_echo "#define gid_t int" >>confdefs.h
  10814. fi
  10815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10816. $as_echo_n "checking for inline... " >&6; }
  10817. if ${ac_cv_c_inline+:} false; then :
  10818. $as_echo_n "(cached) " >&6
  10819. else
  10820. ac_cv_c_inline=no
  10821. for ac_kw in inline __inline__ __inline; do
  10822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10823. /* end confdefs.h. */
  10824. #ifndef __cplusplus
  10825. typedef int foo_t;
  10826. static $ac_kw foo_t static_foo () {return 0; }
  10827. $ac_kw foo_t foo () {return 0; }
  10828. #endif
  10829. _ACEOF
  10830. if ac_fn_c_try_compile "$LINENO"; then :
  10831. ac_cv_c_inline=$ac_kw
  10832. fi
  10833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10834. test "$ac_cv_c_inline" != no && break
  10835. done
  10836. fi
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10838. $as_echo "$ac_cv_c_inline" >&6; }
  10839. case $ac_cv_c_inline in
  10840. inline | yes) ;;
  10841. *)
  10842. case $ac_cv_c_inline in
  10843. no) ac_val=;;
  10844. *) ac_val=$ac_cv_c_inline;;
  10845. esac
  10846. cat >>confdefs.h <<_ACEOF
  10847. #ifndef __cplusplus
  10848. #define inline $ac_val
  10849. #endif
  10850. _ACEOF
  10851. ;;
  10852. esac
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
  10854. $as_echo_n "checking for long double with more range or precision than double... " >&6; }
  10855. if ${ac_cv_type_long_double_wider+:} false; then :
  10856. $as_echo_n "(cached) " >&6
  10857. else
  10858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10859. /* end confdefs.h. */
  10860. #include <float.h>
  10861. long double const a[] =
  10862. {
  10863. 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
  10864. LDBL_MIN, LDBL_MAX, LDBL_EPSILON
  10865. };
  10866. long double
  10867. f (long double x)
  10868. {
  10869. return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
  10870. + (x ? f (x) : 'c'));
  10871. }
  10872. int
  10873. main ()
  10874. {
  10875. static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
  10876. + (DBL_MANT_DIG < LDBL_MANT_DIG)
  10877. - (LDBL_MAX_EXP < DBL_MAX_EXP)
  10878. - (LDBL_MANT_DIG < DBL_MANT_DIG)))
  10879. && (int) LDBL_EPSILON == 0
  10880. )];
  10881. test_array [0] = 0;
  10882. return test_array [0];
  10883. ;
  10884. return 0;
  10885. }
  10886. _ACEOF
  10887. if ac_fn_c_try_compile "$LINENO"; then :
  10888. ac_cv_type_long_double_wider=yes
  10889. else
  10890. ac_cv_type_long_double_wider=no
  10891. fi
  10892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10893. fi
  10894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
  10895. $as_echo "$ac_cv_type_long_double_wider" >&6; }
  10896. if test $ac_cv_type_long_double_wider = yes; then
  10897. $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
  10898. fi
  10899. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  10900. if test "x$ac_cv_type_mode_t" = xyes; then :
  10901. else
  10902. cat >>confdefs.h <<_ACEOF
  10903. #define mode_t int
  10904. _ACEOF
  10905. fi
  10906. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  10907. if test "x$ac_cv_type_off_t" = xyes; then :
  10908. else
  10909. cat >>confdefs.h <<_ACEOF
  10910. #define off_t long int
  10911. _ACEOF
  10912. fi
  10913. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  10914. if test "x$ac_cv_type_pid_t" = xyes; then :
  10915. else
  10916. cat >>confdefs.h <<_ACEOF
  10917. #define pid_t int
  10918. _ACEOF
  10919. fi
  10920. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  10921. if test "x$ac_cv_type_size_t" = xyes; then :
  10922. else
  10923. cat >>confdefs.h <<_ACEOF
  10924. #define size_t unsigned int
  10925. _ACEOF
  10926. fi
  10927. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  10928. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
  10929. cat >>confdefs.h <<_ACEOF
  10930. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  10931. _ACEOF
  10932. fi
  10933. ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#include <sys/types.h>
  10934. #include <sys/socket.h>
  10935. "
  10936. if test "x$ac_cv_member_struct_ucred_uid" = xyes; then :
  10937. cat >>confdefs.h <<_ACEOF
  10938. #define HAVE_STRUCT_UCRED_UID 1
  10939. _ACEOF
  10940. fi
  10941. ac_fn_c_check_member "$LINENO" "struct ucred" "cr_uid" "ac_cv_member_struct_ucred_cr_uid" "#include <sys/types.h>
  10942. #include <sys/socket.h>
  10943. "
  10944. if test "x$ac_cv_member_struct_ucred_cr_uid" = xyes; then :
  10945. cat >>confdefs.h <<_ACEOF
  10946. #define HAVE_STRUCT_UCRED_CR_UID 1
  10947. _ACEOF
  10948. fi
  10949. ac_fn_c_check_member "$LINENO" "struct sockpeercred" "uid" "ac_cv_member_struct_sockpeercred_uid" "#include <sys/types.h>
  10950. #include <sys/socket.h>
  10951. "
  10952. if test "x$ac_cv_member_struct_sockpeercred_uid" = xyes; then :
  10953. cat >>confdefs.h <<_ACEOF
  10954. #define HAVE_STRUCT_SOCKPEERCRED_UID 1
  10955. _ACEOF
  10956. fi
  10957. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_ifru.ifru_hwaddr" "ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" "#include <net/if.h>
  10958. "
  10959. if test "x$ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" = xyes; then :
  10960. cat >>confdefs.h <<_ACEOF
  10961. #define HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR 1
  10962. _ACEOF
  10963. fi
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  10965. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  10966. if ${ac_cv_header_time+:} false; then :
  10967. $as_echo_n "(cached) " >&6
  10968. else
  10969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10970. /* end confdefs.h. */
  10971. #include <sys/types.h>
  10972. #include <sys/time.h>
  10973. #include <time.h>
  10974. int
  10975. main ()
  10976. {
  10977. if ((struct tm *) 0)
  10978. return 0;
  10979. ;
  10980. return 0;
  10981. }
  10982. _ACEOF
  10983. if ac_fn_c_try_compile "$LINENO"; then :
  10984. ac_cv_header_time=yes
  10985. else
  10986. ac_cv_header_time=no
  10987. fi
  10988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10989. fi
  10990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  10991. $as_echo "$ac_cv_header_time" >&6; }
  10992. if test $ac_cv_header_time = yes; then
  10993. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  10994. fi
  10995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  10996. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  10997. if ${ac_cv_struct_tm+:} false; then :
  10998. $as_echo_n "(cached) " >&6
  10999. else
  11000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11001. /* end confdefs.h. */
  11002. #include <sys/types.h>
  11003. #include <time.h>
  11004. int
  11005. main ()
  11006. {
  11007. struct tm tm;
  11008. int *p = &tm.tm_sec;
  11009. return !p;
  11010. ;
  11011. return 0;
  11012. }
  11013. _ACEOF
  11014. if ac_fn_c_try_compile "$LINENO"; then :
  11015. ac_cv_struct_tm=time.h
  11016. else
  11017. ac_cv_struct_tm=sys/time.h
  11018. fi
  11019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11020. fi
  11021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11022. $as_echo "$ac_cv_struct_tm" >&6; }
  11023. if test $ac_cv_struct_tm = sys/time.h; then
  11024. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11025. fi
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  11027. $as_echo_n "checking for working volatile... " >&6; }
  11028. if ${ac_cv_c_volatile+:} false; then :
  11029. $as_echo_n "(cached) " >&6
  11030. else
  11031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11032. /* end confdefs.h. */
  11033. int
  11034. main ()
  11035. {
  11036. volatile int x;
  11037. int * volatile y = (int *) 0;
  11038. return !x && !y;
  11039. ;
  11040. return 0;
  11041. }
  11042. _ACEOF
  11043. if ac_fn_c_try_compile "$LINENO"; then :
  11044. ac_cv_c_volatile=yes
  11045. else
  11046. ac_cv_c_volatile=no
  11047. fi
  11048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11049. fi
  11050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  11051. $as_echo "$ac_cv_c_volatile" >&6; }
  11052. if test $ac_cv_c_volatile = no; then
  11053. $as_echo "#define volatile /**/" >>confdefs.h
  11054. fi
  11055. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  11056. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  11057. cat >>confdefs.h <<_ACEOF
  11058. #define HAVE_PTRDIFF_T 1
  11059. _ACEOF
  11060. fi
  11061. stat_nsec_found=no
  11062. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
  11063. "
  11064. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  11065. cat >>confdefs.h <<_ACEOF
  11066. #define HAVE_STRUCT_STAT_ST_MTIM 1
  11067. _ACEOF
  11068. stat_nsec_found=yes
  11069. fi
  11070. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
  11071. "
  11072. if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
  11073. cat >>confdefs.h <<_ACEOF
  11074. #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
  11075. _ACEOF
  11076. stat_nsec_found=yes
  11077. fi
  11078. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "#include <sys/stat.h>
  11079. "
  11080. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  11081. cat >>confdefs.h <<_ACEOF
  11082. #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
  11083. _ACEOF
  11084. stat_nsec_found=yes
  11085. fi
  11086. if test "${stat_nsec_found}" != yes; then
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine nanosecond field of struct stat" >&5
  11088. $as_echo "$as_me: WARNING: Cannot determine nanosecond field of struct stat" >&2;}
  11089. fi
  11090. # Checks for library functions.
  11091. for ac_header in unistd.h
  11092. do :
  11093. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  11094. if test "x$ac_cv_header_unistd_h" = xyes; then :
  11095. cat >>confdefs.h <<_ACEOF
  11096. #define HAVE_UNISTD_H 1
  11097. _ACEOF
  11098. fi
  11099. done
  11100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  11101. $as_echo_n "checking for working chown... " >&6; }
  11102. if ${ac_cv_func_chown_works+:} false; then :
  11103. $as_echo_n "(cached) " >&6
  11104. else
  11105. if test "$cross_compiling" = yes; then :
  11106. ac_cv_func_chown_works=no
  11107. else
  11108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11109. /* end confdefs.h. */
  11110. $ac_includes_default
  11111. #include <fcntl.h>
  11112. int
  11113. main ()
  11114. {
  11115. char *f = "conftest.chown";
  11116. struct stat before, after;
  11117. if (creat (f, 0600) < 0)
  11118. return 1;
  11119. if (stat (f, &before) < 0)
  11120. return 1;
  11121. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  11122. return 1;
  11123. if (stat (f, &after) < 0)
  11124. return 1;
  11125. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  11126. ;
  11127. return 0;
  11128. }
  11129. _ACEOF
  11130. if ac_fn_c_try_run "$LINENO"; then :
  11131. ac_cv_func_chown_works=yes
  11132. else
  11133. ac_cv_func_chown_works=no
  11134. fi
  11135. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11136. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11137. fi
  11138. rm -f conftest.chown
  11139. fi
  11140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  11141. $as_echo "$ac_cv_func_chown_works" >&6; }
  11142. if test $ac_cv_func_chown_works = yes; then
  11143. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  11144. fi
  11145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  11146. $as_echo_n "checking whether closedir returns void... " >&6; }
  11147. if ${ac_cv_func_closedir_void+:} false; then :
  11148. $as_echo_n "(cached) " >&6
  11149. else
  11150. if test "$cross_compiling" = yes; then :
  11151. ac_cv_func_closedir_void=yes
  11152. else
  11153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11154. /* end confdefs.h. */
  11155. $ac_includes_default
  11156. #include <$ac_header_dirent>
  11157. #ifndef __cplusplus
  11158. int closedir ();
  11159. #endif
  11160. int
  11161. main ()
  11162. {
  11163. return closedir (opendir (".")) != 0;
  11164. ;
  11165. return 0;
  11166. }
  11167. _ACEOF
  11168. if ac_fn_c_try_run "$LINENO"; then :
  11169. ac_cv_func_closedir_void=no
  11170. else
  11171. ac_cv_func_closedir_void=yes
  11172. fi
  11173. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11174. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11175. fi
  11176. fi
  11177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  11178. $as_echo "$ac_cv_func_closedir_void" >&6; }
  11179. if test $ac_cv_func_closedir_void = yes; then
  11180. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  11181. fi
  11182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11183. $as_echo_n "checking for error_at_line... " >&6; }
  11184. if ${ac_cv_lib_error_at_line+:} false; then :
  11185. $as_echo_n "(cached) " >&6
  11186. else
  11187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11188. /* end confdefs.h. */
  11189. #include <error.h>
  11190. int
  11191. main ()
  11192. {
  11193. error_at_line (0, 0, "", 0, "an error occurred");
  11194. ;
  11195. return 0;
  11196. }
  11197. _ACEOF
  11198. if ac_fn_c_try_link "$LINENO"; then :
  11199. ac_cv_lib_error_at_line=yes
  11200. else
  11201. ac_cv_lib_error_at_line=no
  11202. fi
  11203. rm -f core conftest.err conftest.$ac_objext \
  11204. conftest$ac_exeext conftest.$ac_ext
  11205. fi
  11206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11207. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11208. if test $ac_cv_lib_error_at_line = no; then
  11209. case " $LIBOBJS " in
  11210. *" error.$ac_objext "* ) ;;
  11211. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11212. ;;
  11213. esac
  11214. fi
  11215. for ac_header in vfork.h
  11216. do :
  11217. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11218. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11219. cat >>confdefs.h <<_ACEOF
  11220. #define HAVE_VFORK_H 1
  11221. _ACEOF
  11222. fi
  11223. done
  11224. for ac_func in fork vfork
  11225. do :
  11226. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11227. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11228. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11229. cat >>confdefs.h <<_ACEOF
  11230. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11231. _ACEOF
  11232. fi
  11233. done
  11234. if test "x$ac_cv_func_fork" = xyes; then
  11235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11236. $as_echo_n "checking for working fork... " >&6; }
  11237. if ${ac_cv_func_fork_works+:} false; then :
  11238. $as_echo_n "(cached) " >&6
  11239. else
  11240. if test "$cross_compiling" = yes; then :
  11241. ac_cv_func_fork_works=cross
  11242. else
  11243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11244. /* end confdefs.h. */
  11245. $ac_includes_default
  11246. int
  11247. main ()
  11248. {
  11249. /* By Ruediger Kuhlmann. */
  11250. return fork () < 0;
  11251. ;
  11252. return 0;
  11253. }
  11254. _ACEOF
  11255. if ac_fn_c_try_run "$LINENO"; then :
  11256. ac_cv_func_fork_works=yes
  11257. else
  11258. ac_cv_func_fork_works=no
  11259. fi
  11260. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11261. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11262. fi
  11263. fi
  11264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11265. $as_echo "$ac_cv_func_fork_works" >&6; }
  11266. else
  11267. ac_cv_func_fork_works=$ac_cv_func_fork
  11268. fi
  11269. if test "x$ac_cv_func_fork_works" = xcross; then
  11270. case $host in
  11271. *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
  11272. # Override, as these systems have only a dummy fork() stub
  11273. ac_cv_func_fork_works=no
  11274. ;;
  11275. *)
  11276. ac_cv_func_fork_works=yes
  11277. ;;
  11278. esac
  11279. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11280. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11281. fi
  11282. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11283. if test "x$ac_cv_func_vfork" = xyes; then
  11284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11285. $as_echo_n "checking for working vfork... " >&6; }
  11286. if ${ac_cv_func_vfork_works+:} false; then :
  11287. $as_echo_n "(cached) " >&6
  11288. else
  11289. if test "$cross_compiling" = yes; then :
  11290. ac_cv_func_vfork_works=cross
  11291. else
  11292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11293. /* end confdefs.h. */
  11294. /* Thanks to Paul Eggert for this test. */
  11295. $ac_includes_default
  11296. #include <sys/wait.h>
  11297. #ifdef HAVE_VFORK_H
  11298. # include <vfork.h>
  11299. #endif
  11300. /* On some sparc systems, changes by the child to local and incoming
  11301. argument registers are propagated back to the parent. The compiler
  11302. is told about this with #include <vfork.h>, but some compilers
  11303. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  11304. static variable whose address is put into a register that is
  11305. clobbered by the vfork. */
  11306. static void
  11307. #ifdef __cplusplus
  11308. sparc_address_test (int arg)
  11309. # else
  11310. sparc_address_test (arg) int arg;
  11311. #endif
  11312. {
  11313. static pid_t child;
  11314. if (!child) {
  11315. child = vfork ();
  11316. if (child < 0) {
  11317. perror ("vfork");
  11318. _exit(2);
  11319. }
  11320. if (!child) {
  11321. arg = getpid();
  11322. write(-1, "", 0);
  11323. _exit (arg);
  11324. }
  11325. }
  11326. }
  11327. int
  11328. main ()
  11329. {
  11330. pid_t parent = getpid ();
  11331. pid_t child;
  11332. sparc_address_test (0);
  11333. child = vfork ();
  11334. if (child == 0) {
  11335. /* Here is another test for sparc vfork register problems. This
  11336. test uses lots of local variables, at least as many local
  11337. variables as main has allocated so far including compiler
  11338. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  11339. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  11340. reuse the register of parent for one of the local variables,
  11341. since it will think that parent can't possibly be used any more
  11342. in this routine. Assigning to the local variable will thus
  11343. munge parent in the parent process. */
  11344. pid_t
  11345. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  11346. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  11347. /* Convince the compiler that p..p7 are live; otherwise, it might
  11348. use the same hardware register for all 8 local variables. */
  11349. if (p != p1 || p != p2 || p != p3 || p != p4
  11350. || p != p5 || p != p6 || p != p7)
  11351. _exit(1);
  11352. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  11353. from child file descriptors. If the child closes a descriptor
  11354. before it execs or exits, this munges the parent's descriptor
  11355. as well. Test for this by closing stdout in the child. */
  11356. _exit(close(fileno(stdout)) != 0);
  11357. } else {
  11358. int status;
  11359. struct stat st;
  11360. while (wait(&status) != child)
  11361. ;
  11362. return (
  11363. /* Was there some problem with vforking? */
  11364. child < 0
  11365. /* Did the child fail? (This shouldn't happen.) */
  11366. || status
  11367. /* Did the vfork/compiler bug occur? */
  11368. || parent != getpid()
  11369. /* Did the file descriptor bug occur? */
  11370. || fstat(fileno(stdout), &st) != 0
  11371. );
  11372. }
  11373. }
  11374. _ACEOF
  11375. if ac_fn_c_try_run "$LINENO"; then :
  11376. ac_cv_func_vfork_works=yes
  11377. else
  11378. ac_cv_func_vfork_works=no
  11379. fi
  11380. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11381. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11382. fi
  11383. fi
  11384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  11385. $as_echo "$ac_cv_func_vfork_works" >&6; }
  11386. fi;
  11387. if test "x$ac_cv_func_fork_works" = xcross; then
  11388. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  11390. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  11391. fi
  11392. if test "x$ac_cv_func_vfork_works" = xyes; then
  11393. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  11394. else
  11395. $as_echo "#define vfork fork" >>confdefs.h
  11396. fi
  11397. if test "x$ac_cv_func_fork_works" = xyes; then
  11398. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  11399. PBX_WORKING_FORK=1
  11400. fi
  11401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11402. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  11403. if ${ac_cv_sys_largefile_source+:} false; then :
  11404. $as_echo_n "(cached) " >&6
  11405. else
  11406. while :; do
  11407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11408. /* end confdefs.h. */
  11409. #include <sys/types.h> /* for off_t */
  11410. #include <stdio.h>
  11411. int
  11412. main ()
  11413. {
  11414. int (*fp) (FILE *, off_t, int) = fseeko;
  11415. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11416. ;
  11417. return 0;
  11418. }
  11419. _ACEOF
  11420. if ac_fn_c_try_link "$LINENO"; then :
  11421. ac_cv_sys_largefile_source=no; break
  11422. fi
  11423. rm -f core conftest.err conftest.$ac_objext \
  11424. conftest$ac_exeext conftest.$ac_ext
  11425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11426. /* end confdefs.h. */
  11427. #define _LARGEFILE_SOURCE 1
  11428. #include <sys/types.h> /* for off_t */
  11429. #include <stdio.h>
  11430. int
  11431. main ()
  11432. {
  11433. int (*fp) (FILE *, off_t, int) = fseeko;
  11434. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11435. ;
  11436. return 0;
  11437. }
  11438. _ACEOF
  11439. if ac_fn_c_try_link "$LINENO"; then :
  11440. ac_cv_sys_largefile_source=1; break
  11441. fi
  11442. rm -f core conftest.err conftest.$ac_objext \
  11443. conftest$ac_exeext conftest.$ac_ext
  11444. ac_cv_sys_largefile_source=unknown
  11445. break
  11446. done
  11447. fi
  11448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  11449. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  11450. case $ac_cv_sys_largefile_source in #(
  11451. no | unknown) ;;
  11452. *)
  11453. cat >>confdefs.h <<_ACEOF
  11454. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11455. _ACEOF
  11456. ;;
  11457. esac
  11458. rm -rf conftest*
  11459. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11460. # in glibc 2.1.3, but that breaks too many other things.
  11461. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11462. if test $ac_cv_sys_largefile_source != unknown; then
  11463. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  11464. fi
  11465. if test $ac_cv_c_compiler_gnu = yes; then
  11466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11467. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11468. if ${ac_cv_prog_gcc_traditional+:} false; then :
  11469. $as_echo_n "(cached) " >&6
  11470. else
  11471. ac_pattern="Autoconf.*'x'"
  11472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11473. /* end confdefs.h. */
  11474. #include <sgtty.h>
  11475. Autoconf TIOCGETP
  11476. _ACEOF
  11477. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11478. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11479. ac_cv_prog_gcc_traditional=yes
  11480. else
  11481. ac_cv_prog_gcc_traditional=no
  11482. fi
  11483. rm -f conftest*
  11484. if test $ac_cv_prog_gcc_traditional = no; then
  11485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11486. /* end confdefs.h. */
  11487. #include <termio.h>
  11488. Autoconf TCGETA
  11489. _ACEOF
  11490. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11491. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  11492. ac_cv_prog_gcc_traditional=yes
  11493. fi
  11494. rm -f conftest*
  11495. fi
  11496. fi
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  11498. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  11499. if test $ac_cv_prog_gcc_traditional = yes; then
  11500. CC="$CC -traditional"
  11501. fi
  11502. fi
  11503. # XXX: these are commented out until we determine whether it matters if our malloc()
  11504. # acts exactly like glibc's or not
  11505. # AC_FUNC_MALLOC
  11506. # AC_FUNC_REALLOC
  11507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  11508. $as_echo_n "checking for working memcmp... " >&6; }
  11509. if ${ac_cv_func_memcmp_working+:} false; then :
  11510. $as_echo_n "(cached) " >&6
  11511. else
  11512. if test "$cross_compiling" = yes; then :
  11513. ac_cv_func_memcmp_working=no
  11514. else
  11515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11516. /* end confdefs.h. */
  11517. $ac_includes_default
  11518. int
  11519. main ()
  11520. {
  11521. /* Some versions of memcmp are not 8-bit clean. */
  11522. char c0 = '\100', c1 = '\200', c2 = '\201';
  11523. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  11524. return 1;
  11525. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  11526. or more and with at least one buffer not starting on a 4-byte boundary.
  11527. William Lewis provided this test program. */
  11528. {
  11529. char foo[21];
  11530. char bar[21];
  11531. int i;
  11532. for (i = 0; i < 4; i++)
  11533. {
  11534. char *a = foo + i;
  11535. char *b = bar + i;
  11536. strcpy (a, "--------01111111");
  11537. strcpy (b, "--------10000000");
  11538. if (memcmp (a, b, 16) >= 0)
  11539. return 1;
  11540. }
  11541. return 0;
  11542. }
  11543. ;
  11544. return 0;
  11545. }
  11546. _ACEOF
  11547. if ac_fn_c_try_run "$LINENO"; then :
  11548. ac_cv_func_memcmp_working=yes
  11549. else
  11550. ac_cv_func_memcmp_working=no
  11551. fi
  11552. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11553. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11554. fi
  11555. fi
  11556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  11557. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  11558. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  11559. *" memcmp.$ac_objext "* ) ;;
  11560. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  11561. ;;
  11562. esac
  11563. for ac_header in $ac_header_list
  11564. do :
  11565. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11566. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11567. "
  11568. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11569. cat >>confdefs.h <<_ACEOF
  11570. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11571. _ACEOF
  11572. fi
  11573. done
  11574. for ac_func in getpagesize
  11575. do :
  11576. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  11577. if test "x$ac_cv_func_getpagesize" = xyes; then :
  11578. cat >>confdefs.h <<_ACEOF
  11579. #define HAVE_GETPAGESIZE 1
  11580. _ACEOF
  11581. fi
  11582. done
  11583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  11584. $as_echo_n "checking for working mmap... " >&6; }
  11585. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  11586. $as_echo_n "(cached) " >&6
  11587. else
  11588. if test "$cross_compiling" = yes; then :
  11589. ac_cv_func_mmap_fixed_mapped=no
  11590. else
  11591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11592. /* end confdefs.h. */
  11593. $ac_includes_default
  11594. /* malloc might have been renamed as rpl_malloc. */
  11595. #undef malloc
  11596. /* Thanks to Mike Haertel and Jim Avera for this test.
  11597. Here is a matrix of mmap possibilities:
  11598. mmap private not fixed
  11599. mmap private fixed at somewhere currently unmapped
  11600. mmap private fixed at somewhere already mapped
  11601. mmap shared not fixed
  11602. mmap shared fixed at somewhere currently unmapped
  11603. mmap shared fixed at somewhere already mapped
  11604. For private mappings, we should verify that changes cannot be read()
  11605. back from the file, nor mmap's back from the file at a different
  11606. address. (There have been systems where private was not correctly
  11607. implemented like the infamous i386 svr4.0, and systems where the
  11608. VM page cache was not coherent with the file system buffer cache
  11609. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11610. For shared mappings, we should conversely verify that changes get
  11611. propagated back to all the places they're supposed to be.
  11612. Grep wants private fixed already mapped.
  11613. The main things grep needs to know about mmap are:
  11614. * does it exist and is it safe to write into the mmap'd area
  11615. * how to use it (BSD variants) */
  11616. #include <fcntl.h>
  11617. #include <sys/mman.h>
  11618. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11619. char *malloc ();
  11620. #endif
  11621. /* This mess was copied from the GNU getpagesize.h. */
  11622. #ifndef HAVE_GETPAGESIZE
  11623. # ifdef _SC_PAGESIZE
  11624. # define getpagesize() sysconf(_SC_PAGESIZE)
  11625. # else /* no _SC_PAGESIZE */
  11626. # ifdef HAVE_SYS_PARAM_H
  11627. # include <sys/param.h>
  11628. # ifdef EXEC_PAGESIZE
  11629. # define getpagesize() EXEC_PAGESIZE
  11630. # else /* no EXEC_PAGESIZE */
  11631. # ifdef NBPG
  11632. # define getpagesize() NBPG * CLSIZE
  11633. # ifndef CLSIZE
  11634. # define CLSIZE 1
  11635. # endif /* no CLSIZE */
  11636. # else /* no NBPG */
  11637. # ifdef NBPC
  11638. # define getpagesize() NBPC
  11639. # else /* no NBPC */
  11640. # ifdef PAGESIZE
  11641. # define getpagesize() PAGESIZE
  11642. # endif /* PAGESIZE */
  11643. # endif /* no NBPC */
  11644. # endif /* no NBPG */
  11645. # endif /* no EXEC_PAGESIZE */
  11646. # else /* no HAVE_SYS_PARAM_H */
  11647. # define getpagesize() 8192 /* punt totally */
  11648. # endif /* no HAVE_SYS_PARAM_H */
  11649. # endif /* no _SC_PAGESIZE */
  11650. #endif /* no HAVE_GETPAGESIZE */
  11651. int
  11652. main ()
  11653. {
  11654. char *data, *data2, *data3;
  11655. const char *cdata2;
  11656. int i, pagesize;
  11657. int fd, fd2;
  11658. pagesize = getpagesize ();
  11659. /* First, make a file with some known garbage in it. */
  11660. data = (char *) malloc (pagesize);
  11661. if (!data)
  11662. return 1;
  11663. for (i = 0; i < pagesize; ++i)
  11664. *(data + i) = rand ();
  11665. umask (0);
  11666. fd = creat ("conftest.mmap", 0600);
  11667. if (fd < 0)
  11668. return 2;
  11669. if (write (fd, data, pagesize) != pagesize)
  11670. return 3;
  11671. close (fd);
  11672. /* Next, check that the tail of a page is zero-filled. File must have
  11673. non-zero length, otherwise we risk SIGBUS for entire page. */
  11674. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11675. if (fd2 < 0)
  11676. return 4;
  11677. cdata2 = "";
  11678. if (write (fd2, cdata2, 1) != 1)
  11679. return 5;
  11680. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11681. if (data2 == MAP_FAILED)
  11682. return 6;
  11683. for (i = 0; i < pagesize; ++i)
  11684. if (*(data2 + i))
  11685. return 7;
  11686. close (fd2);
  11687. if (munmap (data2, pagesize))
  11688. return 8;
  11689. /* Next, try to mmap the file at a fixed address which already has
  11690. something else allocated at it. If we can, also make sure that
  11691. we see the same garbage. */
  11692. fd = open ("conftest.mmap", O_RDWR);
  11693. if (fd < 0)
  11694. return 9;
  11695. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11696. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11697. return 10;
  11698. for (i = 0; i < pagesize; ++i)
  11699. if (*(data + i) != *(data2 + i))
  11700. return 11;
  11701. /* Finally, make sure that changes to the mapped area do not
  11702. percolate back to the file as seen by read(). (This is a bug on
  11703. some variants of i386 svr4.0.) */
  11704. for (i = 0; i < pagesize; ++i)
  11705. *(data2 + i) = *(data2 + i) + 1;
  11706. data3 = (char *) malloc (pagesize);
  11707. if (!data3)
  11708. return 12;
  11709. if (read (fd, data3, pagesize) != pagesize)
  11710. return 13;
  11711. for (i = 0; i < pagesize; ++i)
  11712. if (*(data + i) != *(data3 + i))
  11713. return 14;
  11714. close (fd);
  11715. return 0;
  11716. }
  11717. _ACEOF
  11718. if ac_fn_c_try_run "$LINENO"; then :
  11719. ac_cv_func_mmap_fixed_mapped=yes
  11720. else
  11721. ac_cv_func_mmap_fixed_mapped=no
  11722. fi
  11723. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11724. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11725. fi
  11726. fi
  11727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11728. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11729. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11730. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11731. fi
  11732. rm -f conftest.mmap conftest.txt
  11733. for ac_header in sys/select.h sys/socket.h
  11734. do :
  11735. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11736. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11737. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11738. cat >>confdefs.h <<_ACEOF
  11739. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11740. _ACEOF
  11741. fi
  11742. done
  11743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  11744. $as_echo_n "checking types of arguments for select... " >&6; }
  11745. if ${ac_cv_func_select_args+:} false; then :
  11746. $as_echo_n "(cached) " >&6
  11747. else
  11748. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  11749. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  11750. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  11751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11752. /* end confdefs.h. */
  11753. $ac_includes_default
  11754. #ifdef HAVE_SYS_SELECT_H
  11755. # include <sys/select.h>
  11756. #endif
  11757. #ifdef HAVE_SYS_SOCKET_H
  11758. # include <sys/socket.h>
  11759. #endif
  11760. int
  11761. main ()
  11762. {
  11763. extern int select ($ac_arg1,
  11764. $ac_arg234, $ac_arg234, $ac_arg234,
  11765. $ac_arg5);
  11766. ;
  11767. return 0;
  11768. }
  11769. _ACEOF
  11770. if ac_fn_c_try_compile "$LINENO"; then :
  11771. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  11772. fi
  11773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11774. done
  11775. done
  11776. done
  11777. # Provide a safe default value.
  11778. : "${ac_cv_func_select_args=int,int *,struct timeval *}"
  11779. fi
  11780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  11781. $as_echo "$ac_cv_func_select_args" >&6; }
  11782. ac_save_IFS=$IFS; IFS=','
  11783. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  11784. IFS=$ac_save_IFS
  11785. shift
  11786. cat >>confdefs.h <<_ACEOF
  11787. #define SELECT_TYPE_ARG1 $1
  11788. _ACEOF
  11789. cat >>confdefs.h <<_ACEOF
  11790. #define SELECT_TYPE_ARG234 ($2)
  11791. _ACEOF
  11792. cat >>confdefs.h <<_ACEOF
  11793. #define SELECT_TYPE_ARG5 ($3)
  11794. _ACEOF
  11795. rm -f conftest*
  11796. if ${ac_cv_func_setvbuf_reversed+:} false; then :
  11797. $as_echo_n "(cached) " >&6
  11798. else
  11799. ac_cv_func_setvbuf_reversed=no
  11800. fi
  11801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  11802. $as_echo_n "checking return type of signal handlers... " >&6; }
  11803. if ${ac_cv_type_signal+:} false; then :
  11804. $as_echo_n "(cached) " >&6
  11805. else
  11806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11807. /* end confdefs.h. */
  11808. #include <sys/types.h>
  11809. #include <signal.h>
  11810. int
  11811. main ()
  11812. {
  11813. return *(signal (0, 0)) (0) == 1;
  11814. ;
  11815. return 0;
  11816. }
  11817. _ACEOF
  11818. if ac_fn_c_try_compile "$LINENO"; then :
  11819. ac_cv_type_signal=int
  11820. else
  11821. ac_cv_type_signal=void
  11822. fi
  11823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11824. fi
  11825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  11826. $as_echo "$ac_cv_type_signal" >&6; }
  11827. cat >>confdefs.h <<_ACEOF
  11828. #define RETSIGTYPE $ac_cv_type_signal
  11829. _ACEOF
  11830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  11831. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  11832. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  11833. $as_echo_n "(cached) " >&6
  11834. else
  11835. rm -f conftest.sym conftest.file
  11836. echo >conftest.file
  11837. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  11838. if test "$cross_compiling" = yes; then :
  11839. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11840. else
  11841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11842. /* end confdefs.h. */
  11843. $ac_includes_default
  11844. int
  11845. main ()
  11846. {
  11847. struct stat sbuf;
  11848. /* Linux will dereference the symlink and fail, as required by POSIX.
  11849. That is better in the sense that it means we will not
  11850. have to compile and use the lstat wrapper. */
  11851. return lstat ("conftest.sym/", &sbuf) == 0;
  11852. ;
  11853. return 0;
  11854. }
  11855. _ACEOF
  11856. if ac_fn_c_try_run "$LINENO"; then :
  11857. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  11858. else
  11859. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11860. fi
  11861. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11862. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11863. fi
  11864. else
  11865. # If the `ln -s' command failed, then we probably don't even
  11866. # have an lstat function.
  11867. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11868. fi
  11869. rm -f conftest.sym conftest.file
  11870. fi
  11871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  11872. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  11873. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  11874. cat >>confdefs.h <<_ACEOF
  11875. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  11876. _ACEOF
  11877. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  11878. case " $LIBOBJS " in
  11879. *" lstat.$ac_objext "* ) ;;
  11880. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  11881. ;;
  11882. esac
  11883. fi
  11884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  11885. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  11886. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  11887. $as_echo_n "(cached) " >&6
  11888. else
  11889. if test "$cross_compiling" = yes; then :
  11890. ac_cv_func_stat_empty_string_bug=yes
  11891. else
  11892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11893. /* end confdefs.h. */
  11894. $ac_includes_default
  11895. int
  11896. main ()
  11897. {
  11898. struct stat sbuf;
  11899. return stat ("", &sbuf) == 0;
  11900. ;
  11901. return 0;
  11902. }
  11903. _ACEOF
  11904. if ac_fn_c_try_run "$LINENO"; then :
  11905. ac_cv_func_stat_empty_string_bug=no
  11906. else
  11907. ac_cv_func_stat_empty_string_bug=yes
  11908. fi
  11909. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11910. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11911. fi
  11912. fi
  11913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  11914. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  11915. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11916. case " $LIBOBJS " in
  11917. *" stat.$ac_objext "* ) ;;
  11918. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11919. ;;
  11920. esac
  11921. cat >>confdefs.h <<_ACEOF
  11922. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11923. _ACEOF
  11924. fi
  11925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
  11926. $as_echo_n "checking for working strcoll... " >&6; }
  11927. if ${ac_cv_func_strcoll_works+:} false; then :
  11928. $as_echo_n "(cached) " >&6
  11929. else
  11930. if test "$cross_compiling" = yes; then :
  11931. ac_cv_func_strcoll_works=no
  11932. else
  11933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11934. /* end confdefs.h. */
  11935. $ac_includes_default
  11936. int
  11937. main ()
  11938. {
  11939. return (strcoll ("abc", "def") >= 0 ||
  11940. strcoll ("ABC", "DEF") >= 0 ||
  11941. strcoll ("123", "456") >= 0)
  11942. ;
  11943. return 0;
  11944. }
  11945. _ACEOF
  11946. if ac_fn_c_try_run "$LINENO"; then :
  11947. ac_cv_func_strcoll_works=yes
  11948. else
  11949. ac_cv_func_strcoll_works=no
  11950. fi
  11951. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11952. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11953. fi
  11954. fi
  11955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
  11956. $as_echo "$ac_cv_func_strcoll_works" >&6; }
  11957. if test $ac_cv_func_strcoll_works = yes; then
  11958. $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
  11959. fi
  11960. for ac_func in strftime
  11961. do :
  11962. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  11963. if test "x$ac_cv_func_strftime" = xyes; then :
  11964. cat >>confdefs.h <<_ACEOF
  11965. #define HAVE_STRFTIME 1
  11966. _ACEOF
  11967. else
  11968. # strftime is in -lintl on SCO UNIX.
  11969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  11970. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11971. if ${ac_cv_lib_intl_strftime+:} false; then :
  11972. $as_echo_n "(cached) " >&6
  11973. else
  11974. ac_check_lib_save_LIBS=$LIBS
  11975. LIBS="-lintl $LIBS"
  11976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11977. /* end confdefs.h. */
  11978. /* Override any GCC internal prototype to avoid an error.
  11979. Use char because int might match the return type of a GCC
  11980. builtin and then its argument prototype would still apply. */
  11981. #ifdef __cplusplus
  11982. extern "C"
  11983. #endif
  11984. char strftime ();
  11985. int
  11986. main ()
  11987. {
  11988. return strftime ();
  11989. ;
  11990. return 0;
  11991. }
  11992. _ACEOF
  11993. if ac_fn_c_try_link "$LINENO"; then :
  11994. ac_cv_lib_intl_strftime=yes
  11995. else
  11996. ac_cv_lib_intl_strftime=no
  11997. fi
  11998. rm -f core conftest.err conftest.$ac_objext \
  11999. conftest$ac_exeext conftest.$ac_ext
  12000. LIBS=$ac_check_lib_save_LIBS
  12001. fi
  12002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12003. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12004. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  12005. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12006. LIBS="-lintl $LIBS"
  12007. fi
  12008. fi
  12009. done
  12010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
  12011. $as_echo_n "checking for working strnlen... " >&6; }
  12012. if ${ac_cv_func_strnlen_working+:} false; then :
  12013. $as_echo_n "(cached) " >&6
  12014. else
  12015. if test "$cross_compiling" = yes; then :
  12016. # Guess no on AIX systems, yes otherwise.
  12017. case "$host_os" in
  12018. aix*) ac_cv_func_strnlen_working=no;;
  12019. *) ac_cv_func_strnlen_working=yes;;
  12020. esac
  12021. else
  12022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12023. /* end confdefs.h. */
  12024. $ac_includes_default
  12025. int
  12026. main ()
  12027. {
  12028. #define S "foobar"
  12029. #define S_LEN (sizeof S - 1)
  12030. /* At least one implementation is buggy: that of AIX 4.3 would
  12031. give strnlen (S, 1) == 3. */
  12032. int i;
  12033. for (i = 0; i < S_LEN + 1; ++i)
  12034. {
  12035. int expected = i <= S_LEN ? i : S_LEN;
  12036. if (strnlen (S, i) != expected)
  12037. return 1;
  12038. }
  12039. return 0;
  12040. ;
  12041. return 0;
  12042. }
  12043. _ACEOF
  12044. if ac_fn_c_try_run "$LINENO"; then :
  12045. ac_cv_func_strnlen_working=yes
  12046. else
  12047. ac_cv_func_strnlen_working=no
  12048. fi
  12049. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12050. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12051. fi
  12052. fi
  12053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
  12054. $as_echo "$ac_cv_func_strnlen_working" >&6; }
  12055. test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
  12056. *" strnlen.$ac_objext "* ) ;;
  12057. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  12058. ;;
  12059. esac
  12060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12061. $as_echo_n "checking for working strtod... " >&6; }
  12062. if ${ac_cv_func_strtod+:} false; then :
  12063. $as_echo_n "(cached) " >&6
  12064. else
  12065. if test "$cross_compiling" = yes; then :
  12066. ac_cv_func_strtod=no
  12067. else
  12068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12069. /* end confdefs.h. */
  12070. $ac_includes_default
  12071. #ifndef strtod
  12072. double strtod ();
  12073. #endif
  12074. int
  12075. main()
  12076. {
  12077. {
  12078. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12079. char *string = " +69";
  12080. char *term;
  12081. double value;
  12082. value = strtod (string, &term);
  12083. if (value != 69 || term != (string + 4))
  12084. return 1;
  12085. }
  12086. {
  12087. /* Under Solaris 2.4, strtod returns the wrong value for the
  12088. terminating character under some conditions. */
  12089. char *string = "NaN";
  12090. char *term;
  12091. strtod (string, &term);
  12092. if (term != string && *(term - 1) == 0)
  12093. return 1;
  12094. }
  12095. return 0;
  12096. }
  12097. _ACEOF
  12098. if ac_fn_c_try_run "$LINENO"; then :
  12099. ac_cv_func_strtod=yes
  12100. else
  12101. ac_cv_func_strtod=no
  12102. fi
  12103. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12104. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12105. fi
  12106. fi
  12107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12108. $as_echo "$ac_cv_func_strtod" >&6; }
  12109. if test $ac_cv_func_strtod = no; then
  12110. case " $LIBOBJS " in
  12111. *" strtod.$ac_objext "* ) ;;
  12112. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12113. ;;
  12114. esac
  12115. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12116. if test "x$ac_cv_func_pow" = xyes; then :
  12117. fi
  12118. if test $ac_cv_func_pow = no; then
  12119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12120. $as_echo_n "checking for pow in -lm... " >&6; }
  12121. if ${ac_cv_lib_m_pow+:} false; then :
  12122. $as_echo_n "(cached) " >&6
  12123. else
  12124. ac_check_lib_save_LIBS=$LIBS
  12125. LIBS="-lm $LIBS"
  12126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12127. /* end confdefs.h. */
  12128. /* Override any GCC internal prototype to avoid an error.
  12129. Use char because int might match the return type of a GCC
  12130. builtin and then its argument prototype would still apply. */
  12131. #ifdef __cplusplus
  12132. extern "C"
  12133. #endif
  12134. char pow ();
  12135. int
  12136. main ()
  12137. {
  12138. return pow ();
  12139. ;
  12140. return 0;
  12141. }
  12142. _ACEOF
  12143. if ac_fn_c_try_link "$LINENO"; then :
  12144. ac_cv_lib_m_pow=yes
  12145. else
  12146. ac_cv_lib_m_pow=no
  12147. fi
  12148. rm -f core conftest.err conftest.$ac_objext \
  12149. conftest$ac_exeext conftest.$ac_ext
  12150. LIBS=$ac_check_lib_save_LIBS
  12151. fi
  12152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12153. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12154. if test "x$ac_cv_lib_m_pow" = xyes; then :
  12155. POW_LIB=-lm
  12156. else
  12157. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12158. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12159. fi
  12160. fi
  12161. fi
  12162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
  12163. $as_echo_n "checking whether utime accepts a null argument... " >&6; }
  12164. if ${ac_cv_func_utime_null+:} false; then :
  12165. $as_echo_n "(cached) " >&6
  12166. else
  12167. rm -f conftest.data; >conftest.data
  12168. # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
  12169. if test "$cross_compiling" = yes; then :
  12170. ac_cv_func_utime_null='guessing yes'
  12171. else
  12172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12173. /* end confdefs.h. */
  12174. $ac_includes_default
  12175. #ifdef HAVE_UTIME_H
  12176. # include <utime.h>
  12177. #endif
  12178. int
  12179. main ()
  12180. {
  12181. struct stat s, t;
  12182. return ! (stat ("conftest.data", &s) == 0
  12183. && utime ("conftest.data", 0) == 0
  12184. && stat ("conftest.data", &t) == 0
  12185. && t.st_mtime >= s.st_mtime
  12186. && t.st_mtime - s.st_mtime < 120);
  12187. ;
  12188. return 0;
  12189. }
  12190. _ACEOF
  12191. if ac_fn_c_try_run "$LINENO"; then :
  12192. ac_cv_func_utime_null=yes
  12193. else
  12194. ac_cv_func_utime_null=no
  12195. fi
  12196. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12197. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12198. fi
  12199. fi
  12200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
  12201. $as_echo "$ac_cv_func_utime_null" >&6; }
  12202. if test "x$ac_cv_func_utime_null" != xno; then
  12203. ac_cv_func_utime_null=yes
  12204. $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
  12205. fi
  12206. rm -f conftest.data
  12207. for ac_func in vprintf
  12208. do :
  12209. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12210. if test "x$ac_cv_func_vprintf" = xyes; then :
  12211. cat >>confdefs.h <<_ACEOF
  12212. #define HAVE_VPRINTF 1
  12213. _ACEOF
  12214. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12215. if test "x$ac_cv_func__doprnt" = xyes; then :
  12216. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12217. fi
  12218. fi
  12219. done
  12220. for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob htonll ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap ntohll newlocale ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv utime vasprintf getpeereid sysctl swapctl
  12221. do :
  12222. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12223. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12224. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12225. cat >>confdefs.h <<_ACEOF
  12226. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12227. _ACEOF
  12228. fi
  12229. done
  12230. # NOTE: we use AC_CHECK_LIB to get -lm into the arguments for later checks,
  12231. # so that AC_CHECK_FUNCS can detect functions in that library.
  12232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  12233. $as_echo_n "checking for sqrt in -lm... " >&6; }
  12234. if ${ac_cv_lib_m_sqrt+:} false; then :
  12235. $as_echo_n "(cached) " >&6
  12236. else
  12237. ac_check_lib_save_LIBS=$LIBS
  12238. LIBS="-lm $LIBS"
  12239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12240. /* end confdefs.h. */
  12241. /* Override any GCC internal prototype to avoid an error.
  12242. Use char because int might match the return type of a GCC
  12243. builtin and then its argument prototype would still apply. */
  12244. #ifdef __cplusplus
  12245. extern "C"
  12246. #endif
  12247. char sqrt ();
  12248. int
  12249. main ()
  12250. {
  12251. return sqrt ();
  12252. ;
  12253. return 0;
  12254. }
  12255. _ACEOF
  12256. if ac_fn_c_try_link "$LINENO"; then :
  12257. ac_cv_lib_m_sqrt=yes
  12258. else
  12259. ac_cv_lib_m_sqrt=no
  12260. fi
  12261. rm -f core conftest.err conftest.$ac_objext \
  12262. conftest$ac_exeext conftest.$ac_ext
  12263. LIBS=$ac_check_lib_save_LIBS
  12264. fi
  12265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  12266. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  12267. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  12268. cat >>confdefs.h <<_ACEOF
  12269. #define HAVE_LIBM 1
  12270. _ACEOF
  12271. LIBS="-lm $LIBS"
  12272. fi
  12273. # BSD might not have exp2, and/or log2
  12274. for ac_func in exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round roundf trunc floor ceil
  12275. do :
  12276. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12277. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12278. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12279. cat >>confdefs.h <<_ACEOF
  12280. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12281. _ACEOF
  12282. fi
  12283. done
  12284. # Certain architectures don't really have long double, even though
  12285. # AC_CHECK_FUNCS would otherwise find the following functions.
  12286. if test "x${ac_cv_type_long_double_wider}" = "xyes" ; then
  12287. for ac_func in exp2l log2l exp10l log10l sinl cosl tanl asinl acosl atanl atan2l powl sqrtl rintl expl logl remainderl fmodl roundl truncl floorl ceill
  12288. do :
  12289. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12290. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12291. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12292. cat >>confdefs.h <<_ACEOF
  12293. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12294. _ACEOF
  12295. fi
  12296. done
  12297. fi
  12298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLONG_MAX in limits.h" >&5
  12299. $as_echo_n "checking for LLONG_MAX in limits.h... " >&6; }
  12300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12301. /* end confdefs.h. */
  12302. #include <limits.h>
  12303. int
  12304. main ()
  12305. {
  12306. long long foo = LLONG_MAX
  12307. ;
  12308. return 0;
  12309. }
  12310. _ACEOF
  12311. if ac_fn_c_try_link "$LINENO"; then :
  12312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12313. $as_echo "yes" >&6; }
  12314. $as_echo "#define HAVE_LLONG_MAX 1" >>confdefs.h
  12315. else
  12316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12317. $as_echo "no" >&6; }
  12318. fi
  12319. rm -f core conftest.err conftest.$ac_objext \
  12320. conftest$ac_exeext conftest.$ac_ext
  12321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timersub in time.h" >&5
  12322. $as_echo_n "checking for timersub in time.h... " >&6; }
  12323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12324. /* end confdefs.h. */
  12325. #include <sys/time.h>
  12326. int
  12327. main ()
  12328. {
  12329. struct timeval *a; timersub(a, a, a);
  12330. ;
  12331. return 0;
  12332. }
  12333. _ACEOF
  12334. if ac_fn_c_try_link "$LINENO"; then :
  12335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12336. $as_echo "yes" >&6; }
  12337. $as_echo "#define HAVE_TIMERSUB 1" >>confdefs.h
  12338. else
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12340. $as_echo "no" >&6; }
  12341. fi
  12342. rm -f core conftest.err conftest.$ac_objext \
  12343. conftest$ac_exeext conftest.$ac_ext
  12344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of GNU ld that supports the --dynamic-list flag" >&5
  12345. $as_echo_n "checking for a version of GNU ld that supports the --dynamic-list flag... " >&6; }
  12346. old_LDFLAGS=${LDFLAGS}
  12347. cat >conftest.dynamics <<_ACEOF
  12348. {
  12349. *ast_*;
  12350. };
  12351. _ACEOF
  12352. LDFLAGS="${LDFLAGS} -Wl,--dynamic-list,conftest.dynamics"
  12353. PBX_DYNAMIC_LIST=0
  12354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12355. /* end confdefs.h. */
  12356. int
  12357. main ()
  12358. {
  12359. ;
  12360. return 0;
  12361. }
  12362. _ACEOF
  12363. if ac_fn_c_try_link "$LINENO"; then :
  12364. PBX_DYNAMIC_LIST=1
  12365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12366. $as_echo "yes" >&6; }
  12367. else
  12368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12369. $as_echo "no" >&6; }
  12370. fi
  12371. rm -f core conftest.err conftest.$ac_objext \
  12372. conftest$ac_exeext conftest.$ac_ext
  12373. LDFLAGS=${old_LDFLAGS}
  12374. rm -f conftest.dynamics
  12375. ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  12376. if test "x$ac_cv_header_sys_poll_h" = xyes; then :
  12377. HAS_POLL=1
  12378. $as_echo "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  12379. fi
  12380. # Check whether --enable-internal-poll was given.
  12381. if test "${enable_internal_poll+set}" = set; then :
  12382. enableval=$enable_internal_poll; case "${enableval}" in
  12383. y|ye|yes) HAS_POLL="";;
  12384. n|no) HAS_POLL="${HAS_POLL}" ;;
  12385. *) as_fn_error $? "bad value ${enableval} for --enable-internal-poll" "$LINENO" 5 ;;
  12386. esac
  12387. fi
  12388. # Check whether --enable-asteriskssl was given.
  12389. if test "${enable_asteriskssl+set}" = set; then :
  12390. enableval=$enable_asteriskssl; case "${enableval}" in
  12391. y|ye|yes) AST_ASTERISKSSL=yes ;;
  12392. n|no) AST_ASTERISKSSL=no ;;
  12393. *) as_fn_error $? "bad value ${enableval} for --disable-asteriskssl" "$LINENO" 5 ;;
  12394. esac
  12395. else
  12396. AST_ASTERISKSSL=yes
  12397. fi
  12398. # https support (in main/http.c) uses funopen on BSD systems,
  12399. # fopencookie on linux
  12400. for ac_func in funopen fopencookie
  12401. do :
  12402. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12403. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12404. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12405. cat >>confdefs.h <<_ACEOF
  12406. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12407. _ACEOF
  12408. fi
  12409. done
  12410. for ac_func in inet_aton
  12411. do :
  12412. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  12413. if test "x$ac_cv_func_inet_aton" = xyes; then :
  12414. cat >>confdefs.h <<_ACEOF
  12415. #define HAVE_INET_ATON 1
  12416. _ACEOF
  12417. fi
  12418. done
  12419. # check if we have IP_PKTINFO constant defined
  12420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO" >&5
  12421. $as_echo_n "checking for IP_PKTINFO... " >&6; }
  12422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12423. /* end confdefs.h. */
  12424. #include <netinet/in.h>
  12425. int
  12426. main ()
  12427. {
  12428. int pi = IP_PKTINFO;
  12429. ;
  12430. return 0;
  12431. }
  12432. _ACEOF
  12433. if ac_fn_c_try_link "$LINENO"; then :
  12434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12435. $as_echo "yes" >&6; }
  12436. $as_echo "#define HAVE_PKTINFO 1" >>confdefs.h
  12437. else
  12438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12439. $as_echo "no" >&6; }
  12440. fi
  12441. rm -f core conftest.err conftest.$ac_objext \
  12442. conftest$ac_exeext conftest.$ac_ext
  12443. # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
  12445. $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
  12446. if ${ac_cv_search_gethostbyname_r+:} false; then :
  12447. $as_echo_n "(cached) " >&6
  12448. else
  12449. ac_func_search_save_LIBS=$LIBS
  12450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12451. /* end confdefs.h. */
  12452. /* Override any GCC internal prototype to avoid an error.
  12453. Use char because int might match the return type of a GCC
  12454. builtin and then its argument prototype would still apply. */
  12455. #ifdef __cplusplus
  12456. extern "C"
  12457. #endif
  12458. char gethostbyname_r ();
  12459. int
  12460. main ()
  12461. {
  12462. return gethostbyname_r ();
  12463. ;
  12464. return 0;
  12465. }
  12466. _ACEOF
  12467. for ac_lib in '' socket nsl; do
  12468. if test -z "$ac_lib"; then
  12469. ac_res="none required"
  12470. else
  12471. ac_res=-l$ac_lib
  12472. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12473. fi
  12474. if ac_fn_c_try_link "$LINENO"; then :
  12475. ac_cv_search_gethostbyname_r=$ac_res
  12476. fi
  12477. rm -f core conftest.err conftest.$ac_objext \
  12478. conftest$ac_exeext
  12479. if ${ac_cv_search_gethostbyname_r+:} false; then :
  12480. break
  12481. fi
  12482. done
  12483. if ${ac_cv_search_gethostbyname_r+:} false; then :
  12484. else
  12485. ac_cv_search_gethostbyname_r=no
  12486. fi
  12487. rm conftest.$ac_ext
  12488. LIBS=$ac_func_search_save_LIBS
  12489. fi
  12490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
  12491. $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
  12492. ac_res=$ac_cv_search_gethostbyname_r
  12493. if test "$ac_res" != no; then :
  12494. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12495. fi
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 6 arguments" >&5
  12497. $as_echo_n "checking for gethostbyname_r with 6 arguments... " >&6; }
  12498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12499. /* end confdefs.h. */
  12500. #include <stdlib.h>
  12501. #include <netdb.h>
  12502. int
  12503. main ()
  12504. {
  12505. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
  12506. ;
  12507. return 0;
  12508. }
  12509. _ACEOF
  12510. if ac_fn_c_try_link "$LINENO"; then :
  12511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12512. $as_echo "yes" >&6; }
  12513. $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  12514. else
  12515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12516. $as_echo "no" >&6; }
  12517. fi
  12518. rm -f core conftest.err conftest.$ac_objext \
  12519. conftest$ac_exeext conftest.$ac_ext
  12520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 5 arguments" >&5
  12521. $as_echo_n "checking for gethostbyname_r with 5 arguments... " >&6; }
  12522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12523. /* end confdefs.h. */
  12524. #include <stdlib.h>
  12525. #include <netdb.h>
  12526. int
  12527. main ()
  12528. {
  12529. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
  12530. ;
  12531. return 0;
  12532. }
  12533. _ACEOF
  12534. if ac_fn_c_try_link "$LINENO"; then :
  12535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12536. $as_echo "yes" >&6; }
  12537. $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  12538. else
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12540. $as_echo "no" >&6; }
  12541. fi
  12542. rm -f core conftest.err conftest.$ac_objext \
  12543. conftest$ac_exeext conftest.$ac_ext
  12544. ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
  12545. if test "x$ac_cv_header_byteswap_h" = xyes; then :
  12546. cat >>confdefs.h <<_ACEOF
  12547. #define HAVE_BYTESWAP_H 1
  12548. _ACEOF
  12549. fi
  12550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
  12551. $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  12552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12553. /* end confdefs.h. */
  12554. #include <sys/endian.h>
  12555. int
  12556. main ()
  12557. {
  12558. int a = 1; int b = __swap16(a);
  12559. ;
  12560. return 0;
  12561. }
  12562. _ACEOF
  12563. if ac_fn_c_try_link "$LINENO"; then :
  12564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12565. $as_echo "yes" >&6; }
  12566. $as_echo "#define HAVE_SYS_ENDIAN_SWAP16 1" >>confdefs.h
  12567. else
  12568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12569. $as_echo "no" >&6; }
  12570. fi
  12571. rm -f core conftest.err conftest.$ac_objext \
  12572. conftest$ac_exeext conftest.$ac_ext
  12573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
  12574. $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  12575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12576. /* end confdefs.h. */
  12577. #include <sys/endian.h>
  12578. int
  12579. main ()
  12580. {
  12581. int a = 1; int b = bswap16(a);
  12582. ;
  12583. return 0;
  12584. }
  12585. _ACEOF
  12586. if ac_fn_c_try_link "$LINENO"; then :
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12588. $as_echo "yes" >&6; }
  12589. $as_echo "#define HAVE_SYS_ENDIAN_BSWAP16 1" >>confdefs.h
  12590. else
  12591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12592. $as_echo "no" >&6; }
  12593. fi
  12594. rm -f core conftest.err conftest.$ac_objext \
  12595. conftest$ac_exeext conftest.$ac_ext
  12596. if test "${cross_compiling}" = "no";
  12597. then
  12598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
  12599. $as_echo_n "checking for /dev/urandom... " >&6; }
  12600. if ${ac_cv_file__dev_urandom+:} false; then :
  12601. $as_echo_n "(cached) " >&6
  12602. else
  12603. test "$cross_compiling" = yes &&
  12604. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  12605. if test -r "/dev/urandom"; then
  12606. ac_cv_file__dev_urandom=yes
  12607. else
  12608. ac_cv_file__dev_urandom=no
  12609. fi
  12610. fi
  12611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
  12612. $as_echo "$ac_cv_file__dev_urandom" >&6; }
  12613. if test "x$ac_cv_file__dev_urandom" = xyes; then :
  12614. $as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h
  12615. fi
  12616. fi
  12617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in locale.h" >&5
  12618. $as_echo_n "checking for locale_t in locale.h... " >&6; }
  12619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12620. /* end confdefs.h. */
  12621. #include <locale.h>
  12622. int
  12623. main ()
  12624. {
  12625. locale_t lt = NULL
  12626. ;
  12627. return 0;
  12628. }
  12629. _ACEOF
  12630. if ac_fn_c_try_link "$LINENO"; then :
  12631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12632. $as_echo "yes" >&6; }
  12633. $as_echo "#define HAVE_LOCALE_T_IN_LOCALE_H 1" >>confdefs.h
  12634. else
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12636. $as_echo "no" >&6; }
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in xlocale.h" >&5
  12638. $as_echo_n "checking for locale_t in xlocale.h... " >&6; }
  12639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12640. /* end confdefs.h. */
  12641. #include <xlocale.h>
  12642. int
  12643. main ()
  12644. {
  12645. locale_t lt = NULL
  12646. ;
  12647. return 0;
  12648. }
  12649. _ACEOF
  12650. if ac_fn_c_try_link "$LINENO"; then :
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12652. $as_echo "yes" >&6; }
  12653. $as_echo "#define HAVE_LOCALE_T_IN_XLOCALE_H 1" >>confdefs.h
  12654. else
  12655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12656. $as_echo "no" >&6; }
  12657. fi
  12658. rm -f core conftest.err conftest.$ac_objext \
  12659. conftest$ac_exeext conftest.$ac_ext
  12660. fi
  12661. rm -f core conftest.err conftest.$ac_objext \
  12662. conftest$ac_exeext conftest.$ac_ext
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_EVTONLY in fcntl.h" >&5
  12664. $as_echo_n "checking for O_EVTONLY in fcntl.h... " >&6; }
  12665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12666. /* end confdefs.h. */
  12667. #include <fcntl.h>
  12668. int
  12669. main ()
  12670. {
  12671. int a = O_EVTONLY;
  12672. ;
  12673. return 0;
  12674. }
  12675. _ACEOF
  12676. if ac_fn_c_try_link "$LINENO"; then :
  12677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12678. $as_echo "yes" >&6; }
  12679. $as_echo "#define HAVE_O_EVTONLY 1" >>confdefs.h
  12680. else
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12682. $as_echo "no" >&6; }
  12683. fi
  12684. rm -f core conftest.err conftest.$ac_objext \
  12685. conftest$ac_exeext conftest.$ac_ext
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_SYMLINK in fcntl.h" >&5
  12687. $as_echo_n "checking for O_SYMLINK in fcntl.h... " >&6; }
  12688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12689. /* end confdefs.h. */
  12690. #include <fcntl.h>
  12691. int
  12692. main ()
  12693. {
  12694. int a = O_SYMLINK;
  12695. ;
  12696. return 0;
  12697. }
  12698. _ACEOF
  12699. if ac_fn_c_try_link "$LINENO"; then :
  12700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12701. $as_echo "yes" >&6; }
  12702. $as_echo "#define HAVE_O_SYMLINK 1" >>confdefs.h
  12703. else
  12704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12705. $as_echo "no" >&6; }
  12706. fi
  12707. rm -f core conftest.err conftest.$ac_objext \
  12708. conftest$ac_exeext conftest.$ac_ext
  12709. if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
  12710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
  12711. $as_echo_n "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... " >&6; }
  12712. saved_cppflags="${CPPFLAGS}"
  12713. if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
  12714. PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
  12715. fi
  12716. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
  12717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12718. /* end confdefs.h. */
  12719. #include <pthread.h>
  12720. int
  12721. main ()
  12722. {
  12723. #if defined(PTHREAD_RWLOCK_INITIALIZER)
  12724. int foo = 0;
  12725. #else
  12726. int foo = bar;
  12727. #endif
  12728. 0
  12729. ;
  12730. return 0;
  12731. }
  12732. _ACEOF
  12733. if ac_fn_c_try_compile "$LINENO"; then :
  12734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12735. $as_echo "yes" >&6; }
  12736. PBX_PTHREAD_RWLOCK_INITIALIZER=1
  12737. $as_echo "#define HAVE_PTHREAD_RWLOCK_INITIALIZER 1" >>confdefs.h
  12738. else
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12740. $as_echo "no" >&6; }
  12741. fi
  12742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12743. CPPFLAGS="${saved_cppflags}"
  12744. fi
  12745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
  12746. $as_echo_n "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... " >&6; }
  12747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12748. /* end confdefs.h. */
  12749. #include <pthread.h>
  12750. int
  12751. main ()
  12752. {
  12753. int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
  12754. ;
  12755. return 0;
  12756. }
  12757. _ACEOF
  12758. if ac_fn_c_try_link "$LINENO"; then :
  12759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12760. $as_echo "yes" >&6; }
  12761. $as_echo "#define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1" >>confdefs.h
  12762. else
  12763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12764. $as_echo "no" >&6; }
  12765. fi
  12766. rm -f core conftest.err conftest.$ac_objext \
  12767. conftest$ac_exeext conftest.$ac_ext
  12768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
  12769. $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... " >&6; }
  12770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12771. /* end confdefs.h. */
  12772. #include <pthread.h>
  12773. int
  12774. main ()
  12775. {
  12776. int a = PTHREAD_MUTEX_RECURSIVE_NP;
  12777. ;
  12778. return 0;
  12779. }
  12780. _ACEOF
  12781. if ac_fn_c_try_link "$LINENO"; then :
  12782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12783. $as_echo "yes" >&6; }
  12784. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
  12785. else
  12786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12787. $as_echo "no" >&6; }
  12788. fi
  12789. rm -f core conftest.err conftest.$ac_objext \
  12790. conftest$ac_exeext conftest.$ac_ext
  12791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_timedwrlock() in pthread.h" >&5
  12792. $as_echo_n "checking for pthread_rwlock_timedwrlock() in pthread.h... " >&6; }
  12793. save_LIBS="$LIBS"
  12794. save_CFLAGS="$CFLAGS"
  12795. LIBS="$PTHREAD_LIBS $LIBS"
  12796. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12798. /* end confdefs.h. */
  12799. #include <pthread.h>
  12800. #include <time.h>
  12801. int
  12802. main ()
  12803. {
  12804. pthread_rwlock_t foo; struct timespec bar; pthread_rwlock_timedwrlock(&foo, &bar)
  12805. ;
  12806. return 0;
  12807. }
  12808. _ACEOF
  12809. if ac_fn_c_try_link "$LINENO"; then :
  12810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12811. $as_echo "yes" >&6; }
  12812. ac_cv_pthread_rwlock_timedwrlock="yes"
  12813. else
  12814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12815. $as_echo "no" >&6; }
  12816. ac_cv_pthread_rwlock_timedwrlock="no"
  12817. fi
  12818. rm -f core conftest.err conftest.$ac_objext \
  12819. conftest$ac_exeext conftest.$ac_ext
  12820. LIBS="$save_LIBS"
  12821. CFLAGS="$save_CFLAGS"
  12822. if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then
  12823. $as_echo "#define HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 1" >>confdefs.h
  12824. fi
  12825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_ONCE_INIT needs braces" >&5
  12826. $as_echo_n "checking if PTHREAD_ONCE_INIT needs braces... " >&6; }
  12827. saved_CFLAGS="${CFLAGS}"
  12828. CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
  12829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12830. /* end confdefs.h. */
  12831. #include <pthread.h>
  12832. void empty(){}
  12833. int
  12834. main ()
  12835. {
  12836. pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);
  12837. ;
  12838. return 0;
  12839. }
  12840. _ACEOF
  12841. if ac_fn_c_try_compile "$LINENO"; then :
  12842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12843. $as_echo "no" >&6; }
  12844. ac_cv_pthread_once_needsbraces="no"
  12845. else
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12847. $as_echo "yes" >&6; }
  12848. ac_cv_pthread_once_needsbraces="yes"
  12849. fi
  12850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12851. CFLAGS="${saved_CFLAGS}"
  12852. if test "${ac_cv_pthread_once_needsbraces}" = "yes"; then
  12853. $as_echo "#define PTHREAD_ONCE_INIT_NEEDS_BRACES 1" >>confdefs.h
  12854. fi
  12855. if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
  12856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
  12857. $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... " >&6; }
  12858. saved_cppflags="${CPPFLAGS}"
  12859. if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
  12860. PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
  12861. fi
  12862. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
  12863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12864. /* end confdefs.h. */
  12865. #include <pthread.h>
  12866. int
  12867. main ()
  12868. {
  12869. #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
  12870. int foo = 0;
  12871. #else
  12872. int foo = bar;
  12873. #endif
  12874. 0
  12875. ;
  12876. return 0;
  12877. }
  12878. _ACEOF
  12879. if ac_fn_c_try_compile "$LINENO"; then :
  12880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12881. $as_echo "yes" >&6; }
  12882. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
  12883. $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
  12884. else
  12885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12886. $as_echo "no" >&6; }
  12887. fi
  12888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12889. CPPFLAGS="${saved_cppflags}"
  12890. fi
  12891. # Can we compare a mutex to its initial value?
  12892. # Generally yes on OpenBSD/FreeBSD and no on Mac OS X.
  12893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compare a mutex to its initial value" >&5
  12894. $as_echo_n "checking whether we can compare a mutex to its initial value... " >&6; }
  12895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12896. /* end confdefs.h. */
  12897. #include <pthread.h>
  12898. int
  12899. main ()
  12900. {
  12901. pthread_mutex_t lock;
  12902. if ((lock) != ((pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER)) {
  12903. return 0;
  12904. }
  12905. return 0
  12906. ;
  12907. return 0;
  12908. }
  12909. _ACEOF
  12910. if ac_fn_c_try_link "$LINENO"; then :
  12911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12912. $as_echo "yes" >&6; }
  12913. $as_echo "#define CAN_COMPARE_MUTEX_TO_INIT_VALUE 1" >>confdefs.h
  12914. else
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12916. $as_echo "no" >&6; }
  12917. fi
  12918. rm -f core conftest.err conftest.$ac_objext \
  12919. conftest$ac_exeext conftest.$ac_ext
  12920. #if test "${cross_compiling}" = "no";
  12921. #then
  12922. #AC_MSG_CHECKING(for working epoll support)
  12923. #AC_LINK_IFELSE(
  12924. #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
  12925. # if (res < 0)
  12926. # return 1;
  12927. # close (res);
  12928. # return 0;]),
  12929. #AC_MSG_RESULT(yes)
  12930. #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
  12931. #AC_MSG_RESULT(no)
  12932. #)
  12933. #fi
  12934. # for FreeBSD thr_self
  12935. for ac_header in sys/thr.h
  12936. do :
  12937. ac_fn_c_check_header_mongrel "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "$ac_includes_default"
  12938. if test "x$ac_cv_header_sys_thr_h" = xyes; then :
  12939. cat >>confdefs.h <<_ACEOF
  12940. #define HAVE_SYS_THR_H 1
  12941. _ACEOF
  12942. fi
  12943. done
  12944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler atomic operations" >&5
  12945. $as_echo_n "checking for compiler atomic operations... " >&6; }
  12946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12947. /* end confdefs.h. */
  12948. int
  12949. main ()
  12950. {
  12951. int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
  12952. ;
  12953. return 0;
  12954. }
  12955. _ACEOF
  12956. if ac_fn_c_try_link "$LINENO"; then :
  12957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12958. $as_echo "yes" >&6; }
  12959. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  12960. else
  12961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12962. $as_echo "no" >&6; }
  12963. fi
  12964. rm -f core conftest.err conftest.$ac_objext \
  12965. conftest$ac_exeext conftest.$ac_ext
  12966. # glibc, AFAIK, is the only C library that makes printing a NULL to a string safe.
  12967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system printf is NULL-safe." >&5
  12968. $as_echo_n "checking if your system printf is NULL-safe.... " >&6; }
  12969. if test "$cross_compiling" = yes; then :
  12970. # It's unlikely an embedded system will have this.
  12971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  12972. $as_echo "unknown" >&6; }
  12973. else
  12974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12975. /* end confdefs.h. */
  12976. #include <stdio.h>
  12977. int
  12978. main ()
  12979. {
  12980. printf("%s", NULL)
  12981. ;
  12982. return 0;
  12983. }
  12984. _ACEOF
  12985. if ac_fn_c_try_run "$LINENO"; then :
  12986. $as_echo "#define HAVE_NULLSAFE_PRINTF 1" >>confdefs.h
  12987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12988. $as_echo "yes" >&6; }
  12989. else
  12990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12991. $as_echo "no" >&6; }
  12992. fi
  12993. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12994. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12995. fi
  12996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can increase the maximum select-able file descriptor" >&5
  12997. $as_echo_n "checking if we can increase the maximum select-able file descriptor... " >&6; }
  12998. if test "$cross_compiling" = yes; then :
  12999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
  13000. $as_echo "cross-compile" >&6; }
  13001. else
  13002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13003. /* end confdefs.h. */
  13004. #include <stdio.h>
  13005. #include <sys/select.h>
  13006. #include <sys/time.h>
  13007. #include <sys/resource.h>
  13008. #include <string.h>
  13009. #include <errno.h>
  13010. #include <stdlib.h>
  13011. #include <sys/types.h>
  13012. #include <sys/stat.h>
  13013. #include <fcntl.h>
  13014. #include <unistd.h>
  13015. int
  13016. main ()
  13017. {
  13018. struct rlimit rlim = { FD_SETSIZE * 2, FD_SETSIZE * 2 };
  13019. int fd0, fd1;
  13020. struct timeval tv = { 0, };
  13021. struct ast_fdset { long fds_bits[[1024]]; } fds = { { 0, } };
  13022. if (setrlimit(RLIMIT_NOFILE, &rlim)) { exit(1); }
  13023. if ((fd0 = open("/dev/null", O_RDONLY)) < 0) { exit(1); }
  13024. if (dup2(fd0, (fd1 = FD_SETSIZE + 1)) < 0) { exit(1); }
  13025. FD_SET(fd0, (fd_set *) &fds);
  13026. FD_SET(fd1, (fd_set *) &fds);
  13027. if (select(FD_SETSIZE + 2, (fd_set *) &fds, NULL, NULL, &tv) < 0) { exit(1); }
  13028. exit(0)
  13029. ;
  13030. return 0;
  13031. }
  13032. _ACEOF
  13033. if ac_fn_c_try_run "$LINENO"; then :
  13034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13035. $as_echo "yes" >&6; }
  13036. $as_echo "#define HAVE_VARIABLE_FDSET 1" >>confdefs.h
  13037. else
  13038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13039. $as_echo "no" >&6; }
  13040. fi
  13041. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13042. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13043. fi
  13044. if test "${ac_cv_have_variable_fdset}x" = "0x"; then
  13045. if test "$cross_compiling" = yes; then :
  13046. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13047. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13048. as_fn_error $? "cannot run test program while cross compiling
  13049. See \`config.log' for more details" "$LINENO" 5; }
  13050. else
  13051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13052. /* end confdefs.h. */
  13053. #include <unistd.h>
  13054. #include <sys/types.h>
  13055. #include <stdlib.h>
  13056. int
  13057. main ()
  13058. {
  13059. if (getuid() != 0) { exit(1); }
  13060. ;
  13061. return 0;
  13062. }
  13063. _ACEOF
  13064. if ac_fn_c_try_run "$LINENO"; then :
  13065. $as_echo "#define CONFIGURE_RAN_AS_ROOT 1" >>confdefs.h
  13066. fi
  13067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13068. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13069. fi
  13070. fi
  13071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute pure' support" >&5
  13072. $as_echo_n "checking for compiler 'attribute pure' support... " >&6; }
  13073. saved_CFLAGS="$CFLAGS"
  13074. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13075. if test "x" = "x"
  13076. then
  13077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13078. /* end confdefs.h. */
  13079. void __attribute__((pure)) *test(void *muffin, ...) {return (void *) 0;}
  13080. int
  13081. main ()
  13082. {
  13083. ;
  13084. return 0;
  13085. }
  13086. _ACEOF
  13087. if ac_fn_c_try_compile "$LINENO"; then :
  13088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13089. $as_echo "yes" >&6; }
  13090. cat >>confdefs.h <<_ACEOF
  13091. #define HAVE_ATTRIBUTE_pure 1
  13092. _ACEOF
  13093. else
  13094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13095. $as_echo "no" >&6; }
  13096. fi
  13097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13098. else
  13099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13100. /* end confdefs.h. */
  13101. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13102. int
  13103. main ()
  13104. {
  13105. ;
  13106. return 0;
  13107. }
  13108. _ACEOF
  13109. if ac_fn_c_try_compile "$LINENO"; then :
  13110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13111. $as_echo "yes" >&6; }
  13112. cat >>confdefs.h <<_ACEOF
  13113. #define HAVE_ATTRIBUTE_pure 1
  13114. _ACEOF
  13115. else
  13116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13117. $as_echo "no" >&6; }
  13118. fi
  13119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13120. fi
  13121. CFLAGS="$saved_CFLAGS"
  13122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute malloc' support" >&5
  13123. $as_echo_n "checking for compiler 'attribute malloc' support... " >&6; }
  13124. saved_CFLAGS="$CFLAGS"
  13125. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13126. if test "x" = "x"
  13127. then
  13128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13129. /* end confdefs.h. */
  13130. void __attribute__((malloc)) *test(void *muffin, ...) {return (void *) 0;}
  13131. int
  13132. main ()
  13133. {
  13134. ;
  13135. return 0;
  13136. }
  13137. _ACEOF
  13138. if ac_fn_c_try_compile "$LINENO"; then :
  13139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13140. $as_echo "yes" >&6; }
  13141. cat >>confdefs.h <<_ACEOF
  13142. #define HAVE_ATTRIBUTE_malloc 1
  13143. _ACEOF
  13144. else
  13145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13146. $as_echo "no" >&6; }
  13147. fi
  13148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13149. else
  13150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13151. /* end confdefs.h. */
  13152. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13153. int
  13154. main ()
  13155. {
  13156. ;
  13157. return 0;
  13158. }
  13159. _ACEOF
  13160. if ac_fn_c_try_compile "$LINENO"; then :
  13161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13162. $as_echo "yes" >&6; }
  13163. cat >>confdefs.h <<_ACEOF
  13164. #define HAVE_ATTRIBUTE_malloc 1
  13165. _ACEOF
  13166. else
  13167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13168. $as_echo "no" >&6; }
  13169. fi
  13170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13171. fi
  13172. CFLAGS="$saved_CFLAGS"
  13173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute const' support" >&5
  13174. $as_echo_n "checking for compiler 'attribute const' support... " >&6; }
  13175. saved_CFLAGS="$CFLAGS"
  13176. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13177. if test "x" = "x"
  13178. then
  13179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13180. /* end confdefs.h. */
  13181. void __attribute__((const)) *test(void *muffin, ...) {return (void *) 0;}
  13182. int
  13183. main ()
  13184. {
  13185. ;
  13186. return 0;
  13187. }
  13188. _ACEOF
  13189. if ac_fn_c_try_compile "$LINENO"; then :
  13190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13191. $as_echo "yes" >&6; }
  13192. cat >>confdefs.h <<_ACEOF
  13193. #define HAVE_ATTRIBUTE_const 1
  13194. _ACEOF
  13195. else
  13196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13197. $as_echo "no" >&6; }
  13198. fi
  13199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13200. else
  13201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13202. /* end confdefs.h. */
  13203. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13204. int
  13205. main ()
  13206. {
  13207. ;
  13208. return 0;
  13209. }
  13210. _ACEOF
  13211. if ac_fn_c_try_compile "$LINENO"; then :
  13212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13213. $as_echo "yes" >&6; }
  13214. cat >>confdefs.h <<_ACEOF
  13215. #define HAVE_ATTRIBUTE_const 1
  13216. _ACEOF
  13217. else
  13218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13219. $as_echo "no" >&6; }
  13220. fi
  13221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13222. fi
  13223. CFLAGS="$saved_CFLAGS"
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute unused' support" >&5
  13225. $as_echo_n "checking for compiler 'attribute unused' support... " >&6; }
  13226. saved_CFLAGS="$CFLAGS"
  13227. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13228. if test "x" = "x"
  13229. then
  13230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13231. /* end confdefs.h. */
  13232. void __attribute__((unused)) *test(void *muffin, ...) {return (void *) 0;}
  13233. int
  13234. main ()
  13235. {
  13236. ;
  13237. return 0;
  13238. }
  13239. _ACEOF
  13240. if ac_fn_c_try_compile "$LINENO"; then :
  13241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13242. $as_echo "yes" >&6; }
  13243. cat >>confdefs.h <<_ACEOF
  13244. #define HAVE_ATTRIBUTE_unused 1
  13245. _ACEOF
  13246. else
  13247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13248. $as_echo "no" >&6; }
  13249. fi
  13250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13251. else
  13252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13253. /* end confdefs.h. */
  13254. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13255. int
  13256. main ()
  13257. {
  13258. ;
  13259. return 0;
  13260. }
  13261. _ACEOF
  13262. if ac_fn_c_try_compile "$LINENO"; then :
  13263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13264. $as_echo "yes" >&6; }
  13265. cat >>confdefs.h <<_ACEOF
  13266. #define HAVE_ATTRIBUTE_unused 1
  13267. _ACEOF
  13268. else
  13269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13270. $as_echo "no" >&6; }
  13271. fi
  13272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13273. fi
  13274. CFLAGS="$saved_CFLAGS"
  13275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute always_inline' support" >&5
  13276. $as_echo_n "checking for compiler 'attribute always_inline' support... " >&6; }
  13277. saved_CFLAGS="$CFLAGS"
  13278. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13279. if test "x" = "x"
  13280. then
  13281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13282. /* end confdefs.h. */
  13283. void __attribute__((always_inline)) *test(void *muffin, ...) {return (void *) 0;}
  13284. int
  13285. main ()
  13286. {
  13287. ;
  13288. return 0;
  13289. }
  13290. _ACEOF
  13291. if ac_fn_c_try_compile "$LINENO"; then :
  13292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13293. $as_echo "yes" >&6; }
  13294. cat >>confdefs.h <<_ACEOF
  13295. #define HAVE_ATTRIBUTE_always_inline 1
  13296. _ACEOF
  13297. else
  13298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13299. $as_echo "no" >&6; }
  13300. fi
  13301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13302. else
  13303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13304. /* end confdefs.h. */
  13305. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13306. int
  13307. main ()
  13308. {
  13309. ;
  13310. return 0;
  13311. }
  13312. _ACEOF
  13313. if ac_fn_c_try_compile "$LINENO"; then :
  13314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13315. $as_echo "yes" >&6; }
  13316. cat >>confdefs.h <<_ACEOF
  13317. #define HAVE_ATTRIBUTE_always_inline 1
  13318. _ACEOF
  13319. else
  13320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13321. $as_echo "no" >&6; }
  13322. fi
  13323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13324. fi
  13325. CFLAGS="$saved_CFLAGS"
  13326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute deprecated' support" >&5
  13327. $as_echo_n "checking for compiler 'attribute deprecated' support... " >&6; }
  13328. saved_CFLAGS="$CFLAGS"
  13329. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13330. if test "x" = "x"
  13331. then
  13332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13333. /* end confdefs.h. */
  13334. void __attribute__((deprecated)) *test(void *muffin, ...) {return (void *) 0;}
  13335. int
  13336. main ()
  13337. {
  13338. ;
  13339. return 0;
  13340. }
  13341. _ACEOF
  13342. if ac_fn_c_try_compile "$LINENO"; then :
  13343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13344. $as_echo "yes" >&6; }
  13345. cat >>confdefs.h <<_ACEOF
  13346. #define HAVE_ATTRIBUTE_deprecated 1
  13347. _ACEOF
  13348. else
  13349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13350. $as_echo "no" >&6; }
  13351. fi
  13352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13353. else
  13354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13355. /* end confdefs.h. */
  13356. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13357. int
  13358. main ()
  13359. {
  13360. ;
  13361. return 0;
  13362. }
  13363. _ACEOF
  13364. if ac_fn_c_try_compile "$LINENO"; then :
  13365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13366. $as_echo "yes" >&6; }
  13367. cat >>confdefs.h <<_ACEOF
  13368. #define HAVE_ATTRIBUTE_deprecated 1
  13369. _ACEOF
  13370. else
  13371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13372. $as_echo "no" >&6; }
  13373. fi
  13374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13375. fi
  13376. CFLAGS="$saved_CFLAGS"
  13377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute sentinel' support" >&5
  13378. $as_echo_n "checking for compiler 'attribute sentinel' support... " >&6; }
  13379. saved_CFLAGS="$CFLAGS"
  13380. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13381. if test "x" = "x"
  13382. then
  13383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13384. /* end confdefs.h. */
  13385. void __attribute__((sentinel)) *test(void *muffin, ...) {return (void *) 0;}
  13386. int
  13387. main ()
  13388. {
  13389. ;
  13390. return 0;
  13391. }
  13392. _ACEOF
  13393. if ac_fn_c_try_compile "$LINENO"; then :
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13395. $as_echo "yes" >&6; }
  13396. cat >>confdefs.h <<_ACEOF
  13397. #define HAVE_ATTRIBUTE_sentinel 1
  13398. _ACEOF
  13399. else
  13400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13401. $as_echo "no" >&6; }
  13402. fi
  13403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13404. else
  13405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13406. /* end confdefs.h. */
  13407. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13408. int
  13409. main ()
  13410. {
  13411. ;
  13412. return 0;
  13413. }
  13414. _ACEOF
  13415. if ac_fn_c_try_compile "$LINENO"; then :
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13417. $as_echo "yes" >&6; }
  13418. cat >>confdefs.h <<_ACEOF
  13419. #define HAVE_ATTRIBUTE_sentinel 1
  13420. _ACEOF
  13421. else
  13422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13423. $as_echo "no" >&6; }
  13424. fi
  13425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13426. fi
  13427. CFLAGS="$saved_CFLAGS"
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute warn_unused_result' support" >&5
  13429. $as_echo_n "checking for compiler 'attribute warn_unused_result' support... " >&6; }
  13430. saved_CFLAGS="$CFLAGS"
  13431. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13432. if test "x" = "x"
  13433. then
  13434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13435. /* end confdefs.h. */
  13436. void __attribute__((warn_unused_result)) *test(void *muffin, ...) {return (void *) 0;}
  13437. int
  13438. main ()
  13439. {
  13440. ;
  13441. return 0;
  13442. }
  13443. _ACEOF
  13444. if ac_fn_c_try_compile "$LINENO"; then :
  13445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13446. $as_echo "yes" >&6; }
  13447. cat >>confdefs.h <<_ACEOF
  13448. #define HAVE_ATTRIBUTE_warn_unused_result 1
  13449. _ACEOF
  13450. else
  13451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13452. $as_echo "no" >&6; }
  13453. fi
  13454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13455. else
  13456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13457. /* end confdefs.h. */
  13458. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13459. int
  13460. main ()
  13461. {
  13462. ;
  13463. return 0;
  13464. }
  13465. _ACEOF
  13466. if ac_fn_c_try_compile "$LINENO"; then :
  13467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13468. $as_echo "yes" >&6; }
  13469. cat >>confdefs.h <<_ACEOF
  13470. #define HAVE_ATTRIBUTE_warn_unused_result 1
  13471. _ACEOF
  13472. else
  13473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13474. $as_echo "no" >&6; }
  13475. fi
  13476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13477. fi
  13478. CFLAGS="$saved_CFLAGS"
  13479. # Support weak symbols on a platform specific basis. The Mac OS X
  13480. # (Darwin) support must be isolated from the other platforms because
  13481. # it has caused other platforms to fail.
  13482. #
  13483. case "${OSARCH}" in
  13484. darwin*)
  13485. # Allow weak symbol support on Darwin platforms only because there
  13486. # is active community support for it.
  13487. # However, Darwin seems to break weak symbols for each new version.
  13488. #
  13489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weak_import' support" >&5
  13490. $as_echo_n "checking for compiler 'attribute weak_import' support... " >&6; }
  13491. saved_CFLAGS="$CFLAGS"
  13492. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13493. PBX_WEAKREF=0
  13494. if test "x" = "x"
  13495. then
  13496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13497. /* end confdefs.h. */
  13498. void __attribute__((weak_import)) *test(void *muffin, ...) {return (void *) 0;}
  13499. int
  13500. main ()
  13501. {
  13502. ;
  13503. return 0;
  13504. }
  13505. _ACEOF
  13506. if ac_fn_c_try_compile "$LINENO"; then :
  13507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13508. $as_echo "yes" >&6; }
  13509. PBX_WEAKREF=1
  13510. cat >>confdefs.h <<_ACEOF
  13511. #define HAVE_ATTRIBUTE_weak_import 1
  13512. _ACEOF
  13513. else
  13514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13515. $as_echo "no" >&6; }
  13516. fi
  13517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13518. else
  13519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13520. /* end confdefs.h. */
  13521. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13522. int
  13523. main ()
  13524. {
  13525. ;
  13526. return 0;
  13527. }
  13528. _ACEOF
  13529. if ac_fn_c_try_compile "$LINENO"; then :
  13530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13531. $as_echo "yes" >&6; }
  13532. PBX_WEAKREF=1
  13533. cat >>confdefs.h <<_ACEOF
  13534. #define HAVE_ATTRIBUTE_weak_import 1
  13535. _ACEOF
  13536. else
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13538. $as_echo "no" >&6; }
  13539. fi
  13540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13541. fi
  13542. CFLAGS="$saved_CFLAGS"
  13543. # Several other platforms including Linux have GCC versions that
  13544. # define the weak attribute. However, this attribute is only
  13545. # setup for use in the code by Darwin.
  13546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weak' support" >&5
  13547. $as_echo_n "checking for compiler 'attribute weak' support... " >&6; }
  13548. saved_CFLAGS="$CFLAGS"
  13549. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13550. PBX_WEAKREF=0
  13551. if test "x" = "x"
  13552. then
  13553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13554. /* end confdefs.h. */
  13555. void __attribute__((weak)) *test(void *muffin, ...) {return (void *) 0;}
  13556. int
  13557. main ()
  13558. {
  13559. ;
  13560. return 0;
  13561. }
  13562. _ACEOF
  13563. if ac_fn_c_try_compile "$LINENO"; then :
  13564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13565. $as_echo "yes" >&6; }
  13566. PBX_WEAKREF=1
  13567. cat >>confdefs.h <<_ACEOF
  13568. #define HAVE_ATTRIBUTE_weak 1
  13569. _ACEOF
  13570. else
  13571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13572. $as_echo "no" >&6; }
  13573. fi
  13574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13575. else
  13576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13577. /* end confdefs.h. */
  13578. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13579. int
  13580. main ()
  13581. {
  13582. ;
  13583. return 0;
  13584. }
  13585. _ACEOF
  13586. if ac_fn_c_try_compile "$LINENO"; then :
  13587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13588. $as_echo "yes" >&6; }
  13589. PBX_WEAKREF=1
  13590. cat >>confdefs.h <<_ACEOF
  13591. #define HAVE_ATTRIBUTE_weak 1
  13592. _ACEOF
  13593. else
  13594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13595. $as_echo "no" >&6; }
  13596. fi
  13597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13598. fi
  13599. CFLAGS="$saved_CFLAGS"
  13600. ;;
  13601. linux-gnu)
  13602. # Primarily support weak symbols on Linux platforms.
  13603. #
  13604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weakref' support" >&5
  13605. $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
  13606. saved_CFLAGS="$CFLAGS"
  13607. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13608. PBX_WEAKREF=0
  13609. if test "xweakref("foo")" = "x"
  13610. then
  13611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13612. /* end confdefs.h. */
  13613. static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
  13614. int
  13615. main ()
  13616. {
  13617. ;
  13618. return 0;
  13619. }
  13620. _ACEOF
  13621. if ac_fn_c_try_compile "$LINENO"; then :
  13622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13623. $as_echo "yes" >&6; }
  13624. PBX_WEAKREF=1
  13625. cat >>confdefs.h <<_ACEOF
  13626. #define HAVE_ATTRIBUTE_weakref 1
  13627. _ACEOF
  13628. else
  13629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13630. $as_echo "no" >&6; }
  13631. fi
  13632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13633. else
  13634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13635. /* end confdefs.h. */
  13636. static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
  13637. int
  13638. main ()
  13639. {
  13640. ;
  13641. return 0;
  13642. }
  13643. _ACEOF
  13644. if ac_fn_c_try_compile "$LINENO"; then :
  13645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13646. $as_echo "yes" >&6; }
  13647. PBX_WEAKREF=1
  13648. cat >>confdefs.h <<_ACEOF
  13649. #define HAVE_ATTRIBUTE_weakref 1
  13650. _ACEOF
  13651. else
  13652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13653. $as_echo "no" >&6; }
  13654. fi
  13655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13656. fi
  13657. CFLAGS="$saved_CFLAGS"
  13658. ;;
  13659. *)
  13660. # Allow weak symbols on other platforms. However, any problems
  13661. # with this feature on other platforms must be fixed by the
  13662. # community.
  13663. #
  13664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weakref' support" >&5
  13665. $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
  13666. saved_CFLAGS="$CFLAGS"
  13667. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13668. PBX_WEAKREF=0
  13669. if test "xweakref("foo")" = "x"
  13670. then
  13671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13672. /* end confdefs.h. */
  13673. static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
  13674. int
  13675. main ()
  13676. {
  13677. ;
  13678. return 0;
  13679. }
  13680. _ACEOF
  13681. if ac_fn_c_try_compile "$LINENO"; then :
  13682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13683. $as_echo "yes" >&6; }
  13684. PBX_WEAKREF=1
  13685. cat >>confdefs.h <<_ACEOF
  13686. #define HAVE_ATTRIBUTE_weakref 1
  13687. _ACEOF
  13688. else
  13689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13690. $as_echo "no" >&6; }
  13691. fi
  13692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13693. else
  13694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13695. /* end confdefs.h. */
  13696. static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
  13697. int
  13698. main ()
  13699. {
  13700. ;
  13701. return 0;
  13702. }
  13703. _ACEOF
  13704. if ac_fn_c_try_compile "$LINENO"; then :
  13705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13706. $as_echo "yes" >&6; }
  13707. PBX_WEAKREF=1
  13708. cat >>confdefs.h <<_ACEOF
  13709. #define HAVE_ATTRIBUTE_weakref 1
  13710. _ACEOF
  13711. else
  13712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13713. $as_echo "no" >&6; }
  13714. fi
  13715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13716. fi
  13717. CFLAGS="$saved_CFLAGS"
  13718. ;;
  13719. esac
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ffunction-sections support" >&5
  13721. $as_echo_n "checking for -ffunction-sections support... " >&6; }
  13722. saved_CFLAGS="${CFLAGS}"
  13723. CFLAGS="${CFLAGS} -ffunction-sections"
  13724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13725. /* end confdefs.h. */
  13726. int
  13727. main ()
  13728. {
  13729. int x = 1;
  13730. ;
  13731. return 0;
  13732. }
  13733. _ACEOF
  13734. if ac_fn_c_try_compile "$LINENO"; then :
  13735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13736. $as_echo "yes" >&6; }
  13737. saved_LDFLAGS="${LDFLAGS}"
  13738. LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
  13739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --gc-sections support" >&5
  13740. $as_echo_n "checking for --gc-sections support... " >&6; }
  13741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13742. /* end confdefs.h. */
  13743. int
  13744. main ()
  13745. {
  13746. int x = 1;
  13747. ;
  13748. return 0;
  13749. }
  13750. _ACEOF
  13751. if ac_fn_c_try_link "$LINENO"; then :
  13752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13753. $as_echo "yes" >&6; }
  13754. GC_CFLAGS="-ffunction-sections"
  13755. GC_LDFLAGS="-Wl,--gc-sections"
  13756. else
  13757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13758. $as_echo "no" >&6; }
  13759. fi
  13760. rm -f core conftest.err conftest.$ac_objext \
  13761. conftest$ac_exeext conftest.$ac_ext
  13762. LDFLAGS="${saved_LDFLAGS}"
  13763. else
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13765. $as_echo "no" >&6; }
  13766. fi
  13767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13768. CFLAGS="${saved_CFLAGS}"
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wdeclaration-after-statement support" >&5
  13770. $as_echo_n "checking for -Wdeclaration-after-statement support... " >&6; }
  13771. if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13773. $as_echo "yes" >&6; }
  13774. AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
  13775. else
  13776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13777. $as_echo "no" >&6; }
  13778. AST_DECLARATION_AFTER_STATEMENT=
  13779. fi
  13780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wtrampolines support" >&5
  13781. $as_echo_n "checking for -Wtrampolines support... " >&6; }
  13782. if $(${CC} -Wtrampolines -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13784. $as_echo "yes" >&6; }
  13785. AST_TRAMPOLINES=-Wtrampolines
  13786. else
  13787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13788. $as_echo "no" >&6; }
  13789. AST_TRAMPOLINES=
  13790. fi
  13791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE support" >&5
  13792. $as_echo_n "checking for _FORTIFY_SOURCE support... " >&6; }
  13793. if $(${CC} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13795. $as_echo "yes" >&6; }
  13796. AST_FORTIFY_SOURCE="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
  13797. else
  13798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13799. $as_echo "no" >&6; }
  13800. AST_FORTIFY_SOURCE=
  13801. fi
  13802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-strict-overflow" >&5
  13803. $as_echo_n "checking for -fno-strict-overflow... " >&6; }
  13804. if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13806. $as_echo "yes" >&6; }
  13807. AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
  13808. else
  13809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13810. $as_echo "no" >&6; }
  13811. AST_NO_STRICT_OVERFLOW=
  13812. fi
  13813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wshadow" >&5
  13814. $as_echo_n "checking for -Wshadow... " >&6; }
  13815. if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13817. $as_echo "yes" >&6; }
  13818. AST_SHADOW_WARNINGS=-Wshadow
  13819. else
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13821. $as_echo "no" >&6; }
  13822. AST_SHADOW_WARNINGS=
  13823. fi
  13824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -march=native support" >&5
  13825. $as_echo_n "checking for -march=native support... " >&6; }
  13826. if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  13827. if test "${CONFIG_CFLAGS}" = ""; then
  13828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13829. $as_echo "yes" >&6; }
  13830. AST_NATIVE_ARCH=1
  13831. else
  13832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: user CFLAGS present" >&5
  13833. $as_echo "user CFLAGS present" >&6; }
  13834. AST_NATIVE_ARCH=
  13835. fi
  13836. else
  13837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13838. $as_echo "no" >&6; }
  13839. AST_NATIVE_ARCH=
  13840. fi
  13841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fnested-functions" >&5
  13842. $as_echo_n "checking for -fnested-functions... " >&6; }
  13843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13844. /* end confdefs.h. */
  13845. int
  13846. main ()
  13847. {
  13848. auto void foo(void); void foo(void) {}
  13849. ;
  13850. return 0;
  13851. }
  13852. _ACEOF
  13853. if ac_fn_c_try_compile "$LINENO"; then :
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13855. $as_echo "no" >&6; }
  13856. AST_NESTED_FUNCTIONS=
  13857. else
  13858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: required" >&5
  13859. $as_echo "required" >&6; }
  13860. AST_NESTED_FUNCTIONS=-fnested-functions
  13861. fi
  13862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13863. # Check whether --enable-rpath was given.
  13864. if test "${enable_rpath+set}" = set; then :
  13865. enableval=$enable_rpath; case "${enableval}" in
  13866. y|ye|yes) check_rpath=yes ;;
  13867. n|no) check_rpath=no ;;
  13868. *) as_fn_error $? "bad value ${enableval} for --disable-rpath" "$LINENO" 5 ;;
  13869. esac
  13870. else
  13871. check_rpath=yes
  13872. fi
  13873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
  13874. $as_echo_n "checking whether to use rpath... " >&6; }
  13875. AST_RPATH=
  13876. if test "${check_rpath}" != yes; then
  13877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
  13878. $as_echo "skipped" >&6; }
  13879. elif test "${prefix}" = /usr || test "${prefix}" = NONE; then
  13880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
  13881. $as_echo "not needed" >&6; }
  13882. else
  13883. case "${host_os}" in
  13884. darwin*)
  13885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
  13886. $as_echo "not supported" >&6; }
  13887. # We set macosx_version_min to 10.4, which doesn't
  13888. # support rpath. However, we set install_name on our
  13889. # dylibs, so it's not strictly necessary.
  13890. ;;
  13891. *)
  13892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: required" >&5
  13893. $as_echo "required" >&6; }
  13894. AST_RPATH="-Wl,-rpath,${libdir}"
  13895. ;;
  13896. esac
  13897. fi
  13898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
  13899. $as_echo_n "checking for sysinfo... " >&6; }
  13900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13901. /* end confdefs.h. */
  13902. #include <sys/sysinfo.h>
  13903. int
  13904. main ()
  13905. {
  13906. struct sysinfo sys_info; int uptime = sys_info.uptime
  13907. ;
  13908. return 0;
  13909. }
  13910. _ACEOF
  13911. if ac_fn_c_try_link "$LINENO"; then :
  13912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13913. $as_echo "yes" >&6; }
  13914. $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
  13915. else
  13916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13917. $as_echo "no" >&6; }
  13918. fi
  13919. rm -f core conftest.err conftest.$ac_objext \
  13920. conftest$ac_exeext conftest.$ac_ext
  13921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ninit" >&5
  13922. $as_echo_n "checking for library containing res_9_ninit... " >&6; }
  13923. if ${ac_cv_search_res_9_ninit+:} false; then :
  13924. $as_echo_n "(cached) " >&6
  13925. else
  13926. ac_func_search_save_LIBS=$LIBS
  13927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13928. /* end confdefs.h. */
  13929. /* Override any GCC internal prototype to avoid an error.
  13930. Use char because int might match the return type of a GCC
  13931. builtin and then its argument prototype would still apply. */
  13932. #ifdef __cplusplus
  13933. extern "C"
  13934. #endif
  13935. char res_9_ninit ();
  13936. int
  13937. main ()
  13938. {
  13939. return res_9_ninit ();
  13940. ;
  13941. return 0;
  13942. }
  13943. _ACEOF
  13944. for ac_lib in '' resolv; do
  13945. if test -z "$ac_lib"; then
  13946. ac_res="none required"
  13947. else
  13948. ac_res=-l$ac_lib
  13949. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13950. fi
  13951. if ac_fn_c_try_link "$LINENO"; then :
  13952. ac_cv_search_res_9_ninit=$ac_res
  13953. fi
  13954. rm -f core conftest.err conftest.$ac_objext \
  13955. conftest$ac_exeext
  13956. if ${ac_cv_search_res_9_ninit+:} false; then :
  13957. break
  13958. fi
  13959. done
  13960. if ${ac_cv_search_res_9_ninit+:} false; then :
  13961. else
  13962. ac_cv_search_res_9_ninit=no
  13963. fi
  13964. rm conftest.$ac_ext
  13965. LIBS=$ac_func_search_save_LIBS
  13966. fi
  13967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ninit" >&5
  13968. $as_echo "$ac_cv_search_res_9_ninit" >&6; }
  13969. ac_res=$ac_cv_search_res_9_ninit
  13970. if test "$ac_res" != no; then :
  13971. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13972. fi
  13973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ninit" >&5
  13974. $as_echo_n "checking for res_ninit... " >&6; }
  13975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13976. /* end confdefs.h. */
  13977. #ifdef HAVE_SYS_SOCKET_H
  13978. #include <sys/socket.h>
  13979. #endif
  13980. #ifdef HAVE_NETINET_IN_H
  13981. #include <netinet/in.h>
  13982. #endif
  13983. #ifdef HAVE_ARPA_NAMESER_H
  13984. #include <arpa/nameser.h>
  13985. #endif
  13986. #include <resolv.h>
  13987. int
  13988. main ()
  13989. {
  13990. int foo = res_ninit(NULL);
  13991. ;
  13992. return 0;
  13993. }
  13994. _ACEOF
  13995. if ac_fn_c_try_link "$LINENO"; then :
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13997. $as_echo "yes" >&6; }
  13998. $as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
  13999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
  14000. $as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
  14001. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14002. $as_echo_n "(cached) " >&6
  14003. else
  14004. ac_func_search_save_LIBS=$LIBS
  14005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14006. /* end confdefs.h. */
  14007. /* Override any GCC internal prototype to avoid an error.
  14008. Use char because int might match the return type of a GCC
  14009. builtin and then its argument prototype would still apply. */
  14010. #ifdef __cplusplus
  14011. extern "C"
  14012. #endif
  14013. char res_9_ndestroy ();
  14014. int
  14015. main ()
  14016. {
  14017. return res_9_ndestroy ();
  14018. ;
  14019. return 0;
  14020. }
  14021. _ACEOF
  14022. for ac_lib in '' resolv; do
  14023. if test -z "$ac_lib"; then
  14024. ac_res="none required"
  14025. else
  14026. ac_res=-l$ac_lib
  14027. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14028. fi
  14029. if ac_fn_c_try_link "$LINENO"; then :
  14030. ac_cv_search_res_9_ndestroy=$ac_res
  14031. fi
  14032. rm -f core conftest.err conftest.$ac_objext \
  14033. conftest$ac_exeext
  14034. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14035. break
  14036. fi
  14037. done
  14038. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14039. else
  14040. ac_cv_search_res_9_ndestroy=no
  14041. fi
  14042. rm conftest.$ac_ext
  14043. LIBS=$ac_func_search_save_LIBS
  14044. fi
  14045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ndestroy" >&5
  14046. $as_echo "$ac_cv_search_res_9_ndestroy" >&6; }
  14047. ac_res=$ac_cv_search_res_9_ndestroy
  14048. if test "$ac_res" != no; then :
  14049. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14050. fi
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
  14052. $as_echo_n "checking for res_ndestroy... " >&6; }
  14053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14054. /* end confdefs.h. */
  14055. #ifdef HAVE_SYS_SOCKET_H
  14056. #include <sys/socket.h>
  14057. #endif
  14058. #ifdef HAVE_NETINET_IN_H
  14059. #include <netinet/in.h>
  14060. #endif
  14061. #ifdef HAVE_ARPA_NAMESER_H
  14062. #include <arpa/nameser.h>
  14063. #endif
  14064. #include <resolv.h>
  14065. int
  14066. main ()
  14067. {
  14068. res_ndestroy(NULL);
  14069. ;
  14070. return 0;
  14071. }
  14072. _ACEOF
  14073. if ac_fn_c_try_link "$LINENO"; then :
  14074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14075. $as_echo "yes" >&6; }
  14076. $as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h
  14077. else
  14078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14079. $as_echo "no" >&6; }
  14080. fi
  14081. rm -f core conftest.err conftest.$ac_objext \
  14082. conftest$ac_exeext conftest.$ac_ext
  14083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_close" >&5
  14084. $as_echo_n "checking for library containing res_9_close... " >&6; }
  14085. if ${ac_cv_search_res_9_close+:} false; then :
  14086. $as_echo_n "(cached) " >&6
  14087. else
  14088. ac_func_search_save_LIBS=$LIBS
  14089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14090. /* end confdefs.h. */
  14091. /* Override any GCC internal prototype to avoid an error.
  14092. Use char because int might match the return type of a GCC
  14093. builtin and then its argument prototype would still apply. */
  14094. #ifdef __cplusplus
  14095. extern "C"
  14096. #endif
  14097. char res_9_close ();
  14098. int
  14099. main ()
  14100. {
  14101. return res_9_close ();
  14102. ;
  14103. return 0;
  14104. }
  14105. _ACEOF
  14106. for ac_lib in '' resolv; do
  14107. if test -z "$ac_lib"; then
  14108. ac_res="none required"
  14109. else
  14110. ac_res=-l$ac_lib
  14111. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14112. fi
  14113. if ac_fn_c_try_link "$LINENO"; then :
  14114. ac_cv_search_res_9_close=$ac_res
  14115. fi
  14116. rm -f core conftest.err conftest.$ac_objext \
  14117. conftest$ac_exeext
  14118. if ${ac_cv_search_res_9_close+:} false; then :
  14119. break
  14120. fi
  14121. done
  14122. if ${ac_cv_search_res_9_close+:} false; then :
  14123. else
  14124. ac_cv_search_res_9_close=no
  14125. fi
  14126. rm conftest.$ac_ext
  14127. LIBS=$ac_func_search_save_LIBS
  14128. fi
  14129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_close" >&5
  14130. $as_echo "$ac_cv_search_res_9_close" >&6; }
  14131. ac_res=$ac_cv_search_res_9_close
  14132. if test "$ac_res" != no; then :
  14133. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14134. fi
  14135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_close" >&5
  14136. $as_echo_n "checking for res_close... " >&6; }
  14137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14138. /* end confdefs.h. */
  14139. #ifdef HAVE_SYS_SOCKET_H
  14140. #include <sys/socket.h>
  14141. #endif
  14142. #ifdef HAVE_NETINET_IN_H
  14143. #include <netinet/in.h>
  14144. #endif
  14145. #ifdef HAVE_ARPA_NAMESER_H
  14146. #include <arpa/nameser.h>
  14147. #endif
  14148. #include <resolv.h>
  14149. int
  14150. main ()
  14151. {
  14152. res_close();
  14153. ;
  14154. return 0;
  14155. }
  14156. _ACEOF
  14157. if ac_fn_c_try_link "$LINENO"; then :
  14158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14159. $as_echo "yes" >&6; }
  14160. $as_echo "#define HAVE_RES_CLOSE 1" >>confdefs.h
  14161. else
  14162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14163. $as_echo "no" >&6; }
  14164. fi
  14165. rm -f core conftest.err conftest.$ac_objext \
  14166. conftest$ac_exeext conftest.$ac_ext
  14167. else
  14168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14169. $as_echo "no" >&6; }
  14170. fi
  14171. rm -f core conftest.err conftest.$ac_objext \
  14172. conftest$ac_exeext conftest.$ac_ext
  14173. if test "x${PBX_GLOB_NOMAGIC}" != "x1"; then
  14174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_NOMAGIC in glob.h" >&5
  14175. $as_echo_n "checking for GLOB_NOMAGIC in glob.h... " >&6; }
  14176. saved_cppflags="${CPPFLAGS}"
  14177. if test "x${GLOB_NOMAGIC_DIR}" != "x"; then
  14178. GLOB_NOMAGIC_INCLUDE="-I${GLOB_NOMAGIC_DIR}/include"
  14179. fi
  14180. CPPFLAGS="${CPPFLAGS} ${GLOB_NOMAGIC_INCLUDE}"
  14181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14182. /* end confdefs.h. */
  14183. #include <glob.h>
  14184. int
  14185. main ()
  14186. {
  14187. #if defined(GLOB_NOMAGIC)
  14188. int foo = 0;
  14189. #else
  14190. int foo = bar;
  14191. #endif
  14192. 0
  14193. ;
  14194. return 0;
  14195. }
  14196. _ACEOF
  14197. if ac_fn_c_try_compile "$LINENO"; then :
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14199. $as_echo "yes" >&6; }
  14200. PBX_GLOB_NOMAGIC=1
  14201. $as_echo "#define HAVE_GLOB_NOMAGIC 1" >>confdefs.h
  14202. else
  14203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14204. $as_echo "no" >&6; }
  14205. fi
  14206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14207. CPPFLAGS="${saved_cppflags}"
  14208. fi
  14209. if test "x${PBX_GLOB_BRACE}" != "x1"; then
  14210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE in glob.h" >&5
  14211. $as_echo_n "checking for GLOB_BRACE in glob.h... " >&6; }
  14212. saved_cppflags="${CPPFLAGS}"
  14213. if test "x${GLOB_BRACE_DIR}" != "x"; then
  14214. GLOB_BRACE_INCLUDE="-I${GLOB_BRACE_DIR}/include"
  14215. fi
  14216. CPPFLAGS="${CPPFLAGS} ${GLOB_BRACE_INCLUDE}"
  14217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14218. /* end confdefs.h. */
  14219. #include <glob.h>
  14220. int
  14221. main ()
  14222. {
  14223. #if defined(GLOB_BRACE)
  14224. int foo = 0;
  14225. #else
  14226. int foo = bar;
  14227. #endif
  14228. 0
  14229. ;
  14230. return 0;
  14231. }
  14232. _ACEOF
  14233. if ac_fn_c_try_compile "$LINENO"; then :
  14234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14235. $as_echo "yes" >&6; }
  14236. PBX_GLOB_BRACE=1
  14237. $as_echo "#define HAVE_GLOB_BRACE 1" >>confdefs.h
  14238. else
  14239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14240. $as_echo "no" >&6; }
  14241. fi
  14242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14243. CPPFLAGS="${saved_cppflags}"
  14244. fi
  14245. if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
  14246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
  14247. $as_echo_n "checking for IP_MTU_DISCOVER in netinet/in.h... " >&6; }
  14248. saved_cppflags="${CPPFLAGS}"
  14249. if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
  14250. IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
  14251. fi
  14252. CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
  14253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14254. /* end confdefs.h. */
  14255. #include <netinet/in.h>
  14256. int
  14257. main ()
  14258. {
  14259. #if defined(IP_MTU_DISCOVER)
  14260. int foo = 0;
  14261. #else
  14262. int foo = bar;
  14263. #endif
  14264. 0
  14265. ;
  14266. return 0;
  14267. }
  14268. _ACEOF
  14269. if ac_fn_c_try_compile "$LINENO"; then :
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14271. $as_echo "yes" >&6; }
  14272. PBX_IP_MTU_DISCOVER=1
  14273. $as_echo "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h
  14274. else
  14275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14276. $as_echo "no" >&6; }
  14277. fi
  14278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14279. CPPFLAGS="${saved_cppflags}"
  14280. fi
  14281. ac_fn_c_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
  14282. if test "x$ac_cv_header_libkern_OSAtomic_h" = xyes; then :
  14283. cat >>confdefs.h <<_ACEOF
  14284. #define HAVE_OSX_ATOMICS 1
  14285. _ACEOF
  14286. fi
  14287. # The cast to long int works around a bug in the HP C Compiler
  14288. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14289. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14290. # This bug is HP SR number 8606223364.
  14291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  14292. $as_echo_n "checking size of int... " >&6; }
  14293. if ${ac_cv_sizeof_int+:} false; then :
  14294. $as_echo_n "(cached) " >&6
  14295. else
  14296. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  14297. else
  14298. if test "$ac_cv_type_int" = yes; then
  14299. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14300. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14301. as_fn_error 77 "cannot compute sizeof (int)
  14302. See \`config.log' for more details" "$LINENO" 5; }
  14303. else
  14304. ac_cv_sizeof_int=0
  14305. fi
  14306. fi
  14307. fi
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14309. $as_echo "$ac_cv_sizeof_int" >&6; }
  14310. cat >>confdefs.h <<_ACEOF
  14311. #define SIZEOF_INT $ac_cv_sizeof_int
  14312. _ACEOF
  14313. # The cast to long int works around a bug in the HP C Compiler
  14314. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14315. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14316. # This bug is HP SR number 8606223364.
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14318. $as_echo_n "checking size of long... " >&6; }
  14319. if ${ac_cv_sizeof_long+:} false; then :
  14320. $as_echo_n "(cached) " >&6
  14321. else
  14322. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14323. else
  14324. if test "$ac_cv_type_long" = yes; then
  14325. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14326. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14327. as_fn_error 77 "cannot compute sizeof (long)
  14328. See \`config.log' for more details" "$LINENO" 5; }
  14329. else
  14330. ac_cv_sizeof_long=0
  14331. fi
  14332. fi
  14333. fi
  14334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14335. $as_echo "$ac_cv_sizeof_long" >&6; }
  14336. cat >>confdefs.h <<_ACEOF
  14337. #define SIZEOF_LONG $ac_cv_sizeof_long
  14338. _ACEOF
  14339. # The cast to long int works around a bug in the HP C Compiler
  14340. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14341. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14342. # This bug is HP SR number 8606223364.
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  14344. $as_echo_n "checking size of long long... " >&6; }
  14345. if ${ac_cv_sizeof_long_long+:} false; then :
  14346. $as_echo_n "(cached) " >&6
  14347. else
  14348. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  14349. else
  14350. if test "$ac_cv_type_long_long" = yes; then
  14351. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14352. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14353. as_fn_error 77 "cannot compute sizeof (long long)
  14354. See \`config.log' for more details" "$LINENO" 5; }
  14355. else
  14356. ac_cv_sizeof_long_long=0
  14357. fi
  14358. fi
  14359. fi
  14360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  14361. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  14362. cat >>confdefs.h <<_ACEOF
  14363. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  14364. _ACEOF
  14365. # The cast to long int works around a bug in the HP C Compiler
  14366. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14367. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14368. # This bug is HP SR number 8606223364.
  14369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  14370. $as_echo_n "checking size of char *... " >&6; }
  14371. if ${ac_cv_sizeof_char_p+:} false; then :
  14372. $as_echo_n "(cached) " >&6
  14373. else
  14374. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  14375. else
  14376. if test "$ac_cv_type_char_p" = yes; then
  14377. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14378. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14379. as_fn_error 77 "cannot compute sizeof (char *)
  14380. See \`config.log' for more details" "$LINENO" 5; }
  14381. else
  14382. ac_cv_sizeof_char_p=0
  14383. fi
  14384. fi
  14385. fi
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  14387. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  14388. cat >>confdefs.h <<_ACEOF
  14389. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  14390. _ACEOF
  14391. # The cast to long int works around a bug in the HP C Compiler
  14392. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14393. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14394. # This bug is HP SR number 8606223364.
  14395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14396. $as_echo_n "checking size of long... " >&6; }
  14397. if ${ac_cv_sizeof_long+:} false; then :
  14398. $as_echo_n "(cached) " >&6
  14399. else
  14400. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14401. else
  14402. if test "$ac_cv_type_long" = yes; then
  14403. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14404. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14405. as_fn_error 77 "cannot compute sizeof (long)
  14406. See \`config.log' for more details" "$LINENO" 5; }
  14407. else
  14408. ac_cv_sizeof_long=0
  14409. fi
  14410. fi
  14411. fi
  14412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14413. $as_echo "$ac_cv_sizeof_long" >&6; }
  14414. cat >>confdefs.h <<_ACEOF
  14415. #define SIZEOF_LONG $ac_cv_sizeof_long
  14416. _ACEOF
  14417. # The cast to long int works around a bug in the HP C Compiler
  14418. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14419. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14420. # This bug is HP SR number 8606223364.
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  14422. $as_echo_n "checking size of long long... " >&6; }
  14423. if ${ac_cv_sizeof_long_long+:} false; then :
  14424. $as_echo_n "(cached) " >&6
  14425. else
  14426. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  14427. else
  14428. if test "$ac_cv_type_long_long" = yes; then
  14429. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14430. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14431. as_fn_error 77 "cannot compute sizeof (long long)
  14432. See \`config.log' for more details" "$LINENO" 5; }
  14433. else
  14434. ac_cv_sizeof_long_long=0
  14435. fi
  14436. fi
  14437. fi
  14438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  14439. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  14440. cat >>confdefs.h <<_ACEOF
  14441. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  14442. _ACEOF
  14443. if ac_fn_c_compute_int "$LINENO" "sizeof(foo.fds_bits[0])" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default
  14444. fd_set foo;"; then :
  14445. fi
  14446. # This doesn't actually work; what it does is to use the variable set in the
  14447. # previous test as a cached value to set the right output variables.
  14448. # The cast to long int works around a bug in the HP C Compiler
  14449. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14450. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14451. # This bug is HP SR number 8606223364.
  14452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fd_set.fds_bits" >&5
  14453. $as_echo_n "checking size of fd_set.fds_bits... " >&6; }
  14454. if ${ac_cv_sizeof_fd_set_fds_bits+:} false; then :
  14455. $as_echo_n "(cached) " >&6
  14456. else
  14457. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fd_set.fds_bits))" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default"; then :
  14458. else
  14459. if test "$ac_cv_type_fd_set_fds_bits" = yes; then
  14460. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14461. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14462. as_fn_error 77 "cannot compute sizeof (fd_set.fds_bits)
  14463. See \`config.log' for more details" "$LINENO" 5; }
  14464. else
  14465. ac_cv_sizeof_fd_set_fds_bits=0
  14466. fi
  14467. fi
  14468. fi
  14469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fd_set_fds_bits" >&5
  14470. $as_echo "$ac_cv_sizeof_fd_set_fds_bits" >&6; }
  14471. cat >>confdefs.h <<_ACEOF
  14472. #define SIZEOF_FD_SET_FDS_BITS $ac_cv_sizeof_fd_set_fds_bits
  14473. _ACEOF
  14474. # Set a type compatible with the previous. We cannot just use a generic type
  14475. # for these bits, because on big-endian systems, the bits won't match up
  14476. # correctly if the size is wrong.
  14477. if test $ac_cv_sizeof_int = $ac_cv_sizeof_fd_set_fds_bits; then
  14478. $as_echo "#define TYPEOF_FD_SET_FDS_BITS int" >>confdefs.h
  14479. else if test $ac_cv_sizeof_long = $ac_cv_sizeof_fd_set_fds_bits; then
  14480. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long" >>confdefs.h
  14481. else if test $ac_cv_sizeof_long_long = $ac_cv_sizeof_fd_set_fds_bits; then
  14482. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long long" >>confdefs.h
  14483. fi ; fi ; fi
  14484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in dlfcn.h" >&5
  14485. $as_echo_n "checking for dladdr in dlfcn.h... " >&6; }
  14486. PBX_DLADDR=0
  14487. old_LIBS=${LIBS}
  14488. LIBS="${LIBS} -ldl"
  14489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14490. /* end confdefs.h. */
  14491. #define _GNU_SOURCE 1
  14492. #include <dlfcn.h>
  14493. int
  14494. main ()
  14495. {
  14496. dladdr((void *)0, (void *)0)
  14497. ;
  14498. return 0;
  14499. }
  14500. _ACEOF
  14501. if ac_fn_c_try_link "$LINENO"; then :
  14502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14503. $as_echo "yes" >&6; }
  14504. PBX_DLADDR=1
  14505. $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
  14506. else
  14507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14508. $as_echo "no" >&6; }
  14509. fi
  14510. rm -f core conftest.err conftest.$ac_objext \
  14511. conftest$ac_exeext conftest.$ac_ext
  14512. LIBS=${old_LIBS}
  14513. # PKGCONFIG is used in later tests
  14514. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14515. if test -n "$ac_tool_prefix"; then
  14516. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14517. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14519. $as_echo_n "checking for $ac_word... " >&6; }
  14520. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14521. $as_echo_n "(cached) " >&6
  14522. else
  14523. case $PKG_CONFIG in
  14524. [\\/]* | ?:[\\/]*)
  14525. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14526. ;;
  14527. *)
  14528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14529. for as_dir in $PATH
  14530. do
  14531. IFS=$as_save_IFS
  14532. test -z "$as_dir" && as_dir=.
  14533. for ac_exec_ext in '' $ac_executable_extensions; do
  14534. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14535. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14537. break 2
  14538. fi
  14539. done
  14540. done
  14541. IFS=$as_save_IFS
  14542. ;;
  14543. esac
  14544. fi
  14545. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14546. if test -n "$PKG_CONFIG"; then
  14547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14548. $as_echo "$PKG_CONFIG" >&6; }
  14549. else
  14550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14551. $as_echo "no" >&6; }
  14552. fi
  14553. fi
  14554. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14555. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14556. # Extract the first word of "pkg-config", so it can be a program name with args.
  14557. set dummy pkg-config; ac_word=$2
  14558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14559. $as_echo_n "checking for $ac_word... " >&6; }
  14560. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14561. $as_echo_n "(cached) " >&6
  14562. else
  14563. case $ac_pt_PKG_CONFIG in
  14564. [\\/]* | ?:[\\/]*)
  14565. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14566. ;;
  14567. *)
  14568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14569. for as_dir in $PATH
  14570. do
  14571. IFS=$as_save_IFS
  14572. test -z "$as_dir" && as_dir=.
  14573. for ac_exec_ext in '' $ac_executable_extensions; do
  14574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14575. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14577. break 2
  14578. fi
  14579. done
  14580. done
  14581. IFS=$as_save_IFS
  14582. ;;
  14583. esac
  14584. fi
  14585. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14586. if test -n "$ac_pt_PKG_CONFIG"; then
  14587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14588. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14589. else
  14590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14591. $as_echo "no" >&6; }
  14592. fi
  14593. if test "x$ac_pt_PKG_CONFIG" = x; then
  14594. PKG_CONFIG=""
  14595. else
  14596. case $cross_compiling:$ac_tool_warned in
  14597. yes:)
  14598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14599. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14600. ac_tool_warned=yes ;;
  14601. esac
  14602. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14603. fi
  14604. else
  14605. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14606. fi
  14607. fi
  14608. if test -n "$PKG_CONFIG"; then
  14609. _pkg_min_version=0.9.0
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14611. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14612. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14614. $as_echo "yes" >&6; }
  14615. else
  14616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14617. $as_echo "no" >&6; }
  14618. PKG_CONFIG=""
  14619. fi
  14620. fi
  14621. # do the package library checks now
  14622. if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
  14623. pbxlibdir=""
  14624. # if --with-ALSA=DIR has been specified, use it.
  14625. if test "x${ALSA_DIR}" != "x"; then
  14626. if test -d ${ALSA_DIR}/lib; then
  14627. pbxlibdir="-L${ALSA_DIR}/lib"
  14628. else
  14629. pbxlibdir="-L${ALSA_DIR}"
  14630. fi
  14631. fi
  14632. pbxfuncname="snd_spcm_init"
  14633. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14634. AST_ALSA_FOUND=yes
  14635. else
  14636. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14637. CFLAGS="${CFLAGS} "
  14638. as_ac_Lib=`$as_echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
  14639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lasound" >&5
  14640. $as_echo_n "checking for ${pbxfuncname} in -lasound... " >&6; }
  14641. if eval \${$as_ac_Lib+:} false; then :
  14642. $as_echo_n "(cached) " >&6
  14643. else
  14644. ac_check_lib_save_LIBS=$LIBS
  14645. LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
  14646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14647. /* end confdefs.h. */
  14648. /* Override any GCC internal prototype to avoid an error.
  14649. Use char because int might match the return type of a GCC
  14650. builtin and then its argument prototype would still apply. */
  14651. #ifdef __cplusplus
  14652. extern "C"
  14653. #endif
  14654. char ${pbxfuncname} ();
  14655. int
  14656. main ()
  14657. {
  14658. return ${pbxfuncname} ();
  14659. ;
  14660. return 0;
  14661. }
  14662. _ACEOF
  14663. if ac_fn_c_try_link "$LINENO"; then :
  14664. eval "$as_ac_Lib=yes"
  14665. else
  14666. eval "$as_ac_Lib=no"
  14667. fi
  14668. rm -f core conftest.err conftest.$ac_objext \
  14669. conftest$ac_exeext conftest.$ac_ext
  14670. LIBS=$ac_check_lib_save_LIBS
  14671. fi
  14672. eval ac_res=\$$as_ac_Lib
  14673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14674. $as_echo "$ac_res" >&6; }
  14675. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14676. AST_ALSA_FOUND=yes
  14677. else
  14678. AST_ALSA_FOUND=no
  14679. fi
  14680. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14681. fi
  14682. # now check for the header.
  14683. if test "${AST_ALSA_FOUND}" = "yes"; then
  14684. ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
  14685. # if --with-ALSA=DIR has been specified, use it.
  14686. if test "x${ALSA_DIR}" != "x"; then
  14687. ALSA_INCLUDE="-I${ALSA_DIR}/include"
  14688. fi
  14689. ALSA_INCLUDE="${ALSA_INCLUDE} "
  14690. if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
  14691. ALSA_HEADER_FOUND="1"
  14692. else # check for the header
  14693. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14694. CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
  14695. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  14696. if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
  14697. ALSA_HEADER_FOUND=1
  14698. else
  14699. ALSA_HEADER_FOUND=0
  14700. fi
  14701. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14702. fi
  14703. if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
  14704. ALSA_LIB=""
  14705. ALSA_INCLUDE=""
  14706. else
  14707. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14708. ALSA_LIB=""
  14709. fi
  14710. PBX_ALSA=1
  14711. cat >>confdefs.h <<_ACEOF
  14712. #define HAVE_ALSA 1
  14713. _ACEOF
  14714. fi
  14715. fi
  14716. fi
  14717. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  14718. pbxlibdir=""
  14719. # if --with-BFD=DIR has been specified, use it.
  14720. if test "x${BFD_DIR}" != "x"; then
  14721. if test -d ${BFD_DIR}/lib; then
  14722. pbxlibdir="-L${BFD_DIR}/lib"
  14723. else
  14724. pbxlibdir="-L${BFD_DIR}"
  14725. fi
  14726. fi
  14727. pbxfuncname="bfd_openr"
  14728. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14729. AST_BFD_FOUND=yes
  14730. else
  14731. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14732. CFLAGS="${CFLAGS} "
  14733. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  14734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  14735. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  14736. if eval \${$as_ac_Lib+:} false; then :
  14737. $as_echo_n "(cached) " >&6
  14738. else
  14739. ac_check_lib_save_LIBS=$LIBS
  14740. LIBS="-lbfd ${pbxlibdir} $LIBS"
  14741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14742. /* end confdefs.h. */
  14743. /* Override any GCC internal prototype to avoid an error.
  14744. Use char because int might match the return type of a GCC
  14745. builtin and then its argument prototype would still apply. */
  14746. #ifdef __cplusplus
  14747. extern "C"
  14748. #endif
  14749. char ${pbxfuncname} ();
  14750. int
  14751. main ()
  14752. {
  14753. return ${pbxfuncname} ();
  14754. ;
  14755. return 0;
  14756. }
  14757. _ACEOF
  14758. if ac_fn_c_try_link "$LINENO"; then :
  14759. eval "$as_ac_Lib=yes"
  14760. else
  14761. eval "$as_ac_Lib=no"
  14762. fi
  14763. rm -f core conftest.err conftest.$ac_objext \
  14764. conftest$ac_exeext conftest.$ac_ext
  14765. LIBS=$ac_check_lib_save_LIBS
  14766. fi
  14767. eval ac_res=\$$as_ac_Lib
  14768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14769. $as_echo "$ac_res" >&6; }
  14770. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14771. AST_BFD_FOUND=yes
  14772. else
  14773. AST_BFD_FOUND=no
  14774. fi
  14775. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14776. fi
  14777. # now check for the header.
  14778. if test "${AST_BFD_FOUND}" = "yes"; then
  14779. BFD_LIB="${pbxlibdir} -lbfd "
  14780. # if --with-BFD=DIR has been specified, use it.
  14781. if test "x${BFD_DIR}" != "x"; then
  14782. BFD_INCLUDE="-I${BFD_DIR}/include"
  14783. fi
  14784. BFD_INCLUDE="${BFD_INCLUDE} "
  14785. if test "xbfd.h" = "x" ; then # no header, assume found
  14786. BFD_HEADER_FOUND="1"
  14787. else # check for the header
  14788. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14789. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  14790. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  14791. if test "x$ac_cv_header_bfd_h" = xyes; then :
  14792. BFD_HEADER_FOUND=1
  14793. else
  14794. BFD_HEADER_FOUND=0
  14795. fi
  14796. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14797. fi
  14798. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  14799. BFD_LIB=""
  14800. BFD_INCLUDE=""
  14801. else
  14802. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14803. BFD_LIB=""
  14804. fi
  14805. PBX_BFD=1
  14806. cat >>confdefs.h <<_ACEOF
  14807. #define HAVE_BFD 1
  14808. _ACEOF
  14809. fi
  14810. fi
  14811. fi
  14812. if test "${PBX_BFD}" = "0"; then
  14813. # Fedora/RedHat/CentOS require extra libraries
  14814. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  14815. pbxlibdir=""
  14816. # if --with-BFD=DIR has been specified, use it.
  14817. if test "x${BFD_DIR}" != "x"; then
  14818. if test -d ${BFD_DIR}/lib; then
  14819. pbxlibdir="-L${BFD_DIR}/lib"
  14820. else
  14821. pbxlibdir="-L${BFD_DIR}"
  14822. fi
  14823. fi
  14824. pbxfuncname="bfd_check_format"
  14825. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14826. AST_BFD_FOUND=yes
  14827. else
  14828. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14829. CFLAGS="${CFLAGS} "
  14830. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  14831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  14832. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  14833. if eval \${$as_ac_Lib+:} false; then :
  14834. $as_echo_n "(cached) " >&6
  14835. else
  14836. ac_check_lib_save_LIBS=$LIBS
  14837. LIBS="-lbfd ${pbxlibdir} -ldl -liberty $LIBS"
  14838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14839. /* end confdefs.h. */
  14840. /* Override any GCC internal prototype to avoid an error.
  14841. Use char because int might match the return type of a GCC
  14842. builtin and then its argument prototype would still apply. */
  14843. #ifdef __cplusplus
  14844. extern "C"
  14845. #endif
  14846. char ${pbxfuncname} ();
  14847. int
  14848. main ()
  14849. {
  14850. return ${pbxfuncname} ();
  14851. ;
  14852. return 0;
  14853. }
  14854. _ACEOF
  14855. if ac_fn_c_try_link "$LINENO"; then :
  14856. eval "$as_ac_Lib=yes"
  14857. else
  14858. eval "$as_ac_Lib=no"
  14859. fi
  14860. rm -f core conftest.err conftest.$ac_objext \
  14861. conftest$ac_exeext conftest.$ac_ext
  14862. LIBS=$ac_check_lib_save_LIBS
  14863. fi
  14864. eval ac_res=\$$as_ac_Lib
  14865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14866. $as_echo "$ac_res" >&6; }
  14867. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14868. AST_BFD_FOUND=yes
  14869. else
  14870. AST_BFD_FOUND=no
  14871. fi
  14872. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14873. fi
  14874. # now check for the header.
  14875. if test "${AST_BFD_FOUND}" = "yes"; then
  14876. BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty"
  14877. # if --with-BFD=DIR has been specified, use it.
  14878. if test "x${BFD_DIR}" != "x"; then
  14879. BFD_INCLUDE="-I${BFD_DIR}/include"
  14880. fi
  14881. BFD_INCLUDE="${BFD_INCLUDE} "
  14882. if test "xbfd.h" = "x" ; then # no header, assume found
  14883. BFD_HEADER_FOUND="1"
  14884. else # check for the header
  14885. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14886. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  14887. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  14888. if test "x$ac_cv_header_bfd_h" = xyes; then :
  14889. BFD_HEADER_FOUND=1
  14890. else
  14891. BFD_HEADER_FOUND=0
  14892. fi
  14893. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14894. fi
  14895. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  14896. BFD_LIB=""
  14897. BFD_INCLUDE=""
  14898. else
  14899. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14900. BFD_LIB=""
  14901. fi
  14902. PBX_BFD=1
  14903. cat >>confdefs.h <<_ACEOF
  14904. #define HAVE_BFD 1
  14905. _ACEOF
  14906. fi
  14907. fi
  14908. fi
  14909. fi
  14910. if test "${PBX_BFD}" = "0"; then
  14911. # openSUSE requires -lz
  14912. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  14913. pbxlibdir=""
  14914. # if --with-BFD=DIR has been specified, use it.
  14915. if test "x${BFD_DIR}" != "x"; then
  14916. if test -d ${BFD_DIR}/lib; then
  14917. pbxlibdir="-L${BFD_DIR}/lib"
  14918. else
  14919. pbxlibdir="-L${BFD_DIR}"
  14920. fi
  14921. fi
  14922. pbxfuncname="bfd_check_format"
  14923. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  14924. AST_BFD_FOUND=yes
  14925. else
  14926. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  14927. CFLAGS="${CFLAGS} "
  14928. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  14929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  14930. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  14931. if eval \${$as_ac_Lib+:} false; then :
  14932. $as_echo_n "(cached) " >&6
  14933. else
  14934. ac_check_lib_save_LIBS=$LIBS
  14935. LIBS="-lbfd ${pbxlibdir} -ldl -liberty -lz $LIBS"
  14936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14937. /* end confdefs.h. */
  14938. /* Override any GCC internal prototype to avoid an error.
  14939. Use char because int might match the return type of a GCC
  14940. builtin and then its argument prototype would still apply. */
  14941. #ifdef __cplusplus
  14942. extern "C"
  14943. #endif
  14944. char ${pbxfuncname} ();
  14945. int
  14946. main ()
  14947. {
  14948. return ${pbxfuncname} ();
  14949. ;
  14950. return 0;
  14951. }
  14952. _ACEOF
  14953. if ac_fn_c_try_link "$LINENO"; then :
  14954. eval "$as_ac_Lib=yes"
  14955. else
  14956. eval "$as_ac_Lib=no"
  14957. fi
  14958. rm -f core conftest.err conftest.$ac_objext \
  14959. conftest$ac_exeext conftest.$ac_ext
  14960. LIBS=$ac_check_lib_save_LIBS
  14961. fi
  14962. eval ac_res=\$$as_ac_Lib
  14963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14964. $as_echo "$ac_res" >&6; }
  14965. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14966. AST_BFD_FOUND=yes
  14967. else
  14968. AST_BFD_FOUND=no
  14969. fi
  14970. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  14971. fi
  14972. # now check for the header.
  14973. if test "${AST_BFD_FOUND}" = "yes"; then
  14974. BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty -lz"
  14975. # if --with-BFD=DIR has been specified, use it.
  14976. if test "x${BFD_DIR}" != "x"; then
  14977. BFD_INCLUDE="-I${BFD_DIR}/include"
  14978. fi
  14979. BFD_INCLUDE="${BFD_INCLUDE} "
  14980. if test "xbfd.h" = "x" ; then # no header, assume found
  14981. BFD_HEADER_FOUND="1"
  14982. else # check for the header
  14983. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  14984. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  14985. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  14986. if test "x$ac_cv_header_bfd_h" = xyes; then :
  14987. BFD_HEADER_FOUND=1
  14988. else
  14989. BFD_HEADER_FOUND=0
  14990. fi
  14991. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  14992. fi
  14993. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  14994. BFD_LIB=""
  14995. BFD_INCLUDE=""
  14996. else
  14997. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  14998. BFD_LIB=""
  14999. fi
  15000. PBX_BFD=1
  15001. cat >>confdefs.h <<_ACEOF
  15002. #define HAVE_BFD 1
  15003. _ACEOF
  15004. fi
  15005. fi
  15006. fi
  15007. fi
  15008. if test "x${OSARCH}" = "xlinux-gnu" ; then
  15009. if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
  15010. pbxlibdir=""
  15011. # if --with-CAP=DIR has been specified, use it.
  15012. if test "x${CAP_DIR}" != "x"; then
  15013. if test -d ${CAP_DIR}/lib; then
  15014. pbxlibdir="-L${CAP_DIR}/lib"
  15015. else
  15016. pbxlibdir="-L${CAP_DIR}"
  15017. fi
  15018. fi
  15019. pbxfuncname="cap_from_text"
  15020. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15021. AST_CAP_FOUND=yes
  15022. else
  15023. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15024. CFLAGS="${CFLAGS} "
  15025. as_ac_Lib=`$as_echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
  15026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcap" >&5
  15027. $as_echo_n "checking for ${pbxfuncname} in -lcap... " >&6; }
  15028. if eval \${$as_ac_Lib+:} false; then :
  15029. $as_echo_n "(cached) " >&6
  15030. else
  15031. ac_check_lib_save_LIBS=$LIBS
  15032. LIBS="-lcap ${pbxlibdir} $LIBS"
  15033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15034. /* end confdefs.h. */
  15035. /* Override any GCC internal prototype to avoid an error.
  15036. Use char because int might match the return type of a GCC
  15037. builtin and then its argument prototype would still apply. */
  15038. #ifdef __cplusplus
  15039. extern "C"
  15040. #endif
  15041. char ${pbxfuncname} ();
  15042. int
  15043. main ()
  15044. {
  15045. return ${pbxfuncname} ();
  15046. ;
  15047. return 0;
  15048. }
  15049. _ACEOF
  15050. if ac_fn_c_try_link "$LINENO"; then :
  15051. eval "$as_ac_Lib=yes"
  15052. else
  15053. eval "$as_ac_Lib=no"
  15054. fi
  15055. rm -f core conftest.err conftest.$ac_objext \
  15056. conftest$ac_exeext conftest.$ac_ext
  15057. LIBS=$ac_check_lib_save_LIBS
  15058. fi
  15059. eval ac_res=\$$as_ac_Lib
  15060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15061. $as_echo "$ac_res" >&6; }
  15062. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15063. AST_CAP_FOUND=yes
  15064. else
  15065. AST_CAP_FOUND=no
  15066. fi
  15067. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15068. fi
  15069. # now check for the header.
  15070. if test "${AST_CAP_FOUND}" = "yes"; then
  15071. CAP_LIB="${pbxlibdir} -lcap "
  15072. # if --with-CAP=DIR has been specified, use it.
  15073. if test "x${CAP_DIR}" != "x"; then
  15074. CAP_INCLUDE="-I${CAP_DIR}/include"
  15075. fi
  15076. CAP_INCLUDE="${CAP_INCLUDE} "
  15077. if test "xsys/capability.h" = "x" ; then # no header, assume found
  15078. CAP_HEADER_FOUND="1"
  15079. else # check for the header
  15080. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15081. CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
  15082. ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
  15083. if test "x$ac_cv_header_sys_capability_h" = xyes; then :
  15084. CAP_HEADER_FOUND=1
  15085. else
  15086. CAP_HEADER_FOUND=0
  15087. fi
  15088. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15089. fi
  15090. if test "x${CAP_HEADER_FOUND}" = "x0" ; then
  15091. CAP_LIB=""
  15092. CAP_INCLUDE=""
  15093. else
  15094. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15095. CAP_LIB=""
  15096. fi
  15097. PBX_CAP=1
  15098. cat >>confdefs.h <<_ACEOF
  15099. #define HAVE_CAP 1
  15100. _ACEOF
  15101. fi
  15102. fi
  15103. fi
  15104. fi
  15105. if test "x${PBX_DAHDI}" != "x1"; then
  15106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_RESET_COUNTERS in dahdi/user.h" >&5
  15107. $as_echo_n "checking for DAHDI_RESET_COUNTERS in dahdi/user.h... " >&6; }
  15108. saved_cppflags="${CPPFLAGS}"
  15109. if test "x${DAHDI_DIR}" != "x"; then
  15110. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  15111. fi
  15112. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  15113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15114. /* end confdefs.h. */
  15115. #include <dahdi/user.h>
  15116. int
  15117. main ()
  15118. {
  15119. #if defined(DAHDI_RESET_COUNTERS)
  15120. int foo = 0;
  15121. #else
  15122. int foo = bar;
  15123. #endif
  15124. 0
  15125. ;
  15126. return 0;
  15127. }
  15128. _ACEOF
  15129. if ac_fn_c_try_compile "$LINENO"; then :
  15130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15131. $as_echo "yes" >&6; }
  15132. PBX_DAHDI=1
  15133. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  15134. $as_echo "#define HAVE_DAHDI_VERSION 230" >>confdefs.h
  15135. else
  15136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15137. $as_echo "no" >&6; }
  15138. fi
  15139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15140. CPPFLAGS="${saved_cppflags}"
  15141. fi
  15142. if test "x${PBX_DAHDI}" != "x1"; then
  15143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h" >&5
  15144. $as_echo_n "checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h... " >&6; }
  15145. saved_cppflags="${CPPFLAGS}"
  15146. if test "x${DAHDI_DIR}" != "x"; then
  15147. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  15148. fi
  15149. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  15150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15151. /* end confdefs.h. */
  15152. #include <dahdi/user.h>
  15153. int
  15154. main ()
  15155. {
  15156. #if defined(DAHDI_DEFAULT_MTU_MRU)
  15157. int foo = 0;
  15158. #else
  15159. int foo = bar;
  15160. #endif
  15161. 0
  15162. ;
  15163. return 0;
  15164. }
  15165. _ACEOF
  15166. if ac_fn_c_try_compile "$LINENO"; then :
  15167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15168. $as_echo "yes" >&6; }
  15169. PBX_DAHDI=1
  15170. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  15171. $as_echo "#define HAVE_DAHDI_VERSION 220" >>confdefs.h
  15172. else
  15173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15174. $as_echo "no" >&6; }
  15175. fi
  15176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15177. CPPFLAGS="${saved_cppflags}"
  15178. fi
  15179. if test "x${PBX_DAHDI}" != "x1"; then
  15180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_CODE in dahdi/user.h" >&5
  15181. $as_echo_n "checking for DAHDI_CODE in dahdi/user.h... " >&6; }
  15182. saved_cppflags="${CPPFLAGS}"
  15183. if test "x${DAHDI_DIR}" != "x"; then
  15184. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  15185. fi
  15186. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  15187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15188. /* end confdefs.h. */
  15189. #include <dahdi/user.h>
  15190. int
  15191. main ()
  15192. {
  15193. #if defined(DAHDI_CODE)
  15194. int foo = 0;
  15195. #else
  15196. int foo = bar;
  15197. #endif
  15198. 0
  15199. ;
  15200. return 0;
  15201. }
  15202. _ACEOF
  15203. if ac_fn_c_try_compile "$LINENO"; then :
  15204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15205. $as_echo "yes" >&6; }
  15206. PBX_DAHDI=1
  15207. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  15208. $as_echo "#define HAVE_DAHDI_VERSION 200" >>confdefs.h
  15209. else
  15210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15211. $as_echo "no" >&6; }
  15212. fi
  15213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15214. CPPFLAGS="${saved_cppflags}"
  15215. fi
  15216. if test "x${PBX_DAHDI_HALF_FULL}" != "x1"; then
  15217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h" >&5
  15218. $as_echo_n "checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h... " >&6; }
  15219. saved_cppflags="${CPPFLAGS}"
  15220. if test "x${DAHDI_HALF_FULL_DIR}" != "x"; then
  15221. DAHDI_HALF_FULL_INCLUDE="-I${DAHDI_HALF_FULL_DIR}/include"
  15222. fi
  15223. CPPFLAGS="${CPPFLAGS} ${DAHDI_HALF_FULL_INCLUDE}"
  15224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15225. /* end confdefs.h. */
  15226. #include <dahdi/user.h>
  15227. int
  15228. main ()
  15229. {
  15230. #if defined(DAHDI_POLICY_HALF_FULL)
  15231. int foo = 0;
  15232. #else
  15233. int foo = bar;
  15234. #endif
  15235. 0
  15236. ;
  15237. return 0;
  15238. }
  15239. _ACEOF
  15240. if ac_fn_c_try_compile "$LINENO"; then :
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15242. $as_echo "yes" >&6; }
  15243. PBX_DAHDI_HALF_FULL=1
  15244. $as_echo "#define HAVE_DAHDI_HALF_FULL 1" >>confdefs.h
  15245. else
  15246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15247. $as_echo "no" >&6; }
  15248. fi
  15249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15250. CPPFLAGS="${saved_cppflags}"
  15251. fi
  15252. if test "x${PBX_DAHDI_LINEREVERSE_VMWI}" != "x1" -a "${USE_DAHDI_LINEREVERSE_VMWI}" != "no"; then
  15253. if test "xenhanced dahdi vmwi support" != "x"; then
  15254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enhanced dahdi vmwi support" >&5
  15255. $as_echo_n "checking for enhanced dahdi vmwi support... " >&6; }
  15256. else
  15257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h" >&5
  15258. $as_echo_n "checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h... " >&6; }
  15259. fi
  15260. saved_cppflags="${CPPFLAGS}"
  15261. if test "x${DAHDI_LINEREVERSE_VMWI_DIR}" != "x"; then
  15262. DAHDI_LINEREVERSE_VMWI_INCLUDE="-I${DAHDI_LINEREVERSE_VMWI_DIR}/include"
  15263. fi
  15264. CPPFLAGS="${CPPFLAGS} ${DAHDI_LINEREVERSE_VMWI_INCLUDE}"
  15265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15266. /* end confdefs.h. */
  15267. #include <dahdi/user.h>
  15268. int
  15269. main ()
  15270. {
  15271. struct dahdi_vmwi_info booger;
  15272. ;
  15273. return 0;
  15274. }
  15275. _ACEOF
  15276. if ac_fn_c_try_compile "$LINENO"; then :
  15277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15278. $as_echo "yes" >&6; }
  15279. PBX_DAHDI_LINEREVERSE_VMWI=1
  15280. $as_echo "#define HAVE_DAHDI_LINEREVERSE_VMWI 1" >>confdefs.h
  15281. else
  15282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15283. $as_echo "no" >&6; }
  15284. fi
  15285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15286. CPPFLAGS="${saved_cppflags}"
  15287. fi
  15288. if test "x${PBX_DAHDI_ECHOCANCEL_FAX_MODE}" != "x1" -a "${USE_DAHDI_ECHOCANCEL_FAX_MODE}" != "no"; then
  15289. if test "x" != "x"; then
  15290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for " >&5
  15291. $as_echo_n "checking for ... " >&6; }
  15292. else
  15293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h" >&5
  15294. $as_echo_n "checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h... " >&6; }
  15295. fi
  15296. saved_cppflags="${CPPFLAGS}"
  15297. if test "x${DAHDI_ECHOCANCEL_FAX_MODE_DIR}" != "x"; then
  15298. DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE="-I${DAHDI_ECHOCANCEL_FAX_MODE_DIR}/include"
  15299. fi
  15300. CPPFLAGS="${CPPFLAGS} ${DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE}"
  15301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15302. /* end confdefs.h. */
  15303. #include <dahdi/user.h>
  15304. int
  15305. main ()
  15306. {
  15307. int foo = DAHDI_ECHOCANCEL_FAX_MODE;
  15308. ;
  15309. return 0;
  15310. }
  15311. _ACEOF
  15312. if ac_fn_c_try_compile "$LINENO"; then :
  15313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15314. $as_echo "yes" >&6; }
  15315. PBX_DAHDI_ECHOCANCEL_FAX_MODE=1
  15316. $as_echo "#define HAVE_DAHDI_ECHOCANCEL_FAX_MODE 1" >>confdefs.h
  15317. else
  15318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15319. $as_echo "no" >&6; }
  15320. fi
  15321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15322. CPPFLAGS="${saved_cppflags}"
  15323. fi
  15324. if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
  15325. if test "xgetifaddrs() support" != "x"; then
  15326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs() support" >&5
  15327. $as_echo_n "checking for getifaddrs() support... " >&6; }
  15328. else
  15329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
  15330. $as_echo_n "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... " >&6; }
  15331. fi
  15332. saved_cppflags="${CPPFLAGS}"
  15333. if test "x${GETIFADDRS_DIR}" != "x"; then
  15334. GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
  15335. fi
  15336. CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
  15337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15338. /* end confdefs.h. */
  15339. #include <ifaddrs.h>
  15340. int
  15341. main ()
  15342. {
  15343. struct ifaddrs *p; getifaddrs(&p);
  15344. ;
  15345. return 0;
  15346. }
  15347. _ACEOF
  15348. if ac_fn_c_try_compile "$LINENO"; then :
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15350. $as_echo "yes" >&6; }
  15351. PBX_GETIFADDRS=1
  15352. $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
  15353. else
  15354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15355. $as_echo "no" >&6; }
  15356. fi
  15357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15358. CPPFLAGS="${saved_cppflags}"
  15359. fi
  15360. if test "x${PBX_TIMERFD}" != "x1" -a "${USE_TIMERFD}" != "no"; then
  15361. if test "xtimerfd support" != "x"; then
  15362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd support" >&5
  15363. $as_echo_n "checking for timerfd support... " >&6; }
  15364. else
  15365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h" >&5
  15366. $as_echo_n "checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h... " >&6; }
  15367. fi
  15368. saved_cppflags="${CPPFLAGS}"
  15369. if test "x${TIMERFD_DIR}" != "x"; then
  15370. TIMERFD_INCLUDE="-I${TIMERFD_DIR}/include"
  15371. fi
  15372. CPPFLAGS="${CPPFLAGS} ${TIMERFD_INCLUDE}"
  15373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15374. /* end confdefs.h. */
  15375. #include <sys/timerfd.h>
  15376. int
  15377. main ()
  15378. {
  15379. timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);;
  15380. ;
  15381. return 0;
  15382. }
  15383. _ACEOF
  15384. if ac_fn_c_try_compile "$LINENO"; then :
  15385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15386. $as_echo "yes" >&6; }
  15387. PBX_TIMERFD=1
  15388. $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
  15389. else
  15390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15391. $as_echo "no" >&6; }
  15392. fi
  15393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15394. CPPFLAGS="${saved_cppflags}"
  15395. fi
  15396. GSM_INTERNAL="yes"
  15397. GSM_SYSTEM="yes"
  15398. if test "${USE_GSM}" != "no"; then
  15399. if test "${GSM_DIR}" = "internal"; then
  15400. GSM_SYSTEM="no"
  15401. elif test "${GSM_DIR}" != ""; then
  15402. GSM_INTERNAL="no"
  15403. fi
  15404. if test "${GSM_SYSTEM}" = "yes"; then
  15405. gsmlibdir=""
  15406. if test "x${GSM_DIR}" != "x"; then
  15407. if test -d ${GSM_DIR}/lib; then
  15408. gsmlibdir="-L${GSM_DIR}/lib"
  15409. else
  15410. gsmlibdir="-L${GSM_DIR}"
  15411. fi
  15412. fi
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
  15414. $as_echo_n "checking for gsm_create in -lgsm... " >&6; }
  15415. if ${ac_cv_lib_gsm_gsm_create+:} false; then :
  15416. $as_echo_n "(cached) " >&6
  15417. else
  15418. ac_check_lib_save_LIBS=$LIBS
  15419. LIBS="-lgsm ${gsmlibdir} $LIBS"
  15420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15421. /* end confdefs.h. */
  15422. /* Override any GCC internal prototype to avoid an error.
  15423. Use char because int might match the return type of a GCC
  15424. builtin and then its argument prototype would still apply. */
  15425. #ifdef __cplusplus
  15426. extern "C"
  15427. #endif
  15428. char gsm_create ();
  15429. int
  15430. main ()
  15431. {
  15432. return gsm_create ();
  15433. ;
  15434. return 0;
  15435. }
  15436. _ACEOF
  15437. if ac_fn_c_try_link "$LINENO"; then :
  15438. ac_cv_lib_gsm_gsm_create=yes
  15439. else
  15440. ac_cv_lib_gsm_gsm_create=no
  15441. fi
  15442. rm -f core conftest.err conftest.$ac_objext \
  15443. conftest$ac_exeext conftest.$ac_ext
  15444. LIBS=$ac_check_lib_save_LIBS
  15445. fi
  15446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5
  15447. $as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
  15448. if test "x$ac_cv_lib_gsm_gsm_create" = xyes; then :
  15449. cat >>confdefs.h <<_ACEOF
  15450. #define HAVE_GSM 1
  15451. _ACEOF
  15452. fi
  15453. if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
  15454. if test "x${GSM_DIR}" != "x" ; then
  15455. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
  15456. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm.h" "$as_ac_Header" "$ac_includes_default"
  15457. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15458. GSM_HEADER_FOUND=1
  15459. else
  15460. GSM_HEADER_FOUND=0
  15461. fi
  15462. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
  15463. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm/gsm.h" "$as_ac_Header" "$ac_includes_default"
  15464. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15465. GSM_GSM_HEADER_FOUND=1
  15466. else
  15467. GSM_GSM_HEADER_FOUND=0
  15468. fi
  15469. else
  15470. ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
  15471. if test "x$ac_cv_header_gsm_h" = xyes; then :
  15472. GSM_HEADER_FOUND=1
  15473. else
  15474. GSM_HEADER_FOUND=0
  15475. fi
  15476. ac_fn_c_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
  15477. if test "x$ac_cv_header_gsm_gsm_h" = xyes; then :
  15478. GSM_GSM_HEADER_FOUND=1
  15479. else
  15480. GSM_GSM_HEADER_FOUND=0
  15481. fi
  15482. fi
  15483. if test "${GSM_HEADER_FOUND}" = "0" ; then
  15484. if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
  15485. if test "x${GSM_MANDATORY}" = "xyes" ; then
  15486. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  15487. $as_echo "$as_me: ***" >&6;}
  15488. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the gsm development package installed." >&5
  15489. $as_echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
  15490. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
  15491. $as_echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
  15492. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${GSM_OPTION}" >&5
  15493. $as_echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
  15494. exit 1
  15495. fi
  15496. fi
  15497. fi
  15498. GSM_OK=0
  15499. if test "${GSM_HEADER_FOUND}" = "1" ; then
  15500. cat >>confdefs.h <<_ACEOF
  15501. #define HAVE_GSM_HEADER 1
  15502. _ACEOF
  15503. GSM_OK=1
  15504. else
  15505. if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
  15506. cat >>confdefs.h <<_ACEOF
  15507. #define HAVE_GSM_GSM_HEADER 1
  15508. _ACEOF
  15509. GSM_OK=1
  15510. fi
  15511. fi
  15512. if test "${GSM_OK}" = "1" ; then
  15513. GSM_LIB="-lgsm"
  15514. if test "x${GSM_DIR}" != "x"; then
  15515. GSM_LIB="${gsmlibdir} ${GSM_LIB}"
  15516. GSM_INCLUDE="-I${GSM_DIR}/include"
  15517. fi
  15518. PBX_GSM=1
  15519. GSM_INTERNAL="no"
  15520. fi
  15521. fi
  15522. fi
  15523. if test "${GSM_INTERNAL}" = "yes"; then
  15524. PBX_GSM=1
  15525. cat >>confdefs.h <<_ACEOF
  15526. #define HAVE_GSM_HEADER 1
  15527. _ACEOF
  15528. fi
  15529. fi
  15530. ILBC_INTERNAL="yes"
  15531. ILBC_SYSTEM="yes"
  15532. if test "${USE_ILBC}" != "no"; then
  15533. if test "${ILBC_DIR}" = "internal"; then
  15534. ILBC_SYSTEM="no"
  15535. elif test "${ILBC_DIR}" != ""; then
  15536. ILBC_INTERNAL="no"
  15537. fi
  15538. if test "${ILBC_SYSTEM}" = "yes"; then
  15539. if test "x${PBX_ILBC}" != "x1" -a "${USE_ILBC}" != "no"; then
  15540. pkg_failed=no
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ILBC" >&5
  15542. $as_echo_n "checking for ILBC... " >&6; }
  15543. if test -n "$ILBC_CFLAGS"; then
  15544. pkg_cv_ILBC_CFLAGS="$ILBC_CFLAGS"
  15545. elif test -n "$PKG_CONFIG"; then
  15546. if test -n "$PKG_CONFIG" && \
  15547. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
  15548. ($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
  15549. ac_status=$?
  15550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15551. test $ac_status = 0; }; then
  15552. pkg_cv_ILBC_CFLAGS=`$PKG_CONFIG --cflags "libilbc" 2>/dev/null`
  15553. test "x$?" != "x0" && pkg_failed=yes
  15554. else
  15555. pkg_failed=yes
  15556. fi
  15557. else
  15558. pkg_failed=untried
  15559. fi
  15560. if test -n "$ILBC_LIBS"; then
  15561. pkg_cv_ILBC_LIBS="$ILBC_LIBS"
  15562. elif test -n "$PKG_CONFIG"; then
  15563. if test -n "$PKG_CONFIG" && \
  15564. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
  15565. ($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
  15566. ac_status=$?
  15567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15568. test $ac_status = 0; }; then
  15569. pkg_cv_ILBC_LIBS=`$PKG_CONFIG --libs "libilbc" 2>/dev/null`
  15570. test "x$?" != "x0" && pkg_failed=yes
  15571. else
  15572. pkg_failed=yes
  15573. fi
  15574. else
  15575. pkg_failed=untried
  15576. fi
  15577. if test $pkg_failed = yes; then
  15578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15579. $as_echo "no" >&6; }
  15580. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15581. _pkg_short_errors_supported=yes
  15582. else
  15583. _pkg_short_errors_supported=no
  15584. fi
  15585. if test $_pkg_short_errors_supported = yes; then
  15586. ILBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libilbc" 2>&1`
  15587. else
  15588. ILBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libilbc" 2>&1`
  15589. fi
  15590. # Put the nasty error message in config.log where it belongs
  15591. echo "$ILBC_PKG_ERRORS" >&5
  15592. PBX_ILBC=0
  15593. elif test $pkg_failed = untried; then
  15594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15595. $as_echo "no" >&6; }
  15596. PBX_ILBC=0
  15597. else
  15598. ILBC_CFLAGS=$pkg_cv_ILBC_CFLAGS
  15599. ILBC_LIBS=$pkg_cv_ILBC_LIBS
  15600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15601. $as_echo "yes" >&6; }
  15602. PBX_ILBC=1
  15603. ILBC_INCLUDE="$ILBC_CFLAGS"
  15604. ILBC_LIB="$ILBC_LIBS"
  15605. $as_echo "#define HAVE_ILBC 1" >>confdefs.h
  15606. fi
  15607. fi
  15608. if test "$PBX_ILBC" = "1"; then
  15609. ILBC_INTERNAL="no"
  15610. fi
  15611. fi
  15612. if test "${ILBC_INTERNAL}" = "yes"; then
  15613. PBX_ILBC=1
  15614. fi
  15615. fi
  15616. LIBEDIT_INTERNAL="yes"
  15617. LIBEDIT_SYSTEM="yes"
  15618. if test "${USE_LIBEDIT}" != "no"; then
  15619. if test "${LIBEDIT_DIR}" = "internal"; then
  15620. LIBEDIT_SYSTEM="no"
  15621. elif test "${LIBEDIT_DIR}" != ""; then
  15622. LIBEDIT_INTERNAL="no"
  15623. fi
  15624. if test "${LIBEDIT_SYSTEM}" = "yes"; then
  15625. if test "x${PBX_LIBEDIT}" != "x1" -a "${USE_LIBEDIT}" != "no"; then
  15626. pkg_failed=no
  15627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEDIT" >&5
  15628. $as_echo_n "checking for LIBEDIT... " >&6; }
  15629. if test -n "$LIBEDIT_CFLAGS"; then
  15630. pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
  15631. elif test -n "$PKG_CONFIG"; then
  15632. if test -n "$PKG_CONFIG" && \
  15633. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
  15634. ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
  15635. ac_status=$?
  15636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15637. test $ac_status = 0; }; then
  15638. pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
  15639. test "x$?" != "x0" && pkg_failed=yes
  15640. else
  15641. pkg_failed=yes
  15642. fi
  15643. else
  15644. pkg_failed=untried
  15645. fi
  15646. if test -n "$LIBEDIT_LIBS"; then
  15647. pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
  15648. elif test -n "$PKG_CONFIG"; then
  15649. if test -n "$PKG_CONFIG" && \
  15650. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
  15651. ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
  15652. ac_status=$?
  15653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15654. test $ac_status = 0; }; then
  15655. pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
  15656. test "x$?" != "x0" && pkg_failed=yes
  15657. else
  15658. pkg_failed=yes
  15659. fi
  15660. else
  15661. pkg_failed=untried
  15662. fi
  15663. if test $pkg_failed = yes; then
  15664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15665. $as_echo "no" >&6; }
  15666. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15667. _pkg_short_errors_supported=yes
  15668. else
  15669. _pkg_short_errors_supported=no
  15670. fi
  15671. if test $_pkg_short_errors_supported = yes; then
  15672. LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
  15673. else
  15674. LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
  15675. fi
  15676. # Put the nasty error message in config.log where it belongs
  15677. echo "$LIBEDIT_PKG_ERRORS" >&5
  15678. PBX_LIBEDIT=0
  15679. elif test $pkg_failed = untried; then
  15680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15681. $as_echo "no" >&6; }
  15682. PBX_LIBEDIT=0
  15683. else
  15684. LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
  15685. LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
  15686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15687. $as_echo "yes" >&6; }
  15688. PBX_LIBEDIT=1
  15689. LIBEDIT_INCLUDE="$LIBEDIT_CFLAGS"
  15690. LIBEDIT_LIB="$LIBEDIT_LIBS"
  15691. $as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
  15692. fi
  15693. fi
  15694. if test "$PBX_LIBEDIT" = "1"; then
  15695. LIBEDIT_INTERNAL="no"
  15696. fi
  15697. fi
  15698. if test "${LIBEDIT_INTERNAL}" = "yes"; then
  15699. PBX_LIBEDIT=1
  15700. fi
  15701. fi
  15702. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  15703. pbxlibdir=""
  15704. # if --with-ICONV=DIR has been specified, use it.
  15705. if test "x${ICONV_DIR}" != "x"; then
  15706. if test -d ${ICONV_DIR}/lib; then
  15707. pbxlibdir="-L${ICONV_DIR}/lib"
  15708. else
  15709. pbxlibdir="-L${ICONV_DIR}"
  15710. fi
  15711. fi
  15712. pbxfuncname="iconv_open"
  15713. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15714. AST_ICONV_FOUND=yes
  15715. else
  15716. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15717. CFLAGS="${CFLAGS} "
  15718. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  15719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
  15720. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  15721. if eval \${$as_ac_Lib+:} false; then :
  15722. $as_echo_n "(cached) " >&6
  15723. else
  15724. ac_check_lib_save_LIBS=$LIBS
  15725. LIBS="-liconv ${pbxlibdir} $LIBS"
  15726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15727. /* end confdefs.h. */
  15728. /* Override any GCC internal prototype to avoid an error.
  15729. Use char because int might match the return type of a GCC
  15730. builtin and then its argument prototype would still apply. */
  15731. #ifdef __cplusplus
  15732. extern "C"
  15733. #endif
  15734. char ${pbxfuncname} ();
  15735. int
  15736. main ()
  15737. {
  15738. return ${pbxfuncname} ();
  15739. ;
  15740. return 0;
  15741. }
  15742. _ACEOF
  15743. if ac_fn_c_try_link "$LINENO"; then :
  15744. eval "$as_ac_Lib=yes"
  15745. else
  15746. eval "$as_ac_Lib=no"
  15747. fi
  15748. rm -f core conftest.err conftest.$ac_objext \
  15749. conftest$ac_exeext conftest.$ac_ext
  15750. LIBS=$ac_check_lib_save_LIBS
  15751. fi
  15752. eval ac_res=\$$as_ac_Lib
  15753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15754. $as_echo "$ac_res" >&6; }
  15755. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15756. AST_ICONV_FOUND=yes
  15757. else
  15758. AST_ICONV_FOUND=no
  15759. fi
  15760. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15761. fi
  15762. # now check for the header.
  15763. if test "${AST_ICONV_FOUND}" = "yes"; then
  15764. ICONV_LIB="${pbxlibdir} -liconv "
  15765. # if --with-ICONV=DIR has been specified, use it.
  15766. if test "x${ICONV_DIR}" != "x"; then
  15767. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  15768. fi
  15769. ICONV_INCLUDE="${ICONV_INCLUDE} "
  15770. if test "xiconv.h" = "x" ; then # no header, assume found
  15771. ICONV_HEADER_FOUND="1"
  15772. else # check for the header
  15773. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15774. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  15775. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  15776. if test "x$ac_cv_header_iconv_h" = xyes; then :
  15777. ICONV_HEADER_FOUND=1
  15778. else
  15779. ICONV_HEADER_FOUND=0
  15780. fi
  15781. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15782. fi
  15783. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  15784. ICONV_LIB=""
  15785. ICONV_INCLUDE=""
  15786. else
  15787. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15788. ICONV_LIB=""
  15789. fi
  15790. PBX_ICONV=1
  15791. cat >>confdefs.h <<_ACEOF
  15792. #define HAVE_ICONV 1
  15793. _ACEOF
  15794. fi
  15795. fi
  15796. fi
  15797. # GNU libiconv #define's iconv_open to libiconv_open, so we need to search for that symbol
  15798. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  15799. pbxlibdir=""
  15800. # if --with-ICONV=DIR has been specified, use it.
  15801. if test "x${ICONV_DIR}" != "x"; then
  15802. if test -d ${ICONV_DIR}/lib; then
  15803. pbxlibdir="-L${ICONV_DIR}/lib"
  15804. else
  15805. pbxlibdir="-L${ICONV_DIR}"
  15806. fi
  15807. fi
  15808. pbxfuncname="libiconv_open"
  15809. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15810. AST_ICONV_FOUND=yes
  15811. else
  15812. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15813. CFLAGS="${CFLAGS} "
  15814. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  15815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
  15816. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  15817. if eval \${$as_ac_Lib+:} false; then :
  15818. $as_echo_n "(cached) " >&6
  15819. else
  15820. ac_check_lib_save_LIBS=$LIBS
  15821. LIBS="-liconv ${pbxlibdir} $LIBS"
  15822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15823. /* end confdefs.h. */
  15824. /* Override any GCC internal prototype to avoid an error.
  15825. Use char because int might match the return type of a GCC
  15826. builtin and then its argument prototype would still apply. */
  15827. #ifdef __cplusplus
  15828. extern "C"
  15829. #endif
  15830. char ${pbxfuncname} ();
  15831. int
  15832. main ()
  15833. {
  15834. return ${pbxfuncname} ();
  15835. ;
  15836. return 0;
  15837. }
  15838. _ACEOF
  15839. if ac_fn_c_try_link "$LINENO"; then :
  15840. eval "$as_ac_Lib=yes"
  15841. else
  15842. eval "$as_ac_Lib=no"
  15843. fi
  15844. rm -f core conftest.err conftest.$ac_objext \
  15845. conftest$ac_exeext conftest.$ac_ext
  15846. LIBS=$ac_check_lib_save_LIBS
  15847. fi
  15848. eval ac_res=\$$as_ac_Lib
  15849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15850. $as_echo "$ac_res" >&6; }
  15851. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15852. AST_ICONV_FOUND=yes
  15853. else
  15854. AST_ICONV_FOUND=no
  15855. fi
  15856. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15857. fi
  15858. # now check for the header.
  15859. if test "${AST_ICONV_FOUND}" = "yes"; then
  15860. ICONV_LIB="${pbxlibdir} -liconv "
  15861. # if --with-ICONV=DIR has been specified, use it.
  15862. if test "x${ICONV_DIR}" != "x"; then
  15863. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  15864. fi
  15865. ICONV_INCLUDE="${ICONV_INCLUDE} "
  15866. if test "xiconv.h" = "x" ; then # no header, assume found
  15867. ICONV_HEADER_FOUND="1"
  15868. else # check for the header
  15869. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15870. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  15871. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  15872. if test "x$ac_cv_header_iconv_h" = xyes; then :
  15873. ICONV_HEADER_FOUND=1
  15874. else
  15875. ICONV_HEADER_FOUND=0
  15876. fi
  15877. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15878. fi
  15879. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  15880. ICONV_LIB=""
  15881. ICONV_INCLUDE=""
  15882. else
  15883. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15884. ICONV_LIB=""
  15885. fi
  15886. PBX_ICONV=1
  15887. cat >>confdefs.h <<_ACEOF
  15888. #define HAVE_ICONV 1
  15889. _ACEOF
  15890. fi
  15891. fi
  15892. fi
  15893. # Some versions of Linux package iconv in glibc
  15894. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  15895. pbxlibdir=""
  15896. # if --with-ICONV=DIR has been specified, use it.
  15897. if test "x${ICONV_DIR}" != "x"; then
  15898. if test -d ${ICONV_DIR}/lib; then
  15899. pbxlibdir="-L${ICONV_DIR}/lib"
  15900. else
  15901. pbxlibdir="-L${ICONV_DIR}"
  15902. fi
  15903. fi
  15904. pbxfuncname="iconv_close"
  15905. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15906. AST_ICONV_FOUND=yes
  15907. else
  15908. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15909. CFLAGS="${CFLAGS} "
  15910. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  15911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  15912. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  15913. if eval \${$as_ac_Lib+:} false; then :
  15914. $as_echo_n "(cached) " >&6
  15915. else
  15916. ac_check_lib_save_LIBS=$LIBS
  15917. LIBS="-lc ${pbxlibdir} $LIBS"
  15918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15919. /* end confdefs.h. */
  15920. /* Override any GCC internal prototype to avoid an error.
  15921. Use char because int might match the return type of a GCC
  15922. builtin and then its argument prototype would still apply. */
  15923. #ifdef __cplusplus
  15924. extern "C"
  15925. #endif
  15926. char ${pbxfuncname} ();
  15927. int
  15928. main ()
  15929. {
  15930. return ${pbxfuncname} ();
  15931. ;
  15932. return 0;
  15933. }
  15934. _ACEOF
  15935. if ac_fn_c_try_link "$LINENO"; then :
  15936. eval "$as_ac_Lib=yes"
  15937. else
  15938. eval "$as_ac_Lib=no"
  15939. fi
  15940. rm -f core conftest.err conftest.$ac_objext \
  15941. conftest$ac_exeext conftest.$ac_ext
  15942. LIBS=$ac_check_lib_save_LIBS
  15943. fi
  15944. eval ac_res=\$$as_ac_Lib
  15945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15946. $as_echo "$ac_res" >&6; }
  15947. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15948. AST_ICONV_FOUND=yes
  15949. else
  15950. AST_ICONV_FOUND=no
  15951. fi
  15952. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15953. fi
  15954. # now check for the header.
  15955. if test "${AST_ICONV_FOUND}" = "yes"; then
  15956. ICONV_LIB="${pbxlibdir} -lc "
  15957. # if --with-ICONV=DIR has been specified, use it.
  15958. if test "x${ICONV_DIR}" != "x"; then
  15959. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  15960. fi
  15961. ICONV_INCLUDE="${ICONV_INCLUDE} "
  15962. if test "xiconv.h" = "x" ; then # no header, assume found
  15963. ICONV_HEADER_FOUND="1"
  15964. else # check for the header
  15965. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15966. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  15967. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  15968. if test "x$ac_cv_header_iconv_h" = xyes; then :
  15969. ICONV_HEADER_FOUND=1
  15970. else
  15971. ICONV_HEADER_FOUND=0
  15972. fi
  15973. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15974. fi
  15975. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  15976. ICONV_LIB=""
  15977. ICONV_INCLUDE=""
  15978. else
  15979. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15980. ICONV_LIB=""
  15981. fi
  15982. PBX_ICONV=1
  15983. cat >>confdefs.h <<_ACEOF
  15984. #define HAVE_ICONV 1
  15985. _ACEOF
  15986. fi
  15987. fi
  15988. fi
  15989. # If ical.h is NOT in the libical directory, then it is of a version insufficient for us.
  15990. if test "x${PBX_ICAL}" != "x1" -a "${USE_ICAL}" != "no"; then
  15991. pbxlibdir=""
  15992. # if --with-ICAL=DIR has been specified, use it.
  15993. if test "x${ICAL_DIR}" != "x"; then
  15994. if test -d ${ICAL_DIR}/lib; then
  15995. pbxlibdir="-L${ICAL_DIR}/lib"
  15996. else
  15997. pbxlibdir="-L${ICAL_DIR}"
  15998. fi
  15999. fi
  16000. pbxfuncname="icaltimezone_get_utc_timezone"
  16001. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16002. AST_ICAL_FOUND=yes
  16003. else
  16004. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16005. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  16006. as_ac_Lib=`$as_echo "ac_cv_lib_ical_${pbxfuncname}" | $as_tr_sh`
  16007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lical" >&5
  16008. $as_echo_n "checking for ${pbxfuncname} in -lical... " >&6; }
  16009. if eval \${$as_ac_Lib+:} false; then :
  16010. $as_echo_n "(cached) " >&6
  16011. else
  16012. ac_check_lib_save_LIBS=$LIBS
  16013. LIBS="-lical ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  16014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16015. /* end confdefs.h. */
  16016. /* Override any GCC internal prototype to avoid an error.
  16017. Use char because int might match the return type of a GCC
  16018. builtin and then its argument prototype would still apply. */
  16019. #ifdef __cplusplus
  16020. extern "C"
  16021. #endif
  16022. char ${pbxfuncname} ();
  16023. int
  16024. main ()
  16025. {
  16026. return ${pbxfuncname} ();
  16027. ;
  16028. return 0;
  16029. }
  16030. _ACEOF
  16031. if ac_fn_c_try_link "$LINENO"; then :
  16032. eval "$as_ac_Lib=yes"
  16033. else
  16034. eval "$as_ac_Lib=no"
  16035. fi
  16036. rm -f core conftest.err conftest.$ac_objext \
  16037. conftest$ac_exeext conftest.$ac_ext
  16038. LIBS=$ac_check_lib_save_LIBS
  16039. fi
  16040. eval ac_res=\$$as_ac_Lib
  16041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16042. $as_echo "$ac_res" >&6; }
  16043. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16044. AST_ICAL_FOUND=yes
  16045. else
  16046. AST_ICAL_FOUND=no
  16047. fi
  16048. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16049. fi
  16050. # now check for the header.
  16051. if test "${AST_ICAL_FOUND}" = "yes"; then
  16052. ICAL_LIB="${pbxlibdir} -lical ${PTHREAD_LIBS}"
  16053. # if --with-ICAL=DIR has been specified, use it.
  16054. if test "x${ICAL_DIR}" != "x"; then
  16055. ICAL_INCLUDE="-I${ICAL_DIR}/include"
  16056. fi
  16057. ICAL_INCLUDE="${ICAL_INCLUDE} ${PTHREAD_CFLAGS}"
  16058. if test "xlibical/ical.h" = "x" ; then # no header, assume found
  16059. ICAL_HEADER_FOUND="1"
  16060. else # check for the header
  16061. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16062. CPPFLAGS="${CPPFLAGS} ${ICAL_INCLUDE}"
  16063. ac_fn_c_check_header_mongrel "$LINENO" "libical/ical.h" "ac_cv_header_libical_ical_h" "$ac_includes_default"
  16064. if test "x$ac_cv_header_libical_ical_h" = xyes; then :
  16065. ICAL_HEADER_FOUND=1
  16066. else
  16067. ICAL_HEADER_FOUND=0
  16068. fi
  16069. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16070. fi
  16071. if test "x${ICAL_HEADER_FOUND}" = "x0" ; then
  16072. ICAL_LIB=""
  16073. ICAL_INCLUDE=""
  16074. else
  16075. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16076. ICAL_LIB=""
  16077. fi
  16078. PBX_ICAL=1
  16079. cat >>confdefs.h <<_ACEOF
  16080. #define HAVE_ICAL 1
  16081. _ACEOF
  16082. fi
  16083. fi
  16084. fi
  16085. if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
  16086. pbxlibdir=""
  16087. # if --with-IKSEMEL=DIR has been specified, use it.
  16088. if test "x${IKSEMEL_DIR}" != "x"; then
  16089. if test -d ${IKSEMEL_DIR}/lib; then
  16090. pbxlibdir="-L${IKSEMEL_DIR}/lib"
  16091. else
  16092. pbxlibdir="-L${IKSEMEL_DIR}"
  16093. fi
  16094. fi
  16095. pbxfuncname="iks_start_sasl"
  16096. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16097. AST_IKSEMEL_FOUND=yes
  16098. else
  16099. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16100. CFLAGS="${CFLAGS} "
  16101. as_ac_Lib=`$as_echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
  16102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liksemel" >&5
  16103. $as_echo_n "checking for ${pbxfuncname} in -liksemel... " >&6; }
  16104. if eval \${$as_ac_Lib+:} false; then :
  16105. $as_echo_n "(cached) " >&6
  16106. else
  16107. ac_check_lib_save_LIBS=$LIBS
  16108. LIBS="-liksemel ${pbxlibdir} $LIBS"
  16109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16110. /* end confdefs.h. */
  16111. /* Override any GCC internal prototype to avoid an error.
  16112. Use char because int might match the return type of a GCC
  16113. builtin and then its argument prototype would still apply. */
  16114. #ifdef __cplusplus
  16115. extern "C"
  16116. #endif
  16117. char ${pbxfuncname} ();
  16118. int
  16119. main ()
  16120. {
  16121. return ${pbxfuncname} ();
  16122. ;
  16123. return 0;
  16124. }
  16125. _ACEOF
  16126. if ac_fn_c_try_link "$LINENO"; then :
  16127. eval "$as_ac_Lib=yes"
  16128. else
  16129. eval "$as_ac_Lib=no"
  16130. fi
  16131. rm -f core conftest.err conftest.$ac_objext \
  16132. conftest$ac_exeext conftest.$ac_ext
  16133. LIBS=$ac_check_lib_save_LIBS
  16134. fi
  16135. eval ac_res=\$$as_ac_Lib
  16136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16137. $as_echo "$ac_res" >&6; }
  16138. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16139. AST_IKSEMEL_FOUND=yes
  16140. else
  16141. AST_IKSEMEL_FOUND=no
  16142. fi
  16143. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16144. fi
  16145. # now check for the header.
  16146. if test "${AST_IKSEMEL_FOUND}" = "yes"; then
  16147. IKSEMEL_LIB="${pbxlibdir} -liksemel "
  16148. # if --with-IKSEMEL=DIR has been specified, use it.
  16149. if test "x${IKSEMEL_DIR}" != "x"; then
  16150. IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
  16151. fi
  16152. IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
  16153. if test "xiksemel.h" = "x" ; then # no header, assume found
  16154. IKSEMEL_HEADER_FOUND="1"
  16155. else # check for the header
  16156. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16157. CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
  16158. ac_fn_c_check_header_mongrel "$LINENO" "iksemel.h" "ac_cv_header_iksemel_h" "$ac_includes_default"
  16159. if test "x$ac_cv_header_iksemel_h" = xyes; then :
  16160. IKSEMEL_HEADER_FOUND=1
  16161. else
  16162. IKSEMEL_HEADER_FOUND=0
  16163. fi
  16164. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16165. fi
  16166. if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
  16167. IKSEMEL_LIB=""
  16168. IKSEMEL_INCLUDE=""
  16169. else
  16170. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16171. IKSEMEL_LIB=""
  16172. fi
  16173. PBX_IKSEMEL=1
  16174. cat >>confdefs.h <<_ACEOF
  16175. #define HAVE_IKSEMEL 1
  16176. _ACEOF
  16177. fi
  16178. fi
  16179. fi
  16180. if test "${USE_IMAP_TK}" != "no"; then
  16181. saved_cppflags="${CPPFLAGS}"
  16182. saved_libs="${LIBS}"
  16183. switch_to_system_on_failure="no"
  16184. if test "${IMAP_TK_DIR}" = ""; then
  16185. IMAP_TK_DIR=`pwd`"/../imap-2004g"
  16186. switch_to_system_on_failure="yes"
  16187. fi
  16188. if test "${IMAP_TK_DIR}" != "system"; then
  16189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UW IMAP Toolkit c-client library" >&5
  16190. $as_echo_n "checking for UW IMAP Toolkit c-client library... " >&6; }
  16191. if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
  16192. imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
  16193. fi
  16194. imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
  16195. imap_include="-I${IMAP_TK_DIR}/c-client"
  16196. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  16197. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  16198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16199. /* end confdefs.h. */
  16200. #include "c-client.h"
  16201. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16202. {
  16203. }
  16204. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16205. {
  16206. }
  16207. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16208. {
  16209. }
  16210. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16211. {
  16212. }
  16213. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16214. {
  16215. }
  16216. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16217. {
  16218. }
  16219. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16220. {
  16221. }
  16222. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16223. {
  16224. }
  16225. void mm_log (char *string,long errflg)
  16226. {
  16227. }
  16228. void mm_dlog (char *string)
  16229. {
  16230. }
  16231. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16232. {
  16233. }
  16234. void mm_critical (MAILSTREAM *stream)
  16235. {
  16236. }
  16237. void mm_nocritical (MAILSTREAM *stream)
  16238. {
  16239. }
  16240. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16241. {
  16242. }
  16243. void mm_fatal (char *string)
  16244. {
  16245. }
  16246. int
  16247. main ()
  16248. {
  16249. MAILSTREAM *foo = mail_open(NULL, "", 0);
  16250. ;
  16251. return 0;
  16252. }
  16253. _ACEOF
  16254. if ac_fn_c_try_link "$LINENO"; then :
  16255. ac_cv_imap_tk="yes"
  16256. else
  16257. ac_cv_imap_tk="no"
  16258. fi
  16259. rm -f core conftest.err conftest.$ac_objext \
  16260. conftest$ac_exeext conftest.$ac_ext
  16261. if test "${ac_cv_imap_tk}" = "yes"; then
  16262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16263. /* end confdefs.h. */
  16264. #include "c-client.h"
  16265. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16266. {
  16267. }
  16268. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16269. {
  16270. }
  16271. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16272. {
  16273. }
  16274. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16275. {
  16276. }
  16277. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16278. {
  16279. }
  16280. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16281. {
  16282. }
  16283. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16284. {
  16285. }
  16286. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16287. {
  16288. }
  16289. void mm_log (char *string,long errflg)
  16290. {
  16291. }
  16292. void mm_dlog (char *string)
  16293. {
  16294. }
  16295. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16296. {
  16297. }
  16298. void mm_critical (MAILSTREAM *stream)
  16299. {
  16300. }
  16301. void mm_nocritical (MAILSTREAM *stream)
  16302. {
  16303. }
  16304. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16305. {
  16306. }
  16307. void mm_fatal (char *string)
  16308. {
  16309. }
  16310. int
  16311. main ()
  16312. {
  16313. long check = mail_expunge_full(NULL, "", 0);
  16314. ;
  16315. return 0;
  16316. }
  16317. _ACEOF
  16318. if ac_fn_c_try_link "$LINENO"; then :
  16319. ac_cv_imap_tk2006="yes"
  16320. else
  16321. ac_cv_imap_tk2006="no"
  16322. fi
  16323. rm -f core conftest.err conftest.$ac_objext \
  16324. conftest$ac_exeext conftest.$ac_ext
  16325. fi
  16326. CPPFLAGS="${saved_cppflags}"
  16327. LIBS="${saved_libs}"
  16328. if test "${ac_cv_imap_tk}" = "no"; then
  16329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16330. $as_echo "no" >&6; }
  16331. if test "${switch_to_system_on_failure}" = "yes"; then
  16332. IMAP_TK_DIR="system"
  16333. else #This means they specified a directory. Search for a package installation there too
  16334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  16335. $as_echo_n "checking for system c-client library...... " >&6; }
  16336. CPPFLAGS="${saved_cppflags}"
  16337. LIBS="${saved_libs}"
  16338. imap_include="-I${IMAP_TK_DIR}/include"
  16339. imap_ldflags="-L${IMAP_TK_DIR}/lib"
  16340. imap_libs="-lc-client"
  16341. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  16342. LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
  16343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16344. /* end confdefs.h. */
  16345. #include "c-client.h"
  16346. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16347. {
  16348. }
  16349. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16350. {
  16351. }
  16352. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16353. {
  16354. }
  16355. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16356. {
  16357. }
  16358. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16359. {
  16360. }
  16361. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16362. {
  16363. }
  16364. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16365. {
  16366. }
  16367. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16368. {
  16369. }
  16370. void mm_log (char *string,long errflg)
  16371. {
  16372. }
  16373. void mm_dlog (char *string)
  16374. {
  16375. }
  16376. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16377. {
  16378. }
  16379. void mm_critical (MAILSTREAM *stream)
  16380. {
  16381. }
  16382. void mm_nocritical (MAILSTREAM *stream)
  16383. {
  16384. }
  16385. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16386. {
  16387. }
  16388. void mm_fatal (char *string)
  16389. {
  16390. }
  16391. int
  16392. main ()
  16393. {
  16394. MAILSTREAM *foo = mail_open(NULL, "", 0);
  16395. ;
  16396. return 0;
  16397. }
  16398. _ACEOF
  16399. if ac_fn_c_try_link "$LINENO"; then :
  16400. ac_cv_imap_tk="yes"
  16401. else
  16402. ac_cv_imap_tk="no"
  16403. fi
  16404. rm -f core conftest.err conftest.$ac_objext \
  16405. conftest$ac_exeext conftest.$ac_ext
  16406. if test "${ac_cv_imap_tk}" = "yes"; then
  16407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16408. /* end confdefs.h. */
  16409. #include "c-client.h"
  16410. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16411. {
  16412. }
  16413. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16414. {
  16415. }
  16416. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16417. {
  16418. }
  16419. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16420. {
  16421. }
  16422. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16423. {
  16424. }
  16425. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16426. {
  16427. }
  16428. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16429. {
  16430. }
  16431. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16432. {
  16433. }
  16434. void mm_log (char *string,long errflg)
  16435. {
  16436. }
  16437. void mm_dlog (char *string)
  16438. {
  16439. }
  16440. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16441. {
  16442. }
  16443. void mm_critical (MAILSTREAM *stream)
  16444. {
  16445. }
  16446. void mm_nocritical (MAILSTREAM *stream)
  16447. {
  16448. }
  16449. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16450. {
  16451. }
  16452. void mm_fatal (char *string)
  16453. {
  16454. }
  16455. int
  16456. main ()
  16457. {
  16458. long check = mail_expunge_full(NULL, "", 0);
  16459. ;
  16460. return 0;
  16461. }
  16462. _ACEOF
  16463. if ac_fn_c_try_link "$LINENO"; then :
  16464. ac_cv_imap_tk2006="yes"
  16465. else
  16466. ac_cv_imap_tk2006="no"
  16467. fi
  16468. rm -f core conftest.err conftest.$ac_objext \
  16469. conftest$ac_exeext conftest.$ac_ext
  16470. fi
  16471. fi
  16472. fi
  16473. fi
  16474. if test "${IMAP_TK_DIR}" = "system"; then
  16475. #We will enter here if user specified "system" or if any of above checks failed
  16476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  16477. $as_echo_n "checking for system c-client library...... " >&6; }
  16478. CPPFLAGS="${saved_cppflags}"
  16479. LIBS="${saved_libs}"
  16480. imap_ldflags=""
  16481. imap_libs="-lc-client"
  16482. imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
  16483. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  16484. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  16485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16486. /* end confdefs.h. */
  16487. #include <stdio.h>
  16488. #include <imap/c-client.h>
  16489. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16490. {
  16491. }
  16492. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16493. {
  16494. }
  16495. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16496. {
  16497. }
  16498. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16499. {
  16500. }
  16501. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16502. {
  16503. }
  16504. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16505. {
  16506. }
  16507. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16508. {
  16509. }
  16510. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16511. {
  16512. }
  16513. void mm_log (char *string,long errflg)
  16514. {
  16515. }
  16516. void mm_dlog (char *string)
  16517. {
  16518. }
  16519. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16520. {
  16521. }
  16522. void mm_critical (MAILSTREAM *stream)
  16523. {
  16524. }
  16525. void mm_nocritical (MAILSTREAM *stream)
  16526. {
  16527. }
  16528. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16529. {
  16530. }
  16531. void mm_fatal (char *string)
  16532. {
  16533. }
  16534. int
  16535. main ()
  16536. {
  16537. MAILSTREAM *foo = mail_open(NULL, "", 0);
  16538. ;
  16539. return 0;
  16540. }
  16541. _ACEOF
  16542. if ac_fn_c_try_link "$LINENO"; then :
  16543. ac_cv_imap_tk="yes"
  16544. else
  16545. ac_cv_imap_tk="no"
  16546. fi
  16547. rm -f core conftest.err conftest.$ac_objext \
  16548. conftest$ac_exeext conftest.$ac_ext
  16549. if test "${ac_cv_imap_tk}" = "yes"; then
  16550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16551. /* end confdefs.h. */
  16552. #include <stdio.h>
  16553. #include <imap/c-client.h>
  16554. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16555. {
  16556. }
  16557. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16558. {
  16559. }
  16560. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16561. {
  16562. }
  16563. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16564. {
  16565. }
  16566. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16567. {
  16568. }
  16569. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16570. {
  16571. }
  16572. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16573. {
  16574. }
  16575. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16576. {
  16577. }
  16578. void mm_log (char *string,long errflg)
  16579. {
  16580. }
  16581. void mm_dlog (char *string)
  16582. {
  16583. }
  16584. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16585. {
  16586. }
  16587. void mm_critical (MAILSTREAM *stream)
  16588. {
  16589. }
  16590. void mm_nocritical (MAILSTREAM *stream)
  16591. {
  16592. }
  16593. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16594. {
  16595. }
  16596. void mm_fatal (char *string)
  16597. {
  16598. }
  16599. int
  16600. main ()
  16601. {
  16602. long check = mail_expunge_full(NULL, "", 0);
  16603. ;
  16604. return 0;
  16605. }
  16606. _ACEOF
  16607. if ac_fn_c_try_link "$LINENO"; then :
  16608. ac_cv_imap_tk2006="yes"
  16609. else
  16610. ac_cv_imap_tk2006="no"
  16611. fi
  16612. rm -f core conftest.err conftest.$ac_objext \
  16613. conftest$ac_exeext conftest.$ac_ext
  16614. else #looking in imap directory didn't work, try c-client
  16615. imap_ldflags=""
  16616. imap_libs="-lc-client"
  16617. imap_include="-DUSE_SYSTEM_CCLIENT"
  16618. CPPFLAGS="${saved_cppflags}"
  16619. LIBS="${saved_libs}"
  16620. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  16621. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  16622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16623. /* end confdefs.h. */
  16624. #include <stdio.h>
  16625. #include <c-client/c-client.h>
  16626. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16627. {
  16628. }
  16629. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16630. {
  16631. }
  16632. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16633. {
  16634. }
  16635. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16636. {
  16637. }
  16638. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16639. {
  16640. }
  16641. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16642. {
  16643. }
  16644. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16645. {
  16646. }
  16647. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16648. {
  16649. }
  16650. void mm_log (char *string,long errflg)
  16651. {
  16652. }
  16653. void mm_dlog (char *string)
  16654. {
  16655. }
  16656. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16657. {
  16658. }
  16659. void mm_critical (MAILSTREAM *stream)
  16660. {
  16661. }
  16662. void mm_nocritical (MAILSTREAM *stream)
  16663. {
  16664. }
  16665. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16666. {
  16667. }
  16668. void mm_fatal (char *string)
  16669. {
  16670. }
  16671. int
  16672. main ()
  16673. {
  16674. MAILSTREAM *foo = mail_open(NULL, "", 0);
  16675. ;
  16676. return 0;
  16677. }
  16678. _ACEOF
  16679. if ac_fn_c_try_link "$LINENO"; then :
  16680. ac_cv_imap_tk="yes"
  16681. else
  16682. ac_cv_imap_tk="no"
  16683. fi
  16684. rm -f core conftest.err conftest.$ac_objext \
  16685. conftest$ac_exeext conftest.$ac_ext
  16686. if test "${ac_cv_imap_tk}" = "yes"; then
  16687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16688. /* end confdefs.h. */
  16689. #include <stdio.h>
  16690. #include <c-client/c-client.h>
  16691. void mm_searched (MAILSTREAM *stream,unsigned long number)
  16692. {
  16693. }
  16694. void mm_exists (MAILSTREAM *stream,unsigned long number)
  16695. {
  16696. }
  16697. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  16698. {
  16699. }
  16700. void mm_flags (MAILSTREAM *stream,unsigned long number)
  16701. {
  16702. }
  16703. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  16704. {
  16705. }
  16706. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16707. {
  16708. }
  16709. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  16710. {
  16711. }
  16712. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  16713. {
  16714. }
  16715. void mm_log (char *string,long errflg)
  16716. {
  16717. }
  16718. void mm_dlog (char *string)
  16719. {
  16720. }
  16721. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  16722. {
  16723. }
  16724. void mm_critical (MAILSTREAM *stream)
  16725. {
  16726. }
  16727. void mm_nocritical (MAILSTREAM *stream)
  16728. {
  16729. }
  16730. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  16731. {
  16732. }
  16733. void mm_fatal (char *string)
  16734. {
  16735. }
  16736. int
  16737. main ()
  16738. {
  16739. long check = mail_expunge_full(NULL, "", 0);
  16740. ;
  16741. return 0;
  16742. }
  16743. _ACEOF
  16744. if ac_fn_c_try_link "$LINENO"; then :
  16745. ac_cv_imap_tk2006="yes"
  16746. else
  16747. ac_cv_imap_tk2006="no"
  16748. fi
  16749. rm -f core conftest.err conftest.$ac_objext \
  16750. conftest$ac_exeext conftest.$ac_ext
  16751. fi
  16752. fi
  16753. fi
  16754. if test "${ac_cv_imap_tk}" = "yes"; then
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16756. $as_echo "yes" >&6; }
  16757. IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
  16758. IMAP_TK_INCLUDE="${imap_include}"
  16759. PBX_IMAP_TK=1
  16760. $as_echo "#define HAVE_IMAP_TK 1" >>confdefs.h
  16761. if test "${ac_cv_imap_tk2006}" = "yes"; then
  16762. $as_echo "#define HAVE_IMAP_TK2006 1" >>confdefs.h
  16763. fi
  16764. else
  16765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16766. $as_echo "no" >&6; }
  16767. fi
  16768. CPPFLAGS="${saved_cppflags}"
  16769. LIBS="${saved_libs}"
  16770. fi
  16771. if test "x${PBX_IODBC}" != "x1" -a "${USE_IODBC}" != "no"; then
  16772. pbxlibdir=""
  16773. # if --with-IODBC=DIR has been specified, use it.
  16774. if test "x${IODBC_DIR}" != "x"; then
  16775. if test -d ${IODBC_DIR}/lib; then
  16776. pbxlibdir="-L${IODBC_DIR}/lib"
  16777. else
  16778. pbxlibdir="-L${IODBC_DIR}"
  16779. fi
  16780. fi
  16781. pbxfuncname="SQLConnect"
  16782. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16783. AST_IODBC_FOUND=yes
  16784. else
  16785. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16786. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  16787. as_ac_Lib=`$as_echo "ac_cv_lib_iodbc_${pbxfuncname}" | $as_tr_sh`
  16788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liodbc" >&5
  16789. $as_echo_n "checking for ${pbxfuncname} in -liodbc... " >&6; }
  16790. if eval \${$as_ac_Lib+:} false; then :
  16791. $as_echo_n "(cached) " >&6
  16792. else
  16793. ac_check_lib_save_LIBS=$LIBS
  16794. LIBS="-liodbc ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  16795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16796. /* end confdefs.h. */
  16797. /* Override any GCC internal prototype to avoid an error.
  16798. Use char because int might match the return type of a GCC
  16799. builtin and then its argument prototype would still apply. */
  16800. #ifdef __cplusplus
  16801. extern "C"
  16802. #endif
  16803. char ${pbxfuncname} ();
  16804. int
  16805. main ()
  16806. {
  16807. return ${pbxfuncname} ();
  16808. ;
  16809. return 0;
  16810. }
  16811. _ACEOF
  16812. if ac_fn_c_try_link "$LINENO"; then :
  16813. eval "$as_ac_Lib=yes"
  16814. else
  16815. eval "$as_ac_Lib=no"
  16816. fi
  16817. rm -f core conftest.err conftest.$ac_objext \
  16818. conftest$ac_exeext conftest.$ac_ext
  16819. LIBS=$ac_check_lib_save_LIBS
  16820. fi
  16821. eval ac_res=\$$as_ac_Lib
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16823. $as_echo "$ac_res" >&6; }
  16824. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16825. AST_IODBC_FOUND=yes
  16826. else
  16827. AST_IODBC_FOUND=no
  16828. fi
  16829. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16830. fi
  16831. # now check for the header.
  16832. if test "${AST_IODBC_FOUND}" = "yes"; then
  16833. IODBC_LIB="${pbxlibdir} -liodbc ${PTHREAD_LIBS}"
  16834. # if --with-IODBC=DIR has been specified, use it.
  16835. if test "x${IODBC_DIR}" != "x"; then
  16836. IODBC_INCLUDE="-I${IODBC_DIR}/include"
  16837. fi
  16838. IODBC_INCLUDE="${IODBC_INCLUDE} ${PTHREAD_CFLAGS}"
  16839. if test "xsql.h" = "x" ; then # no header, assume found
  16840. IODBC_HEADER_FOUND="1"
  16841. else # check for the header
  16842. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16843. CPPFLAGS="${CPPFLAGS} ${IODBC_INCLUDE}"
  16844. ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  16845. if test "x$ac_cv_header_sql_h" = xyes; then :
  16846. IODBC_HEADER_FOUND=1
  16847. else
  16848. IODBC_HEADER_FOUND=0
  16849. fi
  16850. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16851. fi
  16852. if test "x${IODBC_HEADER_FOUND}" = "x0" ; then
  16853. IODBC_LIB=""
  16854. IODBC_INCLUDE=""
  16855. else
  16856. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16857. IODBC_LIB=""
  16858. fi
  16859. PBX_IODBC=1
  16860. cat >>confdefs.h <<_ACEOF
  16861. #define HAVE_IODBC 1
  16862. _ACEOF
  16863. fi
  16864. fi
  16865. fi
  16866. if test "x${PBX_INOTIFY}" != "x1" -a "${USE_INOTIFY}" != "no"; then
  16867. pbxlibdir=""
  16868. # if --with-INOTIFY=DIR has been specified, use it.
  16869. if test "x${INOTIFY_DIR}" != "x"; then
  16870. if test -d ${INOTIFY_DIR}/lib; then
  16871. pbxlibdir="-L${INOTIFY_DIR}/lib"
  16872. else
  16873. pbxlibdir="-L${INOTIFY_DIR}"
  16874. fi
  16875. fi
  16876. pbxfuncname="inotify_init"
  16877. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16878. AST_INOTIFY_FOUND=yes
  16879. else
  16880. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16881. CFLAGS="${CFLAGS} "
  16882. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  16883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  16884. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  16885. if eval \${$as_ac_Lib+:} false; then :
  16886. $as_echo_n "(cached) " >&6
  16887. else
  16888. ac_check_lib_save_LIBS=$LIBS
  16889. LIBS="-lc ${pbxlibdir} $LIBS"
  16890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16891. /* end confdefs.h. */
  16892. /* Override any GCC internal prototype to avoid an error.
  16893. Use char because int might match the return type of a GCC
  16894. builtin and then its argument prototype would still apply. */
  16895. #ifdef __cplusplus
  16896. extern "C"
  16897. #endif
  16898. char ${pbxfuncname} ();
  16899. int
  16900. main ()
  16901. {
  16902. return ${pbxfuncname} ();
  16903. ;
  16904. return 0;
  16905. }
  16906. _ACEOF
  16907. if ac_fn_c_try_link "$LINENO"; then :
  16908. eval "$as_ac_Lib=yes"
  16909. else
  16910. eval "$as_ac_Lib=no"
  16911. fi
  16912. rm -f core conftest.err conftest.$ac_objext \
  16913. conftest$ac_exeext conftest.$ac_ext
  16914. LIBS=$ac_check_lib_save_LIBS
  16915. fi
  16916. eval ac_res=\$$as_ac_Lib
  16917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16918. $as_echo "$ac_res" >&6; }
  16919. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16920. AST_INOTIFY_FOUND=yes
  16921. else
  16922. AST_INOTIFY_FOUND=no
  16923. fi
  16924. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16925. fi
  16926. # now check for the header.
  16927. if test "${AST_INOTIFY_FOUND}" = "yes"; then
  16928. INOTIFY_LIB="${pbxlibdir} -lc "
  16929. # if --with-INOTIFY=DIR has been specified, use it.
  16930. if test "x${INOTIFY_DIR}" != "x"; then
  16931. INOTIFY_INCLUDE="-I${INOTIFY_DIR}/include"
  16932. fi
  16933. INOTIFY_INCLUDE="${INOTIFY_INCLUDE} "
  16934. if test "xsys/inotify.h" = "x" ; then # no header, assume found
  16935. INOTIFY_HEADER_FOUND="1"
  16936. else # check for the header
  16937. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16938. CPPFLAGS="${CPPFLAGS} ${INOTIFY_INCLUDE}"
  16939. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  16940. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  16941. INOTIFY_HEADER_FOUND=1
  16942. else
  16943. INOTIFY_HEADER_FOUND=0
  16944. fi
  16945. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16946. fi
  16947. if test "x${INOTIFY_HEADER_FOUND}" = "x0" ; then
  16948. INOTIFY_LIB=""
  16949. INOTIFY_INCLUDE=""
  16950. else
  16951. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16952. INOTIFY_LIB=""
  16953. fi
  16954. PBX_INOTIFY=1
  16955. cat >>confdefs.h <<_ACEOF
  16956. #define HAVE_INOTIFY 1
  16957. _ACEOF
  16958. fi
  16959. fi
  16960. fi
  16961. if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
  16962. pbxlibdir=""
  16963. # if --with-JACK=DIR has been specified, use it.
  16964. if test "x${JACK_DIR}" != "x"; then
  16965. if test -d ${JACK_DIR}/lib; then
  16966. pbxlibdir="-L${JACK_DIR}/lib"
  16967. else
  16968. pbxlibdir="-L${JACK_DIR}"
  16969. fi
  16970. fi
  16971. pbxfuncname="jack_activate"
  16972. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16973. AST_JACK_FOUND=yes
  16974. else
  16975. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16976. CFLAGS="${CFLAGS} "
  16977. as_ac_Lib=`$as_echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
  16978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ljack" >&5
  16979. $as_echo_n "checking for ${pbxfuncname} in -ljack... " >&6; }
  16980. if eval \${$as_ac_Lib+:} false; then :
  16981. $as_echo_n "(cached) " >&6
  16982. else
  16983. ac_check_lib_save_LIBS=$LIBS
  16984. LIBS="-ljack ${pbxlibdir} $LIBS"
  16985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16986. /* end confdefs.h. */
  16987. /* Override any GCC internal prototype to avoid an error.
  16988. Use char because int might match the return type of a GCC
  16989. builtin and then its argument prototype would still apply. */
  16990. #ifdef __cplusplus
  16991. extern "C"
  16992. #endif
  16993. char ${pbxfuncname} ();
  16994. int
  16995. main ()
  16996. {
  16997. return ${pbxfuncname} ();
  16998. ;
  16999. return 0;
  17000. }
  17001. _ACEOF
  17002. if ac_fn_c_try_link "$LINENO"; then :
  17003. eval "$as_ac_Lib=yes"
  17004. else
  17005. eval "$as_ac_Lib=no"
  17006. fi
  17007. rm -f core conftest.err conftest.$ac_objext \
  17008. conftest$ac_exeext conftest.$ac_ext
  17009. LIBS=$ac_check_lib_save_LIBS
  17010. fi
  17011. eval ac_res=\$$as_ac_Lib
  17012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17013. $as_echo "$ac_res" >&6; }
  17014. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17015. AST_JACK_FOUND=yes
  17016. else
  17017. AST_JACK_FOUND=no
  17018. fi
  17019. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17020. fi
  17021. # now check for the header.
  17022. if test "${AST_JACK_FOUND}" = "yes"; then
  17023. JACK_LIB="${pbxlibdir} -ljack "
  17024. # if --with-JACK=DIR has been specified, use it.
  17025. if test "x${JACK_DIR}" != "x"; then
  17026. JACK_INCLUDE="-I${JACK_DIR}/include"
  17027. fi
  17028. JACK_INCLUDE="${JACK_INCLUDE} "
  17029. if test "xjack/jack.h" = "x" ; then # no header, assume found
  17030. JACK_HEADER_FOUND="1"
  17031. else # check for the header
  17032. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17033. CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
  17034. ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
  17035. if test "x$ac_cv_header_jack_jack_h" = xyes; then :
  17036. JACK_HEADER_FOUND=1
  17037. else
  17038. JACK_HEADER_FOUND=0
  17039. fi
  17040. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17041. fi
  17042. if test "x${JACK_HEADER_FOUND}" = "x0" ; then
  17043. JACK_LIB=""
  17044. JACK_INCLUDE=""
  17045. else
  17046. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17047. JACK_LIB=""
  17048. fi
  17049. PBX_JACK=1
  17050. cat >>confdefs.h <<_ACEOF
  17051. #define HAVE_JACK 1
  17052. _ACEOF
  17053. fi
  17054. fi
  17055. fi
  17056. # BSD (and OS X) equivalent of inotify
  17057. if test "x${PBX_KQUEUE}" != "x1" -a "${USE_KQUEUE}" != "no"; then
  17058. pbxlibdir=""
  17059. # if --with-KQUEUE=DIR has been specified, use it.
  17060. if test "x${KQUEUE_DIR}" != "x"; then
  17061. if test -d ${KQUEUE_DIR}/lib; then
  17062. pbxlibdir="-L${KQUEUE_DIR}/lib"
  17063. else
  17064. pbxlibdir="-L${KQUEUE_DIR}"
  17065. fi
  17066. fi
  17067. pbxfuncname="kqueue"
  17068. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17069. AST_KQUEUE_FOUND=yes
  17070. else
  17071. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17072. CFLAGS="${CFLAGS} "
  17073. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  17074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  17075. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  17076. if eval \${$as_ac_Lib+:} false; then :
  17077. $as_echo_n "(cached) " >&6
  17078. else
  17079. ac_check_lib_save_LIBS=$LIBS
  17080. LIBS="-lc ${pbxlibdir} $LIBS"
  17081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17082. /* end confdefs.h. */
  17083. /* Override any GCC internal prototype to avoid an error.
  17084. Use char because int might match the return type of a GCC
  17085. builtin and then its argument prototype would still apply. */
  17086. #ifdef __cplusplus
  17087. extern "C"
  17088. #endif
  17089. char ${pbxfuncname} ();
  17090. int
  17091. main ()
  17092. {
  17093. return ${pbxfuncname} ();
  17094. ;
  17095. return 0;
  17096. }
  17097. _ACEOF
  17098. if ac_fn_c_try_link "$LINENO"; then :
  17099. eval "$as_ac_Lib=yes"
  17100. else
  17101. eval "$as_ac_Lib=no"
  17102. fi
  17103. rm -f core conftest.err conftest.$ac_objext \
  17104. conftest$ac_exeext conftest.$ac_ext
  17105. LIBS=$ac_check_lib_save_LIBS
  17106. fi
  17107. eval ac_res=\$$as_ac_Lib
  17108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17109. $as_echo "$ac_res" >&6; }
  17110. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17111. AST_KQUEUE_FOUND=yes
  17112. else
  17113. AST_KQUEUE_FOUND=no
  17114. fi
  17115. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17116. fi
  17117. # now check for the header.
  17118. if test "${AST_KQUEUE_FOUND}" = "yes"; then
  17119. KQUEUE_LIB="${pbxlibdir} -lc "
  17120. # if --with-KQUEUE=DIR has been specified, use it.
  17121. if test "x${KQUEUE_DIR}" != "x"; then
  17122. KQUEUE_INCLUDE="-I${KQUEUE_DIR}/include"
  17123. fi
  17124. KQUEUE_INCLUDE="${KQUEUE_INCLUDE} "
  17125. if test "xsys/event.h" = "x" ; then # no header, assume found
  17126. KQUEUE_HEADER_FOUND="1"
  17127. else # check for the header
  17128. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17129. CPPFLAGS="${CPPFLAGS} ${KQUEUE_INCLUDE}"
  17130. ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
  17131. if test "x$ac_cv_header_sys_event_h" = xyes; then :
  17132. KQUEUE_HEADER_FOUND=1
  17133. else
  17134. KQUEUE_HEADER_FOUND=0
  17135. fi
  17136. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17137. fi
  17138. if test "x${KQUEUE_HEADER_FOUND}" = "x0" ; then
  17139. KQUEUE_LIB=""
  17140. KQUEUE_INCLUDE=""
  17141. else
  17142. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17143. KQUEUE_LIB=""
  17144. fi
  17145. PBX_KQUEUE=1
  17146. cat >>confdefs.h <<_ACEOF
  17147. #define HAVE_KQUEUE 1
  17148. _ACEOF
  17149. fi
  17150. fi
  17151. fi
  17152. # 64-bit version of kevent (from kqueue) on OS X
  17153. for ac_func in kevent64
  17154. do :
  17155. ac_fn_c_check_func "$LINENO" "kevent64" "ac_cv_func_kevent64"
  17156. if test "x$ac_cv_func_kevent64" = xyes; then :
  17157. cat >>confdefs.h <<_ACEOF
  17158. #define HAVE_KEVENT64 1
  17159. _ACEOF
  17160. fi
  17161. done
  17162. # Needed by unixodbc
  17163. if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
  17164. pbxlibdir=""
  17165. # if --with-LTDL=DIR has been specified, use it.
  17166. if test "x${LTDL_DIR}" != "x"; then
  17167. if test -d ${LTDL_DIR}/lib; then
  17168. pbxlibdir="-L${LTDL_DIR}/lib"
  17169. else
  17170. pbxlibdir="-L${LTDL_DIR}"
  17171. fi
  17172. fi
  17173. pbxfuncname="lt_dlinit"
  17174. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17175. AST_LTDL_FOUND=yes
  17176. else
  17177. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17178. CFLAGS="${CFLAGS} "
  17179. as_ac_Lib=`$as_echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
  17180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lltdl" >&5
  17181. $as_echo_n "checking for ${pbxfuncname} in -lltdl... " >&6; }
  17182. if eval \${$as_ac_Lib+:} false; then :
  17183. $as_echo_n "(cached) " >&6
  17184. else
  17185. ac_check_lib_save_LIBS=$LIBS
  17186. LIBS="-lltdl ${pbxlibdir} $LIBS"
  17187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17188. /* end confdefs.h. */
  17189. /* Override any GCC internal prototype to avoid an error.
  17190. Use char because int might match the return type of a GCC
  17191. builtin and then its argument prototype would still apply. */
  17192. #ifdef __cplusplus
  17193. extern "C"
  17194. #endif
  17195. char ${pbxfuncname} ();
  17196. int
  17197. main ()
  17198. {
  17199. return ${pbxfuncname} ();
  17200. ;
  17201. return 0;
  17202. }
  17203. _ACEOF
  17204. if ac_fn_c_try_link "$LINENO"; then :
  17205. eval "$as_ac_Lib=yes"
  17206. else
  17207. eval "$as_ac_Lib=no"
  17208. fi
  17209. rm -f core conftest.err conftest.$ac_objext \
  17210. conftest$ac_exeext conftest.$ac_ext
  17211. LIBS=$ac_check_lib_save_LIBS
  17212. fi
  17213. eval ac_res=\$$as_ac_Lib
  17214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17215. $as_echo "$ac_res" >&6; }
  17216. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17217. AST_LTDL_FOUND=yes
  17218. else
  17219. AST_LTDL_FOUND=no
  17220. fi
  17221. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17222. fi
  17223. # now check for the header.
  17224. if test "${AST_LTDL_FOUND}" = "yes"; then
  17225. LTDL_LIB="${pbxlibdir} -lltdl "
  17226. # if --with-LTDL=DIR has been specified, use it.
  17227. if test "x${LTDL_DIR}" != "x"; then
  17228. LTDL_INCLUDE="-I${LTDL_DIR}/include"
  17229. fi
  17230. LTDL_INCLUDE="${LTDL_INCLUDE} "
  17231. if test "xltdl.h" = "x" ; then # no header, assume found
  17232. LTDL_HEADER_FOUND="1"
  17233. else # check for the header
  17234. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17235. CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
  17236. ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
  17237. if test "x$ac_cv_header_ltdl_h" = xyes; then :
  17238. LTDL_HEADER_FOUND=1
  17239. else
  17240. LTDL_HEADER_FOUND=0
  17241. fi
  17242. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17243. fi
  17244. if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
  17245. LTDL_LIB=""
  17246. LTDL_INCLUDE=""
  17247. else
  17248. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17249. LTDL_LIB=""
  17250. fi
  17251. PBX_LTDL=1
  17252. cat >>confdefs.h <<_ACEOF
  17253. #define HAVE_LTDL 1
  17254. _ACEOF
  17255. fi
  17256. fi
  17257. fi
  17258. if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
  17259. pbxlibdir=""
  17260. # if --with-LDAP=DIR has been specified, use it.
  17261. if test "x${LDAP_DIR}" != "x"; then
  17262. if test -d ${LDAP_DIR}/lib; then
  17263. pbxlibdir="-L${LDAP_DIR}/lib"
  17264. else
  17265. pbxlibdir="-L${LDAP_DIR}"
  17266. fi
  17267. fi
  17268. pbxfuncname="ldap_initialize"
  17269. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17270. AST_LDAP_FOUND=yes
  17271. else
  17272. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17273. CFLAGS="${CFLAGS} "
  17274. as_ac_Lib=`$as_echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
  17275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lldap" >&5
  17276. $as_echo_n "checking for ${pbxfuncname} in -lldap... " >&6; }
  17277. if eval \${$as_ac_Lib+:} false; then :
  17278. $as_echo_n "(cached) " >&6
  17279. else
  17280. ac_check_lib_save_LIBS=$LIBS
  17281. LIBS="-lldap ${pbxlibdir} $LIBS"
  17282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17283. /* end confdefs.h. */
  17284. /* Override any GCC internal prototype to avoid an error.
  17285. Use char because int might match the return type of a GCC
  17286. builtin and then its argument prototype would still apply. */
  17287. #ifdef __cplusplus
  17288. extern "C"
  17289. #endif
  17290. char ${pbxfuncname} ();
  17291. int
  17292. main ()
  17293. {
  17294. return ${pbxfuncname} ();
  17295. ;
  17296. return 0;
  17297. }
  17298. _ACEOF
  17299. if ac_fn_c_try_link "$LINENO"; then :
  17300. eval "$as_ac_Lib=yes"
  17301. else
  17302. eval "$as_ac_Lib=no"
  17303. fi
  17304. rm -f core conftest.err conftest.$ac_objext \
  17305. conftest$ac_exeext conftest.$ac_ext
  17306. LIBS=$ac_check_lib_save_LIBS
  17307. fi
  17308. eval ac_res=\$$as_ac_Lib
  17309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17310. $as_echo "$ac_res" >&6; }
  17311. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17312. AST_LDAP_FOUND=yes
  17313. else
  17314. AST_LDAP_FOUND=no
  17315. fi
  17316. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17317. fi
  17318. # now check for the header.
  17319. if test "${AST_LDAP_FOUND}" = "yes"; then
  17320. LDAP_LIB="${pbxlibdir} -lldap "
  17321. # if --with-LDAP=DIR has been specified, use it.
  17322. if test "x${LDAP_DIR}" != "x"; then
  17323. LDAP_INCLUDE="-I${LDAP_DIR}/include"
  17324. fi
  17325. LDAP_INCLUDE="${LDAP_INCLUDE} "
  17326. if test "xldap.h" = "x" ; then # no header, assume found
  17327. LDAP_HEADER_FOUND="1"
  17328. else # check for the header
  17329. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17330. CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
  17331. ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
  17332. if test "x$ac_cv_header_ldap_h" = xyes; then :
  17333. LDAP_HEADER_FOUND=1
  17334. else
  17335. LDAP_HEADER_FOUND=0
  17336. fi
  17337. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17338. fi
  17339. if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
  17340. LDAP_LIB=""
  17341. LDAP_INCLUDE=""
  17342. else
  17343. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17344. LDAP_LIB=""
  17345. fi
  17346. PBX_LDAP=1
  17347. cat >>confdefs.h <<_ACEOF
  17348. #define HAVE_LDAP 1
  17349. _ACEOF
  17350. fi
  17351. fi
  17352. fi
  17353. if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
  17354. pbxlibdir=""
  17355. # if --with-MISDN=DIR has been specified, use it.
  17356. if test "x${MISDN_DIR}" != "x"; then
  17357. if test -d ${MISDN_DIR}/lib; then
  17358. pbxlibdir="-L${MISDN_DIR}/lib"
  17359. else
  17360. pbxlibdir="-L${MISDN_DIR}"
  17361. fi
  17362. fi
  17363. pbxfuncname="mISDN_open"
  17364. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17365. AST_MISDN_FOUND=yes
  17366. else
  17367. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17368. CFLAGS="${CFLAGS} "
  17369. as_ac_Lib=`$as_echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
  17370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lmISDN" >&5
  17371. $as_echo_n "checking for ${pbxfuncname} in -lmISDN... " >&6; }
  17372. if eval \${$as_ac_Lib+:} false; then :
  17373. $as_echo_n "(cached) " >&6
  17374. else
  17375. ac_check_lib_save_LIBS=$LIBS
  17376. LIBS="-lmISDN ${pbxlibdir} $LIBS"
  17377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17378. /* end confdefs.h. */
  17379. /* Override any GCC internal prototype to avoid an error.
  17380. Use char because int might match the return type of a GCC
  17381. builtin and then its argument prototype would still apply. */
  17382. #ifdef __cplusplus
  17383. extern "C"
  17384. #endif
  17385. char ${pbxfuncname} ();
  17386. int
  17387. main ()
  17388. {
  17389. return ${pbxfuncname} ();
  17390. ;
  17391. return 0;
  17392. }
  17393. _ACEOF
  17394. if ac_fn_c_try_link "$LINENO"; then :
  17395. eval "$as_ac_Lib=yes"
  17396. else
  17397. eval "$as_ac_Lib=no"
  17398. fi
  17399. rm -f core conftest.err conftest.$ac_objext \
  17400. conftest$ac_exeext conftest.$ac_ext
  17401. LIBS=$ac_check_lib_save_LIBS
  17402. fi
  17403. eval ac_res=\$$as_ac_Lib
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17405. $as_echo "$ac_res" >&6; }
  17406. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17407. AST_MISDN_FOUND=yes
  17408. else
  17409. AST_MISDN_FOUND=no
  17410. fi
  17411. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17412. fi
  17413. # now check for the header.
  17414. if test "${AST_MISDN_FOUND}" = "yes"; then
  17415. MISDN_LIB="${pbxlibdir} -lmISDN "
  17416. # if --with-MISDN=DIR has been specified, use it.
  17417. if test "x${MISDN_DIR}" != "x"; then
  17418. MISDN_INCLUDE="-I${MISDN_DIR}/include"
  17419. fi
  17420. MISDN_INCLUDE="${MISDN_INCLUDE} "
  17421. if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
  17422. MISDN_HEADER_FOUND="1"
  17423. else # check for the header
  17424. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17425. CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
  17426. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/mISDNlib.h" "ac_cv_header_mISDNuser_mISDNlib_h" "$ac_includes_default"
  17427. if test "x$ac_cv_header_mISDNuser_mISDNlib_h" = xyes; then :
  17428. MISDN_HEADER_FOUND=1
  17429. else
  17430. MISDN_HEADER_FOUND=0
  17431. fi
  17432. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17433. fi
  17434. if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
  17435. MISDN_LIB=""
  17436. MISDN_INCLUDE=""
  17437. else
  17438. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17439. MISDN_LIB=""
  17440. fi
  17441. PBX_MISDN=1
  17442. cat >>confdefs.h <<_ACEOF
  17443. #define HAVE_MISDN 1
  17444. _ACEOF
  17445. fi
  17446. fi
  17447. fi
  17448. if test "${PBX_MISDN}" = 1; then
  17449. if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
  17450. pbxlibdir=""
  17451. # if --with-ISDNNET=DIR has been specified, use it.
  17452. if test "x${ISDNNET_DIR}" != "x"; then
  17453. if test -d ${ISDNNET_DIR}/lib; then
  17454. pbxlibdir="-L${ISDNNET_DIR}/lib"
  17455. else
  17456. pbxlibdir="-L${ISDNNET_DIR}"
  17457. fi
  17458. fi
  17459. pbxfuncname="init_manager"
  17460. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17461. AST_ISDNNET_FOUND=yes
  17462. else
  17463. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17464. CFLAGS="${CFLAGS} "
  17465. as_ac_Lib=`$as_echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
  17466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lisdnnet" >&5
  17467. $as_echo_n "checking for ${pbxfuncname} in -lisdnnet... " >&6; }
  17468. if eval \${$as_ac_Lib+:} false; then :
  17469. $as_echo_n "(cached) " >&6
  17470. else
  17471. ac_check_lib_save_LIBS=$LIBS
  17472. LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
  17473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17474. /* end confdefs.h. */
  17475. /* Override any GCC internal prototype to avoid an error.
  17476. Use char because int might match the return type of a GCC
  17477. builtin and then its argument prototype would still apply. */
  17478. #ifdef __cplusplus
  17479. extern "C"
  17480. #endif
  17481. char ${pbxfuncname} ();
  17482. int
  17483. main ()
  17484. {
  17485. return ${pbxfuncname} ();
  17486. ;
  17487. return 0;
  17488. }
  17489. _ACEOF
  17490. if ac_fn_c_try_link "$LINENO"; then :
  17491. eval "$as_ac_Lib=yes"
  17492. else
  17493. eval "$as_ac_Lib=no"
  17494. fi
  17495. rm -f core conftest.err conftest.$ac_objext \
  17496. conftest$ac_exeext conftest.$ac_ext
  17497. LIBS=$ac_check_lib_save_LIBS
  17498. fi
  17499. eval ac_res=\$$as_ac_Lib
  17500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17501. $as_echo "$ac_res" >&6; }
  17502. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17503. AST_ISDNNET_FOUND=yes
  17504. else
  17505. AST_ISDNNET_FOUND=no
  17506. fi
  17507. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17508. fi
  17509. # now check for the header.
  17510. if test "${AST_ISDNNET_FOUND}" = "yes"; then
  17511. ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
  17512. # if --with-ISDNNET=DIR has been specified, use it.
  17513. if test "x${ISDNNET_DIR}" != "x"; then
  17514. ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
  17515. fi
  17516. ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
  17517. if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
  17518. ISDNNET_HEADER_FOUND="1"
  17519. else # check for the header
  17520. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17521. CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
  17522. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/isdn_net.h" "ac_cv_header_mISDNuser_isdn_net_h" "$ac_includes_default"
  17523. if test "x$ac_cv_header_mISDNuser_isdn_net_h" = xyes; then :
  17524. ISDNNET_HEADER_FOUND=1
  17525. else
  17526. ISDNNET_HEADER_FOUND=0
  17527. fi
  17528. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17529. fi
  17530. if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
  17531. ISDNNET_LIB=""
  17532. ISDNNET_INCLUDE=""
  17533. else
  17534. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17535. ISDNNET_LIB=""
  17536. fi
  17537. PBX_ISDNNET=1
  17538. cat >>confdefs.h <<_ACEOF
  17539. #define HAVE_ISDNNET 1
  17540. _ACEOF
  17541. fi
  17542. fi
  17543. fi
  17544. if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
  17545. pbxlibdir=""
  17546. # if --with-SUPPSERV=DIR has been specified, use it.
  17547. if test "x${SUPPSERV_DIR}" != "x"; then
  17548. if test -d ${SUPPSERV_DIR}/lib; then
  17549. pbxlibdir="-L${SUPPSERV_DIR}/lib"
  17550. else
  17551. pbxlibdir="-L${SUPPSERV_DIR}"
  17552. fi
  17553. fi
  17554. pbxfuncname="encodeFac"
  17555. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17556. AST_SUPPSERV_FOUND=yes
  17557. else
  17558. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17559. CFLAGS="${CFLAGS} "
  17560. as_ac_Lib=`$as_echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
  17561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsuppserv" >&5
  17562. $as_echo_n "checking for ${pbxfuncname} in -lsuppserv... " >&6; }
  17563. if eval \${$as_ac_Lib+:} false; then :
  17564. $as_echo_n "(cached) " >&6
  17565. else
  17566. ac_check_lib_save_LIBS=$LIBS
  17567. LIBS="-lsuppserv ${pbxlibdir} $LIBS"
  17568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17569. /* end confdefs.h. */
  17570. /* Override any GCC internal prototype to avoid an error.
  17571. Use char because int might match the return type of a GCC
  17572. builtin and then its argument prototype would still apply. */
  17573. #ifdef __cplusplus
  17574. extern "C"
  17575. #endif
  17576. char ${pbxfuncname} ();
  17577. int
  17578. main ()
  17579. {
  17580. return ${pbxfuncname} ();
  17581. ;
  17582. return 0;
  17583. }
  17584. _ACEOF
  17585. if ac_fn_c_try_link "$LINENO"; then :
  17586. eval "$as_ac_Lib=yes"
  17587. else
  17588. eval "$as_ac_Lib=no"
  17589. fi
  17590. rm -f core conftest.err conftest.$ac_objext \
  17591. conftest$ac_exeext conftest.$ac_ext
  17592. LIBS=$ac_check_lib_save_LIBS
  17593. fi
  17594. eval ac_res=\$$as_ac_Lib
  17595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17596. $as_echo "$ac_res" >&6; }
  17597. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17598. AST_SUPPSERV_FOUND=yes
  17599. else
  17600. AST_SUPPSERV_FOUND=no
  17601. fi
  17602. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17603. fi
  17604. # now check for the header.
  17605. if test "${AST_SUPPSERV_FOUND}" = "yes"; then
  17606. SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
  17607. # if --with-SUPPSERV=DIR has been specified, use it.
  17608. if test "x${SUPPSERV_DIR}" != "x"; then
  17609. SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
  17610. fi
  17611. SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
  17612. if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
  17613. SUPPSERV_HEADER_FOUND="1"
  17614. else # check for the header
  17615. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17616. CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
  17617. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/suppserv.h" "ac_cv_header_mISDNuser_suppserv_h" "$ac_includes_default"
  17618. if test "x$ac_cv_header_mISDNuser_suppserv_h" = xyes; then :
  17619. SUPPSERV_HEADER_FOUND=1
  17620. else
  17621. SUPPSERV_HEADER_FOUND=0
  17622. fi
  17623. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17624. fi
  17625. if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
  17626. SUPPSERV_LIB=""
  17627. SUPPSERV_INCLUDE=""
  17628. else
  17629. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17630. SUPPSERV_LIB=""
  17631. fi
  17632. PBX_SUPPSERV=1
  17633. cat >>confdefs.h <<_ACEOF
  17634. #define HAVE_SUPPSERV 1
  17635. _ACEOF
  17636. fi
  17637. fi
  17638. fi
  17639. if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
  17640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
  17641. $as_echo_n "checking for Fac_RESULT in mISDNuser/suppserv.h... " >&6; }
  17642. saved_cppflags="${CPPFLAGS}"
  17643. if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
  17644. MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
  17645. fi
  17646. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
  17647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17648. /* end confdefs.h. */
  17649. #include <mISDNuser/suppserv.h>
  17650. int
  17651. main ()
  17652. {
  17653. #if defined(Fac_RESULT)
  17654. int foo = 0;
  17655. #else
  17656. int foo = bar;
  17657. #endif
  17658. 0
  17659. ;
  17660. return 0;
  17661. }
  17662. _ACEOF
  17663. if ac_fn_c_try_compile "$LINENO"; then :
  17664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17665. $as_echo "yes" >&6; }
  17666. PBX_MISDN_FAC_RESULT=1
  17667. $as_echo "#define HAVE_MISDN_FAC_RESULT 1" >>confdefs.h
  17668. else
  17669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17670. $as_echo "no" >&6; }
  17671. fi
  17672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17673. CPPFLAGS="${saved_cppflags}"
  17674. fi
  17675. if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
  17676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
  17677. $as_echo_n "checking for Fac_ERROR in mISDNuser/suppserv.h... " >&6; }
  17678. saved_cppflags="${CPPFLAGS}"
  17679. if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
  17680. MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
  17681. fi
  17682. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
  17683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17684. /* end confdefs.h. */
  17685. #include <mISDNuser/suppserv.h>
  17686. int
  17687. main ()
  17688. {
  17689. #if defined(Fac_ERROR)
  17690. int foo = 0;
  17691. #else
  17692. int foo = bar;
  17693. #endif
  17694. 0
  17695. ;
  17696. return 0;
  17697. }
  17698. _ACEOF
  17699. if ac_fn_c_try_compile "$LINENO"; then :
  17700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17701. $as_echo "yes" >&6; }
  17702. PBX_MISDN_FAC_ERROR=1
  17703. $as_echo "#define HAVE_MISDN_FAC_ERROR 1" >>confdefs.h
  17704. else
  17705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17706. $as_echo "no" >&6; }
  17707. fi
  17708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17709. CPPFLAGS="${saved_cppflags}"
  17710. fi
  17711. ac_fn_c_check_header_mongrel "$LINENO" "linux/mISDNdsp.h" "ac_cv_header_linux_mISDNdsp_h" "$ac_includes_default"
  17712. if test "x$ac_cv_header_linux_mISDNdsp_h" = xyes; then :
  17713. cat >>confdefs.h <<_ACEOF
  17714. #define MISDN_1_2 1
  17715. _ACEOF
  17716. fi
  17717. ac_fn_c_check_member "$LINENO" "Q931_info_t" "redirect_dn" "ac_cv_member_Q931_info_t_redirect_dn" "#include <mISDNuser/mISDNlib.h>
  17718. "
  17719. if test "x$ac_cv_member_Q931_info_t_redirect_dn" = xyes; then :
  17720. else
  17721. PBX_MISDN=0
  17722. fi
  17723. fi
  17724. if test "x${PBX_MYSQLCLIENT}" != "x1" -a "${USE_MYSQLCLIENT}" != "no"; then
  17725. PBX_MYSQLCLIENT=0
  17726. if test -n "$ac_tool_prefix"; then
  17727. # Extract the first word of "${ac_tool_prefix}mysql_config", so it can be a program name with args.
  17728. set dummy ${ac_tool_prefix}mysql_config; ac_word=$2
  17729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17730. $as_echo_n "checking for $ac_word... " >&6; }
  17731. if ${ac_cv_path_CONFIG_MYSQLCLIENT+:} false; then :
  17732. $as_echo_n "(cached) " >&6
  17733. else
  17734. case $CONFIG_MYSQLCLIENT in
  17735. [\\/]* | ?:[\\/]*)
  17736. ac_cv_path_CONFIG_MYSQLCLIENT="$CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  17737. ;;
  17738. *)
  17739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17740. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  17741. for as_dir in $as_dummy
  17742. do
  17743. IFS=$as_save_IFS
  17744. test -z "$as_dir" && as_dir=.
  17745. for ac_exec_ext in '' $ac_executable_extensions; do
  17746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17747. ac_cv_path_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  17748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17749. break 2
  17750. fi
  17751. done
  17752. done
  17753. IFS=$as_save_IFS
  17754. ;;
  17755. esac
  17756. fi
  17757. CONFIG_MYSQLCLIENT=$ac_cv_path_CONFIG_MYSQLCLIENT
  17758. if test -n "$CONFIG_MYSQLCLIENT"; then
  17759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_MYSQLCLIENT" >&5
  17760. $as_echo "$CONFIG_MYSQLCLIENT" >&6; }
  17761. else
  17762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17763. $as_echo "no" >&6; }
  17764. fi
  17765. fi
  17766. if test -z "$ac_cv_path_CONFIG_MYSQLCLIENT"; then
  17767. ac_pt_CONFIG_MYSQLCLIENT=$CONFIG_MYSQLCLIENT
  17768. # Extract the first word of "mysql_config", so it can be a program name with args.
  17769. set dummy mysql_config; ac_word=$2
  17770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17771. $as_echo_n "checking for $ac_word... " >&6; }
  17772. if ${ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT+:} false; then :
  17773. $as_echo_n "(cached) " >&6
  17774. else
  17775. case $ac_pt_CONFIG_MYSQLCLIENT in
  17776. [\\/]* | ?:[\\/]*)
  17777. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$ac_pt_CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  17778. ;;
  17779. *)
  17780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17781. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  17782. for as_dir in $as_dummy
  17783. do
  17784. IFS=$as_save_IFS
  17785. test -z "$as_dir" && as_dir=.
  17786. for ac_exec_ext in '' $ac_executable_extensions; do
  17787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17788. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  17789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17790. break 2
  17791. fi
  17792. done
  17793. done
  17794. IFS=$as_save_IFS
  17795. ;;
  17796. esac
  17797. fi
  17798. ac_pt_CONFIG_MYSQLCLIENT=$ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT
  17799. if test -n "$ac_pt_CONFIG_MYSQLCLIENT"; then
  17800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_MYSQLCLIENT" >&5
  17801. $as_echo "$ac_pt_CONFIG_MYSQLCLIENT" >&6; }
  17802. else
  17803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17804. $as_echo "no" >&6; }
  17805. fi
  17806. if test "x$ac_pt_CONFIG_MYSQLCLIENT" = x; then
  17807. CONFIG_MYSQLCLIENT="No"
  17808. else
  17809. case $cross_compiling:$ac_tool_warned in
  17810. yes:)
  17811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17812. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17813. ac_tool_warned=yes ;;
  17814. esac
  17815. CONFIG_MYSQLCLIENT=$ac_pt_CONFIG_MYSQLCLIENT
  17816. fi
  17817. else
  17818. CONFIG_MYSQLCLIENT="$ac_cv_path_CONFIG_MYSQLCLIENT"
  17819. fi
  17820. if test ! "x${CONFIG_MYSQLCLIENT}" = xNo; then
  17821. if test x"" = x ; then A=--cflags ; else A="" ; fi
  17822. MYSQLCLIENT_INCLUDE=$(${CONFIG_MYSQLCLIENT} $A)
  17823. MYSQLCLIENT_INCLUDE=$(echo ${MYSQLCLIENT_INCLUDE} | $SED -e "s|-I|-I${MYSQLCLIENT_DIR}|g")
  17824. if test x"" = x ; then A=--libs ; else A="" ; fi
  17825. MYSQLCLIENT_LIB=$(${CONFIG_MYSQLCLIENT} $A)
  17826. MYSQLCLIENT_LIB=$(echo ${MYSQLCLIENT_LIB} | $SED -e "s|-L|-L${MYSQLCLIENT_DIR}|g")
  17827. if test x"" != x ; then
  17828. saved_cppflags="${CPPFLAGS}"
  17829. CPPFLAGS="${CPPFLAGS} ${MYSQLCLIENT_INCLUDE}"
  17830. saved_libs="${LIBS}"
  17831. LIBS=${MYSQLCLIENT_LIB}
  17832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17833. /* end confdefs.h. */
  17834. int
  17835. main ()
  17836. {
  17837. ;
  17838. ;
  17839. return 0;
  17840. }
  17841. _ACEOF
  17842. if ac_fn_c_try_link "$LINENO"; then :
  17843. PBX_MYSQLCLIENT=1
  17844. $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
  17845. fi
  17846. rm -f core conftest.err conftest.$ac_objext \
  17847. conftest$ac_exeext conftest.$ac_ext
  17848. CPPFLAGS="${saved_cppflags}"
  17849. LIBS="${saved_libs}"
  17850. else
  17851. PBX_MYSQLCLIENT=1
  17852. $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
  17853. fi
  17854. fi
  17855. fi
  17856. if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
  17857. pbxlibdir=""
  17858. # if --with-NBS=DIR has been specified, use it.
  17859. if test "x${NBS_DIR}" != "x"; then
  17860. if test -d ${NBS_DIR}/lib; then
  17861. pbxlibdir="-L${NBS_DIR}/lib"
  17862. else
  17863. pbxlibdir="-L${NBS_DIR}"
  17864. fi
  17865. fi
  17866. pbxfuncname="nbs_connect"
  17867. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17868. AST_NBS_FOUND=yes
  17869. else
  17870. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17871. CFLAGS="${CFLAGS} "
  17872. as_ac_Lib=`$as_echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
  17873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnbs" >&5
  17874. $as_echo_n "checking for ${pbxfuncname} in -lnbs... " >&6; }
  17875. if eval \${$as_ac_Lib+:} false; then :
  17876. $as_echo_n "(cached) " >&6
  17877. else
  17878. ac_check_lib_save_LIBS=$LIBS
  17879. LIBS="-lnbs ${pbxlibdir} $LIBS"
  17880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17881. /* end confdefs.h. */
  17882. /* Override any GCC internal prototype to avoid an error.
  17883. Use char because int might match the return type of a GCC
  17884. builtin and then its argument prototype would still apply. */
  17885. #ifdef __cplusplus
  17886. extern "C"
  17887. #endif
  17888. char ${pbxfuncname} ();
  17889. int
  17890. main ()
  17891. {
  17892. return ${pbxfuncname} ();
  17893. ;
  17894. return 0;
  17895. }
  17896. _ACEOF
  17897. if ac_fn_c_try_link "$LINENO"; then :
  17898. eval "$as_ac_Lib=yes"
  17899. else
  17900. eval "$as_ac_Lib=no"
  17901. fi
  17902. rm -f core conftest.err conftest.$ac_objext \
  17903. conftest$ac_exeext conftest.$ac_ext
  17904. LIBS=$ac_check_lib_save_LIBS
  17905. fi
  17906. eval ac_res=\$$as_ac_Lib
  17907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17908. $as_echo "$ac_res" >&6; }
  17909. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17910. AST_NBS_FOUND=yes
  17911. else
  17912. AST_NBS_FOUND=no
  17913. fi
  17914. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17915. fi
  17916. # now check for the header.
  17917. if test "${AST_NBS_FOUND}" = "yes"; then
  17918. NBS_LIB="${pbxlibdir} -lnbs "
  17919. # if --with-NBS=DIR has been specified, use it.
  17920. if test "x${NBS_DIR}" != "x"; then
  17921. NBS_INCLUDE="-I${NBS_DIR}/include"
  17922. fi
  17923. NBS_INCLUDE="${NBS_INCLUDE} "
  17924. if test "xnbs.h" = "x" ; then # no header, assume found
  17925. NBS_HEADER_FOUND="1"
  17926. else # check for the header
  17927. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17928. CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
  17929. ac_fn_c_check_header_mongrel "$LINENO" "nbs.h" "ac_cv_header_nbs_h" "$ac_includes_default"
  17930. if test "x$ac_cv_header_nbs_h" = xyes; then :
  17931. NBS_HEADER_FOUND=1
  17932. else
  17933. NBS_HEADER_FOUND=0
  17934. fi
  17935. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17936. fi
  17937. if test "x${NBS_HEADER_FOUND}" = "x0" ; then
  17938. NBS_LIB=""
  17939. NBS_INCLUDE=""
  17940. else
  17941. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17942. NBS_LIB=""
  17943. fi
  17944. PBX_NBS=1
  17945. cat >>confdefs.h <<_ACEOF
  17946. #define HAVE_NBS 1
  17947. _ACEOF
  17948. fi
  17949. fi
  17950. fi
  17951. if test "x${PBX_NEON}" != "x1" -a "${USE_NEON}" != "no"; then
  17952. PBX_NEON=0
  17953. if test -n "$ac_tool_prefix"; then
  17954. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  17955. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  17956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17957. $as_echo_n "checking for $ac_word... " >&6; }
  17958. if ${ac_cv_path_CONFIG_NEON+:} false; then :
  17959. $as_echo_n "(cached) " >&6
  17960. else
  17961. case $CONFIG_NEON in
  17962. [\\/]* | ?:[\\/]*)
  17963. ac_cv_path_CONFIG_NEON="$CONFIG_NEON" # Let the user override the test with a path.
  17964. ;;
  17965. *)
  17966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17967. as_dummy="${NEON_DIR}/bin:$PATH"
  17968. for as_dir in $as_dummy
  17969. do
  17970. IFS=$as_save_IFS
  17971. test -z "$as_dir" && as_dir=.
  17972. for ac_exec_ext in '' $ac_executable_extensions; do
  17973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17974. ac_cv_path_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  17975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17976. break 2
  17977. fi
  17978. done
  17979. done
  17980. IFS=$as_save_IFS
  17981. ;;
  17982. esac
  17983. fi
  17984. CONFIG_NEON=$ac_cv_path_CONFIG_NEON
  17985. if test -n "$CONFIG_NEON"; then
  17986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON" >&5
  17987. $as_echo "$CONFIG_NEON" >&6; }
  17988. else
  17989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17990. $as_echo "no" >&6; }
  17991. fi
  17992. fi
  17993. if test -z "$ac_cv_path_CONFIG_NEON"; then
  17994. ac_pt_CONFIG_NEON=$CONFIG_NEON
  17995. # Extract the first word of "neon-config", so it can be a program name with args.
  17996. set dummy neon-config; ac_word=$2
  17997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17998. $as_echo_n "checking for $ac_word... " >&6; }
  17999. if ${ac_cv_path_ac_pt_CONFIG_NEON+:} false; then :
  18000. $as_echo_n "(cached) " >&6
  18001. else
  18002. case $ac_pt_CONFIG_NEON in
  18003. [\\/]* | ?:[\\/]*)
  18004. ac_cv_path_ac_pt_CONFIG_NEON="$ac_pt_CONFIG_NEON" # Let the user override the test with a path.
  18005. ;;
  18006. *)
  18007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18008. as_dummy="${NEON_DIR}/bin:$PATH"
  18009. for as_dir in $as_dummy
  18010. do
  18011. IFS=$as_save_IFS
  18012. test -z "$as_dir" && as_dir=.
  18013. for ac_exec_ext in '' $ac_executable_extensions; do
  18014. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18015. ac_cv_path_ac_pt_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  18016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18017. break 2
  18018. fi
  18019. done
  18020. done
  18021. IFS=$as_save_IFS
  18022. ;;
  18023. esac
  18024. fi
  18025. ac_pt_CONFIG_NEON=$ac_cv_path_ac_pt_CONFIG_NEON
  18026. if test -n "$ac_pt_CONFIG_NEON"; then
  18027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON" >&5
  18028. $as_echo "$ac_pt_CONFIG_NEON" >&6; }
  18029. else
  18030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18031. $as_echo "no" >&6; }
  18032. fi
  18033. if test "x$ac_pt_CONFIG_NEON" = x; then
  18034. CONFIG_NEON="No"
  18035. else
  18036. case $cross_compiling:$ac_tool_warned in
  18037. yes:)
  18038. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18039. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18040. ac_tool_warned=yes ;;
  18041. esac
  18042. CONFIG_NEON=$ac_pt_CONFIG_NEON
  18043. fi
  18044. else
  18045. CONFIG_NEON="$ac_cv_path_CONFIG_NEON"
  18046. fi
  18047. if test ! "x${CONFIG_NEON}" = xNo; then
  18048. if test x"" = x ; then A=--cflags ; else A="" ; fi
  18049. NEON_INCLUDE=$(${CONFIG_NEON} $A)
  18050. NEON_INCLUDE=$(echo ${NEON_INCLUDE} | $SED -e "s|-I|-I${NEON_DIR}|g")
  18051. if test x"" = x ; then A=--libs ; else A="" ; fi
  18052. NEON_LIB=$(${CONFIG_NEON} $A)
  18053. NEON_LIB=$(echo ${NEON_LIB} | $SED -e "s|-L|-L${NEON_DIR}|g")
  18054. if test x"" != x ; then
  18055. saved_cppflags="${CPPFLAGS}"
  18056. CPPFLAGS="${CPPFLAGS} ${NEON_INCLUDE}"
  18057. saved_libs="${LIBS}"
  18058. LIBS=${NEON_LIB}
  18059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18060. /* end confdefs.h. */
  18061. int
  18062. main ()
  18063. {
  18064. ;
  18065. ;
  18066. return 0;
  18067. }
  18068. _ACEOF
  18069. if ac_fn_c_try_link "$LINENO"; then :
  18070. PBX_NEON=1
  18071. $as_echo "#define HAVE_NEON 1" >>confdefs.h
  18072. fi
  18073. rm -f core conftest.err conftest.$ac_objext \
  18074. conftest$ac_exeext conftest.$ac_ext
  18075. CPPFLAGS="${saved_cppflags}"
  18076. LIBS="${saved_libs}"
  18077. else
  18078. PBX_NEON=1
  18079. $as_echo "#define HAVE_NEON 1" >>confdefs.h
  18080. fi
  18081. fi
  18082. fi
  18083. if test "x${PBX_NEON29}" != "x1" -a "${USE_NEON29}" != "no"; then
  18084. PBX_NEON29=0
  18085. if test -n "$ac_tool_prefix"; then
  18086. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  18087. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  18088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18089. $as_echo_n "checking for $ac_word... " >&6; }
  18090. if ${ac_cv_path_CONFIG_NEON29+:} false; then :
  18091. $as_echo_n "(cached) " >&6
  18092. else
  18093. case $CONFIG_NEON29 in
  18094. [\\/]* | ?:[\\/]*)
  18095. ac_cv_path_CONFIG_NEON29="$CONFIG_NEON29" # Let the user override the test with a path.
  18096. ;;
  18097. *)
  18098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18099. as_dummy="${NEON29_DIR}/bin:$PATH"
  18100. for as_dir in $as_dummy
  18101. do
  18102. IFS=$as_save_IFS
  18103. test -z "$as_dir" && as_dir=.
  18104. for ac_exec_ext in '' $ac_executable_extensions; do
  18105. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18106. ac_cv_path_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  18107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18108. break 2
  18109. fi
  18110. done
  18111. done
  18112. IFS=$as_save_IFS
  18113. ;;
  18114. esac
  18115. fi
  18116. CONFIG_NEON29=$ac_cv_path_CONFIG_NEON29
  18117. if test -n "$CONFIG_NEON29"; then
  18118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON29" >&5
  18119. $as_echo "$CONFIG_NEON29" >&6; }
  18120. else
  18121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18122. $as_echo "no" >&6; }
  18123. fi
  18124. fi
  18125. if test -z "$ac_cv_path_CONFIG_NEON29"; then
  18126. ac_pt_CONFIG_NEON29=$CONFIG_NEON29
  18127. # Extract the first word of "neon-config", so it can be a program name with args.
  18128. set dummy neon-config; ac_word=$2
  18129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18130. $as_echo_n "checking for $ac_word... " >&6; }
  18131. if ${ac_cv_path_ac_pt_CONFIG_NEON29+:} false; then :
  18132. $as_echo_n "(cached) " >&6
  18133. else
  18134. case $ac_pt_CONFIG_NEON29 in
  18135. [\\/]* | ?:[\\/]*)
  18136. ac_cv_path_ac_pt_CONFIG_NEON29="$ac_pt_CONFIG_NEON29" # Let the user override the test with a path.
  18137. ;;
  18138. *)
  18139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18140. as_dummy="${NEON29_DIR}/bin:$PATH"
  18141. for as_dir in $as_dummy
  18142. do
  18143. IFS=$as_save_IFS
  18144. test -z "$as_dir" && as_dir=.
  18145. for ac_exec_ext in '' $ac_executable_extensions; do
  18146. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18147. ac_cv_path_ac_pt_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  18148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18149. break 2
  18150. fi
  18151. done
  18152. done
  18153. IFS=$as_save_IFS
  18154. ;;
  18155. esac
  18156. fi
  18157. ac_pt_CONFIG_NEON29=$ac_cv_path_ac_pt_CONFIG_NEON29
  18158. if test -n "$ac_pt_CONFIG_NEON29"; then
  18159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON29" >&5
  18160. $as_echo "$ac_pt_CONFIG_NEON29" >&6; }
  18161. else
  18162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18163. $as_echo "no" >&6; }
  18164. fi
  18165. if test "x$ac_pt_CONFIG_NEON29" = x; then
  18166. CONFIG_NEON29="No"
  18167. else
  18168. case $cross_compiling:$ac_tool_warned in
  18169. yes:)
  18170. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18171. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18172. ac_tool_warned=yes ;;
  18173. esac
  18174. CONFIG_NEON29=$ac_pt_CONFIG_NEON29
  18175. fi
  18176. else
  18177. CONFIG_NEON29="$ac_cv_path_CONFIG_NEON29"
  18178. fi
  18179. if test ! "x${CONFIG_NEON29}" = xNo; then
  18180. if test x"" = x ; then A=--cflags ; else A="" ; fi
  18181. NEON29_INCLUDE=$(${CONFIG_NEON29} $A)
  18182. NEON29_INCLUDE=$(echo ${NEON29_INCLUDE} | $SED -e "s|-I|-I${NEON29_DIR}|g")
  18183. if test x"--libs" = x ; then A=--libs ; else A="--libs" ; fi
  18184. NEON29_LIB=$(${CONFIG_NEON29} $A)
  18185. NEON29_LIB=$(echo ${NEON29_LIB} | $SED -e "s|-L|-L${NEON29_DIR}|g")
  18186. if test x"#include <ne_auth.h>" != x ; then
  18187. saved_cppflags="${CPPFLAGS}"
  18188. CPPFLAGS="${CPPFLAGS} ${NEON29_INCLUDE}"
  18189. saved_libs="${LIBS}"
  18190. LIBS=${NEON29_LIB}
  18191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18192. /* end confdefs.h. */
  18193. #include <ne_auth.h>
  18194. int
  18195. main ()
  18196. {
  18197. #ifndef NE_AUTH_NTLM
  18198. #error Need libneon >= 0.29.0
  18199. #endif;
  18200. ;
  18201. return 0;
  18202. }
  18203. _ACEOF
  18204. if ac_fn_c_try_link "$LINENO"; then :
  18205. PBX_NEON29=1
  18206. $as_echo "#define HAVE_NEON29 1" >>confdefs.h
  18207. fi
  18208. rm -f core conftest.err conftest.$ac_objext \
  18209. conftest$ac_exeext conftest.$ac_ext
  18210. CPPFLAGS="${saved_cppflags}"
  18211. LIBS="${saved_libs}"
  18212. else
  18213. PBX_NEON29=1
  18214. $as_echo "#define HAVE_NEON29 1" >>confdefs.h
  18215. fi
  18216. fi
  18217. fi
  18218. if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
  18219. PBX_NETSNMP=0
  18220. if test -n "$ac_tool_prefix"; then
  18221. # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
  18222. set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
  18223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18224. $as_echo_n "checking for $ac_word... " >&6; }
  18225. if ${ac_cv_path_CONFIG_NETSNMP+:} false; then :
  18226. $as_echo_n "(cached) " >&6
  18227. else
  18228. case $CONFIG_NETSNMP in
  18229. [\\/]* | ?:[\\/]*)
  18230. ac_cv_path_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test with a path.
  18231. ;;
  18232. *)
  18233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18234. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  18235. for as_dir in $as_dummy
  18236. do
  18237. IFS=$as_save_IFS
  18238. test -z "$as_dir" && as_dir=.
  18239. for ac_exec_ext in '' $ac_executable_extensions; do
  18240. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18241. ac_cv_path_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  18242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18243. break 2
  18244. fi
  18245. done
  18246. done
  18247. IFS=$as_save_IFS
  18248. ;;
  18249. esac
  18250. fi
  18251. CONFIG_NETSNMP=$ac_cv_path_CONFIG_NETSNMP
  18252. if test -n "$CONFIG_NETSNMP"; then
  18253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NETSNMP" >&5
  18254. $as_echo "$CONFIG_NETSNMP" >&6; }
  18255. else
  18256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18257. $as_echo "no" >&6; }
  18258. fi
  18259. fi
  18260. if test -z "$ac_cv_path_CONFIG_NETSNMP"; then
  18261. ac_pt_CONFIG_NETSNMP=$CONFIG_NETSNMP
  18262. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  18263. set dummy net-snmp-config; ac_word=$2
  18264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18265. $as_echo_n "checking for $ac_word... " >&6; }
  18266. if ${ac_cv_path_ac_pt_CONFIG_NETSNMP+:} false; then :
  18267. $as_echo_n "(cached) " >&6
  18268. else
  18269. case $ac_pt_CONFIG_NETSNMP in
  18270. [\\/]* | ?:[\\/]*)
  18271. ac_cv_path_ac_pt_CONFIG_NETSNMP="$ac_pt_CONFIG_NETSNMP" # Let the user override the test with a path.
  18272. ;;
  18273. *)
  18274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18275. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  18276. for as_dir in $as_dummy
  18277. do
  18278. IFS=$as_save_IFS
  18279. test -z "$as_dir" && as_dir=.
  18280. for ac_exec_ext in '' $ac_executable_extensions; do
  18281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18282. ac_cv_path_ac_pt_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  18283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18284. break 2
  18285. fi
  18286. done
  18287. done
  18288. IFS=$as_save_IFS
  18289. ;;
  18290. esac
  18291. fi
  18292. ac_pt_CONFIG_NETSNMP=$ac_cv_path_ac_pt_CONFIG_NETSNMP
  18293. if test -n "$ac_pt_CONFIG_NETSNMP"; then
  18294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NETSNMP" >&5
  18295. $as_echo "$ac_pt_CONFIG_NETSNMP" >&6; }
  18296. else
  18297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18298. $as_echo "no" >&6; }
  18299. fi
  18300. if test "x$ac_pt_CONFIG_NETSNMP" = x; then
  18301. CONFIG_NETSNMP="No"
  18302. else
  18303. case $cross_compiling:$ac_tool_warned in
  18304. yes:)
  18305. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18306. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18307. ac_tool_warned=yes ;;
  18308. esac
  18309. CONFIG_NETSNMP=$ac_pt_CONFIG_NETSNMP
  18310. fi
  18311. else
  18312. CONFIG_NETSNMP="$ac_cv_path_CONFIG_NETSNMP"
  18313. fi
  18314. if test ! "x${CONFIG_NETSNMP}" = xNo; then
  18315. if test x"" = x ; then A=--cflags ; else A="" ; fi
  18316. NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
  18317. NETSNMP_INCLUDE=$(echo ${NETSNMP_INCLUDE} | $SED -e "s|-I|-I${NETSNMP_DIR}|g")
  18318. if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
  18319. NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
  18320. NETSNMP_LIB=$(echo ${NETSNMP_LIB} | $SED -e "s|-L|-L${NETSNMP_DIR}|g")
  18321. if test x"#include <net-snmp/net-snmp-config.h>
  18322. #include <net-snmp/net-snmp-includes.h>
  18323. #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
  18324. saved_cppflags="${CPPFLAGS}"
  18325. CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
  18326. saved_libs="${LIBS}"
  18327. LIBS=${NETSNMP_LIB}
  18328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18329. /* end confdefs.h. */
  18330. #include <net-snmp/net-snmp-config.h>
  18331. #include <net-snmp/net-snmp-includes.h>
  18332. #include <net-snmp/agent/net-snmp-agent-includes.h>
  18333. int
  18334. main ()
  18335. {
  18336. int callback = snmp_register_callback(0, 0, NULL, NULL);
  18337. ;
  18338. return 0;
  18339. }
  18340. _ACEOF
  18341. if ac_fn_c_try_link "$LINENO"; then :
  18342. PBX_NETSNMP=1
  18343. $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
  18344. fi
  18345. rm -f core conftest.err conftest.$ac_objext \
  18346. conftest$ac_exeext conftest.$ac_ext
  18347. CPPFLAGS="${saved_cppflags}"
  18348. LIBS="${saved_libs}"
  18349. else
  18350. PBX_NETSNMP=1
  18351. $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
  18352. fi
  18353. fi
  18354. fi
  18355. if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
  18356. pbxlibdir=""
  18357. # if --with-NEWT=DIR has been specified, use it.
  18358. if test "x${NEWT_DIR}" != "x"; then
  18359. if test -d ${NEWT_DIR}/lib; then
  18360. pbxlibdir="-L${NEWT_DIR}/lib"
  18361. else
  18362. pbxlibdir="-L${NEWT_DIR}"
  18363. fi
  18364. fi
  18365. pbxfuncname="newtBell"
  18366. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18367. AST_NEWT_FOUND=yes
  18368. else
  18369. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18370. CFLAGS="${CFLAGS} "
  18371. as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
  18372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnewt" >&5
  18373. $as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }
  18374. if eval \${$as_ac_Lib+:} false; then :
  18375. $as_echo_n "(cached) " >&6
  18376. else
  18377. ac_check_lib_save_LIBS=$LIBS
  18378. LIBS="-lnewt ${pbxlibdir} $LIBS"
  18379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18380. /* end confdefs.h. */
  18381. /* Override any GCC internal prototype to avoid an error.
  18382. Use char because int might match the return type of a GCC
  18383. builtin and then its argument prototype would still apply. */
  18384. #ifdef __cplusplus
  18385. extern "C"
  18386. #endif
  18387. char ${pbxfuncname} ();
  18388. int
  18389. main ()
  18390. {
  18391. return ${pbxfuncname} ();
  18392. ;
  18393. return 0;
  18394. }
  18395. _ACEOF
  18396. if ac_fn_c_try_link "$LINENO"; then :
  18397. eval "$as_ac_Lib=yes"
  18398. else
  18399. eval "$as_ac_Lib=no"
  18400. fi
  18401. rm -f core conftest.err conftest.$ac_objext \
  18402. conftest$ac_exeext conftest.$ac_ext
  18403. LIBS=$ac_check_lib_save_LIBS
  18404. fi
  18405. eval ac_res=\$$as_ac_Lib
  18406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18407. $as_echo "$ac_res" >&6; }
  18408. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18409. AST_NEWT_FOUND=yes
  18410. else
  18411. AST_NEWT_FOUND=no
  18412. fi
  18413. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18414. fi
  18415. # now check for the header.
  18416. if test "${AST_NEWT_FOUND}" = "yes"; then
  18417. NEWT_LIB="${pbxlibdir} -lnewt "
  18418. # if --with-NEWT=DIR has been specified, use it.
  18419. if test "x${NEWT_DIR}" != "x"; then
  18420. NEWT_INCLUDE="-I${NEWT_DIR}/include"
  18421. fi
  18422. NEWT_INCLUDE="${NEWT_INCLUDE} "
  18423. if test "xnewt.h" = "x" ; then # no header, assume found
  18424. NEWT_HEADER_FOUND="1"
  18425. else # check for the header
  18426. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18427. CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
  18428. ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
  18429. if test "x$ac_cv_header_newt_h" = xyes; then :
  18430. NEWT_HEADER_FOUND=1
  18431. else
  18432. NEWT_HEADER_FOUND=0
  18433. fi
  18434. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18435. fi
  18436. if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
  18437. NEWT_LIB=""
  18438. NEWT_INCLUDE=""
  18439. else
  18440. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18441. NEWT_LIB=""
  18442. fi
  18443. PBX_NEWT=1
  18444. cat >>confdefs.h <<_ACEOF
  18445. #define HAVE_NEWT 1
  18446. _ACEOF
  18447. fi
  18448. fi
  18449. fi
  18450. if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
  18451. pbxlibdir=""
  18452. # if --with-UNIXODBC=DIR has been specified, use it.
  18453. if test "x${UNIXODBC_DIR}" != "x"; then
  18454. if test -d ${UNIXODBC_DIR}/lib; then
  18455. pbxlibdir="-L${UNIXODBC_DIR}/lib"
  18456. else
  18457. pbxlibdir="-L${UNIXODBC_DIR}"
  18458. fi
  18459. fi
  18460. pbxfuncname="SQLConnect"
  18461. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18462. AST_UNIXODBC_FOUND=yes
  18463. else
  18464. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18465. CFLAGS="${CFLAGS} "
  18466. as_ac_Lib=`$as_echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lodbc" >&5
  18468. $as_echo_n "checking for ${pbxfuncname} in -lodbc... " >&6; }
  18469. if eval \${$as_ac_Lib+:} false; then :
  18470. $as_echo_n "(cached) " >&6
  18471. else
  18472. ac_check_lib_save_LIBS=$LIBS
  18473. LIBS="-lodbc ${pbxlibdir} $LIBS"
  18474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18475. /* end confdefs.h. */
  18476. /* Override any GCC internal prototype to avoid an error.
  18477. Use char because int might match the return type of a GCC
  18478. builtin and then its argument prototype would still apply. */
  18479. #ifdef __cplusplus
  18480. extern "C"
  18481. #endif
  18482. char ${pbxfuncname} ();
  18483. int
  18484. main ()
  18485. {
  18486. return ${pbxfuncname} ();
  18487. ;
  18488. return 0;
  18489. }
  18490. _ACEOF
  18491. if ac_fn_c_try_link "$LINENO"; then :
  18492. eval "$as_ac_Lib=yes"
  18493. else
  18494. eval "$as_ac_Lib=no"
  18495. fi
  18496. rm -f core conftest.err conftest.$ac_objext \
  18497. conftest$ac_exeext conftest.$ac_ext
  18498. LIBS=$ac_check_lib_save_LIBS
  18499. fi
  18500. eval ac_res=\$$as_ac_Lib
  18501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18502. $as_echo "$ac_res" >&6; }
  18503. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18504. AST_UNIXODBC_FOUND=yes
  18505. else
  18506. AST_UNIXODBC_FOUND=no
  18507. fi
  18508. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18509. fi
  18510. # now check for the header.
  18511. if test "${AST_UNIXODBC_FOUND}" = "yes"; then
  18512. UNIXODBC_LIB="${pbxlibdir} -lodbc "
  18513. # if --with-UNIXODBC=DIR has been specified, use it.
  18514. if test "x${UNIXODBC_DIR}" != "x"; then
  18515. UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
  18516. fi
  18517. UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
  18518. if test "xsql.h" = "x" ; then # no header, assume found
  18519. UNIXODBC_HEADER_FOUND="1"
  18520. else # check for the header
  18521. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18522. CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
  18523. ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  18524. if test "x$ac_cv_header_sql_h" = xyes; then :
  18525. UNIXODBC_HEADER_FOUND=1
  18526. else
  18527. UNIXODBC_HEADER_FOUND=0
  18528. fi
  18529. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18530. fi
  18531. if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
  18532. UNIXODBC_LIB=""
  18533. UNIXODBC_INCLUDE=""
  18534. else
  18535. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18536. UNIXODBC_LIB=""
  18537. fi
  18538. PBX_UNIXODBC=1
  18539. cat >>confdefs.h <<_ACEOF
  18540. #define HAVE_UNIXODBC 1
  18541. _ACEOF
  18542. fi
  18543. fi
  18544. fi
  18545. if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
  18546. pbxlibdir=""
  18547. # if --with-OGG=DIR has been specified, use it.
  18548. if test "x${OGG_DIR}" != "x"; then
  18549. if test -d ${OGG_DIR}/lib; then
  18550. pbxlibdir="-L${OGG_DIR}/lib"
  18551. else
  18552. pbxlibdir="-L${OGG_DIR}"
  18553. fi
  18554. fi
  18555. pbxfuncname="ogg_sync_init"
  18556. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18557. AST_OGG_FOUND=yes
  18558. else
  18559. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18560. CFLAGS="${CFLAGS} "
  18561. as_ac_Lib=`$as_echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
  18562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -logg" >&5
  18563. $as_echo_n "checking for ${pbxfuncname} in -logg... " >&6; }
  18564. if eval \${$as_ac_Lib+:} false; then :
  18565. $as_echo_n "(cached) " >&6
  18566. else
  18567. ac_check_lib_save_LIBS=$LIBS
  18568. LIBS="-logg ${pbxlibdir} $LIBS"
  18569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18570. /* end confdefs.h. */
  18571. /* Override any GCC internal prototype to avoid an error.
  18572. Use char because int might match the return type of a GCC
  18573. builtin and then its argument prototype would still apply. */
  18574. #ifdef __cplusplus
  18575. extern "C"
  18576. #endif
  18577. char ${pbxfuncname} ();
  18578. int
  18579. main ()
  18580. {
  18581. return ${pbxfuncname} ();
  18582. ;
  18583. return 0;
  18584. }
  18585. _ACEOF
  18586. if ac_fn_c_try_link "$LINENO"; then :
  18587. eval "$as_ac_Lib=yes"
  18588. else
  18589. eval "$as_ac_Lib=no"
  18590. fi
  18591. rm -f core conftest.err conftest.$ac_objext \
  18592. conftest$ac_exeext conftest.$ac_ext
  18593. LIBS=$ac_check_lib_save_LIBS
  18594. fi
  18595. eval ac_res=\$$as_ac_Lib
  18596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18597. $as_echo "$ac_res" >&6; }
  18598. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18599. AST_OGG_FOUND=yes
  18600. else
  18601. AST_OGG_FOUND=no
  18602. fi
  18603. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18604. fi
  18605. # now check for the header.
  18606. if test "${AST_OGG_FOUND}" = "yes"; then
  18607. OGG_LIB="${pbxlibdir} -logg "
  18608. # if --with-OGG=DIR has been specified, use it.
  18609. if test "x${OGG_DIR}" != "x"; then
  18610. OGG_INCLUDE="-I${OGG_DIR}/include"
  18611. fi
  18612. OGG_INCLUDE="${OGG_INCLUDE} "
  18613. if test "x" = "x" ; then # no header, assume found
  18614. OGG_HEADER_FOUND="1"
  18615. else # check for the header
  18616. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18617. CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
  18618. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  18619. if test "x$ac_cv_header_" = xyes; then :
  18620. OGG_HEADER_FOUND=1
  18621. else
  18622. OGG_HEADER_FOUND=0
  18623. fi
  18624. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18625. fi
  18626. if test "x${OGG_HEADER_FOUND}" = "x0" ; then
  18627. OGG_LIB=""
  18628. OGG_INCLUDE=""
  18629. else
  18630. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18631. OGG_LIB=""
  18632. fi
  18633. PBX_OGG=1
  18634. cat >>confdefs.h <<_ACEOF
  18635. #define HAVE_OGG 1
  18636. _ACEOF
  18637. fi
  18638. fi
  18639. fi
  18640. # Non-glibc platforms require libexecinfo for backtrace support
  18641. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  18642. pbxlibdir=""
  18643. # if --with-BKTR=DIR has been specified, use it.
  18644. if test "x${BKTR_DIR}" != "x"; then
  18645. if test -d ${BKTR_DIR}/lib; then
  18646. pbxlibdir="-L${BKTR_DIR}/lib"
  18647. else
  18648. pbxlibdir="-L${BKTR_DIR}"
  18649. fi
  18650. fi
  18651. pbxfuncname="backtrace"
  18652. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18653. AST_BKTR_FOUND=yes
  18654. else
  18655. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18656. CFLAGS="${CFLAGS} "
  18657. as_ac_Lib=`$as_echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
  18658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lexecinfo" >&5
  18659. $as_echo_n "checking for ${pbxfuncname} in -lexecinfo... " >&6; }
  18660. if eval \${$as_ac_Lib+:} false; then :
  18661. $as_echo_n "(cached) " >&6
  18662. else
  18663. ac_check_lib_save_LIBS=$LIBS
  18664. LIBS="-lexecinfo ${pbxlibdir} $LIBS"
  18665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18666. /* end confdefs.h. */
  18667. /* Override any GCC internal prototype to avoid an error.
  18668. Use char because int might match the return type of a GCC
  18669. builtin and then its argument prototype would still apply. */
  18670. #ifdef __cplusplus
  18671. extern "C"
  18672. #endif
  18673. char ${pbxfuncname} ();
  18674. int
  18675. main ()
  18676. {
  18677. return ${pbxfuncname} ();
  18678. ;
  18679. return 0;
  18680. }
  18681. _ACEOF
  18682. if ac_fn_c_try_link "$LINENO"; then :
  18683. eval "$as_ac_Lib=yes"
  18684. else
  18685. eval "$as_ac_Lib=no"
  18686. fi
  18687. rm -f core conftest.err conftest.$ac_objext \
  18688. conftest$ac_exeext conftest.$ac_ext
  18689. LIBS=$ac_check_lib_save_LIBS
  18690. fi
  18691. eval ac_res=\$$as_ac_Lib
  18692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18693. $as_echo "$ac_res" >&6; }
  18694. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18695. AST_BKTR_FOUND=yes
  18696. else
  18697. AST_BKTR_FOUND=no
  18698. fi
  18699. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18700. fi
  18701. # now check for the header.
  18702. if test "${AST_BKTR_FOUND}" = "yes"; then
  18703. BKTR_LIB="${pbxlibdir} -lexecinfo "
  18704. # if --with-BKTR=DIR has been specified, use it.
  18705. if test "x${BKTR_DIR}" != "x"; then
  18706. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  18707. fi
  18708. BKTR_INCLUDE="${BKTR_INCLUDE} "
  18709. if test "xexecinfo.h" = "x" ; then # no header, assume found
  18710. BKTR_HEADER_FOUND="1"
  18711. else # check for the header
  18712. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18713. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  18714. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  18715. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  18716. BKTR_HEADER_FOUND=1
  18717. else
  18718. BKTR_HEADER_FOUND=0
  18719. fi
  18720. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18721. fi
  18722. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  18723. BKTR_LIB=""
  18724. BKTR_INCLUDE=""
  18725. else
  18726. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18727. BKTR_LIB=""
  18728. fi
  18729. PBX_BKTR=1
  18730. cat >>confdefs.h <<_ACEOF
  18731. #define HAVE_BKTR 1
  18732. _ACEOF
  18733. fi
  18734. fi
  18735. fi
  18736. # Linux, however, has backtrace directly in glibc
  18737. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  18738. pbxlibdir=""
  18739. # if --with-BKTR=DIR has been specified, use it.
  18740. if test "x${BKTR_DIR}" != "x"; then
  18741. if test -d ${BKTR_DIR}/lib; then
  18742. pbxlibdir="-L${BKTR_DIR}/lib"
  18743. else
  18744. pbxlibdir="-L${BKTR_DIR}"
  18745. fi
  18746. fi
  18747. pbxfuncname="backtrace"
  18748. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18749. AST_BKTR_FOUND=yes
  18750. else
  18751. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18752. CFLAGS="${CFLAGS} "
  18753. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  18754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  18755. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  18756. if eval \${$as_ac_Lib+:} false; then :
  18757. $as_echo_n "(cached) " >&6
  18758. else
  18759. ac_check_lib_save_LIBS=$LIBS
  18760. LIBS="-lc ${pbxlibdir} $LIBS"
  18761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18762. /* end confdefs.h. */
  18763. /* Override any GCC internal prototype to avoid an error.
  18764. Use char because int might match the return type of a GCC
  18765. builtin and then its argument prototype would still apply. */
  18766. #ifdef __cplusplus
  18767. extern "C"
  18768. #endif
  18769. char ${pbxfuncname} ();
  18770. int
  18771. main ()
  18772. {
  18773. return ${pbxfuncname} ();
  18774. ;
  18775. return 0;
  18776. }
  18777. _ACEOF
  18778. if ac_fn_c_try_link "$LINENO"; then :
  18779. eval "$as_ac_Lib=yes"
  18780. else
  18781. eval "$as_ac_Lib=no"
  18782. fi
  18783. rm -f core conftest.err conftest.$ac_objext \
  18784. conftest$ac_exeext conftest.$ac_ext
  18785. LIBS=$ac_check_lib_save_LIBS
  18786. fi
  18787. eval ac_res=\$$as_ac_Lib
  18788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18789. $as_echo "$ac_res" >&6; }
  18790. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18791. AST_BKTR_FOUND=yes
  18792. else
  18793. AST_BKTR_FOUND=no
  18794. fi
  18795. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18796. fi
  18797. # now check for the header.
  18798. if test "${AST_BKTR_FOUND}" = "yes"; then
  18799. BKTR_LIB="${pbxlibdir} -lc "
  18800. # if --with-BKTR=DIR has been specified, use it.
  18801. if test "x${BKTR_DIR}" != "x"; then
  18802. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  18803. fi
  18804. BKTR_INCLUDE="${BKTR_INCLUDE} "
  18805. if test "xexecinfo.h" = "x" ; then # no header, assume found
  18806. BKTR_HEADER_FOUND="1"
  18807. else # check for the header
  18808. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18809. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  18810. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  18811. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  18812. BKTR_HEADER_FOUND=1
  18813. else
  18814. BKTR_HEADER_FOUND=0
  18815. fi
  18816. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18817. fi
  18818. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  18819. BKTR_LIB=""
  18820. BKTR_INCLUDE=""
  18821. else
  18822. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18823. BKTR_LIB=""
  18824. fi
  18825. PBX_BKTR=1
  18826. cat >>confdefs.h <<_ACEOF
  18827. #define HAVE_BKTR 1
  18828. _ACEOF
  18829. fi
  18830. fi
  18831. fi
  18832. if test "x${PBX_BLUETOOTH}" != "x1" -a "${USE_BLUETOOTH}" != "no"; then
  18833. pbxlibdir=""
  18834. # if --with-BLUETOOTH=DIR has been specified, use it.
  18835. if test "x${BLUETOOTH_DIR}" != "x"; then
  18836. if test -d ${BLUETOOTH_DIR}/lib; then
  18837. pbxlibdir="-L${BLUETOOTH_DIR}/lib"
  18838. else
  18839. pbxlibdir="-L${BLUETOOTH_DIR}"
  18840. fi
  18841. fi
  18842. pbxfuncname="ba2str"
  18843. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18844. AST_BLUETOOTH_FOUND=yes
  18845. else
  18846. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18847. CFLAGS="${CFLAGS} "
  18848. as_ac_Lib=`$as_echo "ac_cv_lib_bluetooth_${pbxfuncname}" | $as_tr_sh`
  18849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbluetooth" >&5
  18850. $as_echo_n "checking for ${pbxfuncname} in -lbluetooth... " >&6; }
  18851. if eval \${$as_ac_Lib+:} false; then :
  18852. $as_echo_n "(cached) " >&6
  18853. else
  18854. ac_check_lib_save_LIBS=$LIBS
  18855. LIBS="-lbluetooth ${pbxlibdir} $LIBS"
  18856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18857. /* end confdefs.h. */
  18858. /* Override any GCC internal prototype to avoid an error.
  18859. Use char because int might match the return type of a GCC
  18860. builtin and then its argument prototype would still apply. */
  18861. #ifdef __cplusplus
  18862. extern "C"
  18863. #endif
  18864. char ${pbxfuncname} ();
  18865. int
  18866. main ()
  18867. {
  18868. return ${pbxfuncname} ();
  18869. ;
  18870. return 0;
  18871. }
  18872. _ACEOF
  18873. if ac_fn_c_try_link "$LINENO"; then :
  18874. eval "$as_ac_Lib=yes"
  18875. else
  18876. eval "$as_ac_Lib=no"
  18877. fi
  18878. rm -f core conftest.err conftest.$ac_objext \
  18879. conftest$ac_exeext conftest.$ac_ext
  18880. LIBS=$ac_check_lib_save_LIBS
  18881. fi
  18882. eval ac_res=\$$as_ac_Lib
  18883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18884. $as_echo "$ac_res" >&6; }
  18885. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18886. AST_BLUETOOTH_FOUND=yes
  18887. else
  18888. AST_BLUETOOTH_FOUND=no
  18889. fi
  18890. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18891. fi
  18892. # now check for the header.
  18893. if test "${AST_BLUETOOTH_FOUND}" = "yes"; then
  18894. BLUETOOTH_LIB="${pbxlibdir} -lbluetooth "
  18895. # if --with-BLUETOOTH=DIR has been specified, use it.
  18896. if test "x${BLUETOOTH_DIR}" != "x"; then
  18897. BLUETOOTH_INCLUDE="-I${BLUETOOTH_DIR}/include"
  18898. fi
  18899. BLUETOOTH_INCLUDE="${BLUETOOTH_INCLUDE} "
  18900. if test "xbluetooth/bluetooth.h" = "x" ; then # no header, assume found
  18901. BLUETOOTH_HEADER_FOUND="1"
  18902. else # check for the header
  18903. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18904. CPPFLAGS="${CPPFLAGS} ${BLUETOOTH_INCLUDE}"
  18905. ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
  18906. if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
  18907. BLUETOOTH_HEADER_FOUND=1
  18908. else
  18909. BLUETOOTH_HEADER_FOUND=0
  18910. fi
  18911. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18912. fi
  18913. if test "x${BLUETOOTH_HEADER_FOUND}" = "x0" ; then
  18914. BLUETOOTH_LIB=""
  18915. BLUETOOTH_INCLUDE=""
  18916. else
  18917. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18918. BLUETOOTH_LIB=""
  18919. fi
  18920. PBX_BLUETOOTH=1
  18921. cat >>confdefs.h <<_ACEOF
  18922. #define HAVE_BLUETOOTH 1
  18923. _ACEOF
  18924. fi
  18925. fi
  18926. fi
  18927. # possible places for oss definitions
  18928. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  18929. pbxlibdir=""
  18930. # if --with-OSS=DIR has been specified, use it.
  18931. if test "x${OSS_DIR}" != "x"; then
  18932. if test -d ${OSS_DIR}/lib; then
  18933. pbxlibdir="-L${OSS_DIR}/lib"
  18934. else
  18935. pbxlibdir="-L${OSS_DIR}"
  18936. fi
  18937. fi
  18938. pbxfuncname=""
  18939. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18940. AST_OSS_FOUND=yes
  18941. else
  18942. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18943. CFLAGS="${CFLAGS} "
  18944. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  18945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  18946. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  18947. if eval \${$as_ac_Lib+:} false; then :
  18948. $as_echo_n "(cached) " >&6
  18949. else
  18950. ac_check_lib_save_LIBS=$LIBS
  18951. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  18952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18953. /* end confdefs.h. */
  18954. /* Override any GCC internal prototype to avoid an error.
  18955. Use char because int might match the return type of a GCC
  18956. builtin and then its argument prototype would still apply. */
  18957. #ifdef __cplusplus
  18958. extern "C"
  18959. #endif
  18960. char ${pbxfuncname} ();
  18961. int
  18962. main ()
  18963. {
  18964. return ${pbxfuncname} ();
  18965. ;
  18966. return 0;
  18967. }
  18968. _ACEOF
  18969. if ac_fn_c_try_link "$LINENO"; then :
  18970. eval "$as_ac_Lib=yes"
  18971. else
  18972. eval "$as_ac_Lib=no"
  18973. fi
  18974. rm -f core conftest.err conftest.$ac_objext \
  18975. conftest$ac_exeext conftest.$ac_ext
  18976. LIBS=$ac_check_lib_save_LIBS
  18977. fi
  18978. eval ac_res=\$$as_ac_Lib
  18979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18980. $as_echo "$ac_res" >&6; }
  18981. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18982. AST_OSS_FOUND=yes
  18983. else
  18984. AST_OSS_FOUND=no
  18985. fi
  18986. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18987. fi
  18988. # now check for the header.
  18989. if test "${AST_OSS_FOUND}" = "yes"; then
  18990. OSS_LIB="${pbxlibdir} -lossaudio "
  18991. # if --with-OSS=DIR has been specified, use it.
  18992. if test "x${OSS_DIR}" != "x"; then
  18993. OSS_INCLUDE="-I${OSS_DIR}/include"
  18994. fi
  18995. OSS_INCLUDE="${OSS_INCLUDE} "
  18996. if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
  18997. OSS_HEADER_FOUND="1"
  18998. else # check for the header
  18999. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19000. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  19001. ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
  19002. if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
  19003. OSS_HEADER_FOUND=1
  19004. else
  19005. OSS_HEADER_FOUND=0
  19006. fi
  19007. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19008. fi
  19009. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  19010. OSS_LIB=""
  19011. OSS_INCLUDE=""
  19012. else
  19013. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19014. OSS_LIB=""
  19015. fi
  19016. PBX_OSS=1
  19017. cat >>confdefs.h <<_ACEOF
  19018. #define HAVE_OSS 1
  19019. _ACEOF
  19020. fi
  19021. fi
  19022. fi
  19023. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  19024. pbxlibdir=""
  19025. # if --with-OSS=DIR has been specified, use it.
  19026. if test "x${OSS_DIR}" != "x"; then
  19027. if test -d ${OSS_DIR}/lib; then
  19028. pbxlibdir="-L${OSS_DIR}/lib"
  19029. else
  19030. pbxlibdir="-L${OSS_DIR}"
  19031. fi
  19032. fi
  19033. pbxfuncname=""
  19034. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19035. AST_OSS_FOUND=yes
  19036. else
  19037. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19038. CFLAGS="${CFLAGS} "
  19039. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  19040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  19041. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  19042. if eval \${$as_ac_Lib+:} false; then :
  19043. $as_echo_n "(cached) " >&6
  19044. else
  19045. ac_check_lib_save_LIBS=$LIBS
  19046. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  19047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19048. /* end confdefs.h. */
  19049. /* Override any GCC internal prototype to avoid an error.
  19050. Use char because int might match the return type of a GCC
  19051. builtin and then its argument prototype would still apply. */
  19052. #ifdef __cplusplus
  19053. extern "C"
  19054. #endif
  19055. char ${pbxfuncname} ();
  19056. int
  19057. main ()
  19058. {
  19059. return ${pbxfuncname} ();
  19060. ;
  19061. return 0;
  19062. }
  19063. _ACEOF
  19064. if ac_fn_c_try_link "$LINENO"; then :
  19065. eval "$as_ac_Lib=yes"
  19066. else
  19067. eval "$as_ac_Lib=no"
  19068. fi
  19069. rm -f core conftest.err conftest.$ac_objext \
  19070. conftest$ac_exeext conftest.$ac_ext
  19071. LIBS=$ac_check_lib_save_LIBS
  19072. fi
  19073. eval ac_res=\$$as_ac_Lib
  19074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19075. $as_echo "$ac_res" >&6; }
  19076. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19077. AST_OSS_FOUND=yes
  19078. else
  19079. AST_OSS_FOUND=no
  19080. fi
  19081. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19082. fi
  19083. # now check for the header.
  19084. if test "${AST_OSS_FOUND}" = "yes"; then
  19085. OSS_LIB="${pbxlibdir} -lossaudio "
  19086. # if --with-OSS=DIR has been specified, use it.
  19087. if test "x${OSS_DIR}" != "x"; then
  19088. OSS_INCLUDE="-I${OSS_DIR}/include"
  19089. fi
  19090. OSS_INCLUDE="${OSS_INCLUDE} "
  19091. if test "xsys/soundcard.h" = "x" ; then # no header, assume found
  19092. OSS_HEADER_FOUND="1"
  19093. else # check for the header
  19094. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19095. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  19096. ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
  19097. if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
  19098. OSS_HEADER_FOUND=1
  19099. else
  19100. OSS_HEADER_FOUND=0
  19101. fi
  19102. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19103. fi
  19104. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  19105. OSS_LIB=""
  19106. OSS_INCLUDE=""
  19107. else
  19108. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19109. OSS_LIB=""
  19110. fi
  19111. PBX_OSS=1
  19112. cat >>confdefs.h <<_ACEOF
  19113. #define HAVE_OSS 1
  19114. _ACEOF
  19115. fi
  19116. fi
  19117. fi
  19118. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  19119. pbxlibdir=""
  19120. # if --with-OSS=DIR has been specified, use it.
  19121. if test "x${OSS_DIR}" != "x"; then
  19122. if test -d ${OSS_DIR}/lib; then
  19123. pbxlibdir="-L${OSS_DIR}/lib"
  19124. else
  19125. pbxlibdir="-L${OSS_DIR}"
  19126. fi
  19127. fi
  19128. pbxfuncname="oss_ioctl_mixer"
  19129. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19130. AST_OSS_FOUND=yes
  19131. else
  19132. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19133. CFLAGS="${CFLAGS} "
  19134. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  19136. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  19137. if eval \${$as_ac_Lib+:} false; then :
  19138. $as_echo_n "(cached) " >&6
  19139. else
  19140. ac_check_lib_save_LIBS=$LIBS
  19141. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  19142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19143. /* end confdefs.h. */
  19144. /* Override any GCC internal prototype to avoid an error.
  19145. Use char because int might match the return type of a GCC
  19146. builtin and then its argument prototype would still apply. */
  19147. #ifdef __cplusplus
  19148. extern "C"
  19149. #endif
  19150. char ${pbxfuncname} ();
  19151. int
  19152. main ()
  19153. {
  19154. return ${pbxfuncname} ();
  19155. ;
  19156. return 0;
  19157. }
  19158. _ACEOF
  19159. if ac_fn_c_try_link "$LINENO"; then :
  19160. eval "$as_ac_Lib=yes"
  19161. else
  19162. eval "$as_ac_Lib=no"
  19163. fi
  19164. rm -f core conftest.err conftest.$ac_objext \
  19165. conftest$ac_exeext conftest.$ac_ext
  19166. LIBS=$ac_check_lib_save_LIBS
  19167. fi
  19168. eval ac_res=\$$as_ac_Lib
  19169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19170. $as_echo "$ac_res" >&6; }
  19171. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19172. AST_OSS_FOUND=yes
  19173. else
  19174. AST_OSS_FOUND=no
  19175. fi
  19176. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19177. fi
  19178. # now check for the header.
  19179. if test "${AST_OSS_FOUND}" = "yes"; then
  19180. OSS_LIB="${pbxlibdir} -lossaudio "
  19181. # if --with-OSS=DIR has been specified, use it.
  19182. if test "x${OSS_DIR}" != "x"; then
  19183. OSS_INCLUDE="-I${OSS_DIR}/include"
  19184. fi
  19185. OSS_INCLUDE="${OSS_INCLUDE} "
  19186. if test "xsoundcard.h" = "x" ; then # no header, assume found
  19187. OSS_HEADER_FOUND="1"
  19188. else # check for the header
  19189. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19190. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  19191. ac_fn_c_check_header_mongrel "$LINENO" "soundcard.h" "ac_cv_header_soundcard_h" "$ac_includes_default"
  19192. if test "x$ac_cv_header_soundcard_h" = xyes; then :
  19193. OSS_HEADER_FOUND=1
  19194. else
  19195. OSS_HEADER_FOUND=0
  19196. fi
  19197. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19198. fi
  19199. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  19200. OSS_LIB=""
  19201. OSS_INCLUDE=""
  19202. else
  19203. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19204. OSS_LIB=""
  19205. fi
  19206. PBX_OSS=1
  19207. cat >>confdefs.h <<_ACEOF
  19208. #define HAVE_OSS 1
  19209. _ACEOF
  19210. fi
  19211. fi
  19212. fi
  19213. PG_CONFIG=No
  19214. if test "${USE_PGSQL}" != "no"; then
  19215. if test "x${PGSQL_DIR}" != "x"; then
  19216. if test -n "$ac_tool_prefix"; then
  19217. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  19218. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  19219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19220. $as_echo_n "checking for $ac_word... " >&6; }
  19221. if ${ac_cv_path_PG_CONFIG+:} false; then :
  19222. $as_echo_n "(cached) " >&6
  19223. else
  19224. case $PG_CONFIG in
  19225. [\\/]* | ?:[\\/]*)
  19226. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  19227. ;;
  19228. *)
  19229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19230. for as_dir in ${PGSQL_DIR}/bin
  19231. do
  19232. IFS=$as_save_IFS
  19233. test -z "$as_dir" && as_dir=.
  19234. for ac_exec_ext in '' $ac_executable_extensions; do
  19235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19236. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19238. break 2
  19239. fi
  19240. done
  19241. done
  19242. IFS=$as_save_IFS
  19243. ;;
  19244. esac
  19245. fi
  19246. PG_CONFIG=$ac_cv_path_PG_CONFIG
  19247. if test -n "$PG_CONFIG"; then
  19248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  19249. $as_echo "$PG_CONFIG" >&6; }
  19250. else
  19251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19252. $as_echo "no" >&6; }
  19253. fi
  19254. fi
  19255. if test -z "$ac_cv_path_PG_CONFIG"; then
  19256. ac_pt_PG_CONFIG=$PG_CONFIG
  19257. # Extract the first word of "pg_config", so it can be a program name with args.
  19258. set dummy pg_config; ac_word=$2
  19259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19260. $as_echo_n "checking for $ac_word... " >&6; }
  19261. if ${ac_cv_path_ac_pt_PG_CONFIG+:} false; then :
  19262. $as_echo_n "(cached) " >&6
  19263. else
  19264. case $ac_pt_PG_CONFIG in
  19265. [\\/]* | ?:[\\/]*)
  19266. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  19267. ;;
  19268. *)
  19269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19270. for as_dir in ${PGSQL_DIR}/bin
  19271. do
  19272. IFS=$as_save_IFS
  19273. test -z "$as_dir" && as_dir=.
  19274. for ac_exec_ext in '' $ac_executable_extensions; do
  19275. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19276. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19278. break 2
  19279. fi
  19280. done
  19281. done
  19282. IFS=$as_save_IFS
  19283. ;;
  19284. esac
  19285. fi
  19286. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  19287. if test -n "$ac_pt_PG_CONFIG"; then
  19288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  19289. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  19290. else
  19291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19292. $as_echo "no" >&6; }
  19293. fi
  19294. if test "x$ac_pt_PG_CONFIG" = x; then
  19295. PG_CONFIG="No"
  19296. else
  19297. case $cross_compiling:$ac_tool_warned in
  19298. yes:)
  19299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19300. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19301. ac_tool_warned=yes ;;
  19302. esac
  19303. PG_CONFIG=$ac_pt_PG_CONFIG
  19304. fi
  19305. else
  19306. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  19307. fi
  19308. if test x"${PG_CONFIG}" = xNo; then
  19309. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  19310. $as_echo "$as_me: ***" >&6;}
  19311. { $as_echo "$as_me:${as_lineno-$LINENO}: *** pg_config was not found in the path you specified:" >&5
  19312. $as_echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
  19313. { $as_echo "$as_me:${as_lineno-$LINENO}: *** ${PGSQL_DIR}/bin" >&5
  19314. $as_echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
  19315. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  19316. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  19317. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  19318. $as_echo "$as_me: *** including --without-postgres" >&6;}
  19319. exit 1
  19320. fi
  19321. else
  19322. if test -n "$ac_tool_prefix"; then
  19323. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  19324. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  19325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19326. $as_echo_n "checking for $ac_word... " >&6; }
  19327. if ${ac_cv_path_PG_CONFIG+:} false; then :
  19328. $as_echo_n "(cached) " >&6
  19329. else
  19330. case $PG_CONFIG in
  19331. [\\/]* | ?:[\\/]*)
  19332. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  19333. ;;
  19334. *)
  19335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19336. for as_dir in $PATH
  19337. do
  19338. IFS=$as_save_IFS
  19339. test -z "$as_dir" && as_dir=.
  19340. for ac_exec_ext in '' $ac_executable_extensions; do
  19341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19342. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19344. break 2
  19345. fi
  19346. done
  19347. done
  19348. IFS=$as_save_IFS
  19349. ;;
  19350. esac
  19351. fi
  19352. PG_CONFIG=$ac_cv_path_PG_CONFIG
  19353. if test -n "$PG_CONFIG"; then
  19354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  19355. $as_echo "$PG_CONFIG" >&6; }
  19356. else
  19357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19358. $as_echo "no" >&6; }
  19359. fi
  19360. fi
  19361. if test -z "$ac_cv_path_PG_CONFIG"; then
  19362. ac_pt_PG_CONFIG=$PG_CONFIG
  19363. # Extract the first word of "pg_config", so it can be a program name with args.
  19364. set dummy pg_config; ac_word=$2
  19365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19366. $as_echo_n "checking for $ac_word... " >&6; }
  19367. if ${ac_cv_path_ac_pt_PG_CONFIG+:} false; then :
  19368. $as_echo_n "(cached) " >&6
  19369. else
  19370. case $ac_pt_PG_CONFIG in
  19371. [\\/]* | ?:[\\/]*)
  19372. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  19373. ;;
  19374. *)
  19375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19376. for as_dir in $PATH
  19377. do
  19378. IFS=$as_save_IFS
  19379. test -z "$as_dir" && as_dir=.
  19380. for ac_exec_ext in '' $ac_executable_extensions; do
  19381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19382. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19384. break 2
  19385. fi
  19386. done
  19387. done
  19388. IFS=$as_save_IFS
  19389. ;;
  19390. esac
  19391. fi
  19392. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  19393. if test -n "$ac_pt_PG_CONFIG"; then
  19394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  19395. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  19396. else
  19397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19398. $as_echo "no" >&6; }
  19399. fi
  19400. if test "x$ac_pt_PG_CONFIG" = x; then
  19401. PG_CONFIG="No"
  19402. else
  19403. case $cross_compiling:$ac_tool_warned in
  19404. yes:)
  19405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19406. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19407. ac_tool_warned=yes ;;
  19408. esac
  19409. PG_CONFIG=$ac_pt_PG_CONFIG
  19410. fi
  19411. else
  19412. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  19413. fi
  19414. fi
  19415. fi
  19416. if test "${PG_CONFIG}" != No; then
  19417. PGSQL_libdir=`${PG_CONFIG} --libdir`
  19418. PGSQL_includedir=`${PG_CONFIG} --includedir`
  19419. if test "x$?" != "x0" ; then
  19420. if test -n "${PGSQL_MANDATORY}" ; then
  19421. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  19422. $as_echo "$as_me: ***" >&6;}
  19423. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  19424. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  19425. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  19426. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  19427. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  19428. $as_echo "$as_me: *** including --without-postgres" >&6;}
  19429. exit 1
  19430. fi
  19431. else
  19432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
  19433. $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
  19434. if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
  19435. $as_echo_n "(cached) " >&6
  19436. else
  19437. ac_check_lib_save_LIBS=$LIBS
  19438. LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
  19439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19440. /* end confdefs.h. */
  19441. /* Override any GCC internal prototype to avoid an error.
  19442. Use char because int might match the return type of a GCC
  19443. builtin and then its argument prototype would still apply. */
  19444. #ifdef __cplusplus
  19445. extern "C"
  19446. #endif
  19447. char PQescapeStringConn ();
  19448. int
  19449. main ()
  19450. {
  19451. return PQescapeStringConn ();
  19452. ;
  19453. return 0;
  19454. }
  19455. _ACEOF
  19456. if ac_fn_c_try_link "$LINENO"; then :
  19457. ac_cv_lib_pq_PQescapeStringConn=yes
  19458. else
  19459. ac_cv_lib_pq_PQescapeStringConn=no
  19460. fi
  19461. rm -f core conftest.err conftest.$ac_objext \
  19462. conftest$ac_exeext conftest.$ac_ext
  19463. LIBS=$ac_check_lib_save_LIBS
  19464. fi
  19465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
  19466. $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
  19467. if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
  19468. cat >>confdefs.h <<_ACEOF
  19469. #define HAVE_PGSQL 1
  19470. _ACEOF
  19471. fi
  19472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char within Postgres headers" >&5
  19473. $as_echo_n "checking for pg_encoding_to_char within Postgres headers... " >&6; }
  19474. old_CFLAGS=${CFLAGS}
  19475. CFLAGS="${CFLAGS} -I${PGSQL_includedir} -Werror"
  19476. old_LDFLAGS=${LDFLAGS}
  19477. LDFLAGS="${LDFLAGS} -L${PGSQL_libdir} -lpq -lz"
  19478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19479. /* end confdefs.h. */
  19480. #include <libpq-fe.h>
  19481. int
  19482. main ()
  19483. {
  19484. const char *foo = pg_encoding_to_char(1)
  19485. ;
  19486. return 0;
  19487. }
  19488. _ACEOF
  19489. if ac_fn_c_try_link "$LINENO"; then :
  19490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19491. $as_echo "yes" >&6; }
  19492. cat >>confdefs.h <<_ACEOF
  19493. #define HAVE_PGSQL_pg_encoding_to_char 1
  19494. _ACEOF
  19495. else
  19496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19497. $as_echo "no" >&6; }
  19498. fi
  19499. rm -f core conftest.err conftest.$ac_objext \
  19500. conftest$ac_exeext conftest.$ac_ext
  19501. CFLAGS=${old_CFLAGS}
  19502. LDFLAGS=${old_LDFLAGS}
  19503. if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
  19504. PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
  19505. PGSQL_INCLUDE="-I${PGSQL_includedir}"
  19506. PBX_PGSQL=1
  19507. elif test -n "${PGSQL_MANDATORY}";
  19508. then
  19509. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  19510. $as_echo "$as_me: ***" >&6;}
  19511. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  19512. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  19513. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  19514. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  19515. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  19516. $as_echo "$as_me: *** including --without-postgres" >&6;}
  19517. exit 1
  19518. fi
  19519. fi
  19520. fi
  19521. if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
  19522. pbxlibdir=""
  19523. # if --with-POPT=DIR has been specified, use it.
  19524. if test "x${POPT_DIR}" != "x"; then
  19525. if test -d ${POPT_DIR}/lib; then
  19526. pbxlibdir="-L${POPT_DIR}/lib"
  19527. else
  19528. pbxlibdir="-L${POPT_DIR}"
  19529. fi
  19530. fi
  19531. pbxfuncname="poptStrerror"
  19532. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19533. AST_POPT_FOUND=yes
  19534. else
  19535. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19536. CFLAGS="${CFLAGS} "
  19537. as_ac_Lib=`$as_echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
  19538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpopt" >&5
  19539. $as_echo_n "checking for ${pbxfuncname} in -lpopt... " >&6; }
  19540. if eval \${$as_ac_Lib+:} false; then :
  19541. $as_echo_n "(cached) " >&6
  19542. else
  19543. ac_check_lib_save_LIBS=$LIBS
  19544. LIBS="-lpopt ${pbxlibdir} $LIBS"
  19545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19546. /* end confdefs.h. */
  19547. /* Override any GCC internal prototype to avoid an error.
  19548. Use char because int might match the return type of a GCC
  19549. builtin and then its argument prototype would still apply. */
  19550. #ifdef __cplusplus
  19551. extern "C"
  19552. #endif
  19553. char ${pbxfuncname} ();
  19554. int
  19555. main ()
  19556. {
  19557. return ${pbxfuncname} ();
  19558. ;
  19559. return 0;
  19560. }
  19561. _ACEOF
  19562. if ac_fn_c_try_link "$LINENO"; then :
  19563. eval "$as_ac_Lib=yes"
  19564. else
  19565. eval "$as_ac_Lib=no"
  19566. fi
  19567. rm -f core conftest.err conftest.$ac_objext \
  19568. conftest$ac_exeext conftest.$ac_ext
  19569. LIBS=$ac_check_lib_save_LIBS
  19570. fi
  19571. eval ac_res=\$$as_ac_Lib
  19572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19573. $as_echo "$ac_res" >&6; }
  19574. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19575. AST_POPT_FOUND=yes
  19576. else
  19577. AST_POPT_FOUND=no
  19578. fi
  19579. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19580. fi
  19581. # now check for the header.
  19582. if test "${AST_POPT_FOUND}" = "yes"; then
  19583. POPT_LIB="${pbxlibdir} -lpopt "
  19584. # if --with-POPT=DIR has been specified, use it.
  19585. if test "x${POPT_DIR}" != "x"; then
  19586. POPT_INCLUDE="-I${POPT_DIR}/include"
  19587. fi
  19588. POPT_INCLUDE="${POPT_INCLUDE} "
  19589. if test "xpopt.h" = "x" ; then # no header, assume found
  19590. POPT_HEADER_FOUND="1"
  19591. else # check for the header
  19592. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19593. CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
  19594. ac_fn_c_check_header_mongrel "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default"
  19595. if test "x$ac_cv_header_popt_h" = xyes; then :
  19596. POPT_HEADER_FOUND=1
  19597. else
  19598. POPT_HEADER_FOUND=0
  19599. fi
  19600. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19601. fi
  19602. if test "x${POPT_HEADER_FOUND}" = "x0" ; then
  19603. POPT_LIB=""
  19604. POPT_INCLUDE=""
  19605. else
  19606. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19607. POPT_LIB=""
  19608. fi
  19609. PBX_POPT=1
  19610. cat >>confdefs.h <<_ACEOF
  19611. #define HAVE_POPT 1
  19612. _ACEOF
  19613. fi
  19614. fi
  19615. fi
  19616. if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
  19617. pbxlibdir=""
  19618. # if --with-PORTAUDIO=DIR has been specified, use it.
  19619. if test "x${PORTAUDIO_DIR}" != "x"; then
  19620. if test -d ${PORTAUDIO_DIR}/lib; then
  19621. pbxlibdir="-L${PORTAUDIO_DIR}/lib"
  19622. else
  19623. pbxlibdir="-L${PORTAUDIO_DIR}"
  19624. fi
  19625. fi
  19626. pbxfuncname="Pa_GetDeviceCount"
  19627. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19628. AST_PORTAUDIO_FOUND=yes
  19629. else
  19630. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19631. CFLAGS="${CFLAGS} "
  19632. as_ac_Lib=`$as_echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
  19633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lportaudio" >&5
  19634. $as_echo_n "checking for ${pbxfuncname} in -lportaudio... " >&6; }
  19635. if eval \${$as_ac_Lib+:} false; then :
  19636. $as_echo_n "(cached) " >&6
  19637. else
  19638. ac_check_lib_save_LIBS=$LIBS
  19639. LIBS="-lportaudio ${pbxlibdir} $LIBS"
  19640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19641. /* end confdefs.h. */
  19642. /* Override any GCC internal prototype to avoid an error.
  19643. Use char because int might match the return type of a GCC
  19644. builtin and then its argument prototype would still apply. */
  19645. #ifdef __cplusplus
  19646. extern "C"
  19647. #endif
  19648. char ${pbxfuncname} ();
  19649. int
  19650. main ()
  19651. {
  19652. return ${pbxfuncname} ();
  19653. ;
  19654. return 0;
  19655. }
  19656. _ACEOF
  19657. if ac_fn_c_try_link "$LINENO"; then :
  19658. eval "$as_ac_Lib=yes"
  19659. else
  19660. eval "$as_ac_Lib=no"
  19661. fi
  19662. rm -f core conftest.err conftest.$ac_objext \
  19663. conftest$ac_exeext conftest.$ac_ext
  19664. LIBS=$ac_check_lib_save_LIBS
  19665. fi
  19666. eval ac_res=\$$as_ac_Lib
  19667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19668. $as_echo "$ac_res" >&6; }
  19669. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19670. AST_PORTAUDIO_FOUND=yes
  19671. else
  19672. AST_PORTAUDIO_FOUND=no
  19673. fi
  19674. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19675. fi
  19676. # now check for the header.
  19677. if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
  19678. PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
  19679. # if --with-PORTAUDIO=DIR has been specified, use it.
  19680. if test "x${PORTAUDIO_DIR}" != "x"; then
  19681. PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
  19682. fi
  19683. PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
  19684. if test "xportaudio.h" = "x" ; then # no header, assume found
  19685. PORTAUDIO_HEADER_FOUND="1"
  19686. else # check for the header
  19687. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19688. CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
  19689. ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  19690. if test "x$ac_cv_header_portaudio_h" = xyes; then :
  19691. PORTAUDIO_HEADER_FOUND=1
  19692. else
  19693. PORTAUDIO_HEADER_FOUND=0
  19694. fi
  19695. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19696. fi
  19697. if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
  19698. PORTAUDIO_LIB=""
  19699. PORTAUDIO_INCLUDE=""
  19700. else
  19701. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19702. PORTAUDIO_LIB=""
  19703. fi
  19704. PBX_PORTAUDIO=1
  19705. cat >>confdefs.h <<_ACEOF
  19706. #define HAVE_PORTAUDIO 1
  19707. _ACEOF
  19708. fi
  19709. fi
  19710. fi
  19711. if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
  19712. pbxlibdir=""
  19713. # if --with-PRI=DIR has been specified, use it.
  19714. if test "x${PRI_DIR}" != "x"; then
  19715. if test -d ${PRI_DIR}/lib; then
  19716. pbxlibdir="-L${PRI_DIR}/lib"
  19717. else
  19718. pbxlibdir="-L${PRI_DIR}"
  19719. fi
  19720. fi
  19721. pbxfuncname="pri_connected_line_update"
  19722. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19723. AST_PRI_FOUND=yes
  19724. else
  19725. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19726. CFLAGS="${CFLAGS} "
  19727. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19729. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19730. if eval \${$as_ac_Lib+:} false; then :
  19731. $as_echo_n "(cached) " >&6
  19732. else
  19733. ac_check_lib_save_LIBS=$LIBS
  19734. LIBS="-lpri ${pbxlibdir} $LIBS"
  19735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19736. /* end confdefs.h. */
  19737. /* Override any GCC internal prototype to avoid an error.
  19738. Use char because int might match the return type of a GCC
  19739. builtin and then its argument prototype would still apply. */
  19740. #ifdef __cplusplus
  19741. extern "C"
  19742. #endif
  19743. char ${pbxfuncname} ();
  19744. int
  19745. main ()
  19746. {
  19747. return ${pbxfuncname} ();
  19748. ;
  19749. return 0;
  19750. }
  19751. _ACEOF
  19752. if ac_fn_c_try_link "$LINENO"; then :
  19753. eval "$as_ac_Lib=yes"
  19754. else
  19755. eval "$as_ac_Lib=no"
  19756. fi
  19757. rm -f core conftest.err conftest.$ac_objext \
  19758. conftest$ac_exeext conftest.$ac_ext
  19759. LIBS=$ac_check_lib_save_LIBS
  19760. fi
  19761. eval ac_res=\$$as_ac_Lib
  19762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19763. $as_echo "$ac_res" >&6; }
  19764. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19765. AST_PRI_FOUND=yes
  19766. else
  19767. AST_PRI_FOUND=no
  19768. fi
  19769. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19770. fi
  19771. # now check for the header.
  19772. if test "${AST_PRI_FOUND}" = "yes"; then
  19773. PRI_LIB="${pbxlibdir} -lpri "
  19774. # if --with-PRI=DIR has been specified, use it.
  19775. if test "x${PRI_DIR}" != "x"; then
  19776. PRI_INCLUDE="-I${PRI_DIR}/include"
  19777. fi
  19778. PRI_INCLUDE="${PRI_INCLUDE} "
  19779. if test "xlibpri.h" = "x" ; then # no header, assume found
  19780. PRI_HEADER_FOUND="1"
  19781. else # check for the header
  19782. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19783. CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
  19784. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19785. if test "x$ac_cv_header_libpri_h" = xyes; then :
  19786. PRI_HEADER_FOUND=1
  19787. else
  19788. PRI_HEADER_FOUND=0
  19789. fi
  19790. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19791. fi
  19792. if test "x${PRI_HEADER_FOUND}" = "x0" ; then
  19793. PRI_LIB=""
  19794. PRI_INCLUDE=""
  19795. else
  19796. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19797. PRI_LIB=""
  19798. fi
  19799. PBX_PRI=1
  19800. cat >>confdefs.h <<_ACEOF
  19801. #define HAVE_PRI 1
  19802. _ACEOF
  19803. fi
  19804. fi
  19805. fi
  19806. if test "x${PBX_PRI_SETUP_ACK_INBAND}" != "x1" -a "${USE_PRI_SETUP_ACK_INBAND}" != "no"; then
  19807. pbxlibdir=""
  19808. # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
  19809. if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
  19810. if test -d ${PRI_SETUP_ACK_INBAND_DIR}/lib; then
  19811. pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}/lib"
  19812. else
  19813. pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}"
  19814. fi
  19815. fi
  19816. pbxfuncname="pri_setup_ack"
  19817. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19818. AST_PRI_SETUP_ACK_INBAND_FOUND=yes
  19819. else
  19820. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19821. CFLAGS="${CFLAGS} "
  19822. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19824. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19825. if eval \${$as_ac_Lib+:} false; then :
  19826. $as_echo_n "(cached) " >&6
  19827. else
  19828. ac_check_lib_save_LIBS=$LIBS
  19829. LIBS="-lpri ${pbxlibdir} $LIBS"
  19830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19831. /* end confdefs.h. */
  19832. /* Override any GCC internal prototype to avoid an error.
  19833. Use char because int might match the return type of a GCC
  19834. builtin and then its argument prototype would still apply. */
  19835. #ifdef __cplusplus
  19836. extern "C"
  19837. #endif
  19838. char ${pbxfuncname} ();
  19839. int
  19840. main ()
  19841. {
  19842. return ${pbxfuncname} ();
  19843. ;
  19844. return 0;
  19845. }
  19846. _ACEOF
  19847. if ac_fn_c_try_link "$LINENO"; then :
  19848. eval "$as_ac_Lib=yes"
  19849. else
  19850. eval "$as_ac_Lib=no"
  19851. fi
  19852. rm -f core conftest.err conftest.$ac_objext \
  19853. conftest$ac_exeext conftest.$ac_ext
  19854. LIBS=$ac_check_lib_save_LIBS
  19855. fi
  19856. eval ac_res=\$$as_ac_Lib
  19857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19858. $as_echo "$ac_res" >&6; }
  19859. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19860. AST_PRI_SETUP_ACK_INBAND_FOUND=yes
  19861. else
  19862. AST_PRI_SETUP_ACK_INBAND_FOUND=no
  19863. fi
  19864. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19865. fi
  19866. # now check for the header.
  19867. if test "${AST_PRI_SETUP_ACK_INBAND_FOUND}" = "yes"; then
  19868. PRI_SETUP_ACK_INBAND_LIB="${pbxlibdir} -lpri "
  19869. # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
  19870. if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
  19871. PRI_SETUP_ACK_INBAND_INCLUDE="-I${PRI_SETUP_ACK_INBAND_DIR}/include"
  19872. fi
  19873. PRI_SETUP_ACK_INBAND_INCLUDE="${PRI_SETUP_ACK_INBAND_INCLUDE} "
  19874. if test "xlibpri.h" = "x" ; then # no header, assume found
  19875. PRI_SETUP_ACK_INBAND_HEADER_FOUND="1"
  19876. else # check for the header
  19877. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19878. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_ACK_INBAND_INCLUDE}"
  19879. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19880. if test "x$ac_cv_header_libpri_h" = xyes; then :
  19881. PRI_SETUP_ACK_INBAND_HEADER_FOUND=1
  19882. else
  19883. PRI_SETUP_ACK_INBAND_HEADER_FOUND=0
  19884. fi
  19885. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19886. fi
  19887. if test "x${PRI_SETUP_ACK_INBAND_HEADER_FOUND}" = "x0" ; then
  19888. PRI_SETUP_ACK_INBAND_LIB=""
  19889. PRI_SETUP_ACK_INBAND_INCLUDE=""
  19890. else
  19891. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19892. PRI_SETUP_ACK_INBAND_LIB=""
  19893. fi
  19894. PBX_PRI_SETUP_ACK_INBAND=1
  19895. cat >>confdefs.h <<_ACEOF
  19896. #define HAVE_PRI_SETUP_ACK_INBAND 1
  19897. _ACEOF
  19898. fi
  19899. fi
  19900. fi
  19901. if test "x${PBX_PRI_L2_PERSISTENCE}" != "x1" -a "${USE_PRI_L2_PERSISTENCE}" != "no"; then
  19902. pbxlibdir=""
  19903. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  19904. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  19905. if test -d ${PRI_L2_PERSISTENCE_DIR}/lib; then
  19906. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}/lib"
  19907. else
  19908. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}"
  19909. fi
  19910. fi
  19911. pbxfuncname="pri_persistent_layer2_option"
  19912. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19913. AST_PRI_L2_PERSISTENCE_FOUND=yes
  19914. else
  19915. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19916. CFLAGS="${CFLAGS} "
  19917. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  19918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  19919. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  19920. if eval \${$as_ac_Lib+:} false; then :
  19921. $as_echo_n "(cached) " >&6
  19922. else
  19923. ac_check_lib_save_LIBS=$LIBS
  19924. LIBS="-lpri ${pbxlibdir} $LIBS"
  19925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19926. /* end confdefs.h. */
  19927. /* Override any GCC internal prototype to avoid an error.
  19928. Use char because int might match the return type of a GCC
  19929. builtin and then its argument prototype would still apply. */
  19930. #ifdef __cplusplus
  19931. extern "C"
  19932. #endif
  19933. char ${pbxfuncname} ();
  19934. int
  19935. main ()
  19936. {
  19937. return ${pbxfuncname} ();
  19938. ;
  19939. return 0;
  19940. }
  19941. _ACEOF
  19942. if ac_fn_c_try_link "$LINENO"; then :
  19943. eval "$as_ac_Lib=yes"
  19944. else
  19945. eval "$as_ac_Lib=no"
  19946. fi
  19947. rm -f core conftest.err conftest.$ac_objext \
  19948. conftest$ac_exeext conftest.$ac_ext
  19949. LIBS=$ac_check_lib_save_LIBS
  19950. fi
  19951. eval ac_res=\$$as_ac_Lib
  19952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19953. $as_echo "$ac_res" >&6; }
  19954. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19955. AST_PRI_L2_PERSISTENCE_FOUND=yes
  19956. else
  19957. AST_PRI_L2_PERSISTENCE_FOUND=no
  19958. fi
  19959. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19960. fi
  19961. # now check for the header.
  19962. if test "${AST_PRI_L2_PERSISTENCE_FOUND}" = "yes"; then
  19963. PRI_L2_PERSISTENCE_LIB="${pbxlibdir} -lpri "
  19964. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  19965. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  19966. PRI_L2_PERSISTENCE_INCLUDE="-I${PRI_L2_PERSISTENCE_DIR}/include"
  19967. fi
  19968. PRI_L2_PERSISTENCE_INCLUDE="${PRI_L2_PERSISTENCE_INCLUDE} "
  19969. if test "xlibpri.h" = "x" ; then # no header, assume found
  19970. PRI_L2_PERSISTENCE_HEADER_FOUND="1"
  19971. else # check for the header
  19972. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19973. CPPFLAGS="${CPPFLAGS} ${PRI_L2_PERSISTENCE_INCLUDE}"
  19974. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  19975. if test "x$ac_cv_header_libpri_h" = xyes; then :
  19976. PRI_L2_PERSISTENCE_HEADER_FOUND=1
  19977. else
  19978. PRI_L2_PERSISTENCE_HEADER_FOUND=0
  19979. fi
  19980. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19981. fi
  19982. if test "x${PRI_L2_PERSISTENCE_HEADER_FOUND}" = "x0" ; then
  19983. PRI_L2_PERSISTENCE_LIB=""
  19984. PRI_L2_PERSISTENCE_INCLUDE=""
  19985. else
  19986. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19987. PRI_L2_PERSISTENCE_LIB=""
  19988. fi
  19989. PBX_PRI_L2_PERSISTENCE=1
  19990. cat >>confdefs.h <<_ACEOF
  19991. #define HAVE_PRI_L2_PERSISTENCE 1
  19992. _ACEOF
  19993. fi
  19994. fi
  19995. fi
  19996. if test "x${PBX_PRI_DATETIME_SEND}" != "x1" -a "${USE_PRI_DATETIME_SEND}" != "no"; then
  19997. pbxlibdir=""
  19998. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  19999. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  20000. if test -d ${PRI_DATETIME_SEND_DIR}/lib; then
  20001. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}/lib"
  20002. else
  20003. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}"
  20004. fi
  20005. fi
  20006. pbxfuncname="pri_date_time_send_option"
  20007. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20008. AST_PRI_DATETIME_SEND_FOUND=yes
  20009. else
  20010. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20011. CFLAGS="${CFLAGS} "
  20012. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20014. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20015. if eval \${$as_ac_Lib+:} false; then :
  20016. $as_echo_n "(cached) " >&6
  20017. else
  20018. ac_check_lib_save_LIBS=$LIBS
  20019. LIBS="-lpri ${pbxlibdir} $LIBS"
  20020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20021. /* end confdefs.h. */
  20022. /* Override any GCC internal prototype to avoid an error.
  20023. Use char because int might match the return type of a GCC
  20024. builtin and then its argument prototype would still apply. */
  20025. #ifdef __cplusplus
  20026. extern "C"
  20027. #endif
  20028. char ${pbxfuncname} ();
  20029. int
  20030. main ()
  20031. {
  20032. return ${pbxfuncname} ();
  20033. ;
  20034. return 0;
  20035. }
  20036. _ACEOF
  20037. if ac_fn_c_try_link "$LINENO"; then :
  20038. eval "$as_ac_Lib=yes"
  20039. else
  20040. eval "$as_ac_Lib=no"
  20041. fi
  20042. rm -f core conftest.err conftest.$ac_objext \
  20043. conftest$ac_exeext conftest.$ac_ext
  20044. LIBS=$ac_check_lib_save_LIBS
  20045. fi
  20046. eval ac_res=\$$as_ac_Lib
  20047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20048. $as_echo "$ac_res" >&6; }
  20049. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20050. AST_PRI_DATETIME_SEND_FOUND=yes
  20051. else
  20052. AST_PRI_DATETIME_SEND_FOUND=no
  20053. fi
  20054. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20055. fi
  20056. # now check for the header.
  20057. if test "${AST_PRI_DATETIME_SEND_FOUND}" = "yes"; then
  20058. PRI_DATETIME_SEND_LIB="${pbxlibdir} -lpri "
  20059. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  20060. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  20061. PRI_DATETIME_SEND_INCLUDE="-I${PRI_DATETIME_SEND_DIR}/include"
  20062. fi
  20063. PRI_DATETIME_SEND_INCLUDE="${PRI_DATETIME_SEND_INCLUDE} "
  20064. if test "xlibpri.h" = "x" ; then # no header, assume found
  20065. PRI_DATETIME_SEND_HEADER_FOUND="1"
  20066. else # check for the header
  20067. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20068. CPPFLAGS="${CPPFLAGS} ${PRI_DATETIME_SEND_INCLUDE}"
  20069. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20070. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20071. PRI_DATETIME_SEND_HEADER_FOUND=1
  20072. else
  20073. PRI_DATETIME_SEND_HEADER_FOUND=0
  20074. fi
  20075. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20076. fi
  20077. if test "x${PRI_DATETIME_SEND_HEADER_FOUND}" = "x0" ; then
  20078. PRI_DATETIME_SEND_LIB=""
  20079. PRI_DATETIME_SEND_INCLUDE=""
  20080. else
  20081. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20082. PRI_DATETIME_SEND_LIB=""
  20083. fi
  20084. PBX_PRI_DATETIME_SEND=1
  20085. cat >>confdefs.h <<_ACEOF
  20086. #define HAVE_PRI_DATETIME_SEND 1
  20087. _ACEOF
  20088. fi
  20089. fi
  20090. fi
  20091. if test "x${PBX_PRI_MWI_V2}" != "x1" -a "${USE_PRI_MWI_V2}" != "no"; then
  20092. pbxlibdir=""
  20093. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  20094. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  20095. if test -d ${PRI_MWI_V2_DIR}/lib; then
  20096. pbxlibdir="-L${PRI_MWI_V2_DIR}/lib"
  20097. else
  20098. pbxlibdir="-L${PRI_MWI_V2_DIR}"
  20099. fi
  20100. fi
  20101. pbxfuncname="pri_mwi_indicate_v2"
  20102. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20103. AST_PRI_MWI_V2_FOUND=yes
  20104. else
  20105. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20106. CFLAGS="${CFLAGS} "
  20107. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20109. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20110. if eval \${$as_ac_Lib+:} false; then :
  20111. $as_echo_n "(cached) " >&6
  20112. else
  20113. ac_check_lib_save_LIBS=$LIBS
  20114. LIBS="-lpri ${pbxlibdir} $LIBS"
  20115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20116. /* end confdefs.h. */
  20117. /* Override any GCC internal prototype to avoid an error.
  20118. Use char because int might match the return type of a GCC
  20119. builtin and then its argument prototype would still apply. */
  20120. #ifdef __cplusplus
  20121. extern "C"
  20122. #endif
  20123. char ${pbxfuncname} ();
  20124. int
  20125. main ()
  20126. {
  20127. return ${pbxfuncname} ();
  20128. ;
  20129. return 0;
  20130. }
  20131. _ACEOF
  20132. if ac_fn_c_try_link "$LINENO"; then :
  20133. eval "$as_ac_Lib=yes"
  20134. else
  20135. eval "$as_ac_Lib=no"
  20136. fi
  20137. rm -f core conftest.err conftest.$ac_objext \
  20138. conftest$ac_exeext conftest.$ac_ext
  20139. LIBS=$ac_check_lib_save_LIBS
  20140. fi
  20141. eval ac_res=\$$as_ac_Lib
  20142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20143. $as_echo "$ac_res" >&6; }
  20144. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20145. AST_PRI_MWI_V2_FOUND=yes
  20146. else
  20147. AST_PRI_MWI_V2_FOUND=no
  20148. fi
  20149. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20150. fi
  20151. # now check for the header.
  20152. if test "${AST_PRI_MWI_V2_FOUND}" = "yes"; then
  20153. PRI_MWI_V2_LIB="${pbxlibdir} -lpri "
  20154. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  20155. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  20156. PRI_MWI_V2_INCLUDE="-I${PRI_MWI_V2_DIR}/include"
  20157. fi
  20158. PRI_MWI_V2_INCLUDE="${PRI_MWI_V2_INCLUDE} "
  20159. if test "xlibpri.h" = "x" ; then # no header, assume found
  20160. PRI_MWI_V2_HEADER_FOUND="1"
  20161. else # check for the header
  20162. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20163. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_V2_INCLUDE}"
  20164. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20165. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20166. PRI_MWI_V2_HEADER_FOUND=1
  20167. else
  20168. PRI_MWI_V2_HEADER_FOUND=0
  20169. fi
  20170. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20171. fi
  20172. if test "x${PRI_MWI_V2_HEADER_FOUND}" = "x0" ; then
  20173. PRI_MWI_V2_LIB=""
  20174. PRI_MWI_V2_INCLUDE=""
  20175. else
  20176. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20177. PRI_MWI_V2_LIB=""
  20178. fi
  20179. PBX_PRI_MWI_V2=1
  20180. cat >>confdefs.h <<_ACEOF
  20181. #define HAVE_PRI_MWI_V2 1
  20182. _ACEOF
  20183. fi
  20184. fi
  20185. fi
  20186. if test "x${PBX_PRI_DISPLAY_TEXT}" != "x1" -a "${USE_PRI_DISPLAY_TEXT}" != "no"; then
  20187. pbxlibdir=""
  20188. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  20189. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  20190. if test -d ${PRI_DISPLAY_TEXT_DIR}/lib; then
  20191. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}/lib"
  20192. else
  20193. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}"
  20194. fi
  20195. fi
  20196. pbxfuncname="pri_display_text"
  20197. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20198. AST_PRI_DISPLAY_TEXT_FOUND=yes
  20199. else
  20200. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20201. CFLAGS="${CFLAGS} "
  20202. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20204. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20205. if eval \${$as_ac_Lib+:} false; then :
  20206. $as_echo_n "(cached) " >&6
  20207. else
  20208. ac_check_lib_save_LIBS=$LIBS
  20209. LIBS="-lpri ${pbxlibdir} $LIBS"
  20210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20211. /* end confdefs.h. */
  20212. /* Override any GCC internal prototype to avoid an error.
  20213. Use char because int might match the return type of a GCC
  20214. builtin and then its argument prototype would still apply. */
  20215. #ifdef __cplusplus
  20216. extern "C"
  20217. #endif
  20218. char ${pbxfuncname} ();
  20219. int
  20220. main ()
  20221. {
  20222. return ${pbxfuncname} ();
  20223. ;
  20224. return 0;
  20225. }
  20226. _ACEOF
  20227. if ac_fn_c_try_link "$LINENO"; then :
  20228. eval "$as_ac_Lib=yes"
  20229. else
  20230. eval "$as_ac_Lib=no"
  20231. fi
  20232. rm -f core conftest.err conftest.$ac_objext \
  20233. conftest$ac_exeext conftest.$ac_ext
  20234. LIBS=$ac_check_lib_save_LIBS
  20235. fi
  20236. eval ac_res=\$$as_ac_Lib
  20237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20238. $as_echo "$ac_res" >&6; }
  20239. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20240. AST_PRI_DISPLAY_TEXT_FOUND=yes
  20241. else
  20242. AST_PRI_DISPLAY_TEXT_FOUND=no
  20243. fi
  20244. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20245. fi
  20246. # now check for the header.
  20247. if test "${AST_PRI_DISPLAY_TEXT_FOUND}" = "yes"; then
  20248. PRI_DISPLAY_TEXT_LIB="${pbxlibdir} -lpri "
  20249. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  20250. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  20251. PRI_DISPLAY_TEXT_INCLUDE="-I${PRI_DISPLAY_TEXT_DIR}/include"
  20252. fi
  20253. PRI_DISPLAY_TEXT_INCLUDE="${PRI_DISPLAY_TEXT_INCLUDE} "
  20254. if test "xlibpri.h" = "x" ; then # no header, assume found
  20255. PRI_DISPLAY_TEXT_HEADER_FOUND="1"
  20256. else # check for the header
  20257. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20258. CPPFLAGS="${CPPFLAGS} ${PRI_DISPLAY_TEXT_INCLUDE}"
  20259. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20260. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20261. PRI_DISPLAY_TEXT_HEADER_FOUND=1
  20262. else
  20263. PRI_DISPLAY_TEXT_HEADER_FOUND=0
  20264. fi
  20265. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20266. fi
  20267. if test "x${PRI_DISPLAY_TEXT_HEADER_FOUND}" = "x0" ; then
  20268. PRI_DISPLAY_TEXT_LIB=""
  20269. PRI_DISPLAY_TEXT_INCLUDE=""
  20270. else
  20271. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20272. PRI_DISPLAY_TEXT_LIB=""
  20273. fi
  20274. PBX_PRI_DISPLAY_TEXT=1
  20275. cat >>confdefs.h <<_ACEOF
  20276. #define HAVE_PRI_DISPLAY_TEXT 1
  20277. _ACEOF
  20278. fi
  20279. fi
  20280. fi
  20281. if test "x${PBX_PRI_MWI}" != "x1" -a "${USE_PRI_MWI}" != "no"; then
  20282. pbxlibdir=""
  20283. # if --with-PRI_MWI=DIR has been specified, use it.
  20284. if test "x${PRI_MWI_DIR}" != "x"; then
  20285. if test -d ${PRI_MWI_DIR}/lib; then
  20286. pbxlibdir="-L${PRI_MWI_DIR}/lib"
  20287. else
  20288. pbxlibdir="-L${PRI_MWI_DIR}"
  20289. fi
  20290. fi
  20291. pbxfuncname="pri_mwi_indicate"
  20292. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20293. AST_PRI_MWI_FOUND=yes
  20294. else
  20295. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20296. CFLAGS="${CFLAGS} "
  20297. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20299. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20300. if eval \${$as_ac_Lib+:} false; then :
  20301. $as_echo_n "(cached) " >&6
  20302. else
  20303. ac_check_lib_save_LIBS=$LIBS
  20304. LIBS="-lpri ${pbxlibdir} $LIBS"
  20305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20306. /* end confdefs.h. */
  20307. /* Override any GCC internal prototype to avoid an error.
  20308. Use char because int might match the return type of a GCC
  20309. builtin and then its argument prototype would still apply. */
  20310. #ifdef __cplusplus
  20311. extern "C"
  20312. #endif
  20313. char ${pbxfuncname} ();
  20314. int
  20315. main ()
  20316. {
  20317. return ${pbxfuncname} ();
  20318. ;
  20319. return 0;
  20320. }
  20321. _ACEOF
  20322. if ac_fn_c_try_link "$LINENO"; then :
  20323. eval "$as_ac_Lib=yes"
  20324. else
  20325. eval "$as_ac_Lib=no"
  20326. fi
  20327. rm -f core conftest.err conftest.$ac_objext \
  20328. conftest$ac_exeext conftest.$ac_ext
  20329. LIBS=$ac_check_lib_save_LIBS
  20330. fi
  20331. eval ac_res=\$$as_ac_Lib
  20332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20333. $as_echo "$ac_res" >&6; }
  20334. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20335. AST_PRI_MWI_FOUND=yes
  20336. else
  20337. AST_PRI_MWI_FOUND=no
  20338. fi
  20339. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20340. fi
  20341. # now check for the header.
  20342. if test "${AST_PRI_MWI_FOUND}" = "yes"; then
  20343. PRI_MWI_LIB="${pbxlibdir} -lpri "
  20344. # if --with-PRI_MWI=DIR has been specified, use it.
  20345. if test "x${PRI_MWI_DIR}" != "x"; then
  20346. PRI_MWI_INCLUDE="-I${PRI_MWI_DIR}/include"
  20347. fi
  20348. PRI_MWI_INCLUDE="${PRI_MWI_INCLUDE} "
  20349. if test "xlibpri.h" = "x" ; then # no header, assume found
  20350. PRI_MWI_HEADER_FOUND="1"
  20351. else # check for the header
  20352. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20353. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_INCLUDE}"
  20354. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20355. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20356. PRI_MWI_HEADER_FOUND=1
  20357. else
  20358. PRI_MWI_HEADER_FOUND=0
  20359. fi
  20360. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20361. fi
  20362. if test "x${PRI_MWI_HEADER_FOUND}" = "x0" ; then
  20363. PRI_MWI_LIB=""
  20364. PRI_MWI_INCLUDE=""
  20365. else
  20366. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20367. PRI_MWI_LIB=""
  20368. fi
  20369. PBX_PRI_MWI=1
  20370. cat >>confdefs.h <<_ACEOF
  20371. #define HAVE_PRI_MWI 1
  20372. _ACEOF
  20373. fi
  20374. fi
  20375. fi
  20376. if test "x${PBX_PRI_MCID}" != "x1" -a "${USE_PRI_MCID}" != "no"; then
  20377. pbxlibdir=""
  20378. # if --with-PRI_MCID=DIR has been specified, use it.
  20379. if test "x${PRI_MCID_DIR}" != "x"; then
  20380. if test -d ${PRI_MCID_DIR}/lib; then
  20381. pbxlibdir="-L${PRI_MCID_DIR}/lib"
  20382. else
  20383. pbxlibdir="-L${PRI_MCID_DIR}"
  20384. fi
  20385. fi
  20386. pbxfuncname="pri_mcid_enable"
  20387. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20388. AST_PRI_MCID_FOUND=yes
  20389. else
  20390. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20391. CFLAGS="${CFLAGS} "
  20392. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20394. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20395. if eval \${$as_ac_Lib+:} false; then :
  20396. $as_echo_n "(cached) " >&6
  20397. else
  20398. ac_check_lib_save_LIBS=$LIBS
  20399. LIBS="-lpri ${pbxlibdir} $LIBS"
  20400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20401. /* end confdefs.h. */
  20402. /* Override any GCC internal prototype to avoid an error.
  20403. Use char because int might match the return type of a GCC
  20404. builtin and then its argument prototype would still apply. */
  20405. #ifdef __cplusplus
  20406. extern "C"
  20407. #endif
  20408. char ${pbxfuncname} ();
  20409. int
  20410. main ()
  20411. {
  20412. return ${pbxfuncname} ();
  20413. ;
  20414. return 0;
  20415. }
  20416. _ACEOF
  20417. if ac_fn_c_try_link "$LINENO"; then :
  20418. eval "$as_ac_Lib=yes"
  20419. else
  20420. eval "$as_ac_Lib=no"
  20421. fi
  20422. rm -f core conftest.err conftest.$ac_objext \
  20423. conftest$ac_exeext conftest.$ac_ext
  20424. LIBS=$ac_check_lib_save_LIBS
  20425. fi
  20426. eval ac_res=\$$as_ac_Lib
  20427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20428. $as_echo "$ac_res" >&6; }
  20429. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20430. AST_PRI_MCID_FOUND=yes
  20431. else
  20432. AST_PRI_MCID_FOUND=no
  20433. fi
  20434. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20435. fi
  20436. # now check for the header.
  20437. if test "${AST_PRI_MCID_FOUND}" = "yes"; then
  20438. PRI_MCID_LIB="${pbxlibdir} -lpri "
  20439. # if --with-PRI_MCID=DIR has been specified, use it.
  20440. if test "x${PRI_MCID_DIR}" != "x"; then
  20441. PRI_MCID_INCLUDE="-I${PRI_MCID_DIR}/include"
  20442. fi
  20443. PRI_MCID_INCLUDE="${PRI_MCID_INCLUDE} "
  20444. if test "xlibpri.h" = "x" ; then # no header, assume found
  20445. PRI_MCID_HEADER_FOUND="1"
  20446. else # check for the header
  20447. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20448. CPPFLAGS="${CPPFLAGS} ${PRI_MCID_INCLUDE}"
  20449. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20450. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20451. PRI_MCID_HEADER_FOUND=1
  20452. else
  20453. PRI_MCID_HEADER_FOUND=0
  20454. fi
  20455. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20456. fi
  20457. if test "x${PRI_MCID_HEADER_FOUND}" = "x0" ; then
  20458. PRI_MCID_LIB=""
  20459. PRI_MCID_INCLUDE=""
  20460. else
  20461. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20462. PRI_MCID_LIB=""
  20463. fi
  20464. PBX_PRI_MCID=1
  20465. cat >>confdefs.h <<_ACEOF
  20466. #define HAVE_PRI_MCID 1
  20467. _ACEOF
  20468. fi
  20469. fi
  20470. fi
  20471. if test "x${PBX_PRI_CALL_WAITING}" != "x1" -a "${USE_PRI_CALL_WAITING}" != "no"; then
  20472. pbxlibdir=""
  20473. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  20474. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  20475. if test -d ${PRI_CALL_WAITING_DIR}/lib; then
  20476. pbxlibdir="-L${PRI_CALL_WAITING_DIR}/lib"
  20477. else
  20478. pbxlibdir="-L${PRI_CALL_WAITING_DIR}"
  20479. fi
  20480. fi
  20481. pbxfuncname="pri_connect_ack_enable"
  20482. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20483. AST_PRI_CALL_WAITING_FOUND=yes
  20484. else
  20485. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20486. CFLAGS="${CFLAGS} "
  20487. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20489. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20490. if eval \${$as_ac_Lib+:} false; then :
  20491. $as_echo_n "(cached) " >&6
  20492. else
  20493. ac_check_lib_save_LIBS=$LIBS
  20494. LIBS="-lpri ${pbxlibdir} $LIBS"
  20495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20496. /* end confdefs.h. */
  20497. /* Override any GCC internal prototype to avoid an error.
  20498. Use char because int might match the return type of a GCC
  20499. builtin and then its argument prototype would still apply. */
  20500. #ifdef __cplusplus
  20501. extern "C"
  20502. #endif
  20503. char ${pbxfuncname} ();
  20504. int
  20505. main ()
  20506. {
  20507. return ${pbxfuncname} ();
  20508. ;
  20509. return 0;
  20510. }
  20511. _ACEOF
  20512. if ac_fn_c_try_link "$LINENO"; then :
  20513. eval "$as_ac_Lib=yes"
  20514. else
  20515. eval "$as_ac_Lib=no"
  20516. fi
  20517. rm -f core conftest.err conftest.$ac_objext \
  20518. conftest$ac_exeext conftest.$ac_ext
  20519. LIBS=$ac_check_lib_save_LIBS
  20520. fi
  20521. eval ac_res=\$$as_ac_Lib
  20522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20523. $as_echo "$ac_res" >&6; }
  20524. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20525. AST_PRI_CALL_WAITING_FOUND=yes
  20526. else
  20527. AST_PRI_CALL_WAITING_FOUND=no
  20528. fi
  20529. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20530. fi
  20531. # now check for the header.
  20532. if test "${AST_PRI_CALL_WAITING_FOUND}" = "yes"; then
  20533. PRI_CALL_WAITING_LIB="${pbxlibdir} -lpri "
  20534. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  20535. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  20536. PRI_CALL_WAITING_INCLUDE="-I${PRI_CALL_WAITING_DIR}/include"
  20537. fi
  20538. PRI_CALL_WAITING_INCLUDE="${PRI_CALL_WAITING_INCLUDE} "
  20539. if test "xlibpri.h" = "x" ; then # no header, assume found
  20540. PRI_CALL_WAITING_HEADER_FOUND="1"
  20541. else # check for the header
  20542. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20543. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_WAITING_INCLUDE}"
  20544. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20545. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20546. PRI_CALL_WAITING_HEADER_FOUND=1
  20547. else
  20548. PRI_CALL_WAITING_HEADER_FOUND=0
  20549. fi
  20550. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20551. fi
  20552. if test "x${PRI_CALL_WAITING_HEADER_FOUND}" = "x0" ; then
  20553. PRI_CALL_WAITING_LIB=""
  20554. PRI_CALL_WAITING_INCLUDE=""
  20555. else
  20556. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20557. PRI_CALL_WAITING_LIB=""
  20558. fi
  20559. PBX_PRI_CALL_WAITING=1
  20560. cat >>confdefs.h <<_ACEOF
  20561. #define HAVE_PRI_CALL_WAITING 1
  20562. _ACEOF
  20563. fi
  20564. fi
  20565. fi
  20566. if test "x${PBX_PRI_AOC_EVENTS}" != "x1" -a "${USE_PRI_AOC_EVENTS}" != "no"; then
  20567. pbxlibdir=""
  20568. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  20569. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  20570. if test -d ${PRI_AOC_EVENTS_DIR}/lib; then
  20571. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}/lib"
  20572. else
  20573. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}"
  20574. fi
  20575. fi
  20576. pbxfuncname="pri_aoc_events_enable"
  20577. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20578. AST_PRI_AOC_EVENTS_FOUND=yes
  20579. else
  20580. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20581. CFLAGS="${CFLAGS} "
  20582. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20584. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20585. if eval \${$as_ac_Lib+:} false; then :
  20586. $as_echo_n "(cached) " >&6
  20587. else
  20588. ac_check_lib_save_LIBS=$LIBS
  20589. LIBS="-lpri ${pbxlibdir} $LIBS"
  20590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20591. /* end confdefs.h. */
  20592. /* Override any GCC internal prototype to avoid an error.
  20593. Use char because int might match the return type of a GCC
  20594. builtin and then its argument prototype would still apply. */
  20595. #ifdef __cplusplus
  20596. extern "C"
  20597. #endif
  20598. char ${pbxfuncname} ();
  20599. int
  20600. main ()
  20601. {
  20602. return ${pbxfuncname} ();
  20603. ;
  20604. return 0;
  20605. }
  20606. _ACEOF
  20607. if ac_fn_c_try_link "$LINENO"; then :
  20608. eval "$as_ac_Lib=yes"
  20609. else
  20610. eval "$as_ac_Lib=no"
  20611. fi
  20612. rm -f core conftest.err conftest.$ac_objext \
  20613. conftest$ac_exeext conftest.$ac_ext
  20614. LIBS=$ac_check_lib_save_LIBS
  20615. fi
  20616. eval ac_res=\$$as_ac_Lib
  20617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20618. $as_echo "$ac_res" >&6; }
  20619. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20620. AST_PRI_AOC_EVENTS_FOUND=yes
  20621. else
  20622. AST_PRI_AOC_EVENTS_FOUND=no
  20623. fi
  20624. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20625. fi
  20626. # now check for the header.
  20627. if test "${AST_PRI_AOC_EVENTS_FOUND}" = "yes"; then
  20628. PRI_AOC_EVENTS_LIB="${pbxlibdir} -lpri "
  20629. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  20630. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  20631. PRI_AOC_EVENTS_INCLUDE="-I${PRI_AOC_EVENTS_DIR}/include"
  20632. fi
  20633. PRI_AOC_EVENTS_INCLUDE="${PRI_AOC_EVENTS_INCLUDE} "
  20634. if test "xlibpri.h" = "x" ; then # no header, assume found
  20635. PRI_AOC_EVENTS_HEADER_FOUND="1"
  20636. else # check for the header
  20637. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20638. CPPFLAGS="${CPPFLAGS} ${PRI_AOC_EVENTS_INCLUDE}"
  20639. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20640. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20641. PRI_AOC_EVENTS_HEADER_FOUND=1
  20642. else
  20643. PRI_AOC_EVENTS_HEADER_FOUND=0
  20644. fi
  20645. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20646. fi
  20647. if test "x${PRI_AOC_EVENTS_HEADER_FOUND}" = "x0" ; then
  20648. PRI_AOC_EVENTS_LIB=""
  20649. PRI_AOC_EVENTS_INCLUDE=""
  20650. else
  20651. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20652. PRI_AOC_EVENTS_LIB=""
  20653. fi
  20654. PBX_PRI_AOC_EVENTS=1
  20655. cat >>confdefs.h <<_ACEOF
  20656. #define HAVE_PRI_AOC_EVENTS 1
  20657. _ACEOF
  20658. fi
  20659. fi
  20660. fi
  20661. if test "x${PBX_PRI_TRANSFER}" != "x1" -a "${USE_PRI_TRANSFER}" != "no"; then
  20662. pbxlibdir=""
  20663. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  20664. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  20665. if test -d ${PRI_TRANSFER_DIR}/lib; then
  20666. pbxlibdir="-L${PRI_TRANSFER_DIR}/lib"
  20667. else
  20668. pbxlibdir="-L${PRI_TRANSFER_DIR}"
  20669. fi
  20670. fi
  20671. pbxfuncname="pri_transfer_enable"
  20672. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20673. AST_PRI_TRANSFER_FOUND=yes
  20674. else
  20675. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20676. CFLAGS="${CFLAGS} "
  20677. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20679. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20680. if eval \${$as_ac_Lib+:} false; then :
  20681. $as_echo_n "(cached) " >&6
  20682. else
  20683. ac_check_lib_save_LIBS=$LIBS
  20684. LIBS="-lpri ${pbxlibdir} $LIBS"
  20685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20686. /* end confdefs.h. */
  20687. /* Override any GCC internal prototype to avoid an error.
  20688. Use char because int might match the return type of a GCC
  20689. builtin and then its argument prototype would still apply. */
  20690. #ifdef __cplusplus
  20691. extern "C"
  20692. #endif
  20693. char ${pbxfuncname} ();
  20694. int
  20695. main ()
  20696. {
  20697. return ${pbxfuncname} ();
  20698. ;
  20699. return 0;
  20700. }
  20701. _ACEOF
  20702. if ac_fn_c_try_link "$LINENO"; then :
  20703. eval "$as_ac_Lib=yes"
  20704. else
  20705. eval "$as_ac_Lib=no"
  20706. fi
  20707. rm -f core conftest.err conftest.$ac_objext \
  20708. conftest$ac_exeext conftest.$ac_ext
  20709. LIBS=$ac_check_lib_save_LIBS
  20710. fi
  20711. eval ac_res=\$$as_ac_Lib
  20712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20713. $as_echo "$ac_res" >&6; }
  20714. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20715. AST_PRI_TRANSFER_FOUND=yes
  20716. else
  20717. AST_PRI_TRANSFER_FOUND=no
  20718. fi
  20719. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20720. fi
  20721. # now check for the header.
  20722. if test "${AST_PRI_TRANSFER_FOUND}" = "yes"; then
  20723. PRI_TRANSFER_LIB="${pbxlibdir} -lpri "
  20724. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  20725. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  20726. PRI_TRANSFER_INCLUDE="-I${PRI_TRANSFER_DIR}/include"
  20727. fi
  20728. PRI_TRANSFER_INCLUDE="${PRI_TRANSFER_INCLUDE} "
  20729. if test "xlibpri.h" = "x" ; then # no header, assume found
  20730. PRI_TRANSFER_HEADER_FOUND="1"
  20731. else # check for the header
  20732. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20733. CPPFLAGS="${CPPFLAGS} ${PRI_TRANSFER_INCLUDE}"
  20734. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20735. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20736. PRI_TRANSFER_HEADER_FOUND=1
  20737. else
  20738. PRI_TRANSFER_HEADER_FOUND=0
  20739. fi
  20740. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20741. fi
  20742. if test "x${PRI_TRANSFER_HEADER_FOUND}" = "x0" ; then
  20743. PRI_TRANSFER_LIB=""
  20744. PRI_TRANSFER_INCLUDE=""
  20745. else
  20746. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20747. PRI_TRANSFER_LIB=""
  20748. fi
  20749. PBX_PRI_TRANSFER=1
  20750. cat >>confdefs.h <<_ACEOF
  20751. #define HAVE_PRI_TRANSFER 1
  20752. _ACEOF
  20753. fi
  20754. fi
  20755. fi
  20756. if test "x${PBX_PRI_CCSS}" != "x1" -a "${USE_PRI_CCSS}" != "no"; then
  20757. pbxlibdir=""
  20758. # if --with-PRI_CCSS=DIR has been specified, use it.
  20759. if test "x${PRI_CCSS_DIR}" != "x"; then
  20760. if test -d ${PRI_CCSS_DIR}/lib; then
  20761. pbxlibdir="-L${PRI_CCSS_DIR}/lib"
  20762. else
  20763. pbxlibdir="-L${PRI_CCSS_DIR}"
  20764. fi
  20765. fi
  20766. pbxfuncname="pri_cc_enable"
  20767. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20768. AST_PRI_CCSS_FOUND=yes
  20769. else
  20770. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20771. CFLAGS="${CFLAGS} "
  20772. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20774. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20775. if eval \${$as_ac_Lib+:} false; then :
  20776. $as_echo_n "(cached) " >&6
  20777. else
  20778. ac_check_lib_save_LIBS=$LIBS
  20779. LIBS="-lpri ${pbxlibdir} $LIBS"
  20780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20781. /* end confdefs.h. */
  20782. /* Override any GCC internal prototype to avoid an error.
  20783. Use char because int might match the return type of a GCC
  20784. builtin and then its argument prototype would still apply. */
  20785. #ifdef __cplusplus
  20786. extern "C"
  20787. #endif
  20788. char ${pbxfuncname} ();
  20789. int
  20790. main ()
  20791. {
  20792. return ${pbxfuncname} ();
  20793. ;
  20794. return 0;
  20795. }
  20796. _ACEOF
  20797. if ac_fn_c_try_link "$LINENO"; then :
  20798. eval "$as_ac_Lib=yes"
  20799. else
  20800. eval "$as_ac_Lib=no"
  20801. fi
  20802. rm -f core conftest.err conftest.$ac_objext \
  20803. conftest$ac_exeext conftest.$ac_ext
  20804. LIBS=$ac_check_lib_save_LIBS
  20805. fi
  20806. eval ac_res=\$$as_ac_Lib
  20807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20808. $as_echo "$ac_res" >&6; }
  20809. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20810. AST_PRI_CCSS_FOUND=yes
  20811. else
  20812. AST_PRI_CCSS_FOUND=no
  20813. fi
  20814. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20815. fi
  20816. # now check for the header.
  20817. if test "${AST_PRI_CCSS_FOUND}" = "yes"; then
  20818. PRI_CCSS_LIB="${pbxlibdir} -lpri "
  20819. # if --with-PRI_CCSS=DIR has been specified, use it.
  20820. if test "x${PRI_CCSS_DIR}" != "x"; then
  20821. PRI_CCSS_INCLUDE="-I${PRI_CCSS_DIR}/include"
  20822. fi
  20823. PRI_CCSS_INCLUDE="${PRI_CCSS_INCLUDE} "
  20824. if test "xlibpri.h" = "x" ; then # no header, assume found
  20825. PRI_CCSS_HEADER_FOUND="1"
  20826. else # check for the header
  20827. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20828. CPPFLAGS="${CPPFLAGS} ${PRI_CCSS_INCLUDE}"
  20829. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20830. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20831. PRI_CCSS_HEADER_FOUND=1
  20832. else
  20833. PRI_CCSS_HEADER_FOUND=0
  20834. fi
  20835. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20836. fi
  20837. if test "x${PRI_CCSS_HEADER_FOUND}" = "x0" ; then
  20838. PRI_CCSS_LIB=""
  20839. PRI_CCSS_INCLUDE=""
  20840. else
  20841. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20842. PRI_CCSS_LIB=""
  20843. fi
  20844. PBX_PRI_CCSS=1
  20845. cat >>confdefs.h <<_ACEOF
  20846. #define HAVE_PRI_CCSS 1
  20847. _ACEOF
  20848. fi
  20849. fi
  20850. fi
  20851. if test "x${PBX_PRI_HANGUP_FIX}" != "x1" -a "${USE_PRI_HANGUP_FIX}" != "no"; then
  20852. pbxlibdir=""
  20853. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  20854. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  20855. if test -d ${PRI_HANGUP_FIX_DIR}/lib; then
  20856. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}/lib"
  20857. else
  20858. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}"
  20859. fi
  20860. fi
  20861. pbxfuncname="pri_hangup_fix_enable"
  20862. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20863. AST_PRI_HANGUP_FIX_FOUND=yes
  20864. else
  20865. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20866. CFLAGS="${CFLAGS} "
  20867. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20869. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20870. if eval \${$as_ac_Lib+:} false; then :
  20871. $as_echo_n "(cached) " >&6
  20872. else
  20873. ac_check_lib_save_LIBS=$LIBS
  20874. LIBS="-lpri ${pbxlibdir} $LIBS"
  20875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20876. /* end confdefs.h. */
  20877. /* Override any GCC internal prototype to avoid an error.
  20878. Use char because int might match the return type of a GCC
  20879. builtin and then its argument prototype would still apply. */
  20880. #ifdef __cplusplus
  20881. extern "C"
  20882. #endif
  20883. char ${pbxfuncname} ();
  20884. int
  20885. main ()
  20886. {
  20887. return ${pbxfuncname} ();
  20888. ;
  20889. return 0;
  20890. }
  20891. _ACEOF
  20892. if ac_fn_c_try_link "$LINENO"; then :
  20893. eval "$as_ac_Lib=yes"
  20894. else
  20895. eval "$as_ac_Lib=no"
  20896. fi
  20897. rm -f core conftest.err conftest.$ac_objext \
  20898. conftest$ac_exeext conftest.$ac_ext
  20899. LIBS=$ac_check_lib_save_LIBS
  20900. fi
  20901. eval ac_res=\$$as_ac_Lib
  20902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20903. $as_echo "$ac_res" >&6; }
  20904. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20905. AST_PRI_HANGUP_FIX_FOUND=yes
  20906. else
  20907. AST_PRI_HANGUP_FIX_FOUND=no
  20908. fi
  20909. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20910. fi
  20911. # now check for the header.
  20912. if test "${AST_PRI_HANGUP_FIX_FOUND}" = "yes"; then
  20913. PRI_HANGUP_FIX_LIB="${pbxlibdir} -lpri "
  20914. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  20915. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  20916. PRI_HANGUP_FIX_INCLUDE="-I${PRI_HANGUP_FIX_DIR}/include"
  20917. fi
  20918. PRI_HANGUP_FIX_INCLUDE="${PRI_HANGUP_FIX_INCLUDE} "
  20919. if test "xlibpri.h" = "x" ; then # no header, assume found
  20920. PRI_HANGUP_FIX_HEADER_FOUND="1"
  20921. else # check for the header
  20922. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20923. CPPFLAGS="${CPPFLAGS} ${PRI_HANGUP_FIX_INCLUDE}"
  20924. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20925. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20926. PRI_HANGUP_FIX_HEADER_FOUND=1
  20927. else
  20928. PRI_HANGUP_FIX_HEADER_FOUND=0
  20929. fi
  20930. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20931. fi
  20932. if test "x${PRI_HANGUP_FIX_HEADER_FOUND}" = "x0" ; then
  20933. PRI_HANGUP_FIX_LIB=""
  20934. PRI_HANGUP_FIX_INCLUDE=""
  20935. else
  20936. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20937. PRI_HANGUP_FIX_LIB=""
  20938. fi
  20939. PBX_PRI_HANGUP_FIX=1
  20940. cat >>confdefs.h <<_ACEOF
  20941. #define HAVE_PRI_HANGUP_FIX 1
  20942. _ACEOF
  20943. fi
  20944. fi
  20945. fi
  20946. if test "x${PBX_PRI_SUBADDR}" != "x1" -a "${USE_PRI_SUBADDR}" != "no"; then
  20947. pbxlibdir=""
  20948. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  20949. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  20950. if test -d ${PRI_SUBADDR_DIR}/lib; then
  20951. pbxlibdir="-L${PRI_SUBADDR_DIR}/lib"
  20952. else
  20953. pbxlibdir="-L${PRI_SUBADDR_DIR}"
  20954. fi
  20955. fi
  20956. pbxfuncname="pri_sr_set_called_subaddress"
  20957. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20958. AST_PRI_SUBADDR_FOUND=yes
  20959. else
  20960. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20961. CFLAGS="${CFLAGS} "
  20962. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20964. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20965. if eval \${$as_ac_Lib+:} false; then :
  20966. $as_echo_n "(cached) " >&6
  20967. else
  20968. ac_check_lib_save_LIBS=$LIBS
  20969. LIBS="-lpri ${pbxlibdir} $LIBS"
  20970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20971. /* end confdefs.h. */
  20972. /* Override any GCC internal prototype to avoid an error.
  20973. Use char because int might match the return type of a GCC
  20974. builtin and then its argument prototype would still apply. */
  20975. #ifdef __cplusplus
  20976. extern "C"
  20977. #endif
  20978. char ${pbxfuncname} ();
  20979. int
  20980. main ()
  20981. {
  20982. return ${pbxfuncname} ();
  20983. ;
  20984. return 0;
  20985. }
  20986. _ACEOF
  20987. if ac_fn_c_try_link "$LINENO"; then :
  20988. eval "$as_ac_Lib=yes"
  20989. else
  20990. eval "$as_ac_Lib=no"
  20991. fi
  20992. rm -f core conftest.err conftest.$ac_objext \
  20993. conftest$ac_exeext conftest.$ac_ext
  20994. LIBS=$ac_check_lib_save_LIBS
  20995. fi
  20996. eval ac_res=\$$as_ac_Lib
  20997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20998. $as_echo "$ac_res" >&6; }
  20999. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21000. AST_PRI_SUBADDR_FOUND=yes
  21001. else
  21002. AST_PRI_SUBADDR_FOUND=no
  21003. fi
  21004. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21005. fi
  21006. # now check for the header.
  21007. if test "${AST_PRI_SUBADDR_FOUND}" = "yes"; then
  21008. PRI_SUBADDR_LIB="${pbxlibdir} -lpri "
  21009. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  21010. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  21011. PRI_SUBADDR_INCLUDE="-I${PRI_SUBADDR_DIR}/include"
  21012. fi
  21013. PRI_SUBADDR_INCLUDE="${PRI_SUBADDR_INCLUDE} "
  21014. if test "xlibpri.h" = "x" ; then # no header, assume found
  21015. PRI_SUBADDR_HEADER_FOUND="1"
  21016. else # check for the header
  21017. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21018. CPPFLAGS="${CPPFLAGS} ${PRI_SUBADDR_INCLUDE}"
  21019. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21020. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21021. PRI_SUBADDR_HEADER_FOUND=1
  21022. else
  21023. PRI_SUBADDR_HEADER_FOUND=0
  21024. fi
  21025. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21026. fi
  21027. if test "x${PRI_SUBADDR_HEADER_FOUND}" = "x0" ; then
  21028. PRI_SUBADDR_LIB=""
  21029. PRI_SUBADDR_INCLUDE=""
  21030. else
  21031. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21032. PRI_SUBADDR_LIB=""
  21033. fi
  21034. PBX_PRI_SUBADDR=1
  21035. cat >>confdefs.h <<_ACEOF
  21036. #define HAVE_PRI_SUBADDR 1
  21037. _ACEOF
  21038. fi
  21039. fi
  21040. fi
  21041. if test "x${PBX_PRI_CALL_HOLD}" != "x1" -a "${USE_PRI_CALL_HOLD}" != "no"; then
  21042. pbxlibdir=""
  21043. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  21044. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  21045. if test -d ${PRI_CALL_HOLD_DIR}/lib; then
  21046. pbxlibdir="-L${PRI_CALL_HOLD_DIR}/lib"
  21047. else
  21048. pbxlibdir="-L${PRI_CALL_HOLD_DIR}"
  21049. fi
  21050. fi
  21051. pbxfuncname="pri_hold_enable"
  21052. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21053. AST_PRI_CALL_HOLD_FOUND=yes
  21054. else
  21055. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21056. CFLAGS="${CFLAGS} "
  21057. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21059. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21060. if eval \${$as_ac_Lib+:} false; then :
  21061. $as_echo_n "(cached) " >&6
  21062. else
  21063. ac_check_lib_save_LIBS=$LIBS
  21064. LIBS="-lpri ${pbxlibdir} $LIBS"
  21065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21066. /* end confdefs.h. */
  21067. /* Override any GCC internal prototype to avoid an error.
  21068. Use char because int might match the return type of a GCC
  21069. builtin and then its argument prototype would still apply. */
  21070. #ifdef __cplusplus
  21071. extern "C"
  21072. #endif
  21073. char ${pbxfuncname} ();
  21074. int
  21075. main ()
  21076. {
  21077. return ${pbxfuncname} ();
  21078. ;
  21079. return 0;
  21080. }
  21081. _ACEOF
  21082. if ac_fn_c_try_link "$LINENO"; then :
  21083. eval "$as_ac_Lib=yes"
  21084. else
  21085. eval "$as_ac_Lib=no"
  21086. fi
  21087. rm -f core conftest.err conftest.$ac_objext \
  21088. conftest$ac_exeext conftest.$ac_ext
  21089. LIBS=$ac_check_lib_save_LIBS
  21090. fi
  21091. eval ac_res=\$$as_ac_Lib
  21092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21093. $as_echo "$ac_res" >&6; }
  21094. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21095. AST_PRI_CALL_HOLD_FOUND=yes
  21096. else
  21097. AST_PRI_CALL_HOLD_FOUND=no
  21098. fi
  21099. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21100. fi
  21101. # now check for the header.
  21102. if test "${AST_PRI_CALL_HOLD_FOUND}" = "yes"; then
  21103. PRI_CALL_HOLD_LIB="${pbxlibdir} -lpri "
  21104. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  21105. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  21106. PRI_CALL_HOLD_INCLUDE="-I${PRI_CALL_HOLD_DIR}/include"
  21107. fi
  21108. PRI_CALL_HOLD_INCLUDE="${PRI_CALL_HOLD_INCLUDE} "
  21109. if test "xlibpri.h" = "x" ; then # no header, assume found
  21110. PRI_CALL_HOLD_HEADER_FOUND="1"
  21111. else # check for the header
  21112. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21113. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_HOLD_INCLUDE}"
  21114. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21115. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21116. PRI_CALL_HOLD_HEADER_FOUND=1
  21117. else
  21118. PRI_CALL_HOLD_HEADER_FOUND=0
  21119. fi
  21120. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21121. fi
  21122. if test "x${PRI_CALL_HOLD_HEADER_FOUND}" = "x0" ; then
  21123. PRI_CALL_HOLD_LIB=""
  21124. PRI_CALL_HOLD_INCLUDE=""
  21125. else
  21126. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21127. PRI_CALL_HOLD_LIB=""
  21128. fi
  21129. PBX_PRI_CALL_HOLD=1
  21130. cat >>confdefs.h <<_ACEOF
  21131. #define HAVE_PRI_CALL_HOLD 1
  21132. _ACEOF
  21133. fi
  21134. fi
  21135. fi
  21136. if test "x${PBX_PRI_CALL_REROUTING}" != "x1" -a "${USE_PRI_CALL_REROUTING}" != "no"; then
  21137. pbxlibdir=""
  21138. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  21139. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  21140. if test -d ${PRI_CALL_REROUTING_DIR}/lib; then
  21141. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}/lib"
  21142. else
  21143. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}"
  21144. fi
  21145. fi
  21146. pbxfuncname="pri_reroute_enable"
  21147. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21148. AST_PRI_CALL_REROUTING_FOUND=yes
  21149. else
  21150. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21151. CFLAGS="${CFLAGS} "
  21152. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21154. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21155. if eval \${$as_ac_Lib+:} false; then :
  21156. $as_echo_n "(cached) " >&6
  21157. else
  21158. ac_check_lib_save_LIBS=$LIBS
  21159. LIBS="-lpri ${pbxlibdir} $LIBS"
  21160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21161. /* end confdefs.h. */
  21162. /* Override any GCC internal prototype to avoid an error.
  21163. Use char because int might match the return type of a GCC
  21164. builtin and then its argument prototype would still apply. */
  21165. #ifdef __cplusplus
  21166. extern "C"
  21167. #endif
  21168. char ${pbxfuncname} ();
  21169. int
  21170. main ()
  21171. {
  21172. return ${pbxfuncname} ();
  21173. ;
  21174. return 0;
  21175. }
  21176. _ACEOF
  21177. if ac_fn_c_try_link "$LINENO"; then :
  21178. eval "$as_ac_Lib=yes"
  21179. else
  21180. eval "$as_ac_Lib=no"
  21181. fi
  21182. rm -f core conftest.err conftest.$ac_objext \
  21183. conftest$ac_exeext conftest.$ac_ext
  21184. LIBS=$ac_check_lib_save_LIBS
  21185. fi
  21186. eval ac_res=\$$as_ac_Lib
  21187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21188. $as_echo "$ac_res" >&6; }
  21189. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21190. AST_PRI_CALL_REROUTING_FOUND=yes
  21191. else
  21192. AST_PRI_CALL_REROUTING_FOUND=no
  21193. fi
  21194. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21195. fi
  21196. # now check for the header.
  21197. if test "${AST_PRI_CALL_REROUTING_FOUND}" = "yes"; then
  21198. PRI_CALL_REROUTING_LIB="${pbxlibdir} -lpri "
  21199. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  21200. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  21201. PRI_CALL_REROUTING_INCLUDE="-I${PRI_CALL_REROUTING_DIR}/include"
  21202. fi
  21203. PRI_CALL_REROUTING_INCLUDE="${PRI_CALL_REROUTING_INCLUDE} "
  21204. if test "xlibpri.h" = "x" ; then # no header, assume found
  21205. PRI_CALL_REROUTING_HEADER_FOUND="1"
  21206. else # check for the header
  21207. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21208. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_REROUTING_INCLUDE}"
  21209. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21210. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21211. PRI_CALL_REROUTING_HEADER_FOUND=1
  21212. else
  21213. PRI_CALL_REROUTING_HEADER_FOUND=0
  21214. fi
  21215. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21216. fi
  21217. if test "x${PRI_CALL_REROUTING_HEADER_FOUND}" = "x0" ; then
  21218. PRI_CALL_REROUTING_LIB=""
  21219. PRI_CALL_REROUTING_INCLUDE=""
  21220. else
  21221. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21222. PRI_CALL_REROUTING_LIB=""
  21223. fi
  21224. PBX_PRI_CALL_REROUTING=1
  21225. cat >>confdefs.h <<_ACEOF
  21226. #define HAVE_PRI_CALL_REROUTING 1
  21227. _ACEOF
  21228. fi
  21229. fi
  21230. fi
  21231. if test "x${PBX_PRI_SETUP_KEYPAD}" != "x1" -a "${USE_PRI_SETUP_KEYPAD}" != "no"; then
  21232. pbxlibdir=""
  21233. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  21234. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  21235. if test -d ${PRI_SETUP_KEYPAD_DIR}/lib; then
  21236. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}/lib"
  21237. else
  21238. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}"
  21239. fi
  21240. fi
  21241. pbxfuncname="pri_sr_set_keypad_digits"
  21242. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21243. AST_PRI_SETUP_KEYPAD_FOUND=yes
  21244. else
  21245. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21246. CFLAGS="${CFLAGS} "
  21247. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21249. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21250. if eval \${$as_ac_Lib+:} false; then :
  21251. $as_echo_n "(cached) " >&6
  21252. else
  21253. ac_check_lib_save_LIBS=$LIBS
  21254. LIBS="-lpri ${pbxlibdir} $LIBS"
  21255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21256. /* end confdefs.h. */
  21257. /* Override any GCC internal prototype to avoid an error.
  21258. Use char because int might match the return type of a GCC
  21259. builtin and then its argument prototype would still apply. */
  21260. #ifdef __cplusplus
  21261. extern "C"
  21262. #endif
  21263. char ${pbxfuncname} ();
  21264. int
  21265. main ()
  21266. {
  21267. return ${pbxfuncname} ();
  21268. ;
  21269. return 0;
  21270. }
  21271. _ACEOF
  21272. if ac_fn_c_try_link "$LINENO"; then :
  21273. eval "$as_ac_Lib=yes"
  21274. else
  21275. eval "$as_ac_Lib=no"
  21276. fi
  21277. rm -f core conftest.err conftest.$ac_objext \
  21278. conftest$ac_exeext conftest.$ac_ext
  21279. LIBS=$ac_check_lib_save_LIBS
  21280. fi
  21281. eval ac_res=\$$as_ac_Lib
  21282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21283. $as_echo "$ac_res" >&6; }
  21284. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21285. AST_PRI_SETUP_KEYPAD_FOUND=yes
  21286. else
  21287. AST_PRI_SETUP_KEYPAD_FOUND=no
  21288. fi
  21289. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21290. fi
  21291. # now check for the header.
  21292. if test "${AST_PRI_SETUP_KEYPAD_FOUND}" = "yes"; then
  21293. PRI_SETUP_KEYPAD_LIB="${pbxlibdir} -lpri "
  21294. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  21295. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  21296. PRI_SETUP_KEYPAD_INCLUDE="-I${PRI_SETUP_KEYPAD_DIR}/include"
  21297. fi
  21298. PRI_SETUP_KEYPAD_INCLUDE="${PRI_SETUP_KEYPAD_INCLUDE} "
  21299. if test "xlibpri.h" = "x" ; then # no header, assume found
  21300. PRI_SETUP_KEYPAD_HEADER_FOUND="1"
  21301. else # check for the header
  21302. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21303. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_KEYPAD_INCLUDE}"
  21304. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21305. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21306. PRI_SETUP_KEYPAD_HEADER_FOUND=1
  21307. else
  21308. PRI_SETUP_KEYPAD_HEADER_FOUND=0
  21309. fi
  21310. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21311. fi
  21312. if test "x${PRI_SETUP_KEYPAD_HEADER_FOUND}" = "x0" ; then
  21313. PRI_SETUP_KEYPAD_LIB=""
  21314. PRI_SETUP_KEYPAD_INCLUDE=""
  21315. else
  21316. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21317. PRI_SETUP_KEYPAD_LIB=""
  21318. fi
  21319. PBX_PRI_SETUP_KEYPAD=1
  21320. cat >>confdefs.h <<_ACEOF
  21321. #define HAVE_PRI_SETUP_KEYPAD 1
  21322. _ACEOF
  21323. fi
  21324. fi
  21325. fi
  21326. # ------------------------------------v
  21327. # TODO: The code can be changed to always include these features now.
  21328. # These features will always be present if pri_connected_line_update is available.
  21329. if test "x${PBX_PRI_PROG_W_CAUSE}" != "x1" -a "${USE_PRI_PROG_W_CAUSE}" != "no"; then
  21330. pbxlibdir=""
  21331. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  21332. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  21333. if test -d ${PRI_PROG_W_CAUSE_DIR}/lib; then
  21334. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}/lib"
  21335. else
  21336. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}"
  21337. fi
  21338. fi
  21339. pbxfuncname="pri_progress_with_cause"
  21340. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21341. AST_PRI_PROG_W_CAUSE_FOUND=yes
  21342. else
  21343. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21344. CFLAGS="${CFLAGS} "
  21345. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21347. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21348. if eval \${$as_ac_Lib+:} false; then :
  21349. $as_echo_n "(cached) " >&6
  21350. else
  21351. ac_check_lib_save_LIBS=$LIBS
  21352. LIBS="-lpri ${pbxlibdir} $LIBS"
  21353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21354. /* end confdefs.h. */
  21355. /* Override any GCC internal prototype to avoid an error.
  21356. Use char because int might match the return type of a GCC
  21357. builtin and then its argument prototype would still apply. */
  21358. #ifdef __cplusplus
  21359. extern "C"
  21360. #endif
  21361. char ${pbxfuncname} ();
  21362. int
  21363. main ()
  21364. {
  21365. return ${pbxfuncname} ();
  21366. ;
  21367. return 0;
  21368. }
  21369. _ACEOF
  21370. if ac_fn_c_try_link "$LINENO"; then :
  21371. eval "$as_ac_Lib=yes"
  21372. else
  21373. eval "$as_ac_Lib=no"
  21374. fi
  21375. rm -f core conftest.err conftest.$ac_objext \
  21376. conftest$ac_exeext conftest.$ac_ext
  21377. LIBS=$ac_check_lib_save_LIBS
  21378. fi
  21379. eval ac_res=\$$as_ac_Lib
  21380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21381. $as_echo "$ac_res" >&6; }
  21382. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21383. AST_PRI_PROG_W_CAUSE_FOUND=yes
  21384. else
  21385. AST_PRI_PROG_W_CAUSE_FOUND=no
  21386. fi
  21387. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21388. fi
  21389. # now check for the header.
  21390. if test "${AST_PRI_PROG_W_CAUSE_FOUND}" = "yes"; then
  21391. PRI_PROG_W_CAUSE_LIB="${pbxlibdir} -lpri "
  21392. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  21393. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  21394. PRI_PROG_W_CAUSE_INCLUDE="-I${PRI_PROG_W_CAUSE_DIR}/include"
  21395. fi
  21396. PRI_PROG_W_CAUSE_INCLUDE="${PRI_PROG_W_CAUSE_INCLUDE} "
  21397. if test "xlibpri.h" = "x" ; then # no header, assume found
  21398. PRI_PROG_W_CAUSE_HEADER_FOUND="1"
  21399. else # check for the header
  21400. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21401. CPPFLAGS="${CPPFLAGS} ${PRI_PROG_W_CAUSE_INCLUDE}"
  21402. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21403. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21404. PRI_PROG_W_CAUSE_HEADER_FOUND=1
  21405. else
  21406. PRI_PROG_W_CAUSE_HEADER_FOUND=0
  21407. fi
  21408. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21409. fi
  21410. if test "x${PRI_PROG_W_CAUSE_HEADER_FOUND}" = "x0" ; then
  21411. PRI_PROG_W_CAUSE_LIB=""
  21412. PRI_PROG_W_CAUSE_INCLUDE=""
  21413. else
  21414. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21415. PRI_PROG_W_CAUSE_LIB=""
  21416. fi
  21417. PBX_PRI_PROG_W_CAUSE=1
  21418. cat >>confdefs.h <<_ACEOF
  21419. #define HAVE_PRI_PROG_W_CAUSE 1
  21420. _ACEOF
  21421. fi
  21422. fi
  21423. fi
  21424. if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
  21425. pbxlibdir=""
  21426. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  21427. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  21428. if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
  21429. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
  21430. else
  21431. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
  21432. fi
  21433. fi
  21434. pbxfuncname="pri_set_inbanddisconnect"
  21435. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21436. AST_PRI_INBANDDISCONNECT_FOUND=yes
  21437. else
  21438. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21439. CFLAGS="${CFLAGS} "
  21440. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21442. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21443. if eval \${$as_ac_Lib+:} false; then :
  21444. $as_echo_n "(cached) " >&6
  21445. else
  21446. ac_check_lib_save_LIBS=$LIBS
  21447. LIBS="-lpri ${pbxlibdir} $LIBS"
  21448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21449. /* end confdefs.h. */
  21450. /* Override any GCC internal prototype to avoid an error.
  21451. Use char because int might match the return type of a GCC
  21452. builtin and then its argument prototype would still apply. */
  21453. #ifdef __cplusplus
  21454. extern "C"
  21455. #endif
  21456. char ${pbxfuncname} ();
  21457. int
  21458. main ()
  21459. {
  21460. return ${pbxfuncname} ();
  21461. ;
  21462. return 0;
  21463. }
  21464. _ACEOF
  21465. if ac_fn_c_try_link "$LINENO"; then :
  21466. eval "$as_ac_Lib=yes"
  21467. else
  21468. eval "$as_ac_Lib=no"
  21469. fi
  21470. rm -f core conftest.err conftest.$ac_objext \
  21471. conftest$ac_exeext conftest.$ac_ext
  21472. LIBS=$ac_check_lib_save_LIBS
  21473. fi
  21474. eval ac_res=\$$as_ac_Lib
  21475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21476. $as_echo "$ac_res" >&6; }
  21477. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21478. AST_PRI_INBANDDISCONNECT_FOUND=yes
  21479. else
  21480. AST_PRI_INBANDDISCONNECT_FOUND=no
  21481. fi
  21482. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21483. fi
  21484. # now check for the header.
  21485. if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
  21486. PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
  21487. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  21488. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  21489. PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
  21490. fi
  21491. PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
  21492. if test "xlibpri.h" = "x" ; then # no header, assume found
  21493. PRI_INBANDDISCONNECT_HEADER_FOUND="1"
  21494. else # check for the header
  21495. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21496. CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
  21497. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21498. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21499. PRI_INBANDDISCONNECT_HEADER_FOUND=1
  21500. else
  21501. PRI_INBANDDISCONNECT_HEADER_FOUND=0
  21502. fi
  21503. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21504. fi
  21505. if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
  21506. PRI_INBANDDISCONNECT_LIB=""
  21507. PRI_INBANDDISCONNECT_INCLUDE=""
  21508. else
  21509. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21510. PRI_INBANDDISCONNECT_LIB=""
  21511. fi
  21512. PBX_PRI_INBANDDISCONNECT=1
  21513. cat >>confdefs.h <<_ACEOF
  21514. #define HAVE_PRI_INBANDDISCONNECT 1
  21515. _ACEOF
  21516. fi
  21517. fi
  21518. fi
  21519. if test "x${PBX_PRI_SERVICE_MESSAGES}" != "x1" -a "${USE_PRI_SERVICE_MESSAGES}" != "no"; then
  21520. pbxlibdir=""
  21521. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  21522. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  21523. if test -d ${PRI_SERVICE_MESSAGES_DIR}/lib; then
  21524. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}/lib"
  21525. else
  21526. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}"
  21527. fi
  21528. fi
  21529. pbxfuncname="pri_maintenance_service"
  21530. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21531. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  21532. else
  21533. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21534. CFLAGS="${CFLAGS} "
  21535. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21537. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21538. if eval \${$as_ac_Lib+:} false; then :
  21539. $as_echo_n "(cached) " >&6
  21540. else
  21541. ac_check_lib_save_LIBS=$LIBS
  21542. LIBS="-lpri ${pbxlibdir} $LIBS"
  21543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21544. /* end confdefs.h. */
  21545. /* Override any GCC internal prototype to avoid an error.
  21546. Use char because int might match the return type of a GCC
  21547. builtin and then its argument prototype would still apply. */
  21548. #ifdef __cplusplus
  21549. extern "C"
  21550. #endif
  21551. char ${pbxfuncname} ();
  21552. int
  21553. main ()
  21554. {
  21555. return ${pbxfuncname} ();
  21556. ;
  21557. return 0;
  21558. }
  21559. _ACEOF
  21560. if ac_fn_c_try_link "$LINENO"; then :
  21561. eval "$as_ac_Lib=yes"
  21562. else
  21563. eval "$as_ac_Lib=no"
  21564. fi
  21565. rm -f core conftest.err conftest.$ac_objext \
  21566. conftest$ac_exeext conftest.$ac_ext
  21567. LIBS=$ac_check_lib_save_LIBS
  21568. fi
  21569. eval ac_res=\$$as_ac_Lib
  21570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21571. $as_echo "$ac_res" >&6; }
  21572. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21573. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  21574. else
  21575. AST_PRI_SERVICE_MESSAGES_FOUND=no
  21576. fi
  21577. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21578. fi
  21579. # now check for the header.
  21580. if test "${AST_PRI_SERVICE_MESSAGES_FOUND}" = "yes"; then
  21581. PRI_SERVICE_MESSAGES_LIB="${pbxlibdir} -lpri "
  21582. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  21583. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  21584. PRI_SERVICE_MESSAGES_INCLUDE="-I${PRI_SERVICE_MESSAGES_DIR}/include"
  21585. fi
  21586. PRI_SERVICE_MESSAGES_INCLUDE="${PRI_SERVICE_MESSAGES_INCLUDE} "
  21587. if test "xlibpri.h" = "x" ; then # no header, assume found
  21588. PRI_SERVICE_MESSAGES_HEADER_FOUND="1"
  21589. else # check for the header
  21590. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21591. CPPFLAGS="${CPPFLAGS} ${PRI_SERVICE_MESSAGES_INCLUDE}"
  21592. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21593. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21594. PRI_SERVICE_MESSAGES_HEADER_FOUND=1
  21595. else
  21596. PRI_SERVICE_MESSAGES_HEADER_FOUND=0
  21597. fi
  21598. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21599. fi
  21600. if test "x${PRI_SERVICE_MESSAGES_HEADER_FOUND}" = "x0" ; then
  21601. PRI_SERVICE_MESSAGES_LIB=""
  21602. PRI_SERVICE_MESSAGES_INCLUDE=""
  21603. else
  21604. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21605. PRI_SERVICE_MESSAGES_LIB=""
  21606. fi
  21607. PBX_PRI_SERVICE_MESSAGES=1
  21608. cat >>confdefs.h <<_ACEOF
  21609. #define HAVE_PRI_SERVICE_MESSAGES 1
  21610. _ACEOF
  21611. fi
  21612. fi
  21613. fi
  21614. if test "x${PBX_PRI_REVERSE_CHARGE}" != "x1" -a "${USE_PRI_REVERSE_CHARGE}" != "no"; then
  21615. pbxlibdir=""
  21616. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  21617. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  21618. if test -d ${PRI_REVERSE_CHARGE_DIR}/lib; then
  21619. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}/lib"
  21620. else
  21621. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}"
  21622. fi
  21623. fi
  21624. pbxfuncname="pri_sr_set_reversecharge"
  21625. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21626. AST_PRI_REVERSE_CHARGE_FOUND=yes
  21627. else
  21628. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21629. CFLAGS="${CFLAGS} "
  21630. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21632. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21633. if eval \${$as_ac_Lib+:} false; then :
  21634. $as_echo_n "(cached) " >&6
  21635. else
  21636. ac_check_lib_save_LIBS=$LIBS
  21637. LIBS="-lpri ${pbxlibdir} $LIBS"
  21638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21639. /* end confdefs.h. */
  21640. /* Override any GCC internal prototype to avoid an error.
  21641. Use char because int might match the return type of a GCC
  21642. builtin and then its argument prototype would still apply. */
  21643. #ifdef __cplusplus
  21644. extern "C"
  21645. #endif
  21646. char ${pbxfuncname} ();
  21647. int
  21648. main ()
  21649. {
  21650. return ${pbxfuncname} ();
  21651. ;
  21652. return 0;
  21653. }
  21654. _ACEOF
  21655. if ac_fn_c_try_link "$LINENO"; then :
  21656. eval "$as_ac_Lib=yes"
  21657. else
  21658. eval "$as_ac_Lib=no"
  21659. fi
  21660. rm -f core conftest.err conftest.$ac_objext \
  21661. conftest$ac_exeext conftest.$ac_ext
  21662. LIBS=$ac_check_lib_save_LIBS
  21663. fi
  21664. eval ac_res=\$$as_ac_Lib
  21665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21666. $as_echo "$ac_res" >&6; }
  21667. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21668. AST_PRI_REVERSE_CHARGE_FOUND=yes
  21669. else
  21670. AST_PRI_REVERSE_CHARGE_FOUND=no
  21671. fi
  21672. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21673. fi
  21674. # now check for the header.
  21675. if test "${AST_PRI_REVERSE_CHARGE_FOUND}" = "yes"; then
  21676. PRI_REVERSE_CHARGE_LIB="${pbxlibdir} -lpri "
  21677. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  21678. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  21679. PRI_REVERSE_CHARGE_INCLUDE="-I${PRI_REVERSE_CHARGE_DIR}/include"
  21680. fi
  21681. PRI_REVERSE_CHARGE_INCLUDE="${PRI_REVERSE_CHARGE_INCLUDE} "
  21682. if test "xlibpri.h" = "x" ; then # no header, assume found
  21683. PRI_REVERSE_CHARGE_HEADER_FOUND="1"
  21684. else # check for the header
  21685. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21686. CPPFLAGS="${CPPFLAGS} ${PRI_REVERSE_CHARGE_INCLUDE}"
  21687. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21688. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21689. PRI_REVERSE_CHARGE_HEADER_FOUND=1
  21690. else
  21691. PRI_REVERSE_CHARGE_HEADER_FOUND=0
  21692. fi
  21693. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21694. fi
  21695. if test "x${PRI_REVERSE_CHARGE_HEADER_FOUND}" = "x0" ; then
  21696. PRI_REVERSE_CHARGE_LIB=""
  21697. PRI_REVERSE_CHARGE_INCLUDE=""
  21698. else
  21699. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21700. PRI_REVERSE_CHARGE_LIB=""
  21701. fi
  21702. PBX_PRI_REVERSE_CHARGE=1
  21703. cat >>confdefs.h <<_ACEOF
  21704. #define HAVE_PRI_REVERSE_CHARGE 1
  21705. _ACEOF
  21706. fi
  21707. fi
  21708. fi
  21709. # ------------------------------------^
  21710. if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
  21711. pbxlibdir=""
  21712. # if --with-RESAMPLE=DIR has been specified, use it.
  21713. if test "x${RESAMPLE_DIR}" != "x"; then
  21714. if test -d ${RESAMPLE_DIR}/lib; then
  21715. pbxlibdir="-L${RESAMPLE_DIR}/lib"
  21716. else
  21717. pbxlibdir="-L${RESAMPLE_DIR}"
  21718. fi
  21719. fi
  21720. pbxfuncname="resample_open"
  21721. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21722. AST_RESAMPLE_FOUND=yes
  21723. else
  21724. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21725. CFLAGS="${CFLAGS} "
  21726. as_ac_Lib=`$as_echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
  21727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lresample" >&5
  21728. $as_echo_n "checking for ${pbxfuncname} in -lresample... " >&6; }
  21729. if eval \${$as_ac_Lib+:} false; then :
  21730. $as_echo_n "(cached) " >&6
  21731. else
  21732. ac_check_lib_save_LIBS=$LIBS
  21733. LIBS="-lresample ${pbxlibdir} -lm $LIBS"
  21734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21735. /* end confdefs.h. */
  21736. /* Override any GCC internal prototype to avoid an error.
  21737. Use char because int might match the return type of a GCC
  21738. builtin and then its argument prototype would still apply. */
  21739. #ifdef __cplusplus
  21740. extern "C"
  21741. #endif
  21742. char ${pbxfuncname} ();
  21743. int
  21744. main ()
  21745. {
  21746. return ${pbxfuncname} ();
  21747. ;
  21748. return 0;
  21749. }
  21750. _ACEOF
  21751. if ac_fn_c_try_link "$LINENO"; then :
  21752. eval "$as_ac_Lib=yes"
  21753. else
  21754. eval "$as_ac_Lib=no"
  21755. fi
  21756. rm -f core conftest.err conftest.$ac_objext \
  21757. conftest$ac_exeext conftest.$ac_ext
  21758. LIBS=$ac_check_lib_save_LIBS
  21759. fi
  21760. eval ac_res=\$$as_ac_Lib
  21761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21762. $as_echo "$ac_res" >&6; }
  21763. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21764. AST_RESAMPLE_FOUND=yes
  21765. else
  21766. AST_RESAMPLE_FOUND=no
  21767. fi
  21768. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21769. fi
  21770. # now check for the header.
  21771. if test "${AST_RESAMPLE_FOUND}" = "yes"; then
  21772. RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
  21773. # if --with-RESAMPLE=DIR has been specified, use it.
  21774. if test "x${RESAMPLE_DIR}" != "x"; then
  21775. RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
  21776. fi
  21777. RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
  21778. if test "xlibresample.h" = "x" ; then # no header, assume found
  21779. RESAMPLE_HEADER_FOUND="1"
  21780. else # check for the header
  21781. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21782. CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
  21783. ac_fn_c_check_header_mongrel "$LINENO" "libresample.h" "ac_cv_header_libresample_h" "$ac_includes_default"
  21784. if test "x$ac_cv_header_libresample_h" = xyes; then :
  21785. RESAMPLE_HEADER_FOUND=1
  21786. else
  21787. RESAMPLE_HEADER_FOUND=0
  21788. fi
  21789. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21790. fi
  21791. if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
  21792. RESAMPLE_LIB=""
  21793. RESAMPLE_INCLUDE=""
  21794. else
  21795. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21796. RESAMPLE_LIB=""
  21797. fi
  21798. PBX_RESAMPLE=1
  21799. cat >>confdefs.h <<_ACEOF
  21800. #define HAVE_RESAMPLE 1
  21801. _ACEOF
  21802. fi
  21803. fi
  21804. fi
  21805. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  21806. if test "xminimum version of SpanDSP" != "x"; then
  21807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum version of SpanDSP" >&5
  21808. $as_echo_n "checking for minimum version of SpanDSP... " >&6; }
  21809. else
  21810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"
  21811. #if SPANDSP_RELEASE_DATE < 20080516
  21812. #error \"spandsp 0.0.5 or greater is required\"
  21813. #endif
  21814. \" compiles using spandsp/version.h" >&5
  21815. $as_echo_n "checking if \"
  21816. #if SPANDSP_RELEASE_DATE < 20080516
  21817. #error \"spandsp 0.0.5 or greater is required\"
  21818. #endif
  21819. \" compiles using spandsp/version.h... " >&6; }
  21820. fi
  21821. saved_cppflags="${CPPFLAGS}"
  21822. if test "x${SPANDSP_DIR}" != "x"; then
  21823. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  21824. fi
  21825. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  21826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21827. /* end confdefs.h. */
  21828. #include <spandsp/version.h>
  21829. int
  21830. main ()
  21831. {
  21832. #if SPANDSP_RELEASE_DATE < 20080516
  21833. #error "spandsp 0.0.5 or greater is required"
  21834. #endif
  21835. ;
  21836. ;
  21837. return 0;
  21838. }
  21839. _ACEOF
  21840. if ac_fn_c_try_compile "$LINENO"; then :
  21841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21842. $as_echo "yes" >&6; }
  21843. PBX_SPANDSP=1
  21844. $as_echo "#define HAVE_SPANDSP 1" >>confdefs.h
  21845. else
  21846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21847. $as_echo "no" >&6; }
  21848. fi
  21849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21850. CPPFLAGS="${saved_cppflags}"
  21851. fi
  21852. if test "x${PBX_SPANDSP}" = "x1" ; then
  21853. # We found the correct version in the header, now let's make sure it links
  21854. # properly, and that libtiff is available
  21855. PBX_SPANDSP=0
  21856. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  21857. pbxlibdir=""
  21858. # if --with-SPANDSP=DIR has been specified, use it.
  21859. if test "x${SPANDSP_DIR}" != "x"; then
  21860. if test -d ${SPANDSP_DIR}/lib; then
  21861. pbxlibdir="-L${SPANDSP_DIR}/lib"
  21862. else
  21863. pbxlibdir="-L${SPANDSP_DIR}"
  21864. fi
  21865. fi
  21866. pbxfuncname="span_set_message_handler"
  21867. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21868. AST_SPANDSP_FOUND=yes
  21869. else
  21870. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21871. CFLAGS="${CFLAGS} "
  21872. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  21873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
  21874. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  21875. if eval \${$as_ac_Lib+:} false; then :
  21876. $as_echo_n "(cached) " >&6
  21877. else
  21878. ac_check_lib_save_LIBS=$LIBS
  21879. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  21880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21881. /* end confdefs.h. */
  21882. /* Override any GCC internal prototype to avoid an error.
  21883. Use char because int might match the return type of a GCC
  21884. builtin and then its argument prototype would still apply. */
  21885. #ifdef __cplusplus
  21886. extern "C"
  21887. #endif
  21888. char ${pbxfuncname} ();
  21889. int
  21890. main ()
  21891. {
  21892. return ${pbxfuncname} ();
  21893. ;
  21894. return 0;
  21895. }
  21896. _ACEOF
  21897. if ac_fn_c_try_link "$LINENO"; then :
  21898. eval "$as_ac_Lib=yes"
  21899. else
  21900. eval "$as_ac_Lib=no"
  21901. fi
  21902. rm -f core conftest.err conftest.$ac_objext \
  21903. conftest$ac_exeext conftest.$ac_ext
  21904. LIBS=$ac_check_lib_save_LIBS
  21905. fi
  21906. eval ac_res=\$$as_ac_Lib
  21907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21908. $as_echo "$ac_res" >&6; }
  21909. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21910. AST_SPANDSP_FOUND=yes
  21911. else
  21912. AST_SPANDSP_FOUND=no
  21913. fi
  21914. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21915. fi
  21916. # now check for the header.
  21917. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  21918. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  21919. # if --with-SPANDSP=DIR has been specified, use it.
  21920. if test "x${SPANDSP_DIR}" != "x"; then
  21921. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  21922. fi
  21923. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  21924. if test "xspandsp.h" = "x" ; then # no header, assume found
  21925. SPANDSP_HEADER_FOUND="1"
  21926. else # check for the header
  21927. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21928. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  21929. ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  21930. if test "x$ac_cv_header_spandsp_h" = xyes; then :
  21931. SPANDSP_HEADER_FOUND=1
  21932. else
  21933. SPANDSP_HEADER_FOUND=0
  21934. fi
  21935. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21936. fi
  21937. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  21938. SPANDSP_LIB=""
  21939. SPANDSP_INCLUDE=""
  21940. else
  21941. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21942. SPANDSP_LIB=""
  21943. fi
  21944. PBX_SPANDSP=1
  21945. cat >>confdefs.h <<_ACEOF
  21946. #define HAVE_SPANDSP 1
  21947. _ACEOF
  21948. fi
  21949. fi
  21950. fi
  21951. fi
  21952. if test "x${PBX_SPANDSP}" = "x1" ; then
  21953. # We also need t38_terminal_init()
  21954. PBX_SPANDSP=0
  21955. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  21956. pbxlibdir=""
  21957. # if --with-SPANDSP=DIR has been specified, use it.
  21958. if test "x${SPANDSP_DIR}" != "x"; then
  21959. if test -d ${SPANDSP_DIR}/lib; then
  21960. pbxlibdir="-L${SPANDSP_DIR}/lib"
  21961. else
  21962. pbxlibdir="-L${SPANDSP_DIR}"
  21963. fi
  21964. fi
  21965. pbxfuncname="t38_terminal_init"
  21966. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21967. AST_SPANDSP_FOUND=yes
  21968. else
  21969. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21970. CFLAGS="${CFLAGS} "
  21971. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  21972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
  21973. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  21974. if eval \${$as_ac_Lib+:} false; then :
  21975. $as_echo_n "(cached) " >&6
  21976. else
  21977. ac_check_lib_save_LIBS=$LIBS
  21978. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  21979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21980. /* end confdefs.h. */
  21981. /* Override any GCC internal prototype to avoid an error.
  21982. Use char because int might match the return type of a GCC
  21983. builtin and then its argument prototype would still apply. */
  21984. #ifdef __cplusplus
  21985. extern "C"
  21986. #endif
  21987. char ${pbxfuncname} ();
  21988. int
  21989. main ()
  21990. {
  21991. return ${pbxfuncname} ();
  21992. ;
  21993. return 0;
  21994. }
  21995. _ACEOF
  21996. if ac_fn_c_try_link "$LINENO"; then :
  21997. eval "$as_ac_Lib=yes"
  21998. else
  21999. eval "$as_ac_Lib=no"
  22000. fi
  22001. rm -f core conftest.err conftest.$ac_objext \
  22002. conftest$ac_exeext conftest.$ac_ext
  22003. LIBS=$ac_check_lib_save_LIBS
  22004. fi
  22005. eval ac_res=\$$as_ac_Lib
  22006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22007. $as_echo "$ac_res" >&6; }
  22008. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22009. AST_SPANDSP_FOUND=yes
  22010. else
  22011. AST_SPANDSP_FOUND=no
  22012. fi
  22013. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22014. fi
  22015. # now check for the header.
  22016. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  22017. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  22018. # if --with-SPANDSP=DIR has been specified, use it.
  22019. if test "x${SPANDSP_DIR}" != "x"; then
  22020. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  22021. fi
  22022. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  22023. if test "xspandsp.h" = "x" ; then # no header, assume found
  22024. SPANDSP_HEADER_FOUND="1"
  22025. else # check for the header
  22026. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22027. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  22028. ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  22029. if test "x$ac_cv_header_spandsp_h" = xyes; then :
  22030. SPANDSP_HEADER_FOUND=1
  22031. else
  22032. SPANDSP_HEADER_FOUND=0
  22033. fi
  22034. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22035. fi
  22036. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  22037. SPANDSP_LIB=""
  22038. SPANDSP_INCLUDE=""
  22039. else
  22040. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22041. SPANDSP_LIB=""
  22042. fi
  22043. PBX_SPANDSP=1
  22044. cat >>confdefs.h <<_ACEOF
  22045. #define HAVE_SPANDSP 1
  22046. _ACEOF
  22047. fi
  22048. fi
  22049. fi
  22050. fi
  22051. # Check for libss7 v1.0 branch compatible version.
  22052. if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
  22053. pbxlibdir=""
  22054. # if --with-SS7=DIR has been specified, use it.
  22055. if test "x${SS7_DIR}" != "x"; then
  22056. if test -d ${SS7_DIR}/lib; then
  22057. pbxlibdir="-L${SS7_DIR}/lib"
  22058. else
  22059. pbxlibdir="-L${SS7_DIR}"
  22060. fi
  22061. fi
  22062. pbxfuncname="ss7_set_adjpc"
  22063. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22064. AST_SS7_FOUND=yes
  22065. else
  22066. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22067. CFLAGS="${CFLAGS} "
  22068. as_ac_Lib=`$as_echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
  22069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lss7" >&5
  22070. $as_echo_n "checking for ${pbxfuncname} in -lss7... " >&6; }
  22071. if eval \${$as_ac_Lib+:} false; then :
  22072. $as_echo_n "(cached) " >&6
  22073. else
  22074. ac_check_lib_save_LIBS=$LIBS
  22075. LIBS="-lss7 ${pbxlibdir} $LIBS"
  22076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22077. /* end confdefs.h. */
  22078. /* Override any GCC internal prototype to avoid an error.
  22079. Use char because int might match the return type of a GCC
  22080. builtin and then its argument prototype would still apply. */
  22081. #ifdef __cplusplus
  22082. extern "C"
  22083. #endif
  22084. char ${pbxfuncname} ();
  22085. int
  22086. main ()
  22087. {
  22088. return ${pbxfuncname} ();
  22089. ;
  22090. return 0;
  22091. }
  22092. _ACEOF
  22093. if ac_fn_c_try_link "$LINENO"; then :
  22094. eval "$as_ac_Lib=yes"
  22095. else
  22096. eval "$as_ac_Lib=no"
  22097. fi
  22098. rm -f core conftest.err conftest.$ac_objext \
  22099. conftest$ac_exeext conftest.$ac_ext
  22100. LIBS=$ac_check_lib_save_LIBS
  22101. fi
  22102. eval ac_res=\$$as_ac_Lib
  22103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22104. $as_echo "$ac_res" >&6; }
  22105. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22106. AST_SS7_FOUND=yes
  22107. else
  22108. AST_SS7_FOUND=no
  22109. fi
  22110. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22111. fi
  22112. # now check for the header.
  22113. if test "${AST_SS7_FOUND}" = "yes"; then
  22114. SS7_LIB="${pbxlibdir} -lss7 "
  22115. # if --with-SS7=DIR has been specified, use it.
  22116. if test "x${SS7_DIR}" != "x"; then
  22117. SS7_INCLUDE="-I${SS7_DIR}/include"
  22118. fi
  22119. SS7_INCLUDE="${SS7_INCLUDE} "
  22120. if test "xlibss7.h" = "x" ; then # no header, assume found
  22121. SS7_HEADER_FOUND="1"
  22122. else # check for the header
  22123. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22124. CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
  22125. ac_fn_c_check_header_mongrel "$LINENO" "libss7.h" "ac_cv_header_libss7_h" "$ac_includes_default"
  22126. if test "x$ac_cv_header_libss7_h" = xyes; then :
  22127. SS7_HEADER_FOUND=1
  22128. else
  22129. SS7_HEADER_FOUND=0
  22130. fi
  22131. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22132. fi
  22133. if test "x${SS7_HEADER_FOUND}" = "x0" ; then
  22134. SS7_LIB=""
  22135. SS7_INCLUDE=""
  22136. else
  22137. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22138. SS7_LIB=""
  22139. fi
  22140. PBX_SS7=1
  22141. cat >>confdefs.h <<_ACEOF
  22142. #define HAVE_SS7 1
  22143. _ACEOF
  22144. fi
  22145. fi
  22146. fi
  22147. if test "x${PBX_OPENR2}" != "x1" -a "${USE_OPENR2}" != "no"; then
  22148. pbxlibdir=""
  22149. # if --with-OPENR2=DIR has been specified, use it.
  22150. if test "x${OPENR2_DIR}" != "x"; then
  22151. if test -d ${OPENR2_DIR}/lib; then
  22152. pbxlibdir="-L${OPENR2_DIR}/lib"
  22153. else
  22154. pbxlibdir="-L${OPENR2_DIR}"
  22155. fi
  22156. fi
  22157. pbxfuncname="openr2_chan_new"
  22158. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22159. AST_OPENR2_FOUND=yes
  22160. else
  22161. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22162. CFLAGS="${CFLAGS} "
  22163. as_ac_Lib=`$as_echo "ac_cv_lib_openr2_${pbxfuncname}" | $as_tr_sh`
  22164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lopenr2" >&5
  22165. $as_echo_n "checking for ${pbxfuncname} in -lopenr2... " >&6; }
  22166. if eval \${$as_ac_Lib+:} false; then :
  22167. $as_echo_n "(cached) " >&6
  22168. else
  22169. ac_check_lib_save_LIBS=$LIBS
  22170. LIBS="-lopenr2 ${pbxlibdir} $LIBS"
  22171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22172. /* end confdefs.h. */
  22173. /* Override any GCC internal prototype to avoid an error.
  22174. Use char because int might match the return type of a GCC
  22175. builtin and then its argument prototype would still apply. */
  22176. #ifdef __cplusplus
  22177. extern "C"
  22178. #endif
  22179. char ${pbxfuncname} ();
  22180. int
  22181. main ()
  22182. {
  22183. return ${pbxfuncname} ();
  22184. ;
  22185. return 0;
  22186. }
  22187. _ACEOF
  22188. if ac_fn_c_try_link "$LINENO"; then :
  22189. eval "$as_ac_Lib=yes"
  22190. else
  22191. eval "$as_ac_Lib=no"
  22192. fi
  22193. rm -f core conftest.err conftest.$ac_objext \
  22194. conftest$ac_exeext conftest.$ac_ext
  22195. LIBS=$ac_check_lib_save_LIBS
  22196. fi
  22197. eval ac_res=\$$as_ac_Lib
  22198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22199. $as_echo "$ac_res" >&6; }
  22200. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22201. AST_OPENR2_FOUND=yes
  22202. else
  22203. AST_OPENR2_FOUND=no
  22204. fi
  22205. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22206. fi
  22207. # now check for the header.
  22208. if test "${AST_OPENR2_FOUND}" = "yes"; then
  22209. OPENR2_LIB="${pbxlibdir} -lopenr2 "
  22210. # if --with-OPENR2=DIR has been specified, use it.
  22211. if test "x${OPENR2_DIR}" != "x"; then
  22212. OPENR2_INCLUDE="-I${OPENR2_DIR}/include"
  22213. fi
  22214. OPENR2_INCLUDE="${OPENR2_INCLUDE} "
  22215. if test "xopenr2.h" = "x" ; then # no header, assume found
  22216. OPENR2_HEADER_FOUND="1"
  22217. else # check for the header
  22218. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22219. CPPFLAGS="${CPPFLAGS} ${OPENR2_INCLUDE}"
  22220. ac_fn_c_check_header_mongrel "$LINENO" "openr2.h" "ac_cv_header_openr2_h" "$ac_includes_default"
  22221. if test "x$ac_cv_header_openr2_h" = xyes; then :
  22222. OPENR2_HEADER_FOUND=1
  22223. else
  22224. OPENR2_HEADER_FOUND=0
  22225. fi
  22226. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22227. fi
  22228. if test "x${OPENR2_HEADER_FOUND}" = "x0" ; then
  22229. OPENR2_LIB=""
  22230. OPENR2_INCLUDE=""
  22231. else
  22232. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22233. OPENR2_LIB=""
  22234. fi
  22235. PBX_OPENR2=1
  22236. cat >>confdefs.h <<_ACEOF
  22237. #define HAVE_OPENR2 1
  22238. _ACEOF
  22239. fi
  22240. fi
  22241. fi
  22242. if test "${USE_PWLIB}" != "no"; then
  22243. if test -n "${PWLIB_DIR}"; then
  22244. PWLIBDIR="${PWLIB_DIR}"
  22245. fi
  22246. PWLIB_INCDIR=
  22247. PWLIB_LIBDIR=
  22248. ac_ext=cpp
  22249. ac_cpp='$CXXCPP $CPPFLAGS'
  22250. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22251. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22252. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22253. if test "${PWLIBDIR:-unset}" != "unset" ; then
  22254. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
  22255. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  22256. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22257. HAS_PWLIB=1
  22258. fi
  22259. fi
  22260. if test "${HAS_PWLIB:-unset}" = "unset" ; then
  22261. if test "${OPENH323DIR:-unset}" != "unset"; then
  22262. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
  22263. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/../pwlib/version.h" "$as_ac_Header" "$ac_includes_default"
  22264. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22265. HAS_PWLIB=1
  22266. fi
  22267. fi
  22268. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  22269. PWLIBDIR="${OPENH323DIR}/../pwlib"
  22270. else
  22271. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
  22272. ac_fn_cxx_check_header_mongrel "$LINENO" "${HOME}/pwlib/include/ptlib.h" "$as_ac_Header" "$ac_includes_default"
  22273. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22274. HAS_PWLIB=1
  22275. fi
  22276. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  22277. PWLIBDIR="${HOME}/pwlib"
  22278. else
  22279. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/local/include/ptlib.h" "ac_cv_header__usr_local_include_ptlib_h" "$ac_includes_default"
  22280. if test "x$ac_cv_header__usr_local_include_ptlib_h" = xyes; then :
  22281. HAS_PWLIB=1
  22282. fi
  22283. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  22284. # Extract the first word of "ptlib-config", so it can be a program name with args.
  22285. set dummy ptlib-config; ac_word=$2
  22286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22287. $as_echo_n "checking for $ac_word... " >&6; }
  22288. if ${ac_cv_path_PTLIB_CONFIG+:} false; then :
  22289. $as_echo_n "(cached) " >&6
  22290. else
  22291. case $PTLIB_CONFIG in
  22292. [\\/]* | ?:[\\/]*)
  22293. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  22294. ;;
  22295. *)
  22296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22297. for as_dir in /usr/local/bin$PATH_SEPARATOR/usr/local/share/pwlib/make
  22298. do
  22299. IFS=$as_save_IFS
  22300. test -z "$as_dir" && as_dir=.
  22301. for ac_exec_ext in '' $ac_executable_extensions; do
  22302. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22303. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22305. break 2
  22306. fi
  22307. done
  22308. done
  22309. IFS=$as_save_IFS
  22310. ;;
  22311. esac
  22312. fi
  22313. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  22314. if test -n "$PTLIB_CONFIG"; then
  22315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  22316. $as_echo "$PTLIB_CONFIG" >&6; }
  22317. else
  22318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22319. $as_echo "no" >&6; }
  22320. fi
  22321. PWLIB_INCDIR="/usr/local/include"
  22322. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  22323. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  22324. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  22325. fi
  22326. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  22327. if test "x$LIB64" != "x"; then
  22328. PWLIB_LIBDIR="/usr/local/lib64"
  22329. else
  22330. PWLIB_LIBDIR="/usr/local/lib"
  22331. fi
  22332. fi
  22333. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  22334. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  22335. else
  22336. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/include/ptlib.h" "ac_cv_header__usr_include_ptlib_h" "$ac_includes_default"
  22337. if test "x$ac_cv_header__usr_include_ptlib_h" = xyes; then :
  22338. HAS_PWLIB=1
  22339. fi
  22340. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  22341. # Extract the first word of "ptlib-config", so it can be a program name with args.
  22342. set dummy ptlib-config; ac_word=$2
  22343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22344. $as_echo_n "checking for $ac_word... " >&6; }
  22345. if ${ac_cv_path_PTLIB_CONFIG+:} false; then :
  22346. $as_echo_n "(cached) " >&6
  22347. else
  22348. case $PTLIB_CONFIG in
  22349. [\\/]* | ?:[\\/]*)
  22350. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  22351. ;;
  22352. *)
  22353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22354. for as_dir in /usr/bin$PATH_SEPARATOR/usr/share/pwlib/make
  22355. do
  22356. IFS=$as_save_IFS
  22357. test -z "$as_dir" && as_dir=.
  22358. for ac_exec_ext in '' $ac_executable_extensions; do
  22359. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22360. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22362. break 2
  22363. fi
  22364. done
  22365. done
  22366. IFS=$as_save_IFS
  22367. ;;
  22368. esac
  22369. fi
  22370. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  22371. if test -n "$PTLIB_CONFIG"; then
  22372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  22373. $as_echo "$PTLIB_CONFIG" >&6; }
  22374. else
  22375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22376. $as_echo "no" >&6; }
  22377. fi
  22378. PWLIB_INCDIR="/usr/include"
  22379. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  22380. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  22381. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  22382. fi
  22383. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  22384. if test "x$LIB64" != "x"; then
  22385. PWLIB_LIBDIR="/usr/lib64"
  22386. else
  22387. PWLIB_LIBDIR="/usr/lib"
  22388. fi
  22389. fi
  22390. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  22391. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  22392. fi
  22393. fi
  22394. fi
  22395. fi
  22396. fi
  22397. #if test "${HAS_PWLIB:-unset}" = "unset" ; then
  22398. # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
  22399. # exit
  22400. #fi
  22401. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  22402. if test "${PWLIBDIR:-unset}" = "unset" ; then
  22403. if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
  22404. PWLIBDIR=`$PTLIB_CONFIG --prefix`
  22405. else
  22406. echo "Cannot find ptlib-config - please install and try again"
  22407. exit
  22408. fi
  22409. fi
  22410. if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
  22411. PWLIBDIR="/usr/share/pwlib"
  22412. PWLIB_INCDIR="/usr/include"
  22413. if test "x$LIB64" != "x"; then
  22414. PWLIB_LIBDIR="/usr/lib64"
  22415. else
  22416. PWLIB_LIBDIR="/usr/lib"
  22417. fi
  22418. fi
  22419. if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
  22420. PWLIBDIR="/usr/local/share/pwlib"
  22421. PWLIB_INCDIR="/usr/local/include"
  22422. if test "x$LIB64" != "x"; then
  22423. PWLIB_LIBDIR="/usr/local/lib64"
  22424. else
  22425. PWLIB_LIBDIR="/usr/local/lib"
  22426. fi
  22427. fi
  22428. if test "${PWLIB_INCDIR:-unset}" = "unset"; then
  22429. PWLIB_INCDIR="${PWLIBDIR}/include"
  22430. fi
  22431. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  22432. PWLIB_LIBDIR="${PWLIBDIR}/lib"
  22433. fi
  22434. fi
  22435. ac_ext=c
  22436. ac_cpp='$CPP $CPPFLAGS'
  22437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22440. if test "xP[WT]LIB_VERSION" != "x"; then
  22441. VNAME="P[WT]LIB_VERSION"
  22442. else
  22443. VNAME="PWLIB_VERSION"
  22444. fi
  22445. if test "${HAS_PWLIB:-unset}" != "unset"; then
  22446. PWLIB_VERSION=`grep "$VNAME \"" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  22447. PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
  22448. PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
  22449. PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
  22450. PWLIB_VER=$((${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}))
  22451. PWLIB_REQ=$((1*10000+9*100+2))
  22452. if test "x" = "x"; then
  22453. PWLIB_MAX=9999999
  22454. else
  22455. PWLIB_MAX=$((*10000+*100+))
  22456. fi
  22457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
  22458. $as_echo_n "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... " >&6; }
  22459. if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
  22460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22461. $as_echo "no" >&6; }
  22462. unset HAS_PWLIB
  22463. else
  22464. if test ${PWLIB_VER} -gt ${PWLIB_MAX}; then
  22465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22466. $as_echo "no" >&6; }
  22467. unset HAS_PWLIB
  22468. else
  22469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22470. $as_echo "yes" >&6; }
  22471. fi
  22472. fi
  22473. fi
  22474. if test "${HAS_PWLIB:-unset}" != "unset"; then
  22475. PWLIB_OSTYPE=
  22476. case "$host_os" in
  22477. linux*) PWLIB_OSTYPE=linux ;
  22478. ;;
  22479. freebsd* ) PWLIB_OSTYPE=FreeBSD ;
  22480. ;;
  22481. openbsd* ) PWLIB_OSTYPE=OpenBSD ;
  22482. ENDLDLIBS="-lossaudio" ;
  22483. ;;
  22484. netbsd* ) PWLIB_OSTYPE=NetBSD ;
  22485. ENDLDLIBS="-lossaudio" ;
  22486. ;;
  22487. solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
  22488. ;;
  22489. darwin* ) PWLIB_OSTYPE=Darwin ;
  22490. ;;
  22491. beos*) PWLIB_OSTYPE=beos ;
  22492. STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
  22493. ;;
  22494. cygwin*) PWLIB_OSTYPE=cygwin ;
  22495. ;;
  22496. mingw*) PWLIB_OSTYPE=mingw ;
  22497. STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
  22498. ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
  22499. ;;
  22500. * ) PWLIB_OSTYPE="$host_os" ;
  22501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
  22502. $as_echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
  22503. ;;
  22504. esac
  22505. PWLIB_MACHTYPE=
  22506. case "$host_cpu" in
  22507. x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
  22508. ;;
  22509. x86_64) PWLIB_MACHTYPE=x86_64 ;
  22510. P_64BIT=1 ;
  22511. LIB64=1 ;
  22512. ;;
  22513. alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
  22514. P_64BIT=1 ;
  22515. ;;
  22516. sparc ) PWLIB_MACHTYPE=sparc ;
  22517. ;;
  22518. powerpc ) PWLIB_MACHTYPE=ppc ;
  22519. ;;
  22520. ppc ) PWLIB_MACHTYPE=ppc ;
  22521. ;;
  22522. powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
  22523. P_64BIT=1 ;
  22524. LIB64=1 ;
  22525. ;;
  22526. ppc64 ) PWLIB_MACHTYPE=ppc64 ;
  22527. P_64BIT=1 ;
  22528. LIB64=1 ;
  22529. ;;
  22530. ia64) PWLIB_MACHTYPE=ia64 ;
  22531. P_64BIT=1 ;
  22532. ;;
  22533. s390x) PWLIB_MACHTYPE=s390x ;
  22534. P_64BIT=1 ;
  22535. LIB64=1 ;
  22536. ;;
  22537. s390) PWLIB_MACHTYPE=s390 ;
  22538. ;;
  22539. * ) PWLIB_MACHTYPE="$host_cpu";
  22540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
  22541. $as_echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
  22542. esac
  22543. PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
  22544. PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
  22545. if test "${HAS_PWLIB:-unset}" != "unset"; then
  22546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PWLib installation validity" >&5
  22547. $as_echo_n "checking PWLib installation validity... " >&6; }
  22548. saved_cppflags="${CPPFLAGS}"
  22549. saved_libs="${LIBS}"
  22550. if test "${PWLIB_LIB:-unset}" != "unset"; then
  22551. LIBS="${LIBS} ${PWLIB_LIB} "
  22552. else
  22553. LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
  22554. fi
  22555. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
  22556. ac_ext=cpp
  22557. ac_cpp='$CXXCPP $CPPFLAGS'
  22558. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22559. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22560. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22562. /* end confdefs.h. */
  22563. #include "ptlib.h"
  22564. int
  22565. main ()
  22566. {
  22567. int q = (int) PTime::IsDaylightSavings();
  22568. ;
  22569. return 0;
  22570. }
  22571. _ACEOF
  22572. if ac_fn_cxx_try_link "$LINENO"; then :
  22573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22574. $as_echo "yes" >&6; }
  22575. ac_cv_lib_PWLIB="yes"
  22576. else
  22577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22578. $as_echo "no" >&6; }
  22579. ac_cv_lib_PWLIB="no"
  22580. fi
  22581. rm -f core conftest.err conftest.$ac_objext \
  22582. conftest$ac_exeext conftest.$ac_ext
  22583. ac_ext=c
  22584. ac_cpp='$CPP $CPPFLAGS'
  22585. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22586. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22587. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22588. LIBS="${saved_libs}"
  22589. CPPFLAGS="${saved_cppflags}"
  22590. if test "${ac_cv_lib_PWLIB}" = "yes"; then
  22591. if test "${PWLIB_LIB:-undef}" = "undef"; then
  22592. if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
  22593. PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
  22594. else
  22595. PWLIB_LIB="-l${PLATFORM_PWLIB}"
  22596. fi
  22597. fi
  22598. if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
  22599. PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
  22600. fi
  22601. PBX_PWLIB=1
  22602. $as_echo "#define HAVE_PWLIB 1" >>confdefs.h
  22603. fi
  22604. fi
  22605. fi
  22606. fi
  22607. if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
  22608. if test -n "${OPENH323_DIR}"; then
  22609. OPENH323DIR="${OPENH323_DIR}"
  22610. fi
  22611. OPENH323_INCDIR=
  22612. OPENH323_LIBDIR=
  22613. ac_ext=cpp
  22614. ac_cpp='$CXXCPP $CPPFLAGS'
  22615. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22616. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22617. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22618. if test "${OPENH323DIR:-unset}" != "unset" ; then
  22619. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
  22620. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  22621. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22622. HAS_OPENH323=1
  22623. fi
  22624. fi
  22625. if test "${HAS_OPENH323:-unset}" = "unset" ; then
  22626. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
  22627. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/../openh323/version.h" "$as_ac_Header" "$ac_includes_default"
  22628. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22629. OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
  22630. fi
  22631. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  22632. OPENH323DIR="${PWLIBDIR}/../openh323"
  22633. saved_cppflags="${CPPFLAGS}"
  22634. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
  22635. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
  22636. ac_fn_cxx_check_header_compile "$LINENO" "${OPENH323DIR}/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  22637. "
  22638. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22639. else
  22640. OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
  22641. fi
  22642. CPPFLAGS="${saved_cppflags}"
  22643. else
  22644. saved_cppflags="${CPPFLAGS}"
  22645. CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
  22646. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
  22647. ac_fn_cxx_check_header_compile "$LINENO" "${HOME}/openh323/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  22648. "
  22649. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22650. HAS_OPENH323=1
  22651. fi
  22652. CPPFLAGS="${saved_cppflags}"
  22653. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  22654. OPENH323DIR="${HOME}/openh323"
  22655. else
  22656. saved_cppflags="${CPPFLAGS}"
  22657. CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
  22658. ac_fn_cxx_check_header_compile "$LINENO" "/usr/local/include/openh323/h323.h" "ac_cv_header__usr_local_include_openh323_h323_h" "#include <ptlib.h>
  22659. "
  22660. if test "x$ac_cv_header__usr_local_include_openh323_h323_h" = xyes; then :
  22661. HAS_OPENH323=1
  22662. fi
  22663. CPPFLAGS="${saved_cppflags}"
  22664. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  22665. OPENH323DIR="/usr/local/share/openh323"
  22666. OPENH323_INCDIR="/usr/local/include/openh323"
  22667. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  22668. OPENH323_LIBDIR="/usr/local/lib64"
  22669. else
  22670. OPENH323_LIBDIR="/usr/local/lib"
  22671. fi
  22672. else
  22673. saved_cppflags="${CPPFLAGS}"
  22674. CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
  22675. ac_fn_cxx_check_header_compile "$LINENO" "/usr/include/openh323/h323.h" "ac_cv_header__usr_include_openh323_h323_h" "#include <ptlib.h>
  22676. "
  22677. if test "x$ac_cv_header__usr_include_openh323_h323_h" = xyes; then :
  22678. HAS_OPENH323=1
  22679. fi
  22680. CPPFLAGS="${saved_cppflags}"
  22681. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  22682. OPENH323DIR="/usr/share/openh323"
  22683. OPENH323_INCDIR="/usr/include/openh323"
  22684. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  22685. OPENH323_LIBDIR="/usr/lib64"
  22686. else
  22687. OPENH323_LIBDIR="/usr/lib"
  22688. fi
  22689. fi
  22690. fi
  22691. fi
  22692. fi
  22693. fi
  22694. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  22695. if test "${OPENH323_INCDIR:-unset}" = "unset"; then
  22696. OPENH323_INCDIR="${OPENH323DIR}/include"
  22697. fi
  22698. if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
  22699. OPENH323_LIBDIR="${OPENH323DIR}/lib"
  22700. fi
  22701. OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
  22702. OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
  22703. OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
  22704. fi
  22705. ac_ext=c
  22706. ac_cpp='$CPP $CPPFLAGS'
  22707. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22708. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22709. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22710. if test "x" != "x"; then
  22711. VNAME=""
  22712. else
  22713. VNAME="OPENH323_VERSION"
  22714. fi
  22715. if test "${HAS_OPENH323:-unset}" != "unset"; then
  22716. OPENH323_VERSION=`grep "$VNAME \"" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  22717. OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
  22718. OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
  22719. OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
  22720. OPENH323_VER=$((${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}))
  22721. OPENH323_REQ=$((1*10000+17*100+3))
  22722. if test "x0" = "x"; then
  22723. OPENH323_MAX=9999999
  22724. else
  22725. OPENH323_MAX=$((1*10000+19*100+0))
  22726. fi
  22727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
  22728. $as_echo_n "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... " >&6; }
  22729. if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
  22730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22731. $as_echo "no" >&6; }
  22732. unset HAS_OPENH323
  22733. else
  22734. if test ${OPENH323_VER} -gt ${OPENH323_MAX}; then
  22735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22736. $as_echo "no" >&6; }
  22737. unset HAS_OPENH323
  22738. else
  22739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22740. $as_echo "yes" >&6; }
  22741. fi
  22742. fi
  22743. fi
  22744. if test "${HAS_OPENH323:-unset}" != "unset"; then
  22745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 build option" >&5
  22746. $as_echo_n "checking OpenH323 build option... " >&6; }
  22747. OPENH323_SUFFIX=
  22748. prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
  22749. for pfx in $prefixes; do
  22750. #files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  22751. files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
  22752. if test -z "$files"; then
  22753. # check the default location
  22754. files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  22755. fi
  22756. libfile=
  22757. if test -n "$files"; then
  22758. for f in $files; do
  22759. if test -f $f -a ! -L $f; then
  22760. libfile=`basename $f`
  22761. break;
  22762. fi
  22763. done
  22764. fi
  22765. if test -n "$libfile"; then
  22766. OPENH323_PREFIX=$pfx
  22767. break;
  22768. fi
  22769. done
  22770. if test "${libfile:-unset}" != "unset"; then
  22771. OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
  22772. fi
  22773. case "${OPENH323_SUFFIX}" in
  22774. n)
  22775. OPENH323_BUILD="notrace";;
  22776. r)
  22777. OPENH323_BUILD="opt";;
  22778. d)
  22779. OPENH323_BUILD="debug";;
  22780. *)
  22781. if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
  22782. notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
  22783. if test "x$notrace" = "x"; then
  22784. notrace="0"
  22785. fi
  22786. if test "$notrace" -ne 0; then
  22787. OPENH323_BUILD="notrace"
  22788. else
  22789. OPENH323_BUILD="opt"
  22790. fi
  22791. OPENH323_LIB="-l${OPENH323_PREFIX}"
  22792. else
  22793. OPENH323_BUILD="notrace"
  22794. fi
  22795. ;;
  22796. esac
  22797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OPENH323_BUILD}" >&5
  22798. $as_echo "${OPENH323_BUILD}" >&6; }
  22799. fi
  22800. PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
  22801. if test "${HAS_OPENH323:-unset}" != "unset"; then
  22802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 installation validity" >&5
  22803. $as_echo_n "checking OpenH323 installation validity... " >&6; }
  22804. saved_cppflags="${CPPFLAGS}"
  22805. saved_libs="${LIBS}"
  22806. if test "${OPENH323_LIB:-unset}" != "unset"; then
  22807. LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
  22808. else
  22809. LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
  22810. fi
  22811. CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
  22812. ac_ext=cpp
  22813. ac_cpp='$CXXCPP $CPPFLAGS'
  22814. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22815. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22816. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22818. /* end confdefs.h. */
  22819. #include "ptlib.h"
  22820. #include "h323.h"
  22821. #include "h323ep.h"
  22822. int
  22823. main ()
  22824. {
  22825. H323EndPoint ep = H323EndPoint();
  22826. ;
  22827. return 0;
  22828. }
  22829. _ACEOF
  22830. if ac_fn_cxx_try_link "$LINENO"; then :
  22831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22832. $as_echo "yes" >&6; }
  22833. ac_cv_lib_OPENH323="yes"
  22834. else
  22835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22836. $as_echo "no" >&6; }
  22837. ac_cv_lib_OPENH323="no"
  22838. fi
  22839. rm -f core conftest.err conftest.$ac_objext \
  22840. conftest$ac_exeext conftest.$ac_ext
  22841. ac_ext=c
  22842. ac_cpp='$CPP $CPPFLAGS'
  22843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22846. LIBS="${saved_libs}"
  22847. CPPFLAGS="${saved_cppflags}"
  22848. if test "${ac_cv_lib_OPENH323}" = "yes"; then
  22849. if test "${OPENH323_LIB:-undef}" = "undef"; then
  22850. if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
  22851. OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
  22852. else
  22853. OPENH323_LIB="-l${PLATFORM_OPENH323}"
  22854. fi
  22855. fi
  22856. if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
  22857. OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
  22858. fi
  22859. PBX_OPENH323=1
  22860. $as_echo "#define HAVE_OPENH323 1" >>confdefs.h
  22861. fi
  22862. fi
  22863. fi
  22864. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  22865. pbxlibdir=""
  22866. # if --with-LUA=DIR has been specified, use it.
  22867. if test "x${LUA_DIR}" != "x"; then
  22868. if test -d ${LUA_DIR}/lib; then
  22869. pbxlibdir="-L${LUA_DIR}/lib"
  22870. else
  22871. pbxlibdir="-L${LUA_DIR}"
  22872. fi
  22873. fi
  22874. pbxfuncname="luaL_newstate"
  22875. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22876. AST_LUA_FOUND=yes
  22877. else
  22878. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22879. CFLAGS="${CFLAGS} "
  22880. as_ac_Lib=`$as_echo "ac_cv_lib_lua5.2_${pbxfuncname}" | $as_tr_sh`
  22881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua5.2" >&5
  22882. $as_echo_n "checking for ${pbxfuncname} in -llua5.2... " >&6; }
  22883. if eval \${$as_ac_Lib+:} false; then :
  22884. $as_echo_n "(cached) " >&6
  22885. else
  22886. ac_check_lib_save_LIBS=$LIBS
  22887. LIBS="-llua5.2 ${pbxlibdir} -lm $LIBS"
  22888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22889. /* end confdefs.h. */
  22890. /* Override any GCC internal prototype to avoid an error.
  22891. Use char because int might match the return type of a GCC
  22892. builtin and then its argument prototype would still apply. */
  22893. #ifdef __cplusplus
  22894. extern "C"
  22895. #endif
  22896. char ${pbxfuncname} ();
  22897. int
  22898. main ()
  22899. {
  22900. return ${pbxfuncname} ();
  22901. ;
  22902. return 0;
  22903. }
  22904. _ACEOF
  22905. if ac_fn_c_try_link "$LINENO"; then :
  22906. eval "$as_ac_Lib=yes"
  22907. else
  22908. eval "$as_ac_Lib=no"
  22909. fi
  22910. rm -f core conftest.err conftest.$ac_objext \
  22911. conftest$ac_exeext conftest.$ac_ext
  22912. LIBS=$ac_check_lib_save_LIBS
  22913. fi
  22914. eval ac_res=\$$as_ac_Lib
  22915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22916. $as_echo "$ac_res" >&6; }
  22917. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22918. AST_LUA_FOUND=yes
  22919. else
  22920. AST_LUA_FOUND=no
  22921. fi
  22922. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22923. fi
  22924. # now check for the header.
  22925. if test "${AST_LUA_FOUND}" = "yes"; then
  22926. LUA_LIB="${pbxlibdir} -llua5.2 -lm"
  22927. # if --with-LUA=DIR has been specified, use it.
  22928. if test "x${LUA_DIR}" != "x"; then
  22929. LUA_INCLUDE="-I${LUA_DIR}/include"
  22930. fi
  22931. LUA_INCLUDE="${LUA_INCLUDE} "
  22932. if test "xlua5.2/lua.h" = "x" ; then # no header, assume found
  22933. LUA_HEADER_FOUND="1"
  22934. else # check for the header
  22935. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22936. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  22937. ac_fn_c_check_header_mongrel "$LINENO" "lua5.2/lua.h" "ac_cv_header_lua5_2_lua_h" "$ac_includes_default"
  22938. if test "x$ac_cv_header_lua5_2_lua_h" = xyes; then :
  22939. LUA_HEADER_FOUND=1
  22940. else
  22941. LUA_HEADER_FOUND=0
  22942. fi
  22943. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22944. fi
  22945. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  22946. LUA_LIB=""
  22947. LUA_INCLUDE=""
  22948. else
  22949. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22950. LUA_LIB=""
  22951. fi
  22952. PBX_LUA=1
  22953. cat >>confdefs.h <<_ACEOF
  22954. #define HAVE_LUA 1
  22955. _ACEOF
  22956. fi
  22957. fi
  22958. fi
  22959. if test "x${PBX_LUA}" = "x1" ; then
  22960. if test x"${LUA_DIR}" = x; then
  22961. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.2"
  22962. else
  22963. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.2"
  22964. fi
  22965. fi
  22966. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  22967. pbxlibdir=""
  22968. # if --with-LUA=DIR has been specified, use it.
  22969. if test "x${LUA_DIR}" != "x"; then
  22970. if test -d ${LUA_DIR}/lib; then
  22971. pbxlibdir="-L${LUA_DIR}/lib"
  22972. else
  22973. pbxlibdir="-L${LUA_DIR}"
  22974. fi
  22975. fi
  22976. pbxfuncname="luaL_newstate"
  22977. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22978. AST_LUA_FOUND=yes
  22979. else
  22980. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22981. CFLAGS="${CFLAGS} "
  22982. as_ac_Lib=`$as_echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
  22983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua5.1" >&5
  22984. $as_echo_n "checking for ${pbxfuncname} in -llua5.1... " >&6; }
  22985. if eval \${$as_ac_Lib+:} false; then :
  22986. $as_echo_n "(cached) " >&6
  22987. else
  22988. ac_check_lib_save_LIBS=$LIBS
  22989. LIBS="-llua5.1 ${pbxlibdir} -lm $LIBS"
  22990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22991. /* end confdefs.h. */
  22992. /* Override any GCC internal prototype to avoid an error.
  22993. Use char because int might match the return type of a GCC
  22994. builtin and then its argument prototype would still apply. */
  22995. #ifdef __cplusplus
  22996. extern "C"
  22997. #endif
  22998. char ${pbxfuncname} ();
  22999. int
  23000. main ()
  23001. {
  23002. return ${pbxfuncname} ();
  23003. ;
  23004. return 0;
  23005. }
  23006. _ACEOF
  23007. if ac_fn_c_try_link "$LINENO"; then :
  23008. eval "$as_ac_Lib=yes"
  23009. else
  23010. eval "$as_ac_Lib=no"
  23011. fi
  23012. rm -f core conftest.err conftest.$ac_objext \
  23013. conftest$ac_exeext conftest.$ac_ext
  23014. LIBS=$ac_check_lib_save_LIBS
  23015. fi
  23016. eval ac_res=\$$as_ac_Lib
  23017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23018. $as_echo "$ac_res" >&6; }
  23019. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23020. AST_LUA_FOUND=yes
  23021. else
  23022. AST_LUA_FOUND=no
  23023. fi
  23024. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23025. fi
  23026. # now check for the header.
  23027. if test "${AST_LUA_FOUND}" = "yes"; then
  23028. LUA_LIB="${pbxlibdir} -llua5.1 -lm"
  23029. # if --with-LUA=DIR has been specified, use it.
  23030. if test "x${LUA_DIR}" != "x"; then
  23031. LUA_INCLUDE="-I${LUA_DIR}/include"
  23032. fi
  23033. LUA_INCLUDE="${LUA_INCLUDE} "
  23034. if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
  23035. LUA_HEADER_FOUND="1"
  23036. else # check for the header
  23037. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23038. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  23039. ac_fn_c_check_header_mongrel "$LINENO" "lua5.1/lua.h" "ac_cv_header_lua5_1_lua_h" "$ac_includes_default"
  23040. if test "x$ac_cv_header_lua5_1_lua_h" = xyes; then :
  23041. LUA_HEADER_FOUND=1
  23042. else
  23043. LUA_HEADER_FOUND=0
  23044. fi
  23045. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23046. fi
  23047. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  23048. LUA_LIB=""
  23049. LUA_INCLUDE=""
  23050. else
  23051. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23052. LUA_LIB=""
  23053. fi
  23054. PBX_LUA=1
  23055. cat >>confdefs.h <<_ACEOF
  23056. #define HAVE_LUA 1
  23057. _ACEOF
  23058. fi
  23059. fi
  23060. fi
  23061. if test "x${PBX_LUA}" = "x1" ; then
  23062. if test x"${LUA_DIR}" = x; then
  23063. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.1"
  23064. else
  23065. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.1"
  23066. fi
  23067. fi
  23068. # Some distributions (like SuSE) remove the 5.1 suffix.
  23069. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  23070. pbxlibdir=""
  23071. # if --with-LUA=DIR has been specified, use it.
  23072. if test "x${LUA_DIR}" != "x"; then
  23073. if test -d ${LUA_DIR}/lib; then
  23074. pbxlibdir="-L${LUA_DIR}/lib"
  23075. else
  23076. pbxlibdir="-L${LUA_DIR}"
  23077. fi
  23078. fi
  23079. pbxfuncname="luaL_openlib"
  23080. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23081. AST_LUA_FOUND=yes
  23082. else
  23083. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23084. CFLAGS="${CFLAGS} "
  23085. as_ac_Lib=`$as_echo "ac_cv_lib_lua_${pbxfuncname}" | $as_tr_sh`
  23086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua" >&5
  23087. $as_echo_n "checking for ${pbxfuncname} in -llua... " >&6; }
  23088. if eval \${$as_ac_Lib+:} false; then :
  23089. $as_echo_n "(cached) " >&6
  23090. else
  23091. ac_check_lib_save_LIBS=$LIBS
  23092. LIBS="-llua ${pbxlibdir} -lm $LIBS"
  23093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23094. /* end confdefs.h. */
  23095. /* Override any GCC internal prototype to avoid an error.
  23096. Use char because int might match the return type of a GCC
  23097. builtin and then its argument prototype would still apply. */
  23098. #ifdef __cplusplus
  23099. extern "C"
  23100. #endif
  23101. char ${pbxfuncname} ();
  23102. int
  23103. main ()
  23104. {
  23105. return ${pbxfuncname} ();
  23106. ;
  23107. return 0;
  23108. }
  23109. _ACEOF
  23110. if ac_fn_c_try_link "$LINENO"; then :
  23111. eval "$as_ac_Lib=yes"
  23112. else
  23113. eval "$as_ac_Lib=no"
  23114. fi
  23115. rm -f core conftest.err conftest.$ac_objext \
  23116. conftest$ac_exeext conftest.$ac_ext
  23117. LIBS=$ac_check_lib_save_LIBS
  23118. fi
  23119. eval ac_res=\$$as_ac_Lib
  23120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23121. $as_echo "$ac_res" >&6; }
  23122. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23123. AST_LUA_FOUND=yes
  23124. else
  23125. AST_LUA_FOUND=no
  23126. fi
  23127. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23128. fi
  23129. # now check for the header.
  23130. if test "${AST_LUA_FOUND}" = "yes"; then
  23131. LUA_LIB="${pbxlibdir} -llua -lm"
  23132. # if --with-LUA=DIR has been specified, use it.
  23133. if test "x${LUA_DIR}" != "x"; then
  23134. LUA_INCLUDE="-I${LUA_DIR}/include"
  23135. fi
  23136. LUA_INCLUDE="${LUA_INCLUDE} "
  23137. if test "xlua.h" = "x" ; then # no header, assume found
  23138. LUA_HEADER_FOUND="1"
  23139. else # check for the header
  23140. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23141. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  23142. ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
  23143. if test "x$ac_cv_header_lua_h" = xyes; then :
  23144. LUA_HEADER_FOUND=1
  23145. else
  23146. LUA_HEADER_FOUND=0
  23147. fi
  23148. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23149. fi
  23150. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  23151. LUA_LIB=""
  23152. LUA_INCLUDE=""
  23153. else
  23154. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23155. LUA_LIB=""
  23156. fi
  23157. PBX_LUA=1
  23158. cat >>confdefs.h <<_ACEOF
  23159. #define HAVE_LUA 1
  23160. _ACEOF
  23161. fi
  23162. fi
  23163. fi
  23164. # Accept either RADIUS client library, their APIs are fully compatible,
  23165. # just different header filenames and different SONAMEs
  23166. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  23167. pbxlibdir=""
  23168. # if --with-RADIUS=DIR has been specified, use it.
  23169. if test "x${RADIUS_DIR}" != "x"; then
  23170. if test -d ${RADIUS_DIR}/lib; then
  23171. pbxlibdir="-L${RADIUS_DIR}/lib"
  23172. else
  23173. pbxlibdir="-L${RADIUS_DIR}"
  23174. fi
  23175. fi
  23176. pbxfuncname="rc_read_config"
  23177. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23178. AST_RADIUS_FOUND=yes
  23179. else
  23180. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23181. CFLAGS="${CFLAGS} "
  23182. as_ac_Lib=`$as_echo "ac_cv_lib_freeradius-client_${pbxfuncname}" | $as_tr_sh`
  23183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lfreeradius-client" >&5
  23184. $as_echo_n "checking for ${pbxfuncname} in -lfreeradius-client... " >&6; }
  23185. if eval \${$as_ac_Lib+:} false; then :
  23186. $as_echo_n "(cached) " >&6
  23187. else
  23188. ac_check_lib_save_LIBS=$LIBS
  23189. LIBS="-lfreeradius-client ${pbxlibdir} $LIBS"
  23190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23191. /* end confdefs.h. */
  23192. /* Override any GCC internal prototype to avoid an error.
  23193. Use char because int might match the return type of a GCC
  23194. builtin and then its argument prototype would still apply. */
  23195. #ifdef __cplusplus
  23196. extern "C"
  23197. #endif
  23198. char ${pbxfuncname} ();
  23199. int
  23200. main ()
  23201. {
  23202. return ${pbxfuncname} ();
  23203. ;
  23204. return 0;
  23205. }
  23206. _ACEOF
  23207. if ac_fn_c_try_link "$LINENO"; then :
  23208. eval "$as_ac_Lib=yes"
  23209. else
  23210. eval "$as_ac_Lib=no"
  23211. fi
  23212. rm -f core conftest.err conftest.$ac_objext \
  23213. conftest$ac_exeext conftest.$ac_ext
  23214. LIBS=$ac_check_lib_save_LIBS
  23215. fi
  23216. eval ac_res=\$$as_ac_Lib
  23217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23218. $as_echo "$ac_res" >&6; }
  23219. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23220. AST_RADIUS_FOUND=yes
  23221. else
  23222. AST_RADIUS_FOUND=no
  23223. fi
  23224. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23225. fi
  23226. # now check for the header.
  23227. if test "${AST_RADIUS_FOUND}" = "yes"; then
  23228. RADIUS_LIB="${pbxlibdir} -lfreeradius-client "
  23229. # if --with-RADIUS=DIR has been specified, use it.
  23230. if test "x${RADIUS_DIR}" != "x"; then
  23231. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  23232. fi
  23233. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  23234. if test "xfreeradius-client.h" = "x" ; then # no header, assume found
  23235. RADIUS_HEADER_FOUND="1"
  23236. else # check for the header
  23237. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23238. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  23239. ac_fn_c_check_header_mongrel "$LINENO" "freeradius-client.h" "ac_cv_header_freeradius_client_h" "$ac_includes_default"
  23240. if test "x$ac_cv_header_freeradius_client_h" = xyes; then :
  23241. RADIUS_HEADER_FOUND=1
  23242. else
  23243. RADIUS_HEADER_FOUND=0
  23244. fi
  23245. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23246. fi
  23247. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  23248. RADIUS_LIB=""
  23249. RADIUS_INCLUDE=""
  23250. else
  23251. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23252. RADIUS_LIB=""
  23253. fi
  23254. PBX_RADIUS=1
  23255. cat >>confdefs.h <<_ACEOF
  23256. #define HAVE_RADIUS 1
  23257. _ACEOF
  23258. fi
  23259. fi
  23260. fi
  23261. if test "x${PBX_RADIUS}" = "x1"; then
  23262. $as_echo "#define FREERADIUS_CLIENT /**/" >>confdefs.h
  23263. else
  23264. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  23265. pbxlibdir=""
  23266. # if --with-RADIUS=DIR has been specified, use it.
  23267. if test "x${RADIUS_DIR}" != "x"; then
  23268. if test -d ${RADIUS_DIR}/lib; then
  23269. pbxlibdir="-L${RADIUS_DIR}/lib"
  23270. else
  23271. pbxlibdir="-L${RADIUS_DIR}"
  23272. fi
  23273. fi
  23274. pbxfuncname="rc_read_config"
  23275. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23276. AST_RADIUS_FOUND=yes
  23277. else
  23278. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23279. CFLAGS="${CFLAGS} "
  23280. as_ac_Lib=`$as_echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
  23281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
  23282. $as_echo_n "checking for ${pbxfuncname} in -lradiusclient-ng... " >&6; }
  23283. if eval \${$as_ac_Lib+:} false; then :
  23284. $as_echo_n "(cached) " >&6
  23285. else
  23286. ac_check_lib_save_LIBS=$LIBS
  23287. LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
  23288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23289. /* end confdefs.h. */
  23290. /* Override any GCC internal prototype to avoid an error.
  23291. Use char because int might match the return type of a GCC
  23292. builtin and then its argument prototype would still apply. */
  23293. #ifdef __cplusplus
  23294. extern "C"
  23295. #endif
  23296. char ${pbxfuncname} ();
  23297. int
  23298. main ()
  23299. {
  23300. return ${pbxfuncname} ();
  23301. ;
  23302. return 0;
  23303. }
  23304. _ACEOF
  23305. if ac_fn_c_try_link "$LINENO"; then :
  23306. eval "$as_ac_Lib=yes"
  23307. else
  23308. eval "$as_ac_Lib=no"
  23309. fi
  23310. rm -f core conftest.err conftest.$ac_objext \
  23311. conftest$ac_exeext conftest.$ac_ext
  23312. LIBS=$ac_check_lib_save_LIBS
  23313. fi
  23314. eval ac_res=\$$as_ac_Lib
  23315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23316. $as_echo "$ac_res" >&6; }
  23317. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23318. AST_RADIUS_FOUND=yes
  23319. else
  23320. AST_RADIUS_FOUND=no
  23321. fi
  23322. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23323. fi
  23324. # now check for the header.
  23325. if test "${AST_RADIUS_FOUND}" = "yes"; then
  23326. RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
  23327. # if --with-RADIUS=DIR has been specified, use it.
  23328. if test "x${RADIUS_DIR}" != "x"; then
  23329. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  23330. fi
  23331. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  23332. if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
  23333. RADIUS_HEADER_FOUND="1"
  23334. else # check for the header
  23335. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23336. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  23337. ac_fn_c_check_header_mongrel "$LINENO" "radiusclient-ng.h" "ac_cv_header_radiusclient_ng_h" "$ac_includes_default"
  23338. if test "x$ac_cv_header_radiusclient_ng_h" = xyes; then :
  23339. RADIUS_HEADER_FOUND=1
  23340. else
  23341. RADIUS_HEADER_FOUND=0
  23342. fi
  23343. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23344. fi
  23345. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  23346. RADIUS_LIB=""
  23347. RADIUS_INCLUDE=""
  23348. else
  23349. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23350. RADIUS_LIB=""
  23351. fi
  23352. PBX_RADIUS=1
  23353. cat >>confdefs.h <<_ACEOF
  23354. #define HAVE_RADIUS 1
  23355. _ACEOF
  23356. fi
  23357. fi
  23358. fi
  23359. fi
  23360. if test "x${PBX_COROSYNC}" != "x1" -a "${USE_COROSYNC}" != "no"; then
  23361. pbxlibdir=""
  23362. # if --with-COROSYNC=DIR has been specified, use it.
  23363. if test "x${COROSYNC_DIR}" != "x"; then
  23364. if test -d ${COROSYNC_DIR}/lib; then
  23365. pbxlibdir="-L${COROSYNC_DIR}/lib"
  23366. else
  23367. pbxlibdir="-L${COROSYNC_DIR}"
  23368. fi
  23369. fi
  23370. pbxfuncname="cpg_join"
  23371. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23372. AST_COROSYNC_FOUND=yes
  23373. else
  23374. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23375. CFLAGS="${CFLAGS} "
  23376. as_ac_Lib=`$as_echo "ac_cv_lib_cpg_${pbxfuncname}" | $as_tr_sh`
  23377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcpg" >&5
  23378. $as_echo_n "checking for ${pbxfuncname} in -lcpg... " >&6; }
  23379. if eval \${$as_ac_Lib+:} false; then :
  23380. $as_echo_n "(cached) " >&6
  23381. else
  23382. ac_check_lib_save_LIBS=$LIBS
  23383. LIBS="-lcpg ${pbxlibdir} -lcfg $LIBS"
  23384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23385. /* end confdefs.h. */
  23386. /* Override any GCC internal prototype to avoid an error.
  23387. Use char because int might match the return type of a GCC
  23388. builtin and then its argument prototype would still apply. */
  23389. #ifdef __cplusplus
  23390. extern "C"
  23391. #endif
  23392. char ${pbxfuncname} ();
  23393. int
  23394. main ()
  23395. {
  23396. return ${pbxfuncname} ();
  23397. ;
  23398. return 0;
  23399. }
  23400. _ACEOF
  23401. if ac_fn_c_try_link "$LINENO"; then :
  23402. eval "$as_ac_Lib=yes"
  23403. else
  23404. eval "$as_ac_Lib=no"
  23405. fi
  23406. rm -f core conftest.err conftest.$ac_objext \
  23407. conftest$ac_exeext conftest.$ac_ext
  23408. LIBS=$ac_check_lib_save_LIBS
  23409. fi
  23410. eval ac_res=\$$as_ac_Lib
  23411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23412. $as_echo "$ac_res" >&6; }
  23413. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23414. AST_COROSYNC_FOUND=yes
  23415. else
  23416. AST_COROSYNC_FOUND=no
  23417. fi
  23418. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23419. fi
  23420. # now check for the header.
  23421. if test "${AST_COROSYNC_FOUND}" = "yes"; then
  23422. COROSYNC_LIB="${pbxlibdir} -lcpg -lcfg"
  23423. # if --with-COROSYNC=DIR has been specified, use it.
  23424. if test "x${COROSYNC_DIR}" != "x"; then
  23425. COROSYNC_INCLUDE="-I${COROSYNC_DIR}/include"
  23426. fi
  23427. COROSYNC_INCLUDE="${COROSYNC_INCLUDE} "
  23428. if test "xcorosync/cpg.h" = "x" ; then # no header, assume found
  23429. COROSYNC_HEADER_FOUND="1"
  23430. else # check for the header
  23431. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23432. CPPFLAGS="${CPPFLAGS} ${COROSYNC_INCLUDE}"
  23433. ac_fn_c_check_header_mongrel "$LINENO" "corosync/cpg.h" "ac_cv_header_corosync_cpg_h" "$ac_includes_default"
  23434. if test "x$ac_cv_header_corosync_cpg_h" = xyes; then :
  23435. COROSYNC_HEADER_FOUND=1
  23436. else
  23437. COROSYNC_HEADER_FOUND=0
  23438. fi
  23439. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23440. fi
  23441. if test "x${COROSYNC_HEADER_FOUND}" = "x0" ; then
  23442. COROSYNC_LIB=""
  23443. COROSYNC_INCLUDE=""
  23444. else
  23445. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23446. COROSYNC_LIB=""
  23447. fi
  23448. PBX_COROSYNC=1
  23449. cat >>confdefs.h <<_ACEOF
  23450. #define HAVE_COROSYNC 1
  23451. _ACEOF
  23452. fi
  23453. fi
  23454. fi
  23455. if test "x${PBX_COROSYNC_CFG_STATE_TRACK}" != "x1" -a "${USE_COROSYNC_CFG_STATE_TRACK}" != "no"; then
  23456. pbxlibdir=""
  23457. # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
  23458. if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
  23459. if test -d ${COROSYNC_CFG_STATE_TRACK_DIR}/lib; then
  23460. pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}/lib"
  23461. else
  23462. pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}"
  23463. fi
  23464. fi
  23465. pbxfuncname="corosync_cfg_state_track"
  23466. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23467. AST_COROSYNC_CFG_STATE_TRACK_FOUND=yes
  23468. else
  23469. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23470. CFLAGS="${CFLAGS} "
  23471. as_ac_Lib=`$as_echo "ac_cv_lib_cfg_${pbxfuncname}" | $as_tr_sh`
  23472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcfg" >&5
  23473. $as_echo_n "checking for ${pbxfuncname} in -lcfg... " >&6; }
  23474. if eval \${$as_ac_Lib+:} false; then :
  23475. $as_echo_n "(cached) " >&6
  23476. else
  23477. ac_check_lib_save_LIBS=$LIBS
  23478. LIBS="-lcfg ${pbxlibdir} -lcfg $LIBS"
  23479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23480. /* end confdefs.h. */
  23481. /* Override any GCC internal prototype to avoid an error.
  23482. Use char because int might match the return type of a GCC
  23483. builtin and then its argument prototype would still apply. */
  23484. #ifdef __cplusplus
  23485. extern "C"
  23486. #endif
  23487. char ${pbxfuncname} ();
  23488. int
  23489. main ()
  23490. {
  23491. return ${pbxfuncname} ();
  23492. ;
  23493. return 0;
  23494. }
  23495. _ACEOF
  23496. if ac_fn_c_try_link "$LINENO"; then :
  23497. eval "$as_ac_Lib=yes"
  23498. else
  23499. eval "$as_ac_Lib=no"
  23500. fi
  23501. rm -f core conftest.err conftest.$ac_objext \
  23502. conftest$ac_exeext conftest.$ac_ext
  23503. LIBS=$ac_check_lib_save_LIBS
  23504. fi
  23505. eval ac_res=\$$as_ac_Lib
  23506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23507. $as_echo "$ac_res" >&6; }
  23508. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23509. AST_COROSYNC_CFG_STATE_TRACK_FOUND=yes
  23510. else
  23511. AST_COROSYNC_CFG_STATE_TRACK_FOUND=no
  23512. fi
  23513. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23514. fi
  23515. # now check for the header.
  23516. if test "${AST_COROSYNC_CFG_STATE_TRACK_FOUND}" = "yes"; then
  23517. COROSYNC_CFG_STATE_TRACK_LIB="${pbxlibdir} -lcfg -lcfg"
  23518. # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
  23519. if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
  23520. COROSYNC_CFG_STATE_TRACK_INCLUDE="-I${COROSYNC_CFG_STATE_TRACK_DIR}/include"
  23521. fi
  23522. COROSYNC_CFG_STATE_TRACK_INCLUDE="${COROSYNC_CFG_STATE_TRACK_INCLUDE} "
  23523. if test "xcorosync/cfg.h" = "x" ; then # no header, assume found
  23524. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND="1"
  23525. else # check for the header
  23526. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23527. CPPFLAGS="${CPPFLAGS} ${COROSYNC_CFG_STATE_TRACK_INCLUDE}"
  23528. ac_fn_c_check_header_mongrel "$LINENO" "corosync/cfg.h" "ac_cv_header_corosync_cfg_h" "$ac_includes_default"
  23529. if test "x$ac_cv_header_corosync_cfg_h" = xyes; then :
  23530. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=1
  23531. else
  23532. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=0
  23533. fi
  23534. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23535. fi
  23536. if test "x${COROSYNC_CFG_STATE_TRACK_HEADER_FOUND}" = "x0" ; then
  23537. COROSYNC_CFG_STATE_TRACK_LIB=""
  23538. COROSYNC_CFG_STATE_TRACK_INCLUDE=""
  23539. else
  23540. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23541. COROSYNC_CFG_STATE_TRACK_LIB=""
  23542. fi
  23543. PBX_COROSYNC_CFG_STATE_TRACK=1
  23544. cat >>confdefs.h <<_ACEOF
  23545. #define HAVE_COROSYNC_CFG_STATE_TRACK 1
  23546. _ACEOF
  23547. fi
  23548. fi
  23549. fi
  23550. if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
  23551. pbxlibdir=""
  23552. # if --with-SPEEX=DIR has been specified, use it.
  23553. if test "x${SPEEX_DIR}" != "x"; then
  23554. if test -d ${SPEEX_DIR}/lib; then
  23555. pbxlibdir="-L${SPEEX_DIR}/lib"
  23556. else
  23557. pbxlibdir="-L${SPEEX_DIR}"
  23558. fi
  23559. fi
  23560. pbxfuncname="speex_encode"
  23561. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23562. AST_SPEEX_FOUND=yes
  23563. else
  23564. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23565. CFLAGS="${CFLAGS} "
  23566. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  23567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
  23568. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  23569. if eval \${$as_ac_Lib+:} false; then :
  23570. $as_echo_n "(cached) " >&6
  23571. else
  23572. ac_check_lib_save_LIBS=$LIBS
  23573. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  23574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23575. /* end confdefs.h. */
  23576. /* Override any GCC internal prototype to avoid an error.
  23577. Use char because int might match the return type of a GCC
  23578. builtin and then its argument prototype would still apply. */
  23579. #ifdef __cplusplus
  23580. extern "C"
  23581. #endif
  23582. char ${pbxfuncname} ();
  23583. int
  23584. main ()
  23585. {
  23586. return ${pbxfuncname} ();
  23587. ;
  23588. return 0;
  23589. }
  23590. _ACEOF
  23591. if ac_fn_c_try_link "$LINENO"; then :
  23592. eval "$as_ac_Lib=yes"
  23593. else
  23594. eval "$as_ac_Lib=no"
  23595. fi
  23596. rm -f core conftest.err conftest.$ac_objext \
  23597. conftest$ac_exeext conftest.$ac_ext
  23598. LIBS=$ac_check_lib_save_LIBS
  23599. fi
  23600. eval ac_res=\$$as_ac_Lib
  23601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23602. $as_echo "$ac_res" >&6; }
  23603. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23604. AST_SPEEX_FOUND=yes
  23605. else
  23606. AST_SPEEX_FOUND=no
  23607. fi
  23608. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23609. fi
  23610. # now check for the header.
  23611. if test "${AST_SPEEX_FOUND}" = "yes"; then
  23612. SPEEX_LIB="${pbxlibdir} -lspeex -lm"
  23613. # if --with-SPEEX=DIR has been specified, use it.
  23614. if test "x${SPEEX_DIR}" != "x"; then
  23615. SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
  23616. fi
  23617. SPEEX_INCLUDE="${SPEEX_INCLUDE} "
  23618. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  23619. SPEEX_HEADER_FOUND="1"
  23620. else # check for the header
  23621. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23622. CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
  23623. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  23624. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  23625. SPEEX_HEADER_FOUND=1
  23626. else
  23627. SPEEX_HEADER_FOUND=0
  23628. fi
  23629. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23630. fi
  23631. if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
  23632. SPEEX_LIB=""
  23633. SPEEX_INCLUDE=""
  23634. else
  23635. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23636. SPEEX_LIB=""
  23637. fi
  23638. PBX_SPEEX=1
  23639. cat >>confdefs.h <<_ACEOF
  23640. #define HAVE_SPEEX 1
  23641. _ACEOF
  23642. fi
  23643. fi
  23644. fi
  23645. # See if the main speex library contains the preprocess functions
  23646. if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
  23647. pbxlibdir=""
  23648. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  23649. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  23650. if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
  23651. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
  23652. else
  23653. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
  23654. fi
  23655. fi
  23656. pbxfuncname="speex_preprocess_ctl"
  23657. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23658. AST_SPEEX_PREPROCESS_FOUND=yes
  23659. else
  23660. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23661. CFLAGS="${CFLAGS} "
  23662. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  23663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
  23664. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  23665. if eval \${$as_ac_Lib+:} false; then :
  23666. $as_echo_n "(cached) " >&6
  23667. else
  23668. ac_check_lib_save_LIBS=$LIBS
  23669. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  23670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23671. /* end confdefs.h. */
  23672. /* Override any GCC internal prototype to avoid an error.
  23673. Use char because int might match the return type of a GCC
  23674. builtin and then its argument prototype would still apply. */
  23675. #ifdef __cplusplus
  23676. extern "C"
  23677. #endif
  23678. char ${pbxfuncname} ();
  23679. int
  23680. main ()
  23681. {
  23682. return ${pbxfuncname} ();
  23683. ;
  23684. return 0;
  23685. }
  23686. _ACEOF
  23687. if ac_fn_c_try_link "$LINENO"; then :
  23688. eval "$as_ac_Lib=yes"
  23689. else
  23690. eval "$as_ac_Lib=no"
  23691. fi
  23692. rm -f core conftest.err conftest.$ac_objext \
  23693. conftest$ac_exeext conftest.$ac_ext
  23694. LIBS=$ac_check_lib_save_LIBS
  23695. fi
  23696. eval ac_res=\$$as_ac_Lib
  23697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23698. $as_echo "$ac_res" >&6; }
  23699. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23700. AST_SPEEX_PREPROCESS_FOUND=yes
  23701. else
  23702. AST_SPEEX_PREPROCESS_FOUND=no
  23703. fi
  23704. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23705. fi
  23706. # now check for the header.
  23707. if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
  23708. SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
  23709. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  23710. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  23711. SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
  23712. fi
  23713. SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
  23714. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  23715. SPEEX_PREPROCESS_HEADER_FOUND="1"
  23716. else # check for the header
  23717. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23718. CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
  23719. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  23720. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  23721. SPEEX_PREPROCESS_HEADER_FOUND=1
  23722. else
  23723. SPEEX_PREPROCESS_HEADER_FOUND=0
  23724. fi
  23725. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23726. fi
  23727. if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
  23728. SPEEX_PREPROCESS_LIB=""
  23729. SPEEX_PREPROCESS_INCLUDE=""
  23730. else
  23731. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23732. SPEEX_PREPROCESS_LIB=""
  23733. fi
  23734. PBX_SPEEX_PREPROCESS=1
  23735. cat >>confdefs.h <<_ACEOF
  23736. #define HAVE_SPEEX_PREPROCESS 1
  23737. _ACEOF
  23738. fi
  23739. fi
  23740. fi
  23741. if test "${PBX_SPEEX_PREPROCESS}" = 1; then
  23742. PBX_SPEEX_PREPROCESS=1
  23743. fi
  23744. if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
  23745. pbxlibdir=""
  23746. # if --with-SPEEXDSP=DIR has been specified, use it.
  23747. if test "x${SPEEXDSP_DIR}" != "x"; then
  23748. if test -d ${SPEEXDSP_DIR}/lib; then
  23749. pbxlibdir="-L${SPEEXDSP_DIR}/lib"
  23750. else
  23751. pbxlibdir="-L${SPEEXDSP_DIR}"
  23752. fi
  23753. fi
  23754. pbxfuncname="speex_preprocess_ctl"
  23755. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23756. AST_SPEEXDSP_FOUND=yes
  23757. else
  23758. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23759. CFLAGS="${CFLAGS} "
  23760. as_ac_Lib=`$as_echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
  23761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeexdsp" >&5
  23762. $as_echo_n "checking for ${pbxfuncname} in -lspeexdsp... " >&6; }
  23763. if eval \${$as_ac_Lib+:} false; then :
  23764. $as_echo_n "(cached) " >&6
  23765. else
  23766. ac_check_lib_save_LIBS=$LIBS
  23767. LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
  23768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23769. /* end confdefs.h. */
  23770. /* Override any GCC internal prototype to avoid an error.
  23771. Use char because int might match the return type of a GCC
  23772. builtin and then its argument prototype would still apply. */
  23773. #ifdef __cplusplus
  23774. extern "C"
  23775. #endif
  23776. char ${pbxfuncname} ();
  23777. int
  23778. main ()
  23779. {
  23780. return ${pbxfuncname} ();
  23781. ;
  23782. return 0;
  23783. }
  23784. _ACEOF
  23785. if ac_fn_c_try_link "$LINENO"; then :
  23786. eval "$as_ac_Lib=yes"
  23787. else
  23788. eval "$as_ac_Lib=no"
  23789. fi
  23790. rm -f core conftest.err conftest.$ac_objext \
  23791. conftest$ac_exeext conftest.$ac_ext
  23792. LIBS=$ac_check_lib_save_LIBS
  23793. fi
  23794. eval ac_res=\$$as_ac_Lib
  23795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23796. $as_echo "$ac_res" >&6; }
  23797. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23798. AST_SPEEXDSP_FOUND=yes
  23799. else
  23800. AST_SPEEXDSP_FOUND=no
  23801. fi
  23802. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23803. fi
  23804. # now check for the header.
  23805. if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
  23806. SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
  23807. # if --with-SPEEXDSP=DIR has been specified, use it.
  23808. if test "x${SPEEXDSP_DIR}" != "x"; then
  23809. SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
  23810. fi
  23811. SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
  23812. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  23813. SPEEXDSP_HEADER_FOUND="1"
  23814. else # check for the header
  23815. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23816. CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
  23817. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  23818. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  23819. SPEEXDSP_HEADER_FOUND=1
  23820. else
  23821. SPEEXDSP_HEADER_FOUND=0
  23822. fi
  23823. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23824. fi
  23825. if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
  23826. SPEEXDSP_LIB=""
  23827. SPEEXDSP_INCLUDE=""
  23828. else
  23829. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23830. SPEEXDSP_LIB=""
  23831. fi
  23832. PBX_SPEEXDSP=1
  23833. cat >>confdefs.h <<_ACEOF
  23834. #define HAVE_SPEEXDSP 1
  23835. _ACEOF
  23836. fi
  23837. fi
  23838. fi
  23839. if test "${PBX_SPEEXDSP}" = 1; then
  23840. PBX_SPEEX_PREPROCESS=1
  23841. fi
  23842. if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
  23843. pbxlibdir=""
  23844. # if --with-SQLITE=DIR has been specified, use it.
  23845. if test "x${SQLITE_DIR}" != "x"; then
  23846. if test -d ${SQLITE_DIR}/lib; then
  23847. pbxlibdir="-L${SQLITE_DIR}/lib"
  23848. else
  23849. pbxlibdir="-L${SQLITE_DIR}"
  23850. fi
  23851. fi
  23852. pbxfuncname="sqlite_exec"
  23853. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23854. AST_SQLITE_FOUND=yes
  23855. else
  23856. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23857. CFLAGS="${CFLAGS} "
  23858. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
  23859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite" >&5
  23860. $as_echo_n "checking for ${pbxfuncname} in -lsqlite... " >&6; }
  23861. if eval \${$as_ac_Lib+:} false; then :
  23862. $as_echo_n "(cached) " >&6
  23863. else
  23864. ac_check_lib_save_LIBS=$LIBS
  23865. LIBS="-lsqlite ${pbxlibdir} $LIBS"
  23866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23867. /* end confdefs.h. */
  23868. /* Override any GCC internal prototype to avoid an error.
  23869. Use char because int might match the return type of a GCC
  23870. builtin and then its argument prototype would still apply. */
  23871. #ifdef __cplusplus
  23872. extern "C"
  23873. #endif
  23874. char ${pbxfuncname} ();
  23875. int
  23876. main ()
  23877. {
  23878. return ${pbxfuncname} ();
  23879. ;
  23880. return 0;
  23881. }
  23882. _ACEOF
  23883. if ac_fn_c_try_link "$LINENO"; then :
  23884. eval "$as_ac_Lib=yes"
  23885. else
  23886. eval "$as_ac_Lib=no"
  23887. fi
  23888. rm -f core conftest.err conftest.$ac_objext \
  23889. conftest$ac_exeext conftest.$ac_ext
  23890. LIBS=$ac_check_lib_save_LIBS
  23891. fi
  23892. eval ac_res=\$$as_ac_Lib
  23893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23894. $as_echo "$ac_res" >&6; }
  23895. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23896. AST_SQLITE_FOUND=yes
  23897. else
  23898. AST_SQLITE_FOUND=no
  23899. fi
  23900. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23901. fi
  23902. # now check for the header.
  23903. if test "${AST_SQLITE_FOUND}" = "yes"; then
  23904. SQLITE_LIB="${pbxlibdir} -lsqlite "
  23905. # if --with-SQLITE=DIR has been specified, use it.
  23906. if test "x${SQLITE_DIR}" != "x"; then
  23907. SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
  23908. fi
  23909. SQLITE_INCLUDE="${SQLITE_INCLUDE} "
  23910. if test "xsqlite.h" = "x" ; then # no header, assume found
  23911. SQLITE_HEADER_FOUND="1"
  23912. else # check for the header
  23913. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23914. CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
  23915. ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
  23916. if test "x$ac_cv_header_sqlite_h" = xyes; then :
  23917. SQLITE_HEADER_FOUND=1
  23918. else
  23919. SQLITE_HEADER_FOUND=0
  23920. fi
  23921. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23922. fi
  23923. if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
  23924. SQLITE_LIB=""
  23925. SQLITE_INCLUDE=""
  23926. else
  23927. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23928. SQLITE_LIB=""
  23929. fi
  23930. PBX_SQLITE=1
  23931. cat >>confdefs.h <<_ACEOF
  23932. #define HAVE_SQLITE 1
  23933. _ACEOF
  23934. fi
  23935. fi
  23936. fi
  23937. if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
  23938. pbxlibdir=""
  23939. # if --with-SQLITE3=DIR has been specified, use it.
  23940. if test "x${SQLITE3_DIR}" != "x"; then
  23941. if test -d ${SQLITE3_DIR}/lib; then
  23942. pbxlibdir="-L${SQLITE3_DIR}/lib"
  23943. else
  23944. pbxlibdir="-L${SQLITE3_DIR}"
  23945. fi
  23946. fi
  23947. pbxfuncname="sqlite3_open"
  23948. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23949. AST_SQLITE3_FOUND=yes
  23950. else
  23951. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23952. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  23953. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
  23954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite3" >&5
  23955. $as_echo_n "checking for ${pbxfuncname} in -lsqlite3... " >&6; }
  23956. if eval \${$as_ac_Lib+:} false; then :
  23957. $as_echo_n "(cached) " >&6
  23958. else
  23959. ac_check_lib_save_LIBS=$LIBS
  23960. LIBS="-lsqlite3 ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  23961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23962. /* end confdefs.h. */
  23963. /* Override any GCC internal prototype to avoid an error.
  23964. Use char because int might match the return type of a GCC
  23965. builtin and then its argument prototype would still apply. */
  23966. #ifdef __cplusplus
  23967. extern "C"
  23968. #endif
  23969. char ${pbxfuncname} ();
  23970. int
  23971. main ()
  23972. {
  23973. return ${pbxfuncname} ();
  23974. ;
  23975. return 0;
  23976. }
  23977. _ACEOF
  23978. if ac_fn_c_try_link "$LINENO"; then :
  23979. eval "$as_ac_Lib=yes"
  23980. else
  23981. eval "$as_ac_Lib=no"
  23982. fi
  23983. rm -f core conftest.err conftest.$ac_objext \
  23984. conftest$ac_exeext conftest.$ac_ext
  23985. LIBS=$ac_check_lib_save_LIBS
  23986. fi
  23987. eval ac_res=\$$as_ac_Lib
  23988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23989. $as_echo "$ac_res" >&6; }
  23990. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23991. AST_SQLITE3_FOUND=yes
  23992. else
  23993. AST_SQLITE3_FOUND=no
  23994. fi
  23995. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23996. fi
  23997. # now check for the header.
  23998. if test "${AST_SQLITE3_FOUND}" = "yes"; then
  23999. SQLITE3_LIB="${pbxlibdir} -lsqlite3 ${PTHREAD_LIBS}"
  24000. # if --with-SQLITE3=DIR has been specified, use it.
  24001. if test "x${SQLITE3_DIR}" != "x"; then
  24002. SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
  24003. fi
  24004. SQLITE3_INCLUDE="${SQLITE3_INCLUDE} ${PTHREAD_CFLAGS}"
  24005. if test "xsqlite3.h" = "x" ; then # no header, assume found
  24006. SQLITE3_HEADER_FOUND="1"
  24007. else # check for the header
  24008. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24009. CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
  24010. ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
  24011. if test "x$ac_cv_header_sqlite3_h" = xyes; then :
  24012. SQLITE3_HEADER_FOUND=1
  24013. else
  24014. SQLITE3_HEADER_FOUND=0
  24015. fi
  24016. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24017. fi
  24018. if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
  24019. SQLITE3_LIB=""
  24020. SQLITE3_INCLUDE=""
  24021. else
  24022. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24023. SQLITE3_LIB=""
  24024. fi
  24025. PBX_SQLITE3=1
  24026. cat >>confdefs.h <<_ACEOF
  24027. #define HAVE_SQLITE3 1
  24028. _ACEOF
  24029. fi
  24030. fi
  24031. fi
  24032. if test "${PBX_SQLITE3}" != 1; then
  24033. as_fn_error $? "*** Asterisk now uses SQLite3 for the internal Asterisk database." "$LINENO" 5
  24034. as_fn_error $? "*** Please install the SQLite3 development package." "$LINENO" 5
  24035. exit 1
  24036. fi
  24037. if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
  24038. pbxlibdir=""
  24039. # if --with-CRYPTO=DIR has been specified, use it.
  24040. if test "x${CRYPTO_DIR}" != "x"; then
  24041. if test -d ${CRYPTO_DIR}/lib; then
  24042. pbxlibdir="-L${CRYPTO_DIR}/lib"
  24043. else
  24044. pbxlibdir="-L${CRYPTO_DIR}"
  24045. fi
  24046. fi
  24047. pbxfuncname="AES_encrypt"
  24048. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24049. AST_CRYPTO_FOUND=yes
  24050. else
  24051. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24052. CFLAGS="${CFLAGS} "
  24053. as_ac_Lib=`$as_echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
  24054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcrypto" >&5
  24055. $as_echo_n "checking for ${pbxfuncname} in -lcrypto... " >&6; }
  24056. if eval \${$as_ac_Lib+:} false; then :
  24057. $as_echo_n "(cached) " >&6
  24058. else
  24059. ac_check_lib_save_LIBS=$LIBS
  24060. LIBS="-lcrypto ${pbxlibdir} $LIBS"
  24061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24062. /* end confdefs.h. */
  24063. /* Override any GCC internal prototype to avoid an error.
  24064. Use char because int might match the return type of a GCC
  24065. builtin and then its argument prototype would still apply. */
  24066. #ifdef __cplusplus
  24067. extern "C"
  24068. #endif
  24069. char ${pbxfuncname} ();
  24070. int
  24071. main ()
  24072. {
  24073. return ${pbxfuncname} ();
  24074. ;
  24075. return 0;
  24076. }
  24077. _ACEOF
  24078. if ac_fn_c_try_link "$LINENO"; then :
  24079. eval "$as_ac_Lib=yes"
  24080. else
  24081. eval "$as_ac_Lib=no"
  24082. fi
  24083. rm -f core conftest.err conftest.$ac_objext \
  24084. conftest$ac_exeext conftest.$ac_ext
  24085. LIBS=$ac_check_lib_save_LIBS
  24086. fi
  24087. eval ac_res=\$$as_ac_Lib
  24088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24089. $as_echo "$ac_res" >&6; }
  24090. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24091. AST_CRYPTO_FOUND=yes
  24092. else
  24093. AST_CRYPTO_FOUND=no
  24094. fi
  24095. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24096. fi
  24097. # now check for the header.
  24098. if test "${AST_CRYPTO_FOUND}" = "yes"; then
  24099. CRYPTO_LIB="${pbxlibdir} -lcrypto "
  24100. # if --with-CRYPTO=DIR has been specified, use it.
  24101. if test "x${CRYPTO_DIR}" != "x"; then
  24102. CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
  24103. fi
  24104. CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
  24105. if test "xopenssl/aes.h" = "x" ; then # no header, assume found
  24106. CRYPTO_HEADER_FOUND="1"
  24107. else # check for the header
  24108. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24109. CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
  24110. ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"
  24111. if test "x$ac_cv_header_openssl_aes_h" = xyes; then :
  24112. CRYPTO_HEADER_FOUND=1
  24113. else
  24114. CRYPTO_HEADER_FOUND=0
  24115. fi
  24116. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24117. fi
  24118. if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
  24119. CRYPTO_LIB=""
  24120. CRYPTO_INCLUDE=""
  24121. else
  24122. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24123. CRYPTO_LIB=""
  24124. fi
  24125. PBX_CRYPTO=1
  24126. cat >>confdefs.h <<_ACEOF
  24127. #define HAVE_CRYPTO 1
  24128. _ACEOF
  24129. fi
  24130. fi
  24131. fi
  24132. if test "$PBX_CRYPTO" = "1";
  24133. then
  24134. if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
  24135. pbxlibdir=""
  24136. # if --with-OPENSSL=DIR has been specified, use it.
  24137. if test "x${OPENSSL_DIR}" != "x"; then
  24138. if test -d ${OPENSSL_DIR}/lib; then
  24139. pbxlibdir="-L${OPENSSL_DIR}/lib"
  24140. else
  24141. pbxlibdir="-L${OPENSSL_DIR}"
  24142. fi
  24143. fi
  24144. pbxfuncname="SSL_connect"
  24145. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24146. AST_OPENSSL_FOUND=yes
  24147. else
  24148. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24149. CFLAGS="${CFLAGS} "
  24150. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  24151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
  24152. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  24153. if eval \${$as_ac_Lib+:} false; then :
  24154. $as_echo_n "(cached) " >&6
  24155. else
  24156. ac_check_lib_save_LIBS=$LIBS
  24157. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  24158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24159. /* end confdefs.h. */
  24160. /* Override any GCC internal prototype to avoid an error.
  24161. Use char because int might match the return type of a GCC
  24162. builtin and then its argument prototype would still apply. */
  24163. #ifdef __cplusplus
  24164. extern "C"
  24165. #endif
  24166. char ${pbxfuncname} ();
  24167. int
  24168. main ()
  24169. {
  24170. return ${pbxfuncname} ();
  24171. ;
  24172. return 0;
  24173. }
  24174. _ACEOF
  24175. if ac_fn_c_try_link "$LINENO"; then :
  24176. eval "$as_ac_Lib=yes"
  24177. else
  24178. eval "$as_ac_Lib=no"
  24179. fi
  24180. rm -f core conftest.err conftest.$ac_objext \
  24181. conftest$ac_exeext conftest.$ac_ext
  24182. LIBS=$ac_check_lib_save_LIBS
  24183. fi
  24184. eval ac_res=\$$as_ac_Lib
  24185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24186. $as_echo "$ac_res" >&6; }
  24187. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24188. AST_OPENSSL_FOUND=yes
  24189. else
  24190. AST_OPENSSL_FOUND=no
  24191. fi
  24192. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24193. fi
  24194. # now check for the header.
  24195. if test "${AST_OPENSSL_FOUND}" = "yes"; then
  24196. OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
  24197. # if --with-OPENSSL=DIR has been specified, use it.
  24198. if test "x${OPENSSL_DIR}" != "x"; then
  24199. OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
  24200. fi
  24201. OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
  24202. if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
  24203. OPENSSL_HEADER_FOUND="1"
  24204. else # check for the header
  24205. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24206. CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
  24207. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  24208. if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
  24209. OPENSSL_HEADER_FOUND=1
  24210. else
  24211. OPENSSL_HEADER_FOUND=0
  24212. fi
  24213. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24214. fi
  24215. if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
  24216. OPENSSL_LIB=""
  24217. OPENSSL_INCLUDE=""
  24218. else
  24219. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24220. OPENSSL_LIB=""
  24221. fi
  24222. PBX_OPENSSL=1
  24223. cat >>confdefs.h <<_ACEOF
  24224. #define HAVE_OPENSSL 1
  24225. _ACEOF
  24226. fi
  24227. fi
  24228. fi
  24229. fi
  24230. if test "$PBX_OPENSSL" = "1";
  24231. then
  24232. # if OSPTK has not been checked and is not excluded
  24233. if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
  24234. # if --with-osptk=DIR has been specified, use it.
  24235. if test "x${OSPTK_DIR}" != "x"; then
  24236. osptk_cflags="-I${OSPTK_DIR}/include"
  24237. osptk_ldflags="-L${OSPTK_DIR}/lib"
  24238. else
  24239. osptk_cflags=""
  24240. osptk_ldflags=""
  24241. fi
  24242. # check for the header
  24243. osptk_saved_cppflags="${CPPFLAGS}"
  24244. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  24245. ac_fn_c_check_header_mongrel "$LINENO" "osp/osp.h" "ac_cv_header_osp_osp_h" "$ac_includes_default"
  24246. if test "x$ac_cv_header_osp_osp_h" = xyes; then :
  24247. osptk_header_found=yes
  24248. else
  24249. osptk_header_found=no
  24250. fi
  24251. CPPFLAGS="${osptk_saved_cppflags}"
  24252. # check for the library
  24253. if test "${osptk_header_found}" = "yes"; then
  24254. osptk_extralibs="-lssl -lcrypto"
  24255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSPPInit in -losptk" >&5
  24256. $as_echo_n "checking for OSPPInit in -losptk... " >&6; }
  24257. if ${ac_cv_lib_osptk_OSPPInit+:} false; then :
  24258. $as_echo_n "(cached) " >&6
  24259. else
  24260. ac_check_lib_save_LIBS=$LIBS
  24261. LIBS="-losptk ${osptk_ldflags} ${osptk_extralibs} $LIBS"
  24262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24263. /* end confdefs.h. */
  24264. /* Override any GCC internal prototype to avoid an error.
  24265. Use char because int might match the return type of a GCC
  24266. builtin and then its argument prototype would still apply. */
  24267. #ifdef __cplusplus
  24268. extern "C"
  24269. #endif
  24270. char OSPPInit ();
  24271. int
  24272. main ()
  24273. {
  24274. return OSPPInit ();
  24275. ;
  24276. return 0;
  24277. }
  24278. _ACEOF
  24279. if ac_fn_c_try_link "$LINENO"; then :
  24280. ac_cv_lib_osptk_OSPPInit=yes
  24281. else
  24282. ac_cv_lib_osptk_OSPPInit=no
  24283. fi
  24284. rm -f core conftest.err conftest.$ac_objext \
  24285. conftest$ac_exeext conftest.$ac_ext
  24286. LIBS=$ac_check_lib_save_LIBS
  24287. fi
  24288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osptk_OSPPInit" >&5
  24289. $as_echo "$ac_cv_lib_osptk_OSPPInit" >&6; }
  24290. if test "x$ac_cv_lib_osptk_OSPPInit" = xyes; then :
  24291. osptk_library_found=yes
  24292. else
  24293. osptk_library_found=no
  24294. fi
  24295. # check OSP Toolkit version
  24296. if test "${osptk_library_found}" = "yes"; then
  24297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OSP Toolkit version is compatible with app_osplookup" >&5
  24298. $as_echo_n "checking if OSP Toolkit version is compatible with app_osplookup... " >&6; }
  24299. osptk_saved_cppflags="${CPPFLAGS}"
  24300. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  24301. if test "$cross_compiling" = yes; then :
  24302. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24303. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24304. as_fn_error $? "cannot run test program while cross compiling
  24305. See \`config.log' for more details" "$LINENO" 5; }
  24306. else
  24307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24308. /* end confdefs.h. */
  24309. #include <osp/osp.h>
  24310. int main(void) {
  24311. int ver = OSP_CLIENT_TOOLKIT_VERSION_MAJOR * 10000 + OSP_CLIENT_TOOLKIT_VERSION_MINOR * 100 + OSP_CLIENT_TOOLKIT_VERSION_BUGFIX;
  24312. int req = 4 * 10000 + 0 * 100 + 0;
  24313. return (ver < req) ? 1 : 0;
  24314. }
  24315. _ACEOF
  24316. if ac_fn_c_try_run "$LINENO"; then :
  24317. osptk_compatible=yes
  24318. else
  24319. osptk_compatible=no
  24320. fi
  24321. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  24322. conftest.$ac_objext conftest.beam conftest.$ac_ext
  24323. fi
  24324. CPPFLAGS="${osptk_saved_cppflags}"
  24325. if test "${osptk_compatible}" = "yes"; then
  24326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24327. $as_echo "yes" >&6; }
  24328. PBX_OSPTK=1
  24329. OSPTK_INCLUDE="${osptk_cflags}"
  24330. OSPTK_LIB="${osptk_ldflags} -losptk ${osptk_extralibs}"
  24331. cat >>confdefs.h <<_ACEOF
  24332. #define HAVE_OSPTK 1
  24333. _ACEOF
  24334. else
  24335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24336. $as_echo "no" >&6; }
  24337. fi
  24338. fi
  24339. fi
  24340. fi
  24341. if test "x${PBX_OPENSSL_SRTP}" != "x1" -a "${USE_OPENSSL_SRTP}" != "no"; then
  24342. pbxlibdir=""
  24343. # if --with-OPENSSL_SRTP=DIR has been specified, use it.
  24344. if test "x${OPENSSL_SRTP_DIR}" != "x"; then
  24345. if test -d ${OPENSSL_SRTP_DIR}/lib; then
  24346. pbxlibdir="-L${OPENSSL_SRTP_DIR}/lib"
  24347. else
  24348. pbxlibdir="-L${OPENSSL_SRTP_DIR}"
  24349. fi
  24350. fi
  24351. pbxfuncname="SSL_CTX_set_tlsext_use_srtp"
  24352. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24353. AST_OPENSSL_SRTP_FOUND=yes
  24354. else
  24355. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24356. CFLAGS="${CFLAGS} "
  24357. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  24358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
  24359. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  24360. if eval \${$as_ac_Lib+:} false; then :
  24361. $as_echo_n "(cached) " >&6
  24362. else
  24363. ac_check_lib_save_LIBS=$LIBS
  24364. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  24365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24366. /* end confdefs.h. */
  24367. /* Override any GCC internal prototype to avoid an error.
  24368. Use char because int might match the return type of a GCC
  24369. builtin and then its argument prototype would still apply. */
  24370. #ifdef __cplusplus
  24371. extern "C"
  24372. #endif
  24373. char ${pbxfuncname} ();
  24374. int
  24375. main ()
  24376. {
  24377. return ${pbxfuncname} ();
  24378. ;
  24379. return 0;
  24380. }
  24381. _ACEOF
  24382. if ac_fn_c_try_link "$LINENO"; then :
  24383. eval "$as_ac_Lib=yes"
  24384. else
  24385. eval "$as_ac_Lib=no"
  24386. fi
  24387. rm -f core conftest.err conftest.$ac_objext \
  24388. conftest$ac_exeext conftest.$ac_ext
  24389. LIBS=$ac_check_lib_save_LIBS
  24390. fi
  24391. eval ac_res=\$$as_ac_Lib
  24392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24393. $as_echo "$ac_res" >&6; }
  24394. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24395. AST_OPENSSL_SRTP_FOUND=yes
  24396. else
  24397. AST_OPENSSL_SRTP_FOUND=no
  24398. fi
  24399. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24400. fi
  24401. # now check for the header.
  24402. if test "${AST_OPENSSL_SRTP_FOUND}" = "yes"; then
  24403. OPENSSL_SRTP_LIB="${pbxlibdir} -lssl -lcrypto"
  24404. # if --with-OPENSSL_SRTP=DIR has been specified, use it.
  24405. if test "x${OPENSSL_SRTP_DIR}" != "x"; then
  24406. OPENSSL_SRTP_INCLUDE="-I${OPENSSL_SRTP_DIR}/include"
  24407. fi
  24408. OPENSSL_SRTP_INCLUDE="${OPENSSL_SRTP_INCLUDE} "
  24409. if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
  24410. OPENSSL_SRTP_HEADER_FOUND="1"
  24411. else # check for the header
  24412. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24413. CPPFLAGS="${CPPFLAGS} ${OPENSSL_SRTP_INCLUDE}"
  24414. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  24415. if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
  24416. OPENSSL_SRTP_HEADER_FOUND=1
  24417. else
  24418. OPENSSL_SRTP_HEADER_FOUND=0
  24419. fi
  24420. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24421. fi
  24422. if test "x${OPENSSL_SRTP_HEADER_FOUND}" = "x0" ; then
  24423. OPENSSL_SRTP_LIB=""
  24424. OPENSSL_SRTP_INCLUDE=""
  24425. else
  24426. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24427. OPENSSL_SRTP_LIB=""
  24428. fi
  24429. PBX_OPENSSL_SRTP=1
  24430. cat >>confdefs.h <<_ACEOF
  24431. #define HAVE_OPENSSL_SRTP 1
  24432. _ACEOF
  24433. fi
  24434. fi
  24435. fi
  24436. fi
  24437. if test "x${PBX_SRTP}" != "x1" -a "${USE_SRTP}" != "no"; then
  24438. pbxlibdir=""
  24439. # if --with-SRTP=DIR has been specified, use it.
  24440. if test "x${SRTP_DIR}" != "x"; then
  24441. if test -d ${SRTP_DIR}/lib; then
  24442. pbxlibdir="-L${SRTP_DIR}/lib"
  24443. else
  24444. pbxlibdir="-L${SRTP_DIR}"
  24445. fi
  24446. fi
  24447. pbxfuncname="srtp_init"
  24448. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24449. AST_SRTP_FOUND=yes
  24450. else
  24451. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24452. CFLAGS="${CFLAGS} "
  24453. as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
  24454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsrtp" >&5
  24455. $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
  24456. if eval \${$as_ac_Lib+:} false; then :
  24457. $as_echo_n "(cached) " >&6
  24458. else
  24459. ac_check_lib_save_LIBS=$LIBS
  24460. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  24461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24462. /* end confdefs.h. */
  24463. /* Override any GCC internal prototype to avoid an error.
  24464. Use char because int might match the return type of a GCC
  24465. builtin and then its argument prototype would still apply. */
  24466. #ifdef __cplusplus
  24467. extern "C"
  24468. #endif
  24469. char ${pbxfuncname} ();
  24470. int
  24471. main ()
  24472. {
  24473. return ${pbxfuncname} ();
  24474. ;
  24475. return 0;
  24476. }
  24477. _ACEOF
  24478. if ac_fn_c_try_link "$LINENO"; then :
  24479. eval "$as_ac_Lib=yes"
  24480. else
  24481. eval "$as_ac_Lib=no"
  24482. fi
  24483. rm -f core conftest.err conftest.$ac_objext \
  24484. conftest$ac_exeext conftest.$ac_ext
  24485. LIBS=$ac_check_lib_save_LIBS
  24486. fi
  24487. eval ac_res=\$$as_ac_Lib
  24488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24489. $as_echo "$ac_res" >&6; }
  24490. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24491. AST_SRTP_FOUND=yes
  24492. else
  24493. AST_SRTP_FOUND=no
  24494. fi
  24495. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24496. fi
  24497. # now check for the header.
  24498. if test "${AST_SRTP_FOUND}" = "yes"; then
  24499. SRTP_LIB="${pbxlibdir} -lsrtp "
  24500. # if --with-SRTP=DIR has been specified, use it.
  24501. if test "x${SRTP_DIR}" != "x"; then
  24502. SRTP_INCLUDE="-I${SRTP_DIR}/include"
  24503. fi
  24504. SRTP_INCLUDE="${SRTP_INCLUDE} "
  24505. if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
  24506. SRTP_HEADER_FOUND="1"
  24507. else # check for the header
  24508. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24509. CPPFLAGS="${CPPFLAGS} ${SRTP_INCLUDE}"
  24510. ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  24511. if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
  24512. SRTP_HEADER_FOUND=1
  24513. else
  24514. SRTP_HEADER_FOUND=0
  24515. fi
  24516. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24517. fi
  24518. if test "x${SRTP_HEADER_FOUND}" = "x0" ; then
  24519. SRTP_LIB=""
  24520. SRTP_INCLUDE=""
  24521. else
  24522. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24523. SRTP_LIB=""
  24524. fi
  24525. PBX_SRTP=1
  24526. cat >>confdefs.h <<_ACEOF
  24527. #define HAVE_SRTP 1
  24528. _ACEOF
  24529. fi
  24530. fi
  24531. fi
  24532. if test "$PBX_SRTP" = "1";
  24533. then
  24534. saved_libs="${LIBS}"
  24535. saved_ldflags="${LDFLAGS}"
  24536. saved_cflags="${CFLAGS}"
  24537. LIBS="${LIBS} ${SRTP_LIB}"
  24538. LDFLAGS="${LDFLAGS} -shared -fPIC"
  24539. CFLAGS="${CFLAGS} ${SRTP_INCLUDE}"
  24540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ability of -lsrtp to be linked in a shared object" >&5
  24541. $as_echo_n "checking for the ability of -lsrtp to be linked in a shared object... " >&6; }
  24542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24543. /* end confdefs.h. */
  24544. #include <srtp/srtp.h>
  24545. int
  24546. main ()
  24547. {
  24548. srtp_init();
  24549. ;
  24550. return 0;
  24551. }
  24552. _ACEOF
  24553. if ac_fn_c_try_link "$LINENO"; then :
  24554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24555. $as_echo "yes" >&6; }
  24556. else
  24557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24558. $as_echo "no" >&6; }
  24559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  24560. $as_echo "$as_me: WARNING: ***" >&2;}
  24561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libsrtp could not be linked as a shared object." >&5
  24562. $as_echo "$as_me: WARNING: *** libsrtp could not be linked as a shared object." >&2;}
  24563. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&5
  24564. $as_echo "$as_me: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&2;}
  24565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&5
  24566. $as_echo "$as_me: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&2;}
  24567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** replacing /usr with the prefix of your choice." >&5
  24568. $as_echo "$as_me: WARNING: *** replacing /usr with the prefix of your choice." >&2;}
  24569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** After re-installing libsrtp" >&5
  24570. $as_echo "$as_me: WARNING: *** After re-installing libsrtp" >&2;}
  24571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** configure script." >&5
  24572. $as_echo "$as_me: WARNING: *** configure script." >&2;}
  24573. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  24574. $as_echo "$as_me: WARNING: ***" >&2;}
  24575. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** If you do not need SRTP support re-run configure" >&5
  24576. $as_echo "$as_me: WARNING: *** If you do not need SRTP support re-run configure" >&2;}
  24577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with the --without-srtp option." >&5
  24578. $as_echo "$as_me: WARNING: *** with the --without-srtp option." >&2;}
  24579. exit 1
  24580. fi
  24581. rm -f core conftest.err conftest.$ac_objext \
  24582. conftest$ac_exeext conftest.$ac_ext
  24583. LIBS="${saved_libs}"
  24584. LDFLAGS="${saved_ldflags}"
  24585. CFLAGS="${saved_cflags}"
  24586. fi
  24587. if test "x${PBX_SRTP_SHUTDOWN}" != "x1" -a "${USE_SRTP_SHUTDOWN}" != "no"; then
  24588. pbxlibdir=""
  24589. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  24590. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  24591. if test -d ${SRTP_SHUTDOWN_DIR}/lib; then
  24592. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}/lib"
  24593. else
  24594. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}"
  24595. fi
  24596. fi
  24597. pbxfuncname="srtp_shutdown"
  24598. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24599. AST_SRTP_SHUTDOWN_FOUND=yes
  24600. else
  24601. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24602. CFLAGS="${CFLAGS} "
  24603. as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
  24604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsrtp" >&5
  24605. $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
  24606. if eval \${$as_ac_Lib+:} false; then :
  24607. $as_echo_n "(cached) " >&6
  24608. else
  24609. ac_check_lib_save_LIBS=$LIBS
  24610. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  24611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24612. /* end confdefs.h. */
  24613. /* Override any GCC internal prototype to avoid an error.
  24614. Use char because int might match the return type of a GCC
  24615. builtin and then its argument prototype would still apply. */
  24616. #ifdef __cplusplus
  24617. extern "C"
  24618. #endif
  24619. char ${pbxfuncname} ();
  24620. int
  24621. main ()
  24622. {
  24623. return ${pbxfuncname} ();
  24624. ;
  24625. return 0;
  24626. }
  24627. _ACEOF
  24628. if ac_fn_c_try_link "$LINENO"; then :
  24629. eval "$as_ac_Lib=yes"
  24630. else
  24631. eval "$as_ac_Lib=no"
  24632. fi
  24633. rm -f core conftest.err conftest.$ac_objext \
  24634. conftest$ac_exeext conftest.$ac_ext
  24635. LIBS=$ac_check_lib_save_LIBS
  24636. fi
  24637. eval ac_res=\$$as_ac_Lib
  24638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24639. $as_echo "$ac_res" >&6; }
  24640. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24641. AST_SRTP_SHUTDOWN_FOUND=yes
  24642. else
  24643. AST_SRTP_SHUTDOWN_FOUND=no
  24644. fi
  24645. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24646. fi
  24647. # now check for the header.
  24648. if test "${AST_SRTP_SHUTDOWN_FOUND}" = "yes"; then
  24649. SRTP_SHUTDOWN_LIB="${pbxlibdir} -lsrtp "
  24650. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  24651. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  24652. SRTP_SHUTDOWN_INCLUDE="-I${SRTP_SHUTDOWN_DIR}/include"
  24653. fi
  24654. SRTP_SHUTDOWN_INCLUDE="${SRTP_SHUTDOWN_INCLUDE} "
  24655. if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
  24656. SRTP_SHUTDOWN_HEADER_FOUND="1"
  24657. else # check for the header
  24658. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24659. CPPFLAGS="${CPPFLAGS} ${SRTP_SHUTDOWN_INCLUDE}"
  24660. ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  24661. if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
  24662. SRTP_SHUTDOWN_HEADER_FOUND=1
  24663. else
  24664. SRTP_SHUTDOWN_HEADER_FOUND=0
  24665. fi
  24666. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24667. fi
  24668. if test "x${SRTP_SHUTDOWN_HEADER_FOUND}" = "x0" ; then
  24669. SRTP_SHUTDOWN_LIB=""
  24670. SRTP_SHUTDOWN_INCLUDE=""
  24671. else
  24672. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24673. SRTP_SHUTDOWN_LIB=""
  24674. fi
  24675. PBX_SRTP_SHUTDOWN=1
  24676. cat >>confdefs.h <<_ACEOF
  24677. #define HAVE_SRTP_SHUTDOWN 1
  24678. _ACEOF
  24679. fi
  24680. fi
  24681. fi
  24682. for ver in 2.0 2.2 2.4 2.6; do
  24683. if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
  24684. pkg_failed=no
  24685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMIME" >&5
  24686. $as_echo_n "checking for GMIME... " >&6; }
  24687. if test -n "$GMIME_CFLAGS"; then
  24688. pkg_cv_GMIME_CFLAGS="$GMIME_CFLAGS"
  24689. elif test -n "$PKG_CONFIG"; then
  24690. if test -n "$PKG_CONFIG" && \
  24691. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
  24692. ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
  24693. ac_status=$?
  24694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24695. test $ac_status = 0; }; then
  24696. pkg_cv_GMIME_CFLAGS=`$PKG_CONFIG --cflags "gmime-$ver" 2>/dev/null`
  24697. test "x$?" != "x0" && pkg_failed=yes
  24698. else
  24699. pkg_failed=yes
  24700. fi
  24701. else
  24702. pkg_failed=untried
  24703. fi
  24704. if test -n "$GMIME_LIBS"; then
  24705. pkg_cv_GMIME_LIBS="$GMIME_LIBS"
  24706. elif test -n "$PKG_CONFIG"; then
  24707. if test -n "$PKG_CONFIG" && \
  24708. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
  24709. ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
  24710. ac_status=$?
  24711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24712. test $ac_status = 0; }; then
  24713. pkg_cv_GMIME_LIBS=`$PKG_CONFIG --libs "gmime-$ver" 2>/dev/null`
  24714. test "x$?" != "x0" && pkg_failed=yes
  24715. else
  24716. pkg_failed=yes
  24717. fi
  24718. else
  24719. pkg_failed=untried
  24720. fi
  24721. if test $pkg_failed = yes; then
  24722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24723. $as_echo "no" >&6; }
  24724. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24725. _pkg_short_errors_supported=yes
  24726. else
  24727. _pkg_short_errors_supported=no
  24728. fi
  24729. if test $_pkg_short_errors_supported = yes; then
  24730. GMIME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmime-$ver" 2>&1`
  24731. else
  24732. GMIME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmime-$ver" 2>&1`
  24733. fi
  24734. # Put the nasty error message in config.log where it belongs
  24735. echo "$GMIME_PKG_ERRORS" >&5
  24736. PBX_GMIME=0
  24737. elif test $pkg_failed = untried; then
  24738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24739. $as_echo "no" >&6; }
  24740. PBX_GMIME=0
  24741. else
  24742. GMIME_CFLAGS=$pkg_cv_GMIME_CFLAGS
  24743. GMIME_LIBS=$pkg_cv_GMIME_LIBS
  24744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24745. $as_echo "yes" >&6; }
  24746. PBX_GMIME=1
  24747. GMIME_INCLUDE="$GMIME_CFLAGS"
  24748. GMIME_LIB="$GMIME_LIBS"
  24749. $as_echo "#define HAVE_GMIME 1" >>confdefs.h
  24750. fi
  24751. fi
  24752. if test "$PBX_GMIME" = 1; then
  24753. break;
  24754. fi
  24755. done
  24756. if test "x${PBX_HOARD}" != "x1" -a "${USE_HOARD}" != "no"; then
  24757. pbxlibdir=""
  24758. # if --with-HOARD=DIR has been specified, use it.
  24759. if test "x${HOARD_DIR}" != "x"; then
  24760. if test -d ${HOARD_DIR}/lib; then
  24761. pbxlibdir="-L${HOARD_DIR}/lib"
  24762. else
  24763. pbxlibdir="-L${HOARD_DIR}"
  24764. fi
  24765. fi
  24766. pbxfuncname="malloc"
  24767. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24768. AST_HOARD_FOUND=yes
  24769. else
  24770. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24771. CFLAGS="${CFLAGS} "
  24772. as_ac_Lib=`$as_echo "ac_cv_lib_hoard_${pbxfuncname}" | $as_tr_sh`
  24773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lhoard" >&5
  24774. $as_echo_n "checking for ${pbxfuncname} in -lhoard... " >&6; }
  24775. if eval \${$as_ac_Lib+:} false; then :
  24776. $as_echo_n "(cached) " >&6
  24777. else
  24778. ac_check_lib_save_LIBS=$LIBS
  24779. LIBS="-lhoard ${pbxlibdir} $LIBS"
  24780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24781. /* end confdefs.h. */
  24782. /* Override any GCC internal prototype to avoid an error.
  24783. Use char because int might match the return type of a GCC
  24784. builtin and then its argument prototype would still apply. */
  24785. #ifdef __cplusplus
  24786. extern "C"
  24787. #endif
  24788. char ${pbxfuncname} ();
  24789. int
  24790. main ()
  24791. {
  24792. return ${pbxfuncname} ();
  24793. ;
  24794. return 0;
  24795. }
  24796. _ACEOF
  24797. if ac_fn_c_try_link "$LINENO"; then :
  24798. eval "$as_ac_Lib=yes"
  24799. else
  24800. eval "$as_ac_Lib=no"
  24801. fi
  24802. rm -f core conftest.err conftest.$ac_objext \
  24803. conftest$ac_exeext conftest.$ac_ext
  24804. LIBS=$ac_check_lib_save_LIBS
  24805. fi
  24806. eval ac_res=\$$as_ac_Lib
  24807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24808. $as_echo "$ac_res" >&6; }
  24809. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24810. AST_HOARD_FOUND=yes
  24811. else
  24812. AST_HOARD_FOUND=no
  24813. fi
  24814. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24815. fi
  24816. # now check for the header.
  24817. if test "${AST_HOARD_FOUND}" = "yes"; then
  24818. HOARD_LIB="${pbxlibdir} -lhoard "
  24819. # if --with-HOARD=DIR has been specified, use it.
  24820. if test "x${HOARD_DIR}" != "x"; then
  24821. HOARD_INCLUDE="-I${HOARD_DIR}/include"
  24822. fi
  24823. HOARD_INCLUDE="${HOARD_INCLUDE} "
  24824. if test "x" = "x" ; then # no header, assume found
  24825. HOARD_HEADER_FOUND="1"
  24826. else # check for the header
  24827. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24828. CPPFLAGS="${CPPFLAGS} ${HOARD_INCLUDE}"
  24829. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  24830. if test "x$ac_cv_header_" = xyes; then :
  24831. HOARD_HEADER_FOUND=1
  24832. else
  24833. HOARD_HEADER_FOUND=0
  24834. fi
  24835. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24836. fi
  24837. if test "x${HOARD_HEADER_FOUND}" = "x0" ; then
  24838. HOARD_LIB=""
  24839. HOARD_INCLUDE=""
  24840. else
  24841. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24842. HOARD_LIB=""
  24843. fi
  24844. PBX_HOARD=1
  24845. cat >>confdefs.h <<_ACEOF
  24846. #define HAVE_HOARD 1
  24847. _ACEOF
  24848. fi
  24849. fi
  24850. fi
  24851. if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
  24852. pbxlibdir=""
  24853. # if --with-FREETDS=DIR has been specified, use it.
  24854. if test "x${FREETDS_DIR}" != "x"; then
  24855. if test -d ${FREETDS_DIR}/lib; then
  24856. pbxlibdir="-L${FREETDS_DIR}/lib"
  24857. else
  24858. pbxlibdir="-L${FREETDS_DIR}"
  24859. fi
  24860. fi
  24861. pbxfuncname="dbinit"
  24862. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24863. AST_FREETDS_FOUND=yes
  24864. else
  24865. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24866. CFLAGS="${CFLAGS} "
  24867. as_ac_Lib=`$as_echo "ac_cv_lib_sybdb_${pbxfuncname}" | $as_tr_sh`
  24868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsybdb" >&5
  24869. $as_echo_n "checking for ${pbxfuncname} in -lsybdb... " >&6; }
  24870. if eval \${$as_ac_Lib+:} false; then :
  24871. $as_echo_n "(cached) " >&6
  24872. else
  24873. ac_check_lib_save_LIBS=$LIBS
  24874. LIBS="-lsybdb ${pbxlibdir} $LIBS"
  24875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24876. /* end confdefs.h. */
  24877. /* Override any GCC internal prototype to avoid an error.
  24878. Use char because int might match the return type of a GCC
  24879. builtin and then its argument prototype would still apply. */
  24880. #ifdef __cplusplus
  24881. extern "C"
  24882. #endif
  24883. char ${pbxfuncname} ();
  24884. int
  24885. main ()
  24886. {
  24887. return ${pbxfuncname} ();
  24888. ;
  24889. return 0;
  24890. }
  24891. _ACEOF
  24892. if ac_fn_c_try_link "$LINENO"; then :
  24893. eval "$as_ac_Lib=yes"
  24894. else
  24895. eval "$as_ac_Lib=no"
  24896. fi
  24897. rm -f core conftest.err conftest.$ac_objext \
  24898. conftest$ac_exeext conftest.$ac_ext
  24899. LIBS=$ac_check_lib_save_LIBS
  24900. fi
  24901. eval ac_res=\$$as_ac_Lib
  24902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24903. $as_echo "$ac_res" >&6; }
  24904. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24905. AST_FREETDS_FOUND=yes
  24906. else
  24907. AST_FREETDS_FOUND=no
  24908. fi
  24909. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24910. fi
  24911. # now check for the header.
  24912. if test "${AST_FREETDS_FOUND}" = "yes"; then
  24913. FREETDS_LIB="${pbxlibdir} -lsybdb "
  24914. # if --with-FREETDS=DIR has been specified, use it.
  24915. if test "x${FREETDS_DIR}" != "x"; then
  24916. FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
  24917. fi
  24918. FREETDS_INCLUDE="${FREETDS_INCLUDE} "
  24919. if test "xsybdb.h" = "x" ; then # no header, assume found
  24920. FREETDS_HEADER_FOUND="1"
  24921. else # check for the header
  24922. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24923. CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
  24924. ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default"
  24925. if test "x$ac_cv_header_sybdb_h" = xyes; then :
  24926. FREETDS_HEADER_FOUND=1
  24927. else
  24928. FREETDS_HEADER_FOUND=0
  24929. fi
  24930. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24931. fi
  24932. if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
  24933. FREETDS_LIB=""
  24934. FREETDS_INCLUDE=""
  24935. else
  24936. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24937. FREETDS_LIB=""
  24938. fi
  24939. PBX_FREETDS=1
  24940. cat >>confdefs.h <<_ACEOF
  24941. #define HAVE_FREETDS 1
  24942. _ACEOF
  24943. fi
  24944. fi
  24945. fi
  24946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tone_zone_find_by_num in -ltonezone" >&5
  24947. $as_echo_n "checking for tone_zone_find_by_num in -ltonezone... " >&6; }
  24948. if ${ac_cv_lib_tonezone_tone_zone_find_by_num+:} false; then :
  24949. $as_echo_n "(cached) " >&6
  24950. else
  24951. ac_check_lib_save_LIBS=$LIBS
  24952. LIBS="-ltonezone $LIBS"
  24953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24954. /* end confdefs.h. */
  24955. /* Override any GCC internal prototype to avoid an error.
  24956. Use char because int might match the return type of a GCC
  24957. builtin and then its argument prototype would still apply. */
  24958. #ifdef __cplusplus
  24959. extern "C"
  24960. #endif
  24961. char tone_zone_find_by_num ();
  24962. int
  24963. main ()
  24964. {
  24965. return tone_zone_find_by_num ();
  24966. ;
  24967. return 0;
  24968. }
  24969. _ACEOF
  24970. if ac_fn_c_try_link "$LINENO"; then :
  24971. ac_cv_lib_tonezone_tone_zone_find_by_num=yes
  24972. else
  24973. ac_cv_lib_tonezone_tone_zone_find_by_num=no
  24974. fi
  24975. rm -f core conftest.err conftest.$ac_objext \
  24976. conftest$ac_exeext conftest.$ac_ext
  24977. LIBS=$ac_check_lib_save_LIBS
  24978. fi
  24979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tonezone_tone_zone_find_by_num" >&5
  24980. $as_echo "$ac_cv_lib_tonezone_tone_zone_find_by_num" >&6; }
  24981. if test "x$ac_cv_lib_tonezone_tone_zone_find_by_num" = xyes; then :
  24982. tonezone_does_not_need_lm=yes
  24983. else
  24984. tonezone_does_not_need_lm=no
  24985. fi
  24986. if test "${tonezone_does_not_need_lm}" = "no" ; then
  24987. tonezone_extra="-lm"
  24988. fi
  24989. if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
  24990. pbxlibdir=""
  24991. # if --with-TONEZONE=DIR has been specified, use it.
  24992. if test "x${TONEZONE_DIR}" != "x"; then
  24993. if test -d ${TONEZONE_DIR}/lib; then
  24994. pbxlibdir="-L${TONEZONE_DIR}/lib"
  24995. else
  24996. pbxlibdir="-L${TONEZONE_DIR}"
  24997. fi
  24998. fi
  24999. pbxfuncname="tone_zone_find"
  25000. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25001. AST_TONEZONE_FOUND=yes
  25002. else
  25003. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25004. CFLAGS="${CFLAGS} "
  25005. as_ac_Lib=`$as_echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
  25006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltonezone" >&5
  25007. $as_echo_n "checking for ${pbxfuncname} in -ltonezone... " >&6; }
  25008. if eval \${$as_ac_Lib+:} false; then :
  25009. $as_echo_n "(cached) " >&6
  25010. else
  25011. ac_check_lib_save_LIBS=$LIBS
  25012. LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $LIBS"
  25013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25014. /* end confdefs.h. */
  25015. /* Override any GCC internal prototype to avoid an error.
  25016. Use char because int might match the return type of a GCC
  25017. builtin and then its argument prototype would still apply. */
  25018. #ifdef __cplusplus
  25019. extern "C"
  25020. #endif
  25021. char ${pbxfuncname} ();
  25022. int
  25023. main ()
  25024. {
  25025. return ${pbxfuncname} ();
  25026. ;
  25027. return 0;
  25028. }
  25029. _ACEOF
  25030. if ac_fn_c_try_link "$LINENO"; then :
  25031. eval "$as_ac_Lib=yes"
  25032. else
  25033. eval "$as_ac_Lib=no"
  25034. fi
  25035. rm -f core conftest.err conftest.$ac_objext \
  25036. conftest$ac_exeext conftest.$ac_ext
  25037. LIBS=$ac_check_lib_save_LIBS
  25038. fi
  25039. eval ac_res=\$$as_ac_Lib
  25040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25041. $as_echo "$ac_res" >&6; }
  25042. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25043. AST_TONEZONE_FOUND=yes
  25044. else
  25045. AST_TONEZONE_FOUND=no
  25046. fi
  25047. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25048. fi
  25049. # now check for the header.
  25050. if test "${AST_TONEZONE_FOUND}" = "yes"; then
  25051. TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
  25052. # if --with-TONEZONE=DIR has been specified, use it.
  25053. if test "x${TONEZONE_DIR}" != "x"; then
  25054. TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
  25055. fi
  25056. TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
  25057. if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
  25058. TONEZONE_HEADER_FOUND="1"
  25059. else # check for the header
  25060. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25061. CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
  25062. ac_fn_c_check_header_mongrel "$LINENO" "dahdi/tonezone.h" "ac_cv_header_dahdi_tonezone_h" "$ac_includes_default"
  25063. if test "x$ac_cv_header_dahdi_tonezone_h" = xyes; then :
  25064. TONEZONE_HEADER_FOUND=1
  25065. else
  25066. TONEZONE_HEADER_FOUND=0
  25067. fi
  25068. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25069. fi
  25070. if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
  25071. TONEZONE_LIB=""
  25072. TONEZONE_INCLUDE=""
  25073. else
  25074. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25075. TONEZONE_LIB=""
  25076. fi
  25077. PBX_TONEZONE=1
  25078. cat >>confdefs.h <<_ACEOF
  25079. #define HAVE_TONEZONE 1
  25080. _ACEOF
  25081. fi
  25082. fi
  25083. fi
  25084. if test "x${PBX_UUID}" != "x1" -a "${USE_UUID}" != "no"; then
  25085. pbxlibdir=""
  25086. # if --with-UUID=DIR has been specified, use it.
  25087. if test "x${UUID_DIR}" != "x"; then
  25088. if test -d ${UUID_DIR}/lib; then
  25089. pbxlibdir="-L${UUID_DIR}/lib"
  25090. else
  25091. pbxlibdir="-L${UUID_DIR}"
  25092. fi
  25093. fi
  25094. pbxfuncname="uuid_generate_random"
  25095. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25096. AST_UUID_FOUND=yes
  25097. else
  25098. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25099. CFLAGS="${CFLAGS} "
  25100. as_ac_Lib=`$as_echo "ac_cv_lib_uuid_${pbxfuncname}" | $as_tr_sh`
  25101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -luuid" >&5
  25102. $as_echo_n "checking for ${pbxfuncname} in -luuid... " >&6; }
  25103. if eval \${$as_ac_Lib+:} false; then :
  25104. $as_echo_n "(cached) " >&6
  25105. else
  25106. ac_check_lib_save_LIBS=$LIBS
  25107. LIBS="-luuid ${pbxlibdir} $LIBS"
  25108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25109. /* end confdefs.h. */
  25110. /* Override any GCC internal prototype to avoid an error.
  25111. Use char because int might match the return type of a GCC
  25112. builtin and then its argument prototype would still apply. */
  25113. #ifdef __cplusplus
  25114. extern "C"
  25115. #endif
  25116. char ${pbxfuncname} ();
  25117. int
  25118. main ()
  25119. {
  25120. return ${pbxfuncname} ();
  25121. ;
  25122. return 0;
  25123. }
  25124. _ACEOF
  25125. if ac_fn_c_try_link "$LINENO"; then :
  25126. eval "$as_ac_Lib=yes"
  25127. else
  25128. eval "$as_ac_Lib=no"
  25129. fi
  25130. rm -f core conftest.err conftest.$ac_objext \
  25131. conftest$ac_exeext conftest.$ac_ext
  25132. LIBS=$ac_check_lib_save_LIBS
  25133. fi
  25134. eval ac_res=\$$as_ac_Lib
  25135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25136. $as_echo "$ac_res" >&6; }
  25137. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25138. AST_UUID_FOUND=yes
  25139. else
  25140. AST_UUID_FOUND=no
  25141. fi
  25142. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25143. fi
  25144. # now check for the header.
  25145. if test "${AST_UUID_FOUND}" = "yes"; then
  25146. UUID_LIB="${pbxlibdir} -luuid "
  25147. # if --with-UUID=DIR has been specified, use it.
  25148. if test "x${UUID_DIR}" != "x"; then
  25149. UUID_INCLUDE="-I${UUID_DIR}/include"
  25150. fi
  25151. UUID_INCLUDE="${UUID_INCLUDE} "
  25152. if test "xuuid/uuid.h" = "x" ; then # no header, assume found
  25153. UUID_HEADER_FOUND="1"
  25154. else # check for the header
  25155. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25156. CPPFLAGS="${CPPFLAGS} ${UUID_INCLUDE}"
  25157. ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  25158. if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
  25159. UUID_HEADER_FOUND=1
  25160. else
  25161. UUID_HEADER_FOUND=0
  25162. fi
  25163. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25164. fi
  25165. if test "x${UUID_HEADER_FOUND}" = "x0" ; then
  25166. UUID_LIB=""
  25167. UUID_INCLUDE=""
  25168. else
  25169. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25170. UUID_LIB=""
  25171. fi
  25172. PBX_UUID=1
  25173. cat >>confdefs.h <<_ACEOF
  25174. #define HAVE_UUID 1
  25175. _ACEOF
  25176. fi
  25177. fi
  25178. fi
  25179. if test "${OSARCH}" = "OpenBSD";
  25180. then
  25181. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  25182. pbxlibdir=""
  25183. # if --with-VORBIS=DIR has been specified, use it.
  25184. if test "x${VORBIS_DIR}" != "x"; then
  25185. if test -d ${VORBIS_DIR}/lib; then
  25186. pbxlibdir="-L${VORBIS_DIR}/lib"
  25187. else
  25188. pbxlibdir="-L${VORBIS_DIR}"
  25189. fi
  25190. fi
  25191. pbxfuncname="vorbis_info_init"
  25192. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25193. AST_VORBIS_FOUND=yes
  25194. else
  25195. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25196. CFLAGS="${CFLAGS} "
  25197. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  25198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
  25199. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  25200. if eval \${$as_ac_Lib+:} false; then :
  25201. $as_echo_n "(cached) " >&6
  25202. else
  25203. ac_check_lib_save_LIBS=$LIBS
  25204. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile -logg $LIBS"
  25205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25206. /* end confdefs.h. */
  25207. /* Override any GCC internal prototype to avoid an error.
  25208. Use char because int might match the return type of a GCC
  25209. builtin and then its argument prototype would still apply. */
  25210. #ifdef __cplusplus
  25211. extern "C"
  25212. #endif
  25213. char ${pbxfuncname} ();
  25214. int
  25215. main ()
  25216. {
  25217. return ${pbxfuncname} ();
  25218. ;
  25219. return 0;
  25220. }
  25221. _ACEOF
  25222. if ac_fn_c_try_link "$LINENO"; then :
  25223. eval "$as_ac_Lib=yes"
  25224. else
  25225. eval "$as_ac_Lib=no"
  25226. fi
  25227. rm -f core conftest.err conftest.$ac_objext \
  25228. conftest$ac_exeext conftest.$ac_ext
  25229. LIBS=$ac_check_lib_save_LIBS
  25230. fi
  25231. eval ac_res=\$$as_ac_Lib
  25232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25233. $as_echo "$ac_res" >&6; }
  25234. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25235. AST_VORBIS_FOUND=yes
  25236. else
  25237. AST_VORBIS_FOUND=no
  25238. fi
  25239. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25240. fi
  25241. # now check for the header.
  25242. if test "${AST_VORBIS_FOUND}" = "yes"; then
  25243. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile -logg"
  25244. # if --with-VORBIS=DIR has been specified, use it.
  25245. if test "x${VORBIS_DIR}" != "x"; then
  25246. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  25247. fi
  25248. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  25249. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  25250. VORBIS_HEADER_FOUND="1"
  25251. else # check for the header
  25252. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25253. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  25254. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  25255. if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
  25256. VORBIS_HEADER_FOUND=1
  25257. else
  25258. VORBIS_HEADER_FOUND=0
  25259. fi
  25260. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25261. fi
  25262. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  25263. VORBIS_LIB=""
  25264. VORBIS_INCLUDE=""
  25265. else
  25266. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25267. VORBIS_LIB=""
  25268. fi
  25269. PBX_VORBIS=1
  25270. cat >>confdefs.h <<_ACEOF
  25271. #define HAVE_VORBIS 1
  25272. _ACEOF
  25273. fi
  25274. fi
  25275. fi
  25276. else
  25277. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  25278. pbxlibdir=""
  25279. # if --with-VORBIS=DIR has been specified, use it.
  25280. if test "x${VORBIS_DIR}" != "x"; then
  25281. if test -d ${VORBIS_DIR}/lib; then
  25282. pbxlibdir="-L${VORBIS_DIR}/lib"
  25283. else
  25284. pbxlibdir="-L${VORBIS_DIR}"
  25285. fi
  25286. fi
  25287. pbxfuncname="vorbis_info_init"
  25288. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25289. AST_VORBIS_FOUND=yes
  25290. else
  25291. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25292. CFLAGS="${CFLAGS} "
  25293. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  25294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
  25295. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  25296. if eval \${$as_ac_Lib+:} false; then :
  25297. $as_echo_n "(cached) " >&6
  25298. else
  25299. ac_check_lib_save_LIBS=$LIBS
  25300. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile $LIBS"
  25301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25302. /* end confdefs.h. */
  25303. /* Override any GCC internal prototype to avoid an error.
  25304. Use char because int might match the return type of a GCC
  25305. builtin and then its argument prototype would still apply. */
  25306. #ifdef __cplusplus
  25307. extern "C"
  25308. #endif
  25309. char ${pbxfuncname} ();
  25310. int
  25311. main ()
  25312. {
  25313. return ${pbxfuncname} ();
  25314. ;
  25315. return 0;
  25316. }
  25317. _ACEOF
  25318. if ac_fn_c_try_link "$LINENO"; then :
  25319. eval "$as_ac_Lib=yes"
  25320. else
  25321. eval "$as_ac_Lib=no"
  25322. fi
  25323. rm -f core conftest.err conftest.$ac_objext \
  25324. conftest$ac_exeext conftest.$ac_ext
  25325. LIBS=$ac_check_lib_save_LIBS
  25326. fi
  25327. eval ac_res=\$$as_ac_Lib
  25328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25329. $as_echo "$ac_res" >&6; }
  25330. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25331. AST_VORBIS_FOUND=yes
  25332. else
  25333. AST_VORBIS_FOUND=no
  25334. fi
  25335. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25336. fi
  25337. # now check for the header.
  25338. if test "${AST_VORBIS_FOUND}" = "yes"; then
  25339. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile"
  25340. # if --with-VORBIS=DIR has been specified, use it.
  25341. if test "x${VORBIS_DIR}" != "x"; then
  25342. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  25343. fi
  25344. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  25345. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  25346. VORBIS_HEADER_FOUND="1"
  25347. else # check for the header
  25348. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25349. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  25350. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  25351. if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
  25352. VORBIS_HEADER_FOUND=1
  25353. else
  25354. VORBIS_HEADER_FOUND=0
  25355. fi
  25356. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25357. fi
  25358. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  25359. VORBIS_LIB=""
  25360. VORBIS_INCLUDE=""
  25361. else
  25362. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25363. VORBIS_LIB=""
  25364. fi
  25365. PBX_VORBIS=1
  25366. cat >>confdefs.h <<_ACEOF
  25367. #define HAVE_VORBIS 1
  25368. _ACEOF
  25369. fi
  25370. fi
  25371. fi
  25372. fi
  25373. if test "x${PBX_VORBIS_OPEN_CALLBACKS}" != "x1" -a "${USE_VORBIS_OPEN_CALLBACKS}" != "no"; then
  25374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h" >&5
  25375. $as_echo_n "checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h... " >&6; }
  25376. saved_cppflags="${CPPFLAGS}"
  25377. if test "x${VORBIS_OPEN_CALLBACKS_DIR}" != "x"; then
  25378. VORBIS_OPEN_CALLBACKS_INCLUDE="-I${VORBIS_OPEN_CALLBACKS_DIR}/include"
  25379. fi
  25380. CPPFLAGS="${CPPFLAGS} ${VORBIS_OPEN_CALLBACKS_INCLUDE}"
  25381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25382. /* end confdefs.h. */
  25383. #include <vorbis/vorbisfile.h>
  25384. int
  25385. main ()
  25386. {
  25387. #if !defined(OV_CALLBACKS_NOCLOSE)
  25388. (void) OV_CALLBACKS_NOCLOSE;
  25389. #endif
  25390. ;
  25391. return 0;
  25392. }
  25393. _ACEOF
  25394. if ac_fn_c_try_compile "$LINENO"; then :
  25395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25396. $as_echo "yes" >&6; }
  25397. PBX_VORBIS_OPEN_CALLBACKS=1
  25398. $as_echo "#define HAVE_VORBIS_OPEN_CALLBACKS 1" >>confdefs.h
  25399. else
  25400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25401. $as_echo "no" >&6; }
  25402. fi
  25403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25404. CPPFLAGS="${saved_cppflags}"
  25405. fi
  25406. ac_ext=cpp
  25407. ac_cpp='$CXXCPP $CPPFLAGS'
  25408. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25409. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25410. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25411. if test "${USE_VPB}" != "no"; then
  25412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpb_open in -lvpb" >&5
  25413. $as_echo_n "checking for vpb_open in -lvpb... " >&6; }
  25414. saved_libs="${LIBS}"
  25415. saved_cppflags="${CPPFLAGS}"
  25416. if test "x${VPB_DIR}" != "x"; then
  25417. if test -d ${VPB_DIR}/lib; then
  25418. vpblibdir=${VPB_DIR}/lib
  25419. else
  25420. vpblibdir=${VPB_DIR}
  25421. fi
  25422. LIBS="${LIBS} -L${vpblibdir}"
  25423. CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
  25424. fi
  25425. LIBS="${PTHREAD_LIBS} ${LIBS} -lvpb"
  25426. CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}"
  25427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25428. /* end confdefs.h. */
  25429. #include <vpbapi.h>
  25430. int
  25431. main ()
  25432. {
  25433. int q = vpb_open(0,0);
  25434. ;
  25435. return 0;
  25436. }
  25437. _ACEOF
  25438. if ac_fn_cxx_try_link "$LINENO"; then :
  25439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25440. $as_echo "yes" >&6; }
  25441. ac_cv_lib_vpb_vpb_open="yes"
  25442. else
  25443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25444. $as_echo "no" >&6; }
  25445. ac_cv_lib_vpb_vpb_open="no"
  25446. fi
  25447. rm -f core conftest.err conftest.$ac_objext \
  25448. conftest$ac_exeext conftest.$ac_ext
  25449. LIBS="${saved_libs}"
  25450. CPPFLAGS="${saved_cppflags}"
  25451. if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
  25452. VPB_LIB="-lvpb"
  25453. if test "${VPB_DIR}" != ""; then
  25454. VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
  25455. VPB_INCLUDE="-I${VPB_DIR}/include"
  25456. fi
  25457. PBX_VPB=1
  25458. $as_echo "#define HAVE_VPB 1" >>confdefs.h
  25459. fi
  25460. fi
  25461. ac_ext=c
  25462. ac_cpp='$CPP $CPPFLAGS'
  25463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25466. if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
  25467. pbxlibdir=""
  25468. # if --with-ZLIB=DIR has been specified, use it.
  25469. if test "x${ZLIB_DIR}" != "x"; then
  25470. if test -d ${ZLIB_DIR}/lib; then
  25471. pbxlibdir="-L${ZLIB_DIR}/lib"
  25472. else
  25473. pbxlibdir="-L${ZLIB_DIR}"
  25474. fi
  25475. fi
  25476. pbxfuncname="compress"
  25477. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25478. AST_ZLIB_FOUND=yes
  25479. else
  25480. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25481. CFLAGS="${CFLAGS} "
  25482. as_ac_Lib=`$as_echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
  25483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lz" >&5
  25484. $as_echo_n "checking for ${pbxfuncname} in -lz... " >&6; }
  25485. if eval \${$as_ac_Lib+:} false; then :
  25486. $as_echo_n "(cached) " >&6
  25487. else
  25488. ac_check_lib_save_LIBS=$LIBS
  25489. LIBS="-lz ${pbxlibdir} $LIBS"
  25490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25491. /* end confdefs.h. */
  25492. /* Override any GCC internal prototype to avoid an error.
  25493. Use char because int might match the return type of a GCC
  25494. builtin and then its argument prototype would still apply. */
  25495. #ifdef __cplusplus
  25496. extern "C"
  25497. #endif
  25498. char ${pbxfuncname} ();
  25499. int
  25500. main ()
  25501. {
  25502. return ${pbxfuncname} ();
  25503. ;
  25504. return 0;
  25505. }
  25506. _ACEOF
  25507. if ac_fn_c_try_link "$LINENO"; then :
  25508. eval "$as_ac_Lib=yes"
  25509. else
  25510. eval "$as_ac_Lib=no"
  25511. fi
  25512. rm -f core conftest.err conftest.$ac_objext \
  25513. conftest$ac_exeext conftest.$ac_ext
  25514. LIBS=$ac_check_lib_save_LIBS
  25515. fi
  25516. eval ac_res=\$$as_ac_Lib
  25517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25518. $as_echo "$ac_res" >&6; }
  25519. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25520. AST_ZLIB_FOUND=yes
  25521. else
  25522. AST_ZLIB_FOUND=no
  25523. fi
  25524. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25525. fi
  25526. # now check for the header.
  25527. if test "${AST_ZLIB_FOUND}" = "yes"; then
  25528. ZLIB_LIB="${pbxlibdir} -lz "
  25529. # if --with-ZLIB=DIR has been specified, use it.
  25530. if test "x${ZLIB_DIR}" != "x"; then
  25531. ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
  25532. fi
  25533. ZLIB_INCLUDE="${ZLIB_INCLUDE} "
  25534. if test "xzlib.h" = "x" ; then # no header, assume found
  25535. ZLIB_HEADER_FOUND="1"
  25536. else # check for the header
  25537. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25538. CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
  25539. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  25540. if test "x$ac_cv_header_zlib_h" = xyes; then :
  25541. ZLIB_HEADER_FOUND=1
  25542. else
  25543. ZLIB_HEADER_FOUND=0
  25544. fi
  25545. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25546. fi
  25547. if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
  25548. ZLIB_LIB=""
  25549. ZLIB_INCLUDE=""
  25550. else
  25551. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25552. ZLIB_LIB=""
  25553. fi
  25554. PBX_ZLIB=1
  25555. cat >>confdefs.h <<_ACEOF
  25556. #define HAVE_ZLIB 1
  25557. _ACEOF
  25558. fi
  25559. fi
  25560. fi
  25561. if test "x${PBX_UNIXODBC}" = "x1" -o "x${PBX_IODBC}" = "x1"; then
  25562. # Does ODBC support wide characters?
  25563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ODBC has support for Unicode types" >&5
  25564. $as_echo_n "checking whether ODBC has support for Unicode types... " >&6; }
  25565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25566. /* end confdefs.h. */
  25567. #include <sql.h>
  25568. #include <sqlext.h>
  25569. int
  25570. main ()
  25571. {
  25572. int foo = SQL_WCHAR
  25573. ;
  25574. return 0;
  25575. }
  25576. _ACEOF
  25577. if ac_fn_c_try_link "$LINENO"; then :
  25578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25579. $as_echo "yes" >&6; }
  25580. $as_echo "#define HAVE_ODBC_WCHAR 1" >>confdefs.h
  25581. else
  25582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25583. $as_echo "no" >&6; }
  25584. fi
  25585. rm -f core conftest.err conftest.$ac_objext \
  25586. conftest$ac_exeext conftest.$ac_ext
  25587. fi
  25588. ac_fn_c_check_header_mongrel "$LINENO" "h323.h" "ac_cv_header_h323_h" "$ac_includes_default"
  25589. if test "x$ac_cv_header_h323_h" = xyes; then :
  25590. PBX_H323=1
  25591. else
  25592. PBX_H323=0
  25593. fi
  25594. ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
  25595. if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
  25596. cat >>confdefs.h <<_ACEOF
  25597. #define HAVE_LINUX_COMPILER_H 1
  25598. _ACEOF
  25599. fi
  25600. ac_fn_c_check_header_compile "$LINENO" "linux/ixjuser.h" "ac_cv_header_linux_ixjuser_h" "
  25601. #include <linux/version.h>
  25602. #ifdef HAVE_LINUX_COMPILER_H
  25603. #include <linux/compiler.h>
  25604. #endif
  25605. "
  25606. if test "x$ac_cv_header_linux_ixjuser_h" = xyes; then :
  25607. PBX_IXJUSER=1
  25608. else
  25609. PBX_IXJUSER=0
  25610. fi
  25611. # Used in res/res_pktccops
  25612. if test "x${PBX_MSG_NOSIGNAL}" != "x1"; then
  25613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL in sys/socket.h" >&5
  25614. $as_echo_n "checking for MSG_NOSIGNAL in sys/socket.h... " >&6; }
  25615. saved_cppflags="${CPPFLAGS}"
  25616. if test "x${MSG_NOSIGNAL_DIR}" != "x"; then
  25617. MSG_NOSIGNAL_INCLUDE="-I${MSG_NOSIGNAL_DIR}/include"
  25618. fi
  25619. CPPFLAGS="${CPPFLAGS} ${MSG_NOSIGNAL_INCLUDE}"
  25620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25621. /* end confdefs.h. */
  25622. #include <sys/socket.h>
  25623. int
  25624. main ()
  25625. {
  25626. #if defined(MSG_NOSIGNAL)
  25627. int foo = 0;
  25628. #else
  25629. int foo = bar;
  25630. #endif
  25631. 0
  25632. ;
  25633. return 0;
  25634. }
  25635. _ACEOF
  25636. if ac_fn_c_try_compile "$LINENO"; then :
  25637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25638. $as_echo "yes" >&6; }
  25639. PBX_MSG_NOSIGNAL=1
  25640. $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
  25641. else
  25642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25643. $as_echo "no" >&6; }
  25644. fi
  25645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25646. CPPFLAGS="${saved_cppflags}"
  25647. fi
  25648. if test "x${PBX_SO_NOSIGPIPE}" != "x1"; then
  25649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE in sys/socket.h" >&5
  25650. $as_echo_n "checking for SO_NOSIGPIPE in sys/socket.h... " >&6; }
  25651. saved_cppflags="${CPPFLAGS}"
  25652. if test "x${SO_NOSIGPIPE_DIR}" != "x"; then
  25653. SO_NOSIGPIPE_INCLUDE="-I${SO_NOSIGPIPE_DIR}/include"
  25654. fi
  25655. CPPFLAGS="${CPPFLAGS} ${SO_NOSIGPIPE_INCLUDE}"
  25656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25657. /* end confdefs.h. */
  25658. #include <sys/socket.h>
  25659. int
  25660. main ()
  25661. {
  25662. #if defined(SO_NOSIGPIPE)
  25663. int foo = 0;
  25664. #else
  25665. int foo = bar;
  25666. #endif
  25667. 0
  25668. ;
  25669. return 0;
  25670. }
  25671. _ACEOF
  25672. if ac_fn_c_try_compile "$LINENO"; then :
  25673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25674. $as_echo "yes" >&6; }
  25675. PBX_SO_NOSIGPIPE=1
  25676. $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
  25677. else
  25678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25679. $as_echo "no" >&6; }
  25680. fi
  25681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25682. CPPFLAGS="${saved_cppflags}"
  25683. fi
  25684. if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
  25685. PBX_SDL=0
  25686. if test -n "$ac_tool_prefix"; then
  25687. # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
  25688. set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
  25689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25690. $as_echo_n "checking for $ac_word... " >&6; }
  25691. if ${ac_cv_path_CONFIG_SDL+:} false; then :
  25692. $as_echo_n "(cached) " >&6
  25693. else
  25694. case $CONFIG_SDL in
  25695. [\\/]* | ?:[\\/]*)
  25696. ac_cv_path_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test with a path.
  25697. ;;
  25698. *)
  25699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25700. as_dummy="${SDL_DIR}/bin:$PATH"
  25701. for as_dir in $as_dummy
  25702. do
  25703. IFS=$as_save_IFS
  25704. test -z "$as_dir" && as_dir=.
  25705. for ac_exec_ext in '' $ac_executable_extensions; do
  25706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25707. ac_cv_path_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  25708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25709. break 2
  25710. fi
  25711. done
  25712. done
  25713. IFS=$as_save_IFS
  25714. ;;
  25715. esac
  25716. fi
  25717. CONFIG_SDL=$ac_cv_path_CONFIG_SDL
  25718. if test -n "$CONFIG_SDL"; then
  25719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_SDL" >&5
  25720. $as_echo "$CONFIG_SDL" >&6; }
  25721. else
  25722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25723. $as_echo "no" >&6; }
  25724. fi
  25725. fi
  25726. if test -z "$ac_cv_path_CONFIG_SDL"; then
  25727. ac_pt_CONFIG_SDL=$CONFIG_SDL
  25728. # Extract the first word of "sdl-config", so it can be a program name with args.
  25729. set dummy sdl-config; ac_word=$2
  25730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25731. $as_echo_n "checking for $ac_word... " >&6; }
  25732. if ${ac_cv_path_ac_pt_CONFIG_SDL+:} false; then :
  25733. $as_echo_n "(cached) " >&6
  25734. else
  25735. case $ac_pt_CONFIG_SDL in
  25736. [\\/]* | ?:[\\/]*)
  25737. ac_cv_path_ac_pt_CONFIG_SDL="$ac_pt_CONFIG_SDL" # Let the user override the test with a path.
  25738. ;;
  25739. *)
  25740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25741. as_dummy="${SDL_DIR}/bin:$PATH"
  25742. for as_dir in $as_dummy
  25743. do
  25744. IFS=$as_save_IFS
  25745. test -z "$as_dir" && as_dir=.
  25746. for ac_exec_ext in '' $ac_executable_extensions; do
  25747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25748. ac_cv_path_ac_pt_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  25749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25750. break 2
  25751. fi
  25752. done
  25753. done
  25754. IFS=$as_save_IFS
  25755. ;;
  25756. esac
  25757. fi
  25758. ac_pt_CONFIG_SDL=$ac_cv_path_ac_pt_CONFIG_SDL
  25759. if test -n "$ac_pt_CONFIG_SDL"; then
  25760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_SDL" >&5
  25761. $as_echo "$ac_pt_CONFIG_SDL" >&6; }
  25762. else
  25763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25764. $as_echo "no" >&6; }
  25765. fi
  25766. if test "x$ac_pt_CONFIG_SDL" = x; then
  25767. CONFIG_SDL="No"
  25768. else
  25769. case $cross_compiling:$ac_tool_warned in
  25770. yes:)
  25771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25773. ac_tool_warned=yes ;;
  25774. esac
  25775. CONFIG_SDL=$ac_pt_CONFIG_SDL
  25776. fi
  25777. else
  25778. CONFIG_SDL="$ac_cv_path_CONFIG_SDL"
  25779. fi
  25780. if test ! "x${CONFIG_SDL}" = xNo; then
  25781. if test x"" = x ; then A=--cflags ; else A="" ; fi
  25782. SDL_INCLUDE=$(${CONFIG_SDL} $A)
  25783. SDL_INCLUDE=$(echo ${SDL_INCLUDE} | $SED -e "s|-I|-I${SDL_DIR}|g")
  25784. if test x"" = x ; then A=--libs ; else A="" ; fi
  25785. SDL_LIB=$(${CONFIG_SDL} $A)
  25786. SDL_LIB=$(echo ${SDL_LIB} | $SED -e "s|-L|-L${SDL_DIR}|g")
  25787. if test x"" != x ; then
  25788. saved_cppflags="${CPPFLAGS}"
  25789. CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
  25790. saved_libs="${LIBS}"
  25791. LIBS=${SDL_LIB}
  25792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25793. /* end confdefs.h. */
  25794. int
  25795. main ()
  25796. {
  25797. ;
  25798. ;
  25799. return 0;
  25800. }
  25801. _ACEOF
  25802. if ac_fn_c_try_link "$LINENO"; then :
  25803. PBX_SDL=1
  25804. $as_echo "#define HAVE_SDL 1" >>confdefs.h
  25805. fi
  25806. rm -f core conftest.err conftest.$ac_objext \
  25807. conftest$ac_exeext conftest.$ac_ext
  25808. CPPFLAGS="${saved_cppflags}"
  25809. LIBS="${saved_libs}"
  25810. else
  25811. PBX_SDL=1
  25812. $as_echo "#define HAVE_SDL 1" >>confdefs.h
  25813. fi
  25814. fi
  25815. fi
  25816. if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
  25817. pbxlibdir=""
  25818. # if --with-SDL_IMAGE=DIR has been specified, use it.
  25819. if test "x${SDL_IMAGE_DIR}" != "x"; then
  25820. if test -d ${SDL_IMAGE_DIR}/lib; then
  25821. pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
  25822. else
  25823. pbxlibdir="-L${SDL_IMAGE_DIR}"
  25824. fi
  25825. fi
  25826. pbxfuncname="IMG_Load"
  25827. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25828. AST_SDL_IMAGE_FOUND=yes
  25829. else
  25830. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25831. CFLAGS="${CFLAGS} ${SDL_INCLUDE}"
  25832. as_ac_Lib=`$as_echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
  25833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lSDL_image" >&5
  25834. $as_echo_n "checking for ${pbxfuncname} in -lSDL_image... " >&6; }
  25835. if eval \${$as_ac_Lib+:} false; then :
  25836. $as_echo_n "(cached) " >&6
  25837. else
  25838. ac_check_lib_save_LIBS=$LIBS
  25839. LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
  25840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25841. /* end confdefs.h. */
  25842. /* Override any GCC internal prototype to avoid an error.
  25843. Use char because int might match the return type of a GCC
  25844. builtin and then its argument prototype would still apply. */
  25845. #ifdef __cplusplus
  25846. extern "C"
  25847. #endif
  25848. char ${pbxfuncname} ();
  25849. int
  25850. main ()
  25851. {
  25852. return ${pbxfuncname} ();
  25853. ;
  25854. return 0;
  25855. }
  25856. _ACEOF
  25857. if ac_fn_c_try_link "$LINENO"; then :
  25858. eval "$as_ac_Lib=yes"
  25859. else
  25860. eval "$as_ac_Lib=no"
  25861. fi
  25862. rm -f core conftest.err conftest.$ac_objext \
  25863. conftest$ac_exeext conftest.$ac_ext
  25864. LIBS=$ac_check_lib_save_LIBS
  25865. fi
  25866. eval ac_res=\$$as_ac_Lib
  25867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25868. $as_echo "$ac_res" >&6; }
  25869. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25870. AST_SDL_IMAGE_FOUND=yes
  25871. else
  25872. AST_SDL_IMAGE_FOUND=no
  25873. fi
  25874. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25875. fi
  25876. # now check for the header.
  25877. if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
  25878. SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
  25879. # if --with-SDL_IMAGE=DIR has been specified, use it.
  25880. if test "x${SDL_IMAGE_DIR}" != "x"; then
  25881. SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
  25882. fi
  25883. SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
  25884. if test "xSDL_image.h" = "x" ; then # no header, assume found
  25885. SDL_IMAGE_HEADER_FOUND="1"
  25886. else # check for the header
  25887. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25888. CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
  25889. ac_fn_c_check_header_mongrel "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default"
  25890. if test "x$ac_cv_header_SDL_image_h" = xyes; then :
  25891. SDL_IMAGE_HEADER_FOUND=1
  25892. else
  25893. SDL_IMAGE_HEADER_FOUND=0
  25894. fi
  25895. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25896. fi
  25897. if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
  25898. SDL_IMAGE_LIB=""
  25899. SDL_IMAGE_INCLUDE=""
  25900. else
  25901. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25902. SDL_IMAGE_LIB=""
  25903. fi
  25904. PBX_SDL_IMAGE=1
  25905. cat >>confdefs.h <<_ACEOF
  25906. #define HAVE_SDL_IMAGE 1
  25907. _ACEOF
  25908. fi
  25909. fi
  25910. fi
  25911. if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
  25912. pbxlibdir=""
  25913. # if --with-FFMPEG=DIR has been specified, use it.
  25914. if test "x${FFMPEG_DIR}" != "x"; then
  25915. if test -d ${FFMPEG_DIR}/lib; then
  25916. pbxlibdir="-L${FFMPEG_DIR}/lib"
  25917. else
  25918. pbxlibdir="-L${FFMPEG_DIR}"
  25919. fi
  25920. fi
  25921. pbxfuncname="sws_getContext"
  25922. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25923. AST_FFMPEG_FOUND=yes
  25924. else
  25925. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25926. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  25927. as_ac_Lib=`$as_echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
  25928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lavcodec" >&5
  25929. $as_echo_n "checking for ${pbxfuncname} in -lavcodec... " >&6; }
  25930. if eval \${$as_ac_Lib+:} false; then :
  25931. $as_echo_n "(cached) " >&6
  25932. else
  25933. ac_check_lib_save_LIBS=$LIBS
  25934. LIBS="-lavcodec ${pbxlibdir} ${PTHREAD_LIBS} -lz -lm $LIBS"
  25935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25936. /* end confdefs.h. */
  25937. /* Override any GCC internal prototype to avoid an error.
  25938. Use char because int might match the return type of a GCC
  25939. builtin and then its argument prototype would still apply. */
  25940. #ifdef __cplusplus
  25941. extern "C"
  25942. #endif
  25943. char ${pbxfuncname} ();
  25944. int
  25945. main ()
  25946. {
  25947. return ${pbxfuncname} ();
  25948. ;
  25949. return 0;
  25950. }
  25951. _ACEOF
  25952. if ac_fn_c_try_link "$LINENO"; then :
  25953. eval "$as_ac_Lib=yes"
  25954. else
  25955. eval "$as_ac_Lib=no"
  25956. fi
  25957. rm -f core conftest.err conftest.$ac_objext \
  25958. conftest$ac_exeext conftest.$ac_ext
  25959. LIBS=$ac_check_lib_save_LIBS
  25960. fi
  25961. eval ac_res=\$$as_ac_Lib
  25962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25963. $as_echo "$ac_res" >&6; }
  25964. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25965. AST_FFMPEG_FOUND=yes
  25966. else
  25967. AST_FFMPEG_FOUND=no
  25968. fi
  25969. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25970. fi
  25971. # now check for the header.
  25972. if test "${AST_FFMPEG_FOUND}" = "yes"; then
  25973. FFMPEG_LIB="${pbxlibdir} -lavcodec ${PTHREAD_LIBS} -lz -lm"
  25974. # if --with-FFMPEG=DIR has been specified, use it.
  25975. if test "x${FFMPEG_DIR}" != "x"; then
  25976. FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
  25977. fi
  25978. FFMPEG_INCLUDE="${FFMPEG_INCLUDE} ${PTHREAD_CFLAGS}"
  25979. if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
  25980. FFMPEG_HEADER_FOUND="1"
  25981. else # check for the header
  25982. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25983. CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
  25984. ac_fn_c_check_header_mongrel "$LINENO" "ffmpeg/avcodec.h" "ac_cv_header_ffmpeg_avcodec_h" "$ac_includes_default"
  25985. if test "x$ac_cv_header_ffmpeg_avcodec_h" = xyes; then :
  25986. FFMPEG_HEADER_FOUND=1
  25987. else
  25988. FFMPEG_HEADER_FOUND=0
  25989. fi
  25990. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25991. fi
  25992. if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
  25993. FFMPEG_LIB=""
  25994. FFMPEG_INCLUDE=""
  25995. else
  25996. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25997. FFMPEG_LIB=""
  25998. fi
  25999. PBX_FFMPEG=1
  26000. cat >>confdefs.h <<_ACEOF
  26001. #define HAVE_FFMPEG 1
  26002. _ACEOF
  26003. fi
  26004. fi
  26005. fi
  26006. # possible places for video4linux version 1
  26007. ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
  26008. if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
  26009. cat >>confdefs.h <<_ACEOF
  26010. #define HAVE_VIDEODEV_H 1
  26011. _ACEOF
  26012. fi
  26013. # possible places for X11
  26014. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  26015. pbxlibdir=""
  26016. # if --with-X11=DIR has been specified, use it.
  26017. if test "x${X11_DIR}" != "x"; then
  26018. if test -d ${X11_DIR}/lib; then
  26019. pbxlibdir="-L${X11_DIR}/lib"
  26020. else
  26021. pbxlibdir="-L${X11_DIR}"
  26022. fi
  26023. fi
  26024. pbxfuncname="XOpenDisplay"
  26025. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26026. AST_X11_FOUND=yes
  26027. else
  26028. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26029. CFLAGS="${CFLAGS} "
  26030. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  26031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
  26032. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  26033. if eval \${$as_ac_Lib+:} false; then :
  26034. $as_echo_n "(cached) " >&6
  26035. else
  26036. ac_check_lib_save_LIBS=$LIBS
  26037. LIBS="-lX11 ${pbxlibdir} $LIBS"
  26038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26039. /* end confdefs.h. */
  26040. /* Override any GCC internal prototype to avoid an error.
  26041. Use char because int might match the return type of a GCC
  26042. builtin and then its argument prototype would still apply. */
  26043. #ifdef __cplusplus
  26044. extern "C"
  26045. #endif
  26046. char ${pbxfuncname} ();
  26047. int
  26048. main ()
  26049. {
  26050. return ${pbxfuncname} ();
  26051. ;
  26052. return 0;
  26053. }
  26054. _ACEOF
  26055. if ac_fn_c_try_link "$LINENO"; then :
  26056. eval "$as_ac_Lib=yes"
  26057. else
  26058. eval "$as_ac_Lib=no"
  26059. fi
  26060. rm -f core conftest.err conftest.$ac_objext \
  26061. conftest$ac_exeext conftest.$ac_ext
  26062. LIBS=$ac_check_lib_save_LIBS
  26063. fi
  26064. eval ac_res=\$$as_ac_Lib
  26065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26066. $as_echo "$ac_res" >&6; }
  26067. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26068. AST_X11_FOUND=yes
  26069. else
  26070. AST_X11_FOUND=no
  26071. fi
  26072. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26073. fi
  26074. # now check for the header.
  26075. if test "${AST_X11_FOUND}" = "yes"; then
  26076. X11_LIB="${pbxlibdir} -lX11 "
  26077. # if --with-X11=DIR has been specified, use it.
  26078. if test "x${X11_DIR}" != "x"; then
  26079. X11_INCLUDE="-I${X11_DIR}/include"
  26080. fi
  26081. X11_INCLUDE="${X11_INCLUDE} "
  26082. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  26083. X11_HEADER_FOUND="1"
  26084. else # check for the header
  26085. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26086. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  26087. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  26088. if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
  26089. X11_HEADER_FOUND=1
  26090. else
  26091. X11_HEADER_FOUND=0
  26092. fi
  26093. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26094. fi
  26095. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  26096. X11_LIB=""
  26097. X11_INCLUDE=""
  26098. else
  26099. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26100. X11_LIB=""
  26101. fi
  26102. PBX_X11=1
  26103. cat >>confdefs.h <<_ACEOF
  26104. #define HAVE_X11 1
  26105. _ACEOF
  26106. cat >>confdefs.h <<_ACEOF
  26107. #define HAVE_X11_VERSION standard_path
  26108. _ACEOF
  26109. fi
  26110. fi
  26111. fi
  26112. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  26113. pbxlibdir=""
  26114. # if --with-X11=DIR has been specified, use it.
  26115. if test "x${X11_DIR}" != "x"; then
  26116. if test -d ${X11_DIR}/lib; then
  26117. pbxlibdir="-L${X11_DIR}/lib"
  26118. else
  26119. pbxlibdir="-L${X11_DIR}"
  26120. fi
  26121. fi
  26122. pbxfuncname="XOpenDisplay"
  26123. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26124. AST_X11_FOUND=yes
  26125. else
  26126. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26127. CFLAGS="${CFLAGS} -I/usr/X11R6/include"
  26128. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  26129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
  26130. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  26131. if eval \${$as_ac_Lib+:} false; then :
  26132. $as_echo_n "(cached) " >&6
  26133. else
  26134. ac_check_lib_save_LIBS=$LIBS
  26135. LIBS="-lX11 ${pbxlibdir} $LIBS"
  26136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26137. /* end confdefs.h. */
  26138. /* Override any GCC internal prototype to avoid an error.
  26139. Use char because int might match the return type of a GCC
  26140. builtin and then its argument prototype would still apply. */
  26141. #ifdef __cplusplus
  26142. extern "C"
  26143. #endif
  26144. char ${pbxfuncname} ();
  26145. int
  26146. main ()
  26147. {
  26148. return ${pbxfuncname} ();
  26149. ;
  26150. return 0;
  26151. }
  26152. _ACEOF
  26153. if ac_fn_c_try_link "$LINENO"; then :
  26154. eval "$as_ac_Lib=yes"
  26155. else
  26156. eval "$as_ac_Lib=no"
  26157. fi
  26158. rm -f core conftest.err conftest.$ac_objext \
  26159. conftest$ac_exeext conftest.$ac_ext
  26160. LIBS=$ac_check_lib_save_LIBS
  26161. fi
  26162. eval ac_res=\$$as_ac_Lib
  26163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26164. $as_echo "$ac_res" >&6; }
  26165. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26166. AST_X11_FOUND=yes
  26167. else
  26168. AST_X11_FOUND=no
  26169. fi
  26170. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26171. fi
  26172. # now check for the header.
  26173. if test "${AST_X11_FOUND}" = "yes"; then
  26174. X11_LIB="${pbxlibdir} -lX11 "
  26175. # if --with-X11=DIR has been specified, use it.
  26176. if test "x${X11_DIR}" != "x"; then
  26177. X11_INCLUDE="-I${X11_DIR}/include"
  26178. fi
  26179. X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
  26180. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  26181. X11_HEADER_FOUND="1"
  26182. else # check for the header
  26183. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26184. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  26185. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  26186. if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
  26187. X11_HEADER_FOUND=1
  26188. else
  26189. X11_HEADER_FOUND=0
  26190. fi
  26191. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26192. fi
  26193. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  26194. X11_LIB=""
  26195. X11_INCLUDE=""
  26196. else
  26197. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26198. X11_LIB=""
  26199. fi
  26200. PBX_X11=1
  26201. cat >>confdefs.h <<_ACEOF
  26202. #define HAVE_X11 1
  26203. _ACEOF
  26204. cat >>confdefs.h <<_ACEOF
  26205. #define HAVE_X11_VERSION X11R6
  26206. _ACEOF
  26207. fi
  26208. fi
  26209. fi
  26210. PBX_LAUNCHD=0
  26211. if test "${cross_compiling}" = "no";
  26212. then
  26213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /sbin/launchd" >&5
  26214. $as_echo_n "checking for /sbin/launchd... " >&6; }
  26215. if ${ac_cv_file__sbin_launchd+:} false; then :
  26216. $as_echo_n "(cached) " >&6
  26217. else
  26218. test "$cross_compiling" = yes &&
  26219. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  26220. if test -r "/sbin/launchd"; then
  26221. ac_cv_file__sbin_launchd=yes
  26222. else
  26223. ac_cv_file__sbin_launchd=no
  26224. fi
  26225. fi
  26226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__sbin_launchd" >&5
  26227. $as_echo "$ac_cv_file__sbin_launchd" >&6; }
  26228. if test "x$ac_cv_file__sbin_launchd" = xyes; then :
  26229. $as_echo "#define HAVE_SBIN_LAUNCHD 1" >>confdefs.h
  26230. fi
  26231. if test "${HAVE_SBIN_LAUNCHD}" = 1; then
  26232. PBX_LAUNCHD=1
  26233. fi
  26234. fi
  26235. if test "x${PBX_GTK2}" != "x1" -a "${USE_GTK2}" != "no"; then
  26236. pkg_failed=no
  26237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
  26238. $as_echo_n "checking for GTK2... " >&6; }
  26239. if test -n "$GTK2_CFLAGS"; then
  26240. pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
  26241. elif test -n "$PKG_CONFIG"; then
  26242. if test -n "$PKG_CONFIG" && \
  26243. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  26244. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  26245. ac_status=$?
  26246. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26247. test $ac_status = 0; }; then
  26248. pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  26249. test "x$?" != "x0" && pkg_failed=yes
  26250. else
  26251. pkg_failed=yes
  26252. fi
  26253. else
  26254. pkg_failed=untried
  26255. fi
  26256. if test -n "$GTK2_LIBS"; then
  26257. pkg_cv_GTK2_LIBS="$GTK2_LIBS"
  26258. elif test -n "$PKG_CONFIG"; then
  26259. if test -n "$PKG_CONFIG" && \
  26260. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  26261. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  26262. ac_status=$?
  26263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26264. test $ac_status = 0; }; then
  26265. pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  26266. test "x$?" != "x0" && pkg_failed=yes
  26267. else
  26268. pkg_failed=yes
  26269. fi
  26270. else
  26271. pkg_failed=untried
  26272. fi
  26273. if test $pkg_failed = yes; then
  26274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26275. $as_echo "no" >&6; }
  26276. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  26277. _pkg_short_errors_supported=yes
  26278. else
  26279. _pkg_short_errors_supported=no
  26280. fi
  26281. if test $_pkg_short_errors_supported = yes; then
  26282. GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  26283. else
  26284. GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  26285. fi
  26286. # Put the nasty error message in config.log where it belongs
  26287. echo "$GTK2_PKG_ERRORS" >&5
  26288. PBX_GTK2=0
  26289. elif test $pkg_failed = untried; then
  26290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26291. $as_echo "no" >&6; }
  26292. PBX_GTK2=0
  26293. else
  26294. GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
  26295. GTK2_LIBS=$pkg_cv_GTK2_LIBS
  26296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26297. $as_echo "yes" >&6; }
  26298. PBX_GTK2=1
  26299. GTK2_INCLUDE="$GTK2_CFLAGS"
  26300. GTK2_LIB="$GTK2_LIBS"
  26301. $as_echo "#define HAVE_GTK2 1" >>confdefs.h
  26302. fi
  26303. fi
  26304. # build a GENERIC_ODBC result based on the presence of either UnixODBC (preferred)
  26305. # or iODBC
  26306. PBX_GENERIC_ODBC=0
  26307. if test "${PBX_UNIXODBC}" = 1; then
  26308. PBX_GENERIC_ODBC=1
  26309. GENERIC_ODBC_LIB="${UNIXODBC_LIB}"
  26310. GENERIC_ODBC_INCLUDE="${UNIXODBC_INCLUDE}"
  26311. elif test "${PBX_IODBC}" = 1; then
  26312. PBX_GENERIC_ODBC=1
  26313. GENERIC_ODBC_LIB="${IODBC_LIB}"
  26314. GENERIC_ODBC_INCLUDE="${IODBC_INCLUDE}"
  26315. fi
  26316. PBX_SYSLOG=0
  26317. if test "${ac_cv_header_syslog_h}" = "yes"; then
  26318. # syslog facilities
  26319. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTH}" != "x1"; then
  26320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTH in syslog.h" >&5
  26321. $as_echo_n "checking for LOG_AUTH in syslog.h... " >&6; }
  26322. saved_cppflags="${CPPFLAGS}"
  26323. if test "x${SYSLOG_FACILITY_LOG_AUTH_DIR}" != "x"; then
  26324. SYSLOG_FACILITY_LOG_AUTH_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTH_DIR}/include"
  26325. fi
  26326. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTH_INCLUDE}"
  26327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26328. /* end confdefs.h. */
  26329. #include <syslog.h>
  26330. int
  26331. main ()
  26332. {
  26333. #if defined(LOG_AUTH)
  26334. int foo = 0;
  26335. #else
  26336. int foo = bar;
  26337. #endif
  26338. 0
  26339. ;
  26340. return 0;
  26341. }
  26342. _ACEOF
  26343. if ac_fn_c_try_compile "$LINENO"; then :
  26344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26345. $as_echo "yes" >&6; }
  26346. PBX_SYSLOG_FACILITY_LOG_AUTH=1
  26347. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTH 1" >>confdefs.h
  26348. else
  26349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26350. $as_echo "no" >&6; }
  26351. fi
  26352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26353. CPPFLAGS="${saved_cppflags}"
  26354. fi
  26355. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTHPRIV}" != "x1"; then
  26356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTHPRIV in syslog.h" >&5
  26357. $as_echo_n "checking for LOG_AUTHPRIV in syslog.h... " >&6; }
  26358. saved_cppflags="${CPPFLAGS}"
  26359. if test "x${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}" != "x"; then
  26360. SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}/include"
  26361. fi
  26362. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE}"
  26363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26364. /* end confdefs.h. */
  26365. #include <syslog.h>
  26366. int
  26367. main ()
  26368. {
  26369. #if defined(LOG_AUTHPRIV)
  26370. int foo = 0;
  26371. #else
  26372. int foo = bar;
  26373. #endif
  26374. 0
  26375. ;
  26376. return 0;
  26377. }
  26378. _ACEOF
  26379. if ac_fn_c_try_compile "$LINENO"; then :
  26380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26381. $as_echo "yes" >&6; }
  26382. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV=1
  26383. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTHPRIV 1" >>confdefs.h
  26384. else
  26385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26386. $as_echo "no" >&6; }
  26387. fi
  26388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26389. CPPFLAGS="${saved_cppflags}"
  26390. fi
  26391. if test "x${PBX_SYSLOG_FACILITY_LOG_CRON}" != "x1"; then
  26392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_CRON in syslog.h" >&5
  26393. $as_echo_n "checking for LOG_CRON in syslog.h... " >&6; }
  26394. saved_cppflags="${CPPFLAGS}"
  26395. if test "x${SYSLOG_FACILITY_LOG_CRON_DIR}" != "x"; then
  26396. SYSLOG_FACILITY_LOG_CRON_INCLUDE="-I${SYSLOG_FACILITY_LOG_CRON_DIR}/include"
  26397. fi
  26398. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_CRON_INCLUDE}"
  26399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26400. /* end confdefs.h. */
  26401. #include <syslog.h>
  26402. int
  26403. main ()
  26404. {
  26405. #if defined(LOG_CRON)
  26406. int foo = 0;
  26407. #else
  26408. int foo = bar;
  26409. #endif
  26410. 0
  26411. ;
  26412. return 0;
  26413. }
  26414. _ACEOF
  26415. if ac_fn_c_try_compile "$LINENO"; then :
  26416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26417. $as_echo "yes" >&6; }
  26418. PBX_SYSLOG_FACILITY_LOG_CRON=1
  26419. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_CRON 1" >>confdefs.h
  26420. else
  26421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26422. $as_echo "no" >&6; }
  26423. fi
  26424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26425. CPPFLAGS="${saved_cppflags}"
  26426. fi
  26427. if test "x${PBX_SYSLOG_FACILITY_LOG_DAEMON}" != "x1"; then
  26428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_DAEMON in syslog.h" >&5
  26429. $as_echo_n "checking for LOG_DAEMON in syslog.h... " >&6; }
  26430. saved_cppflags="${CPPFLAGS}"
  26431. if test "x${SYSLOG_FACILITY_LOG_DAEMON_DIR}" != "x"; then
  26432. SYSLOG_FACILITY_LOG_DAEMON_INCLUDE="-I${SYSLOG_FACILITY_LOG_DAEMON_DIR}/include"
  26433. fi
  26434. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_DAEMON_INCLUDE}"
  26435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26436. /* end confdefs.h. */
  26437. #include <syslog.h>
  26438. int
  26439. main ()
  26440. {
  26441. #if defined(LOG_DAEMON)
  26442. int foo = 0;
  26443. #else
  26444. int foo = bar;
  26445. #endif
  26446. 0
  26447. ;
  26448. return 0;
  26449. }
  26450. _ACEOF
  26451. if ac_fn_c_try_compile "$LINENO"; then :
  26452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26453. $as_echo "yes" >&6; }
  26454. PBX_SYSLOG_FACILITY_LOG_DAEMON=1
  26455. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_DAEMON 1" >>confdefs.h
  26456. else
  26457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26458. $as_echo "no" >&6; }
  26459. fi
  26460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26461. CPPFLAGS="${saved_cppflags}"
  26462. fi
  26463. if test "x${PBX_SYSLOG_FACILITY_LOG_FTP}" != "x1"; then
  26464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_FTP in syslog.h" >&5
  26465. $as_echo_n "checking for LOG_FTP in syslog.h... " >&6; }
  26466. saved_cppflags="${CPPFLAGS}"
  26467. if test "x${SYSLOG_FACILITY_LOG_FTP_DIR}" != "x"; then
  26468. SYSLOG_FACILITY_LOG_FTP_INCLUDE="-I${SYSLOG_FACILITY_LOG_FTP_DIR}/include"
  26469. fi
  26470. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_FTP_INCLUDE}"
  26471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26472. /* end confdefs.h. */
  26473. #include <syslog.h>
  26474. int
  26475. main ()
  26476. {
  26477. #if defined(LOG_FTP)
  26478. int foo = 0;
  26479. #else
  26480. int foo = bar;
  26481. #endif
  26482. 0
  26483. ;
  26484. return 0;
  26485. }
  26486. _ACEOF
  26487. if ac_fn_c_try_compile "$LINENO"; then :
  26488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26489. $as_echo "yes" >&6; }
  26490. PBX_SYSLOG_FACILITY_LOG_FTP=1
  26491. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_FTP 1" >>confdefs.h
  26492. else
  26493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26494. $as_echo "no" >&6; }
  26495. fi
  26496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26497. CPPFLAGS="${saved_cppflags}"
  26498. fi
  26499. if test "x${PBX_SYSLOG_FACILITY_LOG_KERN}" != "x1"; then
  26500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_KERN in syslog.h" >&5
  26501. $as_echo_n "checking for LOG_KERN in syslog.h... " >&6; }
  26502. saved_cppflags="${CPPFLAGS}"
  26503. if test "x${SYSLOG_FACILITY_LOG_KERN_DIR}" != "x"; then
  26504. SYSLOG_FACILITY_LOG_KERN_INCLUDE="-I${SYSLOG_FACILITY_LOG_KERN_DIR}/include"
  26505. fi
  26506. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_KERN_INCLUDE}"
  26507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26508. /* end confdefs.h. */
  26509. #include <syslog.h>
  26510. int
  26511. main ()
  26512. {
  26513. #if defined(LOG_KERN)
  26514. int foo = 0;
  26515. #else
  26516. int foo = bar;
  26517. #endif
  26518. 0
  26519. ;
  26520. return 0;
  26521. }
  26522. _ACEOF
  26523. if ac_fn_c_try_compile "$LINENO"; then :
  26524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26525. $as_echo "yes" >&6; }
  26526. PBX_SYSLOG_FACILITY_LOG_KERN=1
  26527. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_KERN 1" >>confdefs.h
  26528. else
  26529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26530. $as_echo "no" >&6; }
  26531. fi
  26532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26533. CPPFLAGS="${saved_cppflags}"
  26534. fi
  26535. if test "x${PBX_SYSLOG_FACILITY_LOG_LPR}" != "x1"; then
  26536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_LPR in syslog.h" >&5
  26537. $as_echo_n "checking for LOG_LPR in syslog.h... " >&6; }
  26538. saved_cppflags="${CPPFLAGS}"
  26539. if test "x${SYSLOG_FACILITY_LOG_LPR_DIR}" != "x"; then
  26540. SYSLOG_FACILITY_LOG_LPR_INCLUDE="-I${SYSLOG_FACILITY_LOG_LPR_DIR}/include"
  26541. fi
  26542. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_LPR_INCLUDE}"
  26543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26544. /* end confdefs.h. */
  26545. #include <syslog.h>
  26546. int
  26547. main ()
  26548. {
  26549. #if defined(LOG_LPR)
  26550. int foo = 0;
  26551. #else
  26552. int foo = bar;
  26553. #endif
  26554. 0
  26555. ;
  26556. return 0;
  26557. }
  26558. _ACEOF
  26559. if ac_fn_c_try_compile "$LINENO"; then :
  26560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26561. $as_echo "yes" >&6; }
  26562. PBX_SYSLOG_FACILITY_LOG_LPR=1
  26563. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_LPR 1" >>confdefs.h
  26564. else
  26565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26566. $as_echo "no" >&6; }
  26567. fi
  26568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26569. CPPFLAGS="${saved_cppflags}"
  26570. fi
  26571. if test "x${PBX_SYSLOG_FACILITY_LOG_MAIL}" != "x1"; then
  26572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_MAIL in syslog.h" >&5
  26573. $as_echo_n "checking for LOG_MAIL in syslog.h... " >&6; }
  26574. saved_cppflags="${CPPFLAGS}"
  26575. if test "x${SYSLOG_FACILITY_LOG_MAIL_DIR}" != "x"; then
  26576. SYSLOG_FACILITY_LOG_MAIL_INCLUDE="-I${SYSLOG_FACILITY_LOG_MAIL_DIR}/include"
  26577. fi
  26578. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_MAIL_INCLUDE}"
  26579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26580. /* end confdefs.h. */
  26581. #include <syslog.h>
  26582. int
  26583. main ()
  26584. {
  26585. #if defined(LOG_MAIL)
  26586. int foo = 0;
  26587. #else
  26588. int foo = bar;
  26589. #endif
  26590. 0
  26591. ;
  26592. return 0;
  26593. }
  26594. _ACEOF
  26595. if ac_fn_c_try_compile "$LINENO"; then :
  26596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26597. $as_echo "yes" >&6; }
  26598. PBX_SYSLOG_FACILITY_LOG_MAIL=1
  26599. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_MAIL 1" >>confdefs.h
  26600. else
  26601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26602. $as_echo "no" >&6; }
  26603. fi
  26604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26605. CPPFLAGS="${saved_cppflags}"
  26606. fi
  26607. if test "x${PBX_SYSLOG_FACILITY_LOG_NEWS}" != "x1"; then
  26608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_NEWS in syslog.h" >&5
  26609. $as_echo_n "checking for LOG_NEWS in syslog.h... " >&6; }
  26610. saved_cppflags="${CPPFLAGS}"
  26611. if test "x${SYSLOG_FACILITY_LOG_NEWS_DIR}" != "x"; then
  26612. SYSLOG_FACILITY_LOG_NEWS_INCLUDE="-I${SYSLOG_FACILITY_LOG_NEWS_DIR}/include"
  26613. fi
  26614. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_NEWS_INCLUDE}"
  26615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26616. /* end confdefs.h. */
  26617. #include <syslog.h>
  26618. int
  26619. main ()
  26620. {
  26621. #if defined(LOG_NEWS)
  26622. int foo = 0;
  26623. #else
  26624. int foo = bar;
  26625. #endif
  26626. 0
  26627. ;
  26628. return 0;
  26629. }
  26630. _ACEOF
  26631. if ac_fn_c_try_compile "$LINENO"; then :
  26632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26633. $as_echo "yes" >&6; }
  26634. PBX_SYSLOG_FACILITY_LOG_NEWS=1
  26635. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_NEWS 1" >>confdefs.h
  26636. else
  26637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26638. $as_echo "no" >&6; }
  26639. fi
  26640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26641. CPPFLAGS="${saved_cppflags}"
  26642. fi
  26643. if test "x${PBX_SYSLOG_FACILITY_LOG_SYSLOG}" != "x1"; then
  26644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_SYSLOG in syslog.h" >&5
  26645. $as_echo_n "checking for LOG_SYSLOG in syslog.h... " >&6; }
  26646. saved_cppflags="${CPPFLAGS}"
  26647. if test "x${SYSLOG_FACILITY_LOG_SYSLOG_DIR}" != "x"; then
  26648. SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE="-I${SYSLOG_FACILITY_LOG_SYSLOG_DIR}/include"
  26649. fi
  26650. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE}"
  26651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26652. /* end confdefs.h. */
  26653. #include <syslog.h>
  26654. int
  26655. main ()
  26656. {
  26657. #if defined(LOG_SYSLOG)
  26658. int foo = 0;
  26659. #else
  26660. int foo = bar;
  26661. #endif
  26662. 0
  26663. ;
  26664. return 0;
  26665. }
  26666. _ACEOF
  26667. if ac_fn_c_try_compile "$LINENO"; then :
  26668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26669. $as_echo "yes" >&6; }
  26670. PBX_SYSLOG_FACILITY_LOG_SYSLOG=1
  26671. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_SYSLOG 1" >>confdefs.h
  26672. else
  26673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26674. $as_echo "no" >&6; }
  26675. fi
  26676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26677. CPPFLAGS="${saved_cppflags}"
  26678. fi
  26679. if test "x${PBX_SYSLOG_FACILITY_LOG_UUCP}" != "x1"; then
  26680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_UUCP in syslog.h" >&5
  26681. $as_echo_n "checking for LOG_UUCP in syslog.h... " >&6; }
  26682. saved_cppflags="${CPPFLAGS}"
  26683. if test "x${SYSLOG_FACILITY_LOG_UUCP_DIR}" != "x"; then
  26684. SYSLOG_FACILITY_LOG_UUCP_INCLUDE="-I${SYSLOG_FACILITY_LOG_UUCP_DIR}/include"
  26685. fi
  26686. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_UUCP_INCLUDE}"
  26687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26688. /* end confdefs.h. */
  26689. #include <syslog.h>
  26690. int
  26691. main ()
  26692. {
  26693. #if defined(LOG_UUCP)
  26694. int foo = 0;
  26695. #else
  26696. int foo = bar;
  26697. #endif
  26698. 0
  26699. ;
  26700. return 0;
  26701. }
  26702. _ACEOF
  26703. if ac_fn_c_try_compile "$LINENO"; then :
  26704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26705. $as_echo "yes" >&6; }
  26706. PBX_SYSLOG_FACILITY_LOG_UUCP=1
  26707. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_UUCP 1" >>confdefs.h
  26708. else
  26709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26710. $as_echo "no" >&6; }
  26711. fi
  26712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26713. CPPFLAGS="${saved_cppflags}"
  26714. fi
  26715. PBX_SYSLOG=1
  26716. fi
  26717. if test -f makeopts; then
  26718. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak
  26719. else
  26720. touch makeopts.acbak
  26721. fi
  26722. ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
  26723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mandatory modules: ${ac_mandatory_list}" >&5
  26724. $as_echo_n "checking for mandatory modules: ${ac_mandatory_list}... " >&6; }
  26725. err=0;
  26726. for i in ${ac_mandatory_list}; do
  26727. eval "a=\${PBX_$i}"
  26728. if test "x${a}" = "x1" ; then continue; fi
  26729. if test ${err} = "0" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
  26730. $as_echo "fail" >&6; } ; fi
  26731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  26732. $as_echo "" >&6; }
  26733. eval "a=\${${i}_OPTION}"
  26734. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  26735. $as_echo "$as_me: ***" >&6;}
  26736. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The $i installation appears to be missing or broken." >&5
  26737. $as_echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
  26738. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  26739. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  26740. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-${a}." >&5
  26741. $as_echo "$as_me: *** including --without-${a}." >&6;}
  26742. err=1
  26743. done
  26744. if test $err = 1 ; then exit 1; fi
  26745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  26746. $as_echo "ok" >&6; }
  26747. if test -f build_tools/menuselect-deps; then
  26748. # extract old values of all PBX_ variables from menuselect-deps
  26749. # and preserve them so that menuselect can determine whether
  26750. # any previously-met dependencies are no longer met and warn
  26751. # the user appropriately
  26752. while IFS="=:" read var val old_val; do
  26753. eval "PBX_${var}=\${PBX_${var}}:${val}"
  26754. done < build_tools/menuselect-deps
  26755. fi
  26756. cat >confcache <<\_ACEOF
  26757. # This file is a shell script that caches the results of configure
  26758. # tests run on this system so they can be shared between configure
  26759. # scripts and configure runs, see configure's option --config-cache.
  26760. # It is not useful on other systems. If it contains results you don't
  26761. # want to keep, you may remove or edit it.
  26762. #
  26763. # config.status only pays attention to the cache file if you give it
  26764. # the --recheck option to rerun configure.
  26765. #
  26766. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26767. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26768. # following values.
  26769. _ACEOF
  26770. # The following way of writing the cache mishandles newlines in values,
  26771. # but we know of no workaround that is simple, portable, and efficient.
  26772. # So, we kill variables containing newlines.
  26773. # Ultrix sh set writes to stderr and can't be redirected directly,
  26774. # and sets the high bit in the cache file unless we assign to the vars.
  26775. (
  26776. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26777. eval ac_val=\$$ac_var
  26778. case $ac_val in #(
  26779. *${as_nl}*)
  26780. case $ac_var in #(
  26781. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26782. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26783. esac
  26784. case $ac_var in #(
  26785. _ | IFS | as_nl) ;; #(
  26786. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26787. *) { eval $ac_var=; unset $ac_var;} ;;
  26788. esac ;;
  26789. esac
  26790. done
  26791. (set) 2>&1 |
  26792. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26793. *${as_nl}ac_space=\ *)
  26794. # `set' does not quote correctly, so add quotes: double-quote
  26795. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26796. sed -n \
  26797. "s/'/'\\\\''/g;
  26798. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26799. ;; #(
  26800. *)
  26801. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26802. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26803. ;;
  26804. esac |
  26805. sort
  26806. ) |
  26807. sed '
  26808. /^ac_cv_env_/b end
  26809. t clear
  26810. :clear
  26811. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  26812. t end
  26813. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26814. :end' >>confcache
  26815. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26816. if test -w "$cache_file"; then
  26817. if test "x$cache_file" != "x/dev/null"; then
  26818. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26819. $as_echo "$as_me: updating cache $cache_file" >&6;}
  26820. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26821. cat confcache >"$cache_file"
  26822. else
  26823. case $cache_file in #(
  26824. */* | ?:*)
  26825. mv -f confcache "$cache_file"$$ &&
  26826. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26827. *)
  26828. mv -f confcache "$cache_file" ;;
  26829. esac
  26830. fi
  26831. fi
  26832. else
  26833. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26834. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  26835. fi
  26836. fi
  26837. rm -f confcache
  26838. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26839. # Let make expand exec_prefix.
  26840. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26841. DEFS=-DHAVE_CONFIG_H
  26842. ac_libobjs=
  26843. ac_ltlibobjs=
  26844. U=
  26845. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26846. # 1. Remove the extension, and $U if already installed.
  26847. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26848. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  26849. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26850. # will be set to the directory where LIBOBJS objects are built.
  26851. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26852. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26853. done
  26854. LIBOBJS=$ac_libobjs
  26855. LTLIBOBJS=$ac_ltlibobjs
  26856. : "${CONFIG_STATUS=./config.status}"
  26857. ac_write_fail=0
  26858. ac_clean_files_save=$ac_clean_files
  26859. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26860. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26861. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  26862. as_write_fail=0
  26863. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26864. #! $SHELL
  26865. # Generated by $as_me.
  26866. # Run this file to recreate the current configuration.
  26867. # Compiler output produced by configure, useful for debugging
  26868. # configure, is in config.log if it exists.
  26869. debug=false
  26870. ac_cs_recheck=false
  26871. ac_cs_silent=false
  26872. SHELL=\${CONFIG_SHELL-$SHELL}
  26873. export SHELL
  26874. _ASEOF
  26875. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26876. ## -------------------- ##
  26877. ## M4sh Initialization. ##
  26878. ## -------------------- ##
  26879. # Be more Bourne compatible
  26880. DUALCASE=1; export DUALCASE # for MKS sh
  26881. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26882. emulate sh
  26883. NULLCMD=:
  26884. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26885. # is contrary to our usage. Disable this feature.
  26886. alias -g '${1+"$@"}'='"$@"'
  26887. setopt NO_GLOB_SUBST
  26888. else
  26889. case `(set -o) 2>/dev/null` in #(
  26890. *posix*) :
  26891. set -o posix ;; #(
  26892. *) :
  26893. ;;
  26894. esac
  26895. fi
  26896. as_nl='
  26897. '
  26898. export as_nl
  26899. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  26900. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  26901. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  26902. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  26903. # Prefer a ksh shell builtin over an external printf program on Solaris,
  26904. # but without wasting forks for bash or zsh.
  26905. if test -z "$BASH_VERSION$ZSH_VERSION" \
  26906. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  26907. as_echo='print -r --'
  26908. as_echo_n='print -rn --'
  26909. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  26910. as_echo='printf %s\n'
  26911. as_echo_n='printf %s'
  26912. else
  26913. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  26914. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  26915. as_echo_n='/usr/ucb/echo -n'
  26916. else
  26917. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  26918. as_echo_n_body='eval
  26919. arg=$1;
  26920. case $arg in #(
  26921. *"$as_nl"*)
  26922. expr "X$arg" : "X\\(.*\\)$as_nl";
  26923. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  26924. esac;
  26925. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  26926. '
  26927. export as_echo_n_body
  26928. as_echo_n='sh -c $as_echo_n_body as_echo'
  26929. fi
  26930. export as_echo_body
  26931. as_echo='sh -c $as_echo_body as_echo'
  26932. fi
  26933. # The user is always right.
  26934. if test "${PATH_SEPARATOR+set}" != set; then
  26935. PATH_SEPARATOR=:
  26936. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26937. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26938. PATH_SEPARATOR=';'
  26939. }
  26940. fi
  26941. # IFS
  26942. # We need space, tab and new line, in precisely that order. Quoting is
  26943. # there to prevent editors from complaining about space-tab.
  26944. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  26945. # splitting by setting IFS to empty value.)
  26946. IFS=" "" $as_nl"
  26947. # Find who we are. Look in the path if we contain no directory separator.
  26948. as_myself=
  26949. case $0 in #((
  26950. *[\\/]* ) as_myself=$0 ;;
  26951. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26952. for as_dir in $PATH
  26953. do
  26954. IFS=$as_save_IFS
  26955. test -z "$as_dir" && as_dir=.
  26956. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  26957. done
  26958. IFS=$as_save_IFS
  26959. ;;
  26960. esac
  26961. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26962. # in which case we are not to be found in the path.
  26963. if test "x$as_myself" = x; then
  26964. as_myself=$0
  26965. fi
  26966. if test ! -f "$as_myself"; then
  26967. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26968. exit 1
  26969. fi
  26970. # Unset variables that we do not need and which cause bugs (e.g. in
  26971. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  26972. # suppresses any "Segmentation fault" message there. '((' could
  26973. # trigger a bug in pdksh 5.2.14.
  26974. for as_var in BASH_ENV ENV MAIL MAILPATH
  26975. do eval test x\${$as_var+set} = xset \
  26976. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26977. done
  26978. PS1='$ '
  26979. PS2='> '
  26980. PS4='+ '
  26981. # NLS nuisances.
  26982. LC_ALL=C
  26983. export LC_ALL
  26984. LANGUAGE=C
  26985. export LANGUAGE
  26986. # CDPATH.
  26987. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26988. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26989. # ----------------------------------------
  26990. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26991. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26992. # script with STATUS, using 1 if that was 0.
  26993. as_fn_error ()
  26994. {
  26995. as_status=$1; test $as_status -eq 0 && as_status=1
  26996. if test "$4"; then
  26997. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26998. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26999. fi
  27000. $as_echo "$as_me: error: $2" >&2
  27001. as_fn_exit $as_status
  27002. } # as_fn_error
  27003. # as_fn_set_status STATUS
  27004. # -----------------------
  27005. # Set $? to STATUS, without forking.
  27006. as_fn_set_status ()
  27007. {
  27008. return $1
  27009. } # as_fn_set_status
  27010. # as_fn_exit STATUS
  27011. # -----------------
  27012. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  27013. as_fn_exit ()
  27014. {
  27015. set +e
  27016. as_fn_set_status $1
  27017. exit $1
  27018. } # as_fn_exit
  27019. # as_fn_unset VAR
  27020. # ---------------
  27021. # Portably unset VAR.
  27022. as_fn_unset ()
  27023. {
  27024. { eval $1=; unset $1;}
  27025. }
  27026. as_unset=as_fn_unset
  27027. # as_fn_append VAR VALUE
  27028. # ----------------------
  27029. # Append the text in VALUE to the end of the definition contained in VAR. Take
  27030. # advantage of any shell optimizations that allow amortized linear growth over
  27031. # repeated appends, instead of the typical quadratic growth present in naive
  27032. # implementations.
  27033. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  27034. eval 'as_fn_append ()
  27035. {
  27036. eval $1+=\$2
  27037. }'
  27038. else
  27039. as_fn_append ()
  27040. {
  27041. eval $1=\$$1\$2
  27042. }
  27043. fi # as_fn_append
  27044. # as_fn_arith ARG...
  27045. # ------------------
  27046. # Perform arithmetic evaluation on the ARGs, and store the result in the
  27047. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  27048. # must be portable across $(()) and expr.
  27049. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  27050. eval 'as_fn_arith ()
  27051. {
  27052. as_val=$(( $* ))
  27053. }'
  27054. else
  27055. as_fn_arith ()
  27056. {
  27057. as_val=`expr "$@" || test $? -eq 1`
  27058. }
  27059. fi # as_fn_arith
  27060. if expr a : '\(a\)' >/dev/null 2>&1 &&
  27061. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  27062. as_expr=expr
  27063. else
  27064. as_expr=false
  27065. fi
  27066. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  27067. as_basename=basename
  27068. else
  27069. as_basename=false
  27070. fi
  27071. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  27072. as_dirname=dirname
  27073. else
  27074. as_dirname=false
  27075. fi
  27076. as_me=`$as_basename -- "$0" ||
  27077. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  27078. X"$0" : 'X\(//\)$' \| \
  27079. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  27080. $as_echo X/"$0" |
  27081. sed '/^.*\/\([^/][^/]*\)\/*$/{
  27082. s//\1/
  27083. q
  27084. }
  27085. /^X\/\(\/\/\)$/{
  27086. s//\1/
  27087. q
  27088. }
  27089. /^X\/\(\/\).*/{
  27090. s//\1/
  27091. q
  27092. }
  27093. s/.*/./; q'`
  27094. # Avoid depending upon Character Ranges.
  27095. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  27096. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  27097. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  27098. as_cr_digits='0123456789'
  27099. as_cr_alnum=$as_cr_Letters$as_cr_digits
  27100. ECHO_C= ECHO_N= ECHO_T=
  27101. case `echo -n x` in #(((((
  27102. -n*)
  27103. case `echo 'xy\c'` in
  27104. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  27105. xy) ECHO_C='\c';;
  27106. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  27107. ECHO_T=' ';;
  27108. esac;;
  27109. *)
  27110. ECHO_N='-n';;
  27111. esac
  27112. rm -f conf$$ conf$$.exe conf$$.file
  27113. if test -d conf$$.dir; then
  27114. rm -f conf$$.dir/conf$$.file
  27115. else
  27116. rm -f conf$$.dir
  27117. mkdir conf$$.dir 2>/dev/null
  27118. fi
  27119. if (echo >conf$$.file) 2>/dev/null; then
  27120. if ln -s conf$$.file conf$$ 2>/dev/null; then
  27121. as_ln_s='ln -s'
  27122. # ... but there are two gotchas:
  27123. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  27124. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  27125. # In both cases, we have to default to `cp -pR'.
  27126. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  27127. as_ln_s='cp -pR'
  27128. elif ln conf$$.file conf$$ 2>/dev/null; then
  27129. as_ln_s=ln
  27130. else
  27131. as_ln_s='cp -pR'
  27132. fi
  27133. else
  27134. as_ln_s='cp -pR'
  27135. fi
  27136. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  27137. rmdir conf$$.dir 2>/dev/null
  27138. # as_fn_mkdir_p
  27139. # -------------
  27140. # Create "$as_dir" as a directory, including parents if necessary.
  27141. as_fn_mkdir_p ()
  27142. {
  27143. case $as_dir in #(
  27144. -*) as_dir=./$as_dir;;
  27145. esac
  27146. test -d "$as_dir" || eval $as_mkdir_p || {
  27147. as_dirs=
  27148. while :; do
  27149. case $as_dir in #(
  27150. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  27151. *) as_qdir=$as_dir;;
  27152. esac
  27153. as_dirs="'$as_qdir' $as_dirs"
  27154. as_dir=`$as_dirname -- "$as_dir" ||
  27155. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27156. X"$as_dir" : 'X\(//\)[^/]' \| \
  27157. X"$as_dir" : 'X\(//\)$' \| \
  27158. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  27159. $as_echo X"$as_dir" |
  27160. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27161. s//\1/
  27162. q
  27163. }
  27164. /^X\(\/\/\)[^/].*/{
  27165. s//\1/
  27166. q
  27167. }
  27168. /^X\(\/\/\)$/{
  27169. s//\1/
  27170. q
  27171. }
  27172. /^X\(\/\).*/{
  27173. s//\1/
  27174. q
  27175. }
  27176. s/.*/./; q'`
  27177. test -d "$as_dir" && break
  27178. done
  27179. test -z "$as_dirs" || eval "mkdir $as_dirs"
  27180. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  27181. } # as_fn_mkdir_p
  27182. if mkdir -p . 2>/dev/null; then
  27183. as_mkdir_p='mkdir -p "$as_dir"'
  27184. else
  27185. test -d ./-p && rmdir ./-p
  27186. as_mkdir_p=false
  27187. fi
  27188. # as_fn_executable_p FILE
  27189. # -----------------------
  27190. # Test if FILE is an executable regular file.
  27191. as_fn_executable_p ()
  27192. {
  27193. test -f "$1" && test -x "$1"
  27194. } # as_fn_executable_p
  27195. as_test_x='test -x'
  27196. as_executable_p=as_fn_executable_p
  27197. # Sed expression to map a string onto a valid CPP name.
  27198. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  27199. # Sed expression to map a string onto a valid variable name.
  27200. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  27201. exec 6>&1
  27202. ## ----------------------------------- ##
  27203. ## Main body of $CONFIG_STATUS script. ##
  27204. ## ----------------------------------- ##
  27205. _ASEOF
  27206. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  27207. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27208. # Save the log message, to keep $0 and so on meaningful, and to
  27209. # report actual input values of CONFIG_FILES etc. instead of their
  27210. # values after options handling.
  27211. ac_log="
  27212. This file was extended by asterisk $as_me trunk, which was
  27213. generated by GNU Autoconf 2.69. Invocation command line was
  27214. CONFIG_FILES = $CONFIG_FILES
  27215. CONFIG_HEADERS = $CONFIG_HEADERS
  27216. CONFIG_LINKS = $CONFIG_LINKS
  27217. CONFIG_COMMANDS = $CONFIG_COMMANDS
  27218. $ $0 $@
  27219. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  27220. "
  27221. _ACEOF
  27222. case $ac_config_files in *"
  27223. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  27224. esac
  27225. case $ac_config_headers in *"
  27226. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  27227. esac
  27228. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27229. # Files that config.status was made for.
  27230. config_files="$ac_config_files"
  27231. config_headers="$ac_config_headers"
  27232. _ACEOF
  27233. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27234. ac_cs_usage="\
  27235. \`$as_me' instantiates files and other configuration actions
  27236. from templates according to the current configuration. Unless the files
  27237. and actions are specified as TAGs, all are instantiated by default.
  27238. Usage: $0 [OPTION]... [TAG]...
  27239. -h, --help print this help, then exit
  27240. -V, --version print version number and configuration settings, then exit
  27241. --config print configuration, then exit
  27242. -q, --quiet, --silent
  27243. do not print progress messages
  27244. -d, --debug don't remove temporary files
  27245. --recheck update $as_me by reconfiguring in the same conditions
  27246. --file=FILE[:TEMPLATE]
  27247. instantiate the configuration file FILE
  27248. --header=FILE[:TEMPLATE]
  27249. instantiate the configuration header FILE
  27250. Configuration files:
  27251. $config_files
  27252. Configuration headers:
  27253. $config_headers
  27254. Report bugs to <https://issues.asterisk.org>."
  27255. _ACEOF
  27256. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27257. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  27258. ac_cs_version="\\
  27259. asterisk config.status trunk
  27260. configured by $0, generated by GNU Autoconf 2.69,
  27261. with options \\"\$ac_cs_config\\"
  27262. Copyright (C) 2012 Free Software Foundation, Inc.
  27263. This config.status script is free software; the Free Software Foundation
  27264. gives unlimited permission to copy, distribute and modify it."
  27265. ac_pwd='$ac_pwd'
  27266. srcdir='$srcdir'
  27267. INSTALL='$INSTALL'
  27268. AWK='$AWK'
  27269. test -n "\$AWK" || AWK=awk
  27270. _ACEOF
  27271. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27272. # The default lists apply if the user does not specify any file.
  27273. ac_need_defaults=:
  27274. while test $# != 0
  27275. do
  27276. case $1 in
  27277. --*=?*)
  27278. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  27279. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  27280. ac_shift=:
  27281. ;;
  27282. --*=)
  27283. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  27284. ac_optarg=
  27285. ac_shift=:
  27286. ;;
  27287. *)
  27288. ac_option=$1
  27289. ac_optarg=$2
  27290. ac_shift=shift
  27291. ;;
  27292. esac
  27293. case $ac_option in
  27294. # Handling of the options.
  27295. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  27296. ac_cs_recheck=: ;;
  27297. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  27298. $as_echo "$ac_cs_version"; exit ;;
  27299. --config | --confi | --conf | --con | --co | --c )
  27300. $as_echo "$ac_cs_config"; exit ;;
  27301. --debug | --debu | --deb | --de | --d | -d )
  27302. debug=: ;;
  27303. --file | --fil | --fi | --f )
  27304. $ac_shift
  27305. case $ac_optarg in
  27306. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  27307. '') as_fn_error $? "missing file argument" ;;
  27308. esac
  27309. as_fn_append CONFIG_FILES " '$ac_optarg'"
  27310. ac_need_defaults=false;;
  27311. --header | --heade | --head | --hea )
  27312. $ac_shift
  27313. case $ac_optarg in
  27314. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  27315. esac
  27316. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  27317. ac_need_defaults=false;;
  27318. --he | --h)
  27319. # Conflict between --help and --header
  27320. as_fn_error $? "ambiguous option: \`$1'
  27321. Try \`$0 --help' for more information.";;
  27322. --help | --hel | -h )
  27323. $as_echo "$ac_cs_usage"; exit ;;
  27324. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  27325. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  27326. ac_cs_silent=: ;;
  27327. # This is an error.
  27328. -*) as_fn_error $? "unrecognized option: \`$1'
  27329. Try \`$0 --help' for more information." ;;
  27330. *) as_fn_append ac_config_targets " $1"
  27331. ac_need_defaults=false ;;
  27332. esac
  27333. shift
  27334. done
  27335. ac_configure_extra_args=
  27336. if $ac_cs_silent; then
  27337. exec 6>/dev/null
  27338. ac_configure_extra_args="$ac_configure_extra_args --silent"
  27339. fi
  27340. _ACEOF
  27341. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27342. if \$ac_cs_recheck; then
  27343. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  27344. shift
  27345. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  27346. CONFIG_SHELL='$SHELL'
  27347. export CONFIG_SHELL
  27348. exec "\$@"
  27349. fi
  27350. _ACEOF
  27351. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27352. exec 5>>config.log
  27353. {
  27354. echo
  27355. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  27356. ## Running $as_me. ##
  27357. _ASBOX
  27358. $as_echo "$ac_log"
  27359. } >&5
  27360. _ACEOF
  27361. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27362. _ACEOF
  27363. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27364. # Handling of arguments.
  27365. for ac_config_target in $ac_config_targets
  27366. do
  27367. case $ac_config_target in
  27368. "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
  27369. "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
  27370. "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
  27371. "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
  27372. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27373. esac
  27374. done
  27375. # If the user did not use the arguments to specify the items to instantiate,
  27376. # then the envvar interface is used. Set only those that are not.
  27377. # We use the long form for the default assignment because of an extremely
  27378. # bizarre bug on SunOS 4.1.3.
  27379. if $ac_need_defaults; then
  27380. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  27381. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  27382. fi
  27383. # Have a temporary directory for convenience. Make it in the build tree
  27384. # simply because there is no reason against having it here, and in addition,
  27385. # creating and moving files from /tmp can sometimes cause problems.
  27386. # Hook for its removal unless debugging.
  27387. # Note that there is a small window in which the directory will not be cleaned:
  27388. # after its creation but before its name has been assigned to `$tmp'.
  27389. $debug ||
  27390. {
  27391. tmp= ac_tmp=
  27392. trap 'exit_status=$?
  27393. : "${ac_tmp:=$tmp}"
  27394. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27395. ' 0
  27396. trap 'as_fn_exit 1' 1 2 13 15
  27397. }
  27398. # Create a (secure) tmp directory for tmp files.
  27399. {
  27400. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27401. test -d "$tmp"
  27402. } ||
  27403. {
  27404. tmp=./conf$$-$RANDOM
  27405. (umask 077 && mkdir "$tmp")
  27406. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27407. ac_tmp=$tmp
  27408. # Set up the scripts for CONFIG_FILES section.
  27409. # No need to generate them if there are no CONFIG_FILES.
  27410. # This happens for instance with `./config.status config.h'.
  27411. if test -n "$CONFIG_FILES"; then
  27412. ac_cr=`echo X | tr X '\015'`
  27413. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27414. # But we know of no other shell where ac_cr would be empty at this
  27415. # point, so we can use a bashism as a fallback.
  27416. if test "x$ac_cr" = x; then
  27417. eval ac_cr=\$\'\\r\'
  27418. fi
  27419. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27420. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27421. ac_cs_awk_cr='\\r'
  27422. else
  27423. ac_cs_awk_cr=$ac_cr
  27424. fi
  27425. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27426. _ACEOF
  27427. {
  27428. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27429. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27430. echo "_ACEOF"
  27431. } >conf$$subs.sh ||
  27432. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27433. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27434. ac_delim='%!_!# '
  27435. for ac_last_try in false false false false false :; do
  27436. . ./conf$$subs.sh ||
  27437. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27438. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27439. if test $ac_delim_n = $ac_delim_num; then
  27440. break
  27441. elif $ac_last_try; then
  27442. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27443. else
  27444. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27445. fi
  27446. done
  27447. rm -f conf$$subs.sh
  27448. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27449. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27450. _ACEOF
  27451. sed -n '
  27452. h
  27453. s/^/S["/; s/!.*/"]=/
  27454. p
  27455. g
  27456. s/^[^!]*!//
  27457. :repl
  27458. t repl
  27459. s/'"$ac_delim"'$//
  27460. t delim
  27461. :nl
  27462. h
  27463. s/\(.\{148\}\)..*/\1/
  27464. t more1
  27465. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27466. p
  27467. n
  27468. b repl
  27469. :more1
  27470. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27471. p
  27472. g
  27473. s/.\{148\}//
  27474. t nl
  27475. :delim
  27476. h
  27477. s/\(.\{148\}\)..*/\1/
  27478. t more2
  27479. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27480. p
  27481. b
  27482. :more2
  27483. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27484. p
  27485. g
  27486. s/.\{148\}//
  27487. t delim
  27488. ' <conf$$subs.awk | sed '
  27489. /^[^""]/{
  27490. N
  27491. s/\n//
  27492. }
  27493. ' >>$CONFIG_STATUS || ac_write_fail=1
  27494. rm -f conf$$subs.awk
  27495. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27496. _ACAWK
  27497. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27498. for (key in S) S_is_set[key] = 1
  27499. FS = ""
  27500. }
  27501. {
  27502. line = $ 0
  27503. nfields = split(line, field, "@")
  27504. substed = 0
  27505. len = length(field[1])
  27506. for (i = 2; i < nfields; i++) {
  27507. key = field[i]
  27508. keylen = length(key)
  27509. if (S_is_set[key]) {
  27510. value = S[key]
  27511. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27512. len += length(value) + length(field[++i])
  27513. substed = 1
  27514. } else
  27515. len += 1 + keylen
  27516. }
  27517. print line
  27518. }
  27519. _ACAWK
  27520. _ACEOF
  27521. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27522. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27523. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27524. else
  27525. cat
  27526. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27527. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27528. _ACEOF
  27529. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27530. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27531. # trailing colons and then remove the whole line if VPATH becomes empty
  27532. # (actually we leave an empty line to preserve line numbers).
  27533. if test "x$srcdir" = x.; then
  27534. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27535. h
  27536. s///
  27537. s/^/:/
  27538. s/[ ]*$/:/
  27539. s/:\$(srcdir):/:/g
  27540. s/:\${srcdir}:/:/g
  27541. s/:@srcdir@:/:/g
  27542. s/^:*//
  27543. s/:*$//
  27544. x
  27545. s/\(=[ ]*\).*/\1/
  27546. G
  27547. s/\n//
  27548. s/^[^=]*=[ ]*$//
  27549. }'
  27550. fi
  27551. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27552. fi # test -n "$CONFIG_FILES"
  27553. # Set up the scripts for CONFIG_HEADERS section.
  27554. # No need to generate them if there are no CONFIG_HEADERS.
  27555. # This happens for instance with `./config.status Makefile'.
  27556. if test -n "$CONFIG_HEADERS"; then
  27557. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27558. BEGIN {
  27559. _ACEOF
  27560. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27561. # here-document in config.status, that substitutes the proper values into
  27562. # config.h.in to produce config.h.
  27563. # Create a delimiter string that does not exist in confdefs.h, to ease
  27564. # handling of long lines.
  27565. ac_delim='%!_!# '
  27566. for ac_last_try in false false :; do
  27567. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27568. if test -z "$ac_tt"; then
  27569. break
  27570. elif $ac_last_try; then
  27571. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27572. else
  27573. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27574. fi
  27575. done
  27576. # For the awk script, D is an array of macro values keyed by name,
  27577. # likewise P contains macro parameters if any. Preserve backslash
  27578. # newline sequences.
  27579. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27580. sed -n '
  27581. s/.\{148\}/&'"$ac_delim"'/g
  27582. t rset
  27583. :rset
  27584. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27585. t def
  27586. d
  27587. :def
  27588. s/\\$//
  27589. t bsnl
  27590. s/["\\]/\\&/g
  27591. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27592. D["\1"]=" \3"/p
  27593. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27594. d
  27595. :bsnl
  27596. s/["\\]/\\&/g
  27597. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27598. D["\1"]=" \3\\\\\\n"\\/p
  27599. t cont
  27600. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27601. t cont
  27602. d
  27603. :cont
  27604. n
  27605. s/.\{148\}/&'"$ac_delim"'/g
  27606. t clear
  27607. :clear
  27608. s/\\$//
  27609. t bsnlc
  27610. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27611. d
  27612. :bsnlc
  27613. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27614. b cont
  27615. ' <confdefs.h | sed '
  27616. s/'"$ac_delim"'/"\\\
  27617. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27618. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27619. for (key in D) D_is_set[key] = 1
  27620. FS = ""
  27621. }
  27622. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27623. line = \$ 0
  27624. split(line, arg, " ")
  27625. if (arg[1] == "#") {
  27626. defundef = arg[2]
  27627. mac1 = arg[3]
  27628. } else {
  27629. defundef = substr(arg[1], 2)
  27630. mac1 = arg[2]
  27631. }
  27632. split(mac1, mac2, "(") #)
  27633. macro = mac2[1]
  27634. prefix = substr(line, 1, index(line, defundef) - 1)
  27635. if (D_is_set[macro]) {
  27636. # Preserve the white space surrounding the "#".
  27637. print prefix "define", macro P[macro] D[macro]
  27638. next
  27639. } else {
  27640. # Replace #undef with comments. This is necessary, for example,
  27641. # in the case of _POSIX_SOURCE, which is predefined and required
  27642. # on some systems where configure will not decide to define it.
  27643. if (defundef == "undef") {
  27644. print "/*", prefix defundef, macro, "*/"
  27645. next
  27646. }
  27647. }
  27648. }
  27649. { print }
  27650. _ACAWK
  27651. _ACEOF
  27652. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27653. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27654. fi # test -n "$CONFIG_HEADERS"
  27655. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  27656. shift
  27657. for ac_tag
  27658. do
  27659. case $ac_tag in
  27660. :[FHLC]) ac_mode=$ac_tag; continue;;
  27661. esac
  27662. case $ac_mode$ac_tag in
  27663. :[FHL]*:*);;
  27664. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27665. :[FH]-) ac_tag=-:-;;
  27666. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27667. esac
  27668. ac_save_IFS=$IFS
  27669. IFS=:
  27670. set x $ac_tag
  27671. IFS=$ac_save_IFS
  27672. shift
  27673. ac_file=$1
  27674. shift
  27675. case $ac_mode in
  27676. :L) ac_source=$1;;
  27677. :[FH])
  27678. ac_file_inputs=
  27679. for ac_f
  27680. do
  27681. case $ac_f in
  27682. -) ac_f="$ac_tmp/stdin";;
  27683. *) # Look for the file first in the build tree, then in the source tree
  27684. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27685. # because $ac_f cannot contain `:'.
  27686. test -f "$ac_f" ||
  27687. case $ac_f in
  27688. [\\/$]*) false;;
  27689. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27690. esac ||
  27691. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27692. esac
  27693. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27694. as_fn_append ac_file_inputs " '$ac_f'"
  27695. done
  27696. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27697. # use $as_me), people would be surprised to read:
  27698. # /* config.h. Generated by config.status. */
  27699. configure_input='Generated from '`
  27700. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27701. `' by configure.'
  27702. if test x"$ac_file" != x-; then
  27703. configure_input="$ac_file. $configure_input"
  27704. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27705. $as_echo "$as_me: creating $ac_file" >&6;}
  27706. fi
  27707. # Neutralize special characters interpreted by sed in replacement strings.
  27708. case $configure_input in #(
  27709. *\&* | *\|* | *\\* )
  27710. ac_sed_conf_input=`$as_echo "$configure_input" |
  27711. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27712. *) ac_sed_conf_input=$configure_input;;
  27713. esac
  27714. case $ac_tag in
  27715. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27716. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27717. esac
  27718. ;;
  27719. esac
  27720. ac_dir=`$as_dirname -- "$ac_file" ||
  27721. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27722. X"$ac_file" : 'X\(//\)[^/]' \| \
  27723. X"$ac_file" : 'X\(//\)$' \| \
  27724. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27725. $as_echo X"$ac_file" |
  27726. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27727. s//\1/
  27728. q
  27729. }
  27730. /^X\(\/\/\)[^/].*/{
  27731. s//\1/
  27732. q
  27733. }
  27734. /^X\(\/\/\)$/{
  27735. s//\1/
  27736. q
  27737. }
  27738. /^X\(\/\).*/{
  27739. s//\1/
  27740. q
  27741. }
  27742. s/.*/./; q'`
  27743. as_dir="$ac_dir"; as_fn_mkdir_p
  27744. ac_builddir=.
  27745. case "$ac_dir" in
  27746. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27747. *)
  27748. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  27749. # A ".." for each directory in $ac_dir_suffix.
  27750. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27751. case $ac_top_builddir_sub in
  27752. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27753. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27754. esac ;;
  27755. esac
  27756. ac_abs_top_builddir=$ac_pwd
  27757. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27758. # for backward compatibility:
  27759. ac_top_builddir=$ac_top_build_prefix
  27760. case $srcdir in
  27761. .) # We are building in place.
  27762. ac_srcdir=.
  27763. ac_top_srcdir=$ac_top_builddir_sub
  27764. ac_abs_top_srcdir=$ac_pwd ;;
  27765. [\\/]* | ?:[\\/]* ) # Absolute name.
  27766. ac_srcdir=$srcdir$ac_dir_suffix;
  27767. ac_top_srcdir=$srcdir
  27768. ac_abs_top_srcdir=$srcdir ;;
  27769. *) # Relative name.
  27770. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27771. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27772. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27773. esac
  27774. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27775. case $ac_mode in
  27776. :F)
  27777. #
  27778. # CONFIG_FILE
  27779. #
  27780. case $INSTALL in
  27781. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27782. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27783. esac
  27784. _ACEOF
  27785. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27786. # If the template does not know about datarootdir, expand it.
  27787. # FIXME: This hack should be removed a few years after 2.60.
  27788. ac_datarootdir_hack=; ac_datarootdir_seen=
  27789. ac_sed_dataroot='
  27790. /datarootdir/ {
  27791. p
  27792. q
  27793. }
  27794. /@datadir@/p
  27795. /@docdir@/p
  27796. /@infodir@/p
  27797. /@localedir@/p
  27798. /@mandir@/p'
  27799. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27800. *datarootdir*) ac_datarootdir_seen=yes;;
  27801. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27803. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27804. _ACEOF
  27805. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27806. ac_datarootdir_hack='
  27807. s&@datadir@&$datadir&g
  27808. s&@docdir@&$docdir&g
  27809. s&@infodir@&$infodir&g
  27810. s&@localedir@&$localedir&g
  27811. s&@mandir@&$mandir&g
  27812. s&\\\${datarootdir}&$datarootdir&g' ;;
  27813. esac
  27814. _ACEOF
  27815. # Neutralize VPATH when `$srcdir' = `.'.
  27816. # Shell code in configure.ac might set extrasub.
  27817. # FIXME: do we really want to maintain this feature?
  27818. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27819. ac_sed_extra="$ac_vpsub
  27820. $extrasub
  27821. _ACEOF
  27822. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27823. :t
  27824. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27825. s|@configure_input@|$ac_sed_conf_input|;t t
  27826. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27827. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27828. s&@srcdir@&$ac_srcdir&;t t
  27829. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27830. s&@top_srcdir@&$ac_top_srcdir&;t t
  27831. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27832. s&@builddir@&$ac_builddir&;t t
  27833. s&@abs_builddir@&$ac_abs_builddir&;t t
  27834. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27835. s&@INSTALL@&$ac_INSTALL&;t t
  27836. $ac_datarootdir_hack
  27837. "
  27838. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27839. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27840. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27841. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27842. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27843. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27845. which seems to be undefined. Please make sure it is defined" >&5
  27846. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27847. which seems to be undefined. Please make sure it is defined" >&2;}
  27848. rm -f "$ac_tmp/stdin"
  27849. case $ac_file in
  27850. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27851. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27852. esac \
  27853. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27854. ;;
  27855. :H)
  27856. #
  27857. # CONFIG_HEADER
  27858. #
  27859. if test x"$ac_file" != x-; then
  27860. {
  27861. $as_echo "/* $configure_input */" \
  27862. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27863. } >"$ac_tmp/config.h" \
  27864. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27865. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27866. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27867. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  27868. else
  27869. rm -f "$ac_file"
  27870. mv "$ac_tmp/config.h" "$ac_file" \
  27871. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27872. fi
  27873. else
  27874. $as_echo "/* $configure_input */" \
  27875. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27876. || as_fn_error $? "could not create -" "$LINENO" 5
  27877. fi
  27878. ;;
  27879. esac
  27880. done # for ac_tag
  27881. as_fn_exit 0
  27882. _ACEOF
  27883. ac_clean_files=$ac_clean_files_save
  27884. test $ac_write_fail = 0 ||
  27885. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27886. # configure is writing to config.log, and then calls config.status.
  27887. # config.status does its own redirection, appending to config.log.
  27888. # Unfortunately, on DOS this fails, as config.log is still kept open
  27889. # by configure, so config.status won't be able to write to it; its
  27890. # output is simply discarded. So we exec the FD to /dev/null,
  27891. # effectively closing config.log, so it can be properly (re)opened and
  27892. # appended to by config.status. When coming back to configure, we
  27893. # need to make the FD available again.
  27894. if test "$no_create" != yes; then
  27895. ac_cs_success=:
  27896. ac_config_status_args=
  27897. test "$silent" = yes &&
  27898. ac_config_status_args="$ac_config_status_args --quiet"
  27899. exec 5>/dev/null
  27900. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27901. exec 5>>config.log
  27902. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27903. # would make configure fail if this is the last instruction.
  27904. $ac_cs_success || as_fn_exit 1
  27905. fi
  27906. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27908. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27909. fi
  27910. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
  27911. if test "x${ac_cv_path_CMP}" = "x:"; then
  27912. ( cd `pwd`/menuselect && ./configure )
  27913. else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
  27914. ( cd `pwd`/menuselect && ./configure )
  27915. fi ; fi
  27916. rm makeopts.acbak makeopts.acbak2
  27917. if test "x${silent}" != "xyes" ; then
  27918. echo
  27919. echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
  27920. echo " .\$7\$7.. .7\$\$7:. "
  27921. echo " .\$\$:. ,\$7.7 "
  27922. echo " .\$7. 7\$\$\$\$ .\$\$77 "
  27923. echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
  27924. echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
  27925. echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
  27926. echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
  27927. echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
  27928. echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
  27929. echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
  27930. echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
  27931. echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
  27932. echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
  27933. echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
  27934. echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
  27935. echo " \$\$\$\$\$ \$\$\$ "
  27936. echo " \$\$\$\$7. \$\$ (TM) "
  27937. echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
  27938. echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
  27939. echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
  27940. echo
  27941. fi
  27942. if test "x${AST_IODBC_FOUND}" = "xyes"; then
  27943. echo "WARNING: iodbc libs/headers found!"
  27944. echo
  27945. echo " If you plan to use ODBC functionality, you should consider"
  27946. echo " switching to unixodbc instead."
  27947. echo " See: https://issues.asterisk.org/jira/browse/ASTERISK-22459"
  27948. echo
  27949. fi
  27950. { $as_echo "$as_me:${as_lineno-$LINENO}: Package configured for: " >&5
  27951. $as_echo "$as_me: Package configured for: " >&6;}
  27952. { $as_echo "$as_me:${as_lineno-$LINENO}: OS type : $host_os" >&5
  27953. $as_echo "$as_me: OS type : $host_os" >&6;}
  27954. { $as_echo "$as_me:${as_lineno-$LINENO}: Host CPU : $host_cpu" >&5
  27955. $as_echo "$as_me: Host CPU : $host_cpu" >&6;}
  27956. { $as_echo "$as_me:${as_lineno-$LINENO}: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
  27957. $as_echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
  27958. { $as_echo "$as_me:${as_lineno-$LINENO}: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
  27959. $as_echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
  27960. if test "${cross_compiling}" = "yes"; then
  27961. { $as_echo "$as_me:${as_lineno-$LINENO}: Cross Compilation = YES" >&5
  27962. $as_echo "$as_me: Cross Compilation = YES" >&6;}
  27963. fi