configure 233 KB

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