configure.sh 263 KB

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