1
0

configure 188 KB

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