configure 169 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139
  1. #! /bin/sh
  2. # From configure.ac Revision: 418850 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # "Menuselect"
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71. # The user is always right.
  72. if test "${PATH_SEPARATOR+set}" != set; then
  73. PATH_SEPARATOR=:
  74. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. PATH_SEPARATOR=';'
  77. }
  78. fi
  79. # IFS
  80. # We need space, tab and new line, in precisely that order. Quoting is
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. as_myself=
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. # Use a proper internal environment variable to ensure we don't fall
  127. # into an infinite loop, continuously re-executing ourselves.
  128. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  129. _as_can_reexec=no; export _as_can_reexec;
  130. # We cannot yet assume a decent shell, so we have to provide a
  131. # neutralization value for shells without unset; and this also
  132. # works around shells that cannot unset nonexistent variables.
  133. # Preserve -v and -x to the replacement shell.
  134. BASH_ENV=/dev/null
  135. ENV=/dev/null
  136. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  137. case $- in # ((((
  138. *v*x* | *x*v* ) as_opts=-vx ;;
  139. *v* ) as_opts=-v ;;
  140. *x* ) as_opts=-x ;;
  141. * ) as_opts= ;;
  142. esac
  143. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  144. # Admittedly, this is quite paranoid, since all the known shells bail
  145. # out after a failed `exec'.
  146. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  147. as_fn_exit 255
  148. fi
  149. # We don't want this to propagate to other subprocesses.
  150. { _as_can_reexec=; unset _as_can_reexec;}
  151. if test "x$CONFIG_SHELL" = x; then
  152. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  153. emulate sh
  154. NULLCMD=:
  155. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  156. # is contrary to our usage. Disable this feature.
  157. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  158. setopt NO_GLOB_SUBST
  159. else
  160. case \`(set -o) 2>/dev/null\` in #(
  161. *posix*) :
  162. set -o posix ;; #(
  163. *) :
  164. ;;
  165. esac
  166. fi
  167. "
  168. as_required="as_fn_return () { (exit \$1); }
  169. as_fn_success () { as_fn_return 0; }
  170. as_fn_failure () { as_fn_return 1; }
  171. as_fn_ret_success () { return 0; }
  172. as_fn_ret_failure () { return 1; }
  173. exitcode=0
  174. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. else
  180. exitcode=1; echo positional parameters were not saved.
  181. fi
  182. test x\$exitcode = x0 || exit 1
  183. test -x / || exit 1"
  184. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. test \$(( 1 + 1 )) = 2 || exit 1"
  189. if (eval "$as_required") 2>/dev/null; then :
  190. as_have_required=yes
  191. else
  192. as_have_required=no
  193. fi
  194. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. else
  196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197. as_found=false
  198. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199. do
  200. IFS=$as_save_IFS
  201. test -z "$as_dir" && as_dir=.
  202. as_found=:
  203. case $as_dir in #(
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. # Try only shells that exist, to save several forks.
  207. as_shell=$as_dir/$as_base
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. break 2
  213. fi
  214. fi
  215. done;;
  216. esac
  217. as_found=false
  218. done
  219. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$SHELL as_have_required=yes
  222. fi; }
  223. IFS=$as_save_IFS
  224. if test "x$CONFIG_SHELL" != x; then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno; then :
  246. $as_echo "$0: This script requires a shell more modern than all"
  247. $as_echo "$0: the shells that I found on your system."
  248. if test x${ZSH_VERSION+set} = xset ; then
  249. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. else
  252. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME=
  534. PACKAGE_TARNAME=
  535. PACKAGE_VERSION=
  536. PACKAGE_STRING=
  537. PACKAGE_BUGREPORT=
  538. PACKAGE_URL=
  539. ac_unique_file="menuselect"
  540. ac_unique_file="menuselect.c"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_subst_vars='LTLIBOBJS
  577. LIBOBJS
  578. GTK2_LIB
  579. GTK2_INCLUDE
  580. PBX_GTK2
  581. PKGCONFIG
  582. CONFIG_LIBXML2
  583. SED
  584. PBX_LIBXML2
  585. LIBXML2_DIR
  586. LIBXML2_INCLUDE
  587. LIBXML2_LIB
  588. PBX_NCURSES
  589. NCURSES_DIR
  590. NCURSES_INCLUDE
  591. NCURSES_LIB
  592. PBX_CURSES
  593. CURSES_DIR
  594. CURSES_INCLUDE
  595. CURSES_LIB
  596. PBX_NEWT
  597. NEWT_DIR
  598. NEWT_INCLUDE
  599. NEWT_LIB
  600. ALLOCA
  601. EGREP
  602. GREP
  603. CPP
  604. PBX_WEAKREF
  605. MENUSELECT_DEBUG
  606. GNU_MAKE
  607. OBJEXT
  608. EXEEXT
  609. ac_ct_CC
  610. CPPFLAGS
  611. LDFLAGS
  612. CFLAGS
  613. CC
  614. HOST_OS
  615. host_os
  616. host_vendor
  617. host_cpu
  618. host
  619. build_os
  620. build_vendor
  621. build_cpu
  622. build
  623. target_alias
  624. host_alias
  625. build_alias
  626. LIBS
  627. ECHO_T
  628. ECHO_N
  629. ECHO_C
  630. DEFS
  631. mandir
  632. localedir
  633. libdir
  634. psdir
  635. pdfdir
  636. dvidir
  637. htmldir
  638. infodir
  639. docdir
  640. oldincludedir
  641. includedir
  642. localstatedir
  643. sharedstatedir
  644. sysconfdir
  645. datadir
  646. datarootdir
  647. libexecdir
  648. sbindir
  649. bindir
  650. program_transform_name
  651. prefix
  652. exec_prefix
  653. PACKAGE_URL
  654. PACKAGE_BUGREPORT
  655. PACKAGE_STRING
  656. PACKAGE_VERSION
  657. PACKAGE_TARNAME
  658. PACKAGE_NAME
  659. PATH_SEPARATOR
  660. SHELL'
  661. ac_subst_files=''
  662. ac_user_opts='
  663. enable_option_checking
  664. enable_debug
  665. with_newt
  666. with_curses
  667. with_ncurses
  668. with_libxml2
  669. '
  670. ac_precious_vars='build_alias
  671. host_alias
  672. target_alias
  673. CC
  674. CFLAGS
  675. LDFLAGS
  676. LIBS
  677. CPPFLAGS
  678. CPP'
  679. # Initialize some variables set by options.
  680. ac_init_help=
  681. ac_init_version=false
  682. ac_unrecognized_opts=
  683. ac_unrecognized_sep=
  684. # The variables have the same names as the options, with
  685. # dashes changed to underlines.
  686. cache_file=/dev/null
  687. exec_prefix=NONE
  688. no_create=
  689. no_recursion=
  690. prefix=NONE
  691. program_prefix=NONE
  692. program_suffix=NONE
  693. program_transform_name=s,x,x,
  694. silent=
  695. site=
  696. srcdir=
  697. verbose=
  698. x_includes=NONE
  699. x_libraries=NONE
  700. # Installation directory options.
  701. # These are left unexpanded so users can "make install exec_prefix=/foo"
  702. # and all the variables that are supposed to be based on exec_prefix
  703. # by default will actually change.
  704. # Use braces instead of parens because sh, perl, etc. also accept them.
  705. # (The list follows the same order as the GNU Coding Standards.)
  706. bindir='${exec_prefix}/bin'
  707. sbindir='${exec_prefix}/sbin'
  708. libexecdir='${exec_prefix}/libexec'
  709. datarootdir='${prefix}/share'
  710. datadir='${datarootdir}'
  711. sysconfdir='${prefix}/etc'
  712. sharedstatedir='${prefix}/com'
  713. localstatedir='${prefix}/var'
  714. includedir='${prefix}/include'
  715. oldincludedir='/usr/include'
  716. docdir='${datarootdir}/doc/${PACKAGE}'
  717. infodir='${datarootdir}/info'
  718. htmldir='${docdir}'
  719. dvidir='${docdir}'
  720. pdfdir='${docdir}'
  721. psdir='${docdir}'
  722. libdir='${exec_prefix}/lib'
  723. localedir='${datarootdir}/locale'
  724. mandir='${datarootdir}/man'
  725. ac_prev=
  726. ac_dashdash=
  727. for ac_option
  728. do
  729. # If the previous option needs an argument, assign it.
  730. if test -n "$ac_prev"; then
  731. eval $ac_prev=\$ac_option
  732. ac_prev=
  733. continue
  734. fi
  735. case $ac_option in
  736. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  737. *=) ac_optarg= ;;
  738. *) ac_optarg=yes ;;
  739. esac
  740. # Accept the important Cygnus configure options, so we can diagnose typos.
  741. case $ac_dashdash$ac_option in
  742. --)
  743. ac_dashdash=yes ;;
  744. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  745. ac_prev=bindir ;;
  746. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  747. bindir=$ac_optarg ;;
  748. -build | --build | --buil | --bui | --bu)
  749. ac_prev=build_alias ;;
  750. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  751. build_alias=$ac_optarg ;;
  752. -cache-file | --cache-file | --cache-fil | --cache-fi \
  753. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  754. ac_prev=cache_file ;;
  755. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  756. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  757. cache_file=$ac_optarg ;;
  758. --config-cache | -C)
  759. cache_file=config.cache ;;
  760. -datadir | --datadir | --datadi | --datad)
  761. ac_prev=datadir ;;
  762. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  763. datadir=$ac_optarg ;;
  764. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  765. | --dataroo | --dataro | --datar)
  766. ac_prev=datarootdir ;;
  767. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  768. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  769. datarootdir=$ac_optarg ;;
  770. -disable-* | --disable-*)
  771. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  772. # Reject names that are not valid shell variable names.
  773. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  774. as_fn_error $? "invalid feature name: $ac_useropt"
  775. ac_useropt_orig=$ac_useropt
  776. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  777. case $ac_user_opts in
  778. *"
  779. "enable_$ac_useropt"
  780. "*) ;;
  781. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  782. ac_unrecognized_sep=', ';;
  783. esac
  784. eval enable_$ac_useropt=no ;;
  785. -docdir | --docdir | --docdi | --doc | --do)
  786. ac_prev=docdir ;;
  787. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  788. docdir=$ac_optarg ;;
  789. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  790. ac_prev=dvidir ;;
  791. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  792. dvidir=$ac_optarg ;;
  793. -enable-* | --enable-*)
  794. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  795. # Reject names that are not valid shell variable names.
  796. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  797. as_fn_error $? "invalid feature name: $ac_useropt"
  798. ac_useropt_orig=$ac_useropt
  799. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  800. case $ac_user_opts in
  801. *"
  802. "enable_$ac_useropt"
  803. "*) ;;
  804. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  805. ac_unrecognized_sep=', ';;
  806. esac
  807. eval enable_$ac_useropt=\$ac_optarg ;;
  808. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  809. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  810. | --exec | --exe | --ex)
  811. ac_prev=exec_prefix ;;
  812. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  813. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  814. | --exec=* | --exe=* | --ex=*)
  815. exec_prefix=$ac_optarg ;;
  816. -gas | --gas | --ga | --g)
  817. # Obsolete; use --with-gas.
  818. with_gas=yes ;;
  819. -help | --help | --hel | --he | -h)
  820. ac_init_help=long ;;
  821. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  822. ac_init_help=recursive ;;
  823. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  824. ac_init_help=short ;;
  825. -host | --host | --hos | --ho)
  826. ac_prev=host_alias ;;
  827. -host=* | --host=* | --hos=* | --ho=*)
  828. host_alias=$ac_optarg ;;
  829. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  830. ac_prev=htmldir ;;
  831. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  832. | --ht=*)
  833. htmldir=$ac_optarg ;;
  834. -includedir | --includedir | --includedi | --included | --include \
  835. | --includ | --inclu | --incl | --inc)
  836. ac_prev=includedir ;;
  837. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  838. | --includ=* | --inclu=* | --incl=* | --inc=*)
  839. includedir=$ac_optarg ;;
  840. -infodir | --infodir | --infodi | --infod | --info | --inf)
  841. ac_prev=infodir ;;
  842. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  843. infodir=$ac_optarg ;;
  844. -libdir | --libdir | --libdi | --libd)
  845. ac_prev=libdir ;;
  846. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  847. libdir=$ac_optarg ;;
  848. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  849. | --libexe | --libex | --libe)
  850. ac_prev=libexecdir ;;
  851. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  852. | --libexe=* | --libex=* | --libe=*)
  853. libexecdir=$ac_optarg ;;
  854. -localedir | --localedir | --localedi | --localed | --locale)
  855. ac_prev=localedir ;;
  856. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  857. localedir=$ac_optarg ;;
  858. -localstatedir | --localstatedir | --localstatedi | --localstated \
  859. | --localstate | --localstat | --localsta | --localst | --locals)
  860. ac_prev=localstatedir ;;
  861. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  862. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  863. localstatedir=$ac_optarg ;;
  864. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  865. ac_prev=mandir ;;
  866. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  867. mandir=$ac_optarg ;;
  868. -nfp | --nfp | --nf)
  869. # Obsolete; use --without-fp.
  870. with_fp=no ;;
  871. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  872. | --no-cr | --no-c | -n)
  873. no_create=yes ;;
  874. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  875. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  876. no_recursion=yes ;;
  877. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  878. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  879. | --oldin | --oldi | --old | --ol | --o)
  880. ac_prev=oldincludedir ;;
  881. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  882. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  883. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  884. oldincludedir=$ac_optarg ;;
  885. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  886. ac_prev=prefix ;;
  887. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  888. prefix=$ac_optarg ;;
  889. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  890. | --program-pre | --program-pr | --program-p)
  891. ac_prev=program_prefix ;;
  892. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  893. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  894. program_prefix=$ac_optarg ;;
  895. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  896. | --program-suf | --program-su | --program-s)
  897. ac_prev=program_suffix ;;
  898. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  899. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  900. program_suffix=$ac_optarg ;;
  901. -program-transform-name | --program-transform-name \
  902. | --program-transform-nam | --program-transform-na \
  903. | --program-transform-n | --program-transform- \
  904. | --program-transform | --program-transfor \
  905. | --program-transfo | --program-transf \
  906. | --program-trans | --program-tran \
  907. | --progr-tra | --program-tr | --program-t)
  908. ac_prev=program_transform_name ;;
  909. -program-transform-name=* | --program-transform-name=* \
  910. | --program-transform-nam=* | --program-transform-na=* \
  911. | --program-transform-n=* | --program-transform-=* \
  912. | --program-transform=* | --program-transfor=* \
  913. | --program-transfo=* | --program-transf=* \
  914. | --program-trans=* | --program-tran=* \
  915. | --progr-tra=* | --program-tr=* | --program-t=*)
  916. program_transform_name=$ac_optarg ;;
  917. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  918. ac_prev=pdfdir ;;
  919. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  920. pdfdir=$ac_optarg ;;
  921. -psdir | --psdir | --psdi | --psd | --ps)
  922. ac_prev=psdir ;;
  923. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  924. psdir=$ac_optarg ;;
  925. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  926. | -silent | --silent | --silen | --sile | --sil)
  927. silent=yes ;;
  928. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  929. ac_prev=sbindir ;;
  930. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  931. | --sbi=* | --sb=*)
  932. sbindir=$ac_optarg ;;
  933. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  934. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  935. | --sharedst | --shareds | --shared | --share | --shar \
  936. | --sha | --sh)
  937. ac_prev=sharedstatedir ;;
  938. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  939. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  940. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  941. | --sha=* | --sh=*)
  942. sharedstatedir=$ac_optarg ;;
  943. -site | --site | --sit)
  944. ac_prev=site ;;
  945. -site=* | --site=* | --sit=*)
  946. site=$ac_optarg ;;
  947. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  948. ac_prev=srcdir ;;
  949. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  950. srcdir=$ac_optarg ;;
  951. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  952. | --syscon | --sysco | --sysc | --sys | --sy)
  953. ac_prev=sysconfdir ;;
  954. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  955. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  956. sysconfdir=$ac_optarg ;;
  957. -target | --target | --targe | --targ | --tar | --ta | --t)
  958. ac_prev=target_alias ;;
  959. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  960. target_alias=$ac_optarg ;;
  961. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  962. verbose=yes ;;
  963. -version | --version | --versio | --versi | --vers | -V)
  964. ac_init_version=: ;;
  965. -with-* | --with-*)
  966. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  967. # Reject names that are not valid shell variable names.
  968. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  969. as_fn_error $? "invalid package name: $ac_useropt"
  970. ac_useropt_orig=$ac_useropt
  971. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  972. case $ac_user_opts in
  973. *"
  974. "with_$ac_useropt"
  975. "*) ;;
  976. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  977. ac_unrecognized_sep=', ';;
  978. esac
  979. eval with_$ac_useropt=\$ac_optarg ;;
  980. -without-* | --without-*)
  981. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  982. # Reject names that are not valid shell variable names.
  983. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  984. as_fn_error $? "invalid package name: $ac_useropt"
  985. ac_useropt_orig=$ac_useropt
  986. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  987. case $ac_user_opts in
  988. *"
  989. "with_$ac_useropt"
  990. "*) ;;
  991. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  992. ac_unrecognized_sep=', ';;
  993. esac
  994. eval with_$ac_useropt=no ;;
  995. --x)
  996. # Obsolete; use --with-x.
  997. with_x=yes ;;
  998. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  999. | --x-incl | --x-inc | --x-in | --x-i)
  1000. ac_prev=x_includes ;;
  1001. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1002. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1003. x_includes=$ac_optarg ;;
  1004. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1005. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1006. ac_prev=x_libraries ;;
  1007. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1008. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1009. x_libraries=$ac_optarg ;;
  1010. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1011. Try \`$0 --help' for more information"
  1012. ;;
  1013. *=*)
  1014. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1015. # Reject names that are not valid shell variable names.
  1016. case $ac_envvar in #(
  1017. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1018. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1019. esac
  1020. eval $ac_envvar=\$ac_optarg
  1021. export $ac_envvar ;;
  1022. *)
  1023. # FIXME: should be removed in autoconf 3.0.
  1024. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1025. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1026. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1027. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1028. ;;
  1029. esac
  1030. done
  1031. if test -n "$ac_prev"; then
  1032. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1033. as_fn_error $? "missing argument to $ac_option"
  1034. fi
  1035. if test -n "$ac_unrecognized_opts"; then
  1036. case $enable_option_checking in
  1037. no) ;;
  1038. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1039. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1040. esac
  1041. fi
  1042. # Check all directory arguments for consistency.
  1043. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1044. datadir sysconfdir sharedstatedir localstatedir includedir \
  1045. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1046. libdir localedir mandir
  1047. do
  1048. eval ac_val=\$$ac_var
  1049. # Remove trailing slashes.
  1050. case $ac_val in
  1051. */ )
  1052. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1053. eval $ac_var=\$ac_val;;
  1054. esac
  1055. # Be sure to have absolute directory names.
  1056. case $ac_val in
  1057. [\\/$]* | ?:[\\/]* ) continue;;
  1058. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1059. esac
  1060. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1061. done
  1062. # There might be people who depend on the old broken behavior: `$host'
  1063. # used to hold the argument of --host etc.
  1064. # FIXME: To remove some day.
  1065. build=$build_alias
  1066. host=$host_alias
  1067. target=$target_alias
  1068. # FIXME: To remove some day.
  1069. if test "x$host_alias" != x; then
  1070. if test "x$build_alias" = x; then
  1071. cross_compiling=maybe
  1072. elif test "x$build_alias" != "x$host_alias"; then
  1073. cross_compiling=yes
  1074. fi
  1075. fi
  1076. ac_tool_prefix=
  1077. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1078. test "$silent" = yes && exec 6>/dev/null
  1079. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1080. ac_ls_di=`ls -di .` &&
  1081. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1082. as_fn_error $? "working directory cannot be determined"
  1083. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1084. as_fn_error $? "pwd does not report name of working directory"
  1085. # Find the source files, if location was not specified.
  1086. if test -z "$srcdir"; then
  1087. ac_srcdir_defaulted=yes
  1088. # Try the directory containing this script, then the parent directory.
  1089. ac_confdir=`$as_dirname -- "$as_myself" ||
  1090. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1091. X"$as_myself" : 'X\(//\)[^/]' \| \
  1092. X"$as_myself" : 'X\(//\)$' \| \
  1093. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1094. $as_echo X"$as_myself" |
  1095. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1096. s//\1/
  1097. q
  1098. }
  1099. /^X\(\/\/\)[^/].*/{
  1100. s//\1/
  1101. q
  1102. }
  1103. /^X\(\/\/\)$/{
  1104. s//\1/
  1105. q
  1106. }
  1107. /^X\(\/\).*/{
  1108. s//\1/
  1109. q
  1110. }
  1111. s/.*/./; q'`
  1112. srcdir=$ac_confdir
  1113. if test ! -r "$srcdir/$ac_unique_file"; then
  1114. srcdir=..
  1115. fi
  1116. else
  1117. ac_srcdir_defaulted=no
  1118. fi
  1119. if test ! -r "$srcdir/$ac_unique_file"; then
  1120. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1121. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1122. fi
  1123. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1124. ac_abs_confdir=`(
  1125. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1126. pwd)`
  1127. # When building in place, set srcdir=.
  1128. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1129. srcdir=.
  1130. fi
  1131. # Remove unnecessary trailing slashes from srcdir.
  1132. # Double slashes in file names in object file debugging info
  1133. # mess up M-x gdb in Emacs.
  1134. case $srcdir in
  1135. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1136. esac
  1137. for ac_var in $ac_precious_vars; do
  1138. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1139. eval ac_env_${ac_var}_value=\$${ac_var}
  1140. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1141. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1142. done
  1143. #
  1144. # Report the --help message.
  1145. #
  1146. if test "$ac_init_help" = "long"; then
  1147. # Omit some internal or obsolete options to make the list less imposing.
  1148. # This message is too long to be a string in the A/UX 3.1 sh.
  1149. cat <<_ACEOF
  1150. \`configure' configures this package to adapt to many kinds of systems.
  1151. Usage: $0 [OPTION]... [VAR=VALUE]...
  1152. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1153. VAR=VALUE. See below for descriptions of some of the useful variables.
  1154. Defaults for the options are specified in brackets.
  1155. Configuration:
  1156. -h, --help display this help and exit
  1157. --help=short display options specific to this package
  1158. --help=recursive display the short help of all the included packages
  1159. -V, --version display version information and exit
  1160. -q, --quiet, --silent do not print \`checking ...' messages
  1161. --cache-file=FILE cache test results in FILE [disabled]
  1162. -C, --config-cache alias for \`--cache-file=config.cache'
  1163. -n, --no-create do not create output files
  1164. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1165. Installation directories:
  1166. --prefix=PREFIX install architecture-independent files in PREFIX
  1167. [$ac_default_prefix]
  1168. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1169. [PREFIX]
  1170. By default, \`make install' will install all the files in
  1171. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1172. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1173. for instance \`--prefix=\$HOME'.
  1174. For better control, use the options below.
  1175. Fine tuning of the installation directories:
  1176. --bindir=DIR user executables [EPREFIX/bin]
  1177. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1178. --libexecdir=DIR program executables [EPREFIX/libexec]
  1179. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1180. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1181. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1182. --libdir=DIR object code libraries [EPREFIX/lib]
  1183. --includedir=DIR C header files [PREFIX/include]
  1184. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1185. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1186. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1187. --infodir=DIR info documentation [DATAROOTDIR/info]
  1188. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1189. --mandir=DIR man documentation [DATAROOTDIR/man]
  1190. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1191. --htmldir=DIR html documentation [DOCDIR]
  1192. --dvidir=DIR dvi documentation [DOCDIR]
  1193. --pdfdir=DIR pdf documentation [DOCDIR]
  1194. --psdir=DIR ps documentation [DOCDIR]
  1195. _ACEOF
  1196. cat <<\_ACEOF
  1197. System types:
  1198. --build=BUILD configure for building on BUILD [guessed]
  1199. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1200. _ACEOF
  1201. fi
  1202. if test -n "$ac_init_help"; then
  1203. cat <<\_ACEOF
  1204. Optional Features:
  1205. --disable-option-checking ignore unrecognized --enable/--with options
  1206. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1207. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1208. --enable-debug Turn on debug mode
  1209. Optional Packages:
  1210. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1211. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1212. --with-newt=PATH use newt files in PATH
  1213. --with-curses=PATH use curses files in PATH
  1214. --with-ncurses=PATH use ncurses files in PATH
  1215. --with-libxml2=PATH use LibXML2 files in PATH
  1216. Some influential environment variables:
  1217. CC C compiler command
  1218. CFLAGS C compiler flags
  1219. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1220. nonstandard directory <lib dir>
  1221. LIBS libraries to pass to the linker, e.g. -l<library>
  1222. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1223. you have headers in a nonstandard directory <include dir>
  1224. CPP C preprocessor
  1225. Use these variables to override the choices made by `configure' or to help
  1226. it to find libraries and programs with nonstandard names/locations.
  1227. Report bugs to the package provider.
  1228. _ACEOF
  1229. ac_status=$?
  1230. fi
  1231. if test "$ac_init_help" = "recursive"; then
  1232. # If there are subdirs, report their specific --help.
  1233. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1234. test -d "$ac_dir" ||
  1235. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1236. continue
  1237. ac_builddir=.
  1238. case "$ac_dir" in
  1239. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1240. *)
  1241. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1242. # A ".." for each directory in $ac_dir_suffix.
  1243. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1244. case $ac_top_builddir_sub in
  1245. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1246. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1247. esac ;;
  1248. esac
  1249. ac_abs_top_builddir=$ac_pwd
  1250. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1251. # for backward compatibility:
  1252. ac_top_builddir=$ac_top_build_prefix
  1253. case $srcdir in
  1254. .) # We are building in place.
  1255. ac_srcdir=.
  1256. ac_top_srcdir=$ac_top_builddir_sub
  1257. ac_abs_top_srcdir=$ac_pwd ;;
  1258. [\\/]* | ?:[\\/]* ) # Absolute name.
  1259. ac_srcdir=$srcdir$ac_dir_suffix;
  1260. ac_top_srcdir=$srcdir
  1261. ac_abs_top_srcdir=$srcdir ;;
  1262. *) # Relative name.
  1263. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1264. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1265. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1266. esac
  1267. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1268. cd "$ac_dir" || { ac_status=$?; continue; }
  1269. # Check for guested configure.
  1270. if test -f "$ac_srcdir/configure.gnu"; then
  1271. echo &&
  1272. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1273. elif test -f "$ac_srcdir/configure"; then
  1274. echo &&
  1275. $SHELL "$ac_srcdir/configure" --help=recursive
  1276. else
  1277. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1278. fi || ac_status=$?
  1279. cd "$ac_pwd" || { ac_status=$?; break; }
  1280. done
  1281. fi
  1282. test -n "$ac_init_help" && exit $ac_status
  1283. if $ac_init_version; then
  1284. cat <<\_ACEOF
  1285. configure
  1286. generated by GNU Autoconf 2.69
  1287. Copyright (C) 2012 Free Software Foundation, Inc.
  1288. This configure script is free software; the Free Software Foundation
  1289. gives unlimited permission to copy, distribute and modify it.
  1290. "Menuselect"
  1291. _ACEOF
  1292. exit
  1293. fi
  1294. ## ------------------------ ##
  1295. ## Autoconf initialization. ##
  1296. ## ------------------------ ##
  1297. # ac_fn_c_try_compile LINENO
  1298. # --------------------------
  1299. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1300. ac_fn_c_try_compile ()
  1301. {
  1302. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1303. rm -f conftest.$ac_objext
  1304. if { { ac_try="$ac_compile"
  1305. case "(($ac_try" in
  1306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1307. *) ac_try_echo=$ac_try;;
  1308. esac
  1309. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1310. $as_echo "$ac_try_echo"; } >&5
  1311. (eval "$ac_compile") 2>conftest.err
  1312. ac_status=$?
  1313. if test -s conftest.err; then
  1314. grep -v '^ *+' conftest.err >conftest.er1
  1315. cat conftest.er1 >&5
  1316. mv -f conftest.er1 conftest.err
  1317. fi
  1318. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1319. test $ac_status = 0; } && {
  1320. test -z "$ac_c_werror_flag" ||
  1321. test ! -s conftest.err
  1322. } && test -s conftest.$ac_objext; then :
  1323. ac_retval=0
  1324. else
  1325. $as_echo "$as_me: failed program was:" >&5
  1326. sed 's/^/| /' conftest.$ac_ext >&5
  1327. ac_retval=1
  1328. fi
  1329. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1330. as_fn_set_status $ac_retval
  1331. } # ac_fn_c_try_compile
  1332. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1333. # -------------------------------------------
  1334. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1335. # variable VAR accordingly.
  1336. ac_fn_c_check_type ()
  1337. {
  1338. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1340. $as_echo_n "checking for $2... " >&6; }
  1341. if eval \${$3+:} false; then :
  1342. $as_echo_n "(cached) " >&6
  1343. else
  1344. eval "$3=no"
  1345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1346. /* end confdefs.h. */
  1347. $4
  1348. int
  1349. main ()
  1350. {
  1351. if (sizeof ($2))
  1352. return 0;
  1353. ;
  1354. return 0;
  1355. }
  1356. _ACEOF
  1357. if ac_fn_c_try_compile "$LINENO"; then :
  1358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1359. /* end confdefs.h. */
  1360. $4
  1361. int
  1362. main ()
  1363. {
  1364. if (sizeof (($2)))
  1365. return 0;
  1366. ;
  1367. return 0;
  1368. }
  1369. _ACEOF
  1370. if ac_fn_c_try_compile "$LINENO"; then :
  1371. else
  1372. eval "$3=yes"
  1373. fi
  1374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1375. fi
  1376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1377. fi
  1378. eval ac_res=\$$3
  1379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1380. $as_echo "$ac_res" >&6; }
  1381. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1382. } # ac_fn_c_check_type
  1383. # ac_fn_c_try_cpp LINENO
  1384. # ----------------------
  1385. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1386. ac_fn_c_try_cpp ()
  1387. {
  1388. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1389. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1390. case "(($ac_try" in
  1391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1392. *) ac_try_echo=$ac_try;;
  1393. esac
  1394. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1395. $as_echo "$ac_try_echo"; } >&5
  1396. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1397. ac_status=$?
  1398. if test -s conftest.err; then
  1399. grep -v '^ *+' conftest.err >conftest.er1
  1400. cat conftest.er1 >&5
  1401. mv -f conftest.er1 conftest.err
  1402. fi
  1403. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1404. test $ac_status = 0; } > conftest.i && {
  1405. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1406. test ! -s conftest.err
  1407. }; then :
  1408. ac_retval=0
  1409. else
  1410. $as_echo "$as_me: failed program was:" >&5
  1411. sed 's/^/| /' conftest.$ac_ext >&5
  1412. ac_retval=1
  1413. fi
  1414. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1415. as_fn_set_status $ac_retval
  1416. } # ac_fn_c_try_cpp
  1417. # ac_fn_c_try_run LINENO
  1418. # ----------------------
  1419. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1420. # that executables *can* be run.
  1421. ac_fn_c_try_run ()
  1422. {
  1423. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1424. if { { ac_try="$ac_link"
  1425. case "(($ac_try" in
  1426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1427. *) ac_try_echo=$ac_try;;
  1428. esac
  1429. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1430. $as_echo "$ac_try_echo"; } >&5
  1431. (eval "$ac_link") 2>&5
  1432. ac_status=$?
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1435. { { case "(($ac_try" in
  1436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1437. *) ac_try_echo=$ac_try;;
  1438. esac
  1439. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1440. $as_echo "$ac_try_echo"; } >&5
  1441. (eval "$ac_try") 2>&5
  1442. ac_status=$?
  1443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1444. test $ac_status = 0; }; }; then :
  1445. ac_retval=0
  1446. else
  1447. $as_echo "$as_me: program exited with status $ac_status" >&5
  1448. $as_echo "$as_me: failed program was:" >&5
  1449. sed 's/^/| /' conftest.$ac_ext >&5
  1450. ac_retval=$ac_status
  1451. fi
  1452. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1453. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1454. as_fn_set_status $ac_retval
  1455. } # ac_fn_c_try_run
  1456. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1457. # -------------------------------------------------------
  1458. # Tests whether HEADER exists and can be compiled using the include files in
  1459. # INCLUDES, setting the cache variable VAR accordingly.
  1460. ac_fn_c_check_header_compile ()
  1461. {
  1462. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1464. $as_echo_n "checking for $2... " >&6; }
  1465. if eval \${$3+:} false; then :
  1466. $as_echo_n "(cached) " >&6
  1467. else
  1468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1469. /* end confdefs.h. */
  1470. $4
  1471. #include <$2>
  1472. _ACEOF
  1473. if ac_fn_c_try_compile "$LINENO"; then :
  1474. eval "$3=yes"
  1475. else
  1476. eval "$3=no"
  1477. fi
  1478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1479. fi
  1480. eval ac_res=\$$3
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1482. $as_echo "$ac_res" >&6; }
  1483. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1484. } # ac_fn_c_check_header_compile
  1485. # ac_fn_c_try_link LINENO
  1486. # -----------------------
  1487. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1488. ac_fn_c_try_link ()
  1489. {
  1490. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1491. rm -f conftest.$ac_objext conftest$ac_exeext
  1492. if { { ac_try="$ac_link"
  1493. case "(($ac_try" in
  1494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1495. *) ac_try_echo=$ac_try;;
  1496. esac
  1497. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1498. $as_echo "$ac_try_echo"; } >&5
  1499. (eval "$ac_link") 2>conftest.err
  1500. ac_status=$?
  1501. if test -s conftest.err; then
  1502. grep -v '^ *+' conftest.err >conftest.er1
  1503. cat conftest.er1 >&5
  1504. mv -f conftest.er1 conftest.err
  1505. fi
  1506. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1507. test $ac_status = 0; } && {
  1508. test -z "$ac_c_werror_flag" ||
  1509. test ! -s conftest.err
  1510. } && test -s conftest$ac_exeext && {
  1511. test "$cross_compiling" = yes ||
  1512. test -x conftest$ac_exeext
  1513. }; then :
  1514. ac_retval=0
  1515. else
  1516. $as_echo "$as_me: failed program was:" >&5
  1517. sed 's/^/| /' conftest.$ac_ext >&5
  1518. ac_retval=1
  1519. fi
  1520. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1521. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1522. # interfere with the next link command; also delete a directory that is
  1523. # left behind by Apple's compiler. We do this before executing the actions.
  1524. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1525. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1526. as_fn_set_status $ac_retval
  1527. } # ac_fn_c_try_link
  1528. # ac_fn_c_check_func LINENO FUNC VAR
  1529. # ----------------------------------
  1530. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1531. ac_fn_c_check_func ()
  1532. {
  1533. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1535. $as_echo_n "checking for $2... " >&6; }
  1536. if eval \${$3+:} false; then :
  1537. $as_echo_n "(cached) " >&6
  1538. else
  1539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1540. /* end confdefs.h. */
  1541. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1542. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1543. #define $2 innocuous_$2
  1544. /* System header to define __stub macros and hopefully few prototypes,
  1545. which can conflict with char $2 (); below.
  1546. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1547. <limits.h> exists even on freestanding compilers. */
  1548. #ifdef __STDC__
  1549. # include <limits.h>
  1550. #else
  1551. # include <assert.h>
  1552. #endif
  1553. #undef $2
  1554. /* Override any GCC internal prototype to avoid an error.
  1555. Use char because int might match the return type of a GCC
  1556. builtin and then its argument prototype would still apply. */
  1557. #ifdef __cplusplus
  1558. extern "C"
  1559. #endif
  1560. char $2 ();
  1561. /* The GNU C library defines this for functions which it implements
  1562. to always fail with ENOSYS. Some functions are actually named
  1563. something starting with __ and the normal name is an alias. */
  1564. #if defined __stub_$2 || defined __stub___$2
  1565. choke me
  1566. #endif
  1567. int
  1568. main ()
  1569. {
  1570. return $2 ();
  1571. ;
  1572. return 0;
  1573. }
  1574. _ACEOF
  1575. if ac_fn_c_try_link "$LINENO"; then :
  1576. eval "$3=yes"
  1577. else
  1578. eval "$3=no"
  1579. fi
  1580. rm -f core conftest.err conftest.$ac_objext \
  1581. conftest$ac_exeext conftest.$ac_ext
  1582. fi
  1583. eval ac_res=\$$3
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1585. $as_echo "$ac_res" >&6; }
  1586. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1587. } # ac_fn_c_check_func
  1588. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1589. # -------------------------------------------------------
  1590. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1591. # the include files in INCLUDES and setting the cache variable VAR
  1592. # accordingly.
  1593. ac_fn_c_check_header_mongrel ()
  1594. {
  1595. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1596. if eval \${$3+:} false; then :
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1598. $as_echo_n "checking for $2... " >&6; }
  1599. if eval \${$3+:} false; then :
  1600. $as_echo_n "(cached) " >&6
  1601. fi
  1602. eval ac_res=\$$3
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1604. $as_echo "$ac_res" >&6; }
  1605. else
  1606. # Is the header compilable?
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1608. $as_echo_n "checking $2 usability... " >&6; }
  1609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1610. /* end confdefs.h. */
  1611. $4
  1612. #include <$2>
  1613. _ACEOF
  1614. if ac_fn_c_try_compile "$LINENO"; then :
  1615. ac_header_compiler=yes
  1616. else
  1617. ac_header_compiler=no
  1618. fi
  1619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1621. $as_echo "$ac_header_compiler" >&6; }
  1622. # Is the header present?
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1624. $as_echo_n "checking $2 presence... " >&6; }
  1625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1626. /* end confdefs.h. */
  1627. #include <$2>
  1628. _ACEOF
  1629. if ac_fn_c_try_cpp "$LINENO"; then :
  1630. ac_header_preproc=yes
  1631. else
  1632. ac_header_preproc=no
  1633. fi
  1634. rm -f conftest.err conftest.i conftest.$ac_ext
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1636. $as_echo "$ac_header_preproc" >&6; }
  1637. # So? What about this header?
  1638. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1639. yes:no: )
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1641. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1643. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1644. ;;
  1645. no:yes:* )
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1647. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1649. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1650. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1651. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1653. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1655. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1656. ;;
  1657. esac
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1659. $as_echo_n "checking for $2... " >&6; }
  1660. if eval \${$3+:} false; then :
  1661. $as_echo_n "(cached) " >&6
  1662. else
  1663. eval "$3=\$ac_header_compiler"
  1664. fi
  1665. eval ac_res=\$$3
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1667. $as_echo "$ac_res" >&6; }
  1668. fi
  1669. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1670. } # ac_fn_c_check_header_mongrel
  1671. cat >config.log <<_ACEOF
  1672. This file contains any messages produced by compilers while
  1673. running configure, to aid debugging if configure makes a mistake.
  1674. It was created by $as_me, which was
  1675. generated by GNU Autoconf 2.69. Invocation command line was
  1676. $ $0 $@
  1677. _ACEOF
  1678. exec 5>>config.log
  1679. {
  1680. cat <<_ASUNAME
  1681. ## --------- ##
  1682. ## Platform. ##
  1683. ## --------- ##
  1684. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1685. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1686. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1687. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1688. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1689. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1690. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1691. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1692. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1693. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1694. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1695. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1696. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1697. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1698. _ASUNAME
  1699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1700. for as_dir in $PATH
  1701. do
  1702. IFS=$as_save_IFS
  1703. test -z "$as_dir" && as_dir=.
  1704. $as_echo "PATH: $as_dir"
  1705. done
  1706. IFS=$as_save_IFS
  1707. } >&5
  1708. cat >&5 <<_ACEOF
  1709. ## ----------- ##
  1710. ## Core tests. ##
  1711. ## ----------- ##
  1712. _ACEOF
  1713. # Keep a trace of the command line.
  1714. # Strip out --no-create and --no-recursion so they do not pile up.
  1715. # Strip out --silent because we don't want to record it for future runs.
  1716. # Also quote any args containing shell meta-characters.
  1717. # Make two passes to allow for proper duplicate-argument suppression.
  1718. ac_configure_args=
  1719. ac_configure_args0=
  1720. ac_configure_args1=
  1721. ac_must_keep_next=false
  1722. for ac_pass in 1 2
  1723. do
  1724. for ac_arg
  1725. do
  1726. case $ac_arg in
  1727. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1728. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1729. | -silent | --silent | --silen | --sile | --sil)
  1730. continue ;;
  1731. *\'*)
  1732. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1733. esac
  1734. case $ac_pass in
  1735. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1736. 2)
  1737. as_fn_append ac_configure_args1 " '$ac_arg'"
  1738. if test $ac_must_keep_next = true; then
  1739. ac_must_keep_next=false # Got value, back to normal.
  1740. else
  1741. case $ac_arg in
  1742. *=* | --config-cache | -C | -disable-* | --disable-* \
  1743. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1744. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1745. | -with-* | --with-* | -without-* | --without-* | --x)
  1746. case "$ac_configure_args0 " in
  1747. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1748. esac
  1749. ;;
  1750. -* ) ac_must_keep_next=true ;;
  1751. esac
  1752. fi
  1753. as_fn_append ac_configure_args " '$ac_arg'"
  1754. ;;
  1755. esac
  1756. done
  1757. done
  1758. { ac_configure_args0=; unset ac_configure_args0;}
  1759. { ac_configure_args1=; unset ac_configure_args1;}
  1760. # When interrupted or exit'd, cleanup temporary files, and complete
  1761. # config.log. We remove comments because anyway the quotes in there
  1762. # would cause problems or look ugly.
  1763. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1764. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1765. trap 'exit_status=$?
  1766. # Save into config.log some information that might help in debugging.
  1767. {
  1768. echo
  1769. $as_echo "## ---------------- ##
  1770. ## Cache variables. ##
  1771. ## ---------------- ##"
  1772. echo
  1773. # The following way of writing the cache mishandles newlines in values,
  1774. (
  1775. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1776. eval ac_val=\$$ac_var
  1777. case $ac_val in #(
  1778. *${as_nl}*)
  1779. case $ac_var in #(
  1780. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1781. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1782. esac
  1783. case $ac_var in #(
  1784. _ | IFS | as_nl) ;; #(
  1785. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1786. *) { eval $ac_var=; unset $ac_var;} ;;
  1787. esac ;;
  1788. esac
  1789. done
  1790. (set) 2>&1 |
  1791. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1792. *${as_nl}ac_space=\ *)
  1793. sed -n \
  1794. "s/'\''/'\''\\\\'\'''\''/g;
  1795. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1796. ;; #(
  1797. *)
  1798. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1799. ;;
  1800. esac |
  1801. sort
  1802. )
  1803. echo
  1804. $as_echo "## ----------------- ##
  1805. ## Output variables. ##
  1806. ## ----------------- ##"
  1807. echo
  1808. for ac_var in $ac_subst_vars
  1809. do
  1810. eval ac_val=\$$ac_var
  1811. case $ac_val in
  1812. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1813. esac
  1814. $as_echo "$ac_var='\''$ac_val'\''"
  1815. done | sort
  1816. echo
  1817. if test -n "$ac_subst_files"; then
  1818. $as_echo "## ------------------- ##
  1819. ## File substitutions. ##
  1820. ## ------------------- ##"
  1821. echo
  1822. for ac_var in $ac_subst_files
  1823. do
  1824. eval ac_val=\$$ac_var
  1825. case $ac_val in
  1826. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1827. esac
  1828. $as_echo "$ac_var='\''$ac_val'\''"
  1829. done | sort
  1830. echo
  1831. fi
  1832. if test -s confdefs.h; then
  1833. $as_echo "## ----------- ##
  1834. ## confdefs.h. ##
  1835. ## ----------- ##"
  1836. echo
  1837. cat confdefs.h
  1838. echo
  1839. fi
  1840. test "$ac_signal" != 0 &&
  1841. $as_echo "$as_me: caught signal $ac_signal"
  1842. $as_echo "$as_me: exit $exit_status"
  1843. } >&5
  1844. rm -f core *.core core.conftest.* &&
  1845. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1846. exit $exit_status
  1847. ' 0
  1848. for ac_signal in 1 2 13 15; do
  1849. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1850. done
  1851. ac_signal=0
  1852. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1853. rm -f -r conftest* confdefs.h
  1854. $as_echo "/* confdefs.h */" > confdefs.h
  1855. # Predefined preprocessor variables.
  1856. cat >>confdefs.h <<_ACEOF
  1857. #define PACKAGE_NAME "$PACKAGE_NAME"
  1858. _ACEOF
  1859. cat >>confdefs.h <<_ACEOF
  1860. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1861. _ACEOF
  1862. cat >>confdefs.h <<_ACEOF
  1863. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1864. _ACEOF
  1865. cat >>confdefs.h <<_ACEOF
  1866. #define PACKAGE_STRING "$PACKAGE_STRING"
  1867. _ACEOF
  1868. cat >>confdefs.h <<_ACEOF
  1869. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1870. _ACEOF
  1871. cat >>confdefs.h <<_ACEOF
  1872. #define PACKAGE_URL "$PACKAGE_URL"
  1873. _ACEOF
  1874. # Let the site file select an alternate cache file if it wants to.
  1875. # Prefer an explicitly selected file to automatically selected ones.
  1876. ac_site_file1=NONE
  1877. ac_site_file2=NONE
  1878. if test -n "$CONFIG_SITE"; then
  1879. # We do not want a PATH search for config.site.
  1880. case $CONFIG_SITE in #((
  1881. -*) ac_site_file1=./$CONFIG_SITE;;
  1882. */*) ac_site_file1=$CONFIG_SITE;;
  1883. *) ac_site_file1=./$CONFIG_SITE;;
  1884. esac
  1885. elif test "x$prefix" != xNONE; then
  1886. ac_site_file1=$prefix/share/config.site
  1887. ac_site_file2=$prefix/etc/config.site
  1888. else
  1889. ac_site_file1=$ac_default_prefix/share/config.site
  1890. ac_site_file2=$ac_default_prefix/etc/config.site
  1891. fi
  1892. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1893. do
  1894. test "x$ac_site_file" = xNONE && continue
  1895. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1897. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1898. sed 's/^/| /' "$ac_site_file" >&5
  1899. . "$ac_site_file" \
  1900. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1901. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1902. as_fn_error $? "failed to load site script $ac_site_file
  1903. See \`config.log' for more details" "$LINENO" 5; }
  1904. fi
  1905. done
  1906. if test -r "$cache_file"; then
  1907. # Some versions of bash will fail to source /dev/null (special files
  1908. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1909. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1910. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1911. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1912. case $cache_file in
  1913. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1914. *) . "./$cache_file";;
  1915. esac
  1916. fi
  1917. else
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1919. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1920. >$cache_file
  1921. fi
  1922. # Check that the precious variables saved in the cache have kept the same
  1923. # value.
  1924. ac_cache_corrupted=false
  1925. for ac_var in $ac_precious_vars; do
  1926. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1927. eval ac_new_set=\$ac_env_${ac_var}_set
  1928. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1929. eval ac_new_val=\$ac_env_${ac_var}_value
  1930. case $ac_old_set,$ac_new_set in
  1931. set,)
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1933. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1934. ac_cache_corrupted=: ;;
  1935. ,set)
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1937. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1938. ac_cache_corrupted=: ;;
  1939. ,);;
  1940. *)
  1941. if test "x$ac_old_val" != "x$ac_new_val"; then
  1942. # differences in whitespace do not lead to failure.
  1943. ac_old_val_w=`echo x $ac_old_val`
  1944. ac_new_val_w=`echo x $ac_new_val`
  1945. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1947. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1948. ac_cache_corrupted=:
  1949. else
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1951. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1952. eval $ac_var=\$ac_old_val
  1953. fi
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1955. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1957. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1958. fi;;
  1959. esac
  1960. # Pass precious variables to config.status.
  1961. if test "$ac_new_set" = set; then
  1962. case $ac_new_val in
  1963. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1964. *) ac_arg=$ac_var=$ac_new_val ;;
  1965. esac
  1966. case " $ac_configure_args " in
  1967. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1968. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1969. esac
  1970. fi
  1971. done
  1972. if $ac_cache_corrupted; then
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1974. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1976. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1977. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1978. fi
  1979. ## -------------------- ##
  1980. ## Main body of script. ##
  1981. ## -------------------- ##
  1982. ac_ext=c
  1983. ac_cpp='$CPP $CPPFLAGS'
  1984. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1985. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1986. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1987. # check existence of the package
  1988. # specify output header file
  1989. ac_config_headers="$ac_config_headers autoconfig.h"
  1990. ac_aux_dir=
  1991. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1992. if test -f "$ac_dir/install-sh"; then
  1993. ac_aux_dir=$ac_dir
  1994. ac_install_sh="$ac_aux_dir/install-sh -c"
  1995. break
  1996. elif test -f "$ac_dir/install.sh"; then
  1997. ac_aux_dir=$ac_dir
  1998. ac_install_sh="$ac_aux_dir/install.sh -c"
  1999. break
  2000. elif test -f "$ac_dir/shtool"; then
  2001. ac_aux_dir=$ac_dir
  2002. ac_install_sh="$ac_aux_dir/shtool install -c"
  2003. break
  2004. fi
  2005. done
  2006. if test -z "$ac_aux_dir"; then
  2007. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2008. fi
  2009. # These three variables are undocumented and unsupported,
  2010. # and are intended to be withdrawn in a future Autoconf release.
  2011. # They can cause serious problems if a builder's source tree is in a directory
  2012. # whose full name contains unusual characters.
  2013. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2014. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2015. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2016. # Make sure we can run config.sub.
  2017. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2018. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2020. $as_echo_n "checking build system type... " >&6; }
  2021. if ${ac_cv_build+:} false; then :
  2022. $as_echo_n "(cached) " >&6
  2023. else
  2024. ac_build_alias=$build_alias
  2025. test "x$ac_build_alias" = x &&
  2026. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2027. test "x$ac_build_alias" = x &&
  2028. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2029. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2030. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2031. fi
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2033. $as_echo "$ac_cv_build" >&6; }
  2034. case $ac_cv_build in
  2035. *-*-*) ;;
  2036. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2037. esac
  2038. build=$ac_cv_build
  2039. ac_save_IFS=$IFS; IFS='-'
  2040. set x $ac_cv_build
  2041. shift
  2042. build_cpu=$1
  2043. build_vendor=$2
  2044. shift; shift
  2045. # Remember, the first character of IFS is used to create $*,
  2046. # except with old shells:
  2047. build_os=$*
  2048. IFS=$ac_save_IFS
  2049. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2051. $as_echo_n "checking host system type... " >&6; }
  2052. if ${ac_cv_host+:} false; then :
  2053. $as_echo_n "(cached) " >&6
  2054. else
  2055. if test "x$host_alias" = x; then
  2056. ac_cv_host=$ac_cv_build
  2057. else
  2058. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2059. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2060. fi
  2061. fi
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2063. $as_echo "$ac_cv_host" >&6; }
  2064. case $ac_cv_host in
  2065. *-*-*) ;;
  2066. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2067. esac
  2068. host=$ac_cv_host
  2069. ac_save_IFS=$IFS; IFS='-'
  2070. set x $ac_cv_host
  2071. shift
  2072. host_cpu=$1
  2073. host_vendor=$2
  2074. shift; shift
  2075. # Remember, the first character of IFS is used to create $*,
  2076. # except with old shells:
  2077. host_os=$*
  2078. IFS=$ac_save_IFS
  2079. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2080. HOST_OS=${host_os}
  2081. PBX_WINARCH=0
  2082. case "${host_os}" in
  2083. freebsd*)
  2084. OSARCH=FreeBSD
  2085. ;;
  2086. netbsd*)
  2087. OSARCH=NetBSD
  2088. ;;
  2089. openbsd*)
  2090. OSARCH=OpenBSD
  2091. ;;
  2092. solaris*)
  2093. OSARCH=SunOS
  2094. ;;
  2095. mingw32)
  2096. OSARCH=mingw32
  2097. PBX_WINARCH=1
  2098. ;;
  2099. cygwin)
  2100. OSARCH=cygwin
  2101. PBX_WINARCH=1
  2102. ;;
  2103. linux-gnueabi)
  2104. OSARCH=linux-gnu
  2105. ;;
  2106. *)
  2107. OSARCH=${host_os}
  2108. ;;
  2109. esac
  2110. # Checks for programs.
  2111. ac_ext=c
  2112. ac_cpp='$CPP $CPPFLAGS'
  2113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2116. if test -n "$ac_tool_prefix"; then
  2117. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2118. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2120. $as_echo_n "checking for $ac_word... " >&6; }
  2121. if ${ac_cv_prog_CC+:} false; then :
  2122. $as_echo_n "(cached) " >&6
  2123. else
  2124. if test -n "$CC"; then
  2125. ac_cv_prog_CC="$CC" # Let the user override the test.
  2126. else
  2127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2128. for as_dir in $PATH
  2129. do
  2130. IFS=$as_save_IFS
  2131. test -z "$as_dir" && as_dir=.
  2132. for ac_exec_ext in '' $ac_executable_extensions; do
  2133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2134. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2136. break 2
  2137. fi
  2138. done
  2139. done
  2140. IFS=$as_save_IFS
  2141. fi
  2142. fi
  2143. CC=$ac_cv_prog_CC
  2144. if test -n "$CC"; then
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2146. $as_echo "$CC" >&6; }
  2147. else
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2149. $as_echo "no" >&6; }
  2150. fi
  2151. fi
  2152. if test -z "$ac_cv_prog_CC"; then
  2153. ac_ct_CC=$CC
  2154. # Extract the first word of "gcc", so it can be a program name with args.
  2155. set dummy gcc; ac_word=$2
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2157. $as_echo_n "checking for $ac_word... " >&6; }
  2158. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2159. $as_echo_n "(cached) " >&6
  2160. else
  2161. if test -n "$ac_ct_CC"; then
  2162. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2163. else
  2164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2165. for as_dir in $PATH
  2166. do
  2167. IFS=$as_save_IFS
  2168. test -z "$as_dir" && as_dir=.
  2169. for ac_exec_ext in '' $ac_executable_extensions; do
  2170. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2171. ac_cv_prog_ac_ct_CC="gcc"
  2172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2173. break 2
  2174. fi
  2175. done
  2176. done
  2177. IFS=$as_save_IFS
  2178. fi
  2179. fi
  2180. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2181. if test -n "$ac_ct_CC"; then
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2183. $as_echo "$ac_ct_CC" >&6; }
  2184. else
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2186. $as_echo "no" >&6; }
  2187. fi
  2188. if test "x$ac_ct_CC" = x; then
  2189. CC=""
  2190. else
  2191. case $cross_compiling:$ac_tool_warned in
  2192. yes:)
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2195. ac_tool_warned=yes ;;
  2196. esac
  2197. CC=$ac_ct_CC
  2198. fi
  2199. else
  2200. CC="$ac_cv_prog_CC"
  2201. fi
  2202. if test -z "$CC"; then
  2203. if test -n "$ac_tool_prefix"; then
  2204. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2205. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2207. $as_echo_n "checking for $ac_word... " >&6; }
  2208. if ${ac_cv_prog_CC+:} false; then :
  2209. $as_echo_n "(cached) " >&6
  2210. else
  2211. if test -n "$CC"; then
  2212. ac_cv_prog_CC="$CC" # Let the user override the test.
  2213. else
  2214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2215. for as_dir in $PATH
  2216. do
  2217. IFS=$as_save_IFS
  2218. test -z "$as_dir" && as_dir=.
  2219. for ac_exec_ext in '' $ac_executable_extensions; do
  2220. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2221. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2223. break 2
  2224. fi
  2225. done
  2226. done
  2227. IFS=$as_save_IFS
  2228. fi
  2229. fi
  2230. CC=$ac_cv_prog_CC
  2231. if test -n "$CC"; then
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2233. $as_echo "$CC" >&6; }
  2234. else
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2236. $as_echo "no" >&6; }
  2237. fi
  2238. fi
  2239. fi
  2240. if test -z "$CC"; then
  2241. # Extract the first word of "cc", so it can be a program name with args.
  2242. set dummy cc; ac_word=$2
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2244. $as_echo_n "checking for $ac_word... " >&6; }
  2245. if ${ac_cv_prog_CC+:} false; then :
  2246. $as_echo_n "(cached) " >&6
  2247. else
  2248. if test -n "$CC"; then
  2249. ac_cv_prog_CC="$CC" # Let the user override the test.
  2250. else
  2251. ac_prog_rejected=no
  2252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2253. for as_dir in $PATH
  2254. do
  2255. IFS=$as_save_IFS
  2256. test -z "$as_dir" && as_dir=.
  2257. for ac_exec_ext in '' $ac_executable_extensions; do
  2258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2259. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2260. ac_prog_rejected=yes
  2261. continue
  2262. fi
  2263. ac_cv_prog_CC="cc"
  2264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2265. break 2
  2266. fi
  2267. done
  2268. done
  2269. IFS=$as_save_IFS
  2270. if test $ac_prog_rejected = yes; then
  2271. # We found a bogon in the path, so make sure we never use it.
  2272. set dummy $ac_cv_prog_CC
  2273. shift
  2274. if test $# != 0; then
  2275. # We chose a different compiler from the bogus one.
  2276. # However, it has the same basename, so the bogon will be chosen
  2277. # first if we set CC to just the basename; use the full file name.
  2278. shift
  2279. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2280. fi
  2281. fi
  2282. fi
  2283. fi
  2284. CC=$ac_cv_prog_CC
  2285. if test -n "$CC"; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2287. $as_echo "$CC" >&6; }
  2288. else
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2290. $as_echo "no" >&6; }
  2291. fi
  2292. fi
  2293. if test -z "$CC"; then
  2294. if test -n "$ac_tool_prefix"; then
  2295. for ac_prog in cl.exe
  2296. do
  2297. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2298. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2300. $as_echo_n "checking for $ac_word... " >&6; }
  2301. if ${ac_cv_prog_CC+:} false; then :
  2302. $as_echo_n "(cached) " >&6
  2303. else
  2304. if test -n "$CC"; then
  2305. ac_cv_prog_CC="$CC" # Let the user override the test.
  2306. else
  2307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2308. for as_dir in $PATH
  2309. do
  2310. IFS=$as_save_IFS
  2311. test -z "$as_dir" && as_dir=.
  2312. for ac_exec_ext in '' $ac_executable_extensions; do
  2313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2314. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2316. break 2
  2317. fi
  2318. done
  2319. done
  2320. IFS=$as_save_IFS
  2321. fi
  2322. fi
  2323. CC=$ac_cv_prog_CC
  2324. if test -n "$CC"; then
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2326. $as_echo "$CC" >&6; }
  2327. else
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2329. $as_echo "no" >&6; }
  2330. fi
  2331. test -n "$CC" && break
  2332. done
  2333. fi
  2334. if test -z "$CC"; then
  2335. ac_ct_CC=$CC
  2336. for ac_prog in cl.exe
  2337. do
  2338. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2339. set dummy $ac_prog; ac_word=$2
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2341. $as_echo_n "checking for $ac_word... " >&6; }
  2342. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2343. $as_echo_n "(cached) " >&6
  2344. else
  2345. if test -n "$ac_ct_CC"; then
  2346. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2347. else
  2348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2349. for as_dir in $PATH
  2350. do
  2351. IFS=$as_save_IFS
  2352. test -z "$as_dir" && as_dir=.
  2353. for ac_exec_ext in '' $ac_executable_extensions; do
  2354. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2355. ac_cv_prog_ac_ct_CC="$ac_prog"
  2356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2357. break 2
  2358. fi
  2359. done
  2360. done
  2361. IFS=$as_save_IFS
  2362. fi
  2363. fi
  2364. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2365. if test -n "$ac_ct_CC"; then
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2367. $as_echo "$ac_ct_CC" >&6; }
  2368. else
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2370. $as_echo "no" >&6; }
  2371. fi
  2372. test -n "$ac_ct_CC" && break
  2373. done
  2374. if test "x$ac_ct_CC" = x; then
  2375. CC=""
  2376. else
  2377. case $cross_compiling:$ac_tool_warned in
  2378. yes:)
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2380. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2381. ac_tool_warned=yes ;;
  2382. esac
  2383. CC=$ac_ct_CC
  2384. fi
  2385. fi
  2386. fi
  2387. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2388. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2389. as_fn_error $? "no acceptable C compiler found in \$PATH
  2390. See \`config.log' for more details" "$LINENO" 5; }
  2391. # Provide some information about the compiler.
  2392. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2393. set X $ac_compile
  2394. ac_compiler=$2
  2395. for ac_option in --version -v -V -qversion; do
  2396. { { ac_try="$ac_compiler $ac_option >&5"
  2397. case "(($ac_try" in
  2398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2399. *) ac_try_echo=$ac_try;;
  2400. esac
  2401. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2402. $as_echo "$ac_try_echo"; } >&5
  2403. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2404. ac_status=$?
  2405. if test -s conftest.err; then
  2406. sed '10a\
  2407. ... rest of stderr output deleted ...
  2408. 10q' conftest.err >conftest.er1
  2409. cat conftest.er1 >&5
  2410. fi
  2411. rm -f conftest.er1 conftest.err
  2412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2413. test $ac_status = 0; }
  2414. done
  2415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2416. /* end confdefs.h. */
  2417. int
  2418. main ()
  2419. {
  2420. ;
  2421. return 0;
  2422. }
  2423. _ACEOF
  2424. ac_clean_files_save=$ac_clean_files
  2425. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2426. # Try to create an executable without -o first, disregard a.out.
  2427. # It will help us diagnose broken compilers, and finding out an intuition
  2428. # of exeext.
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2430. $as_echo_n "checking whether the C compiler works... " >&6; }
  2431. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2432. # The possible output files:
  2433. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2434. ac_rmfiles=
  2435. for ac_file in $ac_files
  2436. do
  2437. case $ac_file in
  2438. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2439. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2440. esac
  2441. done
  2442. rm -f $ac_rmfiles
  2443. if { { ac_try="$ac_link_default"
  2444. case "(($ac_try" in
  2445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2446. *) ac_try_echo=$ac_try;;
  2447. esac
  2448. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2449. $as_echo "$ac_try_echo"; } >&5
  2450. (eval "$ac_link_default") 2>&5
  2451. ac_status=$?
  2452. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2453. test $ac_status = 0; }; then :
  2454. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2455. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2456. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2457. # so that the user can short-circuit this test for compilers unknown to
  2458. # Autoconf.
  2459. for ac_file in $ac_files ''
  2460. do
  2461. test -f "$ac_file" || continue
  2462. case $ac_file in
  2463. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2464. ;;
  2465. [ab].out )
  2466. # We found the default executable, but exeext='' is most
  2467. # certainly right.
  2468. break;;
  2469. *.* )
  2470. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2471. then :; else
  2472. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2473. fi
  2474. # We set ac_cv_exeext here because the later test for it is not
  2475. # safe: cross compilers may not add the suffix if given an `-o'
  2476. # argument, so we may need to know it at that point already.
  2477. # Even if this section looks crufty: it has the advantage of
  2478. # actually working.
  2479. break;;
  2480. * )
  2481. break;;
  2482. esac
  2483. done
  2484. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2485. else
  2486. ac_file=''
  2487. fi
  2488. if test -z "$ac_file"; then :
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2490. $as_echo "no" >&6; }
  2491. $as_echo "$as_me: failed program was:" >&5
  2492. sed 's/^/| /' conftest.$ac_ext >&5
  2493. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2494. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2495. as_fn_error 77 "C compiler cannot create executables
  2496. See \`config.log' for more details" "$LINENO" 5; }
  2497. else
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2499. $as_echo "yes" >&6; }
  2500. fi
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2502. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2504. $as_echo "$ac_file" >&6; }
  2505. ac_exeext=$ac_cv_exeext
  2506. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2507. ac_clean_files=$ac_clean_files_save
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2509. $as_echo_n "checking for suffix of executables... " >&6; }
  2510. if { { ac_try="$ac_link"
  2511. case "(($ac_try" in
  2512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2513. *) ac_try_echo=$ac_try;;
  2514. esac
  2515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2516. $as_echo "$ac_try_echo"; } >&5
  2517. (eval "$ac_link") 2>&5
  2518. ac_status=$?
  2519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2520. test $ac_status = 0; }; then :
  2521. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2522. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2523. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2524. # `rm'.
  2525. for ac_file in conftest.exe conftest conftest.*; do
  2526. test -f "$ac_file" || continue
  2527. case $ac_file in
  2528. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2529. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2530. break;;
  2531. * ) break;;
  2532. esac
  2533. done
  2534. else
  2535. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2536. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2537. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2538. See \`config.log' for more details" "$LINENO" 5; }
  2539. fi
  2540. rm -f conftest conftest$ac_cv_exeext
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2542. $as_echo "$ac_cv_exeext" >&6; }
  2543. rm -f conftest.$ac_ext
  2544. EXEEXT=$ac_cv_exeext
  2545. ac_exeext=$EXEEXT
  2546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2547. /* end confdefs.h. */
  2548. #include <stdio.h>
  2549. int
  2550. main ()
  2551. {
  2552. FILE *f = fopen ("conftest.out", "w");
  2553. return ferror (f) || fclose (f) != 0;
  2554. ;
  2555. return 0;
  2556. }
  2557. _ACEOF
  2558. ac_clean_files="$ac_clean_files conftest.out"
  2559. # Check that the compiler produces executables we can run. If not, either
  2560. # the compiler is broken, or we cross compile.
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2562. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2563. if test "$cross_compiling" != yes; then
  2564. { { ac_try="$ac_link"
  2565. case "(($ac_try" in
  2566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2567. *) ac_try_echo=$ac_try;;
  2568. esac
  2569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2570. $as_echo "$ac_try_echo"; } >&5
  2571. (eval "$ac_link") 2>&5
  2572. ac_status=$?
  2573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2574. test $ac_status = 0; }
  2575. if { ac_try='./conftest$ac_cv_exeext'
  2576. { { case "(($ac_try" in
  2577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2578. *) ac_try_echo=$ac_try;;
  2579. esac
  2580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2581. $as_echo "$ac_try_echo"; } >&5
  2582. (eval "$ac_try") 2>&5
  2583. ac_status=$?
  2584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2585. test $ac_status = 0; }; }; then
  2586. cross_compiling=no
  2587. else
  2588. if test "$cross_compiling" = maybe; then
  2589. cross_compiling=yes
  2590. else
  2591. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2592. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2593. as_fn_error $? "cannot run C compiled programs.
  2594. If you meant to cross compile, use \`--host'.
  2595. See \`config.log' for more details" "$LINENO" 5; }
  2596. fi
  2597. fi
  2598. fi
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2600. $as_echo "$cross_compiling" >&6; }
  2601. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2602. ac_clean_files=$ac_clean_files_save
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2604. $as_echo_n "checking for suffix of object files... " >&6; }
  2605. if ${ac_cv_objext+:} false; then :
  2606. $as_echo_n "(cached) " >&6
  2607. else
  2608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2609. /* end confdefs.h. */
  2610. int
  2611. main ()
  2612. {
  2613. ;
  2614. return 0;
  2615. }
  2616. _ACEOF
  2617. rm -f conftest.o conftest.obj
  2618. if { { ac_try="$ac_compile"
  2619. case "(($ac_try" in
  2620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2621. *) ac_try_echo=$ac_try;;
  2622. esac
  2623. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2624. $as_echo "$ac_try_echo"; } >&5
  2625. (eval "$ac_compile") 2>&5
  2626. ac_status=$?
  2627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2628. test $ac_status = 0; }; then :
  2629. for ac_file in conftest.o conftest.obj conftest.*; do
  2630. test -f "$ac_file" || continue;
  2631. case $ac_file in
  2632. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2633. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2634. break;;
  2635. esac
  2636. done
  2637. else
  2638. $as_echo "$as_me: failed program was:" >&5
  2639. sed 's/^/| /' conftest.$ac_ext >&5
  2640. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2641. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2642. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2643. See \`config.log' for more details" "$LINENO" 5; }
  2644. fi
  2645. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2646. fi
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2648. $as_echo "$ac_cv_objext" >&6; }
  2649. OBJEXT=$ac_cv_objext
  2650. ac_objext=$OBJEXT
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2652. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2653. if ${ac_cv_c_compiler_gnu+:} false; then :
  2654. $as_echo_n "(cached) " >&6
  2655. else
  2656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2657. /* end confdefs.h. */
  2658. int
  2659. main ()
  2660. {
  2661. #ifndef __GNUC__
  2662. choke me
  2663. #endif
  2664. ;
  2665. return 0;
  2666. }
  2667. _ACEOF
  2668. if ac_fn_c_try_compile "$LINENO"; then :
  2669. ac_compiler_gnu=yes
  2670. else
  2671. ac_compiler_gnu=no
  2672. fi
  2673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2674. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2675. fi
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2677. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2678. if test $ac_compiler_gnu = yes; then
  2679. GCC=yes
  2680. else
  2681. GCC=
  2682. fi
  2683. ac_test_CFLAGS=${CFLAGS+set}
  2684. ac_save_CFLAGS=$CFLAGS
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2686. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2687. if ${ac_cv_prog_cc_g+:} false; then :
  2688. $as_echo_n "(cached) " >&6
  2689. else
  2690. ac_save_c_werror_flag=$ac_c_werror_flag
  2691. ac_c_werror_flag=yes
  2692. ac_cv_prog_cc_g=no
  2693. CFLAGS="-g"
  2694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2695. /* end confdefs.h. */
  2696. int
  2697. main ()
  2698. {
  2699. ;
  2700. return 0;
  2701. }
  2702. _ACEOF
  2703. if ac_fn_c_try_compile "$LINENO"; then :
  2704. ac_cv_prog_cc_g=yes
  2705. else
  2706. CFLAGS=""
  2707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2708. /* end confdefs.h. */
  2709. int
  2710. main ()
  2711. {
  2712. ;
  2713. return 0;
  2714. }
  2715. _ACEOF
  2716. if ac_fn_c_try_compile "$LINENO"; then :
  2717. else
  2718. ac_c_werror_flag=$ac_save_c_werror_flag
  2719. CFLAGS="-g"
  2720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2721. /* end confdefs.h. */
  2722. int
  2723. main ()
  2724. {
  2725. ;
  2726. return 0;
  2727. }
  2728. _ACEOF
  2729. if ac_fn_c_try_compile "$LINENO"; then :
  2730. ac_cv_prog_cc_g=yes
  2731. fi
  2732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2733. fi
  2734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2735. fi
  2736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2737. ac_c_werror_flag=$ac_save_c_werror_flag
  2738. fi
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2740. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2741. if test "$ac_test_CFLAGS" = set; then
  2742. CFLAGS=$ac_save_CFLAGS
  2743. elif test $ac_cv_prog_cc_g = yes; then
  2744. if test "$GCC" = yes; then
  2745. CFLAGS="-g -O2"
  2746. else
  2747. CFLAGS="-g"
  2748. fi
  2749. else
  2750. if test "$GCC" = yes; then
  2751. CFLAGS="-O2"
  2752. else
  2753. CFLAGS=
  2754. fi
  2755. fi
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2757. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2758. if ${ac_cv_prog_cc_c89+:} false; then :
  2759. $as_echo_n "(cached) " >&6
  2760. else
  2761. ac_cv_prog_cc_c89=no
  2762. ac_save_CC=$CC
  2763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2764. /* end confdefs.h. */
  2765. #include <stdarg.h>
  2766. #include <stdio.h>
  2767. struct stat;
  2768. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2769. struct buf { int x; };
  2770. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2771. static char *e (p, i)
  2772. char **p;
  2773. int i;
  2774. {
  2775. return p[i];
  2776. }
  2777. static char *f (char * (*g) (char **, int), char **p, ...)
  2778. {
  2779. char *s;
  2780. va_list v;
  2781. va_start (v,p);
  2782. s = g (p, va_arg (v,int));
  2783. va_end (v);
  2784. return s;
  2785. }
  2786. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2787. function prototypes and stuff, but not '\xHH' hex character constants.
  2788. These don't provoke an error unfortunately, instead are silently treated
  2789. as 'x'. The following induces an error, until -std is added to get
  2790. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2791. array size at least. It's necessary to write '\x00'==0 to get something
  2792. that's true only with -std. */
  2793. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2794. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2795. inside strings and character constants. */
  2796. #define FOO(x) 'x'
  2797. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2798. int test (int i, double x);
  2799. struct s1 {int (*f) (int a);};
  2800. struct s2 {int (*f) (double a);};
  2801. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2802. int argc;
  2803. char **argv;
  2804. int
  2805. main ()
  2806. {
  2807. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2808. ;
  2809. return 0;
  2810. }
  2811. _ACEOF
  2812. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2813. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2814. do
  2815. CC="$ac_save_CC $ac_arg"
  2816. if ac_fn_c_try_compile "$LINENO"; then :
  2817. ac_cv_prog_cc_c89=$ac_arg
  2818. fi
  2819. rm -f core conftest.err conftest.$ac_objext
  2820. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2821. done
  2822. rm -f conftest.$ac_ext
  2823. CC=$ac_save_CC
  2824. fi
  2825. # AC_CACHE_VAL
  2826. case "x$ac_cv_prog_cc_c89" in
  2827. x)
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2829. $as_echo "none needed" >&6; } ;;
  2830. xno)
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2832. $as_echo "unsupported" >&6; } ;;
  2833. *)
  2834. CC="$CC $ac_cv_prog_cc_c89"
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2836. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2837. esac
  2838. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2839. fi
  2840. ac_ext=c
  2841. ac_cpp='$CPP $CPPFLAGS'
  2842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  2846. $as_echo_n "checking for GNU make... " >&6; }
  2847. if ${ac_cv_GNU_MAKE+:} false; then :
  2848. $as_echo_n "(cached) " >&6
  2849. else
  2850. ac_cv_GNU_MAKE='Not Found' ;
  2851. ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
  2852. ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
  2853. for a in make gmake gnumake ; do
  2854. if test -z "$a" ; then continue ; fi ;
  2855. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
  2856. ac_cv_GNU_MAKE=$a ;
  2857. ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
  2858. ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
  2859. break;
  2860. fi
  2861. done ;
  2862. fi
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
  2864. $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
  2865. if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
  2866. as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
  2867. exit 1
  2868. fi
  2869. GNU_MAKE=$ac_cv_GNU_MAKE
  2870. ac_ext=c
  2871. ac_cpp='$CPP $CPPFLAGS'
  2872. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2873. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2874. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2875. # Check whether --enable-debug was given.
  2876. if test "${enable_debug+set}" = set; then :
  2877. enableval=$enable_debug; case "${enableval}" in
  2878. y|ye|yes) MENUSELECT_DEBUG=yes ;;
  2879. n|no) MENUSELECT_DEBUG=no ;;
  2880. *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
  2881. esac
  2882. fi
  2883. # Support weak symbols on a platform specific basis. The Mac OS X
  2884. # (Darwin) support must be isolated from the other platforms because
  2885. # it has caused other platforms to fail.
  2886. #
  2887. case "${OSARCH}" in
  2888. darwin*)
  2889. # Allow weak symbol support on Darwin platforms only because there
  2890. # is active community support for it.
  2891. # However, Darwin seems to break weak symbols for each new version.
  2892. #
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weak_import' support" >&5
  2894. $as_echo_n "checking for compiler 'attribute weak_import' support... " >&6; }
  2895. saved_CFLAGS="$CFLAGS"
  2896. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  2897. PBX_WEAKREF=0
  2898. if test "x" = "x"
  2899. then
  2900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2901. /* end confdefs.h. */
  2902. void __attribute__((weak_import)) *test(void *muffin, ...) {return (void *) 0;}
  2903. int
  2904. main ()
  2905. {
  2906. ;
  2907. return 0;
  2908. }
  2909. _ACEOF
  2910. if ac_fn_c_try_compile "$LINENO"; then :
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2912. $as_echo "yes" >&6; }
  2913. PBX_WEAKREF=1
  2914. cat >>confdefs.h <<_ACEOF
  2915. #define HAVE_ATTRIBUTE_weak_import 1
  2916. _ACEOF
  2917. else
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2919. $as_echo "no" >&6; }
  2920. fi
  2921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2922. else
  2923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2924. /* end confdefs.h. */
  2925. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  2926. int
  2927. main ()
  2928. {
  2929. ;
  2930. return 0;
  2931. }
  2932. _ACEOF
  2933. if ac_fn_c_try_compile "$LINENO"; then :
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2935. $as_echo "yes" >&6; }
  2936. PBX_WEAKREF=1
  2937. cat >>confdefs.h <<_ACEOF
  2938. #define HAVE_ATTRIBUTE_weak_import 1
  2939. _ACEOF
  2940. else
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2942. $as_echo "no" >&6; }
  2943. fi
  2944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2945. fi
  2946. CFLAGS="$saved_CFLAGS"
  2947. # Several other platforms including Linux have GCC versions that
  2948. # define the weak attribute. However, this attribute is only
  2949. # setup for use in the code by Darwin.
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weak' support" >&5
  2951. $as_echo_n "checking for compiler 'attribute weak' support... " >&6; }
  2952. saved_CFLAGS="$CFLAGS"
  2953. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  2954. PBX_WEAKREF=0
  2955. if test "x" = "x"
  2956. then
  2957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2958. /* end confdefs.h. */
  2959. void __attribute__((weak)) *test(void *muffin, ...) {return (void *) 0;}
  2960. int
  2961. main ()
  2962. {
  2963. ;
  2964. return 0;
  2965. }
  2966. _ACEOF
  2967. if ac_fn_c_try_compile "$LINENO"; then :
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2969. $as_echo "yes" >&6; }
  2970. PBX_WEAKREF=1
  2971. cat >>confdefs.h <<_ACEOF
  2972. #define HAVE_ATTRIBUTE_weak 1
  2973. _ACEOF
  2974. else
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2976. $as_echo "no" >&6; }
  2977. fi
  2978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2979. else
  2980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2981. /* end confdefs.h. */
  2982. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  2983. int
  2984. main ()
  2985. {
  2986. ;
  2987. return 0;
  2988. }
  2989. _ACEOF
  2990. if ac_fn_c_try_compile "$LINENO"; then :
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2992. $as_echo "yes" >&6; }
  2993. PBX_WEAKREF=1
  2994. cat >>confdefs.h <<_ACEOF
  2995. #define HAVE_ATTRIBUTE_weak 1
  2996. _ACEOF
  2997. else
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2999. $as_echo "no" >&6; }
  3000. fi
  3001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3002. fi
  3003. CFLAGS="$saved_CFLAGS"
  3004. ;;
  3005. linux-gnu)
  3006. # Primarily support weak symbols on Linux platforms.
  3007. #
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weakref' support" >&5
  3009. $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
  3010. saved_CFLAGS="$CFLAGS"
  3011. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  3012. PBX_WEAKREF=0
  3013. if test "xweakref("foo")" = "x"
  3014. then
  3015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3016. /* end confdefs.h. */
  3017. static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
  3018. int
  3019. main ()
  3020. {
  3021. ;
  3022. return 0;
  3023. }
  3024. _ACEOF
  3025. if ac_fn_c_try_compile "$LINENO"; then :
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3027. $as_echo "yes" >&6; }
  3028. PBX_WEAKREF=1
  3029. cat >>confdefs.h <<_ACEOF
  3030. #define HAVE_ATTRIBUTE_weakref 1
  3031. _ACEOF
  3032. else
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3034. $as_echo "no" >&6; }
  3035. fi
  3036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3037. else
  3038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3039. /* end confdefs.h. */
  3040. static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
  3041. int
  3042. main ()
  3043. {
  3044. ;
  3045. return 0;
  3046. }
  3047. _ACEOF
  3048. if ac_fn_c_try_compile "$LINENO"; then :
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3050. $as_echo "yes" >&6; }
  3051. PBX_WEAKREF=1
  3052. cat >>confdefs.h <<_ACEOF
  3053. #define HAVE_ATTRIBUTE_weakref 1
  3054. _ACEOF
  3055. else
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3057. $as_echo "no" >&6; }
  3058. fi
  3059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3060. fi
  3061. CFLAGS="$saved_CFLAGS"
  3062. ;;
  3063. *)
  3064. # Allow weak symbols on other platforms. However, any problems
  3065. # with this feature on other platforms must be fixed by the
  3066. # community.
  3067. #
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute weakref' support" >&5
  3069. $as_echo_n "checking for compiler 'attribute weakref' support... " >&6; }
  3070. saved_CFLAGS="$CFLAGS"
  3071. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  3072. PBX_WEAKREF=0
  3073. if test "xweakref("foo")" = "x"
  3074. then
  3075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3076. /* end confdefs.h. */
  3077. static void __attribute__((weakref)) *test(void *muffin, ...) {return (void *) 0;}
  3078. int
  3079. main ()
  3080. {
  3081. ;
  3082. return 0;
  3083. }
  3084. _ACEOF
  3085. if ac_fn_c_try_compile "$LINENO"; then :
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3087. $as_echo "yes" >&6; }
  3088. PBX_WEAKREF=1
  3089. cat >>confdefs.h <<_ACEOF
  3090. #define HAVE_ATTRIBUTE_weakref 1
  3091. _ACEOF
  3092. else
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3094. $as_echo "no" >&6; }
  3095. fi
  3096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3097. else
  3098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3099. /* end confdefs.h. */
  3100. static void __attribute__((weakref("foo"))) *test(void *muffin, ...) {return (void *) 0;}
  3101. int
  3102. main ()
  3103. {
  3104. ;
  3105. return 0;
  3106. }
  3107. _ACEOF
  3108. if ac_fn_c_try_compile "$LINENO"; then :
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3110. $as_echo "yes" >&6; }
  3111. PBX_WEAKREF=1
  3112. cat >>confdefs.h <<_ACEOF
  3113. #define HAVE_ATTRIBUTE_weakref 1
  3114. _ACEOF
  3115. else
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3117. $as_echo "no" >&6; }
  3118. fi
  3119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3120. fi
  3121. CFLAGS="$saved_CFLAGS"
  3122. ;;
  3123. esac
  3124. ac_ext=c
  3125. ac_cpp='$CPP $CPPFLAGS'
  3126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3130. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3131. # On Suns, sometimes $CPP names a directory.
  3132. if test -n "$CPP" && test -d "$CPP"; then
  3133. CPP=
  3134. fi
  3135. if test -z "$CPP"; then
  3136. if ${ac_cv_prog_CPP+:} false; then :
  3137. $as_echo_n "(cached) " >&6
  3138. else
  3139. # Double quotes because CPP needs to be expanded
  3140. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3141. do
  3142. ac_preproc_ok=false
  3143. for ac_c_preproc_warn_flag in '' yes
  3144. do
  3145. # Use a header file that comes with gcc, so configuring glibc
  3146. # with a fresh cross-compiler works.
  3147. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3148. # <limits.h> exists even on freestanding compilers.
  3149. # On the NeXT, cc -E runs the code through the compiler's parser,
  3150. # not just through cpp. "Syntax error" is here to catch this case.
  3151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3152. /* end confdefs.h. */
  3153. #ifdef __STDC__
  3154. # include <limits.h>
  3155. #else
  3156. # include <assert.h>
  3157. #endif
  3158. Syntax error
  3159. _ACEOF
  3160. if ac_fn_c_try_cpp "$LINENO"; then :
  3161. else
  3162. # Broken: fails on valid input.
  3163. continue
  3164. fi
  3165. rm -f conftest.err conftest.i conftest.$ac_ext
  3166. # OK, works on sane cases. Now check whether nonexistent headers
  3167. # can be detected and how.
  3168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3169. /* end confdefs.h. */
  3170. #include <ac_nonexistent.h>
  3171. _ACEOF
  3172. if ac_fn_c_try_cpp "$LINENO"; then :
  3173. # Broken: success on invalid input.
  3174. continue
  3175. else
  3176. # Passes both tests.
  3177. ac_preproc_ok=:
  3178. break
  3179. fi
  3180. rm -f conftest.err conftest.i conftest.$ac_ext
  3181. done
  3182. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3183. rm -f conftest.i conftest.err conftest.$ac_ext
  3184. if $ac_preproc_ok; then :
  3185. break
  3186. fi
  3187. done
  3188. ac_cv_prog_CPP=$CPP
  3189. fi
  3190. CPP=$ac_cv_prog_CPP
  3191. else
  3192. ac_cv_prog_CPP=$CPP
  3193. fi
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3195. $as_echo "$CPP" >&6; }
  3196. ac_preproc_ok=false
  3197. for ac_c_preproc_warn_flag in '' yes
  3198. do
  3199. # Use a header file that comes with gcc, so configuring glibc
  3200. # with a fresh cross-compiler works.
  3201. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3202. # <limits.h> exists even on freestanding compilers.
  3203. # On the NeXT, cc -E runs the code through the compiler's parser,
  3204. # not just through cpp. "Syntax error" is here to catch this case.
  3205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3206. /* end confdefs.h. */
  3207. #ifdef __STDC__
  3208. # include <limits.h>
  3209. #else
  3210. # include <assert.h>
  3211. #endif
  3212. Syntax error
  3213. _ACEOF
  3214. if ac_fn_c_try_cpp "$LINENO"; then :
  3215. else
  3216. # Broken: fails on valid input.
  3217. continue
  3218. fi
  3219. rm -f conftest.err conftest.i conftest.$ac_ext
  3220. # OK, works on sane cases. Now check whether nonexistent headers
  3221. # can be detected and how.
  3222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3223. /* end confdefs.h. */
  3224. #include <ac_nonexistent.h>
  3225. _ACEOF
  3226. if ac_fn_c_try_cpp "$LINENO"; then :
  3227. # Broken: success on invalid input.
  3228. continue
  3229. else
  3230. # Passes both tests.
  3231. ac_preproc_ok=:
  3232. break
  3233. fi
  3234. rm -f conftest.err conftest.i conftest.$ac_ext
  3235. done
  3236. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3237. rm -f conftest.i conftest.err conftest.$ac_ext
  3238. if $ac_preproc_ok; then :
  3239. else
  3240. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3241. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3242. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3243. See \`config.log' for more details" "$LINENO" 5; }
  3244. fi
  3245. ac_ext=c
  3246. ac_cpp='$CPP $CPPFLAGS'
  3247. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3248. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3249. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3251. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3252. if ${ac_cv_path_GREP+:} false; then :
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. if test -z "$GREP"; then
  3256. ac_path_GREP_found=false
  3257. # Loop through the user's path and test for each of PROGNAME-LIST
  3258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3259. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3260. do
  3261. IFS=$as_save_IFS
  3262. test -z "$as_dir" && as_dir=.
  3263. for ac_prog in grep ggrep; do
  3264. for ac_exec_ext in '' $ac_executable_extensions; do
  3265. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3266. as_fn_executable_p "$ac_path_GREP" || continue
  3267. # Check for GNU ac_path_GREP and select it if it is found.
  3268. # Check for GNU $ac_path_GREP
  3269. case `"$ac_path_GREP" --version 2>&1` in
  3270. *GNU*)
  3271. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3272. *)
  3273. ac_count=0
  3274. $as_echo_n 0123456789 >"conftest.in"
  3275. while :
  3276. do
  3277. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3278. mv "conftest.tmp" "conftest.in"
  3279. cp "conftest.in" "conftest.nl"
  3280. $as_echo 'GREP' >> "conftest.nl"
  3281. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3282. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3283. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3284. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3285. # Best one so far, save it but keep looking for a better one
  3286. ac_cv_path_GREP="$ac_path_GREP"
  3287. ac_path_GREP_max=$ac_count
  3288. fi
  3289. # 10*(2^10) chars as input seems more than enough
  3290. test $ac_count -gt 10 && break
  3291. done
  3292. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3293. esac
  3294. $ac_path_GREP_found && break 3
  3295. done
  3296. done
  3297. done
  3298. IFS=$as_save_IFS
  3299. if test -z "$ac_cv_path_GREP"; then
  3300. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3301. fi
  3302. else
  3303. ac_cv_path_GREP=$GREP
  3304. fi
  3305. fi
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3307. $as_echo "$ac_cv_path_GREP" >&6; }
  3308. GREP="$ac_cv_path_GREP"
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3310. $as_echo_n "checking for egrep... " >&6; }
  3311. if ${ac_cv_path_EGREP+:} false; then :
  3312. $as_echo_n "(cached) " >&6
  3313. else
  3314. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3315. then ac_cv_path_EGREP="$GREP -E"
  3316. else
  3317. if test -z "$EGREP"; then
  3318. ac_path_EGREP_found=false
  3319. # Loop through the user's path and test for each of PROGNAME-LIST
  3320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3321. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3322. do
  3323. IFS=$as_save_IFS
  3324. test -z "$as_dir" && as_dir=.
  3325. for ac_prog in egrep; do
  3326. for ac_exec_ext in '' $ac_executable_extensions; do
  3327. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3328. as_fn_executable_p "$ac_path_EGREP" || continue
  3329. # Check for GNU ac_path_EGREP and select it if it is found.
  3330. # Check for GNU $ac_path_EGREP
  3331. case `"$ac_path_EGREP" --version 2>&1` in
  3332. *GNU*)
  3333. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3334. *)
  3335. ac_count=0
  3336. $as_echo_n 0123456789 >"conftest.in"
  3337. while :
  3338. do
  3339. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3340. mv "conftest.tmp" "conftest.in"
  3341. cp "conftest.in" "conftest.nl"
  3342. $as_echo 'EGREP' >> "conftest.nl"
  3343. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3344. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3345. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3346. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3347. # Best one so far, save it but keep looking for a better one
  3348. ac_cv_path_EGREP="$ac_path_EGREP"
  3349. ac_path_EGREP_max=$ac_count
  3350. fi
  3351. # 10*(2^10) chars as input seems more than enough
  3352. test $ac_count -gt 10 && break
  3353. done
  3354. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3355. esac
  3356. $ac_path_EGREP_found && break 3
  3357. done
  3358. done
  3359. done
  3360. IFS=$as_save_IFS
  3361. if test -z "$ac_cv_path_EGREP"; then
  3362. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3363. fi
  3364. else
  3365. ac_cv_path_EGREP=$EGREP
  3366. fi
  3367. fi
  3368. fi
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3370. $as_echo "$ac_cv_path_EGREP" >&6; }
  3371. EGREP="$ac_cv_path_EGREP"
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3373. $as_echo_n "checking for ANSI C header files... " >&6; }
  3374. if ${ac_cv_header_stdc+:} false; then :
  3375. $as_echo_n "(cached) " >&6
  3376. else
  3377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3378. /* end confdefs.h. */
  3379. #include <stdlib.h>
  3380. #include <stdarg.h>
  3381. #include <string.h>
  3382. #include <float.h>
  3383. int
  3384. main ()
  3385. {
  3386. ;
  3387. return 0;
  3388. }
  3389. _ACEOF
  3390. if ac_fn_c_try_compile "$LINENO"; then :
  3391. ac_cv_header_stdc=yes
  3392. else
  3393. ac_cv_header_stdc=no
  3394. fi
  3395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3396. if test $ac_cv_header_stdc = yes; then
  3397. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3399. /* end confdefs.h. */
  3400. #include <string.h>
  3401. _ACEOF
  3402. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3403. $EGREP "memchr" >/dev/null 2>&1; then :
  3404. else
  3405. ac_cv_header_stdc=no
  3406. fi
  3407. rm -f conftest*
  3408. fi
  3409. if test $ac_cv_header_stdc = yes; then
  3410. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3412. /* end confdefs.h. */
  3413. #include <stdlib.h>
  3414. _ACEOF
  3415. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3416. $EGREP "free" >/dev/null 2>&1; then :
  3417. else
  3418. ac_cv_header_stdc=no
  3419. fi
  3420. rm -f conftest*
  3421. fi
  3422. if test $ac_cv_header_stdc = yes; then
  3423. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3424. if test "$cross_compiling" = yes; then :
  3425. :
  3426. else
  3427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3428. /* end confdefs.h. */
  3429. #include <ctype.h>
  3430. #include <stdlib.h>
  3431. #if ((' ' & 0x0FF) == 0x020)
  3432. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3433. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3434. #else
  3435. # define ISLOWER(c) \
  3436. (('a' <= (c) && (c) <= 'i') \
  3437. || ('j' <= (c) && (c) <= 'r') \
  3438. || ('s' <= (c) && (c) <= 'z'))
  3439. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3440. #endif
  3441. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3442. int
  3443. main ()
  3444. {
  3445. int i;
  3446. for (i = 0; i < 256; i++)
  3447. if (XOR (islower (i), ISLOWER (i))
  3448. || toupper (i) != TOUPPER (i))
  3449. return 2;
  3450. return 0;
  3451. }
  3452. _ACEOF
  3453. if ac_fn_c_try_run "$LINENO"; then :
  3454. else
  3455. ac_cv_header_stdc=no
  3456. fi
  3457. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3458. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3459. fi
  3460. fi
  3461. fi
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3463. $as_echo "$ac_cv_header_stdc" >&6; }
  3464. if test $ac_cv_header_stdc = yes; then
  3465. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3466. fi
  3467. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3468. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3469. inttypes.h stdint.h unistd.h
  3470. do :
  3471. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3472. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3473. "
  3474. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3475. cat >>confdefs.h <<_ACEOF
  3476. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3477. _ACEOF
  3478. fi
  3479. done
  3480. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3481. if test "x$ac_cv_type_size_t" = xyes; then :
  3482. else
  3483. cat >>confdefs.h <<_ACEOF
  3484. #define size_t unsigned int
  3485. _ACEOF
  3486. fi
  3487. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3488. # for constant arguments. Useless!
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  3490. $as_echo_n "checking for working alloca.h... " >&6; }
  3491. if ${ac_cv_working_alloca_h+:} false; then :
  3492. $as_echo_n "(cached) " >&6
  3493. else
  3494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3495. /* end confdefs.h. */
  3496. #include <alloca.h>
  3497. int
  3498. main ()
  3499. {
  3500. char *p = (char *) alloca (2 * sizeof (int));
  3501. if (p) return 0;
  3502. ;
  3503. return 0;
  3504. }
  3505. _ACEOF
  3506. if ac_fn_c_try_link "$LINENO"; then :
  3507. ac_cv_working_alloca_h=yes
  3508. else
  3509. ac_cv_working_alloca_h=no
  3510. fi
  3511. rm -f core conftest.err conftest.$ac_objext \
  3512. conftest$ac_exeext conftest.$ac_ext
  3513. fi
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  3515. $as_echo "$ac_cv_working_alloca_h" >&6; }
  3516. if test $ac_cv_working_alloca_h = yes; then
  3517. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  3518. fi
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  3520. $as_echo_n "checking for alloca... " >&6; }
  3521. if ${ac_cv_func_alloca_works+:} false; then :
  3522. $as_echo_n "(cached) " >&6
  3523. else
  3524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3525. /* end confdefs.h. */
  3526. #ifdef __GNUC__
  3527. # define alloca __builtin_alloca
  3528. #else
  3529. # ifdef _MSC_VER
  3530. # include <malloc.h>
  3531. # define alloca _alloca
  3532. # else
  3533. # ifdef HAVE_ALLOCA_H
  3534. # include <alloca.h>
  3535. # else
  3536. # ifdef _AIX
  3537. #pragma alloca
  3538. # else
  3539. # ifndef alloca /* predefined by HP cc +Olibcalls */
  3540. void *alloca (size_t);
  3541. # endif
  3542. # endif
  3543. # endif
  3544. # endif
  3545. #endif
  3546. int
  3547. main ()
  3548. {
  3549. char *p = (char *) alloca (1);
  3550. if (p) return 0;
  3551. ;
  3552. return 0;
  3553. }
  3554. _ACEOF
  3555. if ac_fn_c_try_link "$LINENO"; then :
  3556. ac_cv_func_alloca_works=yes
  3557. else
  3558. ac_cv_func_alloca_works=no
  3559. fi
  3560. rm -f core conftest.err conftest.$ac_objext \
  3561. conftest$ac_exeext conftest.$ac_ext
  3562. fi
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  3564. $as_echo "$ac_cv_func_alloca_works" >&6; }
  3565. if test $ac_cv_func_alloca_works = yes; then
  3566. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  3567. else
  3568. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3569. # that cause trouble. Some versions do not even contain alloca or
  3570. # contain a buggy version. If you still want to use their alloca,
  3571. # use ar to extract alloca.o from them instead of compiling alloca.c.
  3572. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  3573. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  3575. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  3576. if ${ac_cv_os_cray+:} false; then :
  3577. $as_echo_n "(cached) " >&6
  3578. else
  3579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3580. /* end confdefs.h. */
  3581. #if defined CRAY && ! defined CRAY2
  3582. webecray
  3583. #else
  3584. wenotbecray
  3585. #endif
  3586. _ACEOF
  3587. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3588. $EGREP "webecray" >/dev/null 2>&1; then :
  3589. ac_cv_os_cray=yes
  3590. else
  3591. ac_cv_os_cray=no
  3592. fi
  3593. rm -f conftest*
  3594. fi
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  3596. $as_echo "$ac_cv_os_cray" >&6; }
  3597. if test $ac_cv_os_cray = yes; then
  3598. for ac_func in _getb67 GETB67 getb67; do
  3599. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3600. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  3601. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  3602. cat >>confdefs.h <<_ACEOF
  3603. #define CRAY_STACKSEG_END $ac_func
  3604. _ACEOF
  3605. break
  3606. fi
  3607. done
  3608. fi
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  3610. $as_echo_n "checking stack direction for C alloca... " >&6; }
  3611. if ${ac_cv_c_stack_direction+:} false; then :
  3612. $as_echo_n "(cached) " >&6
  3613. else
  3614. if test "$cross_compiling" = yes; then :
  3615. ac_cv_c_stack_direction=0
  3616. else
  3617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3618. /* end confdefs.h. */
  3619. $ac_includes_default
  3620. int
  3621. find_stack_direction (int *addr, int depth)
  3622. {
  3623. int dir, dummy = 0;
  3624. if (! addr)
  3625. addr = &dummy;
  3626. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  3627. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  3628. return dir + dummy;
  3629. }
  3630. int
  3631. main (int argc, char **argv)
  3632. {
  3633. return find_stack_direction (0, argc + !argv + 20) < 0;
  3634. }
  3635. _ACEOF
  3636. if ac_fn_c_try_run "$LINENO"; then :
  3637. ac_cv_c_stack_direction=1
  3638. else
  3639. ac_cv_c_stack_direction=-1
  3640. fi
  3641. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3642. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3643. fi
  3644. fi
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  3646. $as_echo "$ac_cv_c_stack_direction" >&6; }
  3647. cat >>confdefs.h <<_ACEOF
  3648. #define STACK_DIRECTION $ac_cv_c_stack_direction
  3649. _ACEOF
  3650. fi
  3651. for ac_func in asprintf getloadavg setenv strcasestr strndup strnlen strsep unsetenv vasprintf
  3652. do :
  3653. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3654. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  3655. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  3656. cat >>confdefs.h <<_ACEOF
  3657. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3658. _ACEOF
  3659. fi
  3660. done
  3661. # The frontend can use curses, ncurses, newt or GTK2 so check for all of them
  3662. NEWT_DESCRIP="newt"
  3663. NEWT_OPTION="newt"
  3664. PBX_NEWT=0
  3665. # Check whether --with-newt was given.
  3666. if test "${with_newt+set}" = set; then :
  3667. withval=$with_newt;
  3668. case ${withval} in
  3669. n|no)
  3670. USE_NEWT=no
  3671. # -1 is a magic value used by menuselect to know that the package
  3672. # was disabled, other than 'not found'
  3673. PBX_NEWT=-1
  3674. ;;
  3675. y|ye|yes)
  3676. ac_mandatory_list="${ac_mandatory_list} NEWT"
  3677. ;;
  3678. *)
  3679. NEWT_DIR="${withval}"
  3680. ac_mandatory_list="${ac_mandatory_list} NEWT"
  3681. ;;
  3682. esac
  3683. fi
  3684. CURSES_DESCRIP="curses"
  3685. CURSES_OPTION="curses"
  3686. PBX_CURSES=0
  3687. # Check whether --with-curses was given.
  3688. if test "${with_curses+set}" = set; then :
  3689. withval=$with_curses;
  3690. case ${withval} in
  3691. n|no)
  3692. USE_CURSES=no
  3693. # -1 is a magic value used by menuselect to know that the package
  3694. # was disabled, other than 'not found'
  3695. PBX_CURSES=-1
  3696. ;;
  3697. y|ye|yes)
  3698. ac_mandatory_list="${ac_mandatory_list} CURSES"
  3699. ;;
  3700. *)
  3701. CURSES_DIR="${withval}"
  3702. ac_mandatory_list="${ac_mandatory_list} CURSES"
  3703. ;;
  3704. esac
  3705. fi
  3706. NCURSES_DESCRIP="ncurses"
  3707. NCURSES_OPTION="ncurses"
  3708. PBX_NCURSES=0
  3709. # Check whether --with-ncurses was given.
  3710. if test "${with_ncurses+set}" = set; then :
  3711. withval=$with_ncurses;
  3712. case ${withval} in
  3713. n|no)
  3714. USE_NCURSES=no
  3715. # -1 is a magic value used by menuselect to know that the package
  3716. # was disabled, other than 'not found'
  3717. PBX_NCURSES=-1
  3718. ;;
  3719. y|ye|yes)
  3720. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  3721. ;;
  3722. *)
  3723. NCURSES_DIR="${withval}"
  3724. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  3725. ;;
  3726. esac
  3727. fi
  3728. LIBXML2_DESCRIP="LibXML2"
  3729. LIBXML2_OPTION="libxml2"
  3730. PBX_LIBXML2=0
  3731. # Check whether --with-libxml2 was given.
  3732. if test "${with_libxml2+set}" = set; then :
  3733. withval=$with_libxml2;
  3734. case ${withval} in
  3735. n|no)
  3736. USE_LIBXML2=no
  3737. # -1 is a magic value used by menuselect to know that the package
  3738. # was disabled, other than 'not found'
  3739. PBX_LIBXML2=-1
  3740. ;;
  3741. y|ye|yes)
  3742. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  3743. ;;
  3744. *)
  3745. LIBXML2_DIR="${withval}"
  3746. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  3747. ;;
  3748. esac
  3749. fi
  3750. if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
  3751. pbxlibdir=""
  3752. # if --with-NEWT=DIR has been specified, use it.
  3753. if test "x${NEWT_DIR}" != "x"; then
  3754. if test -d ${NEWT_DIR}/lib; then
  3755. pbxlibdir="-L${NEWT_DIR}/lib"
  3756. else
  3757. pbxlibdir="-L${NEWT_DIR}"
  3758. fi
  3759. fi
  3760. pbxfuncname="newtBell"
  3761. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  3762. AST_NEWT_FOUND=yes
  3763. else
  3764. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  3765. CFLAGS="${CFLAGS} "
  3766. as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnewt" >&5
  3768. $as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }
  3769. if eval \${$as_ac_Lib+:} false; then :
  3770. $as_echo_n "(cached) " >&6
  3771. else
  3772. ac_check_lib_save_LIBS=$LIBS
  3773. LIBS="-lnewt ${pbxlibdir} $LIBS"
  3774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3775. /* end confdefs.h. */
  3776. /* Override any GCC internal prototype to avoid an error.
  3777. Use char because int might match the return type of a GCC
  3778. builtin and then its argument prototype would still apply. */
  3779. #ifdef __cplusplus
  3780. extern "C"
  3781. #endif
  3782. char ${pbxfuncname} ();
  3783. int
  3784. main ()
  3785. {
  3786. return ${pbxfuncname} ();
  3787. ;
  3788. return 0;
  3789. }
  3790. _ACEOF
  3791. if ac_fn_c_try_link "$LINENO"; then :
  3792. eval "$as_ac_Lib=yes"
  3793. else
  3794. eval "$as_ac_Lib=no"
  3795. fi
  3796. rm -f core conftest.err conftest.$ac_objext \
  3797. conftest$ac_exeext conftest.$ac_ext
  3798. LIBS=$ac_check_lib_save_LIBS
  3799. fi
  3800. eval ac_res=\$$as_ac_Lib
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3802. $as_echo "$ac_res" >&6; }
  3803. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  3804. AST_NEWT_FOUND=yes
  3805. else
  3806. AST_NEWT_FOUND=no
  3807. fi
  3808. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  3809. fi
  3810. # now check for the header.
  3811. if test "${AST_NEWT_FOUND}" = "yes"; then
  3812. NEWT_LIB="${pbxlibdir} -lnewt "
  3813. # if --with-NEWT=DIR has been specified, use it.
  3814. if test "x${NEWT_DIR}" != "x"; then
  3815. NEWT_INCLUDE="-I${NEWT_DIR}/include"
  3816. fi
  3817. NEWT_INCLUDE="${NEWT_INCLUDE} "
  3818. if test "xnewt.h" = "x" ; then # no header, assume found
  3819. NEWT_HEADER_FOUND="1"
  3820. else # check for the header
  3821. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  3822. CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
  3823. ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
  3824. if test "x$ac_cv_header_newt_h" = xyes; then :
  3825. NEWT_HEADER_FOUND=1
  3826. else
  3827. NEWT_HEADER_FOUND=0
  3828. fi
  3829. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  3830. fi
  3831. if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
  3832. NEWT_LIB=""
  3833. NEWT_INCLUDE=""
  3834. else
  3835. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  3836. NEWT_LIB=""
  3837. fi
  3838. PBX_NEWT=1
  3839. cat >>confdefs.h <<_ACEOF
  3840. #define HAVE_NEWT 1
  3841. _ACEOF
  3842. fi
  3843. fi
  3844. fi
  3845. if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
  3846. pbxlibdir=""
  3847. # if --with-CURSES=DIR has been specified, use it.
  3848. if test "x${CURSES_DIR}" != "x"; then
  3849. if test -d ${CURSES_DIR}/lib; then
  3850. pbxlibdir="-L${CURSES_DIR}/lib"
  3851. else
  3852. pbxlibdir="-L${CURSES_DIR}"
  3853. fi
  3854. fi
  3855. pbxfuncname="initscr"
  3856. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  3857. AST_CURSES_FOUND=yes
  3858. else
  3859. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  3860. CFLAGS="${CFLAGS} "
  3861. as_ac_Lib=`$as_echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcurses" >&5
  3863. $as_echo_n "checking for ${pbxfuncname} in -lcurses... " >&6; }
  3864. if eval \${$as_ac_Lib+:} false; then :
  3865. $as_echo_n "(cached) " >&6
  3866. else
  3867. ac_check_lib_save_LIBS=$LIBS
  3868. LIBS="-lcurses ${pbxlibdir} $LIBS"
  3869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3870. /* end confdefs.h. */
  3871. /* Override any GCC internal prototype to avoid an error.
  3872. Use char because int might match the return type of a GCC
  3873. builtin and then its argument prototype would still apply. */
  3874. #ifdef __cplusplus
  3875. extern "C"
  3876. #endif
  3877. char ${pbxfuncname} ();
  3878. int
  3879. main ()
  3880. {
  3881. return ${pbxfuncname} ();
  3882. ;
  3883. return 0;
  3884. }
  3885. _ACEOF
  3886. if ac_fn_c_try_link "$LINENO"; then :
  3887. eval "$as_ac_Lib=yes"
  3888. else
  3889. eval "$as_ac_Lib=no"
  3890. fi
  3891. rm -f core conftest.err conftest.$ac_objext \
  3892. conftest$ac_exeext conftest.$ac_ext
  3893. LIBS=$ac_check_lib_save_LIBS
  3894. fi
  3895. eval ac_res=\$$as_ac_Lib
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3897. $as_echo "$ac_res" >&6; }
  3898. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  3899. AST_CURSES_FOUND=yes
  3900. else
  3901. AST_CURSES_FOUND=no
  3902. fi
  3903. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  3904. fi
  3905. # now check for the header.
  3906. if test "${AST_CURSES_FOUND}" = "yes"; then
  3907. CURSES_LIB="${pbxlibdir} -lcurses "
  3908. # if --with-CURSES=DIR has been specified, use it.
  3909. if test "x${CURSES_DIR}" != "x"; then
  3910. CURSES_INCLUDE="-I${CURSES_DIR}/include"
  3911. fi
  3912. CURSES_INCLUDE="${CURSES_INCLUDE} "
  3913. if test "xcurses.h" = "x" ; then # no header, assume found
  3914. CURSES_HEADER_FOUND="1"
  3915. else # check for the header
  3916. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  3917. CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
  3918. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  3919. if test "x$ac_cv_header_curses_h" = xyes; then :
  3920. CURSES_HEADER_FOUND=1
  3921. else
  3922. CURSES_HEADER_FOUND=0
  3923. fi
  3924. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  3925. fi
  3926. if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
  3927. CURSES_LIB=""
  3928. CURSES_INCLUDE=""
  3929. else
  3930. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  3931. CURSES_LIB=""
  3932. fi
  3933. PBX_CURSES=1
  3934. cat >>confdefs.h <<_ACEOF
  3935. #define HAVE_CURSES 1
  3936. _ACEOF
  3937. fi
  3938. fi
  3939. fi
  3940. if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
  3941. pbxlibdir=""
  3942. # if --with-NCURSES=DIR has been specified, use it.
  3943. if test "x${NCURSES_DIR}" != "x"; then
  3944. if test -d ${NCURSES_DIR}/lib; then
  3945. pbxlibdir="-L${NCURSES_DIR}/lib"
  3946. else
  3947. pbxlibdir="-L${NCURSES_DIR}"
  3948. fi
  3949. fi
  3950. pbxfuncname="initscr"
  3951. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  3952. AST_NCURSES_FOUND=yes
  3953. else
  3954. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  3955. CFLAGS="${CFLAGS} "
  3956. as_ac_Lib=`$as_echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lncurses" >&5
  3958. $as_echo_n "checking for ${pbxfuncname} in -lncurses... " >&6; }
  3959. if eval \${$as_ac_Lib+:} false; then :
  3960. $as_echo_n "(cached) " >&6
  3961. else
  3962. ac_check_lib_save_LIBS=$LIBS
  3963. LIBS="-lncurses ${pbxlibdir} $LIBS"
  3964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3965. /* end confdefs.h. */
  3966. /* Override any GCC internal prototype to avoid an error.
  3967. Use char because int might match the return type of a GCC
  3968. builtin and then its argument prototype would still apply. */
  3969. #ifdef __cplusplus
  3970. extern "C"
  3971. #endif
  3972. char ${pbxfuncname} ();
  3973. int
  3974. main ()
  3975. {
  3976. return ${pbxfuncname} ();
  3977. ;
  3978. return 0;
  3979. }
  3980. _ACEOF
  3981. if ac_fn_c_try_link "$LINENO"; then :
  3982. eval "$as_ac_Lib=yes"
  3983. else
  3984. eval "$as_ac_Lib=no"
  3985. fi
  3986. rm -f core conftest.err conftest.$ac_objext \
  3987. conftest$ac_exeext conftest.$ac_ext
  3988. LIBS=$ac_check_lib_save_LIBS
  3989. fi
  3990. eval ac_res=\$$as_ac_Lib
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3992. $as_echo "$ac_res" >&6; }
  3993. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  3994. AST_NCURSES_FOUND=yes
  3995. else
  3996. AST_NCURSES_FOUND=no
  3997. fi
  3998. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  3999. fi
  4000. # now check for the header.
  4001. if test "${AST_NCURSES_FOUND}" = "yes"; then
  4002. NCURSES_LIB="${pbxlibdir} -lncurses "
  4003. # if --with-NCURSES=DIR has been specified, use it.
  4004. if test "x${NCURSES_DIR}" != "x"; then
  4005. NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
  4006. fi
  4007. NCURSES_INCLUDE="${NCURSES_INCLUDE} "
  4008. if test "xcurses.h" = "x" ; then # no header, assume found
  4009. NCURSES_HEADER_FOUND="1"
  4010. else # check for the header
  4011. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  4012. CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
  4013. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  4014. if test "x$ac_cv_header_curses_h" = xyes; then :
  4015. NCURSES_HEADER_FOUND=1
  4016. else
  4017. NCURSES_HEADER_FOUND=0
  4018. fi
  4019. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  4020. fi
  4021. if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
  4022. NCURSES_LIB=""
  4023. NCURSES_INCLUDE=""
  4024. else
  4025. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  4026. NCURSES_LIB=""
  4027. fi
  4028. PBX_NCURSES=1
  4029. cat >>confdefs.h <<_ACEOF
  4030. #define HAVE_NCURSES 1
  4031. _ACEOF
  4032. fi
  4033. fi
  4034. fi
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4036. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4037. if ${ac_cv_path_SED+:} false; then :
  4038. $as_echo_n "(cached) " >&6
  4039. else
  4040. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4041. for ac_i in 1 2 3 4 5 6 7; do
  4042. ac_script="$ac_script$as_nl$ac_script"
  4043. done
  4044. echo "$ac_script" | sed 99q >conftest.sed
  4045. $as_unset ac_script || ac_script=
  4046. if test -z "$SED"; then
  4047. ac_path_SED_found=false
  4048. # Loop through the user's path and test for each of PROGNAME-LIST
  4049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4050. for as_dir in $PATH
  4051. do
  4052. IFS=$as_save_IFS
  4053. test -z "$as_dir" && as_dir=.
  4054. for ac_prog in sed gsed; do
  4055. for ac_exec_ext in '' $ac_executable_extensions; do
  4056. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4057. as_fn_executable_p "$ac_path_SED" || continue
  4058. # Check for GNU ac_path_SED and select it if it is found.
  4059. # Check for GNU $ac_path_SED
  4060. case `"$ac_path_SED" --version 2>&1` in
  4061. *GNU*)
  4062. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4063. *)
  4064. ac_count=0
  4065. $as_echo_n 0123456789 >"conftest.in"
  4066. while :
  4067. do
  4068. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4069. mv "conftest.tmp" "conftest.in"
  4070. cp "conftest.in" "conftest.nl"
  4071. $as_echo '' >> "conftest.nl"
  4072. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4073. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4074. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4075. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4076. # Best one so far, save it but keep looking for a better one
  4077. ac_cv_path_SED="$ac_path_SED"
  4078. ac_path_SED_max=$ac_count
  4079. fi
  4080. # 10*(2^10) chars as input seems more than enough
  4081. test $ac_count -gt 10 && break
  4082. done
  4083. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4084. esac
  4085. $ac_path_SED_found && break 3
  4086. done
  4087. done
  4088. done
  4089. IFS=$as_save_IFS
  4090. if test -z "$ac_cv_path_SED"; then
  4091. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4092. fi
  4093. else
  4094. ac_cv_path_SED=$SED
  4095. fi
  4096. fi
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4098. $as_echo "$ac_cv_path_SED" >&6; }
  4099. SED="$ac_cv_path_SED"
  4100. rm -f conftest.sed
  4101. if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
  4102. PBX_LIBXML2=0
  4103. if test -n "$ac_tool_prefix"; then
  4104. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  4105. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4107. $as_echo_n "checking for $ac_word... " >&6; }
  4108. if ${ac_cv_path_CONFIG_LIBXML2+:} false; then :
  4109. $as_echo_n "(cached) " >&6
  4110. else
  4111. case $CONFIG_LIBXML2 in
  4112. [\\/]* | ?:[\\/]*)
  4113. ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path.
  4114. ;;
  4115. *)
  4116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4117. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  4118. for as_dir in $as_dummy
  4119. do
  4120. IFS=$as_save_IFS
  4121. test -z "$as_dir" && as_dir=.
  4122. for ac_exec_ext in '' $ac_executable_extensions; do
  4123. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4124. ac_cv_path_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  4125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4126. break 2
  4127. fi
  4128. done
  4129. done
  4130. IFS=$as_save_IFS
  4131. ;;
  4132. esac
  4133. fi
  4134. CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2
  4135. if test -n "$CONFIG_LIBXML2"; then
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_LIBXML2" >&5
  4137. $as_echo "$CONFIG_LIBXML2" >&6; }
  4138. else
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4140. $as_echo "no" >&6; }
  4141. fi
  4142. fi
  4143. if test -z "$ac_cv_path_CONFIG_LIBXML2"; then
  4144. ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2
  4145. # Extract the first word of "xml2-config", so it can be a program name with args.
  4146. set dummy xml2-config; ac_word=$2
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4148. $as_echo_n "checking for $ac_word... " >&6; }
  4149. if ${ac_cv_path_ac_pt_CONFIG_LIBXML2+:} false; then :
  4150. $as_echo_n "(cached) " >&6
  4151. else
  4152. case $ac_pt_CONFIG_LIBXML2 in
  4153. [\\/]* | ?:[\\/]*)
  4154. ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path.
  4155. ;;
  4156. *)
  4157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4158. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  4159. for as_dir in $as_dummy
  4160. do
  4161. IFS=$as_save_IFS
  4162. test -z "$as_dir" && as_dir=.
  4163. for ac_exec_ext in '' $ac_executable_extensions; do
  4164. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4165. ac_cv_path_ac_pt_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  4166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4167. break 2
  4168. fi
  4169. done
  4170. done
  4171. IFS=$as_save_IFS
  4172. ;;
  4173. esac
  4174. fi
  4175. ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2
  4176. if test -n "$ac_pt_CONFIG_LIBXML2"; then
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_LIBXML2" >&5
  4178. $as_echo "$ac_pt_CONFIG_LIBXML2" >&6; }
  4179. else
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4181. $as_echo "no" >&6; }
  4182. fi
  4183. if test "x$ac_pt_CONFIG_LIBXML2" = x; then
  4184. CONFIG_LIBXML2="No"
  4185. else
  4186. case $cross_compiling:$ac_tool_warned in
  4187. yes:)
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4189. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4190. ac_tool_warned=yes ;;
  4191. esac
  4192. CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2
  4193. fi
  4194. else
  4195. CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2"
  4196. fi
  4197. if test ! "x${CONFIG_LIBXML2}" = xNo; then
  4198. if test x"" = x ; then A=--cflags ; else A="" ; fi
  4199. LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} $A)
  4200. LIBXML2_INCLUDE=$(echo ${LIBXML2_INCLUDE} | $SED -e "s|-I|-I${LIBXML2_DIR}|g")
  4201. if test x"" = x ; then A=--libs ; else A="" ; fi
  4202. LIBXML2_LIB=$(${CONFIG_LIBXML2} $A)
  4203. LIBXML2_LIB=$(echo ${LIBXML2_LIB} | $SED -e "s|-L|-L${LIBXML2_DIR}|g")
  4204. if test x"#include <libxml/tree.h>
  4205. #include <libxml/parser.h>" != x ; then
  4206. saved_cppflags="${CPPFLAGS}"
  4207. CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}"
  4208. saved_libs="${LIBS}"
  4209. LIBS=${LIBXML2_LIB}
  4210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4211. /* end confdefs.h. */
  4212. #include <libxml/tree.h>
  4213. #include <libxml/parser.h>
  4214. int
  4215. main ()
  4216. {
  4217. LIBXML_TEST_VERSION;
  4218. ;
  4219. return 0;
  4220. }
  4221. _ACEOF
  4222. if ac_fn_c_try_link "$LINENO"; then :
  4223. PBX_LIBXML2=1
  4224. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  4225. fi
  4226. rm -f core conftest.err conftest.$ac_objext \
  4227. conftest$ac_exeext conftest.$ac_ext
  4228. CPPFLAGS="${saved_cppflags}"
  4229. LIBS="${saved_libs}"
  4230. else
  4231. PBX_LIBXML2=1
  4232. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  4233. fi
  4234. fi
  4235. fi
  4236. if test "${PBX_LIBXML2}" != 1; then
  4237. as_fn_error $? "Could not find required 'Libxml2' development package" "$LINENO" 5
  4238. fi
  4239. PBX_GTK2=0
  4240. if test -n "$ac_tool_prefix"; then
  4241. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  4242. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4244. $as_echo_n "checking for $ac_word... " >&6; }
  4245. if ${ac_cv_prog_PKGCONFIG+:} false; then :
  4246. $as_echo_n "(cached) " >&6
  4247. else
  4248. if test -n "$PKGCONFIG"; then
  4249. ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
  4250. else
  4251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4252. for as_dir in $PATH
  4253. do
  4254. IFS=$as_save_IFS
  4255. test -z "$as_dir" && as_dir=.
  4256. for ac_exec_ext in '' $ac_executable_extensions; do
  4257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4258. ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
  4259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4260. break 2
  4261. fi
  4262. done
  4263. done
  4264. IFS=$as_save_IFS
  4265. fi
  4266. fi
  4267. PKGCONFIG=$ac_cv_prog_PKGCONFIG
  4268. if test -n "$PKGCONFIG"; then
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  4270. $as_echo "$PKGCONFIG" >&6; }
  4271. else
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4273. $as_echo "no" >&6; }
  4274. fi
  4275. fi
  4276. if test -z "$ac_cv_prog_PKGCONFIG"; then
  4277. ac_ct_PKGCONFIG=$PKGCONFIG
  4278. # Extract the first word of "pkg-config", so it can be a program name with args.
  4279. set dummy pkg-config; ac_word=$2
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4281. $as_echo_n "checking for $ac_word... " >&6; }
  4282. if ${ac_cv_prog_ac_ct_PKGCONFIG+:} false; then :
  4283. $as_echo_n "(cached) " >&6
  4284. else
  4285. if test -n "$ac_ct_PKGCONFIG"; then
  4286. ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
  4287. else
  4288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4289. for as_dir in $PATH
  4290. do
  4291. IFS=$as_save_IFS
  4292. test -z "$as_dir" && as_dir=.
  4293. for ac_exec_ext in '' $ac_executable_extensions; do
  4294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4295. ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
  4296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4297. break 2
  4298. fi
  4299. done
  4300. done
  4301. IFS=$as_save_IFS
  4302. fi
  4303. fi
  4304. ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
  4305. if test -n "$ac_ct_PKGCONFIG"; then
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKGCONFIG" >&5
  4307. $as_echo "$ac_ct_PKGCONFIG" >&6; }
  4308. else
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4310. $as_echo "no" >&6; }
  4311. fi
  4312. if test "x$ac_ct_PKGCONFIG" = x; then
  4313. PKGCONFIG="No"
  4314. else
  4315. case $cross_compiling:$ac_tool_warned in
  4316. yes:)
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4318. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4319. ac_tool_warned=yes ;;
  4320. esac
  4321. PKGCONFIG=$ac_ct_PKGCONFIG
  4322. fi
  4323. else
  4324. PKGCONFIG="$ac_cv_prog_PKGCONFIG"
  4325. fi
  4326. if test ! "x${PKGCONFIG}" = xNo; then
  4327. GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
  4328. GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
  4329. PBX_GTK2=1
  4330. $as_echo "#define HAVE_GTK2 1" >>confdefs.h
  4331. fi
  4332. test "$silent"=yes && ac_sub_configure_args="${ac_sub_configure_args} --silent"
  4333. ac_config_files="$ac_config_files makeopts"
  4334. cat >confcache <<\_ACEOF
  4335. # This file is a shell script that caches the results of configure
  4336. # tests run on this system so they can be shared between configure
  4337. # scripts and configure runs, see configure's option --config-cache.
  4338. # It is not useful on other systems. If it contains results you don't
  4339. # want to keep, you may remove or edit it.
  4340. #
  4341. # config.status only pays attention to the cache file if you give it
  4342. # the --recheck option to rerun configure.
  4343. #
  4344. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4345. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4346. # following values.
  4347. _ACEOF
  4348. # The following way of writing the cache mishandles newlines in values,
  4349. # but we know of no workaround that is simple, portable, and efficient.
  4350. # So, we kill variables containing newlines.
  4351. # Ultrix sh set writes to stderr and can't be redirected directly,
  4352. # and sets the high bit in the cache file unless we assign to the vars.
  4353. (
  4354. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4355. eval ac_val=\$$ac_var
  4356. case $ac_val in #(
  4357. *${as_nl}*)
  4358. case $ac_var in #(
  4359. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4360. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4361. esac
  4362. case $ac_var in #(
  4363. _ | IFS | as_nl) ;; #(
  4364. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4365. *) { eval $ac_var=; unset $ac_var;} ;;
  4366. esac ;;
  4367. esac
  4368. done
  4369. (set) 2>&1 |
  4370. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4371. *${as_nl}ac_space=\ *)
  4372. # `set' does not quote correctly, so add quotes: double-quote
  4373. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4374. sed -n \
  4375. "s/'/'\\\\''/g;
  4376. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4377. ;; #(
  4378. *)
  4379. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4380. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4381. ;;
  4382. esac |
  4383. sort
  4384. ) |
  4385. sed '
  4386. /^ac_cv_env_/b end
  4387. t clear
  4388. :clear
  4389. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4390. t end
  4391. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4392. :end' >>confcache
  4393. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4394. if test -w "$cache_file"; then
  4395. if test "x$cache_file" != "x/dev/null"; then
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4397. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4398. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4399. cat confcache >"$cache_file"
  4400. else
  4401. case $cache_file in #(
  4402. */* | ?:*)
  4403. mv -f confcache "$cache_file"$$ &&
  4404. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4405. *)
  4406. mv -f confcache "$cache_file" ;;
  4407. esac
  4408. fi
  4409. fi
  4410. else
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4412. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4413. fi
  4414. fi
  4415. rm -f confcache
  4416. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4417. # Let make expand exec_prefix.
  4418. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4419. DEFS=-DHAVE_CONFIG_H
  4420. ac_libobjs=
  4421. ac_ltlibobjs=
  4422. U=
  4423. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4424. # 1. Remove the extension, and $U if already installed.
  4425. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4426. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4427. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4428. # will be set to the directory where LIBOBJS objects are built.
  4429. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4430. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4431. done
  4432. LIBOBJS=$ac_libobjs
  4433. LTLIBOBJS=$ac_ltlibobjs
  4434. : "${CONFIG_STATUS=./config.status}"
  4435. ac_write_fail=0
  4436. ac_clean_files_save=$ac_clean_files
  4437. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4439. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4440. as_write_fail=0
  4441. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4442. #! $SHELL
  4443. # Generated by $as_me.
  4444. # Run this file to recreate the current configuration.
  4445. # Compiler output produced by configure, useful for debugging
  4446. # configure, is in config.log if it exists.
  4447. debug=false
  4448. ac_cs_recheck=false
  4449. ac_cs_silent=false
  4450. SHELL=\${CONFIG_SHELL-$SHELL}
  4451. export SHELL
  4452. _ASEOF
  4453. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4454. ## -------------------- ##
  4455. ## M4sh Initialization. ##
  4456. ## -------------------- ##
  4457. # Be more Bourne compatible
  4458. DUALCASE=1; export DUALCASE # for MKS sh
  4459. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4460. emulate sh
  4461. NULLCMD=:
  4462. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4463. # is contrary to our usage. Disable this feature.
  4464. alias -g '${1+"$@"}'='"$@"'
  4465. setopt NO_GLOB_SUBST
  4466. else
  4467. case `(set -o) 2>/dev/null` in #(
  4468. *posix*) :
  4469. set -o posix ;; #(
  4470. *) :
  4471. ;;
  4472. esac
  4473. fi
  4474. as_nl='
  4475. '
  4476. export as_nl
  4477. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4478. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4479. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4480. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4481. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4482. # but without wasting forks for bash or zsh.
  4483. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4484. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4485. as_echo='print -r --'
  4486. as_echo_n='print -rn --'
  4487. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4488. as_echo='printf %s\n'
  4489. as_echo_n='printf %s'
  4490. else
  4491. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4492. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4493. as_echo_n='/usr/ucb/echo -n'
  4494. else
  4495. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4496. as_echo_n_body='eval
  4497. arg=$1;
  4498. case $arg in #(
  4499. *"$as_nl"*)
  4500. expr "X$arg" : "X\\(.*\\)$as_nl";
  4501. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4502. esac;
  4503. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4504. '
  4505. export as_echo_n_body
  4506. as_echo_n='sh -c $as_echo_n_body as_echo'
  4507. fi
  4508. export as_echo_body
  4509. as_echo='sh -c $as_echo_body as_echo'
  4510. fi
  4511. # The user is always right.
  4512. if test "${PATH_SEPARATOR+set}" != set; then
  4513. PATH_SEPARATOR=:
  4514. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4515. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4516. PATH_SEPARATOR=';'
  4517. }
  4518. fi
  4519. # IFS
  4520. # We need space, tab and new line, in precisely that order. Quoting is
  4521. # there to prevent editors from complaining about space-tab.
  4522. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4523. # splitting by setting IFS to empty value.)
  4524. IFS=" "" $as_nl"
  4525. # Find who we are. Look in the path if we contain no directory separator.
  4526. as_myself=
  4527. case $0 in #((
  4528. *[\\/]* ) as_myself=$0 ;;
  4529. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4530. for as_dir in $PATH
  4531. do
  4532. IFS=$as_save_IFS
  4533. test -z "$as_dir" && as_dir=.
  4534. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4535. done
  4536. IFS=$as_save_IFS
  4537. ;;
  4538. esac
  4539. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4540. # in which case we are not to be found in the path.
  4541. if test "x$as_myself" = x; then
  4542. as_myself=$0
  4543. fi
  4544. if test ! -f "$as_myself"; then
  4545. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4546. exit 1
  4547. fi
  4548. # Unset variables that we do not need and which cause bugs (e.g. in
  4549. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4550. # suppresses any "Segmentation fault" message there. '((' could
  4551. # trigger a bug in pdksh 5.2.14.
  4552. for as_var in BASH_ENV ENV MAIL MAILPATH
  4553. do eval test x\${$as_var+set} = xset \
  4554. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4555. done
  4556. PS1='$ '
  4557. PS2='> '
  4558. PS4='+ '
  4559. # NLS nuisances.
  4560. LC_ALL=C
  4561. export LC_ALL
  4562. LANGUAGE=C
  4563. export LANGUAGE
  4564. # CDPATH.
  4565. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4566. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  4567. # ----------------------------------------
  4568. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4569. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4570. # script with STATUS, using 1 if that was 0.
  4571. as_fn_error ()
  4572. {
  4573. as_status=$1; test $as_status -eq 0 && as_status=1
  4574. if test "$4"; then
  4575. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4576. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4577. fi
  4578. $as_echo "$as_me: error: $2" >&2
  4579. as_fn_exit $as_status
  4580. } # as_fn_error
  4581. # as_fn_set_status STATUS
  4582. # -----------------------
  4583. # Set $? to STATUS, without forking.
  4584. as_fn_set_status ()
  4585. {
  4586. return $1
  4587. } # as_fn_set_status
  4588. # as_fn_exit STATUS
  4589. # -----------------
  4590. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4591. as_fn_exit ()
  4592. {
  4593. set +e
  4594. as_fn_set_status $1
  4595. exit $1
  4596. } # as_fn_exit
  4597. # as_fn_unset VAR
  4598. # ---------------
  4599. # Portably unset VAR.
  4600. as_fn_unset ()
  4601. {
  4602. { eval $1=; unset $1;}
  4603. }
  4604. as_unset=as_fn_unset
  4605. # as_fn_append VAR VALUE
  4606. # ----------------------
  4607. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4608. # advantage of any shell optimizations that allow amortized linear growth over
  4609. # repeated appends, instead of the typical quadratic growth present in naive
  4610. # implementations.
  4611. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4612. eval 'as_fn_append ()
  4613. {
  4614. eval $1+=\$2
  4615. }'
  4616. else
  4617. as_fn_append ()
  4618. {
  4619. eval $1=\$$1\$2
  4620. }
  4621. fi # as_fn_append
  4622. # as_fn_arith ARG...
  4623. # ------------------
  4624. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4625. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4626. # must be portable across $(()) and expr.
  4627. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4628. eval 'as_fn_arith ()
  4629. {
  4630. as_val=$(( $* ))
  4631. }'
  4632. else
  4633. as_fn_arith ()
  4634. {
  4635. as_val=`expr "$@" || test $? -eq 1`
  4636. }
  4637. fi # as_fn_arith
  4638. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4639. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4640. as_expr=expr
  4641. else
  4642. as_expr=false
  4643. fi
  4644. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4645. as_basename=basename
  4646. else
  4647. as_basename=false
  4648. fi
  4649. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4650. as_dirname=dirname
  4651. else
  4652. as_dirname=false
  4653. fi
  4654. as_me=`$as_basename -- "$0" ||
  4655. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4656. X"$0" : 'X\(//\)$' \| \
  4657. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4658. $as_echo X/"$0" |
  4659. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4660. s//\1/
  4661. q
  4662. }
  4663. /^X\/\(\/\/\)$/{
  4664. s//\1/
  4665. q
  4666. }
  4667. /^X\/\(\/\).*/{
  4668. s//\1/
  4669. q
  4670. }
  4671. s/.*/./; q'`
  4672. # Avoid depending upon Character Ranges.
  4673. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4674. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4675. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4676. as_cr_digits='0123456789'
  4677. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4678. ECHO_C= ECHO_N= ECHO_T=
  4679. case `echo -n x` in #(((((
  4680. -n*)
  4681. case `echo 'xy\c'` in
  4682. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4683. xy) ECHO_C='\c';;
  4684. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4685. ECHO_T=' ';;
  4686. esac;;
  4687. *)
  4688. ECHO_N='-n';;
  4689. esac
  4690. rm -f conf$$ conf$$.exe conf$$.file
  4691. if test -d conf$$.dir; then
  4692. rm -f conf$$.dir/conf$$.file
  4693. else
  4694. rm -f conf$$.dir
  4695. mkdir conf$$.dir 2>/dev/null
  4696. fi
  4697. if (echo >conf$$.file) 2>/dev/null; then
  4698. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4699. as_ln_s='ln -s'
  4700. # ... but there are two gotchas:
  4701. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4702. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4703. # In both cases, we have to default to `cp -pR'.
  4704. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4705. as_ln_s='cp -pR'
  4706. elif ln conf$$.file conf$$ 2>/dev/null; then
  4707. as_ln_s=ln
  4708. else
  4709. as_ln_s='cp -pR'
  4710. fi
  4711. else
  4712. as_ln_s='cp -pR'
  4713. fi
  4714. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4715. rmdir conf$$.dir 2>/dev/null
  4716. # as_fn_mkdir_p
  4717. # -------------
  4718. # Create "$as_dir" as a directory, including parents if necessary.
  4719. as_fn_mkdir_p ()
  4720. {
  4721. case $as_dir in #(
  4722. -*) as_dir=./$as_dir;;
  4723. esac
  4724. test -d "$as_dir" || eval $as_mkdir_p || {
  4725. as_dirs=
  4726. while :; do
  4727. case $as_dir in #(
  4728. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4729. *) as_qdir=$as_dir;;
  4730. esac
  4731. as_dirs="'$as_qdir' $as_dirs"
  4732. as_dir=`$as_dirname -- "$as_dir" ||
  4733. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4734. X"$as_dir" : 'X\(//\)[^/]' \| \
  4735. X"$as_dir" : 'X\(//\)$' \| \
  4736. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4737. $as_echo X"$as_dir" |
  4738. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4739. s//\1/
  4740. q
  4741. }
  4742. /^X\(\/\/\)[^/].*/{
  4743. s//\1/
  4744. q
  4745. }
  4746. /^X\(\/\/\)$/{
  4747. s//\1/
  4748. q
  4749. }
  4750. /^X\(\/\).*/{
  4751. s//\1/
  4752. q
  4753. }
  4754. s/.*/./; q'`
  4755. test -d "$as_dir" && break
  4756. done
  4757. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4758. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4759. } # as_fn_mkdir_p
  4760. if mkdir -p . 2>/dev/null; then
  4761. as_mkdir_p='mkdir -p "$as_dir"'
  4762. else
  4763. test -d ./-p && rmdir ./-p
  4764. as_mkdir_p=false
  4765. fi
  4766. # as_fn_executable_p FILE
  4767. # -----------------------
  4768. # Test if FILE is an executable regular file.
  4769. as_fn_executable_p ()
  4770. {
  4771. test -f "$1" && test -x "$1"
  4772. } # as_fn_executable_p
  4773. as_test_x='test -x'
  4774. as_executable_p=as_fn_executable_p
  4775. # Sed expression to map a string onto a valid CPP name.
  4776. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4777. # Sed expression to map a string onto a valid variable name.
  4778. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4779. exec 6>&1
  4780. ## ----------------------------------- ##
  4781. ## Main body of $CONFIG_STATUS script. ##
  4782. ## ----------------------------------- ##
  4783. _ASEOF
  4784. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4785. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4786. # Save the log message, to keep $0 and so on meaningful, and to
  4787. # report actual input values of CONFIG_FILES etc. instead of their
  4788. # values after options handling.
  4789. ac_log="
  4790. This file was extended by $as_me, which was
  4791. generated by GNU Autoconf 2.69. Invocation command line was
  4792. CONFIG_FILES = $CONFIG_FILES
  4793. CONFIG_HEADERS = $CONFIG_HEADERS
  4794. CONFIG_LINKS = $CONFIG_LINKS
  4795. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4796. $ $0 $@
  4797. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4798. "
  4799. _ACEOF
  4800. case $ac_config_files in *"
  4801. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4802. esac
  4803. case $ac_config_headers in *"
  4804. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  4805. esac
  4806. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4807. # Files that config.status was made for.
  4808. config_files="$ac_config_files"
  4809. config_headers="$ac_config_headers"
  4810. _ACEOF
  4811. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4812. ac_cs_usage="\
  4813. \`$as_me' instantiates files and other configuration actions
  4814. from templates according to the current configuration. Unless the files
  4815. and actions are specified as TAGs, all are instantiated by default.
  4816. Usage: $0 [OPTION]... [TAG]...
  4817. -h, --help print this help, then exit
  4818. -V, --version print version number and configuration settings, then exit
  4819. --config print configuration, then exit
  4820. -q, --quiet, --silent
  4821. do not print progress messages
  4822. -d, --debug don't remove temporary files
  4823. --recheck update $as_me by reconfiguring in the same conditions
  4824. --file=FILE[:TEMPLATE]
  4825. instantiate the configuration file FILE
  4826. --header=FILE[:TEMPLATE]
  4827. instantiate the configuration header FILE
  4828. Configuration files:
  4829. $config_files
  4830. Configuration headers:
  4831. $config_headers
  4832. Report bugs to the package provider."
  4833. _ACEOF
  4834. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4835. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  4836. ac_cs_version="\\
  4837. config.status
  4838. configured by $0, generated by GNU Autoconf 2.69,
  4839. with options \\"\$ac_cs_config\\"
  4840. Copyright (C) 2012 Free Software Foundation, Inc.
  4841. This config.status script is free software; the Free Software Foundation
  4842. gives unlimited permission to copy, distribute and modify it."
  4843. ac_pwd='$ac_pwd'
  4844. srcdir='$srcdir'
  4845. test -n "\$AWK" || AWK=awk
  4846. _ACEOF
  4847. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4848. # The default lists apply if the user does not specify any file.
  4849. ac_need_defaults=:
  4850. while test $# != 0
  4851. do
  4852. case $1 in
  4853. --*=?*)
  4854. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4855. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4856. ac_shift=:
  4857. ;;
  4858. --*=)
  4859. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4860. ac_optarg=
  4861. ac_shift=:
  4862. ;;
  4863. *)
  4864. ac_option=$1
  4865. ac_optarg=$2
  4866. ac_shift=shift
  4867. ;;
  4868. esac
  4869. case $ac_option in
  4870. # Handling of the options.
  4871. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4872. ac_cs_recheck=: ;;
  4873. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4874. $as_echo "$ac_cs_version"; exit ;;
  4875. --config | --confi | --conf | --con | --co | --c )
  4876. $as_echo "$ac_cs_config"; exit ;;
  4877. --debug | --debu | --deb | --de | --d | -d )
  4878. debug=: ;;
  4879. --file | --fil | --fi | --f )
  4880. $ac_shift
  4881. case $ac_optarg in
  4882. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4883. '') as_fn_error $? "missing file argument" ;;
  4884. esac
  4885. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4886. ac_need_defaults=false;;
  4887. --header | --heade | --head | --hea )
  4888. $ac_shift
  4889. case $ac_optarg in
  4890. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4891. esac
  4892. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  4893. ac_need_defaults=false;;
  4894. --he | --h)
  4895. # Conflict between --help and --header
  4896. as_fn_error $? "ambiguous option: \`$1'
  4897. Try \`$0 --help' for more information.";;
  4898. --help | --hel | -h )
  4899. $as_echo "$ac_cs_usage"; exit ;;
  4900. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4901. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4902. ac_cs_silent=: ;;
  4903. # This is an error.
  4904. -*) as_fn_error $? "unrecognized option: \`$1'
  4905. Try \`$0 --help' for more information." ;;
  4906. *) as_fn_append ac_config_targets " $1"
  4907. ac_need_defaults=false ;;
  4908. esac
  4909. shift
  4910. done
  4911. ac_configure_extra_args=
  4912. if $ac_cs_silent; then
  4913. exec 6>/dev/null
  4914. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4915. fi
  4916. _ACEOF
  4917. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4918. if \$ac_cs_recheck; then
  4919. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4920. shift
  4921. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  4922. CONFIG_SHELL='$SHELL'
  4923. export CONFIG_SHELL
  4924. exec "\$@"
  4925. fi
  4926. _ACEOF
  4927. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4928. exec 5>>config.log
  4929. {
  4930. echo
  4931. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4932. ## Running $as_me. ##
  4933. _ASBOX
  4934. $as_echo "$ac_log"
  4935. } >&5
  4936. _ACEOF
  4937. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4938. _ACEOF
  4939. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4940. # Handling of arguments.
  4941. for ac_config_target in $ac_config_targets
  4942. do
  4943. case $ac_config_target in
  4944. "autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;;
  4945. "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
  4946. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  4947. esac
  4948. done
  4949. # If the user did not use the arguments to specify the items to instantiate,
  4950. # then the envvar interface is used. Set only those that are not.
  4951. # We use the long form for the default assignment because of an extremely
  4952. # bizarre bug on SunOS 4.1.3.
  4953. if $ac_need_defaults; then
  4954. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4955. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  4956. fi
  4957. # Have a temporary directory for convenience. Make it in the build tree
  4958. # simply because there is no reason against having it here, and in addition,
  4959. # creating and moving files from /tmp can sometimes cause problems.
  4960. # Hook for its removal unless debugging.
  4961. # Note that there is a small window in which the directory will not be cleaned:
  4962. # after its creation but before its name has been assigned to `$tmp'.
  4963. $debug ||
  4964. {
  4965. tmp= ac_tmp=
  4966. trap 'exit_status=$?
  4967. : "${ac_tmp:=$tmp}"
  4968. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  4969. ' 0
  4970. trap 'as_fn_exit 1' 1 2 13 15
  4971. }
  4972. # Create a (secure) tmp directory for tmp files.
  4973. {
  4974. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4975. test -d "$tmp"
  4976. } ||
  4977. {
  4978. tmp=./conf$$-$RANDOM
  4979. (umask 077 && mkdir "$tmp")
  4980. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  4981. ac_tmp=$tmp
  4982. # Set up the scripts for CONFIG_FILES section.
  4983. # No need to generate them if there are no CONFIG_FILES.
  4984. # This happens for instance with `./config.status config.h'.
  4985. if test -n "$CONFIG_FILES"; then
  4986. ac_cr=`echo X | tr X '\015'`
  4987. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  4988. # But we know of no other shell where ac_cr would be empty at this
  4989. # point, so we can use a bashism as a fallback.
  4990. if test "x$ac_cr" = x; then
  4991. eval ac_cr=\$\'\\r\'
  4992. fi
  4993. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  4994. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  4995. ac_cs_awk_cr='\\r'
  4996. else
  4997. ac_cs_awk_cr=$ac_cr
  4998. fi
  4999. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  5000. _ACEOF
  5001. {
  5002. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5003. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5004. echo "_ACEOF"
  5005. } >conf$$subs.sh ||
  5006. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5007. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  5008. ac_delim='%!_!# '
  5009. for ac_last_try in false false false false false :; do
  5010. . ./conf$$subs.sh ||
  5011. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5012. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5013. if test $ac_delim_n = $ac_delim_num; then
  5014. break
  5015. elif $ac_last_try; then
  5016. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5017. else
  5018. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5019. fi
  5020. done
  5021. rm -f conf$$subs.sh
  5022. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5023. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  5024. _ACEOF
  5025. sed -n '
  5026. h
  5027. s/^/S["/; s/!.*/"]=/
  5028. p
  5029. g
  5030. s/^[^!]*!//
  5031. :repl
  5032. t repl
  5033. s/'"$ac_delim"'$//
  5034. t delim
  5035. :nl
  5036. h
  5037. s/\(.\{148\}\)..*/\1/
  5038. t more1
  5039. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5040. p
  5041. n
  5042. b repl
  5043. :more1
  5044. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5045. p
  5046. g
  5047. s/.\{148\}//
  5048. t nl
  5049. :delim
  5050. h
  5051. s/\(.\{148\}\)..*/\1/
  5052. t more2
  5053. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5054. p
  5055. b
  5056. :more2
  5057. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5058. p
  5059. g
  5060. s/.\{148\}//
  5061. t delim
  5062. ' <conf$$subs.awk | sed '
  5063. /^[^""]/{
  5064. N
  5065. s/\n//
  5066. }
  5067. ' >>$CONFIG_STATUS || ac_write_fail=1
  5068. rm -f conf$$subs.awk
  5069. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5070. _ACAWK
  5071. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  5072. for (key in S) S_is_set[key] = 1
  5073. FS = ""
  5074. }
  5075. {
  5076. line = $ 0
  5077. nfields = split(line, field, "@")
  5078. substed = 0
  5079. len = length(field[1])
  5080. for (i = 2; i < nfields; i++) {
  5081. key = field[i]
  5082. keylen = length(key)
  5083. if (S_is_set[key]) {
  5084. value = S[key]
  5085. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5086. len += length(value) + length(field[++i])
  5087. substed = 1
  5088. } else
  5089. len += 1 + keylen
  5090. }
  5091. print line
  5092. }
  5093. _ACAWK
  5094. _ACEOF
  5095. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5096. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5097. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5098. else
  5099. cat
  5100. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5101. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5102. _ACEOF
  5103. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5104. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5105. # trailing colons and then remove the whole line if VPATH becomes empty
  5106. # (actually we leave an empty line to preserve line numbers).
  5107. if test "x$srcdir" = x.; then
  5108. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5109. h
  5110. s///
  5111. s/^/:/
  5112. s/[ ]*$/:/
  5113. s/:\$(srcdir):/:/g
  5114. s/:\${srcdir}:/:/g
  5115. s/:@srcdir@:/:/g
  5116. s/^:*//
  5117. s/:*$//
  5118. x
  5119. s/\(=[ ]*\).*/\1/
  5120. G
  5121. s/\n//
  5122. s/^[^=]*=[ ]*$//
  5123. }'
  5124. fi
  5125. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5126. fi # test -n "$CONFIG_FILES"
  5127. # Set up the scripts for CONFIG_HEADERS section.
  5128. # No need to generate them if there are no CONFIG_HEADERS.
  5129. # This happens for instance with `./config.status Makefile'.
  5130. if test -n "$CONFIG_HEADERS"; then
  5131. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  5132. BEGIN {
  5133. _ACEOF
  5134. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5135. # here-document in config.status, that substitutes the proper values into
  5136. # config.h.in to produce config.h.
  5137. # Create a delimiter string that does not exist in confdefs.h, to ease
  5138. # handling of long lines.
  5139. ac_delim='%!_!# '
  5140. for ac_last_try in false false :; do
  5141. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  5142. if test -z "$ac_tt"; then
  5143. break
  5144. elif $ac_last_try; then
  5145. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  5146. else
  5147. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5148. fi
  5149. done
  5150. # For the awk script, D is an array of macro values keyed by name,
  5151. # likewise P contains macro parameters if any. Preserve backslash
  5152. # newline sequences.
  5153. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5154. sed -n '
  5155. s/.\{148\}/&'"$ac_delim"'/g
  5156. t rset
  5157. :rset
  5158. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5159. t def
  5160. d
  5161. :def
  5162. s/\\$//
  5163. t bsnl
  5164. s/["\\]/\\&/g
  5165. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5166. D["\1"]=" \3"/p
  5167. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5168. d
  5169. :bsnl
  5170. s/["\\]/\\&/g
  5171. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5172. D["\1"]=" \3\\\\\\n"\\/p
  5173. t cont
  5174. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5175. t cont
  5176. d
  5177. :cont
  5178. n
  5179. s/.\{148\}/&'"$ac_delim"'/g
  5180. t clear
  5181. :clear
  5182. s/\\$//
  5183. t bsnlc
  5184. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5185. d
  5186. :bsnlc
  5187. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5188. b cont
  5189. ' <confdefs.h | sed '
  5190. s/'"$ac_delim"'/"\\\
  5191. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5192. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5193. for (key in D) D_is_set[key] = 1
  5194. FS = ""
  5195. }
  5196. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5197. line = \$ 0
  5198. split(line, arg, " ")
  5199. if (arg[1] == "#") {
  5200. defundef = arg[2]
  5201. mac1 = arg[3]
  5202. } else {
  5203. defundef = substr(arg[1], 2)
  5204. mac1 = arg[2]
  5205. }
  5206. split(mac1, mac2, "(") #)
  5207. macro = mac2[1]
  5208. prefix = substr(line, 1, index(line, defundef) - 1)
  5209. if (D_is_set[macro]) {
  5210. # Preserve the white space surrounding the "#".
  5211. print prefix "define", macro P[macro] D[macro]
  5212. next
  5213. } else {
  5214. # Replace #undef with comments. This is necessary, for example,
  5215. # in the case of _POSIX_SOURCE, which is predefined and required
  5216. # on some systems where configure will not decide to define it.
  5217. if (defundef == "undef") {
  5218. print "/*", prefix defundef, macro, "*/"
  5219. next
  5220. }
  5221. }
  5222. }
  5223. { print }
  5224. _ACAWK
  5225. _ACEOF
  5226. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5227. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  5228. fi # test -n "$CONFIG_HEADERS"
  5229. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  5230. shift
  5231. for ac_tag
  5232. do
  5233. case $ac_tag in
  5234. :[FHLC]) ac_mode=$ac_tag; continue;;
  5235. esac
  5236. case $ac_mode$ac_tag in
  5237. :[FHL]*:*);;
  5238. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5239. :[FH]-) ac_tag=-:-;;
  5240. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5241. esac
  5242. ac_save_IFS=$IFS
  5243. IFS=:
  5244. set x $ac_tag
  5245. IFS=$ac_save_IFS
  5246. shift
  5247. ac_file=$1
  5248. shift
  5249. case $ac_mode in
  5250. :L) ac_source=$1;;
  5251. :[FH])
  5252. ac_file_inputs=
  5253. for ac_f
  5254. do
  5255. case $ac_f in
  5256. -) ac_f="$ac_tmp/stdin";;
  5257. *) # Look for the file first in the build tree, then in the source tree
  5258. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5259. # because $ac_f cannot contain `:'.
  5260. test -f "$ac_f" ||
  5261. case $ac_f in
  5262. [\\/$]*) false;;
  5263. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5264. esac ||
  5265. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5266. esac
  5267. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5268. as_fn_append ac_file_inputs " '$ac_f'"
  5269. done
  5270. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5271. # use $as_me), people would be surprised to read:
  5272. # /* config.h. Generated by config.status. */
  5273. configure_input='Generated from '`
  5274. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5275. `' by configure.'
  5276. if test x"$ac_file" != x-; then
  5277. configure_input="$ac_file. $configure_input"
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5279. $as_echo "$as_me: creating $ac_file" >&6;}
  5280. fi
  5281. # Neutralize special characters interpreted by sed in replacement strings.
  5282. case $configure_input in #(
  5283. *\&* | *\|* | *\\* )
  5284. ac_sed_conf_input=`$as_echo "$configure_input" |
  5285. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5286. *) ac_sed_conf_input=$configure_input;;
  5287. esac
  5288. case $ac_tag in
  5289. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5290. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5291. esac
  5292. ;;
  5293. esac
  5294. ac_dir=`$as_dirname -- "$ac_file" ||
  5295. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5296. X"$ac_file" : 'X\(//\)[^/]' \| \
  5297. X"$ac_file" : 'X\(//\)$' \| \
  5298. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5299. $as_echo X"$ac_file" |
  5300. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5301. s//\1/
  5302. q
  5303. }
  5304. /^X\(\/\/\)[^/].*/{
  5305. s//\1/
  5306. q
  5307. }
  5308. /^X\(\/\/\)$/{
  5309. s//\1/
  5310. q
  5311. }
  5312. /^X\(\/\).*/{
  5313. s//\1/
  5314. q
  5315. }
  5316. s/.*/./; q'`
  5317. as_dir="$ac_dir"; as_fn_mkdir_p
  5318. ac_builddir=.
  5319. case "$ac_dir" in
  5320. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5321. *)
  5322. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5323. # A ".." for each directory in $ac_dir_suffix.
  5324. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5325. case $ac_top_builddir_sub in
  5326. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5327. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5328. esac ;;
  5329. esac
  5330. ac_abs_top_builddir=$ac_pwd
  5331. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5332. # for backward compatibility:
  5333. ac_top_builddir=$ac_top_build_prefix
  5334. case $srcdir in
  5335. .) # We are building in place.
  5336. ac_srcdir=.
  5337. ac_top_srcdir=$ac_top_builddir_sub
  5338. ac_abs_top_srcdir=$ac_pwd ;;
  5339. [\\/]* | ?:[\\/]* ) # Absolute name.
  5340. ac_srcdir=$srcdir$ac_dir_suffix;
  5341. ac_top_srcdir=$srcdir
  5342. ac_abs_top_srcdir=$srcdir ;;
  5343. *) # Relative name.
  5344. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5345. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5346. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5347. esac
  5348. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5349. case $ac_mode in
  5350. :F)
  5351. #
  5352. # CONFIG_FILE
  5353. #
  5354. _ACEOF
  5355. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5356. # If the template does not know about datarootdir, expand it.
  5357. # FIXME: This hack should be removed a few years after 2.60.
  5358. ac_datarootdir_hack=; ac_datarootdir_seen=
  5359. ac_sed_dataroot='
  5360. /datarootdir/ {
  5361. p
  5362. q
  5363. }
  5364. /@datadir@/p
  5365. /@docdir@/p
  5366. /@infodir@/p
  5367. /@localedir@/p
  5368. /@mandir@/p'
  5369. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5370. *datarootdir*) ac_datarootdir_seen=yes;;
  5371. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5373. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5374. _ACEOF
  5375. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5376. ac_datarootdir_hack='
  5377. s&@datadir@&$datadir&g
  5378. s&@docdir@&$docdir&g
  5379. s&@infodir@&$infodir&g
  5380. s&@localedir@&$localedir&g
  5381. s&@mandir@&$mandir&g
  5382. s&\\\${datarootdir}&$datarootdir&g' ;;
  5383. esac
  5384. _ACEOF
  5385. # Neutralize VPATH when `$srcdir' = `.'.
  5386. # Shell code in configure.ac might set extrasub.
  5387. # FIXME: do we really want to maintain this feature?
  5388. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5389. ac_sed_extra="$ac_vpsub
  5390. $extrasub
  5391. _ACEOF
  5392. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5393. :t
  5394. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5395. s|@configure_input@|$ac_sed_conf_input|;t t
  5396. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5397. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5398. s&@srcdir@&$ac_srcdir&;t t
  5399. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5400. s&@top_srcdir@&$ac_top_srcdir&;t t
  5401. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5402. s&@builddir@&$ac_builddir&;t t
  5403. s&@abs_builddir@&$ac_abs_builddir&;t t
  5404. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5405. $ac_datarootdir_hack
  5406. "
  5407. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  5408. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5409. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5410. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5411. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5412. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5414. which seems to be undefined. Please make sure it is defined" >&5
  5415. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5416. which seems to be undefined. Please make sure it is defined" >&2;}
  5417. rm -f "$ac_tmp/stdin"
  5418. case $ac_file in
  5419. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5420. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5421. esac \
  5422. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5423. ;;
  5424. :H)
  5425. #
  5426. # CONFIG_HEADER
  5427. #
  5428. if test x"$ac_file" != x-; then
  5429. {
  5430. $as_echo "/* $configure_input */" \
  5431. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  5432. } >"$ac_tmp/config.h" \
  5433. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5434. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5436. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5437. else
  5438. rm -f "$ac_file"
  5439. mv "$ac_tmp/config.h" "$ac_file" \
  5440. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5441. fi
  5442. else
  5443. $as_echo "/* $configure_input */" \
  5444. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  5445. || as_fn_error $? "could not create -" "$LINENO" 5
  5446. fi
  5447. ;;
  5448. esac
  5449. done # for ac_tag
  5450. as_fn_exit 0
  5451. _ACEOF
  5452. ac_clean_files=$ac_clean_files_save
  5453. test $ac_write_fail = 0 ||
  5454. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5455. # configure is writing to config.log, and then calls config.status.
  5456. # config.status does its own redirection, appending to config.log.
  5457. # Unfortunately, on DOS this fails, as config.log is still kept open
  5458. # by configure, so config.status won't be able to write to it; its
  5459. # output is simply discarded. So we exec the FD to /dev/null,
  5460. # effectively closing config.log, so it can be properly (re)opened and
  5461. # appended to by config.status. When coming back to configure, we
  5462. # need to make the FD available again.
  5463. if test "$no_create" != yes; then
  5464. ac_cs_success=:
  5465. ac_config_status_args=
  5466. test "$silent" = yes &&
  5467. ac_config_status_args="$ac_config_status_args --quiet"
  5468. exec 5>/dev/null
  5469. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5470. exec 5>>config.log
  5471. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5472. # would make configure fail if this is the last instruction.
  5473. $ac_cs_success || as_fn_exit 1
  5474. fi
  5475. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5477. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5478. fi
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: Menuselect build configuration successfully completed" >&5
  5480. $as_echo "$as_me: Menuselect build configuration successfully completed" >&6;}