aide.patch 310 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582
  1. diff -X aide.exclude -u -r aide-0.9/config.h.in aide-0.9m/config.h.in
  2. --- aide-0.9/config.h.in Tue Jun 4 10:31:20 2002
  3. +++ aide-0.9m/config.h.in Mon Oct 21 15:31:02 2002
  4. @@ -129,6 +129,9 @@
  5. /* Define if you have the stricmp function. */
  6. #undef HAVE_STRICMP
  7. +/* Define if you have the strnstr function. */
  8. +#undef HAVE_STRNSTR
  9. +
  10. /* Define if you have the ustat function. */
  11. #undef HAVE_USTAT
  12. diff -X aide.exclude -u -r aide-0.9/configure aide-0.9m/configure
  13. --- aide-0.9/configure Tue Jun 4 10:31:27 2002
  14. +++ aide-0.9m/configure Mon Oct 21 16:30:25 2002
  15. @@ -1,83 +1,310 @@
  16. #! /bin/sh
  17. -
  18. # Guess values for system-dependent variables and create Makefiles.
  19. -# Generated automatically using autoconf version 2.13
  20. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  21. +# Generated by GNU Autoconf 2.53.
  22. #
  23. +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  24. +# Free Software Foundation, Inc.
  25. # This configure script is free software; the Free Software Foundation
  26. # gives unlimited permission to copy, distribute and modify it.
  27. -# Defaults:
  28. -ac_help=
  29. +if expr a : '\(a\)' >/dev/null 2>&1; then
  30. + as_expr=expr
  31. +else
  32. + as_expr=false
  33. +fi
  34. +
  35. +
  36. +## --------------------- ##
  37. +## M4sh Initialization. ##
  38. +## --------------------- ##
  39. +
  40. +# Be Bourne compatible
  41. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  42. + emulate sh
  43. + NULLCMD=:
  44. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  45. + set -o posix
  46. +fi
  47. +
  48. +# NLS nuisances.
  49. +# Support unset when possible.
  50. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  51. + as_unset=unset
  52. +else
  53. + as_unset=false
  54. +fi
  55. +
  56. +(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
  57. + { $as_unset LANG || test "${LANG+set}" != set; } ||
  58. + { LANG=C; export LANG; }
  59. +(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
  60. + { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
  61. + { LC_ALL=C; export LC_ALL; }
  62. +(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
  63. + { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
  64. + { LC_TIME=C; export LC_TIME; }
  65. +(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
  66. + { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
  67. + { LC_CTYPE=C; export LC_CTYPE; }
  68. +(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
  69. + { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
  70. + { LANGUAGE=C; export LANGUAGE; }
  71. +(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
  72. + { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
  73. + { LC_COLLATE=C; export LC_COLLATE; }
  74. +(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
  75. + { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
  76. + { LC_NUMERIC=C; export LC_NUMERIC; }
  77. +(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
  78. + { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
  79. + { LC_MESSAGES=C; export LC_MESSAGES; }
  80. +
  81. +
  82. +# Name of the executable.
  83. +as_me=`(basename "$0") 2>/dev/null ||
  84. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  85. + X"$0" : 'X\(//\)$' \| \
  86. + X"$0" : 'X\(/\)$' \| \
  87. + . : '\(.\)' 2>/dev/null ||
  88. +echo X/"$0" |
  89. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  90. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  91. + /^X\/\(\/\).*/{ s//\1/; q; }
  92. + s/.*/./; q'`
  93. +
  94. +# PATH needs CR, and LINENO needs CR and PATH.
  95. +# Avoid depending upon Character Ranges.
  96. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  97. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  98. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  99. +as_cr_digits='0123456789'
  100. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  101. +
  102. +# The user is always right.
  103. +if test "${PATH_SEPARATOR+set}" != set; then
  104. + echo "#! /bin/sh" >conftest.sh
  105. + echo "exit 0" >>conftest.sh
  106. + chmod +x conftest.sh
  107. + if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
  108. + PATH_SEPARATOR=';'
  109. + else
  110. + PATH_SEPARATOR=:
  111. + fi
  112. + rm -f conftest.sh
  113. +fi
  114. +
  115. +
  116. + as_lineno_1=$LINENO
  117. + as_lineno_2=$LINENO
  118. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  119. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  120. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  121. + # Find who we are. Look in the path if we contain no path at all
  122. + # relative or not.
  123. + case $0 in
  124. + *[\\/]* ) as_myself=$0 ;;
  125. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  126. +for as_dir in $PATH
  127. +do
  128. + IFS=$as_save_IFS
  129. + test -z "$as_dir" && as_dir=.
  130. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  131. +done
  132. +
  133. + ;;
  134. + esac
  135. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  136. + # in which case we are not to be found in the path.
  137. + if test "x$as_myself" = x; then
  138. + as_myself=$0
  139. + fi
  140. + if test ! -f "$as_myself"; then
  141. + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  142. + { (exit 1); exit 1; }; }
  143. + fi
  144. + case $CONFIG_SHELL in
  145. + '')
  146. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  147. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  148. +do
  149. + IFS=$as_save_IFS
  150. + test -z "$as_dir" && as_dir=.
  151. + for as_base in sh bash ksh sh5; do
  152. + case $as_dir in
  153. + /*)
  154. + if ("$as_dir/$as_base" -c '
  155. + as_lineno_1=$LINENO
  156. + as_lineno_2=$LINENO
  157. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  158. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  159. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  160. + CONFIG_SHELL=$as_dir/$as_base
  161. + export CONFIG_SHELL
  162. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  163. + fi;;
  164. + esac
  165. + done
  166. +done
  167. +;;
  168. + esac
  169. +
  170. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  171. + # uniformly replaced by the line number. The first 'sed' inserts a
  172. + # line-number line before each line; the second 'sed' does the real
  173. + # work. The second script uses 'N' to pair each line-number line
  174. + # with the numbered line, and appends trailing '-' during
  175. + # substitution so that $LINENO is not a special case at line end.
  176. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  177. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  178. + sed '=' <$as_myself |
  179. + sed '
  180. + N
  181. + s,$,-,
  182. + : loop
  183. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  184. + t loop
  185. + s,-$,,
  186. + s,^['$as_cr_digits']*\n,,
  187. + ' >$as_me.lineno &&
  188. + chmod +x $as_me.lineno ||
  189. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  190. + { (exit 1); exit 1; }; }
  191. +
  192. + # Don't try to exec as it changes $[0], causing all sort of problems
  193. + # (the dirname of $[0] is not the place where we might find the
  194. + # original and so on. Autoconf is especially sensible to this).
  195. + . ./$as_me.lineno
  196. + # Exit status is that of the last command.
  197. + exit
  198. +}
  199. +
  200. +
  201. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  202. + *c*,-n*) ECHO_N= ECHO_C='
  203. +' ECHO_T=' ' ;;
  204. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  205. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  206. +esac
  207. +
  208. +if expr a : '\(a\)' >/dev/null 2>&1; then
  209. + as_expr=expr
  210. +else
  211. + as_expr=false
  212. +fi
  213. +
  214. +rm -f conf$$ conf$$.exe conf$$.file
  215. +echo >conf$$.file
  216. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  217. + # We could just check for DJGPP; but this test a) works b) is more generic
  218. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  219. + if test -f conf$$.exe; then
  220. + # Don't use ln at all; we don't have any links
  221. + as_ln_s='cp -p'
  222. + else
  223. + as_ln_s='ln -s'
  224. + fi
  225. +elif ln conf$$.file conf$$ 2>/dev/null; then
  226. + as_ln_s=ln
  227. +else
  228. + as_ln_s='cp -p'
  229. +fi
  230. +rm -f conf$$ conf$$.exe conf$$.file
  231. +
  232. +as_executable_p="test -f"
  233. +
  234. +# Sed expression to map a string onto a valid CPP name.
  235. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  236. +
  237. +# Sed expression to map a string onto a valid variable name.
  238. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  239. +
  240. +
  241. +# IFS
  242. +# We need space, tab and new line, in precisely that order.
  243. +as_nl='
  244. +'
  245. +IFS=" $as_nl"
  246. +
  247. +# CDPATH.
  248. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
  249. +
  250. +
  251. +# Name of the host.
  252. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  253. +# so uname gets run too.
  254. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  255. +
  256. +exec 6>&1
  257. +
  258. +#
  259. +# Initializations.
  260. +#
  261. ac_default_prefix=/usr/local
  262. -# Any additions from configure.in:
  263. -ac_help="$ac_help
  264. - --enable-maintainer-mode enable make rules and dependencies not useful
  265. - (and sometimes confusing) to the casual installer"
  266. -ac_help="$ac_help
  267. - --with-extra-includes Specify additional paths to find headerfiles"
  268. -ac_help="$ac_help
  269. - --with-extra-libs Specify aditional paths to find libraries"
  270. -ac_help="$ac_help
  271. - --with-extra-link-libs Specify aditional libraries to link"
  272. -ac_help="$ac_help
  273. ---without-mmap Don't use mmap. Useful on some platforms with slow mmap"
  274. -ac_help="$ac_help
  275. ---with-locale use locale stuff"
  276. -ac_help="$ac_help
  277. ---with-syslog_ident Specify syslog ident"
  278. -ac_help="$ac_help
  279. ---with-syslog_facility Specify syslog facility, see man syslog for options"
  280. -ac_help="$ac_help
  281. ---with-syslog_logopt Specify syslog logopt, see man syslog for options"
  282. -ac_help="$ac_help
  283. ---with-syslog_priority Specify syslog priority, see man syslog for options"
  284. -ac_help="$ac_help
  285. ---with-zlib use zlib compression"
  286. -ac_help="$ac_help
  287. ---with-sun-acl use ACL on solaris (no checking)"
  288. -ac_help="$ac_help
  289. ---with-config_file=config_file use config_file as the default
  290. - config file"
  291. -ac_help="$ac_help
  292. ---with-gnu-regexp use the bundled GNU regexp(use only if necessary)"
  293. -ac_help="$ac_help
  294. ---with-gcrypt use gcrypt library"
  295. -ac_help="$ac_help
  296. ---with-confighmactype=TYPE Hash type to use for checking config.
  297. - Valid values are md5 and sha1."
  298. -ac_help="$ac_help
  299. ---with-confighmackey=KEY HMAC hash key to use for checking config.
  300. - Must be a base64 encoded byte stream.
  301. - Maximum string length is 31 chars."
  302. -ac_help="$ac_help
  303. ---with-dbhmactype=TYPE Hash type to use for checking db.
  304. - Valid values are md5 and sha1."
  305. -ac_help="$ac_help
  306. ---with-dbhmackey=KEY HMAC hash key to use for checking db.
  307. - Must be a base64 encoded byte stream.
  308. - Maximum string lentgth is 31 chars."
  309. -ac_help="$ac_help
  310. ---enable-forced_configmd Forces the config to have checksum.
  311. - Also disables --config-check"
  312. -ac_help="$ac_help
  313. ---enable-forced_dbmd Forces the file/pipe database's to have checksum.
  314. - This will be the default in the next release."
  315. -ac_help="$ac_help
  316. ---with-initial_errors_to=URL Where errors should go while checking config.
  317. - Default is stderr."
  318. -ac_help="$ac_help
  319. ---with-psql use postgres sql library for storing databases"
  320. +cross_compiling=no
  321. +subdirs=
  322. +MFLAGS=
  323. +MAKEFLAGS=
  324. +SHELL=${CONFIG_SHELL-/bin/sh}
  325. +
  326. +# Maximum number of lines to put in a shell here document.
  327. +# This variable seems obsolete. It should probably be removed, and
  328. +# only ac_max_sed_lines should be used.
  329. +: ${ac_max_here_lines=38}
  330. +
  331. +# Identity of this package.
  332. +PACKAGE_NAME=
  333. +PACKAGE_TARNAME=
  334. +PACKAGE_VERSION=
  335. +PACKAGE_STRING=
  336. +PACKAGE_BUGREPORT=
  337. +
  338. +ac_unique_file="src/aide.c"
  339. +# Factoring default headers for most tests.
  340. +ac_includes_default="\
  341. +#include <stdio.h>
  342. +#if HAVE_SYS_TYPES_H
  343. +# include <sys/types.h>
  344. +#endif
  345. +#if HAVE_SYS_STAT_H
  346. +# include <sys/stat.h>
  347. +#endif
  348. +#if STDC_HEADERS
  349. +# include <stdlib.h>
  350. +# include <stddef.h>
  351. +#else
  352. +# if HAVE_STDLIB_H
  353. +# include <stdlib.h>
  354. +# endif
  355. +#endif
  356. +#if HAVE_STRING_H
  357. +# if !STDC_HEADERS && HAVE_MEMORY_H
  358. +# include <memory.h>
  359. +# endif
  360. +# include <string.h>
  361. +#endif
  362. +#if HAVE_STRINGS_H
  363. +# include <strings.h>
  364. +#endif
  365. +#if HAVE_INTTYPES_H
  366. +# include <inttypes.h>
  367. +#else
  368. +# if HAVE_STDINT_H
  369. +# include <stdint.h>
  370. +# endif
  371. +#endif
  372. +#if HAVE_UNISTD_H
  373. +# include <unistd.h>
  374. +#endif"
  375. +
  376. # Initialize some variables set by options.
  377. +ac_init_help=
  378. +ac_init_version=false
  379. # The variables have the same names as the options, with
  380. # dashes changed to underlines.
  381. -build=NONE
  382. -cache_file=./config.cache
  383. +cache_file=/dev/null
  384. exec_prefix=NONE
  385. -host=NONE
  386. no_create=
  387. -nonopt=NONE
  388. no_recursion=
  389. prefix=NONE
  390. program_prefix=NONE
  391. @@ -86,10 +313,15 @@
  392. silent=
  393. site=
  394. srcdir=
  395. -target=NONE
  396. verbose=
  397. x_includes=NONE
  398. x_libraries=NONE
  399. +
  400. +# Installation directory options.
  401. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  402. +# and all the variables that are supposed to be based on exec_prefix
  403. +# by default will actually change.
  404. +# Use braces instead of parens because sh, perl, etc. also accept them.
  405. bindir='${exec_prefix}/bin'
  406. sbindir='${exec_prefix}/sbin'
  407. libexecdir='${exec_prefix}/libexec'
  408. @@ -103,17 +335,9 @@
  409. infodir='${prefix}/info'
  410. mandir='${prefix}/man'
  411. -# Initialize some other variables.
  412. -subdirs=
  413. -MFLAGS= MAKEFLAGS=
  414. -SHELL=${CONFIG_SHELL-/bin/sh}
  415. -# Maximum number of lines to put in a shell here document.
  416. -ac_max_here_lines=12
  417. -
  418. ac_prev=
  419. for ac_option
  420. do
  421. -
  422. # If the previous option needs an argument, assign it.
  423. if test -n "$ac_prev"; then
  424. eval "$ac_prev=\$ac_option"
  425. @@ -121,59 +345,59 @@
  426. continue
  427. fi
  428. - case "$ac_option" in
  429. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  430. - *) ac_optarg= ;;
  431. - esac
  432. + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  433. # Accept the important Cygnus configure options, so we can diagnose typos.
  434. - case "$ac_option" in
  435. + case $ac_option in
  436. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  437. ac_prev=bindir ;;
  438. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  439. - bindir="$ac_optarg" ;;
  440. + bindir=$ac_optarg ;;
  441. -build | --build | --buil | --bui | --bu)
  442. - ac_prev=build ;;
  443. + ac_prev=build_alias ;;
  444. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  445. - build="$ac_optarg" ;;
  446. + build_alias=$ac_optarg ;;
  447. -cache-file | --cache-file | --cache-fil | --cache-fi \
  448. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  449. ac_prev=cache_file ;;
  450. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  451. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  452. - cache_file="$ac_optarg" ;;
  453. + cache_file=$ac_optarg ;;
  454. +
  455. + --config-cache | -C)
  456. + cache_file=config.cache ;;
  457. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  458. ac_prev=datadir ;;
  459. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  460. | --da=*)
  461. - datadir="$ac_optarg" ;;
  462. + datadir=$ac_optarg ;;
  463. -disable-* | --disable-*)
  464. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  465. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  466. # Reject names that are not valid shell variable names.
  467. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  468. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  469. - fi
  470. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  471. - eval "enable_${ac_feature}=no" ;;
  472. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  473. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  474. + { (exit 1); exit 1; }; }
  475. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  476. + eval "enable_$ac_feature=no" ;;
  477. -enable-* | --enable-*)
  478. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  479. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  480. # Reject names that are not valid shell variable names.
  481. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  482. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  483. - fi
  484. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  485. - case "$ac_option" in
  486. - *=*) ;;
  487. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  488. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  489. + { (exit 1); exit 1; }; }
  490. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  491. + case $ac_option in
  492. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  493. *) ac_optarg=yes ;;
  494. esac
  495. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  496. + eval "enable_$ac_feature='$ac_optarg'" ;;
  497. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  498. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  499. @@ -182,95 +406,47 @@
  500. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  501. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  502. | --exec=* | --exe=* | --ex=*)
  503. - exec_prefix="$ac_optarg" ;;
  504. + exec_prefix=$ac_optarg ;;
  505. -gas | --gas | --ga | --g)
  506. # Obsolete; use --with-gas.
  507. with_gas=yes ;;
  508. - -help | --help | --hel | --he)
  509. - # Omit some internal or obsolete options to make the list less imposing.
  510. - # This message is too long to be a string in the A/UX 3.1 sh.
  511. - cat << EOF
  512. -Usage: configure [options] [host]
  513. -Options: [defaults in brackets after descriptions]
  514. -Configuration:
  515. - --cache-file=FILE cache test results in FILE
  516. - --help print this message
  517. - --no-create do not create output files
  518. - --quiet, --silent do not print \`checking...' messages
  519. - --version print the version of autoconf that created configure
  520. -Directory and file names:
  521. - --prefix=PREFIX install architecture-independent files in PREFIX
  522. - [$ac_default_prefix]
  523. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  524. - [same as prefix]
  525. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  526. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  527. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  528. - --datadir=DIR read-only architecture-independent data in DIR
  529. - [PREFIX/share]
  530. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  531. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  532. - [PREFIX/com]
  533. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  534. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  535. - --includedir=DIR C header files in DIR [PREFIX/include]
  536. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  537. - --infodir=DIR info documentation in DIR [PREFIX/info]
  538. - --mandir=DIR man documentation in DIR [PREFIX/man]
  539. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  540. - --program-prefix=PREFIX prepend PREFIX to installed program names
  541. - --program-suffix=SUFFIX append SUFFIX to installed program names
  542. - --program-transform-name=PROGRAM
  543. - run sed PROGRAM on installed program names
  544. -EOF
  545. - cat << EOF
  546. -Host type:
  547. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  548. - --host=HOST configure for HOST [guessed]
  549. - --target=TARGET configure for TARGET [TARGET=HOST]
  550. -Features and packages:
  551. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  552. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  553. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  554. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  555. - --x-includes=DIR X include files are in DIR
  556. - --x-libraries=DIR X library files are in DIR
  557. -EOF
  558. - if test -n "$ac_help"; then
  559. - echo "--enable and --with options recognized:$ac_help"
  560. - fi
  561. - exit 0 ;;
  562. + -help | --help | --hel | --he | -h)
  563. + ac_init_help=long ;;
  564. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  565. + ac_init_help=recursive ;;
  566. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  567. + ac_init_help=short ;;
  568. -host | --host | --hos | --ho)
  569. - ac_prev=host ;;
  570. + ac_prev=host_alias ;;
  571. -host=* | --host=* | --hos=* | --ho=*)
  572. - host="$ac_optarg" ;;
  573. + host_alias=$ac_optarg ;;
  574. -includedir | --includedir | --includedi | --included | --include \
  575. | --includ | --inclu | --incl | --inc)
  576. ac_prev=includedir ;;
  577. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  578. | --includ=* | --inclu=* | --incl=* | --inc=*)
  579. - includedir="$ac_optarg" ;;
  580. + includedir=$ac_optarg ;;
  581. -infodir | --infodir | --infodi | --infod | --info | --inf)
  582. ac_prev=infodir ;;
  583. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  584. - infodir="$ac_optarg" ;;
  585. + infodir=$ac_optarg ;;
  586. -libdir | --libdir | --libdi | --libd)
  587. ac_prev=libdir ;;
  588. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  589. - libdir="$ac_optarg" ;;
  590. + libdir=$ac_optarg ;;
  591. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  592. | --libexe | --libex | --libe)
  593. ac_prev=libexecdir ;;
  594. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  595. | --libexe=* | --libex=* | --libe=*)
  596. - libexecdir="$ac_optarg" ;;
  597. + libexecdir=$ac_optarg ;;
  598. -localstatedir | --localstatedir | --localstatedi | --localstated \
  599. | --localstate | --localstat | --localsta | --localst \
  600. @@ -279,19 +455,19 @@
  601. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  602. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  603. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  604. - localstatedir="$ac_optarg" ;;
  605. + localstatedir=$ac_optarg ;;
  606. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  607. ac_prev=mandir ;;
  608. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  609. - mandir="$ac_optarg" ;;
  610. + mandir=$ac_optarg ;;
  611. -nfp | --nfp | --nf)
  612. # Obsolete; use --without-fp.
  613. with_fp=no ;;
  614. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  615. - | --no-cr | --no-c)
  616. + | --no-cr | --no-c | -n)
  617. no_create=yes ;;
  618. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  619. @@ -305,26 +481,26 @@
  620. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  621. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  622. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  623. - oldincludedir="$ac_optarg" ;;
  624. + oldincludedir=$ac_optarg ;;
  625. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  626. ac_prev=prefix ;;
  627. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  628. - prefix="$ac_optarg" ;;
  629. + prefix=$ac_optarg ;;
  630. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  631. | --program-pre | --program-pr | --program-p)
  632. ac_prev=program_prefix ;;
  633. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  634. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  635. - program_prefix="$ac_optarg" ;;
  636. + program_prefix=$ac_optarg ;;
  637. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  638. | --program-suf | --program-su | --program-s)
  639. ac_prev=program_suffix ;;
  640. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  641. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  642. - program_suffix="$ac_optarg" ;;
  643. + program_suffix=$ac_optarg ;;
  644. -program-transform-name | --program-transform-name \
  645. | --program-transform-nam | --program-transform-na \
  646. @@ -341,7 +517,7 @@
  647. | --program-transfo=* | --program-transf=* \
  648. | --program-trans=* | --program-tran=* \
  649. | --progr-tra=* | --program-tr=* | --program-t=*)
  650. - program_transform_name="$ac_optarg" ;;
  651. + program_transform_name=$ac_optarg ;;
  652. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  653. | -silent | --silent | --silen | --sile | --sil)
  654. @@ -351,7 +527,7 @@
  655. ac_prev=sbindir ;;
  656. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  657. | --sbi=* | --sb=*)
  658. - sbindir="$ac_optarg" ;;
  659. + sbindir=$ac_optarg ;;
  660. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  661. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  662. @@ -362,58 +538,57 @@
  663. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  664. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  665. | --sha=* | --sh=*)
  666. - sharedstatedir="$ac_optarg" ;;
  667. + sharedstatedir=$ac_optarg ;;
  668. -site | --site | --sit)
  669. ac_prev=site ;;
  670. -site=* | --site=* | --sit=*)
  671. - site="$ac_optarg" ;;
  672. + site=$ac_optarg ;;
  673. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  674. ac_prev=srcdir ;;
  675. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  676. - srcdir="$ac_optarg" ;;
  677. + srcdir=$ac_optarg ;;
  678. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  679. | --syscon | --sysco | --sysc | --sys | --sy)
  680. ac_prev=sysconfdir ;;
  681. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  682. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  683. - sysconfdir="$ac_optarg" ;;
  684. + sysconfdir=$ac_optarg ;;
  685. -target | --target | --targe | --targ | --tar | --ta | --t)
  686. - ac_prev=target ;;
  687. + ac_prev=target_alias ;;
  688. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  689. - target="$ac_optarg" ;;
  690. + target_alias=$ac_optarg ;;
  691. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  692. verbose=yes ;;
  693. - -version | --version | --versio | --versi | --vers)
  694. - echo "configure generated by autoconf version 2.13"
  695. - exit 0 ;;
  696. + -version | --version | --versio | --versi | --vers | -V)
  697. + ac_init_version=: ;;
  698. -with-* | --with-*)
  699. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  700. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  701. # Reject names that are not valid shell variable names.
  702. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  703. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  704. - fi
  705. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  706. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  707. + { (exit 1); exit 1; }; }
  708. ac_package=`echo $ac_package| sed 's/-/_/g'`
  709. - case "$ac_option" in
  710. - *=*) ;;
  711. + case $ac_option in
  712. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  713. *) ac_optarg=yes ;;
  714. esac
  715. - eval "with_${ac_package}='$ac_optarg'" ;;
  716. + eval "with_$ac_package='$ac_optarg'" ;;
  717. -without-* | --without-*)
  718. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  719. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  720. # Reject names that are not valid shell variable names.
  721. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  722. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  723. - fi
  724. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  725. - eval "with_${ac_package}=no" ;;
  726. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  727. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  728. + { (exit 1); exit 1; }; }
  729. + ac_package=`echo $ac_package | sed 's/-/_/g'`
  730. + eval "with_$ac_package=no" ;;
  731. --x)
  732. # Obsolete; use --with-x.
  733. @@ -424,99 +599,110 @@
  734. ac_prev=x_includes ;;
  735. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  736. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  737. - x_includes="$ac_optarg" ;;
  738. + x_includes=$ac_optarg ;;
  739. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  740. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  741. ac_prev=x_libraries ;;
  742. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  743. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  744. - x_libraries="$ac_optarg" ;;
  745. + x_libraries=$ac_optarg ;;
  746. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  747. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  748. +Try \`$0 --help' for more information." >&2
  749. + { (exit 1); exit 1; }; }
  750. ;;
  751. + *=*)
  752. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  753. + # Reject names that are not valid shell variable names.
  754. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  755. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  756. + { (exit 1); exit 1; }; }
  757. + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  758. + eval "$ac_envvar='$ac_optarg'"
  759. + export $ac_envvar ;;
  760. +
  761. *)
  762. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  763. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  764. - fi
  765. - if test "x$nonopt" != xNONE; then
  766. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  767. - fi
  768. - nonopt="$ac_option"
  769. + # FIXME: should be removed in autoconf 3.0.
  770. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  771. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  772. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  773. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  774. ;;
  775. esac
  776. done
  777. if test -n "$ac_prev"; then
  778. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  779. -fi
  780. -
  781. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  782. -
  783. -# File descriptor usage:
  784. -# 0 standard input
  785. -# 1 file creation
  786. -# 2 errors and warnings
  787. -# 3 some systems may open it to /dev/tty
  788. -# 4 used on the Kubota Titan
  789. -# 6 checking for... messages and results
  790. -# 5 compiler messages saved in config.log
  791. -if test "$silent" = yes; then
  792. - exec 6>/dev/null
  793. -else
  794. - exec 6>&1
  795. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  796. + { echo "$as_me: error: missing argument to $ac_option" >&2
  797. + { (exit 1); exit 1; }; }
  798. fi
  799. -exec 5>./config.log
  800. -echo "\
  801. -This file contains any messages produced by compilers while
  802. -running configure, to aid debugging if configure makes a mistake.
  803. -" 1>&5
  804. +# Be sure to have absolute paths.
  805. +for ac_var in exec_prefix prefix
  806. +do
  807. + eval ac_val=$`echo $ac_var`
  808. + case $ac_val in
  809. + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  810. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  811. + { (exit 1); exit 1; }; };;
  812. + esac
  813. +done
  814. -# Strip out --no-create and --no-recursion so they do not pile up.
  815. -# Also quote any args containing shell metacharacters.
  816. -ac_configure_args=
  817. -for ac_arg
  818. +# Be sure to have absolute paths.
  819. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  820. + localstatedir libdir includedir oldincludedir infodir mandir
  821. do
  822. - case "$ac_arg" in
  823. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  824. - | --no-cr | --no-c) ;;
  825. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  826. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  827. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  828. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  829. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  830. + eval ac_val=$`echo $ac_var`
  831. + case $ac_val in
  832. + [\\/$]* | ?:[\\/]* ) ;;
  833. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  834. + { (exit 1); exit 1; }; };;
  835. esac
  836. done
  837. -# NLS nuisances.
  838. -# Only set these to C if already set. These must not be set unconditionally
  839. -# because not all systems understand e.g. LANG=C (notably SCO).
  840. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  841. -# Non-C LC_CTYPE values break the ctype check.
  842. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  843. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  844. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  845. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  846. +# There might be people who depend on the old broken behavior: `$host'
  847. +# used to hold the argument of --host etc.
  848. +# FIXME: To remove some day.
  849. +build=$build_alias
  850. +host=$host_alias
  851. +target=$target_alias
  852. +
  853. +# FIXME: To remove some day.
  854. +if test "x$host_alias" != x; then
  855. + if test "x$build_alias" = x; then
  856. + cross_compiling=maybe
  857. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  858. + If a cross compiler is detected then cross compile mode will be used." >&2
  859. + elif test "x$build_alias" != "x$host_alias"; then
  860. + cross_compiling=yes
  861. + fi
  862. +fi
  863. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  864. -rm -rf conftest* confdefs.h
  865. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  866. -echo > confdefs.h
  867. +ac_tool_prefix=
  868. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  869. +
  870. +test "$silent" = yes && exec 6>/dev/null
  871. -# A filename unique to this package, relative to the directory that
  872. -# configure is in, which we can look for to find out if srcdir is correct.
  873. -ac_unique_file=src/aide.c
  874. # Find the source files, if location was not specified.
  875. if test -z "$srcdir"; then
  876. ac_srcdir_defaulted=yes
  877. # Try the directory containing this script, then its parent.
  878. - ac_prog=$0
  879. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  880. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  881. + ac_confdir=`(dirname "$0") 2>/dev/null ||
  882. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  883. + X"$0" : 'X\(//\)[^/]' \| \
  884. + X"$0" : 'X\(//\)$' \| \
  885. + X"$0" : 'X\(/\)' \| \
  886. + . : '\(.\)' 2>/dev/null ||
  887. +echo X"$0" |
  888. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  889. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  890. + /^X\(\/\/\)$/{ s//\1/; q; }
  891. + /^X\(\/\).*/{ s//\1/; q; }
  892. + s/.*/./; q'`
  893. srcdir=$ac_confdir
  894. if test ! -r $srcdir/$ac_unique_file; then
  895. srcdir=..
  896. @@ -526,13 +712,409 @@
  897. fi
  898. if test ! -r $srcdir/$ac_unique_file; then
  899. if test "$ac_srcdir_defaulted" = yes; then
  900. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  901. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  902. + { (exit 1); exit 1; }; }
  903. else
  904. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  905. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  906. + { (exit 1); exit 1; }; }
  907. fi
  908. fi
  909. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  910. +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  911. +ac_env_build_alias_set=${build_alias+set}
  912. +ac_env_build_alias_value=$build_alias
  913. +ac_cv_env_build_alias_set=${build_alias+set}
  914. +ac_cv_env_build_alias_value=$build_alias
  915. +ac_env_host_alias_set=${host_alias+set}
  916. +ac_env_host_alias_value=$host_alias
  917. +ac_cv_env_host_alias_set=${host_alias+set}
  918. +ac_cv_env_host_alias_value=$host_alias
  919. +ac_env_target_alias_set=${target_alias+set}
  920. +ac_env_target_alias_value=$target_alias
  921. +ac_cv_env_target_alias_set=${target_alias+set}
  922. +ac_cv_env_target_alias_value=$target_alias
  923. +ac_env_CC_set=${CC+set}
  924. +ac_env_CC_value=$CC
  925. +ac_cv_env_CC_set=${CC+set}
  926. +ac_cv_env_CC_value=$CC
  927. +ac_env_CFLAGS_set=${CFLAGS+set}
  928. +ac_env_CFLAGS_value=$CFLAGS
  929. +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  930. +ac_cv_env_CFLAGS_value=$CFLAGS
  931. +ac_env_LDFLAGS_set=${LDFLAGS+set}
  932. +ac_env_LDFLAGS_value=$LDFLAGS
  933. +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  934. +ac_cv_env_LDFLAGS_value=$LDFLAGS
  935. +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  936. +ac_env_CPPFLAGS_value=$CPPFLAGS
  937. +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  938. +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  939. +ac_env_CPP_set=${CPP+set}
  940. +ac_env_CPP_value=$CPP
  941. +ac_cv_env_CPP_set=${CPP+set}
  942. +ac_cv_env_CPP_value=$CPP
  943. +
  944. +#
  945. +# Report the --help message.
  946. +#
  947. +if test "$ac_init_help" = "long"; then
  948. + # Omit some internal or obsolete options to make the list less imposing.
  949. + # This message is too long to be a string in the A/UX 3.1 sh.
  950. + cat <<_ACEOF
  951. +\`configure' configures this package to adapt to many kinds of systems.
  952. +
  953. +Usage: $0 [OPTION]... [VAR=VALUE]...
  954. +
  955. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  956. +VAR=VALUE. See below for descriptions of some of the useful variables.
  957. +
  958. +Defaults for the options are specified in brackets.
  959. +
  960. +Configuration:
  961. + -h, --help display this help and exit
  962. + --help=short display options specific to this package
  963. + --help=recursive display the short help of all the included packages
  964. + -V, --version display version information and exit
  965. + -q, --quiet, --silent do not print \`checking...' messages
  966. + --cache-file=FILE cache test results in FILE [disabled]
  967. + -C, --config-cache alias for \`--cache-file=config.cache'
  968. + -n, --no-create do not create output files
  969. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  970. +
  971. +_ACEOF
  972. +
  973. + cat <<_ACEOF
  974. +Installation directories:
  975. + --prefix=PREFIX install architecture-independent files in PREFIX
  976. + [$ac_default_prefix]
  977. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  978. + [PREFIX]
  979. +
  980. +By default, \`make install' will install all the files in
  981. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  982. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  983. +for instance \`--prefix=\$HOME'.
  984. +
  985. +For better control, use the options below.
  986. +
  987. +Fine tuning of the installation directories:
  988. + --bindir=DIR user executables [EPREFIX/bin]
  989. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  990. + --libexecdir=DIR program executables [EPREFIX/libexec]
  991. + --datadir=DIR read-only architecture-independent data [PREFIX/share]
  992. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  993. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  994. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  995. + --libdir=DIR object code libraries [EPREFIX/lib]
  996. + --includedir=DIR C header files [PREFIX/include]
  997. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  998. + --infodir=DIR info documentation [PREFIX/info]
  999. + --mandir=DIR man documentation [PREFIX/man]
  1000. +_ACEOF
  1001. +
  1002. + cat <<\_ACEOF
  1003. +
  1004. +Program names:
  1005. + --program-prefix=PREFIX prepend PREFIX to installed program names
  1006. + --program-suffix=SUFFIX append SUFFIX to installed program names
  1007. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1008. +_ACEOF
  1009. +fi
  1010. +
  1011. +if test -n "$ac_init_help"; then
  1012. +
  1013. + cat <<\_ACEOF
  1014. +
  1015. +Optional Features:
  1016. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1017. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1018. + --enable-maintainer-mode enable make rules and dependencies not useful
  1019. + (and sometimes confusing) to the casual installer
  1020. +--enable-forced_configmd Forces the config to have checksum.
  1021. + Also disables --config-check
  1022. +--enable-forced_dbmd Forces the file/pipe database's to have checksum.
  1023. + This will be the default in the next release.
  1024. +
  1025. +Optional Packages:
  1026. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1027. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1028. + --with-extra-includes Specify additional paths to find headerfiles
  1029. + --with-extra-libs Specify aditional paths to find libraries
  1030. + --with-extra-link-libs Specify aditional libraries to link
  1031. +--without-mmap Don't use mmap. Useful on some platforms with slow mmap
  1032. +--with-locale use locale stuff
  1033. +--with-syslog_ident Specify syslog ident
  1034. +--with-syslog_facility Specify syslog facility, see man syslog for options
  1035. +--with-syslog_logopt Specify syslog logopt, see man syslog for options
  1036. +--with-syslog_priority Specify syslog priority, see man syslog for options
  1037. +--with-zlib use zlib compression
  1038. +--with-sun-acl use ACL on solaris (no checking)
  1039. +--with-config_file=config_file use config_file as the default
  1040. + config file
  1041. +--with-gnu-regexp use the bundled GNU regexp (use only if necessary)
  1042. +--with-gcrypt use gcrypt library
  1043. +--with-confighmactype=TYPE Hash type to use for checking config.
  1044. + Valid values are md5 and sha1.
  1045. +--with-confighmackey=KEY HMAC hash key to use for checking config.
  1046. + Must be a base64 encoded byte stream.
  1047. + Maximum string length is 31 chars.
  1048. +--with-dbhmactype=TYPE Hash type to use for checking db.
  1049. + Valid values are md5 and sha1.
  1050. +--with-dbhmackey=KEY HMAC hash key to use for checking db.
  1051. + Must be a base64 encoded byte stream.
  1052. + Maximum string lentgth is 31 chars.
  1053. +--with-initial_errors_to=URL Where errors should go while checking config.
  1054. + Default is stderr.
  1055. +--with-psql use postgres sql library for storing databases
  1056. +
  1057. +Some influential environment variables:
  1058. + CC C compiler command
  1059. + CFLAGS C compiler flags
  1060. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1061. + nonstandard directory <lib dir>
  1062. + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1063. + headers in a nonstandard directory <include dir>
  1064. + CPP C preprocessor
  1065. +
  1066. +Use these variables to override the choices made by `configure' or to help
  1067. +it to find libraries and programs with nonstandard names/locations.
  1068. +
  1069. +_ACEOF
  1070. +fi
  1071. +
  1072. +if test "$ac_init_help" = "recursive"; then
  1073. + # If there are subdirs, report their specific --help.
  1074. + ac_popdir=`pwd`
  1075. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1076. + test -d $ac_dir || continue
  1077. + ac_builddir=.
  1078. +
  1079. +if test "$ac_dir" != .; then
  1080. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1081. + # A "../" for each directory in $ac_dir_suffix.
  1082. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1083. +else
  1084. + ac_dir_suffix= ac_top_builddir=
  1085. +fi
  1086. +
  1087. +case $srcdir in
  1088. + .) # No --srcdir option. We are building in place.
  1089. + ac_srcdir=.
  1090. + if test -z "$ac_top_builddir"; then
  1091. + ac_top_srcdir=.
  1092. + else
  1093. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1094. + fi ;;
  1095. + [\\/]* | ?:[\\/]* ) # Absolute path.
  1096. + ac_srcdir=$srcdir$ac_dir_suffix;
  1097. + ac_top_srcdir=$srcdir ;;
  1098. + *) # Relative path.
  1099. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1100. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1101. +esac
  1102. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  1103. +# absolute.
  1104. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  1105. +ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  1106. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  1107. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  1108. +
  1109. + cd $ac_dir
  1110. + # Check for guested configure; otherwise get Cygnus style configure.
  1111. + if test -f $ac_srcdir/configure.gnu; then
  1112. + echo
  1113. + $SHELL $ac_srcdir/configure.gnu --help=recursive
  1114. + elif test -f $ac_srcdir/configure; then
  1115. + echo
  1116. + $SHELL $ac_srcdir/configure --help=recursive
  1117. + elif test -f $ac_srcdir/configure.ac ||
  1118. + test -f $ac_srcdir/configure.in; then
  1119. + echo
  1120. + $ac_configure --help
  1121. + else
  1122. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1123. + fi
  1124. + cd $ac_popdir
  1125. + done
  1126. +fi
  1127. +
  1128. +test -n "$ac_init_help" && exit 0
  1129. +if $ac_init_version; then
  1130. + cat <<\_ACEOF
  1131. +
  1132. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  1133. +Free Software Foundation, Inc.
  1134. +This configure script is free software; the Free Software Foundation
  1135. +gives unlimited permission to copy, distribute and modify it.
  1136. +_ACEOF
  1137. + exit 0
  1138. +fi
  1139. +exec 5>config.log
  1140. +cat >&5 <<_ACEOF
  1141. +This file contains any messages produced by compilers while
  1142. +running configure, to aid debugging if configure makes a mistake.
  1143. +
  1144. +It was created by $as_me, which was
  1145. +generated by GNU Autoconf 2.53. Invocation command line was
  1146. +
  1147. + $ $0 $@
  1148. +
  1149. +_ACEOF
  1150. +{
  1151. +cat <<_ASUNAME
  1152. +## --------- ##
  1153. +## Platform. ##
  1154. +## --------- ##
  1155. +
  1156. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1157. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1158. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1159. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1160. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1161. +
  1162. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1163. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1164. +
  1165. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1166. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1167. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1168. +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1169. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1170. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1171. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1172. +
  1173. +_ASUNAME
  1174. +
  1175. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1176. +for as_dir in $PATH
  1177. +do
  1178. + IFS=$as_save_IFS
  1179. + test -z "$as_dir" && as_dir=.
  1180. + echo "PATH: $as_dir"
  1181. +done
  1182. +
  1183. +} >&5
  1184. +
  1185. +cat >&5 <<_ACEOF
  1186. +
  1187. +
  1188. +## ----------- ##
  1189. +## Core tests. ##
  1190. +## ----------- ##
  1191. +
  1192. +_ACEOF
  1193. +
  1194. +
  1195. +# Keep a trace of the command line.
  1196. +# Strip out --no-create and --no-recursion so they do not pile up.
  1197. +# Also quote any args containing shell meta-characters.
  1198. +ac_configure_args=
  1199. +ac_sep=
  1200. +for ac_arg
  1201. +do
  1202. + case $ac_arg in
  1203. + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1204. + | --no-cr | --no-c | -n ) continue ;;
  1205. + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1206. + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1207. + continue ;;
  1208. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1209. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1210. + esac
  1211. + case " $ac_configure_args " in
  1212. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1213. + *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1214. + ac_sep=" " ;;
  1215. + esac
  1216. + # Get rid of the leading space.
  1217. +done
  1218. +
  1219. +# When interrupted or exit'd, cleanup temporary files, and complete
  1220. +# config.log. We remove comments because anyway the quotes in there
  1221. +# would cause problems or look ugly.
  1222. +# WARNING: Be sure not to use single quotes in there, as some shells,
  1223. +# such as our DU 5.0 friend, will then `close' the trap.
  1224. +trap 'exit_status=$?
  1225. + # Save into config.log some information that might help in debugging.
  1226. + {
  1227. + echo
  1228. + cat <<\_ASBOX
  1229. +## ---------------- ##
  1230. +## Cache variables. ##
  1231. +## ---------------- ##
  1232. +_ASBOX
  1233. + echo
  1234. + # The following way of writing the cache mishandles newlines in values,
  1235. +{
  1236. + (set) 2>&1 |
  1237. + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1238. + *ac_space=\ *)
  1239. + sed -n \
  1240. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1241. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1242. + ;;
  1243. + *)
  1244. + sed -n \
  1245. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1246. + ;;
  1247. + esac;
  1248. +}
  1249. + echo
  1250. + if test -s confdefs.h; then
  1251. + cat <<\_ASBOX
  1252. +## ----------- ##
  1253. +## confdefs.h. ##
  1254. +## ----------- ##
  1255. +_ASBOX
  1256. + echo
  1257. + sed "/^$/d" confdefs.h
  1258. + echo
  1259. + fi
  1260. + test "$ac_signal" != 0 &&
  1261. + echo "$as_me: caught signal $ac_signal"
  1262. + echo "$as_me: exit $exit_status"
  1263. + } >&5
  1264. + rm -f core core.* *.core &&
  1265. + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1266. + exit $exit_status
  1267. + ' 0
  1268. +for ac_signal in 1 2 13 15; do
  1269. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1270. +done
  1271. +ac_signal=0
  1272. +
  1273. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1274. +rm -rf conftest* confdefs.h
  1275. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1276. +echo >confdefs.h
  1277. +
  1278. +# Predefined preprocessor variables.
  1279. +
  1280. +cat >>confdefs.h <<_ACEOF
  1281. +#define PACKAGE_NAME "$PACKAGE_NAME"
  1282. +_ACEOF
  1283. +
  1284. +
  1285. +cat >>confdefs.h <<_ACEOF
  1286. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1287. +_ACEOF
  1288. +
  1289. +cat >>confdefs.h <<_ACEOF
  1290. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  1291. +_ACEOF
  1292. +
  1293. +
  1294. +cat >>confdefs.h <<_ACEOF
  1295. +#define PACKAGE_STRING "$PACKAGE_STRING"
  1296. +_ACEOF
  1297. +
  1298. +
  1299. +cat >>confdefs.h <<_ACEOF
  1300. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1301. +_ACEOF
  1302. +
  1303. +
  1304. +# Let the site file select an alternate cache file if it wants to.
  1305. # Prefer explicitly selected file to automatically selected ones.
  1306. if test -z "$CONFIG_SITE"; then
  1307. if test "x$prefix" != xNONE; then
  1308. @@ -543,39 +1125,102 @@
  1309. fi
  1310. for ac_site_file in $CONFIG_SITE; do
  1311. if test -r "$ac_site_file"; then
  1312. - echo "loading site script $ac_site_file"
  1313. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1314. +echo "$as_me: loading site script $ac_site_file" >&6;}
  1315. + sed 's/^/| /' "$ac_site_file" >&5
  1316. . "$ac_site_file"
  1317. fi
  1318. done
  1319. if test -r "$cache_file"; then
  1320. - echo "loading cache $cache_file"
  1321. - . $cache_file
  1322. + # Some versions of bash will fail to source /dev/null (special
  1323. + # files actually), so we avoid doing that.
  1324. + if test -f "$cache_file"; then
  1325. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1326. +echo "$as_me: loading cache $cache_file" >&6;}
  1327. + case $cache_file in
  1328. + [\\/]* | ?:[\\/]* ) . $cache_file;;
  1329. + *) . ./$cache_file;;
  1330. + esac
  1331. + fi
  1332. else
  1333. - echo "creating cache $cache_file"
  1334. - > $cache_file
  1335. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1336. +echo "$as_me: creating cache $cache_file" >&6;}
  1337. + >$cache_file
  1338. +fi
  1339. +
  1340. +# Check that the precious variables saved in the cache have kept the same
  1341. +# value.
  1342. +ac_cache_corrupted=false
  1343. +for ac_var in `(set) 2>&1 |
  1344. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1345. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1346. + eval ac_new_set=\$ac_env_${ac_var}_set
  1347. + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1348. + eval ac_new_val="\$ac_env_${ac_var}_value"
  1349. + case $ac_old_set,$ac_new_set in
  1350. + set,)
  1351. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1352. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1353. + ac_cache_corrupted=: ;;
  1354. + ,set)
  1355. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1356. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1357. + ac_cache_corrupted=: ;;
  1358. + ,);;
  1359. + *)
  1360. + if test "x$ac_old_val" != "x$ac_new_val"; then
  1361. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1362. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1363. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1364. +echo "$as_me: former value: $ac_old_val" >&2;}
  1365. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1366. +echo "$as_me: current value: $ac_new_val" >&2;}
  1367. + ac_cache_corrupted=:
  1368. + fi;;
  1369. + esac
  1370. + # Pass precious variables to config.status.
  1371. + if test "$ac_new_set" = set; then
  1372. + case $ac_new_val in
  1373. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1374. + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1375. + *) ac_arg=$ac_var=$ac_new_val ;;
  1376. + esac
  1377. + case " $ac_configure_args " in
  1378. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1379. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1380. + esac
  1381. + fi
  1382. +done
  1383. +if $ac_cache_corrupted; then
  1384. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1385. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1386. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1387. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1388. + { (exit 1); exit 1; }; }
  1389. fi
  1390. ac_ext=c
  1391. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1392. ac_cpp='$CPP $CPPFLAGS'
  1393. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1394. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1395. -cross_compiling=$ac_cv_prog_cc_cross
  1396. -
  1397. -ac_exeext=
  1398. -ac_objext=o
  1399. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  1400. - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  1401. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  1402. - ac_n= ac_c='
  1403. -' ac_t=' '
  1404. - else
  1405. - ac_n=-n ac_c= ac_t=
  1406. - fi
  1407. -else
  1408. - ac_n= ac_c='\c' ac_t=
  1409. -fi
  1410. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1411. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1412. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1413. +
  1414. +
  1415. +
  1416. +
  1417. +
  1418. +
  1419. +
  1420. +
  1421. +
  1422. +
  1423. +
  1424. +
  1425. +
  1426. +
  1427. +
  1428. +
  1429. @@ -589,14 +1234,20 @@
  1430. ac_aux_dir=$ac_dir
  1431. ac_install_sh="$ac_aux_dir/install.sh -c"
  1432. break
  1433. + elif test -f $ac_dir/shtool; then
  1434. + ac_aux_dir=$ac_dir
  1435. + ac_install_sh="$ac_aux_dir/shtool install -c"
  1436. + break
  1437. fi
  1438. done
  1439. if test -z "$ac_aux_dir"; then
  1440. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1441. -fi
  1442. -ac_config_guess=$ac_aux_dir/config.guess
  1443. -ac_config_sub=$ac_aux_dir/config.sub
  1444. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1445. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1446. +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1447. + { (exit 1); exit 1; }; }
  1448. +fi
  1449. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1450. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1451. +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1452. # Find a good install program. We prefer a C program (faster),
  1453. # so one script is as good as another. But avoid the broken or
  1454. @@ -605,65 +1256,78 @@
  1455. # SunOS /usr/etc/install
  1456. # IRIX /sbin/install
  1457. # AIX /bin/install
  1458. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  1459. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1460. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1461. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1462. # ./install, which can be erroneously created by make from ./install.sh.
  1463. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1464. -echo "configure:614: checking for a BSD compatible install" >&5
  1465. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1466. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1467. if test -z "$INSTALL"; then
  1468. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1469. - echo $ac_n "(cached) $ac_c" 1>&6
  1470. +if test "${ac_cv_path_install+set}" = set; then
  1471. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1472. else
  1473. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1474. - for ac_dir in $PATH; do
  1475. - # Account for people who put trailing slashes in PATH elements.
  1476. - case "$ac_dir/" in
  1477. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1478. - *)
  1479. - # OSF1 and SCO ODT 3.0 have their own names for install.
  1480. - # Don't use installbsd from OSF since it installs stuff as root
  1481. - # by default.
  1482. - for ac_prog in ginstall scoinst install; do
  1483. - if test -f $ac_dir/$ac_prog; then
  1484. - if test $ac_prog = install &&
  1485. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1486. - # AIX install. It has an incompatible calling convention.
  1487. - :
  1488. - else
  1489. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  1490. - break 2
  1491. - fi
  1492. - fi
  1493. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1494. +for as_dir in $PATH
  1495. +do
  1496. + IFS=$as_save_IFS
  1497. + test -z "$as_dir" && as_dir=.
  1498. + # Account for people who put trailing slashes in PATH elements.
  1499. +case $as_dir/ in
  1500. + ./ | .// | /cC/* | \
  1501. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1502. + /usr/ucb/* ) ;;
  1503. + *)
  1504. + # OSF1 and SCO ODT 3.0 have their own names for install.
  1505. + # Don't use installbsd from OSF since it installs stuff as root
  1506. + # by default.
  1507. + for ac_prog in ginstall scoinst install; do
  1508. + for ac_exec_ext in '' $ac_executable_extensions; do
  1509. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1510. + if test $ac_prog = install &&
  1511. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1512. + # AIX install. It has an incompatible calling convention.
  1513. + :
  1514. + elif test $ac_prog = install &&
  1515. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1516. + # program-specific install script used by HP pwplus--don't use.
  1517. + :
  1518. + else
  1519. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1520. + break 3
  1521. + fi
  1522. + fi
  1523. done
  1524. - ;;
  1525. - esac
  1526. - done
  1527. - IFS="$ac_save_IFS"
  1528. + done
  1529. + ;;
  1530. +esac
  1531. +done
  1532. +
  1533. fi
  1534. if test "${ac_cv_path_install+set}" = set; then
  1535. - INSTALL="$ac_cv_path_install"
  1536. + INSTALL=$ac_cv_path_install
  1537. else
  1538. # As a last resort, use the slow shell script. We don't cache a
  1539. # path for INSTALL within a source directory, because that will
  1540. # break other packages using the cache if that directory is
  1541. # removed, or if the path is relative.
  1542. - INSTALL="$ac_install_sh"
  1543. + INSTALL=$ac_install_sh
  1544. fi
  1545. fi
  1546. -echo "$ac_t""$INSTALL" 1>&6
  1547. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  1548. +echo "${ECHO_T}$INSTALL" >&6
  1549. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1550. # It thinks the first close brace ends the variable substitution.
  1551. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1552. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1553. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1554. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1555. -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  1556. -echo "configure:667: checking whether build environment is sane" >&5
  1557. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1558. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1559. # Just in case
  1560. sleep 1
  1561. echo timestamp > conftestfile
  1562. @@ -685,8 +1349,11 @@
  1563. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1564. # broken ls alias from the environment. This has actually
  1565. # happened. Such a system could not be considered "sane".
  1566. - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  1567. -alias in your environment" 1>&2; exit 1; }
  1568. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1569. +alias in your environment" >&5
  1570. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1571. +alias in your environment" >&2;}
  1572. + { (exit 1); exit 1; }; }
  1573. fi
  1574. test "$2" = conftestfile
  1575. @@ -695,54 +1362,54 @@
  1576. # Ok.
  1577. :
  1578. else
  1579. - { echo "configure: error: newly created file is older than distributed files!
  1580. -Check your system clock" 1>&2; exit 1; }
  1581. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1582. +Check your system clock" >&5
  1583. +echo "$as_me: error: newly created file is older than distributed files!
  1584. +Check your system clock" >&2;}
  1585. + { (exit 1); exit 1; }; }
  1586. fi
  1587. rm -f conftest*
  1588. -echo "$ac_t""yes" 1>&6
  1589. -if test "$program_transform_name" = s,x,x,; then
  1590. - program_transform_name=
  1591. -else
  1592. - # Double any \ or $. echo might interpret backslashes.
  1593. - cat <<\EOF_SED > conftestsed
  1594. -s,\\,\\\\,g; s,\$,$$,g
  1595. -EOF_SED
  1596. - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  1597. - rm -f conftestsed
  1598. -fi
  1599. +echo "$as_me:$LINENO: result: yes" >&5
  1600. +echo "${ECHO_T}yes" >&6
  1601. test "$program_prefix" != NONE &&
  1602. - program_transform_name="s,^,${program_prefix},; $program_transform_name"
  1603. + program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1604. # Use a double $ so make ignores it.
  1605. test "$program_suffix" != NONE &&
  1606. - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  1607. -
  1608. -# sed with no file args requires a program.
  1609. -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  1610. -
  1611. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1612. -echo "configure:724: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1613. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  1614. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1615. - echo $ac_n "(cached) $ac_c" 1>&6
  1616. + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1617. +# Double any \ or $. echo might interpret backslashes.
  1618. +# By default was `s,x,x', remove it if useless.
  1619. +cat <<\_ACEOF >conftest.sed
  1620. +s/[\\$]/&&/g;s/;s,x,x,$//
  1621. +_ACEOF
  1622. +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1623. +rm conftest.sed
  1624. +
  1625. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1626. +echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  1627. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1628. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1629. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1630. else
  1631. - cat > conftestmake <<\EOF
  1632. + cat >conftest.make <<\_ACEOF
  1633. all:
  1634. @echo 'ac_maketemp="${MAKE}"'
  1635. -EOF
  1636. +_ACEOF
  1637. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1638. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1639. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1640. if test -n "$ac_maketemp"; then
  1641. eval ac_cv_prog_make_${ac_make}_set=yes
  1642. else
  1643. eval ac_cv_prog_make_${ac_make}_set=no
  1644. fi
  1645. -rm -f conftestmake
  1646. +rm -f conftest.make
  1647. fi
  1648. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1649. - echo "$ac_t""yes" 1>&6
  1650. + echo "$as_me:$LINENO: result: yes" >&5
  1651. +echo "${ECHO_T}yes" >&6
  1652. SET_MAKE=
  1653. else
  1654. - echo "$ac_t""no" 1>&6
  1655. + echo "$as_me:$LINENO: result: no" >&5
  1656. +echo "${ECHO_T}no" >&6
  1657. SET_MAKE="MAKE=${MAKE-make}"
  1658. fi
  1659. @@ -752,87 +1419,103 @@
  1660. VERSION=0.9
  1661. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  1662. - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  1663. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1664. +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1665. + { (exit 1); exit 1; }; }
  1666. fi
  1667. -cat >> confdefs.h <<EOF
  1668. +
  1669. +cat >>confdefs.h <<_ACEOF
  1670. #define PACKAGE "$PACKAGE"
  1671. -EOF
  1672. +_ACEOF
  1673. +
  1674. -cat >> confdefs.h <<EOF
  1675. +cat >>confdefs.h <<_ACEOF
  1676. #define VERSION "$VERSION"
  1677. -EOF
  1678. +_ACEOF
  1679. missing_dir=`cd $ac_aux_dir && pwd`
  1680. -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  1681. -echo "configure:770: checking for working aclocal" >&5
  1682. +echo "$as_me:$LINENO: checking for working aclocal" >&5
  1683. +echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
  1684. # Run test in a subshell; some versions of sh will print an error if
  1685. # an executable is not found, even if stderr is redirected.
  1686. # Redirect stdin to placate older versions of autoconf. Sigh.
  1687. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  1688. ACLOCAL=aclocal
  1689. - echo "$ac_t""found" 1>&6
  1690. + echo "$as_me:$LINENO: result: found" >&5
  1691. +echo "${ECHO_T}found" >&6
  1692. else
  1693. ACLOCAL="$missing_dir/missing aclocal"
  1694. - echo "$ac_t""missing" 1>&6
  1695. + echo "$as_me:$LINENO: result: missing" >&5
  1696. +echo "${ECHO_T}missing" >&6
  1697. fi
  1698. -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  1699. -echo "configure:783: checking for working autoconf" >&5
  1700. +echo "$as_me:$LINENO: checking for working autoconf" >&5
  1701. +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  1702. # Run test in a subshell; some versions of sh will print an error if
  1703. # an executable is not found, even if stderr is redirected.
  1704. # Redirect stdin to placate older versions of autoconf. Sigh.
  1705. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  1706. AUTOCONF=autoconf
  1707. - echo "$ac_t""found" 1>&6
  1708. + echo "$as_me:$LINENO: result: found" >&5
  1709. +echo "${ECHO_T}found" >&6
  1710. else
  1711. AUTOCONF="$missing_dir/missing autoconf"
  1712. - echo "$ac_t""missing" 1>&6
  1713. + echo "$as_me:$LINENO: result: missing" >&5
  1714. +echo "${ECHO_T}missing" >&6
  1715. fi
  1716. -echo $ac_n "checking for working automake""... $ac_c" 1>&6
  1717. -echo "configure:796: checking for working automake" >&5
  1718. +echo "$as_me:$LINENO: checking for working automake" >&5
  1719. +echo $ECHO_N "checking for working automake... $ECHO_C" >&6
  1720. # Run test in a subshell; some versions of sh will print an error if
  1721. # an executable is not found, even if stderr is redirected.
  1722. # Redirect stdin to placate older versions of autoconf. Sigh.
  1723. if (automake --version) < /dev/null > /dev/null 2>&1; then
  1724. AUTOMAKE=automake
  1725. - echo "$ac_t""found" 1>&6
  1726. + echo "$as_me:$LINENO: result: found" >&5
  1727. +echo "${ECHO_T}found" >&6
  1728. else
  1729. AUTOMAKE="$missing_dir/missing automake"
  1730. - echo "$ac_t""missing" 1>&6
  1731. + echo "$as_me:$LINENO: result: missing" >&5
  1732. +echo "${ECHO_T}missing" >&6
  1733. fi
  1734. -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  1735. -echo "configure:809: checking for working autoheader" >&5
  1736. +echo "$as_me:$LINENO: checking for working autoheader" >&5
  1737. +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  1738. # Run test in a subshell; some versions of sh will print an error if
  1739. # an executable is not found, even if stderr is redirected.
  1740. # Redirect stdin to placate older versions of autoconf. Sigh.
  1741. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  1742. AUTOHEADER=autoheader
  1743. - echo "$ac_t""found" 1>&6
  1744. + echo "$as_me:$LINENO: result: found" >&5
  1745. +echo "${ECHO_T}found" >&6
  1746. else
  1747. AUTOHEADER="$missing_dir/missing autoheader"
  1748. - echo "$ac_t""missing" 1>&6
  1749. + echo "$as_me:$LINENO: result: missing" >&5
  1750. +echo "${ECHO_T}missing" >&6
  1751. fi
  1752. -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  1753. -echo "configure:822: checking for working makeinfo" >&5
  1754. +echo "$as_me:$LINENO: checking for working makeinfo" >&5
  1755. +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  1756. # Run test in a subshell; some versions of sh will print an error if
  1757. # an executable is not found, even if stderr is redirected.
  1758. # Redirect stdin to placate older versions of autoconf. Sigh.
  1759. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  1760. MAKEINFO=makeinfo
  1761. - echo "$ac_t""found" 1>&6
  1762. + echo "$as_me:$LINENO: result: found" >&5
  1763. +echo "${ECHO_T}found" >&6
  1764. else
  1765. MAKEINFO="$missing_dir/missing makeinfo"
  1766. - echo "$ac_t""missing" 1>&6
  1767. + echo "$as_me:$LINENO: result: missing" >&5
  1768. +echo "${ECHO_T}missing" >&6
  1769. fi
  1770. +ac_config_headers="$ac_config_headers config.h"
  1771. +ac_config_commands="$ac_config_commands default-1"
  1772. # We want an absolute path to the source-dir.
  1773. case "$srcdir" in
  1774. @@ -849,214 +1532,628 @@
  1775. -# Extract the first word of "gcc", so it can be a program name with args.
  1776. +ac_ext=c
  1777. +ac_cpp='$CPP $CPPFLAGS'
  1778. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1779. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1780. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1781. +if test -n "$ac_tool_prefix"; then
  1782. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1783. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1784. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1785. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1786. +if test "${ac_cv_prog_CC+set}" = set; then
  1787. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1788. +else
  1789. + if test -n "$CC"; then
  1790. + ac_cv_prog_CC="$CC" # Let the user override the test.
  1791. +else
  1792. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1793. +for as_dir in $PATH
  1794. +do
  1795. + IFS=$as_save_IFS
  1796. + test -z "$as_dir" && as_dir=.
  1797. + for ac_exec_ext in '' $ac_executable_extensions; do
  1798. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1799. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1800. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1801. + break 2
  1802. + fi
  1803. +done
  1804. +done
  1805. +
  1806. +fi
  1807. +fi
  1808. +CC=$ac_cv_prog_CC
  1809. +if test -n "$CC"; then
  1810. + echo "$as_me:$LINENO: result: $CC" >&5
  1811. +echo "${ECHO_T}$CC" >&6
  1812. +else
  1813. + echo "$as_me:$LINENO: result: no" >&5
  1814. +echo "${ECHO_T}no" >&6
  1815. +fi
  1816. +
  1817. +fi
  1818. +if test -z "$ac_cv_prog_CC"; then
  1819. + ac_ct_CC=$CC
  1820. + # Extract the first word of "gcc", so it can be a program name with args.
  1821. set dummy gcc; ac_word=$2
  1822. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1823. -echo "configure:856: checking for $ac_word" >&5
  1824. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1825. - echo $ac_n "(cached) $ac_c" 1>&6
  1826. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1827. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1828. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1829. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1830. +else
  1831. + if test -n "$ac_ct_CC"; then
  1832. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1833. +else
  1834. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1835. +for as_dir in $PATH
  1836. +do
  1837. + IFS=$as_save_IFS
  1838. + test -z "$as_dir" && as_dir=.
  1839. + for ac_exec_ext in '' $ac_executable_extensions; do
  1840. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1841. + ac_cv_prog_ac_ct_CC="gcc"
  1842. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1843. + break 2
  1844. + fi
  1845. +done
  1846. +done
  1847. +
  1848. +fi
  1849. +fi
  1850. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1851. +if test -n "$ac_ct_CC"; then
  1852. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1853. +echo "${ECHO_T}$ac_ct_CC" >&6
  1854. +else
  1855. + echo "$as_me:$LINENO: result: no" >&5
  1856. +echo "${ECHO_T}no" >&6
  1857. +fi
  1858. +
  1859. + CC=$ac_ct_CC
  1860. +else
  1861. + CC="$ac_cv_prog_CC"
  1862. +fi
  1863. +
  1864. +if test -z "$CC"; then
  1865. + if test -n "$ac_tool_prefix"; then
  1866. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1867. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  1868. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1869. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1870. +if test "${ac_cv_prog_CC+set}" = set; then
  1871. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1872. else
  1873. if test -n "$CC"; then
  1874. ac_cv_prog_CC="$CC" # Let the user override the test.
  1875. else
  1876. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1877. - ac_dummy="$PATH"
  1878. - for ac_dir in $ac_dummy; do
  1879. - test -z "$ac_dir" && ac_dir=.
  1880. - if test -f $ac_dir/$ac_word; then
  1881. - ac_cv_prog_CC="gcc"
  1882. - break
  1883. - fi
  1884. - done
  1885. - IFS="$ac_save_ifs"
  1886. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1887. +for as_dir in $PATH
  1888. +do
  1889. + IFS=$as_save_IFS
  1890. + test -z "$as_dir" && as_dir=.
  1891. + for ac_exec_ext in '' $ac_executable_extensions; do
  1892. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1893. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  1894. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1895. + break 2
  1896. + fi
  1897. +done
  1898. +done
  1899. +
  1900. fi
  1901. fi
  1902. -CC="$ac_cv_prog_CC"
  1903. +CC=$ac_cv_prog_CC
  1904. if test -n "$CC"; then
  1905. - echo "$ac_t""$CC" 1>&6
  1906. + echo "$as_me:$LINENO: result: $CC" >&5
  1907. +echo "${ECHO_T}$CC" >&6
  1908. +else
  1909. + echo "$as_me:$LINENO: result: no" >&5
  1910. +echo "${ECHO_T}no" >&6
  1911. +fi
  1912. +
  1913. +fi
  1914. +if test -z "$ac_cv_prog_CC"; then
  1915. + ac_ct_CC=$CC
  1916. + # Extract the first word of "cc", so it can be a program name with args.
  1917. +set dummy cc; ac_word=$2
  1918. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1919. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1920. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1921. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1922. +else
  1923. + if test -n "$ac_ct_CC"; then
  1924. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1925. +else
  1926. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1927. +for as_dir in $PATH
  1928. +do
  1929. + IFS=$as_save_IFS
  1930. + test -z "$as_dir" && as_dir=.
  1931. + for ac_exec_ext in '' $ac_executable_extensions; do
  1932. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1933. + ac_cv_prog_ac_ct_CC="cc"
  1934. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1935. + break 2
  1936. + fi
  1937. +done
  1938. +done
  1939. +
  1940. +fi
  1941. +fi
  1942. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1943. +if test -n "$ac_ct_CC"; then
  1944. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1945. +echo "${ECHO_T}$ac_ct_CC" >&6
  1946. +else
  1947. + echo "$as_me:$LINENO: result: no" >&5
  1948. +echo "${ECHO_T}no" >&6
  1949. +fi
  1950. +
  1951. + CC=$ac_ct_CC
  1952. else
  1953. - echo "$ac_t""no" 1>&6
  1954. + CC="$ac_cv_prog_CC"
  1955. fi
  1956. +fi
  1957. if test -z "$CC"; then
  1958. # Extract the first word of "cc", so it can be a program name with args.
  1959. set dummy cc; ac_word=$2
  1960. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1961. -echo "configure:886: checking for $ac_word" >&5
  1962. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1963. - echo $ac_n "(cached) $ac_c" 1>&6
  1964. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1965. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1966. +if test "${ac_cv_prog_CC+set}" = set; then
  1967. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1968. else
  1969. if test -n "$CC"; then
  1970. ac_cv_prog_CC="$CC" # Let the user override the test.
  1971. else
  1972. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1973. ac_prog_rejected=no
  1974. - ac_dummy="$PATH"
  1975. - for ac_dir in $ac_dummy; do
  1976. - test -z "$ac_dir" && ac_dir=.
  1977. - if test -f $ac_dir/$ac_word; then
  1978. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1979. - ac_prog_rejected=yes
  1980. - continue
  1981. - fi
  1982. - ac_cv_prog_CC="cc"
  1983. - break
  1984. - fi
  1985. - done
  1986. - IFS="$ac_save_ifs"
  1987. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1988. +for as_dir in $PATH
  1989. +do
  1990. + IFS=$as_save_IFS
  1991. + test -z "$as_dir" && as_dir=.
  1992. + for ac_exec_ext in '' $ac_executable_extensions; do
  1993. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1994. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1995. + ac_prog_rejected=yes
  1996. + continue
  1997. + fi
  1998. + ac_cv_prog_CC="cc"
  1999. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2000. + break 2
  2001. + fi
  2002. +done
  2003. +done
  2004. +
  2005. if test $ac_prog_rejected = yes; then
  2006. # We found a bogon in the path, so make sure we never use it.
  2007. set dummy $ac_cv_prog_CC
  2008. shift
  2009. - if test $# -gt 0; then
  2010. + if test $# != 0; then
  2011. # We chose a different compiler from the bogus one.
  2012. # However, it has the same basename, so the bogon will be chosen
  2013. # first if we set CC to just the basename; use the full file name.
  2014. shift
  2015. - set dummy "$ac_dir/$ac_word" "$@"
  2016. + set dummy "$as_dir/$ac_word" ${1+"$@"}
  2017. shift
  2018. ac_cv_prog_CC="$@"
  2019. fi
  2020. fi
  2021. fi
  2022. fi
  2023. -CC="$ac_cv_prog_CC"
  2024. +CC=$ac_cv_prog_CC
  2025. if test -n "$CC"; then
  2026. - echo "$ac_t""$CC" 1>&6
  2027. + echo "$as_me:$LINENO: result: $CC" >&5
  2028. +echo "${ECHO_T}$CC" >&6
  2029. else
  2030. - echo "$ac_t""no" 1>&6
  2031. + echo "$as_me:$LINENO: result: no" >&5
  2032. +echo "${ECHO_T}no" >&6
  2033. fi
  2034. - if test -z "$CC"; then
  2035. - case "`uname -s`" in
  2036. - *win32* | *WIN32*)
  2037. - # Extract the first word of "cl", so it can be a program name with args.
  2038. -set dummy cl; ac_word=$2
  2039. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2040. -echo "configure:937: checking for $ac_word" >&5
  2041. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2042. - echo $ac_n "(cached) $ac_c" 1>&6
  2043. +fi
  2044. +if test -z "$CC"; then
  2045. + if test -n "$ac_tool_prefix"; then
  2046. + for ac_prog in cl
  2047. + do
  2048. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2049. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2050. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2051. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2052. +if test "${ac_cv_prog_CC+set}" = set; then
  2053. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2054. else
  2055. if test -n "$CC"; then
  2056. ac_cv_prog_CC="$CC" # Let the user override the test.
  2057. else
  2058. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2059. - ac_dummy="$PATH"
  2060. - for ac_dir in $ac_dummy; do
  2061. - test -z "$ac_dir" && ac_dir=.
  2062. - if test -f $ac_dir/$ac_word; then
  2063. - ac_cv_prog_CC="cl"
  2064. - break
  2065. - fi
  2066. - done
  2067. - IFS="$ac_save_ifs"
  2068. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2069. +for as_dir in $PATH
  2070. +do
  2071. + IFS=$as_save_IFS
  2072. + test -z "$as_dir" && as_dir=.
  2073. + for ac_exec_ext in '' $ac_executable_extensions; do
  2074. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2075. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2076. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2077. + break 2
  2078. + fi
  2079. +done
  2080. +done
  2081. +
  2082. fi
  2083. fi
  2084. -CC="$ac_cv_prog_CC"
  2085. +CC=$ac_cv_prog_CC
  2086. if test -n "$CC"; then
  2087. - echo "$ac_t""$CC" 1>&6
  2088. + echo "$as_me:$LINENO: result: $CC" >&5
  2089. +echo "${ECHO_T}$CC" >&6
  2090. else
  2091. - echo "$ac_t""no" 1>&6
  2092. + echo "$as_me:$LINENO: result: no" >&5
  2093. +echo "${ECHO_T}no" >&6
  2094. fi
  2095. - ;;
  2096. - esac
  2097. +
  2098. + test -n "$CC" && break
  2099. + done
  2100. +fi
  2101. +if test -z "$CC"; then
  2102. + ac_ct_CC=$CC
  2103. + for ac_prog in cl
  2104. +do
  2105. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2106. +set dummy $ac_prog; ac_word=$2
  2107. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2108. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2109. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2110. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2111. +else
  2112. + if test -n "$ac_ct_CC"; then
  2113. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2114. +else
  2115. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2116. +for as_dir in $PATH
  2117. +do
  2118. + IFS=$as_save_IFS
  2119. + test -z "$as_dir" && as_dir=.
  2120. + for ac_exec_ext in '' $ac_executable_extensions; do
  2121. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2122. + ac_cv_prog_ac_ct_CC="$ac_prog"
  2123. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2124. + break 2
  2125. fi
  2126. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2127. +done
  2128. +done
  2129. +
  2130. fi
  2131. +fi
  2132. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2133. +if test -n "$ac_ct_CC"; then
  2134. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2135. +echo "${ECHO_T}$ac_ct_CC" >&6
  2136. +else
  2137. + echo "$as_me:$LINENO: result: no" >&5
  2138. +echo "${ECHO_T}no" >&6
  2139. +fi
  2140. +
  2141. + test -n "$ac_ct_CC" && break
  2142. +done
  2143. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2144. -echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  2145. + CC=$ac_ct_CC
  2146. +fi
  2147. -ac_ext=c
  2148. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2149. -ac_cpp='$CPP $CPPFLAGS'
  2150. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2151. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2152. -cross_compiling=$ac_cv_prog_cc_cross
  2153. +fi
  2154. -cat > conftest.$ac_ext << EOF
  2155. -#line 980 "configure"
  2156. -#include "confdefs.h"
  2157. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
  2158. +echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
  2159. + { (exit 1); exit 1; }; }
  2160. +
  2161. +# Provide some information about the compiler.
  2162. +echo "$as_me:$LINENO:" \
  2163. + "checking for C compiler version" >&5
  2164. +ac_compiler=`set X $ac_compile; echo $2`
  2165. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2166. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  2167. + ac_status=$?
  2168. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2169. + (exit $ac_status); }
  2170. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2171. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  2172. + ac_status=$?
  2173. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2174. + (exit $ac_status); }
  2175. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2176. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  2177. + ac_status=$?
  2178. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2179. + (exit $ac_status); }
  2180. +
  2181. +cat >conftest.$ac_ext <<_ACEOF
  2182. +#line $LINENO "configure"
  2183. +#include "confdefs.h"
  2184. +
  2185. +#ifdef F77_DUMMY_MAIN
  2186. +# ifdef __cplusplus
  2187. + extern "C"
  2188. +# endif
  2189. + int F77_DUMMY_MAIN() { return 1; }
  2190. +#endif
  2191. +int
  2192. +main ()
  2193. +{
  2194. -main(){return(0);}
  2195. -EOF
  2196. -if { (eval echo configure:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2197. - ac_cv_prog_cc_works=yes
  2198. - # If we can't run a trivial program, we are probably using a cross compiler.
  2199. - if (./conftest; exit) 2>/dev/null; then
  2200. - ac_cv_prog_cc_cross=no
  2201. + ;
  2202. + return 0;
  2203. +}
  2204. +_ACEOF
  2205. +ac_clean_files_save=$ac_clean_files
  2206. +ac_clean_files="$ac_clean_files a.out a.exe"
  2207. +# Try to create an executable without -o first, disregard a.out.
  2208. +# It will help us diagnose broken compilers, and finding out an intuition
  2209. +# of exeext.
  2210. +echo "$as_me:$LINENO: checking for C compiler default output" >&5
  2211. +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  2212. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2213. +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2214. + (eval $ac_link_default) 2>&5
  2215. + ac_status=$?
  2216. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2217. + (exit $ac_status); }; then
  2218. + # Find the output, starting from the most likely. This scheme is
  2219. +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2220. +# resort.
  2221. +
  2222. +# Be careful to initialize this variable, since it used to be cached.
  2223. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2224. +ac_cv_exeext=
  2225. +for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
  2226. + ls a.out conftest 2>/dev/null;
  2227. + ls a.* conftest.* 2>/dev/null`; do
  2228. + case $ac_file in
  2229. + *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
  2230. + a.out ) # We found the default executable, but exeext='' is most
  2231. + # certainly right.
  2232. + break;;
  2233. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2234. + # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  2235. + export ac_cv_exeext
  2236. + break;;
  2237. + * ) break;;
  2238. + esac
  2239. +done
  2240. +else
  2241. + echo "$as_me: failed program was:" >&5
  2242. +cat conftest.$ac_ext >&5
  2243. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
  2244. +echo "$as_me: error: C compiler cannot create executables" >&2;}
  2245. + { (exit 77); exit 77; }; }
  2246. +fi
  2247. +
  2248. +ac_exeext=$ac_cv_exeext
  2249. +echo "$as_me:$LINENO: result: $ac_file" >&5
  2250. +echo "${ECHO_T}$ac_file" >&6
  2251. +
  2252. +# Check the compiler produces executables we can run. If not, either
  2253. +# the compiler is broken, or we cross compile.
  2254. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2255. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2256. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2257. +# If not cross compiling, check that we can run a simple program.
  2258. +if test "$cross_compiling" != yes; then
  2259. + if { ac_try='./$ac_file'
  2260. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2261. + (eval $ac_try) 2>&5
  2262. + ac_status=$?
  2263. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2264. + (exit $ac_status); }; }; then
  2265. + cross_compiling=no
  2266. else
  2267. - ac_cv_prog_cc_cross=yes
  2268. + if test "$cross_compiling" = maybe; then
  2269. + cross_compiling=yes
  2270. + else
  2271. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2272. +If you meant to cross compile, use \`--host'." >&5
  2273. +echo "$as_me: error: cannot run C compiled programs.
  2274. +If you meant to cross compile, use \`--host'." >&2;}
  2275. + { (exit 1); exit 1; }; }
  2276. + fi
  2277. fi
  2278. -else
  2279. - echo "configure: failed program was:" >&5
  2280. - cat conftest.$ac_ext >&5
  2281. - ac_cv_prog_cc_works=no
  2282. -fi
  2283. -rm -fr conftest*
  2284. -ac_ext=c
  2285. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2286. -ac_cpp='$CPP $CPPFLAGS'
  2287. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2288. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2289. -cross_compiling=$ac_cv_prog_cc_cross
  2290. -
  2291. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  2292. -if test $ac_cv_prog_cc_works = no; then
  2293. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  2294. fi
  2295. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2296. -echo "configure:1011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  2297. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  2298. -cross_compiling=$ac_cv_prog_cc_cross
  2299. +echo "$as_me:$LINENO: result: yes" >&5
  2300. +echo "${ECHO_T}yes" >&6
  2301. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2302. -echo "configure:1016: checking whether we are using GNU C" >&5
  2303. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2304. - echo $ac_n "(cached) $ac_c" 1>&6
  2305. +rm -f a.out a.exe conftest$ac_cv_exeext
  2306. +ac_clean_files=$ac_clean_files_save
  2307. +# Check the compiler produces executables we can run. If not, either
  2308. +# the compiler is broken, or we cross compile.
  2309. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2310. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2311. +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2312. +echo "${ECHO_T}$cross_compiling" >&6
  2313. +
  2314. +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2315. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2316. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2317. + (eval $ac_link) 2>&5
  2318. + ac_status=$?
  2319. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2320. + (exit $ac_status); }; then
  2321. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2322. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2323. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  2324. +# `rm'.
  2325. +for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  2326. + case $ac_file in
  2327. + *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  2328. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2329. + export ac_cv_exeext
  2330. + break;;
  2331. + * ) break;;
  2332. + esac
  2333. +done
  2334. else
  2335. - cat > conftest.c <<EOF
  2336. -#ifdef __GNUC__
  2337. - yes;
  2338. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
  2339. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
  2340. + { (exit 1); exit 1; }; }
  2341. +fi
  2342. +
  2343. +rm -f conftest$ac_cv_exeext
  2344. +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2345. +echo "${ECHO_T}$ac_cv_exeext" >&6
  2346. +
  2347. +rm -f conftest.$ac_ext
  2348. +EXEEXT=$ac_cv_exeext
  2349. +ac_exeext=$EXEEXT
  2350. +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2351. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2352. +if test "${ac_cv_objext+set}" = set; then
  2353. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2354. +else
  2355. + cat >conftest.$ac_ext <<_ACEOF
  2356. +#line $LINENO "configure"
  2357. +#include "confdefs.h"
  2358. +
  2359. +#ifdef F77_DUMMY_MAIN
  2360. +# ifdef __cplusplus
  2361. + extern "C"
  2362. +# endif
  2363. + int F77_DUMMY_MAIN() { return 1; }
  2364. #endif
  2365. -EOF
  2366. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2367. - ac_cv_prog_gcc=yes
  2368. -else
  2369. - ac_cv_prog_gcc=no
  2370. -fi
  2371. -fi
  2372. -
  2373. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2374. +int
  2375. +main ()
  2376. +{
  2377. -if test $ac_cv_prog_gcc = yes; then
  2378. - GCC=yes
  2379. + ;
  2380. + return 0;
  2381. +}
  2382. +_ACEOF
  2383. +rm -f conftest.o conftest.obj
  2384. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2385. + (eval $ac_compile) 2>&5
  2386. + ac_status=$?
  2387. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2388. + (exit $ac_status); }; then
  2389. + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2390. + case $ac_file in
  2391. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  2392. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2393. + break;;
  2394. + esac
  2395. +done
  2396. else
  2397. - GCC=
  2398. -fi
  2399. + echo "$as_me: failed program was:" >&5
  2400. +cat conftest.$ac_ext >&5
  2401. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
  2402. +echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
  2403. + { (exit 1); exit 1; }; }
  2404. +fi
  2405. +
  2406. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2407. +fi
  2408. +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2409. +echo "${ECHO_T}$ac_cv_objext" >&6
  2410. +OBJEXT=$ac_cv_objext
  2411. +ac_objext=$OBJEXT
  2412. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2413. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2414. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2415. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2416. +else
  2417. + cat >conftest.$ac_ext <<_ACEOF
  2418. +#line $LINENO "configure"
  2419. +#include "confdefs.h"
  2420. +
  2421. +#ifdef F77_DUMMY_MAIN
  2422. +# ifdef __cplusplus
  2423. + extern "C"
  2424. +# endif
  2425. + int F77_DUMMY_MAIN() { return 1; }
  2426. +#endif
  2427. +int
  2428. +main ()
  2429. +{
  2430. +#ifndef __GNUC__
  2431. + choke me
  2432. +#endif
  2433. -ac_test_CFLAGS="${CFLAGS+set}"
  2434. -ac_save_CFLAGS="$CFLAGS"
  2435. -CFLAGS=
  2436. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2437. -echo "configure:1044: checking whether ${CC-cc} accepts -g" >&5
  2438. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  2439. - echo $ac_n "(cached) $ac_c" 1>&6
  2440. -else
  2441. - echo 'void f(){}' > conftest.c
  2442. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2443. + ;
  2444. + return 0;
  2445. +}
  2446. +_ACEOF
  2447. +rm -f conftest.$ac_objext
  2448. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2449. + (eval $ac_compile) 2>&5
  2450. + ac_status=$?
  2451. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2452. + (exit $ac_status); } &&
  2453. + { ac_try='test -s conftest.$ac_objext'
  2454. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2455. + (eval $ac_try) 2>&5
  2456. + ac_status=$?
  2457. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2458. + (exit $ac_status); }; }; then
  2459. + ac_compiler_gnu=yes
  2460. +else
  2461. + echo "$as_me: failed program was:" >&5
  2462. +cat conftest.$ac_ext >&5
  2463. +ac_compiler_gnu=no
  2464. +fi
  2465. +rm -f conftest.$ac_objext conftest.$ac_ext
  2466. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2467. +
  2468. +fi
  2469. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2470. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2471. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  2472. +ac_test_CFLAGS=${CFLAGS+set}
  2473. +ac_save_CFLAGS=$CFLAGS
  2474. +CFLAGS="-g"
  2475. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2476. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2477. +if test "${ac_cv_prog_cc_g+set}" = set; then
  2478. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2479. +else
  2480. + cat >conftest.$ac_ext <<_ACEOF
  2481. +#line $LINENO "configure"
  2482. +#include "confdefs.h"
  2483. +
  2484. +#ifdef F77_DUMMY_MAIN
  2485. +# ifdef __cplusplus
  2486. + extern "C"
  2487. +# endif
  2488. + int F77_DUMMY_MAIN() { return 1; }
  2489. +#endif
  2490. +int
  2491. +main ()
  2492. +{
  2493. +
  2494. + ;
  2495. + return 0;
  2496. +}
  2497. +_ACEOF
  2498. +rm -f conftest.$ac_objext
  2499. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2500. + (eval $ac_compile) 2>&5
  2501. + ac_status=$?
  2502. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2503. + (exit $ac_status); } &&
  2504. + { ac_try='test -s conftest.$ac_objext'
  2505. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2506. + (eval $ac_try) 2>&5
  2507. + ac_status=$?
  2508. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2509. + (exit $ac_status); }; }; then
  2510. ac_cv_prog_cc_g=yes
  2511. else
  2512. - ac_cv_prog_cc_g=no
  2513. + echo "$as_me: failed program was:" >&5
  2514. +cat conftest.$ac_ext >&5
  2515. +ac_cv_prog_cc_g=no
  2516. fi
  2517. -rm -f conftest*
  2518. -
  2519. +rm -f conftest.$ac_objext conftest.$ac_ext
  2520. fi
  2521. -
  2522. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  2523. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2524. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2525. if test "$ac_test_CFLAGS" = set; then
  2526. - CFLAGS="$ac_save_CFLAGS"
  2527. + CFLAGS=$ac_save_CFLAGS
  2528. elif test $ac_cv_prog_cc_g = yes; then
  2529. if test "$GCC" = yes; then
  2530. CFLAGS="-g -O2"
  2531. @@ -1070,96 +2167,276 @@
  2532. CFLAGS=
  2533. fi
  2534. fi
  2535. +# Some people use a C++ compiler to compile C. Since we use `exit',
  2536. +# in C++ we need to declare it. In case someone uses the same compiler
  2537. +# for both compiling C and C++ we need to have the C++ compiler decide
  2538. +# the declaration of exit, since it's the most demanding environment.
  2539. +cat >conftest.$ac_ext <<_ACEOF
  2540. +#ifndef __cplusplus
  2541. + choke me
  2542. +#endif
  2543. +_ACEOF
  2544. +rm -f conftest.$ac_objext
  2545. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2546. + (eval $ac_compile) 2>&5
  2547. + ac_status=$?
  2548. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. + (exit $ac_status); } &&
  2550. + { ac_try='test -s conftest.$ac_objext'
  2551. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2552. + (eval $ac_try) 2>&5
  2553. + ac_status=$?
  2554. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2555. + (exit $ac_status); }; }; then
  2556. + for ac_declaration in \
  2557. + ''\
  2558. + '#include <stdlib.h>' \
  2559. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2560. + 'extern "C" void std::exit (int); using std::exit;' \
  2561. + 'extern "C" void exit (int) throw ();' \
  2562. + 'extern "C" void exit (int);' \
  2563. + 'void exit (int);'
  2564. +do
  2565. + cat >conftest.$ac_ext <<_ACEOF
  2566. +#line $LINENO "configure"
  2567. +#include "confdefs.h"
  2568. +#include <stdlib.h>
  2569. +$ac_declaration
  2570. +#ifdef F77_DUMMY_MAIN
  2571. +# ifdef __cplusplus
  2572. + extern "C"
  2573. +# endif
  2574. + int F77_DUMMY_MAIN() { return 1; }
  2575. +#endif
  2576. +int
  2577. +main ()
  2578. +{
  2579. +exit (42);
  2580. + ;
  2581. + return 0;
  2582. +}
  2583. +_ACEOF
  2584. +rm -f conftest.$ac_objext
  2585. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2586. + (eval $ac_compile) 2>&5
  2587. + ac_status=$?
  2588. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2589. + (exit $ac_status); } &&
  2590. + { ac_try='test -s conftest.$ac_objext'
  2591. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2592. + (eval $ac_try) 2>&5
  2593. + ac_status=$?
  2594. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2595. + (exit $ac_status); }; }; then
  2596. + :
  2597. +else
  2598. + echo "$as_me: failed program was:" >&5
  2599. +cat conftest.$ac_ext >&5
  2600. +continue
  2601. +fi
  2602. +rm -f conftest.$ac_objext conftest.$ac_ext
  2603. + cat >conftest.$ac_ext <<_ACEOF
  2604. +#line $LINENO "configure"
  2605. +#include "confdefs.h"
  2606. +$ac_declaration
  2607. +#ifdef F77_DUMMY_MAIN
  2608. +# ifdef __cplusplus
  2609. + extern "C"
  2610. +# endif
  2611. + int F77_DUMMY_MAIN() { return 1; }
  2612. +#endif
  2613. +int
  2614. +main ()
  2615. +{
  2616. +exit (42);
  2617. + ;
  2618. + return 0;
  2619. +}
  2620. +_ACEOF
  2621. +rm -f conftest.$ac_objext
  2622. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2623. + (eval $ac_compile) 2>&5
  2624. + ac_status=$?
  2625. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2626. + (exit $ac_status); } &&
  2627. + { ac_try='test -s conftest.$ac_objext'
  2628. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2629. + (eval $ac_try) 2>&5
  2630. + ac_status=$?
  2631. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2632. + (exit $ac_status); }; }; then
  2633. + break
  2634. +else
  2635. + echo "$as_me: failed program was:" >&5
  2636. +cat conftest.$ac_ext >&5
  2637. +fi
  2638. +rm -f conftest.$ac_objext conftest.$ac_ext
  2639. +done
  2640. +rm -f conftest*
  2641. +if test -n "$ac_declaration"; then
  2642. + echo '#ifdef __cplusplus' >>confdefs.h
  2643. + echo $ac_declaration >>confdefs.h
  2644. + echo '#endif' >>confdefs.h
  2645. +fi
  2646. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  2647. -echo "configure:1076: checking whether ${MAKE-make} sets \${MAKE}" >&5
  2648. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  2649. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  2650. - echo $ac_n "(cached) $ac_c" 1>&6
  2651. else
  2652. - cat > conftestmake <<\EOF
  2653. + echo "$as_me: failed program was:" >&5
  2654. +cat conftest.$ac_ext >&5
  2655. +fi
  2656. +rm -f conftest.$ac_objext conftest.$ac_ext
  2657. +ac_ext=c
  2658. +ac_cpp='$CPP $CPPFLAGS'
  2659. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2660. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2661. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2662. +
  2663. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
  2664. +echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  2665. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  2666. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2667. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2668. +else
  2669. + cat >conftest.make <<\_ACEOF
  2670. all:
  2671. @echo 'ac_maketemp="${MAKE}"'
  2672. -EOF
  2673. +_ACEOF
  2674. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2675. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  2676. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2677. if test -n "$ac_maketemp"; then
  2678. eval ac_cv_prog_make_${ac_make}_set=yes
  2679. else
  2680. eval ac_cv_prog_make_${ac_make}_set=no
  2681. fi
  2682. -rm -f conftestmake
  2683. +rm -f conftest.make
  2684. fi
  2685. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2686. - echo "$ac_t""yes" 1>&6
  2687. + echo "$as_me:$LINENO: result: yes" >&5
  2688. +echo "${ECHO_T}yes" >&6
  2689. SET_MAKE=
  2690. else
  2691. - echo "$ac_t""no" 1>&6
  2692. + echo "$as_me:$LINENO: result: no" >&5
  2693. +echo "${ECHO_T}no" >&6
  2694. SET_MAKE="MAKE=${MAKE-make}"
  2695. fi
  2696. -# Extract the first word of "ranlib", so it can be a program name with args.
  2697. -set dummy ranlib; ac_word=$2
  2698. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2699. -echo "configure:1105: checking for $ac_word" >&5
  2700. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2701. - echo $ac_n "(cached) $ac_c" 1>&6
  2702. +if test -n "$ac_tool_prefix"; then
  2703. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2704. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2705. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2706. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2707. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  2708. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2709. else
  2710. if test -n "$RANLIB"; then
  2711. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2712. else
  2713. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2714. - ac_dummy="$PATH"
  2715. - for ac_dir in $ac_dummy; do
  2716. - test -z "$ac_dir" && ac_dir=.
  2717. - if test -f $ac_dir/$ac_word; then
  2718. - ac_cv_prog_RANLIB="ranlib"
  2719. - break
  2720. - fi
  2721. - done
  2722. - IFS="$ac_save_ifs"
  2723. - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2724. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2725. +for as_dir in $PATH
  2726. +do
  2727. + IFS=$as_save_IFS
  2728. + test -z "$as_dir" && as_dir=.
  2729. + for ac_exec_ext in '' $ac_executable_extensions; do
  2730. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2731. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2732. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2733. + break 2
  2734. + fi
  2735. +done
  2736. +done
  2737. +
  2738. fi
  2739. fi
  2740. -RANLIB="$ac_cv_prog_RANLIB"
  2741. +RANLIB=$ac_cv_prog_RANLIB
  2742. if test -n "$RANLIB"; then
  2743. - echo "$ac_t""$RANLIB" 1>&6
  2744. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  2745. +echo "${ECHO_T}$RANLIB" >&6
  2746. +else
  2747. + echo "$as_me:$LINENO: result: no" >&5
  2748. +echo "${ECHO_T}no" >&6
  2749. +fi
  2750. +
  2751. +fi
  2752. +if test -z "$ac_cv_prog_RANLIB"; then
  2753. + ac_ct_RANLIB=$RANLIB
  2754. + # Extract the first word of "ranlib", so it can be a program name with args.
  2755. +set dummy ranlib; ac_word=$2
  2756. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2757. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2758. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2759. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2760. +else
  2761. + if test -n "$ac_ct_RANLIB"; then
  2762. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2763. +else
  2764. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2765. +for as_dir in $PATH
  2766. +do
  2767. + IFS=$as_save_IFS
  2768. + test -z "$as_dir" && as_dir=.
  2769. + for ac_exec_ext in '' $ac_executable_extensions; do
  2770. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2771. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  2772. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2773. + break 2
  2774. + fi
  2775. +done
  2776. +done
  2777. +
  2778. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2779. +fi
  2780. +fi
  2781. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2782. +if test -n "$ac_ct_RANLIB"; then
  2783. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2784. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2785. +else
  2786. + echo "$as_me:$LINENO: result: no" >&5
  2787. +echo "${ECHO_T}no" >&6
  2788. +fi
  2789. +
  2790. + RANLIB=$ac_ct_RANLIB
  2791. else
  2792. - echo "$ac_t""no" 1>&6
  2793. + RANLIB="$ac_cv_prog_RANLIB"
  2794. fi
  2795. for ac_prog in 'bison -y' byacc
  2796. do
  2797. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  2798. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2799. set dummy $ac_prog; ac_word=$2
  2800. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2801. -echo "configure:1137: checking for $ac_word" >&5
  2802. -if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  2803. - echo $ac_n "(cached) $ac_c" 1>&6
  2804. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2805. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2806. +if test "${ac_cv_prog_YACC+set}" = set; then
  2807. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2808. else
  2809. if test -n "$YACC"; then
  2810. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2811. else
  2812. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2813. - ac_dummy="$PATH"
  2814. - for ac_dir in $ac_dummy; do
  2815. - test -z "$ac_dir" && ac_dir=.
  2816. - if test -f $ac_dir/$ac_word; then
  2817. - ac_cv_prog_YACC="$ac_prog"
  2818. - break
  2819. - fi
  2820. - done
  2821. - IFS="$ac_save_ifs"
  2822. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2823. +for as_dir in $PATH
  2824. +do
  2825. + IFS=$as_save_IFS
  2826. + test -z "$as_dir" && as_dir=.
  2827. + for ac_exec_ext in '' $ac_executable_extensions; do
  2828. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2829. + ac_cv_prog_YACC="$ac_prog"
  2830. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2831. + break 2
  2832. + fi
  2833. +done
  2834. +done
  2835. +
  2836. fi
  2837. fi
  2838. -YACC="$ac_cv_prog_YACC"
  2839. +YACC=$ac_cv_prog_YACC
  2840. if test -n "$YACC"; then
  2841. - echo "$ac_t""$YACC" 1>&6
  2842. + echo "$as_me:$LINENO: result: $YACC" >&5
  2843. +echo "${ECHO_T}$YACC" >&6
  2844. else
  2845. - echo "$ac_t""no" 1>&6
  2846. + echo "$as_me:$LINENO: result: no" >&5
  2847. +echo "${ECHO_T}no" >&6
  2848. fi
  2849. -test -n "$YACC" && break
  2850. + test -n "$YACC" && break
  2851. done
  2852. test -n "$YACC" || YACC="yacc"
  2853. @@ -1168,259 +2445,291 @@
  2854. exit 5
  2855. fi
  2856. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2857. -echo "configure:1173: checking how to run the C preprocessor" >&5
  2858. -# On Suns, sometimes $CPP names a directory.
  2859. -if test -n "$CPP" && test -d "$CPP"; then
  2860. - CPP=
  2861. -fi
  2862. -if test -z "$CPP"; then
  2863. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2864. - echo $ac_n "(cached) $ac_c" 1>&6
  2865. -else
  2866. - # This must be in double quotes, not single quotes, because CPP may get
  2867. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  2868. - CPP="${CC-cc} -E"
  2869. - # On the NeXT, cc -E runs the code through the compiler's parser,
  2870. - # not just through cpp.
  2871. - cat > conftest.$ac_ext <<EOF
  2872. -#line 1188 "configure"
  2873. -#include "confdefs.h"
  2874. -#include <assert.h>
  2875. -Syntax Error
  2876. -EOF
  2877. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2878. -{ (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2879. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2880. -if test -z "$ac_err"; then
  2881. - :
  2882. -else
  2883. - echo "$ac_err" >&5
  2884. - echo "configure: failed program was:" >&5
  2885. - cat conftest.$ac_ext >&5
  2886. - rm -rf conftest*
  2887. - CPP="${CC-cc} -E -traditional-cpp"
  2888. - cat > conftest.$ac_ext <<EOF
  2889. -#line 1205 "configure"
  2890. -#include "confdefs.h"
  2891. -#include <assert.h>
  2892. -Syntax Error
  2893. -EOF
  2894. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2895. -{ (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2896. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2897. -if test -z "$ac_err"; then
  2898. - :
  2899. -else
  2900. - echo "$ac_err" >&5
  2901. - echo "configure: failed program was:" >&5
  2902. - cat conftest.$ac_ext >&5
  2903. - rm -rf conftest*
  2904. - CPP="${CC-cc} -nologo -E"
  2905. - cat > conftest.$ac_ext <<EOF
  2906. -#line 1222 "configure"
  2907. -#include "confdefs.h"
  2908. -#include <assert.h>
  2909. -Syntax Error
  2910. -EOF
  2911. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2912. -{ (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2913. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2914. -if test -z "$ac_err"; then
  2915. - :
  2916. -else
  2917. - echo "$ac_err" >&5
  2918. - echo "configure: failed program was:" >&5
  2919. - cat conftest.$ac_ext >&5
  2920. - rm -rf conftest*
  2921. - CPP=/lib/cpp
  2922. -fi
  2923. -rm -f conftest*
  2924. -fi
  2925. -rm -f conftest*
  2926. -fi
  2927. -rm -f conftest*
  2928. - ac_cv_prog_CPP="$CPP"
  2929. -fi
  2930. - CPP="$ac_cv_prog_CPP"
  2931. -else
  2932. - ac_cv_prog_CPP="$CPP"
  2933. -fi
  2934. -echo "$ac_t""$CPP" 1>&6
  2935. missing_dir=`cd $ac_aux_dir && pwd`
  2936. for ac_prog in flex lex
  2937. do
  2938. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  2939. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2940. set dummy $ac_prog; ac_word=$2
  2941. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2942. -echo "configure:1258: checking for $ac_word" >&5
  2943. -if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  2944. - echo $ac_n "(cached) $ac_c" 1>&6
  2945. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2946. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2947. +if test "${ac_cv_prog_LEX+set}" = set; then
  2948. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2949. else
  2950. if test -n "$LEX"; then
  2951. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  2952. else
  2953. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2954. - ac_dummy="$PATH"
  2955. - for ac_dir in $ac_dummy; do
  2956. - test -z "$ac_dir" && ac_dir=.
  2957. - if test -f $ac_dir/$ac_word; then
  2958. - ac_cv_prog_LEX="$ac_prog"
  2959. - break
  2960. - fi
  2961. - done
  2962. - IFS="$ac_save_ifs"
  2963. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2964. +for as_dir in $PATH
  2965. +do
  2966. + IFS=$as_save_IFS
  2967. + test -z "$as_dir" && as_dir=.
  2968. + for ac_exec_ext in '' $ac_executable_extensions; do
  2969. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2970. + ac_cv_prog_LEX="$ac_prog"
  2971. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2972. + break 2
  2973. + fi
  2974. +done
  2975. +done
  2976. +
  2977. fi
  2978. fi
  2979. -LEX="$ac_cv_prog_LEX"
  2980. +LEX=$ac_cv_prog_LEX
  2981. if test -n "$LEX"; then
  2982. - echo "$ac_t""$LEX" 1>&6
  2983. + echo "$as_me:$LINENO: result: $LEX" >&5
  2984. +echo "${ECHO_T}$LEX" >&6
  2985. else
  2986. - echo "$ac_t""no" 1>&6
  2987. + echo "$as_me:$LINENO: result: no" >&5
  2988. +echo "${ECHO_T}no" >&6
  2989. fi
  2990. -test -n "$LEX" && break
  2991. + test -n "$LEX" && break
  2992. done
  2993. test -n "$LEX" || LEX=""$missing_dir/missing flex""
  2994. -# Extract the first word of "flex", so it can be a program name with args.
  2995. -set dummy flex; ac_word=$2
  2996. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2997. -echo "configure:1291: checking for $ac_word" >&5
  2998. -if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  2999. - echo $ac_n "(cached) $ac_c" 1>&6
  3000. +for ac_prog in flex lex
  3001. +do
  3002. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  3003. +set dummy $ac_prog; ac_word=$2
  3004. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  3005. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3006. +if test "${ac_cv_prog_LEX+set}" = set; then
  3007. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3008. else
  3009. if test -n "$LEX"; then
  3010. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  3011. else
  3012. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3013. - ac_dummy="$PATH"
  3014. - for ac_dir in $ac_dummy; do
  3015. - test -z "$ac_dir" && ac_dir=.
  3016. - if test -f $ac_dir/$ac_word; then
  3017. - ac_cv_prog_LEX="flex"
  3018. - break
  3019. - fi
  3020. - done
  3021. - IFS="$ac_save_ifs"
  3022. - test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  3023. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3024. +for as_dir in $PATH
  3025. +do
  3026. + IFS=$as_save_IFS
  3027. + test -z "$as_dir" && as_dir=.
  3028. + for ac_exec_ext in '' $ac_executable_extensions; do
  3029. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3030. + ac_cv_prog_LEX="$ac_prog"
  3031. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3032. + break 2
  3033. + fi
  3034. +done
  3035. +done
  3036. +
  3037. fi
  3038. fi
  3039. -LEX="$ac_cv_prog_LEX"
  3040. +LEX=$ac_cv_prog_LEX
  3041. if test -n "$LEX"; then
  3042. - echo "$ac_t""$LEX" 1>&6
  3043. + echo "$as_me:$LINENO: result: $LEX" >&5
  3044. +echo "${ECHO_T}$LEX" >&6
  3045. else
  3046. - echo "$ac_t""no" 1>&6
  3047. + echo "$as_me:$LINENO: result: no" >&5
  3048. +echo "${ECHO_T}no" >&6
  3049. fi
  3050. + test -n "$LEX" && break
  3051. +done
  3052. +test -n "$LEX" || LEX=":"
  3053. +
  3054. if test -z "$LEXLIB"
  3055. then
  3056. - case "$LEX" in
  3057. - flex*) ac_lib=fl ;;
  3058. - *) ac_lib=l ;;
  3059. - esac
  3060. - echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  3061. -echo "configure:1325: checking for yywrap in -l$ac_lib" >&5
  3062. -ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  3063. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3064. - echo $ac_n "(cached) $ac_c" 1>&6
  3065. -else
  3066. - ac_save_LIBS="$LIBS"
  3067. -LIBS="-l$ac_lib $LIBS"
  3068. -cat > conftest.$ac_ext <<EOF
  3069. -#line 1333 "configure"
  3070. + echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
  3071. +echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
  3072. +if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  3073. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3074. +else
  3075. + ac_check_lib_save_LIBS=$LIBS
  3076. +LIBS="-lfl $LIBS"
  3077. +cat >conftest.$ac_ext <<_ACEOF
  3078. +#line $LINENO "configure"
  3079. #include "confdefs.h"
  3080. +
  3081. /* Override any gcc2 internal prototype to avoid an error. */
  3082. +#ifdef __cplusplus
  3083. +extern "C"
  3084. +#endif
  3085. /* We use char because int might match the return type of a gcc2
  3086. - builtin and then its argument prototype would still apply. */
  3087. -char yywrap();
  3088. -
  3089. -int main() {
  3090. -yywrap()
  3091. -; return 0; }
  3092. -EOF
  3093. -if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3094. - rm -rf conftest*
  3095. - eval "ac_cv_lib_$ac_lib_var=yes"
  3096. -else
  3097. - echo "configure: failed program was:" >&5
  3098. - cat conftest.$ac_ext >&5
  3099. - rm -rf conftest*
  3100. - eval "ac_cv_lib_$ac_lib_var=no"
  3101. -fi
  3102. -rm -f conftest*
  3103. -LIBS="$ac_save_LIBS"
  3104. + builtin and then its argument prototype would still apply. */
  3105. +char yywrap ();
  3106. +#ifdef F77_DUMMY_MAIN
  3107. +# ifdef __cplusplus
  3108. + extern "C"
  3109. +# endif
  3110. + int F77_DUMMY_MAIN() { return 1; }
  3111. +#endif
  3112. +int
  3113. +main ()
  3114. +{
  3115. +yywrap ();
  3116. + ;
  3117. + return 0;
  3118. +}
  3119. +_ACEOF
  3120. +rm -f conftest.$ac_objext conftest$ac_exeext
  3121. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3122. + (eval $ac_link) 2>&5
  3123. + ac_status=$?
  3124. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3125. + (exit $ac_status); } &&
  3126. + { ac_try='test -s conftest$ac_exeext'
  3127. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3128. + (eval $ac_try) 2>&5
  3129. + ac_status=$?
  3130. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3131. + (exit $ac_status); }; }; then
  3132. + ac_cv_lib_fl_yywrap=yes
  3133. +else
  3134. + echo "$as_me: failed program was:" >&5
  3135. +cat conftest.$ac_ext >&5
  3136. +ac_cv_lib_fl_yywrap=no
  3137. +fi
  3138. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3139. +LIBS=$ac_check_lib_save_LIBS
  3140. +fi
  3141. +echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
  3142. +echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
  3143. +if test $ac_cv_lib_fl_yywrap = yes; then
  3144. + LEXLIB="-lfl"
  3145. +else
  3146. + echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
  3147. +echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
  3148. +if test "${ac_cv_lib_l_yywrap+set}" = set; then
  3149. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3150. +else
  3151. + ac_check_lib_save_LIBS=$LIBS
  3152. +LIBS="-ll $LIBS"
  3153. +cat >conftest.$ac_ext <<_ACEOF
  3154. +#line $LINENO "configure"
  3155. +#include "confdefs.h"
  3156. +/* Override any gcc2 internal prototype to avoid an error. */
  3157. +#ifdef __cplusplus
  3158. +extern "C"
  3159. +#endif
  3160. +/* We use char because int might match the return type of a gcc2
  3161. + builtin and then its argument prototype would still apply. */
  3162. +char yywrap ();
  3163. +#ifdef F77_DUMMY_MAIN
  3164. +# ifdef __cplusplus
  3165. + extern "C"
  3166. +# endif
  3167. + int F77_DUMMY_MAIN() { return 1; }
  3168. +#endif
  3169. +int
  3170. +main ()
  3171. +{
  3172. +yywrap ();
  3173. + ;
  3174. + return 0;
  3175. +}
  3176. +_ACEOF
  3177. +rm -f conftest.$ac_objext conftest$ac_exeext
  3178. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3179. + (eval $ac_link) 2>&5
  3180. + ac_status=$?
  3181. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3182. + (exit $ac_status); } &&
  3183. + { ac_try='test -s conftest$ac_exeext'
  3184. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3185. + (eval $ac_try) 2>&5
  3186. + ac_status=$?
  3187. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3188. + (exit $ac_status); }; }; then
  3189. + ac_cv_lib_l_yywrap=yes
  3190. +else
  3191. + echo "$as_me: failed program was:" >&5
  3192. +cat conftest.$ac_ext >&5
  3193. +ac_cv_lib_l_yywrap=no
  3194. +fi
  3195. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3196. +LIBS=$ac_check_lib_save_LIBS
  3197. +fi
  3198. +echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
  3199. +echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
  3200. +if test $ac_cv_lib_l_yywrap = yes; then
  3201. + LEXLIB="-ll"
  3202. fi
  3203. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3204. - echo "$ac_t""yes" 1>&6
  3205. - LEXLIB="-l$ac_lib"
  3206. -else
  3207. - echo "$ac_t""no" 1>&6
  3208. +
  3209. fi
  3210. fi
  3211. -echo $ac_n "checking lex output file root""... $ac_c" 1>&6
  3212. -echo "configure:1367: checking lex output file root" >&5
  3213. -if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
  3214. - echo $ac_n "(cached) $ac_c" 1>&6
  3215. +if test "x$LEX" != "x:"; then
  3216. + echo "$as_me:$LINENO: checking lex output file root" >&5
  3217. +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
  3218. +if test "${ac_cv_prog_lex_root+set}" = set; then
  3219. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3220. else
  3221. # The minimal lex program is just a single line: %%. But some broken lexes
  3222. # (Solaris, I think it was) want two %% lines, so accommodate them.
  3223. -echo '%%
  3224. -%%' | $LEX
  3225. +cat >conftest.l <<_ACEOF
  3226. +%%
  3227. +%%
  3228. +_ACEOF
  3229. +{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  3230. + (eval $LEX conftest.l) 2>&5
  3231. + ac_status=$?
  3232. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3233. + (exit $ac_status); }
  3234. if test -f lex.yy.c; then
  3235. ac_cv_prog_lex_root=lex.yy
  3236. elif test -f lexyy.c; then
  3237. ac_cv_prog_lex_root=lexyy
  3238. else
  3239. - { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
  3240. + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
  3241. +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
  3242. + { (exit 1); exit 1; }; }
  3243. fi
  3244. fi
  3245. -
  3246. -echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
  3247. +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
  3248. +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
  3249. +rm -f conftest.l
  3250. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  3251. -echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
  3252. -echo "configure:1388: checking whether yytext is a pointer" >&5
  3253. -if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
  3254. - echo $ac_n "(cached) $ac_c" 1>&6
  3255. +echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
  3256. +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
  3257. +if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  3258. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3259. else
  3260. # POSIX says lex can declare yytext either as a pointer or an array; the
  3261. # default is implementation-dependent. Figure out which it is, since
  3262. # not all implementations provide the %pointer and %array declarations.
  3263. ac_cv_prog_lex_yytext_pointer=no
  3264. echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  3265. -ac_save_LIBS="$LIBS"
  3266. +ac_save_LIBS=$LIBS
  3267. LIBS="$LIBS $LEXLIB"
  3268. -cat > conftest.$ac_ext <<EOF
  3269. -#line 1400 "configure"
  3270. -#include "confdefs.h"
  3271. +cat >conftest.$ac_ext <<_ACEOF
  3272. `cat $LEX_OUTPUT_ROOT.c`
  3273. -int main() {
  3274. -
  3275. -; return 0; }
  3276. -EOF
  3277. -if { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3278. - rm -rf conftest*
  3279. +_ACEOF
  3280. +rm -f conftest.$ac_objext conftest$ac_exeext
  3281. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3282. + (eval $ac_link) 2>&5
  3283. + ac_status=$?
  3284. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3285. + (exit $ac_status); } &&
  3286. + { ac_try='test -s conftest$ac_exeext'
  3287. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3288. + (eval $ac_try) 2>&5
  3289. + ac_status=$?
  3290. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3291. + (exit $ac_status); }; }; then
  3292. ac_cv_prog_lex_yytext_pointer=yes
  3293. else
  3294. - echo "configure: failed program was:" >&5
  3295. - cat conftest.$ac_ext >&5
  3296. + echo "$as_me: failed program was:" >&5
  3297. +cat conftest.$ac_ext >&5
  3298. fi
  3299. -rm -f conftest*
  3300. -LIBS="$ac_save_LIBS"
  3301. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3302. +LIBS=$ac_save_LIBS
  3303. rm -f "${LEX_OUTPUT_ROOT}.c"
  3304. fi
  3305. -
  3306. -echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
  3307. +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
  3308. +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
  3309. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  3310. - cat >> confdefs.h <<\EOF
  3311. +
  3312. +cat >>confdefs.h <<\_ACEOF
  3313. #define YYTEXT_POINTER 1
  3314. -EOF
  3315. +_ACEOF
  3316. +
  3317. +fi
  3318. fi
  3319. @@ -1432,10 +2741,10 @@
  3320. -echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  3321. -echo "configure:1437: checking for ${CC-cc} option to accept ANSI C" >&5
  3322. -if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  3323. - echo $ac_n "(cached) $ac_c" 1>&6
  3324. +echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  3325. +echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
  3326. +if test "${am_cv_prog_cc_stdc+set}" = set; then
  3327. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3328. else
  3329. am_cv_prog_cc_stdc=no
  3330. ac_save_CC="$CC"
  3331. @@ -1448,8 +2757,8 @@
  3332. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3333. do
  3334. CC="$ac_save_CC $ac_arg"
  3335. - cat > conftest.$ac_ext <<EOF
  3336. -#line 1453 "configure"
  3337. + cat >conftest.$ac_ext <<_ACEOF
  3338. +#line $LINENO "configure"
  3339. #include "confdefs.h"
  3340. #include <stdarg.h>
  3341. #include <stdio.h>
  3342. @@ -1480,29 +2789,51 @@
  3343. int argc;
  3344. char **argv;
  3345. -int main() {
  3346. +#ifdef F77_DUMMY_MAIN
  3347. +# ifdef __cplusplus
  3348. + extern "C"
  3349. +# endif
  3350. + int F77_DUMMY_MAIN() { return 1; }
  3351. +#endif
  3352. +int
  3353. +main ()
  3354. +{
  3355. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3356. -; return 0; }
  3357. -EOF
  3358. -if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3359. - rm -rf conftest*
  3360. + ;
  3361. + return 0;
  3362. +}
  3363. +_ACEOF
  3364. +rm -f conftest.$ac_objext
  3365. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3366. + (eval $ac_compile) 2>&5
  3367. + ac_status=$?
  3368. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3369. + (exit $ac_status); } &&
  3370. + { ac_try='test -s conftest.$ac_objext'
  3371. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3372. + (eval $ac_try) 2>&5
  3373. + ac_status=$?
  3374. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3375. + (exit $ac_status); }; }; then
  3376. am_cv_prog_cc_stdc="$ac_arg"; break
  3377. else
  3378. - echo "configure: failed program was:" >&5
  3379. - cat conftest.$ac_ext >&5
  3380. + echo "$as_me: failed program was:" >&5
  3381. +cat conftest.$ac_ext >&5
  3382. fi
  3383. -rm -f conftest*
  3384. +rm -f conftest.$ac_objext conftest.$ac_ext
  3385. done
  3386. CC="$ac_save_CC"
  3387. fi
  3388. if test -z "$am_cv_prog_cc_stdc"; then
  3389. - echo "$ac_t""none needed" 1>&6
  3390. + echo "$as_me:$LINENO: result: none needed" >&5
  3391. +echo "${ECHO_T}none needed" >&6
  3392. else
  3393. - echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
  3394. + echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  3395. +echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
  3396. fi
  3397. case "x$am_cv_prog_cc_stdc" in
  3398. x|xno) ;;
  3399. @@ -1510,8 +2841,8 @@
  3400. esac
  3401. -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  3402. -echo "configure:1515: checking whether build environment is sane" >&5
  3403. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  3404. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  3405. # Just in case
  3406. sleep 1
  3407. echo timestamp > conftestfile
  3408. @@ -1533,8 +2864,11 @@
  3409. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3410. # broken ls alias from the environment. This has actually
  3411. # happened. Such a system could not be considered "sane".
  3412. - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  3413. -alias in your environment" 1>&2; exit 1; }
  3414. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  3415. +alias in your environment" >&5
  3416. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  3417. +alias in your environment" >&2;}
  3418. + { (exit 1); exit 1; }; }
  3419. fi
  3420. test "$2" = conftestfile
  3421. @@ -1543,23 +2877,27 @@
  3422. # Ok.
  3423. :
  3424. else
  3425. - { echo "configure: error: newly created file is older than distributed files!
  3426. -Check your system clock" 1>&2; exit 1; }
  3427. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  3428. +Check your system clock" >&5
  3429. +echo "$as_me: error: newly created file is older than distributed files!
  3430. +Check your system clock" >&2;}
  3431. + { (exit 1); exit 1; }; }
  3432. fi
  3433. rm -f conftest*
  3434. -echo "$ac_t""yes" 1>&6
  3435. -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  3436. -echo "configure:1553: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3437. +echo "$as_me:$LINENO: result: yes" >&5
  3438. +echo "${ECHO_T}yes" >&6
  3439. +echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3440. +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  3441. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  3442. if test "${enable_maintainer_mode+set}" = set; then
  3443. enableval="$enable_maintainer_mode"
  3444. USE_MAINTAINER_MODE=$enableval
  3445. else
  3446. USE_MAINTAINER_MODE=no
  3447. -fi
  3448. +fi;
  3449. + echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  3450. +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  3451. - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  3452. -
  3453. if test $USE_MAINTAINER_MODE = yes; then
  3454. MAINTAINER_MODE_TRUE=
  3455. @@ -1569,52 +2907,34 @@
  3456. MAINTAINER_MODE_FALSE=
  3457. fi
  3458. MAINT=$MAINTAINER_MODE_TRUE
  3459. -
  3460. -if test "$program_transform_name" = s,x,x,; then
  3461. - program_transform_name=
  3462. -else
  3463. - # Double any \ or $. echo might interpret backslashes.
  3464. - cat <<\EOF_SED > conftestsed
  3465. -s,\\,\\\\,g; s,\$,$$,g
  3466. -EOF_SED
  3467. - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  3468. - rm -f conftestsed
  3469. -fi
  3470. -test "$program_prefix" != NONE &&
  3471. - program_transform_name="s,^,${program_prefix},; $program_transform_name"
  3472. -# Use a double $ so make ignores it.
  3473. -test "$program_suffix" != NONE &&
  3474. - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  3475. -# sed with no file args requires a program.
  3476. -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  3477. +
  3478. # Check whether --with-extra-includes or --without-extra-includes was given.
  3479. if test "${with_extra_includes+set}" = set; then
  3480. withval="$with_extra_includes"
  3481. - CPPFLAGS="$CFLAGS $withval"
  3482. -fi
  3483. + CPPFLAGS="$CFLAGS $withval"
  3484. +fi;
  3485. # Check whether --with-extra-libs or --without-extra-libs was given.
  3486. if test "${with_extra_libs+set}" = set; then
  3487. withval="$with_extra_libs"
  3488. - LDFLAGS="$LDFLAGS $withval"
  3489. -fi
  3490. + LDFLAGS="$LDFLAGS $withval"
  3491. +fi;
  3492. # Check whether --with-extra-link-libs or --without-extra-link-libs was given.
  3493. if test "${with_extra_link_libs+set}" = set; then
  3494. withval="$with_extra_link_libs"
  3495. - LIBS="$LIBS $withval"
  3496. -fi
  3497. + LIBS="$LIBS $withval"
  3498. +fi;
  3499. -
  3500. -if test $ac_cv_prog_gcc = yes; then
  3501. +if test $ac_cv_c_compiler_gnu = yes; then
  3502. LD_STATIC_FLAG='-static'
  3503. case "$host_os" in
  3504. @@ -1655,54 +2975,54 @@
  3505. # All AIX code is PIC.
  3506. LD_STATIC_FLAG='-bnso -bI:/lib/syscalls.exp'
  3507. ;;
  3508. -
  3509. +
  3510. hpux9* | hpux10* | hpux11*)
  3511. # Is there a better LD_STATIC_FLAG that works with the bundled CC?
  3512. ## wl='-Wl,'
  3513. LD_STATIC_FLAG="${wl}-a ${wl}archive"
  3514. ## pic_flag='+Z'
  3515. ;;
  3516. -
  3517. +
  3518. irix5* | irix6*)
  3519. ## wl='-Wl,'
  3520. LD_STATIC_FLAG='-non_shared'
  3521. # PIC (with -KPIC) is the default.
  3522. ;;
  3523. -
  3524. +
  3525. cygwin* | mingw* | os2*)
  3526. # We can build DLLs from non-PIC.
  3527. ;;
  3528. -
  3529. +
  3530. osf3* | osf4* | osf5*)
  3531. # All OSF/1 code is PIC.
  3532. ## wl='-Wl,'
  3533. LD_STATIC_FLAG='-non_shared'
  3534. ;;
  3535. -
  3536. +
  3537. sco3.2v5*)
  3538. ## pic_flag='-Kpic'
  3539. LD_STATIC_FLAG='-dn'
  3540. ## special_shlib_compile_flags='-belf'
  3541. ;;
  3542. -
  3543. +
  3544. solaris*)
  3545. ## pic_flag='-KPIC'
  3546. LD_STATIC_FLAG='-Bstatic'
  3547. ## wl='-Wl,'
  3548. ;;
  3549. -
  3550. +
  3551. sunos4*)
  3552. ## pic_flag='-PIC'
  3553. LD_STATIC_FLAG='-Bstatic'
  3554. ## wl='-Qoption ld '
  3555. ;;
  3556. -
  3557. +
  3558. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3559. ## pic_flag='-KPIC'
  3560. LD_STATIC_FLAG='-Bstatic'
  3561. ## wl='-Wl,'
  3562. ;;
  3563. -
  3564. +
  3565. uts4*)
  3566. ## pic_flag='-pic'
  3567. LD_STATIC_FLAG='-Bstatic'
  3568. @@ -1724,131 +3044,217 @@
  3569. -
  3570. -echo $ac_n "checking for library containing syslog""... $ac_c" 1>&6
  3571. -echo "configure:1730: checking for library containing syslog" >&5
  3572. -if eval "test \"`echo '$''{'ac_cv_search_syslog'+set}'`\" = set"; then
  3573. - echo $ac_n "(cached) $ac_c" 1>&6
  3574. -else
  3575. - ac_func_search_save_LIBS="$LIBS"
  3576. -ac_cv_search_syslog="no"
  3577. -cat > conftest.$ac_ext <<EOF
  3578. -#line 1737 "configure"
  3579. +echo "$as_me:$LINENO: checking for library containing syslog" >&5
  3580. +echo $ECHO_N "checking for library containing syslog... $ECHO_C" >&6
  3581. +if test "${ac_cv_search_syslog+set}" = set; then
  3582. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3583. +else
  3584. + ac_func_search_save_LIBS=$LIBS
  3585. +ac_cv_search_syslog=no
  3586. +cat >conftest.$ac_ext <<_ACEOF
  3587. +#line $LINENO "configure"
  3588. #include "confdefs.h"
  3589. +
  3590. /* Override any gcc2 internal prototype to avoid an error. */
  3591. +#ifdef __cplusplus
  3592. +extern "C"
  3593. +#endif
  3594. /* We use char because int might match the return type of a gcc2
  3595. - builtin and then its argument prototype would still apply. */
  3596. -char syslog();
  3597. -
  3598. -int main() {
  3599. -syslog()
  3600. -; return 0; }
  3601. -EOF
  3602. -if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3603. - rm -rf conftest*
  3604. + builtin and then its argument prototype would still apply. */
  3605. +char syslog ();
  3606. +#ifdef F77_DUMMY_MAIN
  3607. +# ifdef __cplusplus
  3608. + extern "C"
  3609. +# endif
  3610. + int F77_DUMMY_MAIN() { return 1; }
  3611. +#endif
  3612. +int
  3613. +main ()
  3614. +{
  3615. +syslog ();
  3616. + ;
  3617. + return 0;
  3618. +}
  3619. +_ACEOF
  3620. +rm -f conftest.$ac_objext conftest$ac_exeext
  3621. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3622. + (eval $ac_link) 2>&5
  3623. + ac_status=$?
  3624. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3625. + (exit $ac_status); } &&
  3626. + { ac_try='test -s conftest$ac_exeext'
  3627. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3628. + (eval $ac_try) 2>&5
  3629. + ac_status=$?
  3630. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3631. + (exit $ac_status); }; }; then
  3632. ac_cv_search_syslog="none required"
  3633. else
  3634. - echo "configure: failed program was:" >&5
  3635. - cat conftest.$ac_ext >&5
  3636. + echo "$as_me: failed program was:" >&5
  3637. +cat conftest.$ac_ext >&5
  3638. fi
  3639. -rm -f conftest*
  3640. -test "$ac_cv_search_syslog" = "no" && for i in bsd socket inet; do
  3641. -LIBS="-l$i $ac_func_search_save_LIBS"
  3642. -cat > conftest.$ac_ext <<EOF
  3643. -#line 1759 "configure"
  3644. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3645. +if test "$ac_cv_search_syslog" = no; then
  3646. + for ac_lib in bsd socket inet; do
  3647. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3648. + cat >conftest.$ac_ext <<_ACEOF
  3649. +#line $LINENO "configure"
  3650. #include "confdefs.h"
  3651. +
  3652. /* Override any gcc2 internal prototype to avoid an error. */
  3653. +#ifdef __cplusplus
  3654. +extern "C"
  3655. +#endif
  3656. /* We use char because int might match the return type of a gcc2
  3657. - builtin and then its argument prototype would still apply. */
  3658. -char syslog();
  3659. -
  3660. -int main() {
  3661. -syslog()
  3662. -; return 0; }
  3663. -EOF
  3664. -if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3665. - rm -rf conftest*
  3666. - ac_cv_search_syslog="-l$i"
  3667. + builtin and then its argument prototype would still apply. */
  3668. +char syslog ();
  3669. +#ifdef F77_DUMMY_MAIN
  3670. +# ifdef __cplusplus
  3671. + extern "C"
  3672. +# endif
  3673. + int F77_DUMMY_MAIN() { return 1; }
  3674. +#endif
  3675. +int
  3676. +main ()
  3677. +{
  3678. +syslog ();
  3679. + ;
  3680. + return 0;
  3681. +}
  3682. +_ACEOF
  3683. +rm -f conftest.$ac_objext conftest$ac_exeext
  3684. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3685. + (eval $ac_link) 2>&5
  3686. + ac_status=$?
  3687. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3688. + (exit $ac_status); } &&
  3689. + { ac_try='test -s conftest$ac_exeext'
  3690. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3691. + (eval $ac_try) 2>&5
  3692. + ac_status=$?
  3693. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3694. + (exit $ac_status); }; }; then
  3695. + ac_cv_search_syslog="-l$ac_lib"
  3696. break
  3697. else
  3698. - echo "configure: failed program was:" >&5
  3699. - cat conftest.$ac_ext >&5
  3700. + echo "$as_me: failed program was:" >&5
  3701. +cat conftest.$ac_ext >&5
  3702. fi
  3703. -rm -f conftest*
  3704. -done
  3705. -LIBS="$ac_func_search_save_LIBS"
  3706. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3707. + done
  3708. fi
  3709. -
  3710. -echo "$ac_t""$ac_cv_search_syslog" 1>&6
  3711. -if test "$ac_cv_search_syslog" != "no"; then
  3712. +LIBS=$ac_func_search_save_LIBS
  3713. +fi
  3714. +echo "$as_me:$LINENO: result: $ac_cv_search_syslog" >&5
  3715. +echo "${ECHO_T}$ac_cv_search_syslog" >&6
  3716. +if test "$ac_cv_search_syslog" != no; then
  3717. test "$ac_cv_search_syslog" = "none required" || LIBS="$ac_cv_search_syslog $LIBS"
  3718. - cat >> confdefs.h <<\EOF
  3719. + cat >>confdefs.h <<\_ACEOF
  3720. #define HAVE_SYSLOG 1
  3721. -EOF
  3722. +_ACEOF
  3723. -else :
  3724. -
  3725. fi
  3726. +
  3727. if test "$cross_compiling" = yes; then
  3728. - echo "configure: warning: cross compiling; assuming little endianess" 1>&2
  3729. + { echo "$as_me:$LINENO: WARNING: cross compiling; assuming little endianess" >&5
  3730. +echo "$as_me: WARNING: cross compiling; assuming little endianess" >&2;}
  3731. fi
  3732. - echo $ac_n "checking endianess""... $ac_c" 1>&6
  3733. -echo "configure:1798: checking endianess" >&5
  3734. - if eval "test \"`echo '$''{'aide_cv_c_endian'+set}'`\" = set"; then
  3735. - echo $ac_n "(cached) $ac_c" 1>&6
  3736. + echo "$as_me:$LINENO: checking endianess" >&5
  3737. +echo $ECHO_N "checking endianess... $ECHO_C" >&6
  3738. + if test "${aide_cv_c_endian+set}" = set; then
  3739. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3740. else
  3741. aide_cv_c_endian=unknown
  3742. # See if sys/param.h defines the BYTE_ORDER macro.
  3743. - cat > conftest.$ac_ext <<EOF
  3744. -#line 1805 "configure"
  3745. + cat >conftest.$ac_ext <<_ACEOF
  3746. +#line $LINENO "configure"
  3747. #include "confdefs.h"
  3748. #include <sys/types.h>
  3749. #include <sys/param.h>
  3750. -int main() {
  3751. +#ifdef F77_DUMMY_MAIN
  3752. +# ifdef __cplusplus
  3753. + extern "C"
  3754. +# endif
  3755. + int F77_DUMMY_MAIN() { return 1; }
  3756. +#endif
  3757. +int
  3758. +main ()
  3759. +{
  3760. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  3761. bogus endian macros
  3762. #endif
  3763. -; return 0; }
  3764. -EOF
  3765. -if { (eval echo configure:1816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3766. - rm -rf conftest*
  3767. + ;
  3768. + return 0;
  3769. +}
  3770. +_ACEOF
  3771. +rm -f conftest.$ac_objext
  3772. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3773. + (eval $ac_compile) 2>&5
  3774. + ac_status=$?
  3775. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3776. + (exit $ac_status); } &&
  3777. + { ac_try='test -s conftest.$ac_objext'
  3778. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3779. + (eval $ac_try) 2>&5
  3780. + ac_status=$?
  3781. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3782. + (exit $ac_status); }; }; then
  3783. # It does; now see whether it defined to BIG_ENDIAN or not.
  3784. - cat > conftest.$ac_ext <<EOF
  3785. -#line 1820 "configure"
  3786. + cat >conftest.$ac_ext <<_ACEOF
  3787. +#line $LINENO "configure"
  3788. #include "confdefs.h"
  3789. #include <sys/types.h>
  3790. #include <sys/param.h>
  3791. -int main() {
  3792. +#ifdef F77_DUMMY_MAIN
  3793. +# ifdef __cplusplus
  3794. + extern "C"
  3795. +# endif
  3796. + int F77_DUMMY_MAIN() { return 1; }
  3797. +#endif
  3798. +int
  3799. +main ()
  3800. +{
  3801. #if BYTE_ORDER != BIG_ENDIAN
  3802. not big endian
  3803. #endif
  3804. -; return 0; }
  3805. -EOF
  3806. -if { (eval echo configure:1831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3807. - rm -rf conftest*
  3808. + ;
  3809. + return 0;
  3810. +}
  3811. +_ACEOF
  3812. +rm -f conftest.$ac_objext
  3813. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3814. + (eval $ac_compile) 2>&5
  3815. + ac_status=$?
  3816. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3817. + (exit $ac_status); } &&
  3818. + { ac_try='test -s conftest.$ac_objext'
  3819. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3820. + (eval $ac_try) 2>&5
  3821. + ac_status=$?
  3822. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3823. + (exit $ac_status); }; }; then
  3824. aide_cv_c_endian=big
  3825. else
  3826. - echo "configure: failed program was:" >&5
  3827. - cat conftest.$ac_ext >&5
  3828. - rm -rf conftest*
  3829. - aide_cv_c_endian=little
  3830. + echo "$as_me: failed program was:" >&5
  3831. +cat conftest.$ac_ext >&5
  3832. +aide_cv_c_endian=little
  3833. fi
  3834. -rm -f conftest*
  3835. +rm -f conftest.$ac_objext conftest.$ac_ext
  3836. else
  3837. - echo "configure: failed program was:" >&5
  3838. - cat conftest.$ac_ext >&5
  3839. + echo "$as_me: failed program was:" >&5
  3840. +cat conftest.$ac_ext >&5
  3841. fi
  3842. -rm -f conftest*
  3843. +rm -f conftest.$ac_objext conftest.$ac_ext
  3844. if test "$aide_cv_c_endian" = unknown; then
  3845. if test "$cross_compiling" = yes; then
  3846. aide_cv_c_endian=little
  3847. -
  3848. +
  3849. else
  3850. - cat > conftest.$ac_ext <<EOF
  3851. -#line 1852 "configure"
  3852. + cat >conftest.$ac_ext <<_ACEOF
  3853. +#line $LINENO "configure"
  3854. #include "confdefs.h"
  3855. main () {
  3856. /* Are we little or big endian? From Harbison&Steele. */
  3857. @@ -1860,381 +3266,585 @@
  3858. u.l = 1;
  3859. exit (u.c[sizeof (long) - 1] == 1);
  3860. }
  3861. -EOF
  3862. -if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3863. -then
  3864. +_ACEOF
  3865. +rm -f conftest$ac_exeext
  3866. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3867. + (eval $ac_link) 2>&5
  3868. + ac_status=$?
  3869. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3870. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3871. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3872. + (eval $ac_try) 2>&5
  3873. + ac_status=$?
  3874. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3875. + (exit $ac_status); }; }; then
  3876. aide_cv_c_endian=little
  3877. else
  3878. - echo "configure: failed program was:" >&5
  3879. - cat conftest.$ac_ext >&5
  3880. - rm -fr conftest*
  3881. - aide_cv_c_endian=big
  3882. + echo "$as_me: program exited with status $ac_status" >&5
  3883. +echo "$as_me: failed program was:" >&5
  3884. +cat conftest.$ac_ext >&5
  3885. +( exit $ac_status )
  3886. +aide_cv_c_endian=big
  3887. fi
  3888. -rm -fr conftest*
  3889. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3890. fi
  3891. -
  3892. fi
  3893. -
  3894. +
  3895. fi
  3896. - echo "$ac_t""$aide_cv_c_endian" 1>&6
  3897. + echo "$as_me:$LINENO: result: $aide_cv_c_endian" >&5
  3898. +echo "${ECHO_T}$aide_cv_c_endian" >&6
  3899. if test "$aide_cv_c_endian" = little; then
  3900. - cat >> confdefs.h <<\EOF
  3901. + cat >>confdefs.h <<\_ACEOF
  3902. #define LITTLE_ENDIAN_HOST 1
  3903. -EOF
  3904. +_ACEOF
  3905. else
  3906. - cat >> confdefs.h <<\EOF
  3907. + cat >>confdefs.h <<\_ACEOF
  3908. #define BIG_ENDIAN_HOST 1
  3909. -EOF
  3910. +_ACEOF
  3911. fi
  3912. -
  3913. - echo $ac_n "checking for byte typedef""... $ac_c" 1>&6
  3914. -echo "configure:1896: checking for byte typedef" >&5
  3915. - if eval "test \"`echo '$''{'aide_cv_typedef_byte'+set}'`\" = set"; then
  3916. - echo $ac_n "(cached) $ac_c" 1>&6
  3917. +
  3918. + echo "$as_me:$LINENO: checking for byte typedef" >&5
  3919. +echo $ECHO_N "checking for byte typedef... $ECHO_C" >&6
  3920. + if test "${aide_cv_typedef_byte+set}" = set; then
  3921. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3922. else
  3923. - cat > conftest.$ac_ext <<EOF
  3924. -#line 1901 "configure"
  3925. + cat >conftest.$ac_ext <<_ACEOF
  3926. +#line $LINENO "configure"
  3927. #include "confdefs.h"
  3928. #include <stdlib.h>
  3929. #include <sys/types.h>
  3930. -int main() {
  3931. +#ifdef F77_DUMMY_MAIN
  3932. +# ifdef __cplusplus
  3933. + extern "C"
  3934. +# endif
  3935. + int F77_DUMMY_MAIN() { return 1; }
  3936. +#endif
  3937. +int
  3938. +main ()
  3939. +{
  3940. #undef byte
  3941. int a = sizeof(byte);
  3942. -
  3943. -; return 0; }
  3944. -EOF
  3945. -if { (eval echo configure:1912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3946. - rm -rf conftest*
  3947. +
  3948. + ;
  3949. + return 0;
  3950. +}
  3951. +_ACEOF
  3952. +rm -f conftest.$ac_objext
  3953. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3954. + (eval $ac_compile) 2>&5
  3955. + ac_status=$?
  3956. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3957. + (exit $ac_status); } &&
  3958. + { ac_try='test -s conftest.$ac_objext'
  3959. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3960. + (eval $ac_try) 2>&5
  3961. + ac_status=$?
  3962. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3963. + (exit $ac_status); }; }; then
  3964. aide_cv_typedef_byte=yes
  3965. else
  3966. - echo "configure: failed program was:" >&5
  3967. - cat conftest.$ac_ext >&5
  3968. - rm -rf conftest*
  3969. - aide_cv_typedef_byte=no
  3970. + echo "$as_me: failed program was:" >&5
  3971. +cat conftest.$ac_ext >&5
  3972. +aide_cv_typedef_byte=no
  3973. fi
  3974. -rm -f conftest*
  3975. +rm -f conftest.$ac_objext conftest.$ac_ext
  3976. fi
  3977. - echo "$ac_t""$aide_cv_typedef_byte" 1>&6
  3978. + echo "$as_me:$LINENO: result: $aide_cv_typedef_byte" >&5
  3979. +echo "${ECHO_T}$aide_cv_typedef_byte" >&6
  3980. if test "$aide_cv_typedef_byte" = yes; then
  3981. - cat >> confdefs.h <<\EOF
  3982. + cat >>confdefs.h <<\_ACEOF
  3983. #define HAVE_BYTE_TYPEDEF 1
  3984. -EOF
  3985. +_ACEOF
  3986. fi
  3987. -
  3988. - echo $ac_n "checking for ushort typedef""... $ac_c" 1>&6
  3989. -echo "configure:1933: checking for ushort typedef" >&5
  3990. - if eval "test \"`echo '$''{'aide_cv_typedef_ushort'+set}'`\" = set"; then
  3991. - echo $ac_n "(cached) $ac_c" 1>&6
  3992. +
  3993. + echo "$as_me:$LINENO: checking for ushort typedef" >&5
  3994. +echo $ECHO_N "checking for ushort typedef... $ECHO_C" >&6
  3995. + if test "${aide_cv_typedef_ushort+set}" = set; then
  3996. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3997. else
  3998. - cat > conftest.$ac_ext <<EOF
  3999. -#line 1938 "configure"
  4000. + cat >conftest.$ac_ext <<_ACEOF
  4001. +#line $LINENO "configure"
  4002. #include "confdefs.h"
  4003. #include <stdlib.h>
  4004. #include <sys/types.h>
  4005. -int main() {
  4006. +#ifdef F77_DUMMY_MAIN
  4007. +# ifdef __cplusplus
  4008. + extern "C"
  4009. +# endif
  4010. + int F77_DUMMY_MAIN() { return 1; }
  4011. +#endif
  4012. +int
  4013. +main ()
  4014. +{
  4015. #undef ushort
  4016. int a = sizeof(ushort);
  4017. -
  4018. -; return 0; }
  4019. -EOF
  4020. -if { (eval echo configure:1949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4021. - rm -rf conftest*
  4022. +
  4023. + ;
  4024. + return 0;
  4025. +}
  4026. +_ACEOF
  4027. +rm -f conftest.$ac_objext
  4028. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4029. + (eval $ac_compile) 2>&5
  4030. + ac_status=$?
  4031. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4032. + (exit $ac_status); } &&
  4033. + { ac_try='test -s conftest.$ac_objext'
  4034. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4035. + (eval $ac_try) 2>&5
  4036. + ac_status=$?
  4037. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4038. + (exit $ac_status); }; }; then
  4039. aide_cv_typedef_ushort=yes
  4040. else
  4041. - echo "configure: failed program was:" >&5
  4042. - cat conftest.$ac_ext >&5
  4043. - rm -rf conftest*
  4044. - aide_cv_typedef_ushort=no
  4045. + echo "$as_me: failed program was:" >&5
  4046. +cat conftest.$ac_ext >&5
  4047. +aide_cv_typedef_ushort=no
  4048. fi
  4049. -rm -f conftest*
  4050. +rm -f conftest.$ac_objext conftest.$ac_ext
  4051. fi
  4052. - echo "$ac_t""$aide_cv_typedef_ushort" 1>&6
  4053. + echo "$as_me:$LINENO: result: $aide_cv_typedef_ushort" >&5
  4054. +echo "${ECHO_T}$aide_cv_typedef_ushort" >&6
  4055. if test "$aide_cv_typedef_ushort" = yes; then
  4056. - cat >> confdefs.h <<\EOF
  4057. + cat >>confdefs.h <<\_ACEOF
  4058. #define HAVE_USHORT_TYPEDEF 1
  4059. -EOF
  4060. +_ACEOF
  4061. fi
  4062. -
  4063. - echo $ac_n "checking for ulong typedef""... $ac_c" 1>&6
  4064. -echo "configure:1970: checking for ulong typedef" >&5
  4065. - if eval "test \"`echo '$''{'aide_cv_typedef_ulong'+set}'`\" = set"; then
  4066. - echo $ac_n "(cached) $ac_c" 1>&6
  4067. +
  4068. + echo "$as_me:$LINENO: checking for ulong typedef" >&5
  4069. +echo $ECHO_N "checking for ulong typedef... $ECHO_C" >&6
  4070. + if test "${aide_cv_typedef_ulong+set}" = set; then
  4071. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4072. else
  4073. - cat > conftest.$ac_ext <<EOF
  4074. -#line 1975 "configure"
  4075. + cat >conftest.$ac_ext <<_ACEOF
  4076. +#line $LINENO "configure"
  4077. #include "confdefs.h"
  4078. #include <stdlib.h>
  4079. #include <sys/types.h>
  4080. -int main() {
  4081. +#ifdef F77_DUMMY_MAIN
  4082. +# ifdef __cplusplus
  4083. + extern "C"
  4084. +# endif
  4085. + int F77_DUMMY_MAIN() { return 1; }
  4086. +#endif
  4087. +int
  4088. +main ()
  4089. +{
  4090. #undef ulong
  4091. int a = sizeof(ulong);
  4092. -
  4093. -; return 0; }
  4094. -EOF
  4095. -if { (eval echo configure:1986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4096. - rm -rf conftest*
  4097. +
  4098. + ;
  4099. + return 0;
  4100. +}
  4101. +_ACEOF
  4102. +rm -f conftest.$ac_objext
  4103. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4104. + (eval $ac_compile) 2>&5
  4105. + ac_status=$?
  4106. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4107. + (exit $ac_status); } &&
  4108. + { ac_try='test -s conftest.$ac_objext'
  4109. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4110. + (eval $ac_try) 2>&5
  4111. + ac_status=$?
  4112. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4113. + (exit $ac_status); }; }; then
  4114. aide_cv_typedef_ulong=yes
  4115. else
  4116. - echo "configure: failed program was:" >&5
  4117. - cat conftest.$ac_ext >&5
  4118. - rm -rf conftest*
  4119. - aide_cv_typedef_ulong=no
  4120. + echo "$as_me: failed program was:" >&5
  4121. +cat conftest.$ac_ext >&5
  4122. +aide_cv_typedef_ulong=no
  4123. fi
  4124. -rm -f conftest*
  4125. +rm -f conftest.$ac_objext conftest.$ac_ext
  4126. fi
  4127. - echo "$ac_t""$aide_cv_typedef_ulong" 1>&6
  4128. + echo "$as_me:$LINENO: result: $aide_cv_typedef_ulong" >&5
  4129. +echo "${ECHO_T}$aide_cv_typedef_ulong" >&6
  4130. if test "$aide_cv_typedef_ulong" = yes; then
  4131. - cat >> confdefs.h <<\EOF
  4132. + cat >>confdefs.h <<\_ACEOF
  4133. #define HAVE_ULONG_TYPEDEF 1
  4134. -EOF
  4135. +_ACEOF
  4136. fi
  4137. -
  4138. - echo $ac_n "checking for u16 typedef""... $ac_c" 1>&6
  4139. -echo "configure:2007: checking for u16 typedef" >&5
  4140. - if eval "test \"`echo '$''{'aide_cv_typedef_u16'+set}'`\" = set"; then
  4141. - echo $ac_n "(cached) $ac_c" 1>&6
  4142. +
  4143. + echo "$as_me:$LINENO: checking for u16 typedef" >&5
  4144. +echo $ECHO_N "checking for u16 typedef... $ECHO_C" >&6
  4145. + if test "${aide_cv_typedef_u16+set}" = set; then
  4146. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4147. else
  4148. - cat > conftest.$ac_ext <<EOF
  4149. -#line 2012 "configure"
  4150. + cat >conftest.$ac_ext <<_ACEOF
  4151. +#line $LINENO "configure"
  4152. #include "confdefs.h"
  4153. #include <stdlib.h>
  4154. #include <sys/types.h>
  4155. -int main() {
  4156. +#ifdef F77_DUMMY_MAIN
  4157. +# ifdef __cplusplus
  4158. + extern "C"
  4159. +# endif
  4160. + int F77_DUMMY_MAIN() { return 1; }
  4161. +#endif
  4162. +int
  4163. +main ()
  4164. +{
  4165. #undef u16
  4166. int a = sizeof(u16);
  4167. -
  4168. -; return 0; }
  4169. -EOF
  4170. -if { (eval echo configure:2023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4171. - rm -rf conftest*
  4172. +
  4173. + ;
  4174. + return 0;
  4175. +}
  4176. +_ACEOF
  4177. +rm -f conftest.$ac_objext
  4178. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4179. + (eval $ac_compile) 2>&5
  4180. + ac_status=$?
  4181. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4182. + (exit $ac_status); } &&
  4183. + { ac_try='test -s conftest.$ac_objext'
  4184. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4185. + (eval $ac_try) 2>&5
  4186. + ac_status=$?
  4187. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4188. + (exit $ac_status); }; }; then
  4189. aide_cv_typedef_u16=yes
  4190. else
  4191. - echo "configure: failed program was:" >&5
  4192. - cat conftest.$ac_ext >&5
  4193. - rm -rf conftest*
  4194. - aide_cv_typedef_u16=no
  4195. + echo "$as_me: failed program was:" >&5
  4196. +cat conftest.$ac_ext >&5
  4197. +aide_cv_typedef_u16=no
  4198. fi
  4199. -rm -f conftest*
  4200. +rm -f conftest.$ac_objext conftest.$ac_ext
  4201. fi
  4202. - echo "$ac_t""$aide_cv_typedef_u16" 1>&6
  4203. + echo "$as_me:$LINENO: result: $aide_cv_typedef_u16" >&5
  4204. +echo "${ECHO_T}$aide_cv_typedef_u16" >&6
  4205. if test "$aide_cv_typedef_u16" = yes; then
  4206. - cat >> confdefs.h <<\EOF
  4207. + cat >>confdefs.h <<\_ACEOF
  4208. #define HAVE_U16_TYPEDEF 1
  4209. -EOF
  4210. +_ACEOF
  4211. fi
  4212. -
  4213. - echo $ac_n "checking for u32 typedef""... $ac_c" 1>&6
  4214. -echo "configure:2044: checking for u32 typedef" >&5
  4215. - if eval "test \"`echo '$''{'aide_cv_typedef_u32'+set}'`\" = set"; then
  4216. - echo $ac_n "(cached) $ac_c" 1>&6
  4217. +
  4218. + echo "$as_me:$LINENO: checking for u32 typedef" >&5
  4219. +echo $ECHO_N "checking for u32 typedef... $ECHO_C" >&6
  4220. + if test "${aide_cv_typedef_u32+set}" = set; then
  4221. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4222. else
  4223. - cat > conftest.$ac_ext <<EOF
  4224. -#line 2049 "configure"
  4225. + cat >conftest.$ac_ext <<_ACEOF
  4226. +#line $LINENO "configure"
  4227. #include "confdefs.h"
  4228. #include <stdlib.h>
  4229. #include <sys/types.h>
  4230. -int main() {
  4231. +#ifdef F77_DUMMY_MAIN
  4232. +# ifdef __cplusplus
  4233. + extern "C"
  4234. +# endif
  4235. + int F77_DUMMY_MAIN() { return 1; }
  4236. +#endif
  4237. +int
  4238. +main ()
  4239. +{
  4240. #undef u32
  4241. int a = sizeof(u32);
  4242. -
  4243. -; return 0; }
  4244. -EOF
  4245. -if { (eval echo configure:2060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4246. - rm -rf conftest*
  4247. +
  4248. + ;
  4249. + return 0;
  4250. +}
  4251. +_ACEOF
  4252. +rm -f conftest.$ac_objext
  4253. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4254. + (eval $ac_compile) 2>&5
  4255. + ac_status=$?
  4256. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4257. + (exit $ac_status); } &&
  4258. + { ac_try='test -s conftest.$ac_objext'
  4259. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4260. + (eval $ac_try) 2>&5
  4261. + ac_status=$?
  4262. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4263. + (exit $ac_status); }; }; then
  4264. aide_cv_typedef_u32=yes
  4265. else
  4266. - echo "configure: failed program was:" >&5
  4267. - cat conftest.$ac_ext >&5
  4268. - rm -rf conftest*
  4269. - aide_cv_typedef_u32=no
  4270. + echo "$as_me: failed program was:" >&5
  4271. +cat conftest.$ac_ext >&5
  4272. +aide_cv_typedef_u32=no
  4273. fi
  4274. -rm -f conftest*
  4275. +rm -f conftest.$ac_objext conftest.$ac_ext
  4276. fi
  4277. - echo "$ac_t""$aide_cv_typedef_u32" 1>&6
  4278. + echo "$as_me:$LINENO: result: $aide_cv_typedef_u32" >&5
  4279. +echo "${ECHO_T}$aide_cv_typedef_u32" >&6
  4280. if test "$aide_cv_typedef_u32" = yes; then
  4281. - cat >> confdefs.h <<\EOF
  4282. + cat >>confdefs.h <<\_ACEOF
  4283. #define HAVE_U32_TYPEDEF 1
  4284. -EOF
  4285. +_ACEOF
  4286. fi
  4287. -
  4288. -echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
  4289. -echo "configure:2082: checking size of unsigned short" >&5
  4290. -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
  4291. - echo $ac_n "(cached) $ac_c" 1>&6
  4292. -else
  4293. - if test "$cross_compiling" = yes; then
  4294. - ac_cv_sizeof_unsigned_short=2
  4295. +
  4296. +ac_ext=c
  4297. +ac_cpp='$CPP $CPPFLAGS'
  4298. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4299. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4300. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4301. +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4302. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4303. +# On Suns, sometimes $CPP names a directory.
  4304. +if test -n "$CPP" && test -d "$CPP"; then
  4305. + CPP=
  4306. +fi
  4307. +if test -z "$CPP"; then
  4308. + if test "${ac_cv_prog_CPP+set}" = set; then
  4309. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4310. else
  4311. - cat > conftest.$ac_ext <<EOF
  4312. -#line 2090 "configure"
  4313. + # Double quotes because CPP needs to be expanded
  4314. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4315. + do
  4316. + ac_preproc_ok=false
  4317. +for ac_c_preproc_warn_flag in '' yes
  4318. +do
  4319. + # Use a header file that comes with gcc, so configuring glibc
  4320. + # with a fresh cross-compiler works.
  4321. + # On the NeXT, cc -E runs the code through the compiler's parser,
  4322. + # not just through cpp. "Syntax error" is here to catch this case.
  4323. + cat >conftest.$ac_ext <<_ACEOF
  4324. +#line $LINENO "configure"
  4325. #include "confdefs.h"
  4326. -#include <stdio.h>
  4327. -main()
  4328. -{
  4329. - FILE *f=fopen("conftestval", "w");
  4330. - if (!f) exit(1);
  4331. - fprintf(f, "%d\n", sizeof(unsigned short));
  4332. - exit(0);
  4333. -}
  4334. -EOF
  4335. -if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4336. -then
  4337. - ac_cv_sizeof_unsigned_short=`cat conftestval`
  4338. +#include <assert.h>
  4339. + Syntax error
  4340. +_ACEOF
  4341. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4342. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4343. + ac_status=$?
  4344. + egrep -v '^ *\+' conftest.er1 >conftest.err
  4345. + rm -f conftest.er1
  4346. + cat conftest.err >&5
  4347. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4348. + (exit $ac_status); } >/dev/null; then
  4349. + if test -s conftest.err; then
  4350. + ac_cpp_err=$ac_c_preproc_warn_flag
  4351. + else
  4352. + ac_cpp_err=
  4353. + fi
  4354. else
  4355. - echo "configure: failed program was:" >&5
  4356. - cat conftest.$ac_ext >&5
  4357. - rm -fr conftest*
  4358. - ac_cv_sizeof_unsigned_short=0
  4359. -fi
  4360. -rm -fr conftest*
  4361. + ac_cpp_err=yes
  4362. fi
  4363. -
  4364. +if test -z "$ac_cpp_err"; then
  4365. + :
  4366. +else
  4367. + echo "$as_me: failed program was:" >&5
  4368. + cat conftest.$ac_ext >&5
  4369. + # Broken: fails on valid input.
  4370. +continue
  4371. fi
  4372. -echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
  4373. -cat >> confdefs.h <<EOF
  4374. -#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  4375. -EOF
  4376. -
  4377. +rm -f conftest.err conftest.$ac_ext
  4378. -echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
  4379. -echo "configure:2121: checking size of unsigned int" >&5
  4380. -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
  4381. - echo $ac_n "(cached) $ac_c" 1>&6
  4382. -else
  4383. - if test "$cross_compiling" = yes; then
  4384. - ac_cv_sizeof_unsigned_int=4
  4385. + # OK, works on sane cases. Now check whether non-existent headers
  4386. + # can be detected and how.
  4387. + cat >conftest.$ac_ext <<_ACEOF
  4388. +#line $LINENO "configure"
  4389. +#include "confdefs.h"
  4390. +#include <ac_nonexistent.h>
  4391. +_ACEOF
  4392. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4393. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4394. + ac_status=$?
  4395. + egrep -v '^ *\+' conftest.er1 >conftest.err
  4396. + rm -f conftest.er1
  4397. + cat conftest.err >&5
  4398. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4399. + (exit $ac_status); } >/dev/null; then
  4400. + if test -s conftest.err; then
  4401. + ac_cpp_err=$ac_c_preproc_warn_flag
  4402. + else
  4403. + ac_cpp_err=
  4404. + fi
  4405. else
  4406. - cat > conftest.$ac_ext <<EOF
  4407. -#line 2129 "configure"
  4408. -#include "confdefs.h"
  4409. -#include <stdio.h>
  4410. -main()
  4411. -{
  4412. - FILE *f=fopen("conftestval", "w");
  4413. - if (!f) exit(1);
  4414. - fprintf(f, "%d\n", sizeof(unsigned int));
  4415. - exit(0);
  4416. -}
  4417. -EOF
  4418. -if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4419. -then
  4420. - ac_cv_sizeof_unsigned_int=`cat conftestval`
  4421. + ac_cpp_err=yes
  4422. +fi
  4423. +if test -z "$ac_cpp_err"; then
  4424. + # Broken: success on invalid input.
  4425. +continue
  4426. else
  4427. - echo "configure: failed program was:" >&5
  4428. + echo "$as_me: failed program was:" >&5
  4429. cat conftest.$ac_ext >&5
  4430. - rm -fr conftest*
  4431. - ac_cv_sizeof_unsigned_int=0
  4432. -fi
  4433. -rm -fr conftest*
  4434. + # Passes both tests.
  4435. +ac_preproc_ok=:
  4436. +break
  4437. fi
  4438. +rm -f conftest.err conftest.$ac_ext
  4439. +done
  4440. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4441. +rm -f conftest.err conftest.$ac_ext
  4442. +if $ac_preproc_ok; then
  4443. + break
  4444. fi
  4445. -echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
  4446. -cat >> confdefs.h <<EOF
  4447. -#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  4448. -EOF
  4449. + done
  4450. + ac_cv_prog_CPP=$CPP
  4451. -echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
  4452. -echo "configure:2160: checking size of unsigned long" >&5
  4453. -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
  4454. - echo $ac_n "(cached) $ac_c" 1>&6
  4455. -else
  4456. - if test "$cross_compiling" = yes; then
  4457. - ac_cv_sizeof_unsigned_long=4
  4458. +fi
  4459. + CPP=$ac_cv_prog_CPP
  4460. else
  4461. - cat > conftest.$ac_ext <<EOF
  4462. -#line 2168 "configure"
  4463. + ac_cv_prog_CPP=$CPP
  4464. +fi
  4465. +echo "$as_me:$LINENO: result: $CPP" >&5
  4466. +echo "${ECHO_T}$CPP" >&6
  4467. +ac_preproc_ok=false
  4468. +for ac_c_preproc_warn_flag in '' yes
  4469. +do
  4470. + # Use a header file that comes with gcc, so configuring glibc
  4471. + # with a fresh cross-compiler works.
  4472. + # On the NeXT, cc -E runs the code through the compiler's parser,
  4473. + # not just through cpp. "Syntax error" is here to catch this case.
  4474. + cat >conftest.$ac_ext <<_ACEOF
  4475. +#line $LINENO "configure"
  4476. #include "confdefs.h"
  4477. -#include <stdio.h>
  4478. -main()
  4479. -{
  4480. - FILE *f=fopen("conftestval", "w");
  4481. - if (!f) exit(1);
  4482. - fprintf(f, "%d\n", sizeof(unsigned long));
  4483. - exit(0);
  4484. -}
  4485. -EOF
  4486. -if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4487. -then
  4488. - ac_cv_sizeof_unsigned_long=`cat conftestval`
  4489. +#include <assert.h>
  4490. + Syntax error
  4491. +_ACEOF
  4492. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4493. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4494. + ac_status=$?
  4495. + egrep -v '^ *\+' conftest.er1 >conftest.err
  4496. + rm -f conftest.er1
  4497. + cat conftest.err >&5
  4498. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4499. + (exit $ac_status); } >/dev/null; then
  4500. + if test -s conftest.err; then
  4501. + ac_cpp_err=$ac_c_preproc_warn_flag
  4502. + else
  4503. + ac_cpp_err=
  4504. + fi
  4505. else
  4506. - echo "configure: failed program was:" >&5
  4507. + ac_cpp_err=yes
  4508. +fi
  4509. +if test -z "$ac_cpp_err"; then
  4510. + :
  4511. +else
  4512. + echo "$as_me: failed program was:" >&5
  4513. cat conftest.$ac_ext >&5
  4514. - rm -fr conftest*
  4515. - ac_cv_sizeof_unsigned_long=0
  4516. + # Broken: fails on valid input.
  4517. +continue
  4518. fi
  4519. -rm -fr conftest*
  4520. +rm -f conftest.err conftest.$ac_ext
  4521. +
  4522. + # OK, works on sane cases. Now check whether non-existent headers
  4523. + # can be detected and how.
  4524. + cat >conftest.$ac_ext <<_ACEOF
  4525. +#line $LINENO "configure"
  4526. +#include "confdefs.h"
  4527. +#include <ac_nonexistent.h>
  4528. +_ACEOF
  4529. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4530. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4531. + ac_status=$?
  4532. + egrep -v '^ *\+' conftest.er1 >conftest.err
  4533. + rm -f conftest.er1
  4534. + cat conftest.err >&5
  4535. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4536. + (exit $ac_status); } >/dev/null; then
  4537. + if test -s conftest.err; then
  4538. + ac_cpp_err=$ac_c_preproc_warn_flag
  4539. + else
  4540. + ac_cpp_err=
  4541. + fi
  4542. +else
  4543. + ac_cpp_err=yes
  4544. +fi
  4545. +if test -z "$ac_cpp_err"; then
  4546. + # Broken: success on invalid input.
  4547. +continue
  4548. +else
  4549. + echo "$as_me: failed program was:" >&5
  4550. + cat conftest.$ac_ext >&5
  4551. + # Passes both tests.
  4552. +ac_preproc_ok=:
  4553. +break
  4554. fi
  4555. +rm -f conftest.err conftest.$ac_ext
  4556. +done
  4557. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4558. +rm -f conftest.err conftest.$ac_ext
  4559. +if $ac_preproc_ok; then
  4560. + :
  4561. +else
  4562. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
  4563. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
  4564. + { (exit 1); exit 1; }; }
  4565. fi
  4566. -echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
  4567. -cat >> confdefs.h <<EOF
  4568. -#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  4569. -EOF
  4570. +ac_ext=c
  4571. +ac_cpp='$CPP $CPPFLAGS'
  4572. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4573. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4574. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4575. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  4576. -echo "configure:2200: checking for ANSI C header files" >&5
  4577. -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  4578. - echo $ac_n "(cached) $ac_c" 1>&6
  4579. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4580. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4581. +if test "${ac_cv_header_stdc+set}" = set; then
  4582. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4583. else
  4584. - cat > conftest.$ac_ext <<EOF
  4585. -#line 2205 "configure"
  4586. + cat >conftest.$ac_ext <<_ACEOF
  4587. +#line $LINENO "configure"
  4588. #include "confdefs.h"
  4589. #include <stdlib.h>
  4590. #include <stdarg.h>
  4591. #include <string.h>
  4592. #include <float.h>
  4593. -EOF
  4594. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4595. -{ (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4596. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4597. -if test -z "$ac_err"; then
  4598. - rm -rf conftest*
  4599. +
  4600. +_ACEOF
  4601. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4602. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4603. + ac_status=$?
  4604. + egrep -v '^ *\+' conftest.er1 >conftest.err
  4605. + rm -f conftest.er1
  4606. + cat conftest.err >&5
  4607. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4608. + (exit $ac_status); } >/dev/null; then
  4609. + if test -s conftest.err; then
  4610. + ac_cpp_err=$ac_c_preproc_warn_flag
  4611. + else
  4612. + ac_cpp_err=
  4613. + fi
  4614. +else
  4615. + ac_cpp_err=yes
  4616. +fi
  4617. +if test -z "$ac_cpp_err"; then
  4618. ac_cv_header_stdc=yes
  4619. else
  4620. - echo "$ac_err" >&5
  4621. - echo "configure: failed program was:" >&5
  4622. + echo "$as_me: failed program was:" >&5
  4623. cat conftest.$ac_ext >&5
  4624. - rm -rf conftest*
  4625. ac_cv_header_stdc=no
  4626. fi
  4627. -rm -f conftest*
  4628. +rm -f conftest.err conftest.$ac_ext
  4629. if test $ac_cv_header_stdc = yes; then
  4630. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4631. -cat > conftest.$ac_ext <<EOF
  4632. -#line 2230 "configure"
  4633. + cat >conftest.$ac_ext <<_ACEOF
  4634. +#line $LINENO "configure"
  4635. #include "confdefs.h"
  4636. #include <string.h>
  4637. -EOF
  4638. +
  4639. +_ACEOF
  4640. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4641. egrep "memchr" >/dev/null 2>&1; then
  4642. :
  4643. else
  4644. - rm -rf conftest*
  4645. ac_cv_header_stdc=no
  4646. fi
  4647. rm -f conftest*
  4648. @@ -2243,16 +3853,16 @@
  4649. if test $ac_cv_header_stdc = yes; then
  4650. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4651. -cat > conftest.$ac_ext <<EOF
  4652. -#line 2248 "configure"
  4653. + cat >conftest.$ac_ext <<_ACEOF
  4654. +#line $LINENO "configure"
  4655. #include "confdefs.h"
  4656. #include <stdlib.h>
  4657. -EOF
  4658. +
  4659. +_ACEOF
  4660. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4661. egrep "free" >/dev/null 2>&1; then
  4662. :
  4663. else
  4664. - rm -rf conftest*
  4665. ac_cv_header_stdc=no
  4666. fi
  4667. rm -f conftest*
  4668. @@ -2261,367 +3871,1836 @@
  4669. if test $ac_cv_header_stdc = yes; then
  4670. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4671. -if test "$cross_compiling" = yes; then
  4672. + if test "$cross_compiling" = yes; then
  4673. :
  4674. else
  4675. - cat > conftest.$ac_ext <<EOF
  4676. -#line 2269 "configure"
  4677. + cat >conftest.$ac_ext <<_ACEOF
  4678. +#line $LINENO "configure"
  4679. #include "confdefs.h"
  4680. #include <ctype.h>
  4681. -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4682. -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4683. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4684. -int main () { int i; for (i = 0; i < 256; i++)
  4685. -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  4686. -exit (0); }
  4687. +#if ((' ' & 0x0FF) == 0x020)
  4688. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4689. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4690. +#else
  4691. +# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  4692. + || ('j' <= (c) && (c) <= 'r') \
  4693. + || ('s' <= (c) && (c) <= 'z'))
  4694. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4695. +#endif
  4696. -EOF
  4697. -if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4698. -then
  4699. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4700. +int
  4701. +main ()
  4702. +{
  4703. + int i;
  4704. + for (i = 0; i < 256; i++)
  4705. + if (XOR (islower (i), ISLOWER (i))
  4706. + || toupper (i) != TOUPPER (i))
  4707. + exit(2);
  4708. + exit (0);
  4709. +}
  4710. +_ACEOF
  4711. +rm -f conftest$ac_exeext
  4712. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4713. + (eval $ac_link) 2>&5
  4714. + ac_status=$?
  4715. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4716. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4717. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4718. + (eval $ac_try) 2>&5
  4719. + ac_status=$?
  4720. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4721. + (exit $ac_status); }; }; then
  4722. :
  4723. else
  4724. - echo "configure: failed program was:" >&5
  4725. - cat conftest.$ac_ext >&5
  4726. - rm -fr conftest*
  4727. - ac_cv_header_stdc=no
  4728. + echo "$as_me: program exited with status $ac_status" >&5
  4729. +echo "$as_me: failed program was:" >&5
  4730. +cat conftest.$ac_ext >&5
  4731. +( exit $ac_status )
  4732. +ac_cv_header_stdc=no
  4733. fi
  4734. -rm -fr conftest*
  4735. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4736. fi
  4737. -
  4738. fi
  4739. fi
  4740. -
  4741. -echo "$ac_t""$ac_cv_header_stdc" 1>&6
  4742. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4743. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4744. if test $ac_cv_header_stdc = yes; then
  4745. - cat >> confdefs.h <<\EOF
  4746. +
  4747. +cat >>confdefs.h <<\_ACEOF
  4748. #define STDC_HEADERS 1
  4749. -EOF
  4750. +_ACEOF
  4751. fi
  4752. -for ac_func in readdir readdir_r stricmp ustat
  4753. -do
  4754. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4755. -echo "configure:2306: checking for $ac_func" >&5
  4756. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4757. - echo $ac_n "(cached) $ac_c" 1>&6
  4758. -else
  4759. - cat > conftest.$ac_ext <<EOF
  4760. -#line 2311 "configure"
  4761. -#include "confdefs.h"
  4762. -/* System header to define __stub macros and hopefully few prototypes,
  4763. - which can conflict with char $ac_func(); below. */
  4764. -#include <assert.h>
  4765. -/* Override any gcc2 internal prototype to avoid an error. */
  4766. -/* We use char because int might match the return type of a gcc2
  4767. - builtin and then its argument prototype would still apply. */
  4768. -char $ac_func();
  4769. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4770. -int main() {
  4771. -/* The GNU C library defines this for functions which it implements
  4772. - to always fail with ENOSYS. Some functions are actually named
  4773. - something starting with __ and the normal name is an alias. */
  4774. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4775. -choke me
  4776. -#else
  4777. -$ac_func();
  4778. -#endif
  4779. -; return 0; }
  4780. -EOF
  4781. -if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4782. - rm -rf conftest*
  4783. - eval "ac_cv_func_$ac_func=yes"
  4784. -else
  4785. - echo "configure: failed program was:" >&5
  4786. - cat conftest.$ac_ext >&5
  4787. - rm -rf conftest*
  4788. - eval "ac_cv_func_$ac_func=no"
  4789. -fi
  4790. -rm -f conftest*
  4791. -fi
  4792. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4793. - echo "$ac_t""yes" 1>&6
  4794. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4795. - cat >> confdefs.h <<EOF
  4796. -#define $ac_tr_func 1
  4797. -EOF
  4798. -
  4799. -else
  4800. - echo "$ac_t""no" 1>&6
  4801. -fi
  4802. -done
  4803. -# Check whether --with-mmap or --without-mmap was given.
  4804. -if test "${with_mmap+set}" = set; then
  4805. - withval="$with_mmap"
  4806. - if test "x$withval" = "xyes"; then
  4807. - for ac_func in mmap
  4808. -do
  4809. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4810. -echo "configure:2365: checking for $ac_func" >&5
  4811. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4812. - echo $ac_n "(cached) $ac_c" 1>&6
  4813. -else
  4814. - cat > conftest.$ac_ext <<EOF
  4815. -#line 2370 "configure"
  4816. -#include "confdefs.h"
  4817. -/* System header to define __stub macros and hopefully few prototypes,
  4818. - which can conflict with char $ac_func(); below. */
  4819. -#include <assert.h>
  4820. -/* Override any gcc2 internal prototype to avoid an error. */
  4821. -/* We use char because int might match the return type of a gcc2
  4822. - builtin and then its argument prototype would still apply. */
  4823. -char $ac_func();
  4824. -int main() {
  4825. -/* The GNU C library defines this for functions which it implements
  4826. - to always fail with ENOSYS. Some functions are actually named
  4827. - something starting with __ and the normal name is an alias. */
  4828. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4829. -choke me
  4830. -#else
  4831. -$ac_func();
  4832. -#endif
  4833. -; return 0; }
  4834. -EOF
  4835. -if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4836. - rm -rf conftest*
  4837. - eval "ac_cv_func_$ac_func=yes"
  4838. -else
  4839. - echo "configure: failed program was:" >&5
  4840. - cat conftest.$ac_ext >&5
  4841. - rm -rf conftest*
  4842. - eval "ac_cv_func_$ac_func=no"
  4843. -fi
  4844. -rm -f conftest*
  4845. -fi
  4846. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4847. - echo "$ac_t""yes" 1>&6
  4848. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4849. - cat >> confdefs.h <<EOF
  4850. -#define $ac_tr_func 1
  4851. -EOF
  4852. -
  4853. -else
  4854. - echo "$ac_t""no" 1>&6
  4855. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4856. + inttypes.h stdint.h unistd.h
  4857. +do
  4858. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4859. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  4860. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4861. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4862. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4863. +else
  4864. + cat >conftest.$ac_ext <<_ACEOF
  4865. +#line $LINENO "configure"
  4866. +#include "confdefs.h"
  4867. +$ac_includes_default
  4868. +
  4869. +#include <$ac_header>
  4870. +_ACEOF
  4871. +rm -f conftest.$ac_objext
  4872. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4873. + (eval $ac_compile) 2>&5
  4874. + ac_status=$?
  4875. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4876. + (exit $ac_status); } &&
  4877. + { ac_try='test -s conftest.$ac_objext'
  4878. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4879. + (eval $ac_try) 2>&5
  4880. + ac_status=$?
  4881. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4882. + (exit $ac_status); }; }; then
  4883. + eval "$as_ac_Header=yes"
  4884. +else
  4885. + echo "$as_me: failed program was:" >&5
  4886. +cat conftest.$ac_ext >&5
  4887. +eval "$as_ac_Header=no"
  4888. +fi
  4889. +rm -f conftest.$ac_objext conftest.$ac_ext
  4890. +fi
  4891. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4892. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4893. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4894. + cat >>confdefs.h <<_ACEOF
  4895. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4896. +_ACEOF
  4897. +
  4898. fi
  4899. +
  4900. done
  4901. - fi
  4902. -
  4903. +
  4904. +echo "$as_me:$LINENO: checking for unsigned short" >&5
  4905. +echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
  4906. +if test "${ac_cv_type_unsigned_short+set}" = set; then
  4907. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4908. +else
  4909. + cat >conftest.$ac_ext <<_ACEOF
  4910. +#line $LINENO "configure"
  4911. +#include "confdefs.h"
  4912. +$ac_includes_default
  4913. +#ifdef F77_DUMMY_MAIN
  4914. +# ifdef __cplusplus
  4915. + extern "C"
  4916. +# endif
  4917. + int F77_DUMMY_MAIN() { return 1; }
  4918. +#endif
  4919. +int
  4920. +main ()
  4921. +{
  4922. +if ((unsigned short *) 0)
  4923. + return 0;
  4924. +if (sizeof (unsigned short))
  4925. + return 0;
  4926. + ;
  4927. + return 0;
  4928. +}
  4929. +_ACEOF
  4930. +rm -f conftest.$ac_objext
  4931. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4932. + (eval $ac_compile) 2>&5
  4933. + ac_status=$?
  4934. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4935. + (exit $ac_status); } &&
  4936. + { ac_try='test -s conftest.$ac_objext'
  4937. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4938. + (eval $ac_try) 2>&5
  4939. + ac_status=$?
  4940. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4941. + (exit $ac_status); }; }; then
  4942. + ac_cv_type_unsigned_short=yes
  4943. +else
  4944. + echo "$as_me: failed program was:" >&5
  4945. +cat conftest.$ac_ext >&5
  4946. +ac_cv_type_unsigned_short=no
  4947. +fi
  4948. +rm -f conftest.$ac_objext conftest.$ac_ext
  4949. +fi
  4950. +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
  4951. +echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
  4952. +
  4953. +echo "$as_me:$LINENO: checking size of unsigned short" >&5
  4954. +echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
  4955. +if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
  4956. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4957. +else
  4958. + if test "$ac_cv_type_unsigned_short" = yes; then
  4959. + # The cast to unsigned long works around a bug in the HP C Compiler
  4960. + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4961. + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4962. + # This bug is HP SR number 8606223364.
  4963. + if test "$cross_compiling" = yes; then
  4964. + # Depending upon the size, compute the lo and hi bounds.
  4965. +cat >conftest.$ac_ext <<_ACEOF
  4966. +#line $LINENO "configure"
  4967. +#include "confdefs.h"
  4968. +$ac_includes_default
  4969. +#ifdef F77_DUMMY_MAIN
  4970. +# ifdef __cplusplus
  4971. + extern "C"
  4972. +# endif
  4973. + int F77_DUMMY_MAIN() { return 1; }
  4974. +#endif
  4975. +int
  4976. +main ()
  4977. +{
  4978. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
  4979. +test_array [0] = 0
  4980. +
  4981. + ;
  4982. + return 0;
  4983. +}
  4984. +_ACEOF
  4985. +rm -f conftest.$ac_objext
  4986. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4987. + (eval $ac_compile) 2>&5
  4988. + ac_status=$?
  4989. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4990. + (exit $ac_status); } &&
  4991. + { ac_try='test -s conftest.$ac_objext'
  4992. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4993. + (eval $ac_try) 2>&5
  4994. + ac_status=$?
  4995. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4996. + (exit $ac_status); }; }; then
  4997. + ac_lo=0 ac_mid=0
  4998. + while :; do
  4999. + cat >conftest.$ac_ext <<_ACEOF
  5000. +#line $LINENO "configure"
  5001. +#include "confdefs.h"
  5002. +$ac_includes_default
  5003. +#ifdef F77_DUMMY_MAIN
  5004. +# ifdef __cplusplus
  5005. + extern "C"
  5006. +# endif
  5007. + int F77_DUMMY_MAIN() { return 1; }
  5008. +#endif
  5009. +int
  5010. +main ()
  5011. +{
  5012. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
  5013. +test_array [0] = 0
  5014. +
  5015. + ;
  5016. + return 0;
  5017. +}
  5018. +_ACEOF
  5019. +rm -f conftest.$ac_objext
  5020. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5021. + (eval $ac_compile) 2>&5
  5022. + ac_status=$?
  5023. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5024. + (exit $ac_status); } &&
  5025. + { ac_try='test -s conftest.$ac_objext'
  5026. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5027. + (eval $ac_try) 2>&5
  5028. + ac_status=$?
  5029. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5030. + (exit $ac_status); }; }; then
  5031. + ac_hi=$ac_mid; break
  5032. +else
  5033. + echo "$as_me: failed program was:" >&5
  5034. +cat conftest.$ac_ext >&5
  5035. +ac_lo=`expr $ac_mid + 1`
  5036. + if test $ac_lo -le $ac_mid; then
  5037. + ac_lo= ac_hi=
  5038. + break
  5039. + fi
  5040. + ac_mid=`expr 2 '*' $ac_mid + 1`
  5041. +fi
  5042. +rm -f conftest.$ac_objext conftest.$ac_ext
  5043. + done
  5044. +else
  5045. + echo "$as_me: failed program was:" >&5
  5046. +cat conftest.$ac_ext >&5
  5047. +cat >conftest.$ac_ext <<_ACEOF
  5048. +#line $LINENO "configure"
  5049. +#include "confdefs.h"
  5050. +$ac_includes_default
  5051. +#ifdef F77_DUMMY_MAIN
  5052. +# ifdef __cplusplus
  5053. + extern "C"
  5054. +# endif
  5055. + int F77_DUMMY_MAIN() { return 1; }
  5056. +#endif
  5057. +int
  5058. +main ()
  5059. +{
  5060. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
  5061. +test_array [0] = 0
  5062. +
  5063. + ;
  5064. + return 0;
  5065. +}
  5066. +_ACEOF
  5067. +rm -f conftest.$ac_objext
  5068. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5069. + (eval $ac_compile) 2>&5
  5070. + ac_status=$?
  5071. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5072. + (exit $ac_status); } &&
  5073. + { ac_try='test -s conftest.$ac_objext'
  5074. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5075. + (eval $ac_try) 2>&5
  5076. + ac_status=$?
  5077. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5078. + (exit $ac_status); }; }; then
  5079. + ac_hi=-1 ac_mid=-1
  5080. + while :; do
  5081. + cat >conftest.$ac_ext <<_ACEOF
  5082. +#line $LINENO "configure"
  5083. +#include "confdefs.h"
  5084. +$ac_includes_default
  5085. +#ifdef F77_DUMMY_MAIN
  5086. +# ifdef __cplusplus
  5087. + extern "C"
  5088. +# endif
  5089. + int F77_DUMMY_MAIN() { return 1; }
  5090. +#endif
  5091. +int
  5092. +main ()
  5093. +{
  5094. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
  5095. +test_array [0] = 0
  5096. +
  5097. + ;
  5098. + return 0;
  5099. +}
  5100. +_ACEOF
  5101. +rm -f conftest.$ac_objext
  5102. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5103. + (eval $ac_compile) 2>&5
  5104. + ac_status=$?
  5105. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5106. + (exit $ac_status); } &&
  5107. + { ac_try='test -s conftest.$ac_objext'
  5108. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5109. + (eval $ac_try) 2>&5
  5110. + ac_status=$?
  5111. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5112. + (exit $ac_status); }; }; then
  5113. + ac_lo=$ac_mid; break
  5114. +else
  5115. + echo "$as_me: failed program was:" >&5
  5116. +cat conftest.$ac_ext >&5
  5117. +ac_hi=`expr '(' $ac_mid ')' - 1`
  5118. + if test $ac_mid -le $ac_hi; then
  5119. + ac_lo= ac_hi=
  5120. + break
  5121. + fi
  5122. + ac_mid=`expr 2 '*' $ac_mid`
  5123. +fi
  5124. +rm -f conftest.$ac_objext conftest.$ac_ext
  5125. + done
  5126. +else
  5127. + echo "$as_me: failed program was:" >&5
  5128. +cat conftest.$ac_ext >&5
  5129. +ac_lo= ac_hi=
  5130. +fi
  5131. +rm -f conftest.$ac_objext conftest.$ac_ext
  5132. +fi
  5133. +rm -f conftest.$ac_objext conftest.$ac_ext
  5134. +# Binary search between lo and hi bounds.
  5135. +while test "x$ac_lo" != "x$ac_hi"; do
  5136. + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5137. + cat >conftest.$ac_ext <<_ACEOF
  5138. +#line $LINENO "configure"
  5139. +#include "confdefs.h"
  5140. +$ac_includes_default
  5141. +#ifdef F77_DUMMY_MAIN
  5142. +# ifdef __cplusplus
  5143. + extern "C"
  5144. +# endif
  5145. + int F77_DUMMY_MAIN() { return 1; }
  5146. +#endif
  5147. +int
  5148. +main ()
  5149. +{
  5150. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
  5151. +test_array [0] = 0
  5152. +
  5153. + ;
  5154. + return 0;
  5155. +}
  5156. +_ACEOF
  5157. +rm -f conftest.$ac_objext
  5158. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5159. + (eval $ac_compile) 2>&5
  5160. + ac_status=$?
  5161. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5162. + (exit $ac_status); } &&
  5163. + { ac_try='test -s conftest.$ac_objext'
  5164. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5165. + (eval $ac_try) 2>&5
  5166. + ac_status=$?
  5167. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5168. + (exit $ac_status); }; }; then
  5169. + ac_hi=$ac_mid
  5170. +else
  5171. + echo "$as_me: failed program was:" >&5
  5172. +cat conftest.$ac_ext >&5
  5173. +ac_lo=`expr '(' $ac_mid ')' + 1`
  5174. +fi
  5175. +rm -f conftest.$ac_objext conftest.$ac_ext
  5176. +done
  5177. +case $ac_lo in
  5178. +?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
  5179. +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77" >&5
  5180. +echo "$as_me: error: cannot compute sizeof (unsigned short), 77" >&2;}
  5181. + { (exit 1); exit 1; }; } ;;
  5182. +esac
  5183. +else
  5184. + if test "$cross_compiling" = yes; then
  5185. + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  5186. +echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  5187. + { (exit 1); exit 1; }; }
  5188. +else
  5189. + cat >conftest.$ac_ext <<_ACEOF
  5190. +#line $LINENO "configure"
  5191. +#include "confdefs.h"
  5192. +$ac_includes_default
  5193. +long longval () { return (long) (sizeof (unsigned short)); }
  5194. +unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
  5195. +#include <stdio.h>
  5196. +#include <stdlib.h>
  5197. +#ifdef F77_DUMMY_MAIN
  5198. +# ifdef __cplusplus
  5199. + extern "C"
  5200. +# endif
  5201. + int F77_DUMMY_MAIN() { return 1; }
  5202. +#endif
  5203. +int
  5204. +main ()
  5205. +{
  5206. +
  5207. + FILE *f = fopen ("conftest.val", "w");
  5208. + if (! f)
  5209. + exit (1);
  5210. + if (((long) (sizeof (unsigned short))) < 0)
  5211. + {
  5212. + long i = longval ();
  5213. + if (i != ((long) (sizeof (unsigned short))))
  5214. + exit (1);
  5215. + fprintf (f, "%ld\n", i);
  5216. + }
  5217. + else
  5218. + {
  5219. + unsigned long i = ulongval ();
  5220. + if (i != ((long) (sizeof (unsigned short))))
  5221. + exit (1);
  5222. + fprintf (f, "%lu\n", i);
  5223. + }
  5224. + exit (ferror (f) || fclose (f) != 0);
  5225. +
  5226. + ;
  5227. + return 0;
  5228. +}
  5229. +_ACEOF
  5230. +rm -f conftest$ac_exeext
  5231. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5232. + (eval $ac_link) 2>&5
  5233. + ac_status=$?
  5234. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5235. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5236. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5237. + (eval $ac_try) 2>&5
  5238. + ac_status=$?
  5239. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5240. + (exit $ac_status); }; }; then
  5241. + ac_cv_sizeof_unsigned_short=`cat conftest.val`
  5242. +else
  5243. + echo "$as_me: program exited with status $ac_status" >&5
  5244. +echo "$as_me: failed program was:" >&5
  5245. +cat conftest.$ac_ext >&5
  5246. +( exit $ac_status )
  5247. +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77" >&5
  5248. +echo "$as_me: error: cannot compute sizeof (unsigned short), 77" >&2;}
  5249. + { (exit 1); exit 1; }; }
  5250. +fi
  5251. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5252. +fi
  5253. +fi
  5254. +rm -f conftest.val
  5255. +else
  5256. + ac_cv_sizeof_unsigned_short=0
  5257. +fi
  5258. +fi
  5259. +echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
  5260. +echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
  5261. +cat >>confdefs.h <<_ACEOF
  5262. +#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  5263. +_ACEOF
  5264. +
  5265. +
  5266. +echo "$as_me:$LINENO: checking for unsigned int" >&5
  5267. +echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
  5268. +if test "${ac_cv_type_unsigned_int+set}" = set; then
  5269. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5270. +else
  5271. + cat >conftest.$ac_ext <<_ACEOF
  5272. +#line $LINENO "configure"
  5273. +#include "confdefs.h"
  5274. +$ac_includes_default
  5275. +#ifdef F77_DUMMY_MAIN
  5276. +# ifdef __cplusplus
  5277. + extern "C"
  5278. +# endif
  5279. + int F77_DUMMY_MAIN() { return 1; }
  5280. +#endif
  5281. +int
  5282. +main ()
  5283. +{
  5284. +if ((unsigned int *) 0)
  5285. + return 0;
  5286. +if (sizeof (unsigned int))
  5287. + return 0;
  5288. + ;
  5289. + return 0;
  5290. +}
  5291. +_ACEOF
  5292. +rm -f conftest.$ac_objext
  5293. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5294. + (eval $ac_compile) 2>&5
  5295. + ac_status=$?
  5296. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5297. + (exit $ac_status); } &&
  5298. + { ac_try='test -s conftest.$ac_objext'
  5299. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5300. + (eval $ac_try) 2>&5
  5301. + ac_status=$?
  5302. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5303. + (exit $ac_status); }; }; then
  5304. + ac_cv_type_unsigned_int=yes
  5305. +else
  5306. + echo "$as_me: failed program was:" >&5
  5307. +cat conftest.$ac_ext >&5
  5308. +ac_cv_type_unsigned_int=no
  5309. +fi
  5310. +rm -f conftest.$ac_objext conftest.$ac_ext
  5311. +fi
  5312. +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
  5313. +echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
  5314. +
  5315. +echo "$as_me:$LINENO: checking size of unsigned int" >&5
  5316. +echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
  5317. +if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
  5318. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5319. +else
  5320. + if test "$ac_cv_type_unsigned_int" = yes; then
  5321. + # The cast to unsigned long works around a bug in the HP C Compiler
  5322. + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5323. + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5324. + # This bug is HP SR number 8606223364.
  5325. + if test "$cross_compiling" = yes; then
  5326. + # Depending upon the size, compute the lo and hi bounds.
  5327. +cat >conftest.$ac_ext <<_ACEOF
  5328. +#line $LINENO "configure"
  5329. +#include "confdefs.h"
  5330. +$ac_includes_default
  5331. +#ifdef F77_DUMMY_MAIN
  5332. +# ifdef __cplusplus
  5333. + extern "C"
  5334. +# endif
  5335. + int F77_DUMMY_MAIN() { return 1; }
  5336. +#endif
  5337. +int
  5338. +main ()
  5339. +{
  5340. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
  5341. +test_array [0] = 0
  5342. +
  5343. + ;
  5344. + return 0;
  5345. +}
  5346. +_ACEOF
  5347. +rm -f conftest.$ac_objext
  5348. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5349. + (eval $ac_compile) 2>&5
  5350. + ac_status=$?
  5351. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5352. + (exit $ac_status); } &&
  5353. + { ac_try='test -s conftest.$ac_objext'
  5354. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5355. + (eval $ac_try) 2>&5
  5356. + ac_status=$?
  5357. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5358. + (exit $ac_status); }; }; then
  5359. + ac_lo=0 ac_mid=0
  5360. + while :; do
  5361. + cat >conftest.$ac_ext <<_ACEOF
  5362. +#line $LINENO "configure"
  5363. +#include "confdefs.h"
  5364. +$ac_includes_default
  5365. +#ifdef F77_DUMMY_MAIN
  5366. +# ifdef __cplusplus
  5367. + extern "C"
  5368. +# endif
  5369. + int F77_DUMMY_MAIN() { return 1; }
  5370. +#endif
  5371. +int
  5372. +main ()
  5373. +{
  5374. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  5375. +test_array [0] = 0
  5376. +
  5377. + ;
  5378. + return 0;
  5379. +}
  5380. +_ACEOF
  5381. +rm -f conftest.$ac_objext
  5382. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5383. + (eval $ac_compile) 2>&5
  5384. + ac_status=$?
  5385. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5386. + (exit $ac_status); } &&
  5387. + { ac_try='test -s conftest.$ac_objext'
  5388. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5389. + (eval $ac_try) 2>&5
  5390. + ac_status=$?
  5391. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5392. + (exit $ac_status); }; }; then
  5393. + ac_hi=$ac_mid; break
  5394. +else
  5395. + echo "$as_me: failed program was:" >&5
  5396. +cat conftest.$ac_ext >&5
  5397. +ac_lo=`expr $ac_mid + 1`
  5398. + if test $ac_lo -le $ac_mid; then
  5399. + ac_lo= ac_hi=
  5400. + break
  5401. + fi
  5402. + ac_mid=`expr 2 '*' $ac_mid + 1`
  5403. +fi
  5404. +rm -f conftest.$ac_objext conftest.$ac_ext
  5405. + done
  5406. else
  5407. - for ac_func in mmap
  5408. + echo "$as_me: failed program was:" >&5
  5409. +cat conftest.$ac_ext >&5
  5410. +cat >conftest.$ac_ext <<_ACEOF
  5411. +#line $LINENO "configure"
  5412. +#include "confdefs.h"
  5413. +$ac_includes_default
  5414. +#ifdef F77_DUMMY_MAIN
  5415. +# ifdef __cplusplus
  5416. + extern "C"
  5417. +# endif
  5418. + int F77_DUMMY_MAIN() { return 1; }
  5419. +#endif
  5420. +int
  5421. +main ()
  5422. +{
  5423. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
  5424. +test_array [0] = 0
  5425. +
  5426. + ;
  5427. + return 0;
  5428. +}
  5429. +_ACEOF
  5430. +rm -f conftest.$ac_objext
  5431. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5432. + (eval $ac_compile) 2>&5
  5433. + ac_status=$?
  5434. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5435. + (exit $ac_status); } &&
  5436. + { ac_try='test -s conftest.$ac_objext'
  5437. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5438. + (eval $ac_try) 2>&5
  5439. + ac_status=$?
  5440. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5441. + (exit $ac_status); }; }; then
  5442. + ac_hi=-1 ac_mid=-1
  5443. + while :; do
  5444. + cat >conftest.$ac_ext <<_ACEOF
  5445. +#line $LINENO "configure"
  5446. +#include "confdefs.h"
  5447. +$ac_includes_default
  5448. +#ifdef F77_DUMMY_MAIN
  5449. +# ifdef __cplusplus
  5450. + extern "C"
  5451. +# endif
  5452. + int F77_DUMMY_MAIN() { return 1; }
  5453. +#endif
  5454. +int
  5455. +main ()
  5456. +{
  5457. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
  5458. +test_array [0] = 0
  5459. +
  5460. + ;
  5461. + return 0;
  5462. +}
  5463. +_ACEOF
  5464. +rm -f conftest.$ac_objext
  5465. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5466. + (eval $ac_compile) 2>&5
  5467. + ac_status=$?
  5468. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5469. + (exit $ac_status); } &&
  5470. + { ac_try='test -s conftest.$ac_objext'
  5471. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5472. + (eval $ac_try) 2>&5
  5473. + ac_status=$?
  5474. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5475. + (exit $ac_status); }; }; then
  5476. + ac_lo=$ac_mid; break
  5477. +else
  5478. + echo "$as_me: failed program was:" >&5
  5479. +cat conftest.$ac_ext >&5
  5480. +ac_hi=`expr '(' $ac_mid ')' - 1`
  5481. + if test $ac_mid -le $ac_hi; then
  5482. + ac_lo= ac_hi=
  5483. + break
  5484. + fi
  5485. + ac_mid=`expr 2 '*' $ac_mid`
  5486. +fi
  5487. +rm -f conftest.$ac_objext conftest.$ac_ext
  5488. + done
  5489. +else
  5490. + echo "$as_me: failed program was:" >&5
  5491. +cat conftest.$ac_ext >&5
  5492. +ac_lo= ac_hi=
  5493. +fi
  5494. +rm -f conftest.$ac_objext conftest.$ac_ext
  5495. +fi
  5496. +rm -f conftest.$ac_objext conftest.$ac_ext
  5497. +# Binary search between lo and hi bounds.
  5498. +while test "x$ac_lo" != "x$ac_hi"; do
  5499. + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5500. + cat >conftest.$ac_ext <<_ACEOF
  5501. +#line $LINENO "configure"
  5502. +#include "confdefs.h"
  5503. +$ac_includes_default
  5504. +#ifdef F77_DUMMY_MAIN
  5505. +# ifdef __cplusplus
  5506. + extern "C"
  5507. +# endif
  5508. + int F77_DUMMY_MAIN() { return 1; }
  5509. +#endif
  5510. +int
  5511. +main ()
  5512. +{
  5513. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  5514. +test_array [0] = 0
  5515. +
  5516. + ;
  5517. + return 0;
  5518. +}
  5519. +_ACEOF
  5520. +rm -f conftest.$ac_objext
  5521. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5522. + (eval $ac_compile) 2>&5
  5523. + ac_status=$?
  5524. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5525. + (exit $ac_status); } &&
  5526. + { ac_try='test -s conftest.$ac_objext'
  5527. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5528. + (eval $ac_try) 2>&5
  5529. + ac_status=$?
  5530. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5531. + (exit $ac_status); }; }; then
  5532. + ac_hi=$ac_mid
  5533. +else
  5534. + echo "$as_me: failed program was:" >&5
  5535. +cat conftest.$ac_ext >&5
  5536. +ac_lo=`expr '(' $ac_mid ')' + 1`
  5537. +fi
  5538. +rm -f conftest.$ac_objext conftest.$ac_ext
  5539. +done
  5540. +case $ac_lo in
  5541. +?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
  5542. +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77" >&5
  5543. +echo "$as_me: error: cannot compute sizeof (unsigned int), 77" >&2;}
  5544. + { (exit 1); exit 1; }; } ;;
  5545. +esac
  5546. +else
  5547. + if test "$cross_compiling" = yes; then
  5548. + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  5549. +echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  5550. + { (exit 1); exit 1; }; }
  5551. +else
  5552. + cat >conftest.$ac_ext <<_ACEOF
  5553. +#line $LINENO "configure"
  5554. +#include "confdefs.h"
  5555. +$ac_includes_default
  5556. +long longval () { return (long) (sizeof (unsigned int)); }
  5557. +unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
  5558. +#include <stdio.h>
  5559. +#include <stdlib.h>
  5560. +#ifdef F77_DUMMY_MAIN
  5561. +# ifdef __cplusplus
  5562. + extern "C"
  5563. +# endif
  5564. + int F77_DUMMY_MAIN() { return 1; }
  5565. +#endif
  5566. +int
  5567. +main ()
  5568. +{
  5569. +
  5570. + FILE *f = fopen ("conftest.val", "w");
  5571. + if (! f)
  5572. + exit (1);
  5573. + if (((long) (sizeof (unsigned int))) < 0)
  5574. + {
  5575. + long i = longval ();
  5576. + if (i != ((long) (sizeof (unsigned int))))
  5577. + exit (1);
  5578. + fprintf (f, "%ld\n", i);
  5579. + }
  5580. + else
  5581. + {
  5582. + unsigned long i = ulongval ();
  5583. + if (i != ((long) (sizeof (unsigned int))))
  5584. + exit (1);
  5585. + fprintf (f, "%lu\n", i);
  5586. + }
  5587. + exit (ferror (f) || fclose (f) != 0);
  5588. +
  5589. + ;
  5590. + return 0;
  5591. +}
  5592. +_ACEOF
  5593. +rm -f conftest$ac_exeext
  5594. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5595. + (eval $ac_link) 2>&5
  5596. + ac_status=$?
  5597. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5598. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5599. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5600. + (eval $ac_try) 2>&5
  5601. + ac_status=$?
  5602. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5603. + (exit $ac_status); }; }; then
  5604. + ac_cv_sizeof_unsigned_int=`cat conftest.val`
  5605. +else
  5606. + echo "$as_me: program exited with status $ac_status" >&5
  5607. +echo "$as_me: failed program was:" >&5
  5608. +cat conftest.$ac_ext >&5
  5609. +( exit $ac_status )
  5610. +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77" >&5
  5611. +echo "$as_me: error: cannot compute sizeof (unsigned int), 77" >&2;}
  5612. + { (exit 1); exit 1; }; }
  5613. +fi
  5614. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5615. +fi
  5616. +fi
  5617. +rm -f conftest.val
  5618. +else
  5619. + ac_cv_sizeof_unsigned_int=0
  5620. +fi
  5621. +fi
  5622. +echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
  5623. +echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
  5624. +cat >>confdefs.h <<_ACEOF
  5625. +#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  5626. +_ACEOF
  5627. +
  5628. +
  5629. +echo "$as_me:$LINENO: checking for unsigned long" >&5
  5630. +echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
  5631. +if test "${ac_cv_type_unsigned_long+set}" = set; then
  5632. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5633. +else
  5634. + cat >conftest.$ac_ext <<_ACEOF
  5635. +#line $LINENO "configure"
  5636. +#include "confdefs.h"
  5637. +$ac_includes_default
  5638. +#ifdef F77_DUMMY_MAIN
  5639. +# ifdef __cplusplus
  5640. + extern "C"
  5641. +# endif
  5642. + int F77_DUMMY_MAIN() { return 1; }
  5643. +#endif
  5644. +int
  5645. +main ()
  5646. +{
  5647. +if ((unsigned long *) 0)
  5648. + return 0;
  5649. +if (sizeof (unsigned long))
  5650. + return 0;
  5651. + ;
  5652. + return 0;
  5653. +}
  5654. +_ACEOF
  5655. +rm -f conftest.$ac_objext
  5656. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5657. + (eval $ac_compile) 2>&5
  5658. + ac_status=$?
  5659. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5660. + (exit $ac_status); } &&
  5661. + { ac_try='test -s conftest.$ac_objext'
  5662. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5663. + (eval $ac_try) 2>&5
  5664. + ac_status=$?
  5665. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5666. + (exit $ac_status); }; }; then
  5667. + ac_cv_type_unsigned_long=yes
  5668. +else
  5669. + echo "$as_me: failed program was:" >&5
  5670. +cat conftest.$ac_ext >&5
  5671. +ac_cv_type_unsigned_long=no
  5672. +fi
  5673. +rm -f conftest.$ac_objext conftest.$ac_ext
  5674. +fi
  5675. +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
  5676. +echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
  5677. +
  5678. +echo "$as_me:$LINENO: checking size of unsigned long" >&5
  5679. +echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
  5680. +if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  5681. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5682. +else
  5683. + if test "$ac_cv_type_unsigned_long" = yes; then
  5684. + # The cast to unsigned long works around a bug in the HP C Compiler
  5685. + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5686. + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5687. + # This bug is HP SR number 8606223364.
  5688. + if test "$cross_compiling" = yes; then
  5689. + # Depending upon the size, compute the lo and hi bounds.
  5690. +cat >conftest.$ac_ext <<_ACEOF
  5691. +#line $LINENO "configure"
  5692. +#include "confdefs.h"
  5693. +$ac_includes_default
  5694. +#ifdef F77_DUMMY_MAIN
  5695. +# ifdef __cplusplus
  5696. + extern "C"
  5697. +# endif
  5698. + int F77_DUMMY_MAIN() { return 1; }
  5699. +#endif
  5700. +int
  5701. +main ()
  5702. +{
  5703. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
  5704. +test_array [0] = 0
  5705. +
  5706. + ;
  5707. + return 0;
  5708. +}
  5709. +_ACEOF
  5710. +rm -f conftest.$ac_objext
  5711. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5712. + (eval $ac_compile) 2>&5
  5713. + ac_status=$?
  5714. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5715. + (exit $ac_status); } &&
  5716. + { ac_try='test -s conftest.$ac_objext'
  5717. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5718. + (eval $ac_try) 2>&5
  5719. + ac_status=$?
  5720. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5721. + (exit $ac_status); }; }; then
  5722. + ac_lo=0 ac_mid=0
  5723. + while :; do
  5724. + cat >conftest.$ac_ext <<_ACEOF
  5725. +#line $LINENO "configure"
  5726. +#include "confdefs.h"
  5727. +$ac_includes_default
  5728. +#ifdef F77_DUMMY_MAIN
  5729. +# ifdef __cplusplus
  5730. + extern "C"
  5731. +# endif
  5732. + int F77_DUMMY_MAIN() { return 1; }
  5733. +#endif
  5734. +int
  5735. +main ()
  5736. +{
  5737. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  5738. +test_array [0] = 0
  5739. +
  5740. + ;
  5741. + return 0;
  5742. +}
  5743. +_ACEOF
  5744. +rm -f conftest.$ac_objext
  5745. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5746. + (eval $ac_compile) 2>&5
  5747. + ac_status=$?
  5748. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5749. + (exit $ac_status); } &&
  5750. + { ac_try='test -s conftest.$ac_objext'
  5751. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5752. + (eval $ac_try) 2>&5
  5753. + ac_status=$?
  5754. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5755. + (exit $ac_status); }; }; then
  5756. + ac_hi=$ac_mid; break
  5757. +else
  5758. + echo "$as_me: failed program was:" >&5
  5759. +cat conftest.$ac_ext >&5
  5760. +ac_lo=`expr $ac_mid + 1`
  5761. + if test $ac_lo -le $ac_mid; then
  5762. + ac_lo= ac_hi=
  5763. + break
  5764. + fi
  5765. + ac_mid=`expr 2 '*' $ac_mid + 1`
  5766. +fi
  5767. +rm -f conftest.$ac_objext conftest.$ac_ext
  5768. + done
  5769. +else
  5770. + echo "$as_me: failed program was:" >&5
  5771. +cat conftest.$ac_ext >&5
  5772. +cat >conftest.$ac_ext <<_ACEOF
  5773. +#line $LINENO "configure"
  5774. +#include "confdefs.h"
  5775. +$ac_includes_default
  5776. +#ifdef F77_DUMMY_MAIN
  5777. +# ifdef __cplusplus
  5778. + extern "C"
  5779. +# endif
  5780. + int F77_DUMMY_MAIN() { return 1; }
  5781. +#endif
  5782. +int
  5783. +main ()
  5784. +{
  5785. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
  5786. +test_array [0] = 0
  5787. +
  5788. + ;
  5789. + return 0;
  5790. +}
  5791. +_ACEOF
  5792. +rm -f conftest.$ac_objext
  5793. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5794. + (eval $ac_compile) 2>&5
  5795. + ac_status=$?
  5796. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5797. + (exit $ac_status); } &&
  5798. + { ac_try='test -s conftest.$ac_objext'
  5799. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5800. + (eval $ac_try) 2>&5
  5801. + ac_status=$?
  5802. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5803. + (exit $ac_status); }; }; then
  5804. + ac_hi=-1 ac_mid=-1
  5805. + while :; do
  5806. + cat >conftest.$ac_ext <<_ACEOF
  5807. +#line $LINENO "configure"
  5808. +#include "confdefs.h"
  5809. +$ac_includes_default
  5810. +#ifdef F77_DUMMY_MAIN
  5811. +# ifdef __cplusplus
  5812. + extern "C"
  5813. +# endif
  5814. + int F77_DUMMY_MAIN() { return 1; }
  5815. +#endif
  5816. +int
  5817. +main ()
  5818. +{
  5819. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
  5820. +test_array [0] = 0
  5821. +
  5822. + ;
  5823. + return 0;
  5824. +}
  5825. +_ACEOF
  5826. +rm -f conftest.$ac_objext
  5827. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5828. + (eval $ac_compile) 2>&5
  5829. + ac_status=$?
  5830. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5831. + (exit $ac_status); } &&
  5832. + { ac_try='test -s conftest.$ac_objext'
  5833. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5834. + (eval $ac_try) 2>&5
  5835. + ac_status=$?
  5836. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5837. + (exit $ac_status); }; }; then
  5838. + ac_lo=$ac_mid; break
  5839. +else
  5840. + echo "$as_me: failed program was:" >&5
  5841. +cat conftest.$ac_ext >&5
  5842. +ac_hi=`expr '(' $ac_mid ')' - 1`
  5843. + if test $ac_mid -le $ac_hi; then
  5844. + ac_lo= ac_hi=
  5845. + break
  5846. + fi
  5847. + ac_mid=`expr 2 '*' $ac_mid`
  5848. +fi
  5849. +rm -f conftest.$ac_objext conftest.$ac_ext
  5850. + done
  5851. +else
  5852. + echo "$as_me: failed program was:" >&5
  5853. +cat conftest.$ac_ext >&5
  5854. +ac_lo= ac_hi=
  5855. +fi
  5856. +rm -f conftest.$ac_objext conftest.$ac_ext
  5857. +fi
  5858. +rm -f conftest.$ac_objext conftest.$ac_ext
  5859. +# Binary search between lo and hi bounds.
  5860. +while test "x$ac_lo" != "x$ac_hi"; do
  5861. + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5862. + cat >conftest.$ac_ext <<_ACEOF
  5863. +#line $LINENO "configure"
  5864. +#include "confdefs.h"
  5865. +$ac_includes_default
  5866. +#ifdef F77_DUMMY_MAIN
  5867. +# ifdef __cplusplus
  5868. + extern "C"
  5869. +# endif
  5870. + int F77_DUMMY_MAIN() { return 1; }
  5871. +#endif
  5872. +int
  5873. +main ()
  5874. +{
  5875. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  5876. +test_array [0] = 0
  5877. +
  5878. + ;
  5879. + return 0;
  5880. +}
  5881. +_ACEOF
  5882. +rm -f conftest.$ac_objext
  5883. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5884. + (eval $ac_compile) 2>&5
  5885. + ac_status=$?
  5886. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5887. + (exit $ac_status); } &&
  5888. + { ac_try='test -s conftest.$ac_objext'
  5889. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5890. + (eval $ac_try) 2>&5
  5891. + ac_status=$?
  5892. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5893. + (exit $ac_status); }; }; then
  5894. + ac_hi=$ac_mid
  5895. +else
  5896. + echo "$as_me: failed program was:" >&5
  5897. +cat conftest.$ac_ext >&5
  5898. +ac_lo=`expr '(' $ac_mid ')' + 1`
  5899. +fi
  5900. +rm -f conftest.$ac_objext conftest.$ac_ext
  5901. +done
  5902. +case $ac_lo in
  5903. +?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
  5904. +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
  5905. +echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
  5906. + { (exit 1); exit 1; }; } ;;
  5907. +esac
  5908. +else
  5909. + if test "$cross_compiling" = yes; then
  5910. + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  5911. +echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  5912. + { (exit 1); exit 1; }; }
  5913. +else
  5914. + cat >conftest.$ac_ext <<_ACEOF
  5915. +#line $LINENO "configure"
  5916. +#include "confdefs.h"
  5917. +$ac_includes_default
  5918. +long longval () { return (long) (sizeof (unsigned long)); }
  5919. +unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
  5920. +#include <stdio.h>
  5921. +#include <stdlib.h>
  5922. +#ifdef F77_DUMMY_MAIN
  5923. +# ifdef __cplusplus
  5924. + extern "C"
  5925. +# endif
  5926. + int F77_DUMMY_MAIN() { return 1; }
  5927. +#endif
  5928. +int
  5929. +main ()
  5930. +{
  5931. +
  5932. + FILE *f = fopen ("conftest.val", "w");
  5933. + if (! f)
  5934. + exit (1);
  5935. + if (((long) (sizeof (unsigned long))) < 0)
  5936. + {
  5937. + long i = longval ();
  5938. + if (i != ((long) (sizeof (unsigned long))))
  5939. + exit (1);
  5940. + fprintf (f, "%ld\n", i);
  5941. + }
  5942. + else
  5943. + {
  5944. + unsigned long i = ulongval ();
  5945. + if (i != ((long) (sizeof (unsigned long))))
  5946. + exit (1);
  5947. + fprintf (f, "%lu\n", i);
  5948. + }
  5949. + exit (ferror (f) || fclose (f) != 0);
  5950. +
  5951. + ;
  5952. + return 0;
  5953. +}
  5954. +_ACEOF
  5955. +rm -f conftest$ac_exeext
  5956. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5957. + (eval $ac_link) 2>&5
  5958. + ac_status=$?
  5959. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5960. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5961. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5962. + (eval $ac_try) 2>&5
  5963. + ac_status=$?
  5964. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5965. + (exit $ac_status); }; }; then
  5966. + ac_cv_sizeof_unsigned_long=`cat conftest.val`
  5967. +else
  5968. + echo "$as_me: program exited with status $ac_status" >&5
  5969. +echo "$as_me: failed program was:" >&5
  5970. +cat conftest.$ac_ext >&5
  5971. +( exit $ac_status )
  5972. +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
  5973. +echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
  5974. + { (exit 1); exit 1; }; }
  5975. +fi
  5976. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5977. +fi
  5978. +fi
  5979. +rm -f conftest.val
  5980. +else
  5981. + ac_cv_sizeof_unsigned_long=0
  5982. +fi
  5983. +fi
  5984. +echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
  5985. +echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
  5986. +cat >>confdefs.h <<_ACEOF
  5987. +#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  5988. +_ACEOF
  5989. +
  5990. +
  5991. +
  5992. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5993. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  5994. +if test "${ac_cv_header_stdc+set}" = set; then
  5995. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5996. +else
  5997. + cat >conftest.$ac_ext <<_ACEOF
  5998. +#line $LINENO "configure"
  5999. +#include "confdefs.h"
  6000. +#include <stdlib.h>
  6001. +#include <stdarg.h>
  6002. +#include <string.h>
  6003. +#include <float.h>
  6004. +
  6005. +_ACEOF
  6006. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6007. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6008. + ac_status=$?
  6009. + egrep -v '^ *\+' conftest.er1 >conftest.err
  6010. + rm -f conftest.er1
  6011. + cat conftest.err >&5
  6012. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6013. + (exit $ac_status); } >/dev/null; then
  6014. + if test -s conftest.err; then
  6015. + ac_cpp_err=$ac_c_preproc_warn_flag
  6016. + else
  6017. + ac_cpp_err=
  6018. + fi
  6019. +else
  6020. + ac_cpp_err=yes
  6021. +fi
  6022. +if test -z "$ac_cpp_err"; then
  6023. + ac_cv_header_stdc=yes
  6024. +else
  6025. + echo "$as_me: failed program was:" >&5
  6026. + cat conftest.$ac_ext >&5
  6027. + ac_cv_header_stdc=no
  6028. +fi
  6029. +rm -f conftest.err conftest.$ac_ext
  6030. +
  6031. +if test $ac_cv_header_stdc = yes; then
  6032. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6033. + cat >conftest.$ac_ext <<_ACEOF
  6034. +#line $LINENO "configure"
  6035. +#include "confdefs.h"
  6036. +#include <string.h>
  6037. +
  6038. +_ACEOF
  6039. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6040. + egrep "memchr" >/dev/null 2>&1; then
  6041. + :
  6042. +else
  6043. + ac_cv_header_stdc=no
  6044. +fi
  6045. +rm -f conftest*
  6046. +
  6047. +fi
  6048. +
  6049. +if test $ac_cv_header_stdc = yes; then
  6050. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6051. + cat >conftest.$ac_ext <<_ACEOF
  6052. +#line $LINENO "configure"
  6053. +#include "confdefs.h"
  6054. +#include <stdlib.h>
  6055. +
  6056. +_ACEOF
  6057. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6058. + egrep "free" >/dev/null 2>&1; then
  6059. + :
  6060. +else
  6061. + ac_cv_header_stdc=no
  6062. +fi
  6063. +rm -f conftest*
  6064. +
  6065. +fi
  6066. +
  6067. +if test $ac_cv_header_stdc = yes; then
  6068. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6069. + if test "$cross_compiling" = yes; then
  6070. + :
  6071. +else
  6072. + cat >conftest.$ac_ext <<_ACEOF
  6073. +#line $LINENO "configure"
  6074. +#include "confdefs.h"
  6075. +#include <ctype.h>
  6076. +#if ((' ' & 0x0FF) == 0x020)
  6077. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6078. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6079. +#else
  6080. +# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  6081. + || ('j' <= (c) && (c) <= 'r') \
  6082. + || ('s' <= (c) && (c) <= 'z'))
  6083. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6084. +#endif
  6085. +
  6086. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6087. +int
  6088. +main ()
  6089. +{
  6090. + int i;
  6091. + for (i = 0; i < 256; i++)
  6092. + if (XOR (islower (i), ISLOWER (i))
  6093. + || toupper (i) != TOUPPER (i))
  6094. + exit(2);
  6095. + exit (0);
  6096. +}
  6097. +_ACEOF
  6098. +rm -f conftest$ac_exeext
  6099. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6100. + (eval $ac_link) 2>&5
  6101. + ac_status=$?
  6102. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6103. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6104. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6105. + (eval $ac_try) 2>&5
  6106. + ac_status=$?
  6107. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6108. + (exit $ac_status); }; }; then
  6109. + :
  6110. +else
  6111. + echo "$as_me: program exited with status $ac_status" >&5
  6112. +echo "$as_me: failed program was:" >&5
  6113. +cat conftest.$ac_ext >&5
  6114. +( exit $ac_status )
  6115. +ac_cv_header_stdc=no
  6116. +fi
  6117. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6118. +fi
  6119. +fi
  6120. +fi
  6121. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6122. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  6123. +if test $ac_cv_header_stdc = yes; then
  6124. +
  6125. +cat >>confdefs.h <<\_ACEOF
  6126. +#define STDC_HEADERS 1
  6127. +_ACEOF
  6128. +
  6129. +fi
  6130. +
  6131. +
  6132. +
  6133. +
  6134. +
  6135. +
  6136. +for ac_func in readdir readdir_r stricmp strnstr ustat
  6137. do
  6138. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6139. -echo "configure:2423: checking for $ac_func" >&5
  6140. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6141. - echo $ac_n "(cached) $ac_c" 1>&6
  6142. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6143. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  6144. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6145. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  6146. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6147. else
  6148. - cat > conftest.$ac_ext <<EOF
  6149. -#line 2428 "configure"
  6150. + cat >conftest.$ac_ext <<_ACEOF
  6151. +#line $LINENO "configure"
  6152. #include "confdefs.h"
  6153. /* System header to define __stub macros and hopefully few prototypes,
  6154. - which can conflict with char $ac_func(); below. */
  6155. + which can conflict with char $ac_func (); below. */
  6156. #include <assert.h>
  6157. /* Override any gcc2 internal prototype to avoid an error. */
  6158. +#ifdef __cplusplus
  6159. +extern "C"
  6160. +#endif
  6161. /* We use char because int might match the return type of a gcc2
  6162. - builtin and then its argument prototype would still apply. */
  6163. -char $ac_func();
  6164. -
  6165. -int main() {
  6166. -
  6167. + builtin and then its argument prototype would still apply. */
  6168. +char $ac_func ();
  6169. +char (*f) ();
  6170. +
  6171. +#ifdef F77_DUMMY_MAIN
  6172. +# ifdef __cplusplus
  6173. + extern "C"
  6174. +# endif
  6175. + int F77_DUMMY_MAIN() { return 1; }
  6176. +#endif
  6177. +int
  6178. +main ()
  6179. +{
  6180. /* The GNU C library defines this for functions which it implements
  6181. to always fail with ENOSYS. Some functions are actually named
  6182. something starting with __ and the normal name is an alias. */
  6183. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6184. choke me
  6185. #else
  6186. -$ac_func();
  6187. +f = $ac_func;
  6188. #endif
  6189. -; return 0; }
  6190. -EOF
  6191. -if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6192. - rm -rf conftest*
  6193. - eval "ac_cv_func_$ac_func=yes"
  6194. -else
  6195. - echo "configure: failed program was:" >&5
  6196. - cat conftest.$ac_ext >&5
  6197. - rm -rf conftest*
  6198. - eval "ac_cv_func_$ac_func=no"
  6199. -fi
  6200. -rm -f conftest*
  6201. -fi
  6202. + ;
  6203. + return 0;
  6204. +}
  6205. +_ACEOF
  6206. +rm -f conftest.$ac_objext conftest$ac_exeext
  6207. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6208. + (eval $ac_link) 2>&5
  6209. + ac_status=$?
  6210. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6211. + (exit $ac_status); } &&
  6212. + { ac_try='test -s conftest$ac_exeext'
  6213. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6214. + (eval $ac_try) 2>&5
  6215. + ac_status=$?
  6216. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6217. + (exit $ac_status); }; }; then
  6218. + eval "$as_ac_var=yes"
  6219. +else
  6220. + echo "$as_me: failed program was:" >&5
  6221. +cat conftest.$ac_ext >&5
  6222. +eval "$as_ac_var=no"
  6223. +fi
  6224. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6225. +fi
  6226. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6227. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6228. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  6229. + cat >>confdefs.h <<_ACEOF
  6230. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6231. +_ACEOF
  6232. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6233. - echo "$ac_t""yes" 1>&6
  6234. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6235. - cat >> confdefs.h <<EOF
  6236. -#define $ac_tr_func 1
  6237. -EOF
  6238. -
  6239. -else
  6240. - echo "$ac_t""no" 1>&6
  6241. fi
  6242. done
  6243. -fi
  6244. +# Check whether --with-mmap or --without-mmap was given.
  6245. +if test "${with_mmap+set}" = set; then
  6246. + withval="$with_mmap"
  6247. + if test "x$withval" = "xyes"; then
  6248. -echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
  6249. -echo "configure:2479: checking for vsnprintf" >&5
  6250. -if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
  6251. - echo $ac_n "(cached) $ac_c" 1>&6
  6252. +for ac_func in mmap
  6253. +do
  6254. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6255. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  6256. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6257. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  6258. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6259. else
  6260. - cat > conftest.$ac_ext <<EOF
  6261. -#line 2484 "configure"
  6262. + cat >conftest.$ac_ext <<_ACEOF
  6263. +#line $LINENO "configure"
  6264. #include "confdefs.h"
  6265. -/* System header to define __stub macros and hopefully few prototypes,
  6266. - which can conflict with char vsnprintf(); below. */
  6267. +/* System header to define __stub macros and hopefully few prototypes
  6268. +else
  6269. + which can conflict with char $ac_func (); below. */
  6270. #include <assert.h>
  6271. /* Override any gcc2 internal prototype to avoid an error. */
  6272. +#ifdef __cplusplus
  6273. +extern "C"
  6274. +#endif
  6275. /* We use char because int might match the return type of a gcc2
  6276. - builtin and then its argument prototype would still apply. */
  6277. -char vsnprintf();
  6278. + builtin and then its argument prototype would still apply. */
  6279. +char $ac_func ();
  6280. +char (*f) ();
  6281. +
  6282. +#ifdef F77_DUMMY_MAIN
  6283. +# ifdef __cplusplus
  6284. + extern "C"
  6285. +# endif
  6286. + int F77_DUMMY_MAIN() { return 1; }
  6287. +#endif
  6288. +int
  6289. +main ()
  6290. +{
  6291. +/* The GNU C library defines this for functions which it implements
  6292. + to always fail with ENOSYS. Some functions are actually named
  6293. + something starting with __ and the normal name is an alias. */
  6294. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6295. +choke me
  6296. +#else
  6297. +f = $ac_func;
  6298. +#endif
  6299. -int main() {
  6300. + ;
  6301. + return 0;
  6302. +}
  6303. +_ACEOF
  6304. +rm -f conftest.$ac_objext conftest$ac_exeext
  6305. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6306. + (eval $ac_link) 2>&5
  6307. + ac_status=$?
  6308. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6309. + (exit $ac_status); } &&
  6310. + { ac_try='test -s conftest$ac_exeext'
  6311. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6312. + (eval $ac_try) 2>&5
  6313. + ac_status=$?
  6314. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6315. + (exit $ac_status); }; }; then
  6316. + eval "$as_ac_var=yes"
  6317. +else
  6318. + echo "$as_me: failed program was:" >&5
  6319. +cat conftest.$ac_ext >&5
  6320. +eval "$as_ac_var=no"
  6321. +fi
  6322. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6323. +fi
  6324. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6325. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6326. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  6327. + cat >>confdefs.h <<_ACEOF
  6328. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6329. +_ACEOF
  6330. +
  6331. +fi
  6332. +done
  6333. + fi
  6334. +
  6335. +fi;
  6336. +echo "$as_me:$LINENO: checking for vsnprintf" >&5
  6337. +echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
  6338. +if test "${ac_cv_func_vsnprintf+set}" = set; then
  6339. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6340. +else
  6341. + cat >conftest.$ac_ext <<_ACEOF
  6342. +#line $LINENO "configure"
  6343. +#include "confdefs.h"
  6344. +/* System header to define __stub macros and hopefully few prototypes,
  6345. + which can conflict with char vsnprintf (); below. */
  6346. +#include <assert.h>
  6347. +/* Override any gcc2 internal prototype to avoid an error. */
  6348. +#ifdef __cplusplus
  6349. +extern "C"
  6350. +#endif
  6351. +/* We use char because int might match the return type of a gcc2
  6352. + builtin and then its argument prototype would still apply. */
  6353. +char vsnprintf ();
  6354. +char (*f) ();
  6355. +
  6356. +#ifdef F77_DUMMY_MAIN
  6357. +# ifdef __cplusplus
  6358. + extern "C"
  6359. +# endif
  6360. + int F77_DUMMY_MAIN() { return 1; }
  6361. +#endif
  6362. +int
  6363. +main ()
  6364. +{
  6365. /* The GNU C library defines this for functions which it implements
  6366. to always fail with ENOSYS. Some functions are actually named
  6367. something starting with __ and the normal name is an alias. */
  6368. #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
  6369. choke me
  6370. #else
  6371. -vsnprintf();
  6372. +f = vsnprintf;
  6373. #endif
  6374. -; return 0; }
  6375. -EOF
  6376. -if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6377. - rm -rf conftest*
  6378. - eval "ac_cv_func_vsnprintf=yes"
  6379. -else
  6380. - echo "configure: failed program was:" >&5
  6381. - cat conftest.$ac_ext >&5
  6382. - rm -rf conftest*
  6383. - eval "ac_cv_func_vsnprintf=no"
  6384. -fi
  6385. -rm -f conftest*
  6386. -fi
  6387. -
  6388. -if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
  6389. - echo "$ac_t""yes" 1>&6
  6390. + ;
  6391. + return 0;
  6392. +}
  6393. +_ACEOF
  6394. +rm -f conftest.$ac_objext conftest$ac_exeext
  6395. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6396. + (eval $ac_link) 2>&5
  6397. + ac_status=$?
  6398. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6399. + (exit $ac_status); } &&
  6400. + { ac_try='test -s conftest$ac_exeext'
  6401. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6402. + (eval $ac_try) 2>&5
  6403. + ac_status=$?
  6404. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6405. + (exit $ac_status); }; }; then
  6406. + ac_cv_func_vsnprintf=yes
  6407. +else
  6408. + echo "$as_me: failed program was:" >&5
  6409. +cat conftest.$ac_ext >&5
  6410. +ac_cv_func_vsnprintf=no
  6411. +fi
  6412. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6413. +fi
  6414. +echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
  6415. +echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
  6416. +if test $ac_cv_func_vsnprintf = yes; then
  6417. :
  6418. else
  6419. - echo "$ac_t""no" 1>&6
  6420. -echo "Must have a system that supports vsnprintf"
  6421. + echo "Must have a system that supports vsnprintf"
  6422. exit 1
  6423. fi
  6424. -for ac_hdr in syslog.h ustat.h
  6425. +
  6426. +
  6427. +for ac_header in syslog.h ustat.h
  6428. do
  6429. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6430. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6431. -echo "configure:2533: checking for $ac_hdr" >&5
  6432. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6433. - echo $ac_n "(cached) $ac_c" 1>&6
  6434. -else
  6435. - cat > conftest.$ac_ext <<EOF
  6436. -#line 2538 "configure"
  6437. -#include "confdefs.h"
  6438. -#include <$ac_hdr>
  6439. -EOF
  6440. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6441. -{ (eval echo configure:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6442. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6443. -if test -z "$ac_err"; then
  6444. - rm -rf conftest*
  6445. - eval "ac_cv_header_$ac_safe=yes"
  6446. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6447. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6448. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6449. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6450. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6451. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6452. +fi
  6453. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6454. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6455. +else
  6456. + # Is the header compilable?
  6457. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6458. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6459. +cat >conftest.$ac_ext <<_ACEOF
  6460. +#line $LINENO "configure"
  6461. +#include "confdefs.h"
  6462. +$ac_includes_default
  6463. +#include <$ac_header>
  6464. +_ACEOF
  6465. +rm -f conftest.$ac_objext
  6466. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6467. + (eval $ac_compile) 2>&5
  6468. + ac_status=$?
  6469. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6470. + (exit $ac_status); } &&
  6471. + { ac_try='test -s conftest.$ac_objext'
  6472. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6473. + (eval $ac_try) 2>&5
  6474. + ac_status=$?
  6475. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6476. + (exit $ac_status); }; }; then
  6477. + ac_header_compiler=yes
  6478. +else
  6479. + echo "$as_me: failed program was:" >&5
  6480. +cat conftest.$ac_ext >&5
  6481. +ac_header_compiler=no
  6482. +fi
  6483. +rm -f conftest.$ac_objext conftest.$ac_ext
  6484. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6485. +echo "${ECHO_T}$ac_header_compiler" >&6
  6486. +
  6487. +# Is the header present?
  6488. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6489. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6490. +cat >conftest.$ac_ext <<_ACEOF
  6491. +#line $LINENO "configure"
  6492. +#include "confdefs.h"
  6493. +#include <$ac_header>
  6494. +_ACEOF
  6495. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6496. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6497. + ac_status=$?
  6498. + egrep -v '^ *\+' conftest.er1 >conftest.err
  6499. + rm -f conftest.er1
  6500. + cat conftest.err >&5
  6501. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6502. + (exit $ac_status); } >/dev/null; then
  6503. + if test -s conftest.err; then
  6504. + ac_cpp_err=$ac_c_preproc_warn_flag
  6505. + else
  6506. + ac_cpp_err=
  6507. + fi
  6508. else
  6509. - echo "$ac_err" >&5
  6510. - echo "configure: failed program was:" >&5
  6511. - cat conftest.$ac_ext >&5
  6512. - rm -rf conftest*
  6513. - eval "ac_cv_header_$ac_safe=no"
  6514. + ac_cpp_err=yes
  6515. fi
  6516. -rm -f conftest*
  6517. +if test -z "$ac_cpp_err"; then
  6518. + ac_header_preproc=yes
  6519. +else
  6520. + echo "$as_me: failed program was:" >&5
  6521. + cat conftest.$ac_ext >&5
  6522. + ac_header_preproc=no
  6523. fi
  6524. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6525. - echo "$ac_t""yes" 1>&6
  6526. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6527. - cat >> confdefs.h <<EOF
  6528. -#define $ac_tr_hdr 1
  6529. -EOF
  6530. -
  6531. +rm -f conftest.err conftest.$ac_ext
  6532. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6533. +echo "${ECHO_T}$ac_header_preproc" >&6
  6534. +
  6535. +# So? What about this header?
  6536. +case $ac_header_compiler:$ac_header_preproc in
  6537. + yes:no )
  6538. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6539. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6540. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6541. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6542. + no:yes )
  6543. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6544. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6545. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6546. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6547. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6548. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6549. +esac
  6550. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  6551. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6552. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6553. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6554. else
  6555. - echo "$ac_t""no" 1>&6
  6556. + eval "$as_ac_Header=$ac_header_preproc"
  6557. +fi
  6558. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6559. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6560. +
  6561. fi
  6562. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6563. + cat >>confdefs.h <<_ACEOF
  6564. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6565. +_ACEOF
  6566. +
  6567. +fi
  6568. +
  6569. done
  6570. AIDE_USE_LOCALE="#"
  6571. +
  6572. # Check whether --with-locale or --without-locale was given.
  6573. if test "${with_locale+set}" = set; then
  6574. withval="$with_locale"
  6575. - for ac_hdr in libintl.h
  6576. +
  6577. +for ac_header in libintl.h
  6578. do
  6579. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6580. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6581. -echo "configure:2580: checking for $ac_hdr" >&5
  6582. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6583. - echo $ac_n "(cached) $ac_c" 1>&6
  6584. -else
  6585. - cat > conftest.$ac_ext <<EOF
  6586. -#line 2585 "configure"
  6587. -#include "confdefs.h"
  6588. -#include <$ac_hdr>
  6589. -EOF
  6590. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6591. -{ (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6592. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6593. -if test -z "$ac_err"; then
  6594. - rm -rf conftest*
  6595. - eval "ac_cv_header_$ac_safe=yes"
  6596. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6597. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6598. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6599. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6600. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6601. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6602. +fi
  6603. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6604. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6605. +else
  6606. + # Is the header compilable?
  6607. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6608. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6609. +cat >conftest.$ac_ext <<_ACEOF
  6610. +#line $LINENO "configure"
  6611. +#include "confdefs.h"
  6612. +$ac_includes_default
  6613. +#include <$ac_header>
  6614. +_ACEOF
  6615. +rm -f conftest.$ac_objext
  6616. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6617. + (eval $ac_compile) 2>&5
  6618. + ac_status=$?
  6619. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6620. + (exit $ac_status); } &&
  6621. + { ac_try='test -s conftest.$ac_objext'
  6622. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6623. + (eval $ac_try) 2>&5
  6624. + ac_status=$?
  6625. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6626. + (exit $ac_status); }; }; then
  6627. + ac_header_compiler=yes
  6628. +else
  6629. + echo "$as_me: failed program was:" >&5
  6630. +cat conftest.$ac_ext >&5
  6631. +ac_header_compiler=no
  6632. +fi
  6633. +rm -f conftest.$ac_objext conftest.$ac_ext
  6634. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6635. +echo "${ECHO_T}$ac_header_compiler" >&6
  6636. +
  6637. +# Is the header present?
  6638. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6639. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6640. +cat >conftest.$ac_ext <<_ACEOF
  6641. +#line $LINENO "configure"
  6642. +#include "confdefs.h"
  6643. +#include <$ac_header>
  6644. +_ACEOF
  6645. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6646. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6647. + ac_status=$?
  6648. + egrep -v '^ *\+' conftest.er1 >conftest.err
  6649. + rm -f conftest.er1
  6650. + cat conftest.err >&5
  6651. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6652. + (exit $ac_status); } >/dev/null; then
  6653. + if test -s conftest.err; then
  6654. + ac_cpp_err=$ac_c_preproc_warn_flag
  6655. + else
  6656. + ac_cpp_err=
  6657. + fi
  6658. else
  6659. - echo "$ac_err" >&5
  6660. - echo "configure: failed program was:" >&5
  6661. - cat conftest.$ac_ext >&5
  6662. - rm -rf conftest*
  6663. - eval "ac_cv_header_$ac_safe=no"
  6664. + ac_cpp_err=yes
  6665. fi
  6666. -rm -f conftest*
  6667. +if test -z "$ac_cpp_err"; then
  6668. + ac_header_preproc=yes
  6669. +else
  6670. + echo "$as_me: failed program was:" >&5
  6671. + cat conftest.$ac_ext >&5
  6672. + ac_header_preproc=no
  6673. fi
  6674. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6675. - echo "$ac_t""yes" 1>&6
  6676. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6677. - cat >> confdefs.h <<EOF
  6678. -#define $ac_tr_hdr 1
  6679. -EOF
  6680. - cat >> confdefs.h <<\EOF
  6681. +rm -f conftest.err conftest.$ac_ext
  6682. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6683. +echo "${ECHO_T}$ac_header_preproc" >&6
  6684. +
  6685. +# So? What about this header?
  6686. +case $ac_header_compiler:$ac_header_preproc in
  6687. + yes:no )
  6688. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6689. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6690. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6691. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6692. + no:yes )
  6693. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6694. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6695. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6696. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6697. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6698. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6699. +esac
  6700. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  6701. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6702. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6703. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6704. +else
  6705. + eval "$as_ac_Header=$ac_header_preproc"
  6706. +fi
  6707. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6708. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6709. +
  6710. +fi
  6711. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6712. + cat >>confdefs.h <<_ACEOF
  6713. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6714. +_ACEOF
  6715. + cat >>confdefs.h <<\_ACEOF
  6716. #define USE_LOCALE 1
  6717. -EOF
  6718. +_ACEOF
  6719. AIDE_USE_LOCALE=""
  6720. - cat >> confdefs.h <<EOF
  6721. + cat >>confdefs.h <<_ACEOF
  6722. #define LOCALEDIR "$prefix/lib/locale"
  6723. -EOF
  6724. +_ACEOF
  6725. -else
  6726. - echo "$ac_t""no" 1>&6
  6727. fi
  6728. +
  6729. done
  6730. -fi
  6731. +fi;
  6732. @@ -2629,595 +5708,842 @@
  6733. # Check whether --with-syslog_ident or --without-syslog_ident was given.
  6734. if test "${with_syslog_ident+set}" = set; then
  6735. withval="$with_syslog_ident"
  6736. - cat >> confdefs.h <<EOF
  6737. + cat >>confdefs.h <<_ACEOF
  6738. #define AIDE_IDENT "$withval"
  6739. -EOF
  6740. +_ACEOF
  6741. -
  6742. -fi
  6743. +
  6744. +fi;
  6745. # Check whether --with-syslog_facility or --without-syslog_facility was given.
  6746. if test "${with_syslog_facility+set}" = set; then
  6747. withval="$with_syslog_facility"
  6748. - cat >> confdefs.h <<EOF
  6749. + cat >>confdefs.h <<_ACEOF
  6750. #define AIDE_SYSLOG_FACILITY $withval
  6751. -EOF
  6752. +_ACEOF
  6753. +
  6754. +
  6755. +fi;
  6756. -
  6757. -fi
  6758. -
  6759. # Check whether --with-syslog_logopt or --without-syslog_logopt was given.
  6760. if test "${with_syslog_logopt+set}" = set; then
  6761. withval="$with_syslog_logopt"
  6762. - cat >> confdefs.h <<EOF
  6763. + cat >>confdefs.h <<_ACEOF
  6764. #define AIDE_LOGOPT $withval
  6765. -EOF
  6766. +_ACEOF
  6767. -
  6768. -fi
  6769. +
  6770. +fi;
  6771. # Check whether --with-syslog_priority or --without-syslog_priority was given.
  6772. if test "${with_syslog_priority+set}" = set; then
  6773. withval="$with_syslog_priority"
  6774. - cat >> confdefs.h <<EOF
  6775. + cat >>confdefs.h <<_ACEOF
  6776. #define SYSLOG_PRIORITY $withval
  6777. -EOF
  6778. +_ACEOF
  6779. -
  6780. -fi
  6781. +
  6782. +fi;
  6783. # Check whether --with-zlib or --without-zlib was given.
  6784. if test "${with_zlib+set}" = set; then
  6785. withval="$with_zlib"
  6786. - :
  6787. +
  6788. else
  6789. with_zlib=yes
  6790. -fi
  6791. +fi;
  6792. +echo "$as_me:$LINENO: checking for acl-support" >&5
  6793. +echo $ECHO_N "checking for acl-support... $ECHO_C" >&6
  6794. -echo $ac_n "checking for acl-support""... $ac_c" 1>&6
  6795. -echo "configure:2686: checking for acl-support" >&5
  6796. # Check whether --with-sun-acl or --without-sun-acl was given.
  6797. if test "${with_sun_acl+set}" = set; then
  6798. withval="$with_sun_acl"
  6799. - cat >> confdefs.h <<\EOF
  6800. + cat >>confdefs.h <<\_ACEOF
  6801. #define WITH_SUN_ACL 1
  6802. -EOF
  6803. +_ACEOF
  6804. - cat >> confdefs.h <<\EOF
  6805. + cat >>confdefs.h <<\_ACEOF
  6806. #define WITH_ACL 1
  6807. -EOF
  6808. +_ACEOF
  6809. ACLLIB="-lsec"
  6810. - echo "$ac_t""yes" 1>&6
  6811. -
  6812. + echo "$as_me:$LINENO: result: yes" >&5
  6813. +echo "${ECHO_T}yes" >&6
  6814. +
  6815. else
  6816. - echo "$ac_t""no" 1>&6
  6817. -
  6818. -fi
  6819. + echo "$as_me:$LINENO: result: no" >&5
  6820. +echo "${ECHO_T}no" >&6
  6821. +
  6822. +fi;
  6823. -
  6824. -echo $ac_n "checking for lstat64""... $ac_c" 1>&6
  6825. -echo "configure:2713: checking for lstat64" >&5
  6826. -if eval "test \"`echo '$''{'ac_cv_func_lstat64'+set}'`\" = set"; then
  6827. - echo $ac_n "(cached) $ac_c" 1>&6
  6828. +echo "$as_me:$LINENO: checking for lstat64" >&5
  6829. +echo $ECHO_N "checking for lstat64... $ECHO_C" >&6
  6830. +if test "${ac_cv_func_lstat64+set}" = set; then
  6831. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6832. else
  6833. - cat > conftest.$ac_ext <<EOF
  6834. -#line 2718 "configure"
  6835. + cat >conftest.$ac_ext <<_ACEOF
  6836. +#line $LINENO "configure"
  6837. #include "confdefs.h"
  6838. /* System header to define __stub macros and hopefully few prototypes,
  6839. - which can conflict with char lstat64(); below. */
  6840. + which can conflict with char lstat64 (); below. */
  6841. #include <assert.h>
  6842. /* Override any gcc2 internal prototype to avoid an error. */
  6843. +#ifdef __cplusplus
  6844. +extern "C"
  6845. +#endif
  6846. /* We use char because int might match the return type of a gcc2
  6847. - builtin and then its argument prototype would still apply. */
  6848. -char lstat64();
  6849. -
  6850. -int main() {
  6851. -
  6852. + builtin and then its argument prototype would still apply. */
  6853. +char lstat64 ();
  6854. +char (*f) ();
  6855. +
  6856. +#ifdef F77_DUMMY_MAIN
  6857. +# ifdef __cplusplus
  6858. + extern "C"
  6859. +# endif
  6860. + int F77_DUMMY_MAIN() { return 1; }
  6861. +#endif
  6862. +int
  6863. +main ()
  6864. +{
  6865. /* The GNU C library defines this for functions which it implements
  6866. to always fail with ENOSYS. Some functions are actually named
  6867. something starting with __ and the normal name is an alias. */
  6868. #if defined (__stub_lstat64) || defined (__stub___lstat64)
  6869. choke me
  6870. #else
  6871. -lstat64();
  6872. +f = lstat64;
  6873. #endif
  6874. -; return 0; }
  6875. -EOF
  6876. -if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6877. - rm -rf conftest*
  6878. - eval "ac_cv_func_lstat64=yes"
  6879. -else
  6880. - echo "configure: failed program was:" >&5
  6881. - cat conftest.$ac_ext >&5
  6882. - rm -rf conftest*
  6883. - eval "ac_cv_func_lstat64=no"
  6884. -fi
  6885. -rm -f conftest*
  6886. -fi
  6887. -
  6888. -if eval "test \"`echo '$ac_cv_func_'lstat64`\" = yes"; then
  6889. - echo "$ac_t""yes" 1>&6
  6890. + ;
  6891. + return 0;
  6892. +}
  6893. +_ACEOF
  6894. +rm -f conftest.$ac_objext conftest$ac_exeext
  6895. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6896. + (eval $ac_link) 2>&5
  6897. + ac_status=$?
  6898. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6899. + (exit $ac_status); } &&
  6900. + { ac_try='test -s conftest$ac_exeext'
  6901. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6902. + (eval $ac_try) 2>&5
  6903. + ac_status=$?
  6904. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6905. + (exit $ac_status); }; }; then
  6906. + ac_cv_func_lstat64=yes
  6907. +else
  6908. + echo "$as_me: failed program was:" >&5
  6909. +cat conftest.$ac_ext >&5
  6910. +ac_cv_func_lstat64=no
  6911. +fi
  6912. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6913. +fi
  6914. +echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
  6915. +echo "${ECHO_T}$ac_cv_func_lstat64" >&6
  6916. +if test $ac_cv_func_lstat64 = yes; then
  6917. # This looks wierd because Linux defines lstat64 and then screws it up
  6918. - cat > conftest.$ac_ext <<EOF
  6919. -#line 2757 "configure"
  6920. + cat >conftest.$ac_ext <<_ACEOF
  6921. +#line $LINENO "configure"
  6922. #include "confdefs.h"
  6923. #ifdef stat64
  6924. yes
  6925. #endif
  6926. -EOF
  6927. +_ACEOF
  6928. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6929. egrep "yes" >/dev/null 2>&1; then
  6930. - rm -rf conftest*
  6931. - cat > conftest.$ac_ext <<EOF
  6932. -#line 2767 "configure"
  6933. + cat >conftest.$ac_ext <<_ACEOF
  6934. +#line $LINENO "configure"
  6935. #include "confdefs.h"
  6936. #ifdef ino64_t
  6937. yes
  6938. #endif
  6939. -EOF
  6940. +_ACEOF
  6941. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6942. egrep "yes" >/dev/null 2>&1; then
  6943. - rm -rf conftest*
  6944. - cat >> confdefs.h <<EOF
  6945. + cat >>confdefs.h <<_ACEOF
  6946. #define AIDE_LSTAT_FUNC lstat64
  6947. -EOF
  6948. +_ACEOF
  6949. - cat >> confdefs.h <<EOF
  6950. + cat >>confdefs.h <<_ACEOF
  6951. #define AIDE_STAT_FUNC stat64
  6952. -EOF
  6953. +_ACEOF
  6954. - cat >> confdefs.h <<EOF
  6955. + cat >>confdefs.h <<_ACEOF
  6956. #define AIDE_STAT_TYPE stat64
  6957. -EOF
  6958. +_ACEOF
  6959. else
  6960. - rm -rf conftest*
  6961. - cat >> confdefs.h <<EOF
  6962. + cat >>confdefs.h <<_ACEOF
  6963. #define AIDE_INO_TYPE ino64_t
  6964. -EOF
  6965. +_ACEOF
  6966. - cat >> confdefs.h <<EOF
  6967. + cat >>confdefs.h <<_ACEOF
  6968. #define AIDE_OFF_TYPE off64_t
  6969. -EOF
  6970. +_ACEOF
  6971. - cat >> confdefs.h <<EOF
  6972. + cat >>confdefs.h <<_ACEOF
  6973. #define AIDE_BLKCNT_TYPE blkcnt64_t
  6974. -EOF
  6975. +_ACEOF
  6976. - cat >> confdefs.h <<EOF
  6977. + cat >>confdefs.h <<_ACEOF
  6978. #define AIDE_READDIR_FUNC readdir64
  6979. -EOF
  6980. +_ACEOF
  6981. - cat >> confdefs.h <<EOF
  6982. + cat >>confdefs.h <<_ACEOF
  6983. #define AIDE_READDIR_R_FUNC readdir64_r
  6984. -EOF
  6985. +_ACEOF
  6986. - cat >> confdefs.h <<EOF
  6987. + cat >>confdefs.h <<_ACEOF
  6988. #define AIDE_DIRENT_TYPE dirent64
  6989. -EOF
  6990. +_ACEOF
  6991. compoptionstring="${compoptionstring}WITH_READDIR64\\n"
  6992. fi
  6993. rm -f conftest*
  6994. +
  6995. fi
  6996. rm -f conftest*
  6997. compoptionstring="${compoptionstring}WITH_LSTAT64\\n"
  6998. -
  6999. +
  7000. else
  7001. - echo "$ac_t""no" 1>&6
  7002. -cat >> confdefs.h <<EOF
  7003. +
  7004. + cat >>confdefs.h <<_ACEOF
  7005. #define AIDE_LSTAT_FUNC lstat
  7006. -EOF
  7007. +_ACEOF
  7008. - cat >> confdefs.h <<EOF
  7009. + cat >>confdefs.h <<_ACEOF
  7010. #define AIDE_STAT_TYPE stat
  7011. -EOF
  7012. +_ACEOF
  7013. - cat >> confdefs.h <<EOF
  7014. + cat >>confdefs.h <<_ACEOF
  7015. #define AIDE_INO_TYPE ino_t
  7016. -EOF
  7017. +_ACEOF
  7018. - cat >> confdefs.h <<EOF
  7019. + cat >>confdefs.h <<_ACEOF
  7020. #define AIDE_OFF_TYPE off_t
  7021. -EOF
  7022. +_ACEOF
  7023. - cat >> confdefs.h <<EOF
  7024. + cat >conftest.$ac_ext <<_ACEOF
  7025. +#line $LINENO "configure"
  7026. +#include "confdefs.h"
  7027. +#ifdef blkcnt_t
  7028. +_ACEOF
  7029. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7030. + egrep "yes" >/dev/null 2>&1; then
  7031. + cat >>confdefs.h <<_ACEOF
  7032. #define AIDE_BLKCNT_TYPE blkcnt_t
  7033. -EOF
  7034. +_ACEOF
  7035. +
  7036. +else
  7037. + cat >>confdefs.h <<_ACEOF
  7038. +#define AIDE_BLKCNT_TYPE int64_t
  7039. +_ACEOF
  7040. +
  7041. +
  7042. +fi
  7043. +rm -f conftest*
  7044. compoptionstring="${compoptionstring}WITH_LSTAT\\n"
  7045. - cat >> confdefs.h <<EOF
  7046. + cat >>confdefs.h <<_ACEOF
  7047. #define AIDE_READDIR_FUNC readdir
  7048. -EOF
  7049. +_ACEOF
  7050. - cat >> confdefs.h <<EOF
  7051. + cat >>confdefs.h <<_ACEOF
  7052. #define AIDE_READDIR_R_FUNC readdir_r
  7053. -EOF
  7054. +_ACEOF
  7055. - cat >> confdefs.h <<EOF
  7056. + cat >>confdefs.h <<_ACEOF
  7057. #define AIDE_DIRENT_TYPE dirent
  7058. -EOF
  7059. +_ACEOF
  7060. compoptionstring="${compoptionstring}WITH_READDIR\\n"
  7061. -
  7062. +
  7063. fi
  7064. +
  7065. # Check whether --with-config_file or --without-config_file was given.
  7066. if test "${with_config_file+set}" = set; then
  7067. withval="$with_config_file"
  7068. - cat >> confdefs.h <<EOF
  7069. + cat >>confdefs.h <<_ACEOF
  7070. #define CONFIG_FILE "$withval"
  7071. -EOF
  7072. +_ACEOF
  7073. config_file=$withval
  7074. else
  7075. if test "x$sysconfdir" != x'${prefix}/etc'; then
  7076. config_file=`eval echo "$sysconfdir/aide.conf"`
  7077. - cat >> confdefs.h <<EOF
  7078. + cat >>confdefs.h <<_ACEOF
  7079. #define CONFIG_FILE "$config_file"
  7080. -EOF
  7081. +_ACEOF
  7082. elif test "x$prefix" != xNONE; then
  7083. - cat >> confdefs.h <<EOF
  7084. + cat >>confdefs.h <<_ACEOF
  7085. #define CONFIG_FILE "$prefix/etc/aide.conf"
  7086. -EOF
  7087. -
  7088. +_ACEOF
  7089. +
  7090. config_file="$prefix/etc/aide.conf"
  7091. else
  7092. - cat >> confdefs.h <<EOF
  7093. + cat >>confdefs.h <<_ACEOF
  7094. #define CONFIG_FILE "$ac_default_prefix/etc/aide.conf"
  7095. -EOF
  7096. -
  7097. +_ACEOF
  7098. +
  7099. config_file="$ac_default_prefix/etc/aide.conf"
  7100. fi
  7101. -fi
  7102. -
  7103. +fi;
  7104. if test "x$sysconfdir" != x'${prefix}/etc'; then
  7105. evalled_sysconfdir=`eval echo "$sysconfdir"`
  7106. - cat >> confdefs.h <<EOF
  7107. + cat >>confdefs.h <<_ACEOF
  7108. #define DEFAULT_DB "$evalled_sysconfdir/aide.db"
  7109. -EOF
  7110. +_ACEOF
  7111. - cat >> confdefs.h <<EOF
  7112. + cat >>confdefs.h <<_ACEOF
  7113. #define DEFAULT_DB_OUT "$evalled_sysconfdir/aide.db.new"
  7114. -EOF
  7115. +_ACEOF
  7116. elif test "x$prefix" != xNONE; then
  7117. - cat >> confdefs.h <<EOF
  7118. + cat >>confdefs.h <<_ACEOF
  7119. #define DEFAULT_DB "$prefix/etc/aide.db"
  7120. -EOF
  7121. +_ACEOF
  7122. - cat >> confdefs.h <<EOF
  7123. + cat >>confdefs.h <<_ACEOF
  7124. #define DEFAULT_DB_OUT "$prefix/etc/aide.db.new"
  7125. -EOF
  7126. +_ACEOF
  7127. else
  7128. - cat >> confdefs.h <<EOF
  7129. + cat >>confdefs.h <<_ACEOF
  7130. #define DEFAULT_DB "$ac_default_prefix/etc/aide.db"
  7131. -EOF
  7132. +_ACEOF
  7133. - cat >> confdefs.h <<EOF
  7134. + cat >>confdefs.h <<_ACEOF
  7135. #define DEFAULT_DB_OUT "$ac_default_prefix/etc/aide.db.new"
  7136. -EOF
  7137. +_ACEOF
  7138. fi
  7139. if test x$with_zlib = xyes; then
  7140. - for ac_hdr in zlib.h
  7141. +
  7142. +for ac_header in zlib.h
  7143. do
  7144. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7145. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7146. -echo "configure:2935: checking for $ac_hdr" >&5
  7147. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7148. - echo $ac_n "(cached) $ac_c" 1>&6
  7149. -else
  7150. - cat > conftest.$ac_ext <<EOF
  7151. -#line 2940 "configure"
  7152. -#include "confdefs.h"
  7153. -#include <$ac_hdr>
  7154. -EOF
  7155. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7156. -{ (eval echo configure:2945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7157. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7158. -if test -z "$ac_err"; then
  7159. - rm -rf conftest*
  7160. - eval "ac_cv_header_$ac_safe=yes"
  7161. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7162. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7163. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  7164. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7165. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7166. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7167. +fi
  7168. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7169. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7170. +else
  7171. + # Is the header compilable?
  7172. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7173. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7174. +cat >conftest.$ac_ext <<_ACEOF
  7175. +#line $LINENO "configure"
  7176. +#include "confdefs.h"
  7177. +$ac_includes_default
  7178. +#include <$ac_header>
  7179. +_ACEOF
  7180. +rm -f conftest.$ac_objext
  7181. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7182. + (eval $ac_compile) 2>&5
  7183. + ac_status=$?
  7184. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7185. + (exit $ac_status); } &&
  7186. + { ac_try='test -s conftest.$ac_objext'
  7187. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7188. + (eval $ac_try) 2>&5
  7189. + ac_status=$?
  7190. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7191. + (exit $ac_status); }; }; then
  7192. + ac_header_compiler=yes
  7193. +else
  7194. + echo "$as_me: failed program was:" >&5
  7195. +cat conftest.$ac_ext >&5
  7196. +ac_header_compiler=no
  7197. +fi
  7198. +rm -f conftest.$ac_objext conftest.$ac_ext
  7199. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7200. +echo "${ECHO_T}$ac_header_compiler" >&6
  7201. +
  7202. +# Is the header present?
  7203. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7204. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7205. +cat >conftest.$ac_ext <<_ACEOF
  7206. +#line $LINENO "configure"
  7207. +#include "confdefs.h"
  7208. +#include <$ac_header>
  7209. +_ACEOF
  7210. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7211. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7212. + ac_status=$?
  7213. + egrep -v '^ *\+' conftest.er1 >conftest.err
  7214. + rm -f conftest.er1
  7215. + cat conftest.err >&5
  7216. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7217. + (exit $ac_status); } >/dev/null; then
  7218. + if test -s conftest.err; then
  7219. + ac_cpp_err=$ac_c_preproc_warn_flag
  7220. + else
  7221. + ac_cpp_err=
  7222. + fi
  7223. else
  7224. - echo "$ac_err" >&5
  7225. - echo "configure: failed program was:" >&5
  7226. + ac_cpp_err=yes
  7227. +fi
  7228. +if test -z "$ac_cpp_err"; then
  7229. + ac_header_preproc=yes
  7230. +else
  7231. + echo "$as_me: failed program was:" >&5
  7232. cat conftest.$ac_ext >&5
  7233. - rm -rf conftest*
  7234. - eval "ac_cv_header_$ac_safe=no"
  7235. + ac_header_preproc=no
  7236. fi
  7237. -rm -f conftest*
  7238. +rm -f conftest.err conftest.$ac_ext
  7239. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7240. +echo "${ECHO_T}$ac_header_preproc" >&6
  7241. +
  7242. +# So? What about this header?
  7243. +case $ac_header_compiler:$ac_header_preproc in
  7244. + yes:no )
  7245. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7246. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7247. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7248. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7249. + no:yes )
  7250. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7251. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7252. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7253. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7254. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7255. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7256. +esac
  7257. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  7258. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7259. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7260. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7261. +else
  7262. + eval "$as_ac_Header=$ac_header_preproc"
  7263. +fi
  7264. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7265. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7266. +
  7267. fi
  7268. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7269. - echo "$ac_t""yes" 1>&6
  7270. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7271. - cat >> confdefs.h <<EOF
  7272. -#define $ac_tr_hdr 1
  7273. -EOF
  7274. -
  7275. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7276. + cat >>confdefs.h <<_ACEOF
  7277. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7278. +_ACEOF
  7279. +
  7280. else
  7281. - echo "$ac_t""no" 1>&6
  7282. -echo "You don't have zlib properly installed."
  7283. + echo "You don't have zlib properly installed."
  7284. echo "Install it or try --without-zlib."
  7285. exit 1
  7286. fi
  7287. +
  7288. done
  7289. save_LDFLAGS=$LDFLAGS
  7290. LDFLAGS="$LDFLAGS $LD_STATIC_FLAG"
  7291. - echo $ac_n "checking for gzdopen in -lz""... $ac_c" 1>&6
  7292. -echo "configure:2977: checking for gzdopen in -lz" >&5
  7293. -ac_lib_var=`echo z'_'gzdopen | sed 'y%./+-%__p_%'`
  7294. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7295. - echo $ac_n "(cached) $ac_c" 1>&6
  7296. +
  7297. +echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
  7298. +echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
  7299. +if test "${ac_cv_lib_z_gzdopen+set}" = set; then
  7300. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7301. else
  7302. - ac_save_LIBS="$LIBS"
  7303. + ac_check_lib_save_LIBS=$LIBS
  7304. LIBS="-lz $LIBS"
  7305. -cat > conftest.$ac_ext <<EOF
  7306. -#line 2985 "configure"
  7307. +cat >conftest.$ac_ext <<_ACEOF
  7308. +#line $LINENO "configure"
  7309. #include "confdefs.h"
  7310. +
  7311. /* Override any gcc2 internal prototype to avoid an error. */
  7312. +#ifdef __cplusplus
  7313. +extern "C"
  7314. +#endif
  7315. /* We use char because int might match the return type of a gcc2
  7316. - builtin and then its argument prototype would still apply. */
  7317. -char gzdopen();
  7318. -
  7319. -int main() {
  7320. -gzdopen()
  7321. -; return 0; }
  7322. -EOF
  7323. -if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7324. - rm -rf conftest*
  7325. - eval "ac_cv_lib_$ac_lib_var=yes"
  7326. -else
  7327. - echo "configure: failed program was:" >&5
  7328. - cat conftest.$ac_ext >&5
  7329. - rm -rf conftest*
  7330. - eval "ac_cv_lib_$ac_lib_var=no"
  7331. -fi
  7332. -rm -f conftest*
  7333. -LIBS="$ac_save_LIBS"
  7334. -
  7335. -fi
  7336. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7337. - echo "$ac_t""yes" 1>&6
  7338. - ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  7339. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  7340. - cat >> confdefs.h <<EOF
  7341. -#define $ac_tr_lib 1
  7342. -EOF
  7343. + builtin and then its argument prototype would still apply. */
  7344. +char gzdopen ();
  7345. +#ifdef F77_DUMMY_MAIN
  7346. +# ifdef __cplusplus
  7347. + extern "C"
  7348. +# endif
  7349. + int F77_DUMMY_MAIN() { return 1; }
  7350. +#endif
  7351. +int
  7352. +main ()
  7353. +{
  7354. +gzdopen ();
  7355. + ;
  7356. + return 0;
  7357. +}
  7358. +_ACEOF
  7359. +rm -f conftest.$ac_objext conftest$ac_exeext
  7360. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7361. + (eval $ac_link) 2>&5
  7362. + ac_status=$?
  7363. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364. + (exit $ac_status); } &&
  7365. + { ac_try='test -s conftest$ac_exeext'
  7366. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7367. + (eval $ac_try) 2>&5
  7368. + ac_status=$?
  7369. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7370. + (exit $ac_status); }; }; then
  7371. + ac_cv_lib_z_gzdopen=yes
  7372. +else
  7373. + echo "$as_me: failed program was:" >&5
  7374. +cat conftest.$ac_ext >&5
  7375. +ac_cv_lib_z_gzdopen=no
  7376. +fi
  7377. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7378. +LIBS=$ac_check_lib_save_LIBS
  7379. +fi
  7380. +echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
  7381. +echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
  7382. +if test $ac_cv_lib_z_gzdopen = yes; then
  7383. + cat >>confdefs.h <<_ACEOF
  7384. +#define HAVE_LIBZ 1
  7385. +_ACEOF
  7386. LIBS="-lz $LIBS"
  7387. else
  7388. - echo "$ac_t""no" 1>&6
  7389. -echo "You don't have zlib properly installed."
  7390. + echo "You don't have zlib properly installed."
  7391. echo "Install it or try --without-zlib."
  7392. exit 1
  7393. fi
  7394. LDFLAGS=$save_LDFLAGS
  7395. - cat >> confdefs.h <<\EOF
  7396. + cat >>confdefs.h <<\_ACEOF
  7397. #define WITH_ZLIB 1
  7398. -EOF
  7399. +_ACEOF
  7400. fi
  7401. +
  7402. # Check whether --with-gnu-regexp or --without-gnu-regexp was given.
  7403. if test "${with_gnu_regexp+set}" = set; then
  7404. withval="$with_gnu_regexp"
  7405. - cat >> confdefs.h <<\EOF
  7406. + cat >>confdefs.h <<\_ACEOF
  7407. #define REGEX 1
  7408. -EOF
  7409. +_ACEOF
  7410. -else
  7411. - for ac_func in regexec regcomp
  7412. +
  7413. +for ac_func in regexec regcomp
  7414. do
  7415. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7416. -echo "configure:3045: checking for $ac_func" >&5
  7417. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7418. - echo $ac_n "(cached) $ac_c" 1>&6
  7419. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7420. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  7421. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7422. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  7423. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7424. else
  7425. - cat > conftest.$ac_ext <<EOF
  7426. -#line 3050 "configure"
  7427. + cat >conftest.$ac_ext <<_ACEOF
  7428. +#line $LINENO "configure"
  7429. #include "confdefs.h"
  7430. -/* System header to define __stub macros and hopefully few prototypes,
  7431. - which can conflict with char $ac_func(); below. */
  7432. +/* System header to define __stub macros and hopefully few prototypes
  7433. +else
  7434. + which can conflict with char $ac_func (); below. */
  7435. #include <assert.h>
  7436. /* Override any gcc2 internal prototype to avoid an error. */
  7437. +#ifdef __cplusplus
  7438. +extern "C"
  7439. +#endif
  7440. /* We use char because int might match the return type of a gcc2
  7441. - builtin and then its argument prototype would still apply. */
  7442. -char $ac_func();
  7443. -
  7444. -int main() {
  7445. -
  7446. + builtin and then its argument prototype would still apply. */
  7447. +char $ac_func ();
  7448. +char (*f) ();
  7449. +
  7450. +#ifdef F77_DUMMY_MAIN
  7451. +# ifdef __cplusplus
  7452. + extern "C"
  7453. +# endif
  7454. + int F77_DUMMY_MAIN() { return 1; }
  7455. +#endif
  7456. +int
  7457. +main ()
  7458. +{
  7459. /* The GNU C library defines this for functions which it implements
  7460. to always fail with ENOSYS. Some functions are actually named
  7461. something starting with __ and the normal name is an alias. */
  7462. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7463. choke me
  7464. #else
  7465. -$ac_func();
  7466. +f = $ac_func;
  7467. #endif
  7468. -; return 0; }
  7469. -EOF
  7470. -if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7471. - rm -rf conftest*
  7472. - eval "ac_cv_func_$ac_func=yes"
  7473. -else
  7474. - echo "configure: failed program was:" >&5
  7475. - cat conftest.$ac_ext >&5
  7476. - rm -rf conftest*
  7477. - eval "ac_cv_func_$ac_func=no"
  7478. -fi
  7479. -rm -f conftest*
  7480. -fi
  7481. + ;
  7482. + return 0;
  7483. +}
  7484. +_ACEOF
  7485. +rm -f conftest.$ac_objext conftest$ac_exeext
  7486. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7487. + (eval $ac_link) 2>&5
  7488. + ac_status=$?
  7489. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7490. + (exit $ac_status); } &&
  7491. + { ac_try='test -s conftest$ac_exeext'
  7492. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7493. + (eval $ac_try) 2>&5
  7494. + ac_status=$?
  7495. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496. + (exit $ac_status); }; }; then
  7497. + eval "$as_ac_var=yes"
  7498. +else
  7499. + echo "$as_me: failed program was:" >&5
  7500. +cat conftest.$ac_ext >&5
  7501. +eval "$as_ac_var=no"
  7502. +fi
  7503. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7504. +fi
  7505. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7506. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7507. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  7508. + cat >>confdefs.h <<_ACEOF
  7509. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7510. +_ACEOF
  7511. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7512. - echo "$ac_t""yes" 1>&6
  7513. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7514. - cat >> confdefs.h <<EOF
  7515. -#define $ac_tr_func 1
  7516. -EOF
  7517. -
  7518. else
  7519. - echo "$ac_t""no" 1>&6
  7520. -cat >> confdefs.h <<\EOF
  7521. + cat >>confdefs.h <<\_ACEOF
  7522. #define REGEX 1
  7523. -EOF
  7524. +_ACEOF
  7525. fi
  7526. done
  7527. -fi
  7528. +fi;
  7529. # Check whether --with-gcrypt or --without-gcrypt was given.
  7530. if test "${with_gcrypt+set}" = set; then
  7531. withval="$with_gcrypt"
  7532. - cat >> confdefs.h <<\EOF
  7533. + cat >>confdefs.h <<\_ACEOF
  7534. #define WITH_GCRYPT 1
  7535. -EOF
  7536. +_ACEOF
  7537. - ac_safe=`echo "gcrypt.h" | sed 'y%./+-%__p_%'`
  7538. -echo $ac_n "checking for gcrypt.h""... $ac_c" 1>&6
  7539. -echo "configure:3114: checking for gcrypt.h" >&5
  7540. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7541. - echo $ac_n "(cached) $ac_c" 1>&6
  7542. -else
  7543. - cat > conftest.$ac_ext <<EOF
  7544. -#line 3119 "configure"
  7545. + if test "${ac_cv_header_gcrypt_h+set}" = set; then
  7546. + echo "$as_me:$LINENO: checking for gcrypt.h" >&5
  7547. +echo $ECHO_N "checking for gcrypt.h... $ECHO_C" >&6
  7548. +if test "${ac_cv_header_gcrypt_h+set}" = set; then
  7549. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7550. +fi
  7551. +echo "$as_me:$LINENO: result: $ac_cv_header_gcrypt_h" >&5
  7552. +echo "${ECHO_T}$ac_cv_header_gcrypt_h" >&6
  7553. +else
  7554. + # Is the header compilable?
  7555. +echo "$as_me:$LINENO: checking gcrypt.h usability" >&5
  7556. +echo $ECHO_N "checking gcrypt.h usability... $ECHO_C" >&6
  7557. +cat >conftest.$ac_ext <<_ACEOF
  7558. +#line $LINENO "configure"
  7559. +#include "confdefs.h"
  7560. +$ac_includes_default
  7561. +#include <gcrypt.h>
  7562. +_ACEOF
  7563. +rm -f conftest.$ac_objext
  7564. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7565. + (eval $ac_compile) 2>&5
  7566. + ac_status=$?
  7567. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7568. + (exit $ac_status); } &&
  7569. + { ac_try='test -s conftest.$ac_objext'
  7570. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7571. + (eval $ac_try) 2>&5
  7572. + ac_status=$?
  7573. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7574. + (exit $ac_status); }; }; then
  7575. + ac_header_compiler=yes
  7576. +else
  7577. + echo "$as_me: failed program was:" >&5
  7578. +cat conftest.$ac_ext >&5
  7579. +ac_header_compiler=no
  7580. +fi
  7581. +rm -f conftest.$ac_objext conftest.$ac_ext
  7582. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7583. +echo "${ECHO_T}$ac_header_compiler" >&6
  7584. +
  7585. +# Is the header present?
  7586. +echo "$as_me:$LINENO: checking gcrypt.h presence" >&5
  7587. +echo $ECHO_N "checking gcrypt.h presence... $ECHO_C" >&6
  7588. +cat >conftest.$ac_ext <<_ACEOF
  7589. +#line $LINENO "configure"
  7590. #include "confdefs.h"
  7591. #include <gcrypt.h>
  7592. -EOF
  7593. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7594. -{ (eval echo configure:3124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7595. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7596. -if test -z "$ac_err"; then
  7597. - rm -rf conftest*
  7598. - eval "ac_cv_header_$ac_safe=yes"
  7599. +_ACEOF
  7600. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7601. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7602. + ac_status=$?
  7603. + egrep -v '^ *\+' conftest.er1 >conftest.err
  7604. + rm -f conftest.er1
  7605. + cat conftest.err >&5
  7606. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7607. + (exit $ac_status); } >/dev/null; then
  7608. + if test -s conftest.err; then
  7609. + ac_cpp_err=$ac_c_preproc_warn_flag
  7610. + else
  7611. + ac_cpp_err=
  7612. + fi
  7613. +else
  7614. + ac_cpp_err=yes
  7615. +fi
  7616. +if test -z "$ac_cpp_err"; then
  7617. + ac_header_preproc=yes
  7618. else
  7619. - echo "$ac_err" >&5
  7620. - echo "configure: failed program was:" >&5
  7621. + echo "$as_me: failed program was:" >&5
  7622. cat conftest.$ac_ext >&5
  7623. - rm -rf conftest*
  7624. - eval "ac_cv_header_$ac_safe=no"
  7625. + ac_header_preproc=no
  7626. fi
  7627. -rm -f conftest*
  7628. +rm -f conftest.err conftest.$ac_ext
  7629. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7630. +echo "${ECHO_T}$ac_header_preproc" >&6
  7631. +
  7632. +# So? What about this header?
  7633. +case $ac_header_compiler:$ac_header_preproc in
  7634. + yes:no )
  7635. + { echo "$as_me:$LINENO: WARNING: gcrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7636. +echo "$as_me: WARNING: gcrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7637. + { echo "$as_me:$LINENO: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&5
  7638. +echo "$as_me: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&2;};;
  7639. + no:yes )
  7640. + { echo "$as_me:$LINENO: WARNING: gcrypt.h: present but cannot be compiled" >&5
  7641. +echo "$as_me: WARNING: gcrypt.h: present but cannot be compiled" >&2;}
  7642. + { echo "$as_me:$LINENO: WARNING: gcrypt.h: check for missing prerequisite headers?" >&5
  7643. +echo "$as_me: WARNING: gcrypt.h: check for missing prerequisite headers?" >&2;}
  7644. + { echo "$as_me:$LINENO: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&5
  7645. +echo "$as_me: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&2;};;
  7646. +esac
  7647. +echo "$as_me:$LINENO: checking for gcrypt.h" >&5
  7648. +echo $ECHO_N "checking for gcrypt.h... $ECHO_C" >&6
  7649. +if test "${ac_cv_header_gcrypt_h+set}" = set; then
  7650. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7651. +else
  7652. + ac_cv_header_gcrypt_h=$ac_header_preproc
  7653. fi
  7654. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7655. - echo "$ac_t""yes" 1>&6
  7656. +echo "$as_me:$LINENO: result: $ac_cv_header_gcrypt_h" >&5
  7657. +echo "${ECHO_T}$ac_cv_header_gcrypt_h" >&6
  7658. +
  7659. +fi
  7660. +if test $ac_cv_header_gcrypt_h = yes; then
  7661. :
  7662. else
  7663. - echo "$ac_t""no" 1>&6
  7664. -echo "You don't have libgcrypt properly installed."
  7665. + echo "You don't have libgcrypt properly installed."
  7666. echo "Install it if you need one."
  7667. exit 1
  7668. fi
  7669. +
  7670. CRYPTLIB="-lgcrypt"
  7671. compoptionstring="${compoptionstring}WITH_GCRYPT\\n"
  7672. -
  7673. else
  7674. with_gcrypt=no
  7675. -fi
  7676. +fi;
  7677. -
  7678. -echo $ac_n "checking for mhash_get_block_size in -lmhash""... $ac_c" 1>&6
  7679. -echo "configure:3157: checking for mhash_get_block_size in -lmhash" >&5
  7680. -ac_lib_var=`echo mhash'_'mhash_get_block_size | sed 'y%./+-%__p_%'`
  7681. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7682. - echo $ac_n "(cached) $ac_c" 1>&6
  7683. +echo "$as_me:$LINENO: checking for mhash_get_block_size in -lmhash" >&5
  7684. +echo $ECHO_N "checking for mhash_get_block_size in -lmhash... $ECHO_C" >&6
  7685. +if test "${ac_cv_lib_mhash_mhash_get_block_size+set}" = set; then
  7686. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7687. else
  7688. - ac_save_LIBS="$LIBS"
  7689. + ac_check_lib_save_LIBS=$LIBS
  7690. LIBS="-lmhash $LIBS"
  7691. -cat > conftest.$ac_ext <<EOF
  7692. -#line 3165 "configure"
  7693. +cat >conftest.$ac_ext <<_ACEOF
  7694. +#line $LINENO "configure"
  7695. #include "confdefs.h"
  7696. +
  7697. /* Override any gcc2 internal prototype to avoid an error. */
  7698. +#ifdef __cplusplus
  7699. +extern "C"
  7700. +#endif
  7701. /* We use char because int might match the return type of a gcc2
  7702. - builtin and then its argument prototype would still apply. */
  7703. -char mhash_get_block_size();
  7704. -
  7705. -int main() {
  7706. -mhash_get_block_size()
  7707. -; return 0; }
  7708. -EOF
  7709. -if { (eval echo configure:3176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7710. - rm -rf conftest*
  7711. - eval "ac_cv_lib_$ac_lib_var=yes"
  7712. -else
  7713. - echo "configure: failed program was:" >&5
  7714. - cat conftest.$ac_ext >&5
  7715. - rm -rf conftest*
  7716. - eval "ac_cv_lib_$ac_lib_var=no"
  7717. -fi
  7718. -rm -f conftest*
  7719. -LIBS="$ac_save_LIBS"
  7720. -
  7721. -fi
  7722. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7723. - echo "$ac_t""yes" 1>&6
  7724. + builtin and then its argument prototype would still apply. */
  7725. +char mhash_get_block_size ();
  7726. +#ifdef F77_DUMMY_MAIN
  7727. +# ifdef __cplusplus
  7728. + extern "C"
  7729. +# endif
  7730. + int F77_DUMMY_MAIN() { return 1; }
  7731. +#endif
  7732. +int
  7733. +main ()
  7734. +{
  7735. +mhash_get_block_size ();
  7736. + ;
  7737. + return 0;
  7738. +}
  7739. +_ACEOF
  7740. +rm -f conftest.$ac_objext conftest$ac_exeext
  7741. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7742. + (eval $ac_link) 2>&5
  7743. + ac_status=$?
  7744. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7745. + (exit $ac_status); } &&
  7746. + { ac_try='test -s conftest$ac_exeext'
  7747. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7748. + (eval $ac_try) 2>&5
  7749. + ac_status=$?
  7750. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7751. + (exit $ac_status); }; }; then
  7752. + ac_cv_lib_mhash_mhash_get_block_size=yes
  7753. +else
  7754. + echo "$as_me: failed program was:" >&5
  7755. +cat conftest.$ac_ext >&5
  7756. +ac_cv_lib_mhash_mhash_get_block_size=no
  7757. +fi
  7758. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7759. +LIBS=$ac_check_lib_save_LIBS
  7760. +fi
  7761. +echo "$as_me:$LINENO: result: $ac_cv_lib_mhash_mhash_get_block_size" >&5
  7762. +echo "${ECHO_T}$ac_cv_lib_mhash_mhash_get_block_size" >&6
  7763. +if test $ac_cv_lib_mhash_mhash_get_block_size = yes; then
  7764. CRYPTLIB="-lmhash"
  7765. compoptionstring="${compoptionstring}WITH_MHASH\\n"
  7766. - cat >> confdefs.h <<\EOF
  7767. + cat >>confdefs.h <<\_ACEOF
  7768. #define WITH_MHASH 1
  7769. -EOF
  7770. +_ACEOF
  7771. else
  7772. - echo "$ac_t""no" 1>&6
  7773. -echo "You must have libmhash properly installed."
  7774. + echo "You must have libmhash properly installed."
  7775. exit 1
  7776. fi
  7777. +
  7778. # Check whether --with-confighmactype or --without-confighmactype was given.
  7779. if test "${with_confighmactype+set}" = set; then
  7780. withval="$with_confighmactype"
  7781. if test "x$withval" = "xmd5" ;then
  7782. - cat >> confdefs.h <<\EOF
  7783. + cat >>confdefs.h <<\_ACEOF
  7784. #define CONFIGHMACTYPE MHASH_MD5
  7785. -EOF
  7786. +_ACEOF
  7787. - else
  7788. + else
  7789. if test "x$withval" = "xsha1" ;then
  7790. - cat >> confdefs.h <<\EOF
  7791. + cat >>confdefs.h <<\_ACEOF
  7792. #define CONFIGHMACTYPE MHASH_SHA1
  7793. -EOF
  7794. +_ACEOF
  7795. - else
  7796. + else
  7797. echo "Valid parameters for --with-confighmactype are md5
  7798. else
  7799. sha1"
  7800. @@ -3225,7 +6551,7 @@
  7801. fi
  7802. fi
  7803. -fi
  7804. +fi;
  7805. # Check whether --with-confighmackey or --without-confighmackey was given.
  7806. @@ -3246,47 +6572,47 @@
  7807. key08=`echo $withval|cut -c25-28`
  7808. key09=`echo $withval|cut -c29-31`
  7809. - cat >> confdefs.h <<EOF
  7810. + cat >>confdefs.h <<_ACEOF
  7811. #define CONFHMACKEY_00 "$key00"
  7812. -EOF
  7813. +_ACEOF
  7814. - cat >> confdefs.h <<EOF
  7815. + cat >>confdefs.h <<_ACEOF
  7816. #define CONFHMACKEY_01 "$key01"
  7817. -EOF
  7818. +_ACEOF
  7819. - cat >> confdefs.h <<EOF
  7820. + cat >>confdefs.h <<_ACEOF
  7821. #define CONFHMACKEY_02 "$key02"
  7822. -EOF
  7823. +_ACEOF
  7824. - cat >> confdefs.h <<EOF
  7825. + cat >>confdefs.h <<_ACEOF
  7826. #define CONFHMACKEY_03 "$key03"
  7827. -EOF
  7828. +_ACEOF
  7829. - cat >> confdefs.h <<EOF
  7830. + cat >>confdefs.h <<_ACEOF
  7831. #define CONFHMACKEY_04 "$key04"
  7832. -EOF
  7833. +_ACEOF
  7834. - cat >> confdefs.h <<EOF
  7835. + cat >>confdefs.h <<_ACEOF
  7836. #define CONFHMACKEY_05 "$key05"
  7837. -EOF
  7838. +_ACEOF
  7839. - cat >> confdefs.h <<EOF
  7840. + cat >>confdefs.h <<_ACEOF
  7841. #define CONFHMACKEY_06 "$key06"
  7842. -EOF
  7843. +_ACEOF
  7844. - cat >> confdefs.h <<EOF
  7845. + cat >>confdefs.h <<_ACEOF
  7846. #define CONFHMACKEY_07 "$key07"
  7847. -EOF
  7848. +_ACEOF
  7849. - cat >> confdefs.h <<EOF
  7850. + cat >>confdefs.h <<_ACEOF
  7851. #define CONFHMACKEY_08 "$key08"
  7852. -EOF
  7853. +_ACEOF
  7854. - cat >> confdefs.h <<EOF
  7855. + cat >>confdefs.h <<_ACEOF
  7856. #define CONFHMACKEY_09 "$key09"
  7857. -EOF
  7858. +_ACEOF
  7859. -fi
  7860. +fi;
  7861. @@ -3294,17 +6620,17 @@
  7862. if test "${with_dbhmactype+set}" = set; then
  7863. withval="$with_dbhmactype"
  7864. if test "x$withval" = "xmd5" ;then
  7865. - cat >> confdefs.h <<\EOF
  7866. + cat >>confdefs.h <<\_ACEOF
  7867. #define DBHMACTYPE MHASH_MD5
  7868. -EOF
  7869. +_ACEOF
  7870. - else
  7871. + else
  7872. if test "x$withval" = "xsha1" ;then
  7873. - cat >> confdefs.h <<\EOF
  7874. + cat >>confdefs.h <<\_ACEOF
  7875. #define DBHMACTYPE MHASH_SHA1
  7876. -EOF
  7877. +_ACEOF
  7878. - else
  7879. + else
  7880. echo "Valid parameters for --with-dbhmactype are md5
  7881. else
  7882. sha1"
  7883. @@ -3312,7 +6638,7 @@
  7884. fi
  7885. fi
  7886. -fi
  7887. +fi;
  7888. # Check whether --with-dbhmackey or --without-dbhmackey was given.
  7889. @@ -3333,690 +6659,1540 @@
  7890. key08=`echo $withval|cut -c25-28`
  7891. key09=`echo $withval|cut -c29-31`
  7892. - cat >> confdefs.h <<EOF
  7893. + cat >>confdefs.h <<_ACEOF
  7894. #define DBHMACKEY_00 "$key00"
  7895. -EOF
  7896. +_ACEOF
  7897. - cat >> confdefs.h <<EOF
  7898. + cat >>confdefs.h <<_ACEOF
  7899. #define DBHMACKEY_01 "$key01"
  7900. -EOF
  7901. +_ACEOF
  7902. - cat >> confdefs.h <<EOF
  7903. + cat >>confdefs.h <<_ACEOF
  7904. #define DBHMACKEY_02 "$key02"
  7905. -EOF
  7906. +_ACEOF
  7907. - cat >> confdefs.h <<EOF
  7908. + cat >>confdefs.h <<_ACEOF
  7909. #define DBHMACKEY_03 "$key03"
  7910. -EOF
  7911. +_ACEOF
  7912. - cat >> confdefs.h <<EOF
  7913. + cat >>confdefs.h <<_ACEOF
  7914. #define DBHMACKEY_04 "$key04"
  7915. -EOF
  7916. +_ACEOF
  7917. - cat >> confdefs.h <<EOF
  7918. + cat >>confdefs.h <<_ACEOF
  7919. #define DBHMACKEY_05 "$key05"
  7920. -EOF
  7921. +_ACEOF
  7922. - cat >> confdefs.h <<EOF
  7923. + cat >>confdefs.h <<_ACEOF
  7924. #define DBHMACKEY_06 "$key06"
  7925. -EOF
  7926. +_ACEOF
  7927. - cat >> confdefs.h <<EOF
  7928. + cat >>confdefs.h <<_ACEOF
  7929. #define DBHMACKEY_07 "$key07"
  7930. -EOF
  7931. +_ACEOF
  7932. - cat >> confdefs.h <<EOF
  7933. + cat >>confdefs.h <<_ACEOF
  7934. #define DBHMACKEY_08 "$key08"
  7935. -EOF
  7936. +_ACEOF
  7937. - cat >> confdefs.h <<EOF
  7938. + cat >>confdefs.h <<_ACEOF
  7939. #define DBHMACKEY_09 "$key09"
  7940. -EOF
  7941. -
  7942. -fi
  7943. +_ACEOF
  7944. +fi;
  7945. # Check whether --enable-forced_configmd or --disable-forced_configmd was given.
  7946. if test "${enable_forced_configmd+set}" = set; then
  7947. enableval="$enable_forced_configmd"
  7948. - cat >> confdefs.h <<\EOF
  7949. + cat >>confdefs.h <<\_ACEOF
  7950. #define FORCECONFIGMD 1
  7951. -EOF
  7952. +_ACEOF
  7953. else
  7954. - cat >> confdefs.h <<\EOF
  7955. + cat >>confdefs.h <<\_ACEOF
  7956. #define FORCECONFIGMD 0
  7957. -EOF
  7958. -
  7959. -fi
  7960. +_ACEOF
  7961. +fi;
  7962. # Check whether --enable-forced_dbmd or --disable-forced_dbmd was given.
  7963. if test "${enable_forced_dbmd+set}" = set; then
  7964. enableval="$enable_forced_dbmd"
  7965. - cat >> confdefs.h <<\EOF
  7966. + cat >>confdefs.h <<\_ACEOF
  7967. #define FORCEDBMD 1
  7968. -EOF
  7969. +_ACEOF
  7970. else
  7971. - cat >> confdefs.h <<\EOF
  7972. + cat >>confdefs.h <<\_ACEOF
  7973. #define FORCEDBMD 0
  7974. -EOF
  7975. +_ACEOF
  7976. -fi
  7977. +fi;
  7978. # Check whether --with-initial_errors_to or --without-initial_errors_to was given.
  7979. if test "${with_initial_errors_to+set}" = set; then
  7980. withval="$with_initial_errors_to"
  7981. - cat >> confdefs.h <<EOF
  7982. + cat >>confdefs.h <<_ACEOF
  7983. #define INITIALERRORSTO "$withval"
  7984. -EOF
  7985. +_ACEOF
  7986. else
  7987. - cat >> confdefs.h <<EOF
  7988. + cat >>confdefs.h <<_ACEOF
  7989. #define INITIALERRORSTO "stderr"
  7990. -EOF
  7991. -
  7992. -fi
  7993. +_ACEOF
  7994. +fi;
  7995. -echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
  7996. -echo "configure:3427: checking for crypt in -lc" >&5
  7997. -ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
  7998. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7999. - echo $ac_n "(cached) $ac_c" 1>&6
  8000. +echo "$as_me:$LINENO: checking for crypt in -lc" >&5
  8001. +echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
  8002. +if test "${ac_cv_lib_c_crypt+set}" = set; then
  8003. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8004. else
  8005. - ac_save_LIBS="$LIBS"
  8006. + ac_check_lib_save_LIBS=$LIBS
  8007. LIBS="-lc $LIBS"
  8008. -cat > conftest.$ac_ext <<EOF
  8009. -#line 3435 "configure"
  8010. +cat >conftest.$ac_ext <<_ACEOF
  8011. +#line $LINENO "configure"
  8012. #include "confdefs.h"
  8013. -/* Override any gcc2 internal prototype to avoid an error. */
  8014. -/* We use char because int might match the return type of a gcc2
  8015. - builtin and then its argument prototype would still apply. */
  8016. -char crypt();
  8017. -
  8018. -int main() {
  8019. -crypt()
  8020. -; return 0; }
  8021. -EOF
  8022. -if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8023. - rm -rf conftest*
  8024. - eval "ac_cv_lib_$ac_lib_var=yes"
  8025. -else
  8026. - echo "configure: failed program was:" >&5
  8027. - cat conftest.$ac_ext >&5
  8028. - rm -rf conftest*
  8029. - eval "ac_cv_lib_$ac_lib_var=no"
  8030. -fi
  8031. -rm -f conftest*
  8032. -LIBS="$ac_save_LIBS"
  8033. -fi
  8034. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8035. - echo "$ac_t""yes" 1>&6
  8036. +/* Override any gcc2 internal prototype to avoid an error. */
  8037. +#ifdef __cplusplus
  8038. +extern "C"
  8039. +#endif
  8040. +/* We use char because int might match the return type of a gcc2
  8041. + builtin and then its argument prototype would still apply. */
  8042. +char crypt ();
  8043. +#ifdef F77_DUMMY_MAIN
  8044. +# ifdef __cplusplus
  8045. + extern "C"
  8046. +# endif
  8047. + int F77_DUMMY_MAIN() { return 1; }
  8048. +#endif
  8049. +int
  8050. +main ()
  8051. +{
  8052. +crypt ();
  8053. + ;
  8054. + return 0;
  8055. +}
  8056. +_ACEOF
  8057. +rm -f conftest.$ac_objext conftest$ac_exeext
  8058. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8059. + (eval $ac_link) 2>&5
  8060. + ac_status=$?
  8061. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8062. + (exit $ac_status); } &&
  8063. + { ac_try='test -s conftest$ac_exeext'
  8064. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8065. + (eval $ac_try) 2>&5
  8066. + ac_status=$?
  8067. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8068. + (exit $ac_status); }; }; then
  8069. + ac_cv_lib_c_crypt=yes
  8070. +else
  8071. + echo "$as_me: failed program was:" >&5
  8072. +cat conftest.$ac_ext >&5
  8073. +ac_cv_lib_c_crypt=no
  8074. +fi
  8075. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8076. +LIBS=$ac_check_lib_save_LIBS
  8077. +fi
  8078. +echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
  8079. +echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
  8080. +if test $ac_cv_lib_c_crypt = yes; then
  8081. true
  8082. else
  8083. - echo "$ac_t""no" 1>&6
  8084. -echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
  8085. -echo "configure:3465: checking for crypt in -lcrypt" >&5
  8086. -ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
  8087. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8088. - echo $ac_n "(cached) $ac_c" 1>&6
  8089. +
  8090. +echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
  8091. +echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
  8092. +if test "${ac_cv_lib_crypt_crypt+set}" = set; then
  8093. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8094. else
  8095. - ac_save_LIBS="$LIBS"
  8096. + ac_check_lib_save_LIBS=$LIBS
  8097. LIBS="-lcrypt $LIBS"
  8098. -cat > conftest.$ac_ext <<EOF
  8099. -#line 3473 "configure"
  8100. +cat >conftest.$ac_ext <<_ACEOF
  8101. +#line $LINENO "configure"
  8102. #include "confdefs.h"
  8103. +
  8104. /* Override any gcc2 internal prototype to avoid an error. */
  8105. +#ifdef __cplusplus
  8106. +extern "C"
  8107. +#endif
  8108. /* We use char because int might match the return type of a gcc2
  8109. - builtin and then its argument prototype would still apply. */
  8110. -char crypt();
  8111. -
  8112. -int main() {
  8113. -crypt()
  8114. -; return 0; }
  8115. -EOF
  8116. -if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8117. - rm -rf conftest*
  8118. - eval "ac_cv_lib_$ac_lib_var=yes"
  8119. -else
  8120. - echo "configure: failed program was:" >&5
  8121. - cat conftest.$ac_ext >&5
  8122. - rm -rf conftest*
  8123. - eval "ac_cv_lib_$ac_lib_var=no"
  8124. -fi
  8125. -rm -f conftest*
  8126. -LIBS="$ac_save_LIBS"
  8127. -
  8128. -fi
  8129. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8130. - echo "$ac_t""yes" 1>&6
  8131. - ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/^a-zA-Z0-9_/_/g' \
  8132. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  8133. - cat >> confdefs.h <<EOF
  8134. -#define $ac_tr_lib 1
  8135. -EOF
  8136. + builtin and then its argument prototype would still apply. */
  8137. +char crypt ();
  8138. +#ifdef F77_DUMMY_MAIN
  8139. +# ifdef __cplusplus
  8140. + extern "C"
  8141. +# endif
  8142. + int F77_DUMMY_MAIN() { return 1; }
  8143. +#endif
  8144. +int
  8145. +main ()
  8146. +{
  8147. +crypt ();
  8148. + ;
  8149. + return 0;
  8150. +}
  8151. +_ACEOF
  8152. +rm -f conftest.$ac_objext conftest$ac_exeext
  8153. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8154. + (eval $ac_link) 2>&5
  8155. + ac_status=$?
  8156. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8157. + (exit $ac_status); } &&
  8158. + { ac_try='test -s conftest$ac_exeext'
  8159. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8160. + (eval $ac_try) 2>&5
  8161. + ac_status=$?
  8162. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8163. + (exit $ac_status); }; }; then
  8164. + ac_cv_lib_crypt_crypt=yes
  8165. +else
  8166. + echo "$as_me: failed program was:" >&5
  8167. +cat conftest.$ac_ext >&5
  8168. +ac_cv_lib_crypt_crypt=no
  8169. +fi
  8170. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8171. +LIBS=$ac_check_lib_save_LIBS
  8172. +fi
  8173. +echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
  8174. +echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
  8175. +if test $ac_cv_lib_crypt_crypt = yes; then
  8176. + cat >>confdefs.h <<_ACEOF
  8177. +#define HAVE_LIBCRYPT 1
  8178. +_ACEOF
  8179. LIBS="-lcrypt $LIBS"
  8180. -else
  8181. - echo "$ac_t""no" 1>&6
  8182. fi
  8183. fi
  8184. -echo $ac_n "checking for PostgresSQL support""... $ac_c" 1>&6
  8185. -echo "configure:3515: checking for PostgresSQL support" >&5
  8186. +echo "$as_me:$LINENO: checking for PostgresSQL support" >&5
  8187. +echo $ECHO_N "checking for PostgresSQL support... $ECHO_C" >&6
  8188. +
  8189. # Check whether --with-psql or --without-psql was given.
  8190. if test "${with_psql+set}" = set; then
  8191. withval="$with_psql"
  8192. - cat >> confdefs.h <<\EOF
  8193. + cat >>confdefs.h <<\_ACEOF
  8194. #define WITH_PSQL 1
  8195. -EOF
  8196. +_ACEOF
  8197. - echo $ac_n "checking for PQclear in -lpq""... $ac_c" 1>&6
  8198. -echo "configure:3524: checking for PQclear in -lpq" >&5
  8199. -ac_lib_var=`echo pq'_'PQclear | sed 'y%./+-%__p_%'`
  8200. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8201. - echo $ac_n "(cached) $ac_c" 1>&6
  8202. +
  8203. +echo "$as_me:$LINENO: checking for PQclear in -lpq" >&5
  8204. +echo $ECHO_N "checking for PQclear in -lpq... $ECHO_C" >&6
  8205. +if test "${ac_cv_lib_pq_PQclear+set}" = set; then
  8206. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8207. else
  8208. - ac_save_LIBS="$LIBS"
  8209. + ac_check_lib_save_LIBS=$LIBS
  8210. LIBS="-lpq $LIBS"
  8211. -cat > conftest.$ac_ext <<EOF
  8212. -#line 3532 "configure"
  8213. +cat >conftest.$ac_ext <<_ACEOF
  8214. +#line $LINENO "configure"
  8215. #include "confdefs.h"
  8216. +
  8217. /* Override any gcc2 internal prototype to avoid an error. */
  8218. +#ifdef __cplusplus
  8219. +extern "C"
  8220. +#endif
  8221. /* We use char because int might match the return type of a gcc2
  8222. - builtin and then its argument prototype would still apply. */
  8223. -char PQclear();
  8224. -
  8225. -int main() {
  8226. -PQclear()
  8227. -; return 0; }
  8228. -EOF
  8229. -if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8230. - rm -rf conftest*
  8231. - eval "ac_cv_lib_$ac_lib_var=yes"
  8232. -else
  8233. - echo "configure: failed program was:" >&5
  8234. - cat conftest.$ac_ext >&5
  8235. - rm -rf conftest*
  8236. - eval "ac_cv_lib_$ac_lib_var=no"
  8237. -fi
  8238. -rm -f conftest*
  8239. -LIBS="$ac_save_LIBS"
  8240. -
  8241. -fi
  8242. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8243. - echo "$ac_t""yes" 1>&6
  8244. - ac_tr_lib=HAVE_LIB`echo pq | sed -e 's/^a-zA-Z0-9_/_/g' \
  8245. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  8246. - cat >> confdefs.h <<EOF
  8247. -#define $ac_tr_lib 1
  8248. -EOF
  8249. + builtin and then its argument prototype would still apply. */
  8250. +char PQclear ();
  8251. +#ifdef F77_DUMMY_MAIN
  8252. +# ifdef __cplusplus
  8253. + extern "C"
  8254. +# endif
  8255. + int F77_DUMMY_MAIN() { return 1; }
  8256. +#endif
  8257. +int
  8258. +main ()
  8259. +{
  8260. +PQclear ();
  8261. + ;
  8262. + return 0;
  8263. +}
  8264. +_ACEOF
  8265. +rm -f conftest.$ac_objext conftest$ac_exeext
  8266. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8267. + (eval $ac_link) 2>&5
  8268. + ac_status=$?
  8269. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8270. + (exit $ac_status); } &&
  8271. + { ac_try='test -s conftest$ac_exeext'
  8272. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8273. + (eval $ac_try) 2>&5
  8274. + ac_status=$?
  8275. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8276. + (exit $ac_status); }; }; then
  8277. + ac_cv_lib_pq_PQclear=yes
  8278. +else
  8279. + echo "$as_me: failed program was:" >&5
  8280. +cat conftest.$ac_ext >&5
  8281. +ac_cv_lib_pq_PQclear=no
  8282. +fi
  8283. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8284. +LIBS=$ac_check_lib_save_LIBS
  8285. +fi
  8286. +echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQclear" >&5
  8287. +echo "${ECHO_T}$ac_cv_lib_pq_PQclear" >&6
  8288. +if test $ac_cv_lib_pq_PQclear = yes; then
  8289. + cat >>confdefs.h <<_ACEOF
  8290. +#define HAVE_LIBPQ 1
  8291. +_ACEOF
  8292. LIBS="-lpq $LIBS"
  8293. else
  8294. - echo "$ac_t""no" 1>&6
  8295. -echo "You must postgres sql library installed."
  8296. + echo "You must postgres sql library installed."
  8297. exit 1
  8298. fi
  8299. PSQLLIB="-lpq"
  8300. compoptionstring="${compoptionstring}WITH_PSQL\\n"
  8301. - echo "$ac_t""yes" 1>&6
  8302. -
  8303. + echo "$as_me:$LINENO: result: yes" >&5
  8304. +echo "${ECHO_T}yes" >&6
  8305. +
  8306. else
  8307. PSQLLIB=""
  8308. with_psql=no
  8309. - echo "$ac_t""no" 1>&6
  8310. + echo "$as_me:$LINENO: result: no" >&5
  8311. +echo "${ECHO_T}no" >&6
  8312. +
  8313. +fi;
  8314. -fi
  8315. + ac_sources="$wk_link_files_src"
  8316. +ac_dests="$wk_link_files_dst "
  8317. +while test -n "$ac_sources"; do
  8318. + set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  8319. + set $ac_sources; ac_source=$1; shift; ac_sources=$*
  8320. + ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  8321. +done
  8322. +ac_config_links="$ac_config_links $ac_config_links_1"
  8323. -
  8324. -
  8325. compoptionstring="${compoptionstring}CONFIG_FILE = \\\"${config_file}\\\"\\n"
  8326. -cat >> confdefs.h <<EOF
  8327. +cat >>confdefs.h <<_ACEOF
  8328. #define AIDECOMPILEOPTIONS "${compoptionstring}"
  8329. -EOF
  8330. +_ACEOF
  8331. -trap '' 1 2 15
  8332. -cat > confcache <<\EOF
  8333. +ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile doc/Makefile doc/aide.conf aide.spec"
  8334. +cat >confcache <<\_ACEOF
  8335. # This file is a shell script that caches the results of configure
  8336. # tests run on this system so they can be shared between configure
  8337. -# scripts and configure runs. It is not useful on other systems.
  8338. -# If it contains results you don't want to keep, you may remove or edit it.
  8339. +# scripts and configure runs, see configure's option --config-cache.
  8340. +# It is not useful on other systems. If it contains results you don't
  8341. +# want to keep, you may remove or edit it.
  8342. #
  8343. -# By default, configure uses ./config.cache as the cache file,
  8344. -# creating it if it does not exist already. You can give configure
  8345. -# the --cache-file=FILE option to use a different cache file; that is
  8346. -# what configure does when it calls configure scripts in
  8347. -# subdirectories, so they share the cache.
  8348. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  8349. -# config.status only pays attention to the cache file if you give it the
  8350. -# --recheck option to rerun configure.
  8351. +# config.status only pays attention to the cache file if you give it
  8352. +# the --recheck option to rerun configure.
  8353. #
  8354. -EOF
  8355. +# `ac_cv_env_foo' variables (set or unset) will be overriden when
  8356. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  8357. +# following values.
  8358. +
  8359. +_ACEOF
  8360. +
  8361. # The following way of writing the cache mishandles newlines in values,
  8362. # but we know of no workaround that is simple, portable, and efficient.
  8363. # So, don't put newlines in cache variables' values.
  8364. # Ultrix sh set writes to stderr and can't be redirected directly,
  8365. # and sets the high bit in the cache file unless we assign to the vars.
  8366. -(set) 2>&1 |
  8367. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8368. - *ac_space=\ *)
  8369. - # `set' does not quote correctly, so add quotes (double-quote substitution
  8370. - # turns \\\\ into \\, and sed turns \\ into \).
  8371. - sed -n \
  8372. - -e "s/'/'\\\\''/g" \
  8373. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  8374. - ;;
  8375. - *)
  8376. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  8377. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  8378. - ;;
  8379. - esac >> confcache
  8380. -if cmp -s $cache_file confcache; then
  8381. - :
  8382. -else
  8383. +{
  8384. + (set) 2>&1 |
  8385. + case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8386. + *ac_space=\ *)
  8387. + # `set' does not quote correctly, so add quotes (double-quote
  8388. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  8389. + sed -n \
  8390. + "s/'/'\\\\''/g;
  8391. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8392. + ;;
  8393. + *)
  8394. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  8395. + sed -n \
  8396. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8397. + ;;
  8398. + esac;
  8399. +} |
  8400. + sed '
  8401. + t clear
  8402. + : clear
  8403. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8404. + t end
  8405. + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8406. + : end' >>confcache
  8407. +if cmp -s $cache_file confcache; then :; else
  8408. if test -w $cache_file; then
  8409. - echo "updating cache $cache_file"
  8410. - cat confcache > $cache_file
  8411. + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  8412. + cat confcache >$cache_file
  8413. else
  8414. echo "not updating unwritable cache $cache_file"
  8415. fi
  8416. fi
  8417. rm -f confcache
  8418. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  8419. -
  8420. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8421. # Let make expand exec_prefix.
  8422. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8423. -# Any assignment to VPATH causes Sun make to only execute
  8424. -# the first set of double-colon rules, so remove it if not needed.
  8425. -# If there is a colon in the path, we need to keep it.
  8426. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  8427. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8428. +# trailing colons and then remove the whole line if VPATH becomes empty
  8429. +# (actually we leave an empty line to preserve line numbers).
  8430. if test "x$srcdir" = x.; then
  8431. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  8432. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  8433. +s/:*\$(srcdir):*/:/;
  8434. +s/:*\${srcdir}:*/:/;
  8435. +s/:*@srcdir@:*/:/;
  8436. +s/^\([^=]*=[ ]*\):*/\1/;
  8437. +s/:*$//;
  8438. +s/^[^=]*=[ ]*$//;
  8439. +}'
  8440. fi
  8441. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  8442. -
  8443. DEFS=-DHAVE_CONFIG_H
  8444. -# Without the "./", some shells look in PATH for config.status.
  8445. -: ${CONFIG_STATUS=./config.status}
  8446. -echo creating $CONFIG_STATUS
  8447. -rm -f $CONFIG_STATUS
  8448. -cat > $CONFIG_STATUS <<EOF
  8449. -#! /bin/sh
  8450. -# Generated automatically by configure.
  8451. +: ${CONFIG_STATUS=./config.status}
  8452. +ac_clean_files_save=$ac_clean_files
  8453. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8454. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8455. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8456. +cat >$CONFIG_STATUS <<_ACEOF
  8457. +#! $SHELL
  8458. +# Generated by $as_me.
  8459. # Run this file to recreate the current configuration.
  8460. -# This directory was configured as follows,
  8461. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8462. -#
  8463. -# $0 $ac_configure_args
  8464. -#
  8465. # Compiler output produced by configure, useful for debugging
  8466. -# configure, is in ./config.log if it exists.
  8467. +# configure, is in config.log if it exists.
  8468. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  8469. -for ac_option
  8470. +debug=false
  8471. +SHELL=\${CONFIG_SHELL-$SHELL}
  8472. +_ACEOF
  8473. +
  8474. +cat >>$CONFIG_STATUS <<\_ACEOF
  8475. +
  8476. +## --------------------- ##
  8477. +## M4sh Initialization. ##
  8478. +## --------------------- ##
  8479. +
  8480. +# Be Bourne compatible
  8481. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8482. + emulate sh
  8483. + NULLCMD=:
  8484. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8485. + set -o posix
  8486. +fi
  8487. +
  8488. +# NLS nuisances.
  8489. +# Support unset when possible.
  8490. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  8491. + as_unset=unset
  8492. +else
  8493. + as_unset=false
  8494. +fi
  8495. +
  8496. +(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
  8497. + { $as_unset LANG || test "${LANG+set}" != set; } ||
  8498. + { LANG=C; export LANG; }
  8499. +(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
  8500. + { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
  8501. + { LC_ALL=C; export LC_ALL; }
  8502. +(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
  8503. + { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
  8504. + { LC_TIME=C; export LC_TIME; }
  8505. +(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
  8506. + { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
  8507. + { LC_CTYPE=C; export LC_CTYPE; }
  8508. +(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
  8509. + { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
  8510. + { LANGUAGE=C; export LANGUAGE; }
  8511. +(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
  8512. + { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
  8513. + { LC_COLLATE=C; export LC_COLLATE; }
  8514. +(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
  8515. + { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
  8516. + { LC_NUMERIC=C; export LC_NUMERIC; }
  8517. +(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
  8518. + { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
  8519. + { LC_MESSAGES=C; export LC_MESSAGES; }
  8520. +
  8521. +
  8522. +# Name of the executable.
  8523. +as_me=`(basename "$0") 2>/dev/null ||
  8524. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8525. + X"$0" : 'X\(//\)$' \| \
  8526. + X"$0" : 'X\(/\)$' \| \
  8527. + . : '\(.\)' 2>/dev/null ||
  8528. +echo X/"$0" |
  8529. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8530. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  8531. + /^X\/\(\/\).*/{ s//\1/; q; }
  8532. + s/.*/./; q'`
  8533. +
  8534. +# PATH needs CR, and LINENO needs CR and PATH.
  8535. +# Avoid depending upon Character Ranges.
  8536. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8537. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8538. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8539. +as_cr_digits='0123456789'
  8540. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  8541. +
  8542. +# The user is always right.
  8543. +if test "${PATH_SEPARATOR+set}" != set; then
  8544. + echo "#! /bin/sh" >conftest.sh
  8545. + echo "exit 0" >>conftest.sh
  8546. + chmod +x conftest.sh
  8547. + if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
  8548. + PATH_SEPARATOR=';'
  8549. + else
  8550. + PATH_SEPARATOR=:
  8551. + fi
  8552. + rm -f conftest.sh
  8553. +fi
  8554. +
  8555. +
  8556. + as_lineno_1=$LINENO
  8557. + as_lineno_2=$LINENO
  8558. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8559. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8560. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  8561. + # Find who we are. Look in the path if we contain no path at all
  8562. + # relative or not.
  8563. + case $0 in
  8564. + *[\\/]* ) as_myself=$0 ;;
  8565. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8566. +for as_dir in $PATH
  8567. do
  8568. - case "\$ac_option" in
  8569. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8570. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  8571. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  8572. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  8573. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  8574. - exit 0 ;;
  8575. - -help | --help | --hel | --he | --h)
  8576. - echo "\$ac_cs_usage"; exit 0 ;;
  8577. - *) echo "\$ac_cs_usage"; exit 1 ;;
  8578. + IFS=$as_save_IFS
  8579. + test -z "$as_dir" && as_dir=.
  8580. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8581. +done
  8582. +
  8583. + ;;
  8584. esac
  8585. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  8586. + # in which case we are not to be found in the path.
  8587. + if test "x$as_myself" = x; then
  8588. + as_myself=$0
  8589. + fi
  8590. + if test ! -f "$as_myself"; then
  8591. + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8592. +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8593. + { (exit 1); exit 1; }; }
  8594. + fi
  8595. + case $CONFIG_SHELL in
  8596. + '')
  8597. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8598. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8599. +do
  8600. + IFS=$as_save_IFS
  8601. + test -z "$as_dir" && as_dir=.
  8602. + for as_base in sh bash ksh sh5; do
  8603. + case $as_dir in
  8604. + /*)
  8605. + if ("$as_dir/$as_base" -c '
  8606. + as_lineno_1=$LINENO
  8607. + as_lineno_2=$LINENO
  8608. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8609. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8610. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8611. + CONFIG_SHELL=$as_dir/$as_base
  8612. + export CONFIG_SHELL
  8613. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8614. + fi;;
  8615. + esac
  8616. + done
  8617. done
  8618. +;;
  8619. + esac
  8620. -ac_given_srcdir=$srcdir
  8621. -ac_given_INSTALL="$INSTALL"
  8622. -
  8623. -trap 'rm -fr `echo "Makefile src/Makefile po/Makefile doc/Makefile doc/aide.conf
  8624. -aide.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  8625. -EOF
  8626. -cat >> $CONFIG_STATUS <<EOF
  8627. -
  8628. -# Protect against being on the right side of a sed subst in config.status.
  8629. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  8630. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  8631. -$ac_vpsub
  8632. -$extrasub
  8633. -s%@SHELL@%$SHELL%g
  8634. -s%@CFLAGS@%$CFLAGS%g
  8635. -s%@CPPFLAGS@%$CPPFLAGS%g
  8636. -s%@CXXFLAGS@%$CXXFLAGS%g
  8637. -s%@FFLAGS@%$FFLAGS%g
  8638. -s%@DEFS@%$DEFS%g
  8639. -s%@LDFLAGS@%$LDFLAGS%g
  8640. -s%@LIBS@%$LIBS%g
  8641. -s%@exec_prefix@%$exec_prefix%g
  8642. -s%@prefix@%$prefix%g
  8643. -s%@program_transform_name@%$program_transform_name%g
  8644. -s%@bindir@%$bindir%g
  8645. -s%@sbindir@%$sbindir%g
  8646. -s%@libexecdir@%$libexecdir%g
  8647. -s%@datadir@%$datadir%g
  8648. -s%@sysconfdir@%$sysconfdir%g
  8649. -s%@sharedstatedir@%$sharedstatedir%g
  8650. -s%@localstatedir@%$localstatedir%g
  8651. -s%@libdir@%$libdir%g
  8652. -s%@includedir@%$includedir%g
  8653. -s%@oldincludedir@%$oldincludedir%g
  8654. -s%@infodir@%$infodir%g
  8655. -s%@mandir@%$mandir%g
  8656. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  8657. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  8658. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  8659. -s%@PACKAGE@%$PACKAGE%g
  8660. -s%@VERSION@%$VERSION%g
  8661. -s%@ACLOCAL@%$ACLOCAL%g
  8662. -s%@AUTOCONF@%$AUTOCONF%g
  8663. -s%@AUTOMAKE@%$AUTOMAKE%g
  8664. -s%@AUTOHEADER@%$AUTOHEADER%g
  8665. -s%@MAKEINFO@%$MAKEINFO%g
  8666. -s%@SET_MAKE@%$SET_MAKE%g
  8667. -s%@CC@%$CC%g
  8668. -s%@RANLIB@%$RANLIB%g
  8669. -s%@YACC@%$YACC%g
  8670. -s%@LEX@%$LEX%g
  8671. -s%@LEXLIB@%$LEXLIB%g
  8672. -s%@CPP@%$CPP%g
  8673. -s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  8674. -s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
  8675. -s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
  8676. -s%@MAINT@%$MAINT%g
  8677. -s%@LD_STATIC_FLAG@%$LD_STATIC_FLAG%g
  8678. -s%@AIDE_USE_LOCALE@%$AIDE_USE_LOCALE%g
  8679. -s%@ACLLIB@%$ACLLIB%g
  8680. -s%@CRYPTLIB@%$CRYPTLIB%g
  8681. -s%@PSQLLIB@%$PSQLLIB%g
  8682. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8683. + # uniformly replaced by the line number. The first 'sed' inserts a
  8684. + # line-number line before each line; the second 'sed' does the real
  8685. + # work. The second script uses 'N' to pair each line-number line
  8686. + # with the numbered line, and appends trailing '-' during
  8687. + # substitution so that $LINENO is not a special case at line end.
  8688. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8689. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8690. + sed '=' <$as_myself |
  8691. + sed '
  8692. + N
  8693. + s,$,-,
  8694. + : loop
  8695. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8696. + t loop
  8697. + s,-$,,
  8698. + s,^['$as_cr_digits']*\n,,
  8699. + ' >$as_me.lineno &&
  8700. + chmod +x $as_me.lineno ||
  8701. + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8702. +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8703. + { (exit 1); exit 1; }; }
  8704. +
  8705. + # Don't try to exec as it changes $[0], causing all sort of problems
  8706. + # (the dirname of $[0] is not the place where we might find the
  8707. + # original and so on. Autoconf is especially sensible to this).
  8708. + . ./$as_me.lineno
  8709. + # Exit status is that of the last command.
  8710. + exit
  8711. +}
  8712. -CEOF
  8713. -EOF
  8714. -cat >> $CONFIG_STATUS <<\EOF
  8715. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8716. + *c*,-n*) ECHO_N= ECHO_C='
  8717. +' ECHO_T=' ' ;;
  8718. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8719. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8720. +esac
  8721. +
  8722. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8723. + as_expr=expr
  8724. +else
  8725. + as_expr=false
  8726. +fi
  8727. -# Split the substitutions into bite-sized pieces for seds with
  8728. -# small command number limits, like on Digital OSF/1 and HP-UX.
  8729. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  8730. -ac_file=1 # Number of current file.
  8731. -ac_beg=1 # First line for current file.
  8732. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  8733. -ac_more_lines=:
  8734. -ac_sed_cmds=""
  8735. -while $ac_more_lines; do
  8736. - if test $ac_beg -gt 1; then
  8737. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  8738. - else
  8739. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  8740. - fi
  8741. - if test ! -s conftest.s$ac_file; then
  8742. - ac_more_lines=false
  8743. - rm -f conftest.s$ac_file
  8744. +rm -f conf$$ conf$$.exe conf$$.file
  8745. +echo >conf$$.file
  8746. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  8747. + # We could just check for DJGPP; but this test a) works b) is more generic
  8748. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8749. + if test -f conf$$.exe; then
  8750. + # Don't use ln at all; we don't have any links
  8751. + as_ln_s='cp -p'
  8752. else
  8753. - if test -z "$ac_sed_cmds"; then
  8754. - ac_sed_cmds="sed -f conftest.s$ac_file"
  8755. - else
  8756. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  8757. - fi
  8758. - ac_file=`expr $ac_file + 1`
  8759. - ac_beg=$ac_end
  8760. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  8761. + as_ln_s='ln -s'
  8762. fi
  8763. +elif ln conf$$.file conf$$ 2>/dev/null; then
  8764. + as_ln_s=ln
  8765. +else
  8766. + as_ln_s='cp -p'
  8767. +fi
  8768. +rm -f conf$$ conf$$.exe conf$$.file
  8769. +
  8770. +as_executable_p="test -f"
  8771. +
  8772. +# Sed expression to map a string onto a valid CPP name.
  8773. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  8774. +
  8775. +# Sed expression to map a string onto a valid variable name.
  8776. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  8777. +
  8778. +
  8779. +# IFS
  8780. +# We need space, tab and new line, in precisely that order.
  8781. +as_nl='
  8782. +'
  8783. +IFS=" $as_nl"
  8784. +
  8785. +# CDPATH.
  8786. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
  8787. +
  8788. +exec 6>&1
  8789. +
  8790. +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  8791. +# report actual input values of CONFIG_FILES etc. instead of their
  8792. +# values after options handling. Logging --version etc. is OK.
  8793. +exec 5>>config.log
  8794. +{
  8795. + echo
  8796. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8797. +## Running $as_me. ##
  8798. +_ASBOX
  8799. +} >&5
  8800. +cat >&5 <<_CSEOF
  8801. +
  8802. +This file was extended by $as_me, which was
  8803. +generated by GNU Autoconf 2.53. Invocation command line was
  8804. +
  8805. + CONFIG_FILES = $CONFIG_FILES
  8806. + CONFIG_HEADERS = $CONFIG_HEADERS
  8807. + CONFIG_LINKS = $CONFIG_LINKS
  8808. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  8809. + $ $0 $@
  8810. +
  8811. +_CSEOF
  8812. +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8813. +echo >&5
  8814. +_ACEOF
  8815. +
  8816. +# Files that config.status was made for.
  8817. +if test -n "$ac_config_files"; then
  8818. + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8819. +fi
  8820. +
  8821. +if test -n "$ac_config_headers"; then
  8822. + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8823. +fi
  8824. +
  8825. +if test -n "$ac_config_links"; then
  8826. + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8827. +fi
  8828. +
  8829. +if test -n "$ac_config_commands"; then
  8830. + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8831. +fi
  8832. +
  8833. +cat >>$CONFIG_STATUS <<\_ACEOF
  8834. +
  8835. +ac_cs_usage="\
  8836. +\`$as_me' instantiates files from templates according to the
  8837. +current configuration.
  8838. +
  8839. +Usage: $0 [OPTIONS] [FILE]...
  8840. +
  8841. + -h, --help print this help, then exit
  8842. + -V, --version print version number, then exit
  8843. + -d, --debug don't remove temporary files
  8844. + --recheck update $as_me by reconfiguring in the same conditions
  8845. + --file=FILE[:TEMPLATE]
  8846. + instantiate the configuration file FILE
  8847. + --header=FILE[:TEMPLATE]
  8848. + instantiate the configuration header FILE
  8849. +
  8850. +Configuration files:
  8851. +$config_files
  8852. +
  8853. +Configuration headers:
  8854. +$config_headers
  8855. +
  8856. +Configuration links:
  8857. +$config_links
  8858. +
  8859. +Configuration commands:
  8860. +$config_commands
  8861. +
  8862. +Report bugs to <bug-autoconf@gnu.org>."
  8863. +_ACEOF
  8864. +
  8865. +cat >>$CONFIG_STATUS <<_ACEOF
  8866. +ac_cs_version="\\
  8867. +config.status
  8868. +configured by $0, generated by GNU Autoconf 2.53,
  8869. + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8870. +
  8871. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  8872. +Free Software Foundation, Inc.
  8873. +This config.status script is free software; the Free Software Foundation
  8874. +gives unlimited permission to copy, distribute and modify it."
  8875. +srcdir=$srcdir
  8876. +INSTALL="$INSTALL"
  8877. +_ACEOF
  8878. +
  8879. +cat >>$CONFIG_STATUS <<\_ACEOF
  8880. +# If no file are specified by the user, then we need to provide default
  8881. +# value. By we need to know if files were specified by the user.
  8882. +ac_need_defaults=:
  8883. +while test $# != 0
  8884. +do
  8885. + case $1 in
  8886. + --*=*)
  8887. + ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8888. + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8889. + shift
  8890. + set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
  8891. + shift
  8892. + ;;
  8893. + -*);;
  8894. + *) # This is not an option, so the user has probably given explicit
  8895. + # arguments.
  8896. + ac_need_defaults=false;;
  8897. + esac
  8898. +
  8899. + case $1 in
  8900. + # Handling of the options.
  8901. +_ACEOF
  8902. +cat >>$CONFIG_STATUS <<_ACEOF
  8903. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8904. + echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
  8905. + exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
  8906. +_ACEOF
  8907. +cat >>$CONFIG_STATUS <<\_ACEOF
  8908. + --version | --vers* | -V )
  8909. + echo "$ac_cs_version"; exit 0 ;;
  8910. + --he | --h)
  8911. + # Conflict between --help and --header
  8912. + { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8913. +Try \`$0 --help' for more information." >&5
  8914. +echo "$as_me: error: ambiguous option: $1
  8915. +Try \`$0 --help' for more information." >&2;}
  8916. + { (exit 1); exit 1; }; };;
  8917. + --help | --hel | -h )
  8918. + echo "$ac_cs_usage"; exit 0 ;;
  8919. + --debug | --d* | -d )
  8920. + debug=: ;;
  8921. + --file | --fil | --fi | --f )
  8922. + shift
  8923. + CONFIG_FILES="$CONFIG_FILES $1"
  8924. + ac_need_defaults=false;;
  8925. + --header | --heade | --head | --hea )
  8926. + shift
  8927. + CONFIG_HEADERS="$CONFIG_HEADERS $1"
  8928. + ac_need_defaults=false;;
  8929. +
  8930. + # This is an error.
  8931. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8932. +Try \`$0 --help' for more information." >&5
  8933. +echo "$as_me: error: unrecognized option: $1
  8934. +Try \`$0 --help' for more information." >&2;}
  8935. + { (exit 1); exit 1; }; } ;;
  8936. +
  8937. + *) ac_config_targets="$ac_config_targets $1" ;;
  8938. +
  8939. + esac
  8940. + shift
  8941. +done
  8942. +
  8943. +_ACEOF
  8944. +
  8945. +cat >>$CONFIG_STATUS <<_ACEOF
  8946. +#
  8947. +# INIT-COMMANDS section.
  8948. +#
  8949. +
  8950. +
  8951. +
  8952. +_ACEOF
  8953. +
  8954. +
  8955. +
  8956. +cat >>$CONFIG_STATUS <<\_ACEOF
  8957. +for ac_config_target in $ac_config_targets
  8958. +do
  8959. + case "$ac_config_target" in
  8960. + # Handling of arguments.
  8961. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8962. + "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8963. + "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
  8964. + "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  8965. + "doc/aide.conf" ) CONFIG_FILES="$CONFIG_FILES doc/aide.conf" ;;
  8966. + "aide.spec" ) CONFIG_FILES="$CONFIG_FILES aide.spec" ;;
  8967. + "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  8968. + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  8969. + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  8970. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8971. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8972. + { (exit 1); exit 1; }; };;
  8973. + esac
  8974. done
  8975. -if test -z "$ac_sed_cmds"; then
  8976. - ac_sed_cmds=cat
  8977. +
  8978. +# If the user did not use the arguments to specify the items to instantiate,
  8979. +# then the envvar interface is used. Set only those that are not.
  8980. +# We use the long form for the default assignment because of an extremely
  8981. +# bizarre bug on SunOS 4.1.3.
  8982. +if $ac_need_defaults; then
  8983. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8984. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8985. + test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  8986. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8987. fi
  8988. -EOF
  8989. -cat >> $CONFIG_STATUS <<EOF
  8990. +# Create a temporary directory, and hook for its removal unless debugging.
  8991. +$debug ||
  8992. +{
  8993. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8994. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  8995. +}
  8996. +
  8997. +# Create a (secure) tmp directory for tmp files.
  8998. +: ${TMPDIR=/tmp}
  8999. +{
  9000. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  9001. + test -n "$tmp" && test -d "$tmp"
  9002. +} ||
  9003. +{
  9004. + tmp=$TMPDIR/cs$$-$RANDOM
  9005. + (umask 077 && mkdir $tmp)
  9006. +} ||
  9007. +{
  9008. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  9009. + { (exit 1); exit 1; }
  9010. +}
  9011. +
  9012. +_ACEOF
  9013. +
  9014. +cat >>$CONFIG_STATUS <<_ACEOF
  9015. +
  9016. +#
  9017. +# CONFIG_FILES section.
  9018. +#
  9019. +
  9020. +# No need to generate the scripts if there are no CONFIG_FILES.
  9021. +# This happens for instance when ./config.status config.h
  9022. +if test -n "\$CONFIG_FILES"; then
  9023. + # Protect against being on the right side of a sed subst in config.status.
  9024. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  9025. + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  9026. +s,@SHELL@,$SHELL,;t t
  9027. +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  9028. +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  9029. +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  9030. +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  9031. +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  9032. +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  9033. +s,@exec_prefix@,$exec_prefix,;t t
  9034. +s,@prefix@,$prefix,;t t
  9035. +s,@program_transform_name@,$program_transform_name,;t t
  9036. +s,@bindir@,$bindir,;t t
  9037. +s,@sbindir@,$sbindir,;t t
  9038. +s,@libexecdir@,$libexecdir,;t t
  9039. +s,@datadir@,$datadir,;t t
  9040. +s,@sysconfdir@,$sysconfdir,;t t
  9041. +s,@sharedstatedir@,$sharedstatedir,;t t
  9042. +s,@localstatedir@,$localstatedir,;t t
  9043. +s,@libdir@,$libdir,;t t
  9044. +s,@includedir@,$includedir,;t t
  9045. +s,@oldincludedir@,$oldincludedir,;t t
  9046. +s,@infodir@,$infodir,;t t
  9047. +s,@mandir@,$mandir,;t t
  9048. +s,@build_alias@,$build_alias,;t t
  9049. +s,@host_alias@,$host_alias,;t t
  9050. +s,@target_alias@,$target_alias,;t t
  9051. +s,@DEFS@,$DEFS,;t t
  9052. +s,@ECHO_C@,$ECHO_C,;t t
  9053. +s,@ECHO_N@,$ECHO_N,;t t
  9054. +s,@ECHO_T@,$ECHO_T,;t t
  9055. +s,@LIBS@,$LIBS,;t t
  9056. +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  9057. +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  9058. +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  9059. +s,@PACKAGE@,$PACKAGE,;t t
  9060. +s,@VERSION@,$VERSION,;t t
  9061. +s,@ACLOCAL@,$ACLOCAL,;t t
  9062. +s,@AUTOCONF@,$AUTOCONF,;t t
  9063. +s,@AUTOMAKE@,$AUTOMAKE,;t t
  9064. +s,@AUTOHEADER@,$AUTOHEADER,;t t
  9065. +s,@MAKEINFO@,$MAKEINFO,;t t
  9066. +s,@SET_MAKE@,$SET_MAKE,;t t
  9067. +s,@CC@,$CC,;t t
  9068. +s,@CFLAGS@,$CFLAGS,;t t
  9069. +s,@LDFLAGS@,$LDFLAGS,;t t
  9070. +s,@CPPFLAGS@,$CPPFLAGS,;t t
  9071. +s,@ac_ct_CC@,$ac_ct_CC,;t t
  9072. +s,@EXEEXT@,$EXEEXT,;t t
  9073. +s,@OBJEXT@,$OBJEXT,;t t
  9074. +s,@RANLIB@,$RANLIB,;t t
  9075. +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  9076. +s,@YACC@,$YACC,;t t
  9077. +s,@LEX@,$LEX,;t t
  9078. +s,@LEXLIB@,$LEXLIB,;t t
  9079. +s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
  9080. +s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  9081. +s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  9082. +s,@MAINT@,$MAINT,;t t
  9083. +s,@LD_STATIC_FLAG@,$LD_STATIC_FLAG,;t t
  9084. +s,@CPP@,$CPP,;t t
  9085. +s,@AIDE_USE_LOCALE@,$AIDE_USE_LOCALE,;t t
  9086. +s,@ACLLIB@,$ACLLIB,;t t
  9087. +s,@CRYPTLIB@,$CRYPTLIB,;t t
  9088. +s,@PSQLLIB@,$PSQLLIB,;t t
  9089. +CEOF
  9090. +
  9091. +_ACEOF
  9092. +
  9093. + cat >>$CONFIG_STATUS <<\_ACEOF
  9094. + # Split the substitutions into bite-sized pieces for seds with
  9095. + # small command number limits, like on Digital OSF/1 and HP-UX.
  9096. + ac_max_sed_lines=48
  9097. + ac_sed_frag=1 # Number of current file.
  9098. + ac_beg=1 # First line for current file.
  9099. + ac_end=$ac_max_sed_lines # Line after last line for current file.
  9100. + ac_more_lines=:
  9101. + ac_sed_cmds=
  9102. + while $ac_more_lines; do
  9103. + if test $ac_beg -gt 1; then
  9104. + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9105. + else
  9106. + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9107. + fi
  9108. + if test ! -s $tmp/subs.frag; then
  9109. + ac_more_lines=false
  9110. + else
  9111. + # The purpose of the label and of the branching condition is to
  9112. + # speed up the sed processing (if there are no `@' at all, there
  9113. + # is no need to browse any of the substitutions).
  9114. + # These are the two extra sed commands mentioned above.
  9115. + (echo ':t
  9116. + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  9117. + if test -z "$ac_sed_cmds"; then
  9118. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  9119. + else
  9120. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  9121. + fi
  9122. + ac_sed_frag=`expr $ac_sed_frag + 1`
  9123. + ac_beg=$ac_end
  9124. + ac_end=`expr $ac_end + $ac_max_sed_lines`
  9125. + fi
  9126. + done
  9127. + if test -z "$ac_sed_cmds"; then
  9128. + ac_sed_cmds=cat
  9129. + fi
  9130. +fi # test -n "$CONFIG_FILES"
  9131. -CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile po/Makefile doc/Makefile doc/aide.conf
  9132. -aide.spec"}
  9133. -EOF
  9134. -cat >> $CONFIG_STATUS <<\EOF
  9135. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  9136. +_ACEOF
  9137. +cat >>$CONFIG_STATUS <<\_ACEOF
  9138. +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  9139. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9140. - case "$ac_file" in
  9141. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  9142. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9143. - *) ac_file_in="${ac_file}.in" ;;
  9144. - esac
  9145. -
  9146. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  9147. -
  9148. - # Remove last slash and all that follows it. Not all systems have dirname.
  9149. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  9150. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  9151. - # The file is in a subdirectory.
  9152. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  9153. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  9154. - # A "../" for each directory in $ac_dir_suffix.
  9155. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  9156. - else
  9157. - ac_dir_suffix= ac_dots=
  9158. - fi
  9159. -
  9160. - case "$ac_given_srcdir" in
  9161. - .) srcdir=.
  9162. - if test -z "$ac_dots"; then top_srcdir=.
  9163. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  9164. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  9165. + case $ac_file in
  9166. + - | *:- | *:-:* ) # input from stdin
  9167. + cat >$tmp/stdin
  9168. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9169. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9170. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9171. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9172. + * ) ac_file_in=$ac_file.in ;;
  9173. + esac
  9174. +
  9175. + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  9176. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9177. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9178. + X"$ac_file" : 'X\(//\)[^/]' \| \
  9179. + X"$ac_file" : 'X\(//\)$' \| \
  9180. + X"$ac_file" : 'X\(/\)' \| \
  9181. + . : '\(.\)' 2>/dev/null ||
  9182. +echo X"$ac_file" |
  9183. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9184. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9185. + /^X\(\/\/\)$/{ s//\1/; q; }
  9186. + /^X\(\/\).*/{ s//\1/; q; }
  9187. + s/.*/./; q'`
  9188. + { case "$ac_dir" in
  9189. + [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  9190. + *) as_incr_dir=.;;
  9191. +esac
  9192. +as_dummy="$ac_dir"
  9193. +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  9194. + case $as_mkdir_dir in
  9195. + # Skip DOS drivespec
  9196. + ?:) as_incr_dir=$as_mkdir_dir ;;
  9197. + *)
  9198. + as_incr_dir=$as_incr_dir/$as_mkdir_dir
  9199. + test -d "$as_incr_dir" ||
  9200. + mkdir "$as_incr_dir" ||
  9201. + { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
  9202. +echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
  9203. + { (exit 1); exit 1; }; }
  9204. + ;;
  9205. + esac
  9206. +done; }
  9207. +
  9208. + ac_builddir=.
  9209. +
  9210. +if test "$ac_dir" != .; then
  9211. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9212. + # A "../" for each directory in $ac_dir_suffix.
  9213. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9214. +else
  9215. + ac_dir_suffix= ac_top_builddir=
  9216. +fi
  9217. +
  9218. +case $srcdir in
  9219. + .) # No --srcdir option. We are building in place.
  9220. + ac_srcdir=.
  9221. + if test -z "$ac_top_builddir"; then
  9222. + ac_top_srcdir=.
  9223. + else
  9224. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9225. + fi ;;
  9226. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9227. + ac_srcdir=$srcdir$ac_dir_suffix;
  9228. + ac_top_srcdir=$srcdir ;;
  9229. *) # Relative path.
  9230. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  9231. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  9232. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9233. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9234. +esac
  9235. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9236. +# absolute.
  9237. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9238. +ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  9239. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9240. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9241. +
  9242. +
  9243. + case $INSTALL in
  9244. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9245. + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  9246. esac
  9247. - case "$ac_given_INSTALL" in
  9248. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  9249. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  9250. - esac
  9251. -
  9252. - echo creating "$ac_file"
  9253. - rm -f "$ac_file"
  9254. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  9255. - case "$ac_file" in
  9256. - *Makefile*) ac_comsub="1i\\
  9257. -# $configure_input" ;;
  9258. - *) ac_comsub= ;;
  9259. - esac
  9260. -
  9261. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  9262. - sed -e "$ac_comsub
  9263. -s%@configure_input@%$configure_input%g
  9264. -s%@srcdir@%$srcdir%g
  9265. -s%@top_srcdir@%$top_srcdir%g
  9266. -s%@INSTALL@%$INSTALL%g
  9267. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  9268. -fi; done
  9269. -rm -f conftest.s*
  9270. + if test x"$ac_file" != x-; then
  9271. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  9272. +echo "$as_me: creating $ac_file" >&6;}
  9273. + rm -f "$ac_file"
  9274. + fi
  9275. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  9276. + # use $as_me), people would be surprised to read:
  9277. + # /* config.h. Generated by config.status. */
  9278. + if test x"$ac_file" = x-; then
  9279. + configure_input=
  9280. + else
  9281. + configure_input="$ac_file. "
  9282. + fi
  9283. + configure_input=$configure_input"Generated from `echo $ac_file_in |
  9284. + sed 's,.*/,,'` by configure."
  9285. +
  9286. + # First look for the input files in the build tree, otherwise in the
  9287. + # src tree.
  9288. + ac_file_inputs=`IFS=:
  9289. + for f in $ac_file_in; do
  9290. + case $f in
  9291. + -) echo $tmp/stdin ;;
  9292. + [\\/$]*)
  9293. + # Absolute (can't be DOS-style, as IFS=:)
  9294. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9295. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9296. + { (exit 1); exit 1; }; }
  9297. + echo $f;;
  9298. + *) # Relative
  9299. + if test -f "$f"; then
  9300. + # Build tree
  9301. + echo $f
  9302. + elif test -f "$srcdir/$f"; then
  9303. + # Source tree
  9304. + echo $srcdir/$f
  9305. + else
  9306. + # /dev/null tree
  9307. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9308. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9309. + { (exit 1); exit 1; }; }
  9310. + fi;;
  9311. + esac
  9312. + done` || { (exit 1); exit 1; }
  9313. +_ACEOF
  9314. +cat >>$CONFIG_STATUS <<_ACEOF
  9315. + sed "$ac_vpsub
  9316. +$extrasub
  9317. +_ACEOF
  9318. +cat >>$CONFIG_STATUS <<\_ACEOF
  9319. +:t
  9320. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9321. +s,@configure_input@,$configure_input,;t t
  9322. +s,@srcdir@,$ac_srcdir,;t t
  9323. +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  9324. +s,@top_srcdir@,$ac_top_srcdir,;t t
  9325. +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  9326. +s,@builddir@,$ac_builddir,;t t
  9327. +s,@abs_builddir@,$ac_abs_builddir,;t t
  9328. +s,@top_builddir@,$ac_top_builddir,;t t
  9329. +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  9330. +s,@INSTALL@,$ac_INSTALL,;t t
  9331. +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  9332. + rm -f $tmp/stdin
  9333. + if test x"$ac_file" != x-; then
  9334. + mv $tmp/out $ac_file
  9335. + else
  9336. + cat $tmp/out
  9337. + rm -f $tmp/out
  9338. + fi
  9339. +
  9340. +done
  9341. +_ACEOF
  9342. +cat >>$CONFIG_STATUS <<\_ACEOF
  9343. +
  9344. +#
  9345. +# CONFIG_HEADER section.
  9346. +#
  9347. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9348. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  9349. #
  9350. # ac_d sets the value in "#define NAME VALUE" lines.
  9351. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9352. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  9353. -ac_dC='\3'
  9354. -ac_dD='%g'
  9355. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  9356. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9357. -ac_uB='\([ ]\)%\1#\2define\3'
  9358. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9359. +ac_dB='[ ].*$,\1#\2'
  9360. +ac_dC=' '
  9361. +ac_dD=',;t'
  9362. +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9363. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9364. +ac_uB='$,\1#\2define\3'
  9365. ac_uC=' '
  9366. -ac_uD='\4%g'
  9367. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9368. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9369. -ac_eB='$%\1#\2define\3'
  9370. -ac_eC=' '
  9371. -ac_eD='%g'
  9372. -
  9373. -if test "${CONFIG_HEADERS+set}" != set; then
  9374. -EOF
  9375. -cat >> $CONFIG_STATUS <<EOF
  9376. - CONFIG_HEADERS="config.h"
  9377. -EOF
  9378. -cat >> $CONFIG_STATUS <<\EOF
  9379. -fi
  9380. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  9381. +ac_uD=',;t'
  9382. +
  9383. +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9384. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9385. - case "$ac_file" in
  9386. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  9387. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9388. - *) ac_file_in="${ac_file}.in" ;;
  9389. - esac
  9390. -
  9391. - echo creating $ac_file
  9392. -
  9393. - rm -f conftest.frag conftest.in conftest.out
  9394. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  9395. - cat $ac_file_inputs > conftest.in
  9396. -
  9397. -EOF
  9398. -
  9399. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  9400. -# the proper values into config.h.in to produce config.h. And first:
  9401. -# Protect against being on the right side of a sed subst in config.status.
  9402. -# Protect against being in an unquoted here document in config.status.
  9403. -rm -f conftest.vals
  9404. -cat > conftest.hdr <<\EOF
  9405. -s/[\\&%]/\\&/g
  9406. -s%[\\$`]%\\&%g
  9407. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  9408. -s%ac_d%ac_u%gp
  9409. -s%ac_u%ac_e%gp
  9410. -EOF
  9411. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  9412. -rm -f conftest.hdr
  9413. + case $ac_file in
  9414. + - | *:- | *:-:* ) # input from stdin
  9415. + cat >$tmp/stdin
  9416. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9417. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9418. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9419. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9420. + * ) ac_file_in=$ac_file.in ;;
  9421. + esac
  9422. +
  9423. + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9424. +echo "$as_me: creating $ac_file" >&6;}
  9425. +
  9426. + # First look for the input files in the build tree, otherwise in the
  9427. + # src tree.
  9428. + ac_file_inputs=`IFS=:
  9429. + for f in $ac_file_in; do
  9430. + case $f in
  9431. + -) echo $tmp/stdin ;;
  9432. + [\\/$]*)
  9433. + # Absolute (can't be DOS-style, as IFS=:)
  9434. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9435. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9436. + { (exit 1); exit 1; }; }
  9437. + echo $f;;
  9438. + *) # Relative
  9439. + if test -f "$f"; then
  9440. + # Build tree
  9441. + echo $f
  9442. + elif test -f "$srcdir/$f"; then
  9443. + # Source tree
  9444. + echo $srcdir/$f
  9445. + else
  9446. + # /dev/null tree
  9447. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9448. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9449. + { (exit 1); exit 1; }; }
  9450. + fi;;
  9451. + esac
  9452. + done` || { (exit 1); exit 1; }
  9453. + # Remove the trailing spaces.
  9454. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9455. +
  9456. +_ACEOF
  9457. +
  9458. +# Transform confdefs.h into two sed scripts, `conftest.defines' and
  9459. +# `conftest.undefs', that substitutes the proper values into
  9460. +# config.h.in to produce config.h. The first handles `#define'
  9461. +# templates, and the second `#undef' templates.
  9462. +# And first: Protect against being on the right side of a sed subst in
  9463. +# config.status. Protect against being in an unquoted here document
  9464. +# in config.status.
  9465. +rm -f conftest.defines conftest.undefs
  9466. +# Using a here document instead of a string reduces the quoting nightmare.
  9467. +# Putting comments in sed scripts is not portable.
  9468. +#
  9469. +# `end' is used to avoid that the second main sed command (meant for
  9470. +# 0-ary CPP macros) applies to n-ary macro definitions.
  9471. +# See the Autoconf documentation for `clear'.
  9472. +cat >confdef2sed.sed <<\_ACEOF
  9473. +s/[\\&,]/\\&/g
  9474. +s,[\\$`],\\&,g
  9475. +t clear
  9476. +: clear
  9477. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9478. +t end
  9479. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9480. +: end
  9481. +_ACEOF
  9482. +# If some macros were called several times there might be several times
  9483. +# the same #defines, which is useless. Nevertheless, we may not want to
  9484. +# sort them, since we want the *last* AC-DEFINE to be honored.
  9485. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9486. +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9487. +rm -f confdef2sed.sed
  9488. # This sed command replaces #undef with comments. This is necessary, for
  9489. # example, in the case of _POSIX_SOURCE, which is predefined and required
  9490. # on some systems where configure will not decide to define it.
  9491. -cat >> conftest.vals <<\EOF
  9492. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  9493. -EOF
  9494. -
  9495. -# Break up conftest.vals because some shells have a limit on
  9496. -# the size of here documents, and old seds have small limits too.
  9497. -
  9498. +cat >>conftest.undefs <<\_ACEOF
  9499. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9500. +_ACEOF
  9501. +
  9502. +# Break up conftest.defines because some shells have a limit on the size
  9503. +# of here documents, and old seds have small limits too (100 cmds).
  9504. +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9505. +echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9506. +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9507. +echo ' :' >>$CONFIG_STATUS
  9508. rm -f conftest.tail
  9509. -while :
  9510. +while grep . conftest.defines >/dev/null
  9511. do
  9512. - ac_lines=`grep -c . conftest.vals`
  9513. - # grep -c gives empty output for an empty file on some AIX systems.
  9514. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  9515. - # Write a limited-size here document to conftest.frag.
  9516. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  9517. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  9518. + # Write a limited-size here document to $tmp/defines.sed.
  9519. + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9520. + # Speed up: don't consider the non `#define' lines.
  9521. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9522. + # Work around the forget-to-reset-the-flag bug.
  9523. + echo 't clr' >>$CONFIG_STATUS
  9524. + echo ': clr' >>$CONFIG_STATUS
  9525. + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9526. echo 'CEOF
  9527. - sed -f conftest.frag conftest.in > conftest.out
  9528. - rm -f conftest.in
  9529. - mv conftest.out conftest.in
  9530. -' >> $CONFIG_STATUS
  9531. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  9532. - rm -f conftest.vals
  9533. - mv conftest.tail conftest.vals
  9534. -done
  9535. -rm -f conftest.vals
  9536. -
  9537. -cat >> $CONFIG_STATUS <<\EOF
  9538. - rm -f conftest.frag conftest.h
  9539. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  9540. - cat conftest.in >> conftest.h
  9541. - rm -f conftest.in
  9542. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  9543. - echo "$ac_file is unchanged"
  9544. - rm -f conftest.h
  9545. - else
  9546. - # Remove last slash and all that follows it. Not all systems have dirname.
  9547. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  9548. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  9549. - # The file is in a subdirectory.
  9550. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  9551. - fi
  9552. - rm -f $ac_file
  9553. - mv conftest.h $ac_file
  9554. + sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9555. + rm -f $tmp/in
  9556. + mv $tmp/out $tmp/in
  9557. +' >>$CONFIG_STATUS
  9558. + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9559. + rm -f conftest.defines
  9560. + mv conftest.tail conftest.defines
  9561. +done
  9562. +rm -f conftest.defines
  9563. +echo ' fi # egrep' >>$CONFIG_STATUS
  9564. +echo >>$CONFIG_STATUS
  9565. +
  9566. +# Break up conftest.undefs because some shells have a limit on the size
  9567. +# of here documents, and old seds have small limits too (100 cmds).
  9568. +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9569. +rm -f conftest.tail
  9570. +while grep . conftest.undefs >/dev/null
  9571. +do
  9572. + # Write a limited-size here document to $tmp/undefs.sed.
  9573. + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9574. + # Speed up: don't consider the non `#undef'
  9575. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9576. + # Work around the forget-to-reset-the-flag bug.
  9577. + echo 't clr' >>$CONFIG_STATUS
  9578. + echo ': clr' >>$CONFIG_STATUS
  9579. + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9580. + echo 'CEOF
  9581. + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9582. + rm -f $tmp/in
  9583. + mv $tmp/out $tmp/in
  9584. +' >>$CONFIG_STATUS
  9585. + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9586. + rm -f conftest.undefs
  9587. + mv conftest.tail conftest.undefs
  9588. +done
  9589. +rm -f conftest.undefs
  9590. +
  9591. +cat >>$CONFIG_STATUS <<\_ACEOF
  9592. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  9593. + # use $as_me), people would be surprised to read:
  9594. + # /* config.h. Generated by config.status. */
  9595. + if test x"$ac_file" = x-; then
  9596. + echo "/* Generated by configure. */" >$tmp/config.h
  9597. + else
  9598. + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9599. fi
  9600. -fi; done
  9601. + cat $tmp/in >>$tmp/config.h
  9602. + rm -f $tmp/in
  9603. + if test x"$ac_file" != x-; then
  9604. + if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
  9605. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9606. +echo "$as_me: $ac_file is unchanged" >&6;}
  9607. + else
  9608. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9609. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9610. + X"$ac_file" : 'X\(//\)[^/]' \| \
  9611. + X"$ac_file" : 'X\(//\)$' \| \
  9612. + X"$ac_file" : 'X\(/\)' \| \
  9613. + . : '\(.\)' 2>/dev/null ||
  9614. +echo X"$ac_file" |
  9615. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9616. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9617. + /^X\(\/\/\)$/{ s//\1/; q; }
  9618. + /^X\(\/\).*/{ s//\1/; q; }
  9619. + s/.*/./; q'`
  9620. + { case "$ac_dir" in
  9621. + [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  9622. + *) as_incr_dir=.;;
  9623. +esac
  9624. +as_dummy="$ac_dir"
  9625. +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  9626. + case $as_mkdir_dir in
  9627. + # Skip DOS drivespec
  9628. + ?:) as_incr_dir=$as_mkdir_dir ;;
  9629. + *)
  9630. + as_incr_dir=$as_incr_dir/$as_mkdir_dir
  9631. + test -d "$as_incr_dir" ||
  9632. + mkdir "$as_incr_dir" ||
  9633. + { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
  9634. +echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
  9635. + { (exit 1); exit 1; }; }
  9636. + ;;
  9637. + esac
  9638. +done; }
  9639. -EOF
  9640. + rm -f $ac_file
  9641. + mv $tmp/config.h $ac_file
  9642. + fi
  9643. + else
  9644. + cat $tmp/config.h
  9645. + rm -f $tmp/config.h
  9646. + fi
  9647. +done
  9648. +_ACEOF
  9649. +cat >>$CONFIG_STATUS <<\_ACEOF
  9650. -cat >> $CONFIG_STATUS <<EOF
  9651. -ac_sources="$wk_link_files_src"
  9652. -ac_dests="$wk_link_files_dst "
  9653. -EOF
  9654. +#
  9655. +# CONFIG_LINKS section.
  9656. +#
  9657. -cat >> $CONFIG_STATUS <<\EOF
  9658. -srcdir=$ac_given_srcdir
  9659. -while test -n "$ac_sources"; do
  9660. - set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  9661. - set $ac_sources; ac_source=$1; shift; ac_sources=$*
  9662. +for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
  9663. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9664. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9665. - echo "linking $srcdir/$ac_source to $ac_dest"
  9666. + { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
  9667. +echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
  9668. if test ! -r $srcdir/$ac_source; then
  9669. - { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  9670. + { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
  9671. +echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
  9672. + { (exit 1); exit 1; }; }
  9673. fi
  9674. rm -f $ac_dest
  9675. # Make relative symlinks.
  9676. - # Remove last slash and all that follows it. Not all systems have dirname.
  9677. - ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  9678. - if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  9679. - # The dest file is in a subdirectory.
  9680. - test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  9681. - ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  9682. - # A "../" for each directory in $ac_dest_dir_suffix.
  9683. - ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  9684. - else
  9685. - ac_dest_dir_suffix= ac_dots=
  9686. - fi
  9687. + ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9688. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9689. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  9690. + X"$ac_dest" : 'X\(//\)$' \| \
  9691. + X"$ac_dest" : 'X\(/\)' \| \
  9692. + . : '\(.\)' 2>/dev/null ||
  9693. +echo X"$ac_dest" |
  9694. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9695. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9696. + /^X\(\/\/\)$/{ s//\1/; q; }
  9697. + /^X\(\/\).*/{ s//\1/; q; }
  9698. + s/.*/./; q'`
  9699. + { case "$ac_dest_dir" in
  9700. + [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  9701. + *) as_incr_dir=.;;
  9702. +esac
  9703. +as_dummy="$ac_dest_dir"
  9704. +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  9705. + case $as_mkdir_dir in
  9706. + # Skip DOS drivespec
  9707. + ?:) as_incr_dir=$as_mkdir_dir ;;
  9708. + *)
  9709. + as_incr_dir=$as_incr_dir/$as_mkdir_dir
  9710. + test -d "$as_incr_dir" ||
  9711. + mkdir "$as_incr_dir" ||
  9712. + { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
  9713. +echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
  9714. + { (exit 1); exit 1; }; }
  9715. + ;;
  9716. + esac
  9717. +done; }
  9718. +
  9719. + ac_builddir=.
  9720. +
  9721. +if test "$ac_dest_dir" != .; then
  9722. + ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
  9723. + # A "../" for each directory in $ac_dir_suffix.
  9724. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9725. +else
  9726. + ac_dir_suffix= ac_top_builddir=
  9727. +fi
  9728. +
  9729. +case $srcdir in
  9730. + .) # No --srcdir option. We are building in place.
  9731. + ac_srcdir=.
  9732. + if test -z "$ac_top_builddir"; then
  9733. + ac_top_srcdir=.
  9734. + else
  9735. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9736. + fi ;;
  9737. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9738. + ac_srcdir=$srcdir$ac_dir_suffix;
  9739. + ac_top_srcdir=$srcdir ;;
  9740. + *) # Relative path.
  9741. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9742. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9743. +esac
  9744. +# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
  9745. +# absolute.
  9746. +ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
  9747. +ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
  9748. +ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
  9749. +ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
  9750. +
  9751. - case "$srcdir" in
  9752. - [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  9753. - *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  9754. + case $srcdir in
  9755. + [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
  9756. + *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
  9757. esac
  9758. # Make a symlink if possible; otherwise try a hard link.
  9759. - if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  9760. - ln $srcdir/$ac_source $ac_dest; then :
  9761. - else
  9762. - { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  9763. - fi
  9764. + ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  9765. + ln $srcdir/$ac_source $ac_dest ||
  9766. + { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
  9767. +echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
  9768. + { (exit 1); exit 1; }; }
  9769. done
  9770. -EOF
  9771. -cat >> $CONFIG_STATUS <<EOF
  9772. +_ACEOF
  9773. +cat >>$CONFIG_STATUS <<\_ACEOF
  9774. +
  9775. +#
  9776. +# CONFIG_COMMANDS section.
  9777. +#
  9778. +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  9779. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9780. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9781. + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9782. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9783. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  9784. + X"$ac_dest" : 'X\(//\)$' \| \
  9785. + X"$ac_dest" : 'X\(/\)' \| \
  9786. + . : '\(.\)' 2>/dev/null ||
  9787. +echo X"$ac_dest" |
  9788. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9789. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9790. + /^X\(\/\/\)$/{ s//\1/; q; }
  9791. + /^X\(\/\).*/{ s//\1/; q; }
  9792. + s/.*/./; q'`
  9793. + ac_builddir=.
  9794. +
  9795. +if test "$ac_dir" != .; then
  9796. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9797. + # A "../" for each directory in $ac_dir_suffix.
  9798. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9799. +else
  9800. + ac_dir_suffix= ac_top_builddir=
  9801. +fi
  9802. +
  9803. +case $srcdir in
  9804. + .) # No --srcdir option. We are building in place.
  9805. + ac_srcdir=.
  9806. + if test -z "$ac_top_builddir"; then
  9807. + ac_top_srcdir=.
  9808. + else
  9809. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9810. + fi ;;
  9811. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9812. + ac_srcdir=$srcdir$ac_dir_suffix;
  9813. + ac_top_srcdir=$srcdir ;;
  9814. + *) # Relative path.
  9815. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9816. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9817. +esac
  9818. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9819. +# absolute.
  9820. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9821. +ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  9822. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9823. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9824. -EOF
  9825. -cat >> $CONFIG_STATUS <<\EOF
  9826. -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  9827. + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  9828. +echo "$as_me: executing $ac_dest commands" >&6;}
  9829. + case $ac_dest in
  9830. + default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  9831. + esac
  9832. +done
  9833. +_ACEOF
  9834. +
  9835. +cat >>$CONFIG_STATUS <<\_ACEOF
  9836. -exit 0
  9837. -EOF
  9838. +{ (exit 0); exit 0; }
  9839. +_ACEOF
  9840. chmod +x $CONFIG_STATUS
  9841. -rm -fr confdefs* $ac_clean_files
  9842. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  9843. +ac_clean_files=$ac_clean_files_save
  9844. +
  9845. +
  9846. +# configure is writing to config.log, and then calls config.status.
  9847. +# config.status does its own redirection, appending to config.log.
  9848. +# Unfortunately, on DOS this fails, as config.log is still kept open
  9849. +# by configure, so config.status won't be able to write to it; its
  9850. +# output is simply discarded. So we exec the FD to /dev/null,
  9851. +# effectively closing config.log, so it can be properly (re)opened and
  9852. +# appended to by config.status. When coming back to configure, we
  9853. +# need to make the FD available again.
  9854. +if test "$no_create" != yes; then
  9855. + ac_cs_success=:
  9856. + exec 5>/dev/null
  9857. + $SHELL $CONFIG_STATUS || ac_cs_success=false
  9858. + exec 5>>config.log
  9859. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9860. + # would make configure fail if this is the last instruction.
  9861. + $ac_cs_success || { (exit 1); exit 1; }
  9862. +fi
  9863. diff -X aide.exclude -u -r aide-0.9/configure.in aide-0.9m/configure.in
  9864. --- aide-0.9/configure.in Fri May 31 14:47:07 2002
  9865. +++ aide-0.9m/configure.in Mon Oct 21 16:30:12 2002
  9866. @@ -184,7 +184,7 @@
  9867. AC_CHECK_SIZEOF(unsigned long, 4)
  9868. AC_HEADER_STDC
  9869. -AC_CHECK_FUNCS(readdir readdir_r stricmp ustat)
  9870. +AC_CHECK_FUNCS(readdir readdir_r stricmp strnstr ustat)
  9871. AC_ARG_WITH(mmap,
  9872. [--without-mmap Don't use mmap. Useful on some platforms with slow mmap],
  9873. if test "x$withval" = "xyes"; then
  9874. @@ -204,10 +204,10 @@
  9875. AC_ARG_WITH(locale,
  9876. [--with-locale use locale stuff],
  9877. - AC_CHECK_HEADERS(libintl.h,
  9878. + [AC_CHECK_HEADERS(libintl.h,
  9879. AC_DEFINE(USE_LOCALE)
  9880. AIDE_USE_LOCALE=""
  9881. - AC_DEFINE_UNQUOTED(LOCALEDIR,"$prefix/lib/locale"),)
  9882. + AC_DEFINE_UNQUOTED(LOCALEDIR,"$prefix/lib/locale"),)]
  9883. )
  9884. AC_SUBST(AIDE_USE_LOCALE)
  9885. @@ -256,7 +256,7 @@
  9886. AC_CHECK_FUNC(lstat64,
  9887. # This looks wierd because Linux defines lstat64 and then screws it up
  9888. - AC_EGREP_CPP(yes,
  9889. + [AC_EGREP_CPP(yes,
  9890. [#ifdef stat64
  9891. yes
  9892. #endif],
  9893. @@ -282,20 +282,25 @@
  9894. AC_DEFINE_UNQUOTED(AIDE_READDIR_R_FUNC,readdir_r)
  9895. AC_DEFINE_UNQUOTED(AIDE_DIRENT_TYPE,dirent)
  9896. compoptionstring="${compoptionstring}WITH_READDIR\\n"
  9897. -))
  9898. + )
  9899. + )
  9900. compoptionstring="${compoptionstring}WITH_LSTAT64\\n"
  9901. - ,
  9902. +],[
  9903. AC_DEFINE_UNQUOTED(AIDE_LSTAT_FUNC,lstat)
  9904. AC_DEFINE_UNQUOTED(AIDE_STAT_TYPE,stat)
  9905. AC_DEFINE_UNQUOTED(AIDE_INO_TYPE,ino_t)
  9906. AC_DEFINE_UNQUOTED(AIDE_OFF_TYPE,off_t)
  9907. - AC_DEFINE_UNQUOTED(AIDE_BLKCNT_TYPE,blkcnt_t)
  9908. + AC_EGREP_CPP(yes,
  9909. + [#ifdef blkcnt_t],
  9910. + AC_DEFINE_UNQUOTED(AIDE_BLKCNT_TYPE,blkcnt_t),
  9911. + AC_DEFINE_UNQUOTED(AIDE_BLKCNT_TYPE,int64_t)
  9912. + )
  9913. compoptionstring="${compoptionstring}WITH_LSTAT\\n"
  9914. AC_DEFINE_UNQUOTED(AIDE_READDIR_FUNC,readdir)
  9915. AC_DEFINE_UNQUOTED(AIDE_READDIR_R_FUNC,readdir_r)
  9916. AC_DEFINE_UNQUOTED(AIDE_DIRENT_TYPE,dirent)
  9917. compoptionstring="${compoptionstring}WITH_READDIR\\n"
  9918. - )
  9919. +])
  9920. AC_ARG_WITH(config_file,
  9921. @@ -347,23 +352,21 @@
  9922. fi
  9923. AC_ARG_WITH(gnu-regexp,
  9924. - [--with-gnu-regexp use the bundled GNU regexp(use only if necessary)],
  9925. + [--with-gnu-regexp use the bundled GNU regexp (use only if necessary)],
  9926. AC_DEFINE(REGEX, 1)
  9927. -,
  9928. AC_CHECK_FUNCS(regexec regcomp,,
  9929. - AC_DEFINE(REGEX,1))
  9930. + AC_DEFINE(REGEX, 1))
  9931. )
  9932. AC_ARG_WITH(gcrypt,
  9933. [--with-gcrypt use gcrypt library],
  9934. - AC_DEFINE(WITH_GCRYPT)
  9935. + [AC_DEFINE(WITH_GCRYPT)
  9936. AC_CHECK_HEADER(gcrypt.h,,
  9937. echo "You don't have libgcrypt properly installed."
  9938. echo "Install it if you need one."
  9939. exit 1)
  9940. CRYPTLIB="-lgcrypt"
  9941. - compoptionstring="${compoptionstring}WITH_GCRYPT\\n"
  9942. - ,
  9943. + compoptionstring="${compoptionstring}WITH_GCRYPT\\n"],
  9944. [with_gcrypt=no])
  9945. AC_CHECK_LIB(mhash,mhash_get_block_size,
  9946. diff -X aide.exclude -u -r aide-0.9/include/util.h aide-0.9m/include/util.h
  9947. --- aide-0.9/include/util.h Wed May 29 10:04:26 2002
  9948. +++ aide-0.9m/include/util.h Mon Oct 21 16:31:03 2002
  9949. @@ -57,6 +57,8 @@
  9950. void init_sighandler(void);
  9951. +#ifndef HAVE_STRNSTR
  9952. char* strnstr(char* haystack,char* needle,int n);
  9953. +#endif
  9954. #endif
  9955. diff -X aide.exclude -u -r aide-0.9/src/conf_yacc.y aide-0.9m/src/conf_yacc.y
  9956. --- aide-0.9/src/conf_yacc.y Wed May 29 10:04:27 2002
  9957. +++ aide-0.9m/src/conf_yacc.y Mon Oct 21 16:15:54 2002
  9958. @@ -180,7 +180,7 @@
  9959. conferror("Error in expression");
  9960. YYABORT;
  9961. }
  9962. - }
  9963. + } ;
  9964. other : TRIGHTS { $$ =$1 ;} | TUSER {$$ =$1 ;}
  9965. | TGROUP {$$ =$1 ;} | TINODE {$$ =$1 ;}
  9966. @@ -242,11 +242,11 @@
  9967. beginconfigstmt : TBEGIN_CONFIG TSTRING {
  9968. conf->do_configmd=1;
  9969. conf->old_confmdstr=strdup($2);
  9970. -}
  9971. +} ;
  9972. endconfigstmt : TEND_CONFIG {
  9973. YYACCEPT;
  9974. -}
  9975. +} ;
  9976. acl_no_symlink_follow : TACLNOSYMLINKFOLLOW TTRUE {
  9977. #ifdef WITH_ACL
  9978. @@ -254,7 +254,7 @@
  9979. #else
  9980. error(0,"ACL-support not compiled in.\n");
  9981. #endif
  9982. -}
  9983. +} ;
  9984. acl_no_symlink_follow : TACLNOSYMLINKFOLLOW TFALSE {
  9985. #ifdef WITH_ACL
  9986. @@ -262,15 +262,15 @@
  9987. #else
  9988. error(0,"ACL-support not compiled in.\n");
  9989. #endif
  9990. -}
  9991. +} ;
  9992. warn_dead_symlinks : TWARNDEADSYMLINKS TTRUE {
  9993. conf->warn_dead_symlinks=1;
  9994. -}
  9995. +} ;
  9996. warn_dead_symlinks : TWARNDEADSYMLINKS TFALSE {
  9997. conf->warn_dead_symlinks=0;
  9998. -}
  9999. +} ;
  10000. gzipdbout : TGZIPDBOUT TTRUE {
  10001. #ifdef WITH_ZLIB
  10002. @@ -288,11 +288,11 @@
  10003. recursion_stopper : TRECSTOP TSTRING {
  10004. /* FIXME implement me */
  10005. -}
  10006. +} ;
  10007. config_version : TCONFIG_VERSION TSTRING {
  10008. conf->config_version=strdup($2);
  10009. -}
  10010. +} ;
  10011. %%
  10012. diff -X aide.exclude -u -r aide-0.9/src/db_lex.c aide-0.9m/src/db_lex.c
  10013. --- aide-0.9/src/db_lex.c Tue Jun 4 10:32:50 2002
  10014. +++ aide-0.9m/src/db_lex.c Mon Oct 21 16:31:17 2002
  10015. @@ -412,9 +412,9 @@
  10016. #define YY_MORE_ADJ 0
  10017. #define YY_RESTORE_YY_MORE_OFFSET
  10018. char *yytext;
  10019. -#line 1 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10020. +#line 1 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10021. #define INITIAL 0
  10022. -#line 5 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10023. +#line 5 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10024. /*
  10025. C [a-zA-Z0-9öäåÖÄÅ\\\*=$%£&/!\^\~;:.,\?\{\}\(\)\[\]\<\>\-\+\*\|\'\`]
  10026. @@ -644,7 +644,7 @@
  10027. register char *yy_cp, *yy_bp;
  10028. register int yy_act;
  10029. -#line 83 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10030. +#line 83 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10031. #line 651 "db_lex.c"
  10032. @@ -733,28 +733,28 @@
  10033. case 1:
  10034. YY_RULE_SETUP
  10035. -#line 85 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10036. +#line 85 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10037. {
  10038. return (TGZIPHEADER);
  10039. }
  10040. YY_BREAK
  10041. case 2:
  10042. YY_RULE_SETUP
  10043. -#line 89 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10044. +#line 89 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10045. {
  10046. return (TDBSPEC);
  10047. }
  10048. YY_BREAK
  10049. case 3:
  10050. YY_RULE_SETUP
  10051. -#line 93 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10052. +#line 93 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10053. {
  10054. return (TBEGIN_DB);
  10055. }
  10056. YY_BREAK
  10057. case 4:
  10058. YY_RULE_SETUP
  10059. -#line 97 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10060. +#line 97 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10061. {
  10062. BEGIN MDVALHUNT;
  10063. return (TEND_DB);
  10064. @@ -762,7 +762,7 @@
  10065. YY_BREAK
  10066. case 5:
  10067. YY_RULE_SETUP
  10068. -#line 102 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10069. +#line 102 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10070. {
  10071. BEGIN 0;
  10072. return (TSTRING);
  10073. @@ -770,21 +770,21 @@
  10074. YY_BREAK
  10075. case 6:
  10076. YY_RULE_SETUP
  10077. -#line 107 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10078. +#line 107 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10079. {
  10080. return (TUNKNOWN);
  10081. }
  10082. YY_BREAK
  10083. case 7:
  10084. YY_RULE_SETUP
  10085. -#line 111 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10086. +#line 111 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10087. {
  10088. (*db_lineno)++;
  10089. }
  10090. YY_BREAK
  10091. case 8:
  10092. YY_RULE_SETUP
  10093. -#line 115 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10094. +#line 115 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10095. {
  10096. error(230," %s \n",yytext);
  10097. @@ -794,12 +794,12 @@
  10098. YY_BREAK
  10099. case 9:
  10100. YY_RULE_SETUP
  10101. -#line 122 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10102. +#line 122 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10103. {}
  10104. YY_BREAK
  10105. case 10:
  10106. YY_RULE_SETUP
  10107. -#line 124 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10108. +#line 124 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10109. {
  10110. (*db_lineno)++;
  10111. return (TNEWLINE);
  10112. @@ -807,21 +807,21 @@
  10113. YY_BREAK
  10114. case 11:
  10115. YY_RULE_SETUP
  10116. -#line 129 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10117. +#line 129 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10118. {
  10119. return (TERROR);
  10120. }
  10121. YY_BREAK
  10122. case YY_STATE_EOF(INITIAL):
  10123. case YY_STATE_EOF(MDVALHUNT):
  10124. -#line 133 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10125. +#line 133 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10126. {
  10127. return (TEOF);
  10128. }
  10129. YY_BREAK
  10130. case 12:
  10131. YY_RULE_SETUP
  10132. -#line 138 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10133. +#line 138 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10134. ECHO;
  10135. YY_BREAK
  10136. #line 828 "db_lex.c"
  10137. @@ -1710,7 +1710,7 @@
  10138. return 0;
  10139. }
  10140. #endif
  10141. -#line 138 "/opt/rammer/cvs/tmp/aide2/src/db_lex.l"
  10142. +#line 138 "/u/mlelstv/proj/aide-0.9/src/db_lex.l"
  10143. int dbwrap(){
  10144. diff -X aide.exclude -u -r aide-0.9/src/util.c aide-0.9m/src/util.c
  10145. --- aide-0.9/src/util.c Wed May 29 10:04:27 2002
  10146. +++ aide-0.9m/src/util.c Mon Oct 21 16:31:15 2002
  10147. @@ -356,7 +356,7 @@
  10148. return;
  10149. }
  10150. -
  10151. +#ifndef HAVE_STRNSTR
  10152. /* Like strstr but only do search for maximum of n chars.
  10153. haystack does not have to be NULL terminated
  10154. needle has to be NULL terminated. NULL in needle is not used in compare.
  10155. @@ -392,6 +392,7 @@
  10156. /* If we get this far no match was found so we return NULL */
  10157. return NULL;
  10158. }
  10159. +#endif
  10160. /* We need these dummy stubs to fool the linker into believing that
  10161. we do not need them at link time */