configure.sh 263 KB

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