aide.patch 308 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478
  1. Only in aide-0.9x: Makefile
  2. Only in aide-0.9x: aide.spec
  3. Only in aide-0.9x: autom4te.cache
  4. Only in aide-0.9x: config.h
  5. diff -r -u aide-0.9/config.h.in aide-0.9x/config.h.in
  6. --- aide-0.9/config.h.in Tue Jun 4 10:31:20 2002
  7. +++ aide-0.9x/config.h.in Mon Oct 21 15:31:02 2002
  8. @@ -129,6 +129,9 @@
  9. /* Define if you have the stricmp function. */
  10. #undef HAVE_STRICMP
  11. +/* Define if you have the strnstr function. */
  12. +#undef HAVE_STRNSTR
  13. +
  14. /* Define if you have the ustat function. */
  15. #undef HAVE_USTAT
  16. Only in aide-0.9x: config.log
  17. Only in aide-0.9x: config.status
  18. diff -r -u aide-0.9/configure aide-0.9x/configure
  19. --- aide-0.9/configure Tue Jun 4 10:31:27 2002
  20. +++ aide-0.9x/configure Fri Nov 15 09:11:34 2002
  21. @@ -1,83 +1,310 @@
  22. #! /bin/sh
  23. -
  24. # Guess values for system-dependent variables and create Makefiles.
  25. -# Generated automatically using autoconf version 2.13
  26. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  27. +# Generated by GNU Autoconf 2.53.
  28. #
  29. +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  30. +# Free Software Foundation, Inc.
  31. # This configure script is free software; the Free Software Foundation
  32. # gives unlimited permission to copy, distribute and modify it.
  33. -# Defaults:
  34. -ac_help=
  35. +if expr a : '\(a\)' >/dev/null 2>&1; then
  36. + as_expr=expr
  37. +else
  38. + as_expr=false
  39. +fi
  40. +
  41. +
  42. +## --------------------- ##
  43. +## M4sh Initialization. ##
  44. +## --------------------- ##
  45. +
  46. +# Be Bourne compatible
  47. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  48. + emulate sh
  49. + NULLCMD=:
  50. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  51. + set -o posix
  52. +fi
  53. +
  54. +# NLS nuisances.
  55. +# Support unset when possible.
  56. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  57. + as_unset=unset
  58. +else
  59. + as_unset=false
  60. +fi
  61. +
  62. +(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
  63. + { $as_unset LANG || test "${LANG+set}" != set; } ||
  64. + { LANG=C; export LANG; }
  65. +(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
  66. + { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
  67. + { LC_ALL=C; export LC_ALL; }
  68. +(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
  69. + { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
  70. + { LC_TIME=C; export LC_TIME; }
  71. +(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
  72. + { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
  73. + { LC_CTYPE=C; export LC_CTYPE; }
  74. +(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
  75. + { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
  76. + { LANGUAGE=C; export LANGUAGE; }
  77. +(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
  78. + { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
  79. + { LC_COLLATE=C; export LC_COLLATE; }
  80. +(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
  81. + { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
  82. + { LC_NUMERIC=C; export LC_NUMERIC; }
  83. +(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
  84. + { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
  85. + { LC_MESSAGES=C; export LC_MESSAGES; }
  86. +
  87. +
  88. +# Name of the executable.
  89. +as_me=`(basename "$0") 2>/dev/null ||
  90. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  91. + X"$0" : 'X\(//\)$' \| \
  92. + X"$0" : 'X\(/\)$' \| \
  93. + . : '\(.\)' 2>/dev/null ||
  94. +echo X/"$0" |
  95. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  96. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  97. + /^X\/\(\/\).*/{ s//\1/; q; }
  98. + s/.*/./; q'`
  99. +
  100. +# PATH needs CR, and LINENO needs CR and PATH.
  101. +# Avoid depending upon Character Ranges.
  102. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  103. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  104. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  105. +as_cr_digits='0123456789'
  106. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  107. +
  108. +# The user is always right.
  109. +if test "${PATH_SEPARATOR+set}" != set; then
  110. + echo "#! /bin/sh" >conftest.sh
  111. + echo "exit 0" >>conftest.sh
  112. + chmod +x conftest.sh
  113. + if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
  114. + PATH_SEPARATOR=';'
  115. + else
  116. + PATH_SEPARATOR=:
  117. + fi
  118. + rm -f conftest.sh
  119. +fi
  120. +
  121. +
  122. + as_lineno_1=$LINENO
  123. + as_lineno_2=$LINENO
  124. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  125. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  126. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  127. + # Find who we are. Look in the path if we contain no path at all
  128. + # relative or not.
  129. + case $0 in
  130. + *[\\/]* ) as_myself=$0 ;;
  131. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  132. +for as_dir in $PATH
  133. +do
  134. + IFS=$as_save_IFS
  135. + test -z "$as_dir" && as_dir=.
  136. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  137. +done
  138. +
  139. + ;;
  140. + esac
  141. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  142. + # in which case we are not to be found in the path.
  143. + if test "x$as_myself" = x; then
  144. + as_myself=$0
  145. + fi
  146. + if test ! -f "$as_myself"; then
  147. + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  148. + { (exit 1); exit 1; }; }
  149. + fi
  150. + case $CONFIG_SHELL in
  151. + '')
  152. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  153. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  154. +do
  155. + IFS=$as_save_IFS
  156. + test -z "$as_dir" && as_dir=.
  157. + for as_base in sh bash ksh sh5; do
  158. + case $as_dir in
  159. + /*)
  160. + if ("$as_dir/$as_base" -c '
  161. + as_lineno_1=$LINENO
  162. + as_lineno_2=$LINENO
  163. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  164. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  165. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  166. + CONFIG_SHELL=$as_dir/$as_base
  167. + export CONFIG_SHELL
  168. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  169. + fi;;
  170. + esac
  171. + done
  172. +done
  173. +;;
  174. + esac
  175. +
  176. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  177. + # uniformly replaced by the line number. The first 'sed' inserts a
  178. + # line-number line before each line; the second 'sed' does the real
  179. + # work. The second script uses 'N' to pair each line-number line
  180. + # with the numbered line, and appends trailing '-' during
  181. + # substitution so that $LINENO is not a special case at line end.
  182. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  183. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  184. + sed '=' <$as_myself |
  185. + sed '
  186. + N
  187. + s,$,-,
  188. + : loop
  189. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  190. + t loop
  191. + s,-$,,
  192. + s,^['$as_cr_digits']*\n,,
  193. + ' >$as_me.lineno &&
  194. + chmod +x $as_me.lineno ||
  195. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  196. + { (exit 1); exit 1; }; }
  197. +
  198. + # Don't try to exec as it changes $[0], causing all sort of problems
  199. + # (the dirname of $[0] is not the place where we might find the
  200. + # original and so on. Autoconf is especially sensible to this).
  201. + . ./$as_me.lineno
  202. + # Exit status is that of the last command.
  203. + exit
  204. +}
  205. +
  206. +
  207. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  208. + *c*,-n*) ECHO_N= ECHO_C='
  209. +' ECHO_T=' ' ;;
  210. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  211. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  212. +esac
  213. +
  214. +if expr a : '\(a\)' >/dev/null 2>&1; then
  215. + as_expr=expr
  216. +else
  217. + as_expr=false
  218. +fi
  219. +
  220. +rm -f conf$$ conf$$.exe conf$$.file
  221. +echo >conf$$.file
  222. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  223. + # We could just check for DJGPP; but this test a) works b) is more generic
  224. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  225. + if test -f conf$$.exe; then
  226. + # Don't use ln at all; we don't have any links
  227. + as_ln_s='cp -p'
  228. + else
  229. + as_ln_s='ln -s'
  230. + fi
  231. +elif ln conf$$.file conf$$ 2>/dev/null; then
  232. + as_ln_s=ln
  233. +else
  234. + as_ln_s='cp -p'
  235. +fi
  236. +rm -f conf$$ conf$$.exe conf$$.file
  237. +
  238. +as_executable_p="test -f"
  239. +
  240. +# Sed expression to map a string onto a valid CPP name.
  241. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  242. +
  243. +# Sed expression to map a string onto a valid variable name.
  244. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  245. +
  246. +
  247. +# IFS
  248. +# We need space, tab and new line, in precisely that order.
  249. +as_nl='
  250. +'
  251. +IFS=" $as_nl"
  252. +
  253. +# CDPATH.
  254. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
  255. +
  256. +
  257. +# Name of the host.
  258. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  259. +# so uname gets run too.
  260. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  261. +
  262. +exec 6>&1
  263. +
  264. +#
  265. +# Initializations.
  266. +#
  267. ac_default_prefix=/usr/local
  268. -# Any additions from configure.in:
  269. -ac_help="$ac_help
  270. - --enable-maintainer-mode enable make rules and dependencies not useful
  271. - (and sometimes confusing) to the casual installer"
  272. -ac_help="$ac_help
  273. - --with-extra-includes Specify additional paths to find headerfiles"
  274. -ac_help="$ac_help
  275. - --with-extra-libs Specify aditional paths to find libraries"
  276. -ac_help="$ac_help
  277. - --with-extra-link-libs Specify aditional libraries to link"
  278. -ac_help="$ac_help
  279. ---without-mmap Don't use mmap. Useful on some platforms with slow mmap"
  280. -ac_help="$ac_help
  281. ---with-locale use locale stuff"
  282. -ac_help="$ac_help
  283. ---with-syslog_ident Specify syslog ident"
  284. -ac_help="$ac_help
  285. ---with-syslog_facility Specify syslog facility, see man syslog for options"
  286. -ac_help="$ac_help
  287. ---with-syslog_logopt Specify syslog logopt, see man syslog for options"
  288. -ac_help="$ac_help
  289. ---with-syslog_priority Specify syslog priority, see man syslog for options"
  290. -ac_help="$ac_help
  291. ---with-zlib use zlib compression"
  292. -ac_help="$ac_help
  293. ---with-sun-acl use ACL on solaris (no checking)"
  294. -ac_help="$ac_help
  295. ---with-config_file=config_file use config_file as the default
  296. - config file"
  297. -ac_help="$ac_help
  298. ---with-gnu-regexp use the bundled GNU regexp(use only if necessary)"
  299. -ac_help="$ac_help
  300. ---with-gcrypt use gcrypt library"
  301. -ac_help="$ac_help
  302. ---with-confighmactype=TYPE Hash type to use for checking config.
  303. - Valid values are md5 and sha1."
  304. -ac_help="$ac_help
  305. ---with-confighmackey=KEY HMAC hash key to use for checking config.
  306. - Must be a base64 encoded byte stream.
  307. - Maximum string length is 31 chars."
  308. -ac_help="$ac_help
  309. ---with-dbhmactype=TYPE Hash type to use for checking db.
  310. - Valid values are md5 and sha1."
  311. -ac_help="$ac_help
  312. ---with-dbhmackey=KEY HMAC hash key to use for checking db.
  313. - Must be a base64 encoded byte stream.
  314. - Maximum string lentgth is 31 chars."
  315. -ac_help="$ac_help
  316. ---enable-forced_configmd Forces the config to have checksum.
  317. - Also disables --config-check"
  318. -ac_help="$ac_help
  319. ---enable-forced_dbmd Forces the file/pipe database's to have checksum.
  320. - This will be the default in the next release."
  321. -ac_help="$ac_help
  322. ---with-initial_errors_to=URL Where errors should go while checking config.
  323. - Default is stderr."
  324. -ac_help="$ac_help
  325. ---with-psql use postgres sql library for storing databases"
  326. +cross_compiling=no
  327. +subdirs=
  328. +MFLAGS=
  329. +MAKEFLAGS=
  330. +SHELL=${CONFIG_SHELL-/bin/sh}
  331. +
  332. +# Maximum number of lines to put in a shell here document.
  333. +# This variable seems obsolete. It should probably be removed, and
  334. +# only ac_max_sed_lines should be used.
  335. +: ${ac_max_here_lines=38}
  336. +
  337. +# Identity of this package.
  338. +PACKAGE_NAME=
  339. +PACKAGE_TARNAME=
  340. +PACKAGE_VERSION=
  341. +PACKAGE_STRING=
  342. +PACKAGE_BUGREPORT=
  343. +
  344. +ac_unique_file="src/aide.c"
  345. +# Factoring default headers for most tests.
  346. +ac_includes_default="\
  347. +#include <stdio.h>
  348. +#if HAVE_SYS_TYPES_H
  349. +# include <sys/types.h>
  350. +#endif
  351. +#if HAVE_SYS_STAT_H
  352. +# include <sys/stat.h>
  353. +#endif
  354. +#if STDC_HEADERS
  355. +# include <stdlib.h>
  356. +# include <stddef.h>
  357. +#else
  358. +# if HAVE_STDLIB_H
  359. +# include <stdlib.h>
  360. +# endif
  361. +#endif
  362. +#if HAVE_STRING_H
  363. +# if !STDC_HEADERS && HAVE_MEMORY_H
  364. +# include <memory.h>
  365. +# endif
  366. +# include <string.h>
  367. +#endif
  368. +#if HAVE_STRINGS_H
  369. +# include <strings.h>
  370. +#endif
  371. +#if HAVE_INTTYPES_H
  372. +# include <inttypes.h>
  373. +#else
  374. +# if HAVE_STDINT_H
  375. +# include <stdint.h>
  376. +# endif
  377. +#endif
  378. +#if HAVE_UNISTD_H
  379. +# include <unistd.h>
  380. +#endif"
  381. +
  382. # Initialize some variables set by options.
  383. +ac_init_help=
  384. +ac_init_version=false
  385. # The variables have the same names as the options, with
  386. # dashes changed to underlines.
  387. -build=NONE
  388. -cache_file=./config.cache
  389. +cache_file=/dev/null
  390. exec_prefix=NONE
  391. -host=NONE
  392. no_create=
  393. -nonopt=NONE
  394. no_recursion=
  395. prefix=NONE
  396. program_prefix=NONE
  397. @@ -86,10 +313,15 @@
  398. silent=
  399. site=
  400. srcdir=
  401. -target=NONE
  402. verbose=
  403. x_includes=NONE
  404. x_libraries=NONE
  405. +
  406. +# Installation directory options.
  407. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  408. +# and all the variables that are supposed to be based on exec_prefix
  409. +# by default will actually change.
  410. +# Use braces instead of parens because sh, perl, etc. also accept them.
  411. bindir='${exec_prefix}/bin'
  412. sbindir='${exec_prefix}/sbin'
  413. libexecdir='${exec_prefix}/libexec'
  414. @@ -103,17 +335,9 @@
  415. infodir='${prefix}/info'
  416. mandir='${prefix}/man'
  417. -# Initialize some other variables.
  418. -subdirs=
  419. -MFLAGS= MAKEFLAGS=
  420. -SHELL=${CONFIG_SHELL-/bin/sh}
  421. -# Maximum number of lines to put in a shell here document.
  422. -ac_max_here_lines=12
  423. -
  424. ac_prev=
  425. for ac_option
  426. do
  427. -
  428. # If the previous option needs an argument, assign it.
  429. if test -n "$ac_prev"; then
  430. eval "$ac_prev=\$ac_option"
  431. @@ -121,59 +345,59 @@
  432. continue
  433. fi
  434. - case "$ac_option" in
  435. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  436. - *) ac_optarg= ;;
  437. - esac
  438. + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  439. # Accept the important Cygnus configure options, so we can diagnose typos.
  440. - case "$ac_option" in
  441. + case $ac_option in
  442. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  443. ac_prev=bindir ;;
  444. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  445. - bindir="$ac_optarg" ;;
  446. + bindir=$ac_optarg ;;
  447. -build | --build | --buil | --bui | --bu)
  448. - ac_prev=build ;;
  449. + ac_prev=build_alias ;;
  450. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  451. - build="$ac_optarg" ;;
  452. + build_alias=$ac_optarg ;;
  453. -cache-file | --cache-file | --cache-fil | --cache-fi \
  454. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  455. ac_prev=cache_file ;;
  456. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  457. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  458. - cache_file="$ac_optarg" ;;
  459. + cache_file=$ac_optarg ;;
  460. +
  461. + --config-cache | -C)
  462. + cache_file=config.cache ;;
  463. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  464. ac_prev=datadir ;;
  465. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  466. | --da=*)
  467. - datadir="$ac_optarg" ;;
  468. + datadir=$ac_optarg ;;
  469. -disable-* | --disable-*)
  470. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  471. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  472. # Reject names that are not valid shell variable names.
  473. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  474. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  475. - fi
  476. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  477. - eval "enable_${ac_feature}=no" ;;
  478. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  479. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  480. + { (exit 1); exit 1; }; }
  481. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  482. + eval "enable_$ac_feature=no" ;;
  483. -enable-* | --enable-*)
  484. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  485. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  486. # Reject names that are not valid shell variable names.
  487. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  488. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  489. - fi
  490. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  491. - case "$ac_option" in
  492. - *=*) ;;
  493. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  494. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  495. + { (exit 1); exit 1; }; }
  496. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  497. + case $ac_option in
  498. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  499. *) ac_optarg=yes ;;
  500. esac
  501. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  502. + eval "enable_$ac_feature='$ac_optarg'" ;;
  503. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  504. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  505. @@ -182,95 +406,47 @@
  506. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  507. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  508. | --exec=* | --exe=* | --ex=*)
  509. - exec_prefix="$ac_optarg" ;;
  510. + exec_prefix=$ac_optarg ;;
  511. -gas | --gas | --ga | --g)
  512. # Obsolete; use --with-gas.
  513. with_gas=yes ;;
  514. - -help | --help | --hel | --he)
  515. - # Omit some internal or obsolete options to make the list less imposing.
  516. - # This message is too long to be a string in the A/UX 3.1 sh.
  517. - cat << EOF
  518. -Usage: configure [options] [host]
  519. -Options: [defaults in brackets after descriptions]
  520. -Configuration:
  521. - --cache-file=FILE cache test results in FILE
  522. - --help print this message
  523. - --no-create do not create output files
  524. - --quiet, --silent do not print \`checking...' messages
  525. - --version print the version of autoconf that created configure
  526. -Directory and file names:
  527. - --prefix=PREFIX install architecture-independent files in PREFIX
  528. - [$ac_default_prefix]
  529. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  530. - [same as prefix]
  531. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  532. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  533. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  534. - --datadir=DIR read-only architecture-independent data in DIR
  535. - [PREFIX/share]
  536. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  537. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  538. - [PREFIX/com]
  539. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  540. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  541. - --includedir=DIR C header files in DIR [PREFIX/include]
  542. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  543. - --infodir=DIR info documentation in DIR [PREFIX/info]
  544. - --mandir=DIR man documentation in DIR [PREFIX/man]
  545. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  546. - --program-prefix=PREFIX prepend PREFIX to installed program names
  547. - --program-suffix=SUFFIX append SUFFIX to installed program names
  548. - --program-transform-name=PROGRAM
  549. - run sed PROGRAM on installed program names
  550. -EOF
  551. - cat << EOF
  552. -Host type:
  553. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  554. - --host=HOST configure for HOST [guessed]
  555. - --target=TARGET configure for TARGET [TARGET=HOST]
  556. -Features and packages:
  557. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  558. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  559. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  560. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  561. - --x-includes=DIR X include files are in DIR
  562. - --x-libraries=DIR X library files are in DIR
  563. -EOF
  564. - if test -n "$ac_help"; then
  565. - echo "--enable and --with options recognized:$ac_help"
  566. - fi
  567. - exit 0 ;;
  568. + -help | --help | --hel | --he | -h)
  569. + ac_init_help=long ;;
  570. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  571. + ac_init_help=recursive ;;
  572. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  573. + ac_init_help=short ;;
  574. -host | --host | --hos | --ho)
  575. - ac_prev=host ;;
  576. + ac_prev=host_alias ;;
  577. -host=* | --host=* | --hos=* | --ho=*)
  578. - host="$ac_optarg" ;;
  579. + host_alias=$ac_optarg ;;
  580. -includedir | --includedir | --includedi | --included | --include \
  581. | --includ | --inclu | --incl | --inc)
  582. ac_prev=includedir ;;
  583. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  584. | --includ=* | --inclu=* | --incl=* | --inc=*)
  585. - includedir="$ac_optarg" ;;
  586. + includedir=$ac_optarg ;;
  587. -infodir | --infodir | --infodi | --infod | --info | --inf)
  588. ac_prev=infodir ;;
  589. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  590. - infodir="$ac_optarg" ;;
  591. + infodir=$ac_optarg ;;
  592. -libdir | --libdir | --libdi | --libd)
  593. ac_prev=libdir ;;
  594. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  595. - libdir="$ac_optarg" ;;
  596. + libdir=$ac_optarg ;;
  597. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  598. | --libexe | --libex | --libe)
  599. ac_prev=libexecdir ;;
  600. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  601. | --libexe=* | --libex=* | --libe=*)
  602. - libexecdir="$ac_optarg" ;;
  603. + libexecdir=$ac_optarg ;;
  604. -localstatedir | --localstatedir | --localstatedi | --localstated \
  605. | --localstate | --localstat | --localsta | --localst \
  606. @@ -279,19 +455,19 @@
  607. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  608. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  609. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  610. - localstatedir="$ac_optarg" ;;
  611. + localstatedir=$ac_optarg ;;
  612. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  613. ac_prev=mandir ;;
  614. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  615. - mandir="$ac_optarg" ;;
  616. + mandir=$ac_optarg ;;
  617. -nfp | --nfp | --nf)
  618. # Obsolete; use --without-fp.
  619. with_fp=no ;;
  620. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  621. - | --no-cr | --no-c)
  622. + | --no-cr | --no-c | -n)
  623. no_create=yes ;;
  624. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  625. @@ -305,26 +481,26 @@
  626. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  627. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  628. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  629. - oldincludedir="$ac_optarg" ;;
  630. + oldincludedir=$ac_optarg ;;
  631. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  632. ac_prev=prefix ;;
  633. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  634. - prefix="$ac_optarg" ;;
  635. + prefix=$ac_optarg ;;
  636. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  637. | --program-pre | --program-pr | --program-p)
  638. ac_prev=program_prefix ;;
  639. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  640. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  641. - program_prefix="$ac_optarg" ;;
  642. + program_prefix=$ac_optarg ;;
  643. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  644. | --program-suf | --program-su | --program-s)
  645. ac_prev=program_suffix ;;
  646. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  647. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  648. - program_suffix="$ac_optarg" ;;
  649. + program_suffix=$ac_optarg ;;
  650. -program-transform-name | --program-transform-name \
  651. | --program-transform-nam | --program-transform-na \
  652. @@ -341,7 +517,7 @@
  653. | --program-transfo=* | --program-transf=* \
  654. | --program-trans=* | --program-tran=* \
  655. | --progr-tra=* | --program-tr=* | --program-t=*)
  656. - program_transform_name="$ac_optarg" ;;
  657. + program_transform_name=$ac_optarg ;;
  658. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  659. | -silent | --silent | --silen | --sile | --sil)
  660. @@ -351,7 +527,7 @@
  661. ac_prev=sbindir ;;
  662. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  663. | --sbi=* | --sb=*)
  664. - sbindir="$ac_optarg" ;;
  665. + sbindir=$ac_optarg ;;
  666. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  667. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  668. @@ -362,58 +538,57 @@
  669. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  670. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  671. | --sha=* | --sh=*)
  672. - sharedstatedir="$ac_optarg" ;;
  673. + sharedstatedir=$ac_optarg ;;
  674. -site | --site | --sit)
  675. ac_prev=site ;;
  676. -site=* | --site=* | --sit=*)
  677. - site="$ac_optarg" ;;
  678. + site=$ac_optarg ;;
  679. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  680. ac_prev=srcdir ;;
  681. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  682. - srcdir="$ac_optarg" ;;
  683. + srcdir=$ac_optarg ;;
  684. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  685. | --syscon | --sysco | --sysc | --sys | --sy)
  686. ac_prev=sysconfdir ;;
  687. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  688. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  689. - sysconfdir="$ac_optarg" ;;
  690. + sysconfdir=$ac_optarg ;;
  691. -target | --target | --targe | --targ | --tar | --ta | --t)
  692. - ac_prev=target ;;
  693. + ac_prev=target_alias ;;
  694. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  695. - target="$ac_optarg" ;;
  696. + target_alias=$ac_optarg ;;
  697. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  698. verbose=yes ;;
  699. - -version | --version | --versio | --versi | --vers)
  700. - echo "configure generated by autoconf version 2.13"
  701. - exit 0 ;;
  702. + -version | --version | --versio | --versi | --vers | -V)
  703. + ac_init_version=: ;;
  704. -with-* | --with-*)
  705. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  706. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  707. # Reject names that are not valid shell variable names.
  708. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  709. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  710. - fi
  711. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  712. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  713. + { (exit 1); exit 1; }; }
  714. ac_package=`echo $ac_package| sed 's/-/_/g'`
  715. - case "$ac_option" in
  716. - *=*) ;;
  717. + case $ac_option in
  718. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  719. *) ac_optarg=yes ;;
  720. esac
  721. - eval "with_${ac_package}='$ac_optarg'" ;;
  722. + eval "with_$ac_package='$ac_optarg'" ;;
  723. -without-* | --without-*)
  724. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  725. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  726. # Reject names that are not valid shell variable names.
  727. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  728. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  729. - fi
  730. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  731. - eval "with_${ac_package}=no" ;;
  732. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  733. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  734. + { (exit 1); exit 1; }; }
  735. + ac_package=`echo $ac_package | sed 's/-/_/g'`
  736. + eval "with_$ac_package=no" ;;
  737. --x)
  738. # Obsolete; use --with-x.
  739. @@ -424,99 +599,110 @@
  740. ac_prev=x_includes ;;
  741. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  742. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  743. - x_includes="$ac_optarg" ;;
  744. + x_includes=$ac_optarg ;;
  745. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  746. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  747. ac_prev=x_libraries ;;
  748. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  749. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  750. - x_libraries="$ac_optarg" ;;
  751. + x_libraries=$ac_optarg ;;
  752. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  753. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  754. +Try \`$0 --help' for more information." >&2
  755. + { (exit 1); exit 1; }; }
  756. ;;
  757. + *=*)
  758. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  759. + # Reject names that are not valid shell variable names.
  760. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  761. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  762. + { (exit 1); exit 1; }; }
  763. + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  764. + eval "$ac_envvar='$ac_optarg'"
  765. + export $ac_envvar ;;
  766. +
  767. *)
  768. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  769. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  770. - fi
  771. - if test "x$nonopt" != xNONE; then
  772. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  773. - fi
  774. - nonopt="$ac_option"
  775. + # FIXME: should be removed in autoconf 3.0.
  776. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  777. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  778. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  779. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  780. ;;
  781. esac
  782. done
  783. if test -n "$ac_prev"; then
  784. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  785. -fi
  786. -
  787. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  788. -
  789. -# File descriptor usage:
  790. -# 0 standard input
  791. -# 1 file creation
  792. -# 2 errors and warnings
  793. -# 3 some systems may open it to /dev/tty
  794. -# 4 used on the Kubota Titan
  795. -# 6 checking for... messages and results
  796. -# 5 compiler messages saved in config.log
  797. -if test "$silent" = yes; then
  798. - exec 6>/dev/null
  799. -else
  800. - exec 6>&1
  801. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  802. + { echo "$as_me: error: missing argument to $ac_option" >&2
  803. + { (exit 1); exit 1; }; }
  804. fi
  805. -exec 5>./config.log
  806. -echo "\
  807. -This file contains any messages produced by compilers while
  808. -running configure, to aid debugging if configure makes a mistake.
  809. -" 1>&5
  810. +# Be sure to have absolute paths.
  811. +for ac_var in exec_prefix prefix
  812. +do
  813. + eval ac_val=$`echo $ac_var`
  814. + case $ac_val in
  815. + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  816. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  817. + { (exit 1); exit 1; }; };;
  818. + esac
  819. +done
  820. -# Strip out --no-create and --no-recursion so they do not pile up.
  821. -# Also quote any args containing shell metacharacters.
  822. -ac_configure_args=
  823. -for ac_arg
  824. +# Be sure to have absolute paths.
  825. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  826. + localstatedir libdir includedir oldincludedir infodir mandir
  827. do
  828. - case "$ac_arg" in
  829. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  830. - | --no-cr | --no-c) ;;
  831. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  832. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  833. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  834. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  835. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  836. + eval ac_val=$`echo $ac_var`
  837. + case $ac_val in
  838. + [\\/$]* | ?:[\\/]* ) ;;
  839. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  840. + { (exit 1); exit 1; }; };;
  841. esac
  842. done
  843. -# NLS nuisances.
  844. -# Only set these to C if already set. These must not be set unconditionally
  845. -# because not all systems understand e.g. LANG=C (notably SCO).
  846. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  847. -# Non-C LC_CTYPE values break the ctype check.
  848. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  849. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  850. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  851. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  852. +# There might be people who depend on the old broken behavior: `$host'
  853. +# used to hold the argument of --host etc.
  854. +# FIXME: To remove some day.
  855. +build=$build_alias
  856. +host=$host_alias
  857. +target=$target_alias
  858. +
  859. +# FIXME: To remove some day.
  860. +if test "x$host_alias" != x; then
  861. + if test "x$build_alias" = x; then
  862. + cross_compiling=maybe
  863. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  864. + If a cross compiler is detected then cross compile mode will be used." >&2
  865. + elif test "x$build_alias" != "x$host_alias"; then
  866. + cross_compiling=yes
  867. + fi
  868. +fi
  869. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  870. -rm -rf conftest* confdefs.h
  871. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  872. -echo > confdefs.h
  873. +ac_tool_prefix=
  874. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  875. +
  876. +test "$silent" = yes && exec 6>/dev/null
  877. -# A filename unique to this package, relative to the directory that
  878. -# configure is in, which we can look for to find out if srcdir is correct.
  879. -ac_unique_file=src/aide.c
  880. # Find the source files, if location was not specified.
  881. if test -z "$srcdir"; then
  882. ac_srcdir_defaulted=yes
  883. # Try the directory containing this script, then its parent.
  884. - ac_prog=$0
  885. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  886. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  887. + ac_confdir=`(dirname "$0") 2>/dev/null ||
  888. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  889. + X"$0" : 'X\(//\)[^/]' \| \
  890. + X"$0" : 'X\(//\)$' \| \
  891. + X"$0" : 'X\(/\)' \| \
  892. + . : '\(.\)' 2>/dev/null ||
  893. +echo X"$0" |
  894. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  895. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  896. + /^X\(\/\/\)$/{ s//\1/; q; }
  897. + /^X\(\/\).*/{ s//\1/; q; }
  898. + s/.*/./; q'`
  899. srcdir=$ac_confdir
  900. if test ! -r $srcdir/$ac_unique_file; then
  901. srcdir=..
  902. @@ -526,13 +712,409 @@
  903. fi
  904. if test ! -r $srcdir/$ac_unique_file; then
  905. if test "$ac_srcdir_defaulted" = yes; then
  906. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  907. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  908. + { (exit 1); exit 1; }; }
  909. else
  910. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  911. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  912. + { (exit 1); exit 1; }; }
  913. fi
  914. fi
  915. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  916. +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  917. +ac_env_build_alias_set=${build_alias+set}
  918. +ac_env_build_alias_value=$build_alias
  919. +ac_cv_env_build_alias_set=${build_alias+set}
  920. +ac_cv_env_build_alias_value=$build_alias
  921. +ac_env_host_alias_set=${host_alias+set}
  922. +ac_env_host_alias_value=$host_alias
  923. +ac_cv_env_host_alias_set=${host_alias+set}
  924. +ac_cv_env_host_alias_value=$host_alias
  925. +ac_env_target_alias_set=${target_alias+set}
  926. +ac_env_target_alias_value=$target_alias
  927. +ac_cv_env_target_alias_set=${target_alias+set}
  928. +ac_cv_env_target_alias_value=$target_alias
  929. +ac_env_CC_set=${CC+set}
  930. +ac_env_CC_value=$CC
  931. +ac_cv_env_CC_set=${CC+set}
  932. +ac_cv_env_CC_value=$CC
  933. +ac_env_CFLAGS_set=${CFLAGS+set}
  934. +ac_env_CFLAGS_value=$CFLAGS
  935. +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  936. +ac_cv_env_CFLAGS_value=$CFLAGS
  937. +ac_env_LDFLAGS_set=${LDFLAGS+set}
  938. +ac_env_LDFLAGS_value=$LDFLAGS
  939. +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  940. +ac_cv_env_LDFLAGS_value=$LDFLAGS
  941. +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  942. +ac_env_CPPFLAGS_value=$CPPFLAGS
  943. +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  944. +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  945. +ac_env_CPP_set=${CPP+set}
  946. +ac_env_CPP_value=$CPP
  947. +ac_cv_env_CPP_set=${CPP+set}
  948. +ac_cv_env_CPP_value=$CPP
  949. +
  950. +#
  951. +# Report the --help message.
  952. +#
  953. +if test "$ac_init_help" = "long"; then
  954. + # Omit some internal or obsolete options to make the list less imposing.
  955. + # This message is too long to be a string in the A/UX 3.1 sh.
  956. + cat <<_ACEOF
  957. +\`configure' configures this package to adapt to many kinds of systems.
  958. +
  959. +Usage: $0 [OPTION]... [VAR=VALUE]...
  960. +
  961. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  962. +VAR=VALUE. See below for descriptions of some of the useful variables.
  963. +
  964. +Defaults for the options are specified in brackets.
  965. +
  966. +Configuration:
  967. + -h, --help display this help and exit
  968. + --help=short display options specific to this package
  969. + --help=recursive display the short help of all the included packages
  970. + -V, --version display version information and exit
  971. + -q, --quiet, --silent do not print \`checking...' messages
  972. + --cache-file=FILE cache test results in FILE [disabled]
  973. + -C, --config-cache alias for \`--cache-file=config.cache'
  974. + -n, --no-create do not create output files
  975. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  976. +
  977. +_ACEOF
  978. +
  979. + cat <<_ACEOF
  980. +Installation directories:
  981. + --prefix=PREFIX install architecture-independent files in PREFIX
  982. + [$ac_default_prefix]
  983. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  984. + [PREFIX]
  985. +
  986. +By default, \`make install' will install all the files in
  987. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  988. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  989. +for instance \`--prefix=\$HOME'.
  990. +
  991. +For better control, use the options below.
  992. +
  993. +Fine tuning of the installation directories:
  994. + --bindir=DIR user executables [EPREFIX/bin]
  995. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  996. + --libexecdir=DIR program executables [EPREFIX/libexec]
  997. + --datadir=DIR read-only architecture-independent data [PREFIX/share]
  998. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  999. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1000. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1001. + --libdir=DIR object code libraries [EPREFIX/lib]
  1002. + --includedir=DIR C header files [PREFIX/include]
  1003. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1004. + --infodir=DIR info documentation [PREFIX/info]
  1005. + --mandir=DIR man documentation [PREFIX/man]
  1006. +_ACEOF
  1007. +
  1008. + cat <<\_ACEOF
  1009. +
  1010. +Program names:
  1011. + --program-prefix=PREFIX prepend PREFIX to installed program names
  1012. + --program-suffix=SUFFIX append SUFFIX to installed program names
  1013. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1014. +_ACEOF
  1015. +fi
  1016. +
  1017. +if test -n "$ac_init_help"; then
  1018. +
  1019. + cat <<\_ACEOF
  1020. +
  1021. +Optional Features:
  1022. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1023. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1024. + --enable-maintainer-mode enable make rules and dependencies not useful
  1025. + (and sometimes confusing) to the casual installer
  1026. +--enable-forced_configmd Forces the config to have checksum.
  1027. + Also disables --config-check
  1028. +--enable-forced_dbmd Forces the file/pipe database's to have checksum.
  1029. + This will be the default in the next release.
  1030. +
  1031. +Optional Packages:
  1032. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1033. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1034. + --with-extra-includes Specify additional paths to find headerfiles
  1035. + --with-extra-libs Specify aditional paths to find libraries
  1036. + --with-extra-link-libs Specify aditional libraries to link
  1037. +--without-mmap Don't use mmap. Useful on some platforms with slow mmap
  1038. +--with-locale use locale stuff
  1039. +--with-syslog_ident Specify syslog ident
  1040. +--with-syslog_facility Specify syslog facility, see man syslog for options
  1041. +--with-syslog_logopt Specify syslog logopt, see man syslog for options
  1042. +--with-syslog_priority Specify syslog priority, see man syslog for options
  1043. +--with-zlib use zlib compression
  1044. +--with-sun-acl use ACL on solaris (no checking)
  1045. +--with-config_file=config_file use config_file as the default
  1046. + config file
  1047. +--with-gnu-regexp use the bundled GNU regexp (use only if necessary)
  1048. +--with-gcrypt use gcrypt library
  1049. +--with-confighmactype=TYPE Hash type to use for checking config.
  1050. + Valid values are md5 and sha1.
  1051. +--with-confighmackey=KEY HMAC hash key to use for checking config.
  1052. + Must be a base64 encoded byte stream.
  1053. + Maximum string length is 31 chars.
  1054. +--with-dbhmactype=TYPE Hash type to use for checking db.
  1055. + Valid values are md5 and sha1.
  1056. +--with-dbhmackey=KEY HMAC hash key to use for checking db.
  1057. + Must be a base64 encoded byte stream.
  1058. + Maximum string lentgth is 31 chars.
  1059. +--with-initial_errors_to=URL Where errors should go while checking config.
  1060. + Default is stderr.
  1061. +--with-psql use postgres sql library for storing databases
  1062. +
  1063. +Some influential environment variables:
  1064. + CC C compiler command
  1065. + CFLAGS C compiler flags
  1066. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1067. + nonstandard directory <lib dir>
  1068. + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1069. + headers in a nonstandard directory <include dir>
  1070. + CPP C preprocessor
  1071. +
  1072. +Use these variables to override the choices made by `configure' or to help
  1073. +it to find libraries and programs with nonstandard names/locations.
  1074. +
  1075. +_ACEOF
  1076. +fi
  1077. +
  1078. +if test "$ac_init_help" = "recursive"; then
  1079. + # If there are subdirs, report their specific --help.
  1080. + ac_popdir=`pwd`
  1081. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1082. + test -d $ac_dir || continue
  1083. + ac_builddir=.
  1084. +
  1085. +if test "$ac_dir" != .; then
  1086. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1087. + # A "../" for each directory in $ac_dir_suffix.
  1088. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1089. +else
  1090. + ac_dir_suffix= ac_top_builddir=
  1091. +fi
  1092. +
  1093. +case $srcdir in
  1094. + .) # No --srcdir option. We are building in place.
  1095. + ac_srcdir=.
  1096. + if test -z "$ac_top_builddir"; then
  1097. + ac_top_srcdir=.
  1098. + else
  1099. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1100. + fi ;;
  1101. + [\\/]* | ?:[\\/]* ) # Absolute path.
  1102. + ac_srcdir=$srcdir$ac_dir_suffix;
  1103. + ac_top_srcdir=$srcdir ;;
  1104. + *) # Relative path.
  1105. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1106. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1107. +esac
  1108. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  1109. +# absolute.
  1110. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  1111. +ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  1112. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  1113. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  1114. +
  1115. + cd $ac_dir
  1116. + # Check for guested configure; otherwise get Cygnus style configure.
  1117. + if test -f $ac_srcdir/configure.gnu; then
  1118. + echo
  1119. + $SHELL $ac_srcdir/configure.gnu --help=recursive
  1120. + elif test -f $ac_srcdir/configure; then
  1121. + echo
  1122. + $SHELL $ac_srcdir/configure --help=recursive
  1123. + elif test -f $ac_srcdir/configure.ac ||
  1124. + test -f $ac_srcdir/configure.in; then
  1125. + echo
  1126. + $ac_configure --help
  1127. + else
  1128. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1129. + fi
  1130. + cd $ac_popdir
  1131. + done
  1132. +fi
  1133. +
  1134. +test -n "$ac_init_help" && exit 0
  1135. +if $ac_init_version; then
  1136. + cat <<\_ACEOF
  1137. +
  1138. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  1139. +Free Software Foundation, Inc.
  1140. +This configure script is free software; the Free Software Foundation
  1141. +gives unlimited permission to copy, distribute and modify it.
  1142. +_ACEOF
  1143. + exit 0
  1144. +fi
  1145. +exec 5>config.log
  1146. +cat >&5 <<_ACEOF
  1147. +This file contains any messages produced by compilers while
  1148. +running configure, to aid debugging if configure makes a mistake.
  1149. +
  1150. +It was created by $as_me, which was
  1151. +generated by GNU Autoconf 2.53. Invocation command line was
  1152. +
  1153. + $ $0 $@
  1154. +
  1155. +_ACEOF
  1156. +{
  1157. +cat <<_ASUNAME
  1158. +## --------- ##
  1159. +## Platform. ##
  1160. +## --------- ##
  1161. +
  1162. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1163. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1164. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1165. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1166. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1167. +
  1168. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1169. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1170. +
  1171. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1172. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1173. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1174. +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1175. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1176. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1177. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1178. +
  1179. +_ASUNAME
  1180. +
  1181. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1182. +for as_dir in $PATH
  1183. +do
  1184. + IFS=$as_save_IFS
  1185. + test -z "$as_dir" && as_dir=.
  1186. + echo "PATH: $as_dir"
  1187. +done
  1188. +
  1189. +} >&5
  1190. +
  1191. +cat >&5 <<_ACEOF
  1192. +
  1193. +
  1194. +## ----------- ##
  1195. +## Core tests. ##
  1196. +## ----------- ##
  1197. +
  1198. +_ACEOF
  1199. +
  1200. +
  1201. +# Keep a trace of the command line.
  1202. +# Strip out --no-create and --no-recursion so they do not pile up.
  1203. +# Also quote any args containing shell meta-characters.
  1204. +ac_configure_args=
  1205. +ac_sep=
  1206. +for ac_arg
  1207. +do
  1208. + case $ac_arg in
  1209. + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1210. + | --no-cr | --no-c | -n ) continue ;;
  1211. + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1212. + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1213. + continue ;;
  1214. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1215. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1216. + esac
  1217. + case " $ac_configure_args " in
  1218. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1219. + *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1220. + ac_sep=" " ;;
  1221. + esac
  1222. + # Get rid of the leading space.
  1223. +done
  1224. +
  1225. +# When interrupted or exit'd, cleanup temporary files, and complete
  1226. +# config.log. We remove comments because anyway the quotes in there
  1227. +# would cause problems or look ugly.
  1228. +# WARNING: Be sure not to use single quotes in there, as some shells,
  1229. +# such as our DU 5.0 friend, will then `close' the trap.
  1230. +trap 'exit_status=$?
  1231. + # Save into config.log some information that might help in debugging.
  1232. + {
  1233. + echo
  1234. + cat <<\_ASBOX
  1235. +## ---------------- ##
  1236. +## Cache variables. ##
  1237. +## ---------------- ##
  1238. +_ASBOX
  1239. + echo
  1240. + # The following way of writing the cache mishandles newlines in values,
  1241. +{
  1242. + (set) 2>&1 |
  1243. + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1244. + *ac_space=\ *)
  1245. + sed -n \
  1246. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1247. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1248. + ;;
  1249. + *)
  1250. + sed -n \
  1251. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1252. + ;;
  1253. + esac;
  1254. +}
  1255. + echo
  1256. + if test -s confdefs.h; then
  1257. + cat <<\_ASBOX
  1258. +## ----------- ##
  1259. +## confdefs.h. ##
  1260. +## ----------- ##
  1261. +_ASBOX
  1262. + echo
  1263. + sed "/^$/d" confdefs.h
  1264. + echo
  1265. + fi
  1266. + test "$ac_signal" != 0 &&
  1267. + echo "$as_me: caught signal $ac_signal"
  1268. + echo "$as_me: exit $exit_status"
  1269. + } >&5
  1270. + rm -f core core.* *.core &&
  1271. + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1272. + exit $exit_status
  1273. + ' 0
  1274. +for ac_signal in 1 2 13 15; do
  1275. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1276. +done
  1277. +ac_signal=0
  1278. +
  1279. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1280. +rm -rf conftest* confdefs.h
  1281. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1282. +echo >confdefs.h
  1283. +
  1284. +# Predefined preprocessor variables.
  1285. +
  1286. +cat >>confdefs.h <<_ACEOF
  1287. +#define PACKAGE_NAME "$PACKAGE_NAME"
  1288. +_ACEOF
  1289. +
  1290. +
  1291. +cat >>confdefs.h <<_ACEOF
  1292. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1293. +_ACEOF
  1294. +
  1295. +cat >>confdefs.h <<_ACEOF
  1296. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  1297. +_ACEOF
  1298. +
  1299. +
  1300. +cat >>confdefs.h <<_ACEOF
  1301. +#define PACKAGE_STRING "$PACKAGE_STRING"
  1302. +_ACEOF
  1303. +
  1304. +
  1305. +cat >>confdefs.h <<_ACEOF
  1306. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1307. +_ACEOF
  1308. +
  1309. +
  1310. +# Let the site file select an alternate cache file if it wants to.
  1311. # Prefer explicitly selected file to automatically selected ones.
  1312. if test -z "$CONFIG_SITE"; then
  1313. if test "x$prefix" != xNONE; then
  1314. @@ -543,39 +1125,102 @@
  1315. fi
  1316. for ac_site_file in $CONFIG_SITE; do
  1317. if test -r "$ac_site_file"; then
  1318. - echo "loading site script $ac_site_file"
  1319. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1320. +echo "$as_me: loading site script $ac_site_file" >&6;}
  1321. + sed 's/^/| /' "$ac_site_file" >&5
  1322. . "$ac_site_file"
  1323. fi
  1324. done
  1325. if test -r "$cache_file"; then
  1326. - echo "loading cache $cache_file"
  1327. - . $cache_file
  1328. + # Some versions of bash will fail to source /dev/null (special
  1329. + # files actually), so we avoid doing that.
  1330. + if test -f "$cache_file"; then
  1331. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1332. +echo "$as_me: loading cache $cache_file" >&6;}
  1333. + case $cache_file in
  1334. + [\\/]* | ?:[\\/]* ) . $cache_file;;
  1335. + *) . ./$cache_file;;
  1336. + esac
  1337. + fi
  1338. else
  1339. - echo "creating cache $cache_file"
  1340. - > $cache_file
  1341. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1342. +echo "$as_me: creating cache $cache_file" >&6;}
  1343. + >$cache_file
  1344. +fi
  1345. +
  1346. +# Check that the precious variables saved in the cache have kept the same
  1347. +# value.
  1348. +ac_cache_corrupted=false
  1349. +for ac_var in `(set) 2>&1 |
  1350. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1351. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1352. + eval ac_new_set=\$ac_env_${ac_var}_set
  1353. + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1354. + eval ac_new_val="\$ac_env_${ac_var}_value"
  1355. + case $ac_old_set,$ac_new_set in
  1356. + set,)
  1357. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1358. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1359. + ac_cache_corrupted=: ;;
  1360. + ,set)
  1361. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1362. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1363. + ac_cache_corrupted=: ;;
  1364. + ,);;
  1365. + *)
  1366. + if test "x$ac_old_val" != "x$ac_new_val"; then
  1367. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1368. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1369. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1370. +echo "$as_me: former value: $ac_old_val" >&2;}
  1371. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1372. +echo "$as_me: current value: $ac_new_val" >&2;}
  1373. + ac_cache_corrupted=:
  1374. + fi;;
  1375. + esac
  1376. + # Pass precious variables to config.status.
  1377. + if test "$ac_new_set" = set; then
  1378. + case $ac_new_val in
  1379. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1380. + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1381. + *) ac_arg=$ac_var=$ac_new_val ;;
  1382. + esac
  1383. + case " $ac_configure_args " in
  1384. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1385. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1386. + esac
  1387. + fi
  1388. +done
  1389. +if $ac_cache_corrupted; then
  1390. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1391. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1392. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1393. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1394. + { (exit 1); exit 1; }; }
  1395. fi
  1396. ac_ext=c
  1397. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1398. ac_cpp='$CPP $CPPFLAGS'
  1399. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1400. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1401. -cross_compiling=$ac_cv_prog_cc_cross
  1402. -
  1403. -ac_exeext=
  1404. -ac_objext=o
  1405. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  1406. - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  1407. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  1408. - ac_n= ac_c='
  1409. -' ac_t=' '
  1410. - else
  1411. - ac_n=-n ac_c= ac_t=
  1412. - fi
  1413. -else
  1414. - ac_n= ac_c='\c' ac_t=
  1415. -fi
  1416. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1417. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1418. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1419. +
  1420. +
  1421. +
  1422. +
  1423. +
  1424. +
  1425. +
  1426. +
  1427. +
  1428. +
  1429. +
  1430. +
  1431. +
  1432. +
  1433. +
  1434. +
  1435. @@ -589,14 +1234,20 @@
  1436. ac_aux_dir=$ac_dir
  1437. ac_install_sh="$ac_aux_dir/install.sh -c"
  1438. break
  1439. + elif test -f $ac_dir/shtool; then
  1440. + ac_aux_dir=$ac_dir
  1441. + ac_install_sh="$ac_aux_dir/shtool install -c"
  1442. + break
  1443. fi
  1444. done
  1445. if test -z "$ac_aux_dir"; then
  1446. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1447. -fi
  1448. -ac_config_guess=$ac_aux_dir/config.guess
  1449. -ac_config_sub=$ac_aux_dir/config.sub
  1450. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1451. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1452. +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1453. + { (exit 1); exit 1; }; }
  1454. +fi
  1455. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1456. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1457. +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1458. # Find a good install program. We prefer a C program (faster),
  1459. # so one script is as good as another. But avoid the broken or
  1460. @@ -605,65 +1256,78 @@
  1461. # SunOS /usr/etc/install
  1462. # IRIX /sbin/install
  1463. # AIX /bin/install
  1464. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  1465. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1466. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1467. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1468. # ./install, which can be erroneously created by make from ./install.sh.
  1469. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1470. -echo "configure:614: checking for a BSD compatible install" >&5
  1471. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1472. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1473. if test -z "$INSTALL"; then
  1474. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1475. - echo $ac_n "(cached) $ac_c" 1>&6
  1476. +if test "${ac_cv_path_install+set}" = set; then
  1477. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1478. else
  1479. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1480. - for ac_dir in $PATH; do
  1481. - # Account for people who put trailing slashes in PATH elements.
  1482. - case "$ac_dir/" in
  1483. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1484. - *)
  1485. - # OSF1 and SCO ODT 3.0 have their own names for install.
  1486. - # Don't use installbsd from OSF since it installs stuff as root
  1487. - # by default.
  1488. - for ac_prog in ginstall scoinst install; do
  1489. - if test -f $ac_dir/$ac_prog; then
  1490. - if test $ac_prog = install &&
  1491. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1492. - # AIX install. It has an incompatible calling convention.
  1493. - :
  1494. - else
  1495. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  1496. - break 2
  1497. - fi
  1498. - fi
  1499. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1500. +for as_dir in $PATH
  1501. +do
  1502. + IFS=$as_save_IFS
  1503. + test -z "$as_dir" && as_dir=.
  1504. + # Account for people who put trailing slashes in PATH elements.
  1505. +case $as_dir/ in
  1506. + ./ | .// | /cC/* | \
  1507. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1508. + /usr/ucb/* ) ;;
  1509. + *)
  1510. + # OSF1 and SCO ODT 3.0 have their own names for install.
  1511. + # Don't use installbsd from OSF since it installs stuff as root
  1512. + # by default.
  1513. + for ac_prog in ginstall scoinst install; do
  1514. + for ac_exec_ext in '' $ac_executable_extensions; do
  1515. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1516. + if test $ac_prog = install &&
  1517. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1518. + # AIX install. It has an incompatible calling convention.
  1519. + :
  1520. + elif test $ac_prog = install &&
  1521. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1522. + # program-specific install script used by HP pwplus--don't use.
  1523. + :
  1524. + else
  1525. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1526. + break 3
  1527. + fi
  1528. + fi
  1529. done
  1530. - ;;
  1531. - esac
  1532. - done
  1533. - IFS="$ac_save_IFS"
  1534. + done
  1535. + ;;
  1536. +esac
  1537. +done
  1538. +
  1539. fi
  1540. if test "${ac_cv_path_install+set}" = set; then
  1541. - INSTALL="$ac_cv_path_install"
  1542. + INSTALL=$ac_cv_path_install
  1543. else
  1544. # As a last resort, use the slow shell script. We don't cache a
  1545. # path for INSTALL within a source directory, because that will
  1546. # break other packages using the cache if that directory is
  1547. # removed, or if the path is relative.
  1548. - INSTALL="$ac_install_sh"
  1549. + INSTALL=$ac_install_sh
  1550. fi
  1551. fi
  1552. -echo "$ac_t""$INSTALL" 1>&6
  1553. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  1554. +echo "${ECHO_T}$INSTALL" >&6
  1555. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1556. # It thinks the first close brace ends the variable substitution.
  1557. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1558. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1559. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1560. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1561. -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  1562. -echo "configure:667: checking whether build environment is sane" >&5
  1563. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1564. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1565. # Just in case
  1566. sleep 1
  1567. echo timestamp > conftestfile
  1568. @@ -685,8 +1349,11 @@
  1569. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1570. # broken ls alias from the environment. This has actually
  1571. # happened. Such a system could not be considered "sane".
  1572. - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  1573. -alias in your environment" 1>&2; exit 1; }
  1574. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1575. +alias in your environment" >&5
  1576. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1577. +alias in your environment" >&2;}
  1578. + { (exit 1); exit 1; }; }
  1579. fi
  1580. test "$2" = conftestfile
  1581. @@ -695,54 +1362,54 @@
  1582. # Ok.
  1583. :
  1584. else
  1585. - { echo "configure: error: newly created file is older than distributed files!
  1586. -Check your system clock" 1>&2; exit 1; }
  1587. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1588. +Check your system clock" >&5
  1589. +echo "$as_me: error: newly created file is older than distributed files!
  1590. +Check your system clock" >&2;}
  1591. + { (exit 1); exit 1; }; }
  1592. fi
  1593. rm -f conftest*
  1594. -echo "$ac_t""yes" 1>&6
  1595. -if test "$program_transform_name" = s,x,x,; then
  1596. - program_transform_name=
  1597. -else
  1598. - # Double any \ or $. echo might interpret backslashes.
  1599. - cat <<\EOF_SED > conftestsed
  1600. -s,\\,\\\\,g; s,\$,$$,g
  1601. -EOF_SED
  1602. - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  1603. - rm -f conftestsed
  1604. -fi
  1605. +echo "$as_me:$LINENO: result: yes" >&5
  1606. +echo "${ECHO_T}yes" >&6
  1607. test "$program_prefix" != NONE &&
  1608. - program_transform_name="s,^,${program_prefix},; $program_transform_name"
  1609. + program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1610. # Use a double $ so make ignores it.
  1611. test "$program_suffix" != NONE &&
  1612. - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  1613. -
  1614. -# sed with no file args requires a program.
  1615. -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  1616. -
  1617. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1618. -echo "configure:724: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1619. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  1620. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1621. - echo $ac_n "(cached) $ac_c" 1>&6
  1622. + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1623. +# Double any \ or $. echo might interpret backslashes.
  1624. +# By default was `s,x,x', remove it if useless.
  1625. +cat <<\_ACEOF >conftest.sed
  1626. +s/[\\$]/&&/g;s/;s,x,x,$//
  1627. +_ACEOF
  1628. +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1629. +rm conftest.sed
  1630. +
  1631. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1632. +echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  1633. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1634. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1635. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1636. else
  1637. - cat > conftestmake <<\EOF
  1638. + cat >conftest.make <<\_ACEOF
  1639. all:
  1640. @echo 'ac_maketemp="${MAKE}"'
  1641. -EOF
  1642. +_ACEOF
  1643. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1644. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1645. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1646. if test -n "$ac_maketemp"; then
  1647. eval ac_cv_prog_make_${ac_make}_set=yes
  1648. else
  1649. eval ac_cv_prog_make_${ac_make}_set=no
  1650. fi
  1651. -rm -f conftestmake
  1652. +rm -f conftest.make
  1653. fi
  1654. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1655. - echo "$ac_t""yes" 1>&6
  1656. + echo "$as_me:$LINENO: result: yes" >&5
  1657. +echo "${ECHO_T}yes" >&6
  1658. SET_MAKE=
  1659. else
  1660. - echo "$ac_t""no" 1>&6
  1661. + echo "$as_me:$LINENO: result: no" >&5
  1662. +echo "${ECHO_T}no" >&6
  1663. SET_MAKE="MAKE=${MAKE-make}"
  1664. fi
  1665. @@ -752,87 +1419,103 @@
  1666. VERSION=0.9
  1667. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  1668. - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  1669. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1670. +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1671. + { (exit 1); exit 1; }; }
  1672. fi
  1673. -cat >> confdefs.h <<EOF
  1674. +
  1675. +cat >>confdefs.h <<_ACEOF
  1676. #define PACKAGE "$PACKAGE"
  1677. -EOF
  1678. +_ACEOF
  1679. +
  1680. -cat >> confdefs.h <<EOF
  1681. +cat >>confdefs.h <<_ACEOF
  1682. #define VERSION "$VERSION"
  1683. -EOF
  1684. +_ACEOF
  1685. missing_dir=`cd $ac_aux_dir && pwd`
  1686. -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  1687. -echo "configure:770: checking for working aclocal" >&5
  1688. +echo "$as_me:$LINENO: checking for working aclocal" >&5
  1689. +echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
  1690. # Run test in a subshell; some versions of sh will print an error if
  1691. # an executable is not found, even if stderr is redirected.
  1692. # Redirect stdin to placate older versions of autoconf. Sigh.
  1693. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  1694. ACLOCAL=aclocal
  1695. - echo "$ac_t""found" 1>&6
  1696. + echo "$as_me:$LINENO: result: found" >&5
  1697. +echo "${ECHO_T}found" >&6
  1698. else
  1699. ACLOCAL="$missing_dir/missing aclocal"
  1700. - echo "$ac_t""missing" 1>&6
  1701. + echo "$as_me:$LINENO: result: missing" >&5
  1702. +echo "${ECHO_T}missing" >&6
  1703. fi
  1704. -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  1705. -echo "configure:783: checking for working autoconf" >&5
  1706. +echo "$as_me:$LINENO: checking for working autoconf" >&5
  1707. +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  1708. # Run test in a subshell; some versions of sh will print an error if
  1709. # an executable is not found, even if stderr is redirected.
  1710. # Redirect stdin to placate older versions of autoconf. Sigh.
  1711. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  1712. AUTOCONF=autoconf
  1713. - echo "$ac_t""found" 1>&6
  1714. + echo "$as_me:$LINENO: result: found" >&5
  1715. +echo "${ECHO_T}found" >&6
  1716. else
  1717. AUTOCONF="$missing_dir/missing autoconf"
  1718. - echo "$ac_t""missing" 1>&6
  1719. + echo "$as_me:$LINENO: result: missing" >&5
  1720. +echo "${ECHO_T}missing" >&6
  1721. fi
  1722. -echo $ac_n "checking for working automake""... $ac_c" 1>&6
  1723. -echo "configure:796: checking for working automake" >&5
  1724. +echo "$as_me:$LINENO: checking for working automake" >&5
  1725. +echo $ECHO_N "checking for working automake... $ECHO_C" >&6
  1726. # Run test in a subshell; some versions of sh will print an error if
  1727. # an executable is not found, even if stderr is redirected.
  1728. # Redirect stdin to placate older versions of autoconf. Sigh.
  1729. if (automake --version) < /dev/null > /dev/null 2>&1; then
  1730. AUTOMAKE=automake
  1731. - echo "$ac_t""found" 1>&6
  1732. + echo "$as_me:$LINENO: result: found" >&5
  1733. +echo "${ECHO_T}found" >&6
  1734. else
  1735. AUTOMAKE="$missing_dir/missing automake"
  1736. - echo "$ac_t""missing" 1>&6
  1737. + echo "$as_me:$LINENO: result: missing" >&5
  1738. +echo "${ECHO_T}missing" >&6
  1739. fi
  1740. -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  1741. -echo "configure:809: checking for working autoheader" >&5
  1742. +echo "$as_me:$LINENO: checking for working autoheader" >&5
  1743. +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  1744. # Run test in a subshell; some versions of sh will print an error if
  1745. # an executable is not found, even if stderr is redirected.
  1746. # Redirect stdin to placate older versions of autoconf. Sigh.
  1747. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  1748. AUTOHEADER=autoheader
  1749. - echo "$ac_t""found" 1>&6
  1750. + echo "$as_me:$LINENO: result: found" >&5
  1751. +echo "${ECHO_T}found" >&6
  1752. else
  1753. AUTOHEADER="$missing_dir/missing autoheader"
  1754. - echo "$ac_t""missing" 1>&6
  1755. + echo "$as_me:$LINENO: result: missing" >&5
  1756. +echo "${ECHO_T}missing" >&6
  1757. fi
  1758. -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  1759. -echo "configure:822: checking for working makeinfo" >&5
  1760. +echo "$as_me:$LINENO: checking for working makeinfo" >&5
  1761. +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  1762. # Run test in a subshell; some versions of sh will print an error if
  1763. # an executable is not found, even if stderr is redirected.
  1764. # Redirect stdin to placate older versions of autoconf. Sigh.
  1765. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  1766. MAKEINFO=makeinfo
  1767. - echo "$ac_t""found" 1>&6
  1768. + echo "$as_me:$LINENO: result: found" >&5
  1769. +echo "${ECHO_T}found" >&6
  1770. else
  1771. MAKEINFO="$missing_dir/missing makeinfo"
  1772. - echo "$ac_t""missing" 1>&6
  1773. + echo "$as_me:$LINENO: result: missing" >&5
  1774. +echo "${ECHO_T}missing" >&6
  1775. fi
  1776. +ac_config_headers="$ac_config_headers config.h"
  1777. +ac_config_commands="$ac_config_commands default-1"
  1778. # We want an absolute path to the source-dir.
  1779. case "$srcdir" in
  1780. @@ -849,214 +1532,628 @@
  1781. -# Extract the first word of "gcc", so it can be a program name with args.
  1782. +ac_ext=c
  1783. +ac_cpp='$CPP $CPPFLAGS'
  1784. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1785. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1786. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1787. +if test -n "$ac_tool_prefix"; then
  1788. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1789. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1790. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1791. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1792. +if test "${ac_cv_prog_CC+set}" = set; then
  1793. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1794. +else
  1795. + if test -n "$CC"; then
  1796. + ac_cv_prog_CC="$CC" # Let the user override the test.
  1797. +else
  1798. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1799. +for as_dir in $PATH
  1800. +do
  1801. + IFS=$as_save_IFS
  1802. + test -z "$as_dir" && as_dir=.
  1803. + for ac_exec_ext in '' $ac_executable_extensions; do
  1804. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1805. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1806. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1807. + break 2
  1808. + fi
  1809. +done
  1810. +done
  1811. +
  1812. +fi
  1813. +fi
  1814. +CC=$ac_cv_prog_CC
  1815. +if test -n "$CC"; then
  1816. + echo "$as_me:$LINENO: result: $CC" >&5
  1817. +echo "${ECHO_T}$CC" >&6
  1818. +else
  1819. + echo "$as_me:$LINENO: result: no" >&5
  1820. +echo "${ECHO_T}no" >&6
  1821. +fi
  1822. +
  1823. +fi
  1824. +if test -z "$ac_cv_prog_CC"; then
  1825. + ac_ct_CC=$CC
  1826. + # Extract the first word of "gcc", so it can be a program name with args.
  1827. set dummy gcc; ac_word=$2
  1828. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1829. -echo "configure:856: checking for $ac_word" >&5
  1830. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1831. - echo $ac_n "(cached) $ac_c" 1>&6
  1832. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1833. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1834. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1835. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1836. +else
  1837. + if test -n "$ac_ct_CC"; then
  1838. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1839. +else
  1840. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1841. +for as_dir in $PATH
  1842. +do
  1843. + IFS=$as_save_IFS
  1844. + test -z "$as_dir" && as_dir=.
  1845. + for ac_exec_ext in '' $ac_executable_extensions; do
  1846. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1847. + ac_cv_prog_ac_ct_CC="gcc"
  1848. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1849. + break 2
  1850. + fi
  1851. +done
  1852. +done
  1853. +
  1854. +fi
  1855. +fi
  1856. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1857. +if test -n "$ac_ct_CC"; then
  1858. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1859. +echo "${ECHO_T}$ac_ct_CC" >&6
  1860. +else
  1861. + echo "$as_me:$LINENO: result: no" >&5
  1862. +echo "${ECHO_T}no" >&6
  1863. +fi
  1864. +
  1865. + CC=$ac_ct_CC
  1866. +else
  1867. + CC="$ac_cv_prog_CC"
  1868. +fi
  1869. +
  1870. +if test -z "$CC"; then
  1871. + if test -n "$ac_tool_prefix"; then
  1872. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1873. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  1874. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1875. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1876. +if test "${ac_cv_prog_CC+set}" = set; then
  1877. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1878. else
  1879. if test -n "$CC"; then
  1880. ac_cv_prog_CC="$CC" # Let the user override the test.
  1881. else
  1882. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1883. - ac_dummy="$PATH"
  1884. - for ac_dir in $ac_dummy; do
  1885. - test -z "$ac_dir" && ac_dir=.
  1886. - if test -f $ac_dir/$ac_word; then
  1887. - ac_cv_prog_CC="gcc"
  1888. - break
  1889. - fi
  1890. - done
  1891. - IFS="$ac_save_ifs"
  1892. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1893. +for as_dir in $PATH
  1894. +do
  1895. + IFS=$as_save_IFS
  1896. + test -z "$as_dir" && as_dir=.
  1897. + for ac_exec_ext in '' $ac_executable_extensions; do
  1898. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1899. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  1900. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1901. + break 2
  1902. + fi
  1903. +done
  1904. +done
  1905. +
  1906. fi
  1907. fi
  1908. -CC="$ac_cv_prog_CC"
  1909. +CC=$ac_cv_prog_CC
  1910. if test -n "$CC"; then
  1911. - echo "$ac_t""$CC" 1>&6
  1912. + echo "$as_me:$LINENO: result: $CC" >&5
  1913. +echo "${ECHO_T}$CC" >&6
  1914. +else
  1915. + echo "$as_me:$LINENO: result: no" >&5
  1916. +echo "${ECHO_T}no" >&6
  1917. +fi
  1918. +
  1919. +fi
  1920. +if test -z "$ac_cv_prog_CC"; then
  1921. + ac_ct_CC=$CC
  1922. + # Extract the first word of "cc", so it can be a program name with args.
  1923. +set dummy cc; ac_word=$2
  1924. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1925. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1926. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1927. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1928. +else
  1929. + if test -n "$ac_ct_CC"; then
  1930. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1931. +else
  1932. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1933. +for as_dir in $PATH
  1934. +do
  1935. + IFS=$as_save_IFS
  1936. + test -z "$as_dir" && as_dir=.
  1937. + for ac_exec_ext in '' $ac_executable_extensions; do
  1938. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1939. + ac_cv_prog_ac_ct_CC="cc"
  1940. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1941. + break 2
  1942. + fi
  1943. +done
  1944. +done
  1945. +
  1946. +fi
  1947. +fi
  1948. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1949. +if test -n "$ac_ct_CC"; then
  1950. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1951. +echo "${ECHO_T}$ac_ct_CC" >&6
  1952. +else
  1953. + echo "$as_me:$LINENO: result: no" >&5
  1954. +echo "${ECHO_T}no" >&6
  1955. +fi
  1956. +
  1957. + CC=$ac_ct_CC
  1958. else
  1959. - echo "$ac_t""no" 1>&6
  1960. + CC="$ac_cv_prog_CC"
  1961. fi
  1962. +fi
  1963. if test -z "$CC"; then
  1964. # Extract the first word of "cc", so it can be a program name with args.
  1965. set dummy cc; ac_word=$2
  1966. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1967. -echo "configure:886: checking for $ac_word" >&5
  1968. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1969. - echo $ac_n "(cached) $ac_c" 1>&6
  1970. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1971. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1972. +if test "${ac_cv_prog_CC+set}" = set; then
  1973. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1974. else
  1975. if test -n "$CC"; then
  1976. ac_cv_prog_CC="$CC" # Let the user override the test.
  1977. else
  1978. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1979. ac_prog_rejected=no
  1980. - ac_dummy="$PATH"
  1981. - for ac_dir in $ac_dummy; do
  1982. - test -z "$ac_dir" && ac_dir=.
  1983. - if test -f $ac_dir/$ac_word; then
  1984. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1985. - ac_prog_rejected=yes
  1986. - continue
  1987. - fi
  1988. - ac_cv_prog_CC="cc"
  1989. - break
  1990. - fi
  1991. - done
  1992. - IFS="$ac_save_ifs"
  1993. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1994. +for as_dir in $PATH
  1995. +do
  1996. + IFS=$as_save_IFS
  1997. + test -z "$as_dir" && as_dir=.
  1998. + for ac_exec_ext in '' $ac_executable_extensions; do
  1999. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2000. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2001. + ac_prog_rejected=yes
  2002. + continue
  2003. + fi
  2004. + ac_cv_prog_CC="cc"
  2005. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2006. + break 2
  2007. + fi
  2008. +done
  2009. +done
  2010. +
  2011. if test $ac_prog_rejected = yes; then
  2012. # We found a bogon in the path, so make sure we never use it.
  2013. set dummy $ac_cv_prog_CC
  2014. shift
  2015. - if test $# -gt 0; then
  2016. + if test $# != 0; then
  2017. # We chose a different compiler from the bogus one.
  2018. # However, it has the same basename, so the bogon will be chosen
  2019. # first if we set CC to just the basename; use the full file name.
  2020. shift
  2021. - set dummy "$ac_dir/$ac_word" "$@"
  2022. + set dummy "$as_dir/$ac_word" ${1+"$@"}
  2023. shift
  2024. ac_cv_prog_CC="$@"
  2025. fi
  2026. fi
  2027. fi
  2028. fi
  2029. -CC="$ac_cv_prog_CC"
  2030. +CC=$ac_cv_prog_CC
  2031. if test -n "$CC"; then
  2032. - echo "$ac_t""$CC" 1>&6
  2033. + echo "$as_me:$LINENO: result: $CC" >&5
  2034. +echo "${ECHO_T}$CC" >&6
  2035. else
  2036. - echo "$ac_t""no" 1>&6
  2037. + echo "$as_me:$LINENO: result: no" >&5
  2038. +echo "${ECHO_T}no" >&6
  2039. fi
  2040. - if test -z "$CC"; then
  2041. - case "`uname -s`" in
  2042. - *win32* | *WIN32*)
  2043. - # Extract the first word of "cl", so it can be a program name with args.
  2044. -set dummy cl; ac_word=$2
  2045. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2046. -echo "configure:937: checking for $ac_word" >&5
  2047. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2048. - echo $ac_n "(cached) $ac_c" 1>&6
  2049. +fi
  2050. +if test -z "$CC"; then
  2051. + if test -n "$ac_tool_prefix"; then
  2052. + for ac_prog in cl
  2053. + do
  2054. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2055. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2056. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2057. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2058. +if test "${ac_cv_prog_CC+set}" = set; then
  2059. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2060. else
  2061. if test -n "$CC"; then
  2062. ac_cv_prog_CC="$CC" # Let the user override the test.
  2063. else
  2064. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2065. - ac_dummy="$PATH"
  2066. - for ac_dir in $ac_dummy; do
  2067. - test -z "$ac_dir" && ac_dir=.
  2068. - if test -f $ac_dir/$ac_word; then
  2069. - ac_cv_prog_CC="cl"
  2070. - break
  2071. - fi
  2072. - done
  2073. - IFS="$ac_save_ifs"
  2074. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2075. +for as_dir in $PATH
  2076. +do
  2077. + IFS=$as_save_IFS
  2078. + test -z "$as_dir" && as_dir=.
  2079. + for ac_exec_ext in '' $ac_executable_extensions; do
  2080. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2081. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2082. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2083. + break 2
  2084. + fi
  2085. +done
  2086. +done
  2087. +
  2088. fi
  2089. fi
  2090. -CC="$ac_cv_prog_CC"
  2091. +CC=$ac_cv_prog_CC
  2092. if test -n "$CC"; then
  2093. - echo "$ac_t""$CC" 1>&6
  2094. + echo "$as_me:$LINENO: result: $CC" >&5
  2095. +echo "${ECHO_T}$CC" >&6
  2096. else
  2097. - echo "$ac_t""no" 1>&6
  2098. + echo "$as_me:$LINENO: result: no" >&5
  2099. +echo "${ECHO_T}no" >&6
  2100. fi
  2101. - ;;
  2102. - esac
  2103. +
  2104. + test -n "$CC" && break
  2105. + done
  2106. +fi
  2107. +if test -z "$CC"; then
  2108. + ac_ct_CC=$CC
  2109. + for ac_prog in cl
  2110. +do
  2111. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2112. +set dummy $ac_prog; ac_word=$2
  2113. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2114. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2115. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2116. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2117. +else
  2118. + if test -n "$ac_ct_CC"; then
  2119. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2120. +else
  2121. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2122. +for as_dir in $PATH
  2123. +do
  2124. + IFS=$as_save_IFS
  2125. + test -z "$as_dir" && as_dir=.
  2126. + for ac_exec_ext in '' $ac_executable_extensions; do
  2127. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2128. + ac_cv_prog_ac_ct_CC="$ac_prog"
  2129. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2130. + break 2
  2131. fi
  2132. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2133. +done
  2134. +done
  2135. +
  2136. fi
  2137. +fi
  2138. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2139. +if test -n "$ac_ct_CC"; then
  2140. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2141. +echo "${ECHO_T}$ac_ct_CC" >&6
  2142. +else
  2143. + echo "$as_me:$LINENO: result: no" >&5
  2144. +echo "${ECHO_T}no" >&6
  2145. +fi
  2146. +
  2147. + test -n "$ac_ct_CC" && break
  2148. +done
  2149. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2150. -echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  2151. + CC=$ac_ct_CC
  2152. +fi
  2153. -ac_ext=c
  2154. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2155. -ac_cpp='$CPP $CPPFLAGS'
  2156. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2157. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2158. -cross_compiling=$ac_cv_prog_cc_cross
  2159. +fi
  2160. -cat > conftest.$ac_ext << EOF
  2161. -#line 980 "configure"
  2162. -#include "confdefs.h"
  2163. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
  2164. +echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
  2165. + { (exit 1); exit 1; }; }
  2166. +
  2167. +# Provide some information about the compiler.
  2168. +echo "$as_me:$LINENO:" \
  2169. + "checking for C compiler version" >&5
  2170. +ac_compiler=`set X $ac_compile; echo $2`
  2171. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2172. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  2173. + ac_status=$?
  2174. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2175. + (exit $ac_status); }
  2176. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2177. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  2178. + ac_status=$?
  2179. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2180. + (exit $ac_status); }
  2181. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2182. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  2183. + ac_status=$?
  2184. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2185. + (exit $ac_status); }
  2186. +
  2187. +cat >conftest.$ac_ext <<_ACEOF
  2188. +#line $LINENO "configure"
  2189. +#include "confdefs.h"
  2190. +
  2191. +#ifdef F77_DUMMY_MAIN
  2192. +# ifdef __cplusplus
  2193. + extern "C"
  2194. +# endif
  2195. + int F77_DUMMY_MAIN() { return 1; }
  2196. +#endif
  2197. +int
  2198. +main ()
  2199. +{
  2200. -main(){return(0);}
  2201. -EOF
  2202. -if { (eval echo configure:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2203. - ac_cv_prog_cc_works=yes
  2204. - # If we can't run a trivial program, we are probably using a cross compiler.
  2205. - if (./conftest; exit) 2>/dev/null; then
  2206. - ac_cv_prog_cc_cross=no
  2207. + ;
  2208. + return 0;
  2209. +}
  2210. +_ACEOF
  2211. +ac_clean_files_save=$ac_clean_files
  2212. +ac_clean_files="$ac_clean_files a.out a.exe"
  2213. +# Try to create an executable without -o first, disregard a.out.
  2214. +# It will help us diagnose broken compilers, and finding out an intuition
  2215. +# of exeext.
  2216. +echo "$as_me:$LINENO: checking for C compiler default output" >&5
  2217. +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  2218. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2219. +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2220. + (eval $ac_link_default) 2>&5
  2221. + ac_status=$?
  2222. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2223. + (exit $ac_status); }; then
  2224. + # Find the output, starting from the most likely. This scheme is
  2225. +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2226. +# resort.
  2227. +
  2228. +# Be careful to initialize this variable, since it used to be cached.
  2229. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2230. +ac_cv_exeext=
  2231. +for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
  2232. + ls a.out conftest 2>/dev/null;
  2233. + ls a.* conftest.* 2>/dev/null`; do
  2234. + case $ac_file in
  2235. + *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
  2236. + a.out ) # We found the default executable, but exeext='' is most
  2237. + # certainly right.
  2238. + break;;
  2239. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2240. + # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  2241. + export ac_cv_exeext
  2242. + break;;
  2243. + * ) break;;
  2244. + esac
  2245. +done
  2246. +else
  2247. + echo "$as_me: failed program was:" >&5
  2248. +cat conftest.$ac_ext >&5
  2249. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
  2250. +echo "$as_me: error: C compiler cannot create executables" >&2;}
  2251. + { (exit 77); exit 77; }; }
  2252. +fi
  2253. +
  2254. +ac_exeext=$ac_cv_exeext
  2255. +echo "$as_me:$LINENO: result: $ac_file" >&5
  2256. +echo "${ECHO_T}$ac_file" >&6
  2257. +
  2258. +# Check the compiler produces executables we can run. If not, either
  2259. +# the compiler is broken, or we cross compile.
  2260. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2261. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2262. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2263. +# If not cross compiling, check that we can run a simple program.
  2264. +if test "$cross_compiling" != yes; then
  2265. + if { ac_try='./$ac_file'
  2266. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2267. + (eval $ac_try) 2>&5
  2268. + ac_status=$?
  2269. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2270. + (exit $ac_status); }; }; then
  2271. + cross_compiling=no
  2272. else
  2273. - ac_cv_prog_cc_cross=yes
  2274. + if test "$cross_compiling" = maybe; then
  2275. + cross_compiling=yes
  2276. + else
  2277. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2278. +If you meant to cross compile, use \`--host'." >&5
  2279. +echo "$as_me: error: cannot run C compiled programs.
  2280. +If you meant to cross compile, use \`--host'." >&2;}
  2281. + { (exit 1); exit 1; }; }
  2282. + fi
  2283. fi
  2284. -else
  2285. - echo "configure: failed program was:" >&5
  2286. - cat conftest.$ac_ext >&5
  2287. - ac_cv_prog_cc_works=no
  2288. -fi
  2289. -rm -fr conftest*
  2290. -ac_ext=c
  2291. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2292. -ac_cpp='$CPP $CPPFLAGS'
  2293. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2294. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2295. -cross_compiling=$ac_cv_prog_cc_cross
  2296. -
  2297. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  2298. -if test $ac_cv_prog_cc_works = no; then
  2299. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  2300. fi
  2301. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2302. -echo "configure:1011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  2303. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  2304. -cross_compiling=$ac_cv_prog_cc_cross
  2305. +echo "$as_me:$LINENO: result: yes" >&5
  2306. +echo "${ECHO_T}yes" >&6
  2307. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2308. -echo "configure:1016: checking whether we are using GNU C" >&5
  2309. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2310. - echo $ac_n "(cached) $ac_c" 1>&6
  2311. +rm -f a.out a.exe conftest$ac_cv_exeext
  2312. +ac_clean_files=$ac_clean_files_save
  2313. +# Check the compiler produces executables we can run. If not, either
  2314. +# the compiler is broken, or we cross compile.
  2315. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2316. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2317. +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2318. +echo "${ECHO_T}$cross_compiling" >&6
  2319. +
  2320. +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2321. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2322. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2323. + (eval $ac_link) 2>&5
  2324. + ac_status=$?
  2325. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2326. + (exit $ac_status); }; then
  2327. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2328. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2329. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  2330. +# `rm'.
  2331. +for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  2332. + case $ac_file in
  2333. + *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  2334. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2335. + export ac_cv_exeext
  2336. + break;;
  2337. + * ) break;;
  2338. + esac
  2339. +done
  2340. else
  2341. - cat > conftest.c <<EOF
  2342. -#ifdef __GNUC__
  2343. - yes;
  2344. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
  2345. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
  2346. + { (exit 1); exit 1; }; }
  2347. +fi
  2348. +
  2349. +rm -f conftest$ac_cv_exeext
  2350. +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2351. +echo "${ECHO_T}$ac_cv_exeext" >&6
  2352. +
  2353. +rm -f conftest.$ac_ext
  2354. +EXEEXT=$ac_cv_exeext
  2355. +ac_exeext=$EXEEXT
  2356. +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2357. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2358. +if test "${ac_cv_objext+set}" = set; then
  2359. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2360. +else
  2361. + cat >conftest.$ac_ext <<_ACEOF
  2362. +#line $LINENO "configure"
  2363. +#include "confdefs.h"
  2364. +
  2365. +#ifdef F77_DUMMY_MAIN
  2366. +# ifdef __cplusplus
  2367. + extern "C"
  2368. +# endif
  2369. + int F77_DUMMY_MAIN() { return 1; }
  2370. #endif
  2371. -EOF
  2372. -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
  2373. - ac_cv_prog_gcc=yes
  2374. -else
  2375. - ac_cv_prog_gcc=no
  2376. -fi
  2377. -fi
  2378. -
  2379. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2380. +int
  2381. +main ()
  2382. +{
  2383. -if test $ac_cv_prog_gcc = yes; then
  2384. - GCC=yes
  2385. + ;
  2386. + return 0;
  2387. +}
  2388. +_ACEOF
  2389. +rm -f conftest.o conftest.obj
  2390. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2391. + (eval $ac_compile) 2>&5
  2392. + ac_status=$?
  2393. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. + (exit $ac_status); }; then
  2395. + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2396. + case $ac_file in
  2397. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  2398. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2399. + break;;
  2400. + esac
  2401. +done
  2402. else
  2403. - GCC=
  2404. -fi
  2405. + echo "$as_me: failed program was:" >&5
  2406. +cat conftest.$ac_ext >&5
  2407. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
  2408. +echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
  2409. + { (exit 1); exit 1; }; }
  2410. +fi
  2411. +
  2412. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2413. +fi
  2414. +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2415. +echo "${ECHO_T}$ac_cv_objext" >&6
  2416. +OBJEXT=$ac_cv_objext
  2417. +ac_objext=$OBJEXT
  2418. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2419. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2420. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2421. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2422. +else
  2423. + cat >conftest.$ac_ext <<_ACEOF
  2424. +#line $LINENO "configure"
  2425. +#include "confdefs.h"
  2426. +
  2427. +#ifdef F77_DUMMY_MAIN
  2428. +# ifdef __cplusplus
  2429. + extern "C"
  2430. +# endif
  2431. + int F77_DUMMY_MAIN() { return 1; }
  2432. +#endif
  2433. +int
  2434. +main ()
  2435. +{
  2436. +#ifndef __GNUC__
  2437. + choke me
  2438. +#endif
  2439. -ac_test_CFLAGS="${CFLAGS+set}"
  2440. -ac_save_CFLAGS="$CFLAGS"
  2441. -CFLAGS=
  2442. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2443. -echo "configure:1044: checking whether ${CC-cc} accepts -g" >&5
  2444. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  2445. - echo $ac_n "(cached) $ac_c" 1>&6
  2446. -else
  2447. - echo 'void f(){}' > conftest.c
  2448. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2449. + ;
  2450. + return 0;
  2451. +}
  2452. +_ACEOF
  2453. +rm -f conftest.$ac_objext
  2454. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2455. + (eval $ac_compile) 2>&5
  2456. + ac_status=$?
  2457. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2458. + (exit $ac_status); } &&
  2459. + { ac_try='test -s conftest.$ac_objext'
  2460. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2461. + (eval $ac_try) 2>&5
  2462. + ac_status=$?
  2463. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2464. + (exit $ac_status); }; }; then
  2465. + ac_compiler_gnu=yes
  2466. +else
  2467. + echo "$as_me: failed program was:" >&5
  2468. +cat conftest.$ac_ext >&5
  2469. +ac_compiler_gnu=no
  2470. +fi
  2471. +rm -f conftest.$ac_objext conftest.$ac_ext
  2472. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2473. +
  2474. +fi
  2475. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2476. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2477. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  2478. +ac_test_CFLAGS=${CFLAGS+set}
  2479. +ac_save_CFLAGS=$CFLAGS
  2480. +CFLAGS="-g"
  2481. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2482. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2483. +if test "${ac_cv_prog_cc_g+set}" = set; then
  2484. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2485. +else
  2486. + cat >conftest.$ac_ext <<_ACEOF
  2487. +#line $LINENO "configure"
  2488. +#include "confdefs.h"
  2489. +
  2490. +#ifdef F77_DUMMY_MAIN
  2491. +# ifdef __cplusplus
  2492. + extern "C"
  2493. +# endif
  2494. + int F77_DUMMY_MAIN() { return 1; }
  2495. +#endif
  2496. +int
  2497. +main ()
  2498. +{
  2499. +
  2500. + ;
  2501. + return 0;
  2502. +}
  2503. +_ACEOF
  2504. +rm -f conftest.$ac_objext
  2505. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2506. + (eval $ac_compile) 2>&5
  2507. + ac_status=$?
  2508. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2509. + (exit $ac_status); } &&
  2510. + { ac_try='test -s conftest.$ac_objext'
  2511. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2512. + (eval $ac_try) 2>&5
  2513. + ac_status=$?
  2514. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2515. + (exit $ac_status); }; }; then
  2516. ac_cv_prog_cc_g=yes
  2517. else
  2518. - ac_cv_prog_cc_g=no
  2519. + echo "$as_me: failed program was:" >&5
  2520. +cat conftest.$ac_ext >&5
  2521. +ac_cv_prog_cc_g=no
  2522. fi
  2523. -rm -f conftest*
  2524. -
  2525. +rm -f conftest.$ac_objext conftest.$ac_ext
  2526. fi
  2527. -
  2528. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  2529. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2530. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2531. if test "$ac_test_CFLAGS" = set; then
  2532. - CFLAGS="$ac_save_CFLAGS"
  2533. + CFLAGS=$ac_save_CFLAGS
  2534. elif test $ac_cv_prog_cc_g = yes; then
  2535. if test "$GCC" = yes; then
  2536. CFLAGS="-g -O2"
  2537. @@ -1070,96 +2167,276 @@
  2538. CFLAGS=
  2539. fi
  2540. fi
  2541. +# Some people use a C++ compiler to compile C. Since we use `exit',
  2542. +# in C++ we need to declare it. In case someone uses the same compiler
  2543. +# for both compiling C and C++ we need to have the C++ compiler decide
  2544. +# the declaration of exit, since it's the most demanding environment.
  2545. +cat >conftest.$ac_ext <<_ACEOF
  2546. +#ifndef __cplusplus
  2547. + choke me
  2548. +#endif
  2549. +_ACEOF
  2550. +rm -f conftest.$ac_objext
  2551. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2552. + (eval $ac_compile) 2>&5
  2553. + ac_status=$?
  2554. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2555. + (exit $ac_status); } &&
  2556. + { ac_try='test -s conftest.$ac_objext'
  2557. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2558. + (eval $ac_try) 2>&5
  2559. + ac_status=$?
  2560. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2561. + (exit $ac_status); }; }; then
  2562. + for ac_declaration in \
  2563. + ''\
  2564. + '#include <stdlib.h>' \
  2565. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2566. + 'extern "C" void std::exit (int); using std::exit;' \
  2567. + 'extern "C" void exit (int) throw ();' \
  2568. + 'extern "C" void exit (int);' \
  2569. + 'void exit (int);'
  2570. +do
  2571. + cat >conftest.$ac_ext <<_ACEOF
  2572. +#line $LINENO "configure"
  2573. +#include "confdefs.h"
  2574. +#include <stdlib.h>
  2575. +$ac_declaration
  2576. +#ifdef F77_DUMMY_MAIN
  2577. +# ifdef __cplusplus
  2578. + extern "C"
  2579. +# endif
  2580. + int F77_DUMMY_MAIN() { return 1; }
  2581. +#endif
  2582. +int
  2583. +main ()
  2584. +{
  2585. +exit (42);
  2586. + ;
  2587. + return 0;
  2588. +}
  2589. +_ACEOF
  2590. +rm -f conftest.$ac_objext
  2591. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2592. + (eval $ac_compile) 2>&5
  2593. + ac_status=$?
  2594. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2595. + (exit $ac_status); } &&
  2596. + { ac_try='test -s conftest.$ac_objext'
  2597. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2598. + (eval $ac_try) 2>&5
  2599. + ac_status=$?
  2600. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2601. + (exit $ac_status); }; }; then
  2602. + :
  2603. +else
  2604. + echo "$as_me: failed program was:" >&5
  2605. +cat conftest.$ac_ext >&5
  2606. +continue
  2607. +fi
  2608. +rm -f conftest.$ac_objext conftest.$ac_ext
  2609. + cat >conftest.$ac_ext <<_ACEOF
  2610. +#line $LINENO "configure"
  2611. +#include "confdefs.h"
  2612. +$ac_declaration
  2613. +#ifdef F77_DUMMY_MAIN
  2614. +# ifdef __cplusplus
  2615. + extern "C"
  2616. +# endif
  2617. + int F77_DUMMY_MAIN() { return 1; }
  2618. +#endif
  2619. +int
  2620. +main ()
  2621. +{
  2622. +exit (42);
  2623. + ;
  2624. + return 0;
  2625. +}
  2626. +_ACEOF
  2627. +rm -f conftest.$ac_objext
  2628. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2629. + (eval $ac_compile) 2>&5
  2630. + ac_status=$?
  2631. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2632. + (exit $ac_status); } &&
  2633. + { ac_try='test -s conftest.$ac_objext'
  2634. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2635. + (eval $ac_try) 2>&5
  2636. + ac_status=$?
  2637. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2638. + (exit $ac_status); }; }; then
  2639. + break
  2640. +else
  2641. + echo "$as_me: failed program was:" >&5
  2642. +cat conftest.$ac_ext >&5
  2643. +fi
  2644. +rm -f conftest.$ac_objext conftest.$ac_ext
  2645. +done
  2646. +rm -f conftest*
  2647. +if test -n "$ac_declaration"; then
  2648. + echo '#ifdef __cplusplus' >>confdefs.h
  2649. + echo $ac_declaration >>confdefs.h
  2650. + echo '#endif' >>confdefs.h
  2651. +fi
  2652. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  2653. -echo "configure:1076: checking whether ${MAKE-make} sets \${MAKE}" >&5
  2654. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  2655. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  2656. - echo $ac_n "(cached) $ac_c" 1>&6
  2657. else
  2658. - cat > conftestmake <<\EOF
  2659. + echo "$as_me: failed program was:" >&5
  2660. +cat conftest.$ac_ext >&5
  2661. +fi
  2662. +rm -f conftest.$ac_objext conftest.$ac_ext
  2663. +ac_ext=c
  2664. +ac_cpp='$CPP $CPPFLAGS'
  2665. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2666. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2667. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2668. +
  2669. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
  2670. +echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  2671. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  2672. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2673. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2674. +else
  2675. + cat >conftest.make <<\_ACEOF
  2676. all:
  2677. @echo 'ac_maketemp="${MAKE}"'
  2678. -EOF
  2679. +_ACEOF
  2680. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2681. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  2682. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2683. if test -n "$ac_maketemp"; then
  2684. eval ac_cv_prog_make_${ac_make}_set=yes
  2685. else
  2686. eval ac_cv_prog_make_${ac_make}_set=no
  2687. fi
  2688. -rm -f conftestmake
  2689. +rm -f conftest.make
  2690. fi
  2691. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2692. - echo "$ac_t""yes" 1>&6
  2693. + echo "$as_me:$LINENO: result: yes" >&5
  2694. +echo "${ECHO_T}yes" >&6
  2695. SET_MAKE=
  2696. else
  2697. - echo "$ac_t""no" 1>&6
  2698. + echo "$as_me:$LINENO: result: no" >&5
  2699. +echo "${ECHO_T}no" >&6
  2700. SET_MAKE="MAKE=${MAKE-make}"
  2701. fi
  2702. -# Extract the first word of "ranlib", so it can be a program name with args.
  2703. -set dummy ranlib; ac_word=$2
  2704. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2705. -echo "configure:1105: checking for $ac_word" >&5
  2706. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2707. - echo $ac_n "(cached) $ac_c" 1>&6
  2708. +if test -n "$ac_tool_prefix"; then
  2709. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2710. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2711. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2712. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2713. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  2714. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2715. else
  2716. if test -n "$RANLIB"; then
  2717. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2718. else
  2719. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2720. - ac_dummy="$PATH"
  2721. - for ac_dir in $ac_dummy; do
  2722. - test -z "$ac_dir" && ac_dir=.
  2723. - if test -f $ac_dir/$ac_word; then
  2724. - ac_cv_prog_RANLIB="ranlib"
  2725. - break
  2726. - fi
  2727. - done
  2728. - IFS="$ac_save_ifs"
  2729. - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2730. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2731. +for as_dir in $PATH
  2732. +do
  2733. + IFS=$as_save_IFS
  2734. + test -z "$as_dir" && as_dir=.
  2735. + for ac_exec_ext in '' $ac_executable_extensions; do
  2736. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2737. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2738. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2739. + break 2
  2740. + fi
  2741. +done
  2742. +done
  2743. +
  2744. fi
  2745. fi
  2746. -RANLIB="$ac_cv_prog_RANLIB"
  2747. +RANLIB=$ac_cv_prog_RANLIB
  2748. if test -n "$RANLIB"; then
  2749. - echo "$ac_t""$RANLIB" 1>&6
  2750. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  2751. +echo "${ECHO_T}$RANLIB" >&6
  2752. +else
  2753. + echo "$as_me:$LINENO: result: no" >&5
  2754. +echo "${ECHO_T}no" >&6
  2755. +fi
  2756. +
  2757. +fi
  2758. +if test -z "$ac_cv_prog_RANLIB"; then
  2759. + ac_ct_RANLIB=$RANLIB
  2760. + # Extract the first word of "ranlib", so it can be a program name with args.
  2761. +set dummy ranlib; ac_word=$2
  2762. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2763. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2764. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2765. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2766. +else
  2767. + if test -n "$ac_ct_RANLIB"; then
  2768. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2769. +else
  2770. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2771. +for as_dir in $PATH
  2772. +do
  2773. + IFS=$as_save_IFS
  2774. + test -z "$as_dir" && as_dir=.
  2775. + for ac_exec_ext in '' $ac_executable_extensions; do
  2776. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2777. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  2778. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2779. + break 2
  2780. + fi
  2781. +done
  2782. +done
  2783. +
  2784. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2785. +fi
  2786. +fi
  2787. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2788. +if test -n "$ac_ct_RANLIB"; then
  2789. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2790. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2791. +else
  2792. + echo "$as_me:$LINENO: result: no" >&5
  2793. +echo "${ECHO_T}no" >&6
  2794. +fi
  2795. +
  2796. + RANLIB=$ac_ct_RANLIB
  2797. else
  2798. - echo "$ac_t""no" 1>&6
  2799. + RANLIB="$ac_cv_prog_RANLIB"
  2800. fi
  2801. for ac_prog in 'bison -y' byacc
  2802. do
  2803. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  2804. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2805. set dummy $ac_prog; ac_word=$2
  2806. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2807. -echo "configure:1137: checking for $ac_word" >&5
  2808. -if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  2809. - echo $ac_n "(cached) $ac_c" 1>&6
  2810. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2811. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2812. +if test "${ac_cv_prog_YACC+set}" = set; then
  2813. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2814. else
  2815. if test -n "$YACC"; then
  2816. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2817. else
  2818. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2819. - ac_dummy="$PATH"
  2820. - for ac_dir in $ac_dummy; do
  2821. - test -z "$ac_dir" && ac_dir=.
  2822. - if test -f $ac_dir/$ac_word; then
  2823. - ac_cv_prog_YACC="$ac_prog"
  2824. - break
  2825. - fi
  2826. - done
  2827. - IFS="$ac_save_ifs"
  2828. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2829. +for as_dir in $PATH
  2830. +do
  2831. + IFS=$as_save_IFS
  2832. + test -z "$as_dir" && as_dir=.
  2833. + for ac_exec_ext in '' $ac_executable_extensions; do
  2834. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2835. + ac_cv_prog_YACC="$ac_prog"
  2836. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2837. + break 2
  2838. + fi
  2839. +done
  2840. +done
  2841. +
  2842. fi
  2843. fi
  2844. -YACC="$ac_cv_prog_YACC"
  2845. +YACC=$ac_cv_prog_YACC
  2846. if test -n "$YACC"; then
  2847. - echo "$ac_t""$YACC" 1>&6
  2848. + echo "$as_me:$LINENO: result: $YACC" >&5
  2849. +echo "${ECHO_T}$YACC" >&6
  2850. else
  2851. - echo "$ac_t""no" 1>&6
  2852. + echo "$as_me:$LINENO: result: no" >&5
  2853. +echo "${ECHO_T}no" >&6
  2854. fi
  2855. -test -n "$YACC" && break
  2856. + test -n "$YACC" && break
  2857. done
  2858. test -n "$YACC" || YACC="yacc"
  2859. @@ -1168,259 +2445,291 @@
  2860. exit 5
  2861. fi
  2862. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2863. -echo "configure:1173: checking how to run the C preprocessor" >&5
  2864. -# On Suns, sometimes $CPP names a directory.
  2865. -if test -n "$CPP" && test -d "$CPP"; then
  2866. - CPP=
  2867. -fi
  2868. -if test -z "$CPP"; then
  2869. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2870. - echo $ac_n "(cached) $ac_c" 1>&6
  2871. -else
  2872. - # This must be in double quotes, not single quotes, because CPP may get
  2873. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  2874. - CPP="${CC-cc} -E"
  2875. - # On the NeXT, cc -E runs the code through the compiler's parser,
  2876. - # not just through cpp.
  2877. - cat > conftest.$ac_ext <<EOF
  2878. -#line 1188 "configure"
  2879. -#include "confdefs.h"
  2880. -#include <assert.h>
  2881. -Syntax Error
  2882. -EOF
  2883. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2884. -{ (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2885. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2886. -if test -z "$ac_err"; then
  2887. - :
  2888. -else
  2889. - echo "$ac_err" >&5
  2890. - echo "configure: failed program was:" >&5
  2891. - cat conftest.$ac_ext >&5
  2892. - rm -rf conftest*
  2893. - CPP="${CC-cc} -E -traditional-cpp"
  2894. - cat > conftest.$ac_ext <<EOF
  2895. -#line 1205 "configure"
  2896. -#include "confdefs.h"
  2897. -#include <assert.h>
  2898. -Syntax Error
  2899. -EOF
  2900. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2901. -{ (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2902. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2903. -if test -z "$ac_err"; then
  2904. - :
  2905. -else
  2906. - echo "$ac_err" >&5
  2907. - echo "configure: failed program was:" >&5
  2908. - cat conftest.$ac_ext >&5
  2909. - rm -rf conftest*
  2910. - CPP="${CC-cc} -nologo -E"
  2911. - cat > conftest.$ac_ext <<EOF
  2912. -#line 1222 "configure"
  2913. -#include "confdefs.h"
  2914. -#include <assert.h>
  2915. -Syntax Error
  2916. -EOF
  2917. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2918. -{ (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2919. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2920. -if test -z "$ac_err"; then
  2921. - :
  2922. -else
  2923. - echo "$ac_err" >&5
  2924. - echo "configure: failed program was:" >&5
  2925. - cat conftest.$ac_ext >&5
  2926. - rm -rf conftest*
  2927. - CPP=/lib/cpp
  2928. -fi
  2929. -rm -f conftest*
  2930. -fi
  2931. -rm -f conftest*
  2932. -fi
  2933. -rm -f conftest*
  2934. - ac_cv_prog_CPP="$CPP"
  2935. -fi
  2936. - CPP="$ac_cv_prog_CPP"
  2937. -else
  2938. - ac_cv_prog_CPP="$CPP"
  2939. -fi
  2940. -echo "$ac_t""$CPP" 1>&6
  2941. missing_dir=`cd $ac_aux_dir && pwd`
  2942. for ac_prog in flex lex
  2943. do
  2944. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  2945. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2946. set dummy $ac_prog; ac_word=$2
  2947. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2948. -echo "configure:1258: checking for $ac_word" >&5
  2949. -if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  2950. - echo $ac_n "(cached) $ac_c" 1>&6
  2951. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2952. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2953. +if test "${ac_cv_prog_LEX+set}" = set; then
  2954. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2955. else
  2956. if test -n "$LEX"; then
  2957. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  2958. else
  2959. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2960. - ac_dummy="$PATH"
  2961. - for ac_dir in $ac_dummy; do
  2962. - test -z "$ac_dir" && ac_dir=.
  2963. - if test -f $ac_dir/$ac_word; then
  2964. - ac_cv_prog_LEX="$ac_prog"
  2965. - break
  2966. - fi
  2967. - done
  2968. - IFS="$ac_save_ifs"
  2969. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2970. +for as_dir in $PATH
  2971. +do
  2972. + IFS=$as_save_IFS
  2973. + test -z "$as_dir" && as_dir=.
  2974. + for ac_exec_ext in '' $ac_executable_extensions; do
  2975. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2976. + ac_cv_prog_LEX="$ac_prog"
  2977. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2978. + break 2
  2979. + fi
  2980. +done
  2981. +done
  2982. +
  2983. fi
  2984. fi
  2985. -LEX="$ac_cv_prog_LEX"
  2986. +LEX=$ac_cv_prog_LEX
  2987. if test -n "$LEX"; then
  2988. - echo "$ac_t""$LEX" 1>&6
  2989. + echo "$as_me:$LINENO: result: $LEX" >&5
  2990. +echo "${ECHO_T}$LEX" >&6
  2991. else
  2992. - echo "$ac_t""no" 1>&6
  2993. + echo "$as_me:$LINENO: result: no" >&5
  2994. +echo "${ECHO_T}no" >&6
  2995. fi
  2996. -test -n "$LEX" && break
  2997. + test -n "$LEX" && break
  2998. done
  2999. test -n "$LEX" || LEX=""$missing_dir/missing flex""
  3000. -# Extract the first word of "flex", so it can be a program name with args.
  3001. -set dummy flex; ac_word=$2
  3002. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3003. -echo "configure:1291: checking for $ac_word" >&5
  3004. -if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  3005. - echo $ac_n "(cached) $ac_c" 1>&6
  3006. +for ac_prog in flex lex
  3007. +do
  3008. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  3009. +set dummy $ac_prog; ac_word=$2
  3010. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  3011. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3012. +if test "${ac_cv_prog_LEX+set}" = set; then
  3013. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3014. else
  3015. if test -n "$LEX"; then
  3016. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  3017. else
  3018. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3019. - ac_dummy="$PATH"
  3020. - for ac_dir in $ac_dummy; do
  3021. - test -z "$ac_dir" && ac_dir=.
  3022. - if test -f $ac_dir/$ac_word; then
  3023. - ac_cv_prog_LEX="flex"
  3024. - break
  3025. - fi
  3026. - done
  3027. - IFS="$ac_save_ifs"
  3028. - test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  3029. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3030. +for as_dir in $PATH
  3031. +do
  3032. + IFS=$as_save_IFS
  3033. + test -z "$as_dir" && as_dir=.
  3034. + for ac_exec_ext in '' $ac_executable_extensions; do
  3035. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3036. + ac_cv_prog_LEX="$ac_prog"
  3037. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3038. + break 2
  3039. + fi
  3040. +done
  3041. +done
  3042. +
  3043. fi
  3044. fi
  3045. -LEX="$ac_cv_prog_LEX"
  3046. +LEX=$ac_cv_prog_LEX
  3047. if test -n "$LEX"; then
  3048. - echo "$ac_t""$LEX" 1>&6
  3049. + echo "$as_me:$LINENO: result: $LEX" >&5
  3050. +echo "${ECHO_T}$LEX" >&6
  3051. else
  3052. - echo "$ac_t""no" 1>&6
  3053. + echo "$as_me:$LINENO: result: no" >&5
  3054. +echo "${ECHO_T}no" >&6
  3055. fi
  3056. + test -n "$LEX" && break
  3057. +done
  3058. +test -n "$LEX" || LEX=":"
  3059. +
  3060. if test -z "$LEXLIB"
  3061. then
  3062. - case "$LEX" in
  3063. - flex*) ac_lib=fl ;;
  3064. - *) ac_lib=l ;;
  3065. - esac
  3066. - echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  3067. -echo "configure:1325: checking for yywrap in -l$ac_lib" >&5
  3068. -ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  3069. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3070. - echo $ac_n "(cached) $ac_c" 1>&6
  3071. -else
  3072. - ac_save_LIBS="$LIBS"
  3073. -LIBS="-l$ac_lib $LIBS"
  3074. -cat > conftest.$ac_ext <<EOF
  3075. -#line 1333 "configure"
  3076. + echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
  3077. +echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
  3078. +if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  3079. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3080. +else
  3081. + ac_check_lib_save_LIBS=$LIBS
  3082. +LIBS="-lfl $LIBS"
  3083. +cat >conftest.$ac_ext <<_ACEOF
  3084. +#line $LINENO "configure"
  3085. #include "confdefs.h"
  3086. +
  3087. /* Override any gcc2 internal prototype to avoid an error. */
  3088. +#ifdef __cplusplus
  3089. +extern "C"
  3090. +#endif
  3091. /* We use char because int might match the return type of a gcc2
  3092. - builtin and then its argument prototype would still apply. */
  3093. -char yywrap();
  3094. -
  3095. -int main() {
  3096. -yywrap()
  3097. -; return 0; }
  3098. -EOF
  3099. -if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3100. - rm -rf conftest*
  3101. - eval "ac_cv_lib_$ac_lib_var=yes"
  3102. -else
  3103. - echo "configure: failed program was:" >&5
  3104. - cat conftest.$ac_ext >&5
  3105. - rm -rf conftest*
  3106. - eval "ac_cv_lib_$ac_lib_var=no"
  3107. -fi
  3108. -rm -f conftest*
  3109. -LIBS="$ac_save_LIBS"
  3110. + builtin and then its argument prototype would still apply. */
  3111. +char yywrap ();
  3112. +#ifdef F77_DUMMY_MAIN
  3113. +# ifdef __cplusplus
  3114. + extern "C"
  3115. +# endif
  3116. + int F77_DUMMY_MAIN() { return 1; }
  3117. +#endif
  3118. +int
  3119. +main ()
  3120. +{
  3121. +yywrap ();
  3122. + ;
  3123. + return 0;
  3124. +}
  3125. +_ACEOF
  3126. +rm -f conftest.$ac_objext conftest$ac_exeext
  3127. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3128. + (eval $ac_link) 2>&5
  3129. + ac_status=$?
  3130. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3131. + (exit $ac_status); } &&
  3132. + { ac_try='test -s conftest$ac_exeext'
  3133. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3134. + (eval $ac_try) 2>&5
  3135. + ac_status=$?
  3136. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3137. + (exit $ac_status); }; }; then
  3138. + ac_cv_lib_fl_yywrap=yes
  3139. +else
  3140. + echo "$as_me: failed program was:" >&5
  3141. +cat conftest.$ac_ext >&5
  3142. +ac_cv_lib_fl_yywrap=no
  3143. +fi
  3144. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3145. +LIBS=$ac_check_lib_save_LIBS
  3146. +fi
  3147. +echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
  3148. +echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
  3149. +if test $ac_cv_lib_fl_yywrap = yes; then
  3150. + LEXLIB="-lfl"
  3151. +else
  3152. + echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
  3153. +echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
  3154. +if test "${ac_cv_lib_l_yywrap+set}" = set; then
  3155. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3156. +else
  3157. + ac_check_lib_save_LIBS=$LIBS
  3158. +LIBS="-ll $LIBS"
  3159. +cat >conftest.$ac_ext <<_ACEOF
  3160. +#line $LINENO "configure"
  3161. +#include "confdefs.h"
  3162. +/* Override any gcc2 internal prototype to avoid an error. */
  3163. +#ifdef __cplusplus
  3164. +extern "C"
  3165. +#endif
  3166. +/* We use char because int might match the return type of a gcc2
  3167. + builtin and then its argument prototype would still apply. */
  3168. +char yywrap ();
  3169. +#ifdef F77_DUMMY_MAIN
  3170. +# ifdef __cplusplus
  3171. + extern "C"
  3172. +# endif
  3173. + int F77_DUMMY_MAIN() { return 1; }
  3174. +#endif
  3175. +int
  3176. +main ()
  3177. +{
  3178. +yywrap ();
  3179. + ;
  3180. + return 0;
  3181. +}
  3182. +_ACEOF
  3183. +rm -f conftest.$ac_objext conftest$ac_exeext
  3184. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3185. + (eval $ac_link) 2>&5
  3186. + ac_status=$?
  3187. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3188. + (exit $ac_status); } &&
  3189. + { ac_try='test -s conftest$ac_exeext'
  3190. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3191. + (eval $ac_try) 2>&5
  3192. + ac_status=$?
  3193. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3194. + (exit $ac_status); }; }; then
  3195. + ac_cv_lib_l_yywrap=yes
  3196. +else
  3197. + echo "$as_me: failed program was:" >&5
  3198. +cat conftest.$ac_ext >&5
  3199. +ac_cv_lib_l_yywrap=no
  3200. +fi
  3201. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3202. +LIBS=$ac_check_lib_save_LIBS
  3203. +fi
  3204. +echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
  3205. +echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
  3206. +if test $ac_cv_lib_l_yywrap = yes; then
  3207. + LEXLIB="-ll"
  3208. fi
  3209. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3210. - echo "$ac_t""yes" 1>&6
  3211. - LEXLIB="-l$ac_lib"
  3212. -else
  3213. - echo "$ac_t""no" 1>&6
  3214. +
  3215. fi
  3216. fi
  3217. -echo $ac_n "checking lex output file root""... $ac_c" 1>&6
  3218. -echo "configure:1367: checking lex output file root" >&5
  3219. -if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
  3220. - echo $ac_n "(cached) $ac_c" 1>&6
  3221. +if test "x$LEX" != "x:"; then
  3222. + echo "$as_me:$LINENO: checking lex output file root" >&5
  3223. +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
  3224. +if test "${ac_cv_prog_lex_root+set}" = set; then
  3225. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3226. else
  3227. # The minimal lex program is just a single line: %%. But some broken lexes
  3228. # (Solaris, I think it was) want two %% lines, so accommodate them.
  3229. -echo '%%
  3230. -%%' | $LEX
  3231. +cat >conftest.l <<_ACEOF
  3232. +%%
  3233. +%%
  3234. +_ACEOF
  3235. +{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  3236. + (eval $LEX conftest.l) 2>&5
  3237. + ac_status=$?
  3238. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3239. + (exit $ac_status); }
  3240. if test -f lex.yy.c; then
  3241. ac_cv_prog_lex_root=lex.yy
  3242. elif test -f lexyy.c; then
  3243. ac_cv_prog_lex_root=lexyy
  3244. else
  3245. - { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
  3246. + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
  3247. +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
  3248. + { (exit 1); exit 1; }; }
  3249. fi
  3250. fi
  3251. -
  3252. -echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
  3253. +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
  3254. +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
  3255. +rm -f conftest.l
  3256. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  3257. -echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
  3258. -echo "configure:1388: checking whether yytext is a pointer" >&5
  3259. -if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
  3260. - echo $ac_n "(cached) $ac_c" 1>&6
  3261. +echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
  3262. +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
  3263. +if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  3264. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3265. else
  3266. # POSIX says lex can declare yytext either as a pointer or an array; the
  3267. # default is implementation-dependent. Figure out which it is, since
  3268. # not all implementations provide the %pointer and %array declarations.
  3269. ac_cv_prog_lex_yytext_pointer=no
  3270. echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  3271. -ac_save_LIBS="$LIBS"
  3272. +ac_save_LIBS=$LIBS
  3273. LIBS="$LIBS $LEXLIB"
  3274. -cat > conftest.$ac_ext <<EOF
  3275. -#line 1400 "configure"
  3276. -#include "confdefs.h"
  3277. +cat >conftest.$ac_ext <<_ACEOF
  3278. `cat $LEX_OUTPUT_ROOT.c`
  3279. -int main() {
  3280. -
  3281. -; return 0; }
  3282. -EOF
  3283. -if { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3284. - rm -rf conftest*
  3285. +_ACEOF
  3286. +rm -f conftest.$ac_objext conftest$ac_exeext
  3287. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3288. + (eval $ac_link) 2>&5
  3289. + ac_status=$?
  3290. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3291. + (exit $ac_status); } &&
  3292. + { ac_try='test -s conftest$ac_exeext'
  3293. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3294. + (eval $ac_try) 2>&5
  3295. + ac_status=$?
  3296. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3297. + (exit $ac_status); }; }; then
  3298. ac_cv_prog_lex_yytext_pointer=yes
  3299. else
  3300. - echo "configure: failed program was:" >&5
  3301. - cat conftest.$ac_ext >&5
  3302. + echo "$as_me: failed program was:" >&5
  3303. +cat conftest.$ac_ext >&5
  3304. fi
  3305. -rm -f conftest*
  3306. -LIBS="$ac_save_LIBS"
  3307. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3308. +LIBS=$ac_save_LIBS
  3309. rm -f "${LEX_OUTPUT_ROOT}.c"
  3310. fi
  3311. -
  3312. -echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
  3313. +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
  3314. +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
  3315. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  3316. - cat >> confdefs.h <<\EOF
  3317. +
  3318. +cat >>confdefs.h <<\_ACEOF
  3319. #define YYTEXT_POINTER 1
  3320. -EOF
  3321. +_ACEOF
  3322. +
  3323. +fi
  3324. fi
  3325. @@ -1432,10 +2741,10 @@
  3326. -echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  3327. -echo "configure:1437: checking for ${CC-cc} option to accept ANSI C" >&5
  3328. -if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  3329. - echo $ac_n "(cached) $ac_c" 1>&6
  3330. +echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  3331. +echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
  3332. +if test "${am_cv_prog_cc_stdc+set}" = set; then
  3333. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3334. else
  3335. am_cv_prog_cc_stdc=no
  3336. ac_save_CC="$CC"
  3337. @@ -1448,8 +2757,8 @@
  3338. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3339. do
  3340. CC="$ac_save_CC $ac_arg"
  3341. - cat > conftest.$ac_ext <<EOF
  3342. -#line 1453 "configure"
  3343. + cat >conftest.$ac_ext <<_ACEOF
  3344. +#line $LINENO "configure"
  3345. #include "confdefs.h"
  3346. #include <stdarg.h>
  3347. #include <stdio.h>
  3348. @@ -1480,29 +2789,51 @@
  3349. int argc;
  3350. char **argv;
  3351. -int main() {
  3352. +#ifdef F77_DUMMY_MAIN
  3353. +# ifdef __cplusplus
  3354. + extern "C"
  3355. +# endif
  3356. + int F77_DUMMY_MAIN() { return 1; }
  3357. +#endif
  3358. +int
  3359. +main ()
  3360. +{
  3361. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3362. -; return 0; }
  3363. -EOF
  3364. -if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3365. - rm -rf conftest*
  3366. + ;
  3367. + return 0;
  3368. +}
  3369. +_ACEOF
  3370. +rm -f conftest.$ac_objext
  3371. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3372. + (eval $ac_compile) 2>&5
  3373. + ac_status=$?
  3374. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3375. + (exit $ac_status); } &&
  3376. + { ac_try='test -s conftest.$ac_objext'
  3377. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3378. + (eval $ac_try) 2>&5
  3379. + ac_status=$?
  3380. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3381. + (exit $ac_status); }; }; then
  3382. am_cv_prog_cc_stdc="$ac_arg"; break
  3383. else
  3384. - echo "configure: failed program was:" >&5
  3385. - cat conftest.$ac_ext >&5
  3386. + echo "$as_me: failed program was:" >&5
  3387. +cat conftest.$ac_ext >&5
  3388. fi
  3389. -rm -f conftest*
  3390. +rm -f conftest.$ac_objext conftest.$ac_ext
  3391. done
  3392. CC="$ac_save_CC"
  3393. fi
  3394. if test -z "$am_cv_prog_cc_stdc"; then
  3395. - echo "$ac_t""none needed" 1>&6
  3396. + echo "$as_me:$LINENO: result: none needed" >&5
  3397. +echo "${ECHO_T}none needed" >&6
  3398. else
  3399. - echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
  3400. + echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
  3401. +echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
  3402. fi
  3403. case "x$am_cv_prog_cc_stdc" in
  3404. x|xno) ;;
  3405. @@ -1510,8 +2841,8 @@
  3406. esac
  3407. -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  3408. -echo "configure:1515: checking whether build environment is sane" >&5
  3409. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  3410. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  3411. # Just in case
  3412. sleep 1
  3413. echo timestamp > conftestfile
  3414. @@ -1533,8 +2864,11 @@
  3415. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3416. # broken ls alias from the environment. This has actually
  3417. # happened. Such a system could not be considered "sane".
  3418. - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  3419. -alias in your environment" 1>&2; exit 1; }
  3420. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  3421. +alias in your environment" >&5
  3422. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  3423. +alias in your environment" >&2;}
  3424. + { (exit 1); exit 1; }; }
  3425. fi
  3426. test "$2" = conftestfile
  3427. @@ -1543,23 +2877,27 @@
  3428. # Ok.
  3429. :
  3430. else
  3431. - { echo "configure: error: newly created file is older than distributed files!
  3432. -Check your system clock" 1>&2; exit 1; }
  3433. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  3434. +Check your system clock" >&5
  3435. +echo "$as_me: error: newly created file is older than distributed files!
  3436. +Check your system clock" >&2;}
  3437. + { (exit 1); exit 1; }; }
  3438. fi
  3439. rm -f conftest*
  3440. -echo "$ac_t""yes" 1>&6
  3441. -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  3442. -echo "configure:1553: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3443. +echo "$as_me:$LINENO: result: yes" >&5
  3444. +echo "${ECHO_T}yes" >&6
  3445. +echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3446. +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  3447. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  3448. if test "${enable_maintainer_mode+set}" = set; then
  3449. enableval="$enable_maintainer_mode"
  3450. USE_MAINTAINER_MODE=$enableval
  3451. else
  3452. USE_MAINTAINER_MODE=no
  3453. -fi
  3454. +fi;
  3455. + echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  3456. +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  3457. - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  3458. -
  3459. if test $USE_MAINTAINER_MODE = yes; then
  3460. MAINTAINER_MODE_TRUE=
  3461. @@ -1569,52 +2907,34 @@
  3462. MAINTAINER_MODE_FALSE=
  3463. fi
  3464. MAINT=$MAINTAINER_MODE_TRUE
  3465. -
  3466. -if test "$program_transform_name" = s,x,x,; then
  3467. - program_transform_name=
  3468. -else
  3469. - # Double any \ or $. echo might interpret backslashes.
  3470. - cat <<\EOF_SED > conftestsed
  3471. -s,\\,\\\\,g; s,\$,$$,g
  3472. -EOF_SED
  3473. - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  3474. - rm -f conftestsed
  3475. -fi
  3476. -test "$program_prefix" != NONE &&
  3477. - program_transform_name="s,^,${program_prefix},; $program_transform_name"
  3478. -# Use a double $ so make ignores it.
  3479. -test "$program_suffix" != NONE &&
  3480. - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  3481. -# sed with no file args requires a program.
  3482. -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  3483. +
  3484. # Check whether --with-extra-includes or --without-extra-includes was given.
  3485. if test "${with_extra_includes+set}" = set; then
  3486. withval="$with_extra_includes"
  3487. - CPPFLAGS="$CFLAGS $withval"
  3488. -fi
  3489. + CPPFLAGS="$CFLAGS $withval"
  3490. +fi;
  3491. # Check whether --with-extra-libs or --without-extra-libs was given.
  3492. if test "${with_extra_libs+set}" = set; then
  3493. withval="$with_extra_libs"
  3494. - LDFLAGS="$LDFLAGS $withval"
  3495. -fi
  3496. + LDFLAGS="$LDFLAGS $withval"
  3497. +fi;
  3498. # Check whether --with-extra-link-libs or --without-extra-link-libs was given.
  3499. if test "${with_extra_link_libs+set}" = set; then
  3500. withval="$with_extra_link_libs"
  3501. - LIBS="$LIBS $withval"
  3502. -fi
  3503. + LIBS="$LIBS $withval"
  3504. +fi;
  3505. -
  3506. -if test $ac_cv_prog_gcc = yes; then
  3507. +if test $ac_cv_c_compiler_gnu = yes; then
  3508. LD_STATIC_FLAG='-static'
  3509. case "$host_os" in
  3510. @@ -1655,54 +2975,54 @@
  3511. # All AIX code is PIC.
  3512. LD_STATIC_FLAG='-bnso -bI:/lib/syscalls.exp'
  3513. ;;
  3514. -
  3515. +
  3516. hpux9* | hpux10* | hpux11*)
  3517. # Is there a better LD_STATIC_FLAG that works with the bundled CC?
  3518. ## wl='-Wl,'
  3519. LD_STATIC_FLAG="${wl}-a ${wl}archive"
  3520. ## pic_flag='+Z'
  3521. ;;
  3522. -
  3523. +
  3524. irix5* | irix6*)
  3525. ## wl='-Wl,'
  3526. LD_STATIC_FLAG='-non_shared'
  3527. # PIC (with -KPIC) is the default.
  3528. ;;
  3529. -
  3530. +
  3531. cygwin* | mingw* | os2*)
  3532. # We can build DLLs from non-PIC.
  3533. ;;
  3534. -
  3535. +
  3536. osf3* | osf4* | osf5*)
  3537. # All OSF/1 code is PIC.
  3538. ## wl='-Wl,'
  3539. LD_STATIC_FLAG='-non_shared'
  3540. ;;
  3541. -
  3542. +
  3543. sco3.2v5*)
  3544. ## pic_flag='-Kpic'
  3545. LD_STATIC_FLAG='-dn'
  3546. ## special_shlib_compile_flags='-belf'
  3547. ;;
  3548. -
  3549. +
  3550. solaris*)
  3551. ## pic_flag='-KPIC'
  3552. LD_STATIC_FLAG='-Bstatic'
  3553. ## wl='-Wl,'
  3554. ;;
  3555. -
  3556. +
  3557. sunos4*)
  3558. ## pic_flag='-PIC'
  3559. LD_STATIC_FLAG='-Bstatic'
  3560. ## wl='-Qoption ld '
  3561. ;;
  3562. -
  3563. +
  3564. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3565. ## pic_flag='-KPIC'
  3566. LD_STATIC_FLAG='-Bstatic'
  3567. ## wl='-Wl,'
  3568. ;;
  3569. -
  3570. +
  3571. uts4*)
  3572. ## pic_flag='-pic'
  3573. LD_STATIC_FLAG='-Bstatic'
  3574. @@ -1724,131 +3044,217 @@
  3575. -
  3576. -echo $ac_n "checking for library containing syslog""... $ac_c" 1>&6
  3577. -echo "configure:1730: checking for library containing syslog" >&5
  3578. -if eval "test \"`echo '$''{'ac_cv_search_syslog'+set}'`\" = set"; then
  3579. - echo $ac_n "(cached) $ac_c" 1>&6
  3580. -else
  3581. - ac_func_search_save_LIBS="$LIBS"
  3582. -ac_cv_search_syslog="no"
  3583. -cat > conftest.$ac_ext <<EOF
  3584. -#line 1737 "configure"
  3585. +echo "$as_me:$LINENO: checking for library containing syslog" >&5
  3586. +echo $ECHO_N "checking for library containing syslog... $ECHO_C" >&6
  3587. +if test "${ac_cv_search_syslog+set}" = set; then
  3588. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3589. +else
  3590. + ac_func_search_save_LIBS=$LIBS
  3591. +ac_cv_search_syslog=no
  3592. +cat >conftest.$ac_ext <<_ACEOF
  3593. +#line $LINENO "configure"
  3594. #include "confdefs.h"
  3595. +
  3596. /* Override any gcc2 internal prototype to avoid an error. */
  3597. +#ifdef __cplusplus
  3598. +extern "C"
  3599. +#endif
  3600. /* We use char because int might match the return type of a gcc2
  3601. - builtin and then its argument prototype would still apply. */
  3602. -char syslog();
  3603. -
  3604. -int main() {
  3605. -syslog()
  3606. -; return 0; }
  3607. -EOF
  3608. -if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3609. - rm -rf conftest*
  3610. + builtin and then its argument prototype would still apply. */
  3611. +char syslog ();
  3612. +#ifdef F77_DUMMY_MAIN
  3613. +# ifdef __cplusplus
  3614. + extern "C"
  3615. +# endif
  3616. + int F77_DUMMY_MAIN() { return 1; }
  3617. +#endif
  3618. +int
  3619. +main ()
  3620. +{
  3621. +syslog ();
  3622. + ;
  3623. + return 0;
  3624. +}
  3625. +_ACEOF
  3626. +rm -f conftest.$ac_objext conftest$ac_exeext
  3627. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3628. + (eval $ac_link) 2>&5
  3629. + ac_status=$?
  3630. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3631. + (exit $ac_status); } &&
  3632. + { ac_try='test -s conftest$ac_exeext'
  3633. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3634. + (eval $ac_try) 2>&5
  3635. + ac_status=$?
  3636. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3637. + (exit $ac_status); }; }; then
  3638. ac_cv_search_syslog="none required"
  3639. else
  3640. - echo "configure: failed program was:" >&5
  3641. - cat conftest.$ac_ext >&5
  3642. + echo "$as_me: failed program was:" >&5
  3643. +cat conftest.$ac_ext >&5
  3644. fi
  3645. -rm -f conftest*
  3646. -test "$ac_cv_search_syslog" = "no" && for i in bsd socket inet; do
  3647. -LIBS="-l$i $ac_func_search_save_LIBS"
  3648. -cat > conftest.$ac_ext <<EOF
  3649. -#line 1759 "configure"
  3650. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3651. +if test "$ac_cv_search_syslog" = no; then
  3652. + for ac_lib in bsd socket inet; do
  3653. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3654. + cat >conftest.$ac_ext <<_ACEOF
  3655. +#line $LINENO "configure"
  3656. #include "confdefs.h"
  3657. +
  3658. /* Override any gcc2 internal prototype to avoid an error. */
  3659. +#ifdef __cplusplus
  3660. +extern "C"
  3661. +#endif
  3662. /* We use char because int might match the return type of a gcc2
  3663. - builtin and then its argument prototype would still apply. */
  3664. -char syslog();
  3665. -
  3666. -int main() {
  3667. -syslog()
  3668. -; return 0; }
  3669. -EOF
  3670. -if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3671. - rm -rf conftest*
  3672. - ac_cv_search_syslog="-l$i"
  3673. + builtin and then its argument prototype would still apply. */
  3674. +char syslog ();
  3675. +#ifdef F77_DUMMY_MAIN
  3676. +# ifdef __cplusplus
  3677. + extern "C"
  3678. +# endif
  3679. + int F77_DUMMY_MAIN() { return 1; }
  3680. +#endif
  3681. +int
  3682. +main ()
  3683. +{
  3684. +syslog ();
  3685. + ;
  3686. + return 0;
  3687. +}
  3688. +_ACEOF
  3689. +rm -f conftest.$ac_objext conftest$ac_exeext
  3690. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3691. + (eval $ac_link) 2>&5
  3692. + ac_status=$?
  3693. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3694. + (exit $ac_status); } &&
  3695. + { ac_try='test -s conftest$ac_exeext'
  3696. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3697. + (eval $ac_try) 2>&5
  3698. + ac_status=$?
  3699. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3700. + (exit $ac_status); }; }; then
  3701. + ac_cv_search_syslog="-l$ac_lib"
  3702. break
  3703. else
  3704. - echo "configure: failed program was:" >&5
  3705. - cat conftest.$ac_ext >&5
  3706. + echo "$as_me: failed program was:" >&5
  3707. +cat conftest.$ac_ext >&5
  3708. fi
  3709. -rm -f conftest*
  3710. -done
  3711. -LIBS="$ac_func_search_save_LIBS"
  3712. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3713. + done
  3714. fi
  3715. -
  3716. -echo "$ac_t""$ac_cv_search_syslog" 1>&6
  3717. -if test "$ac_cv_search_syslog" != "no"; then
  3718. +LIBS=$ac_func_search_save_LIBS
  3719. +fi
  3720. +echo "$as_me:$LINENO: result: $ac_cv_search_syslog" >&5
  3721. +echo "${ECHO_T}$ac_cv_search_syslog" >&6
  3722. +if test "$ac_cv_search_syslog" != no; then
  3723. test "$ac_cv_search_syslog" = "none required" || LIBS="$ac_cv_search_syslog $LIBS"
  3724. - cat >> confdefs.h <<\EOF
  3725. + cat >>confdefs.h <<\_ACEOF
  3726. #define HAVE_SYSLOG 1
  3727. -EOF
  3728. +_ACEOF
  3729. -else :
  3730. -
  3731. fi
  3732. +
  3733. if test "$cross_compiling" = yes; then
  3734. - echo "configure: warning: cross compiling; assuming little endianess" 1>&2
  3735. + { echo "$as_me:$LINENO: WARNING: cross compiling; assuming little endianess" >&5
  3736. +echo "$as_me: WARNING: cross compiling; assuming little endianess" >&2;}
  3737. fi
  3738. - echo $ac_n "checking endianess""... $ac_c" 1>&6
  3739. -echo "configure:1798: checking endianess" >&5
  3740. - if eval "test \"`echo '$''{'aide_cv_c_endian'+set}'`\" = set"; then
  3741. - echo $ac_n "(cached) $ac_c" 1>&6
  3742. + echo "$as_me:$LINENO: checking endianess" >&5
  3743. +echo $ECHO_N "checking endianess... $ECHO_C" >&6
  3744. + if test "${aide_cv_c_endian+set}" = set; then
  3745. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3746. else
  3747. aide_cv_c_endian=unknown
  3748. # See if sys/param.h defines the BYTE_ORDER macro.
  3749. - cat > conftest.$ac_ext <<EOF
  3750. -#line 1805 "configure"
  3751. + cat >conftest.$ac_ext <<_ACEOF
  3752. +#line $LINENO "configure"
  3753. #include "confdefs.h"
  3754. #include <sys/types.h>
  3755. #include <sys/param.h>
  3756. -int main() {
  3757. +#ifdef F77_DUMMY_MAIN
  3758. +# ifdef __cplusplus
  3759. + extern "C"
  3760. +# endif
  3761. + int F77_DUMMY_MAIN() { return 1; }
  3762. +#endif
  3763. +int
  3764. +main ()
  3765. +{
  3766. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  3767. bogus endian macros
  3768. #endif
  3769. -; return 0; }
  3770. -EOF
  3771. -if { (eval echo configure:1816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3772. - rm -rf conftest*
  3773. + ;
  3774. + return 0;
  3775. +}
  3776. +_ACEOF
  3777. +rm -f conftest.$ac_objext
  3778. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3779. + (eval $ac_compile) 2>&5
  3780. + ac_status=$?
  3781. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3782. + (exit $ac_status); } &&
  3783. + { ac_try='test -s conftest.$ac_objext'
  3784. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3785. + (eval $ac_try) 2>&5
  3786. + ac_status=$?
  3787. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3788. + (exit $ac_status); }; }; then
  3789. # It does; now see whether it defined to BIG_ENDIAN or not.
  3790. - cat > conftest.$ac_ext <<EOF
  3791. -#line 1820 "configure"
  3792. + cat >conftest.$ac_ext <<_ACEOF
  3793. +#line $LINENO "configure"
  3794. #include "confdefs.h"
  3795. #include <sys/types.h>
  3796. #include <sys/param.h>
  3797. -int main() {
  3798. +#ifdef F77_DUMMY_MAIN
  3799. +# ifdef __cplusplus
  3800. + extern "C"
  3801. +# endif
  3802. + int F77_DUMMY_MAIN() { return 1; }
  3803. +#endif
  3804. +int
  3805. +main ()
  3806. +{
  3807. #if BYTE_ORDER != BIG_ENDIAN
  3808. not big endian
  3809. #endif
  3810. -; return 0; }
  3811. -EOF
  3812. -if { (eval echo configure:1831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3813. - rm -rf conftest*
  3814. + ;
  3815. + return 0;
  3816. +}
  3817. +_ACEOF
  3818. +rm -f conftest.$ac_objext
  3819. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3820. + (eval $ac_compile) 2>&5
  3821. + ac_status=$?
  3822. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3823. + (exit $ac_status); } &&
  3824. + { ac_try='test -s conftest.$ac_objext'
  3825. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3826. + (eval $ac_try) 2>&5
  3827. + ac_status=$?
  3828. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3829. + (exit $ac_status); }; }; then
  3830. aide_cv_c_endian=big
  3831. else
  3832. - echo "configure: failed program was:" >&5
  3833. - cat conftest.$ac_ext >&5
  3834. - rm -rf conftest*
  3835. - aide_cv_c_endian=little
  3836. + echo "$as_me: failed program was:" >&5
  3837. +cat conftest.$ac_ext >&5
  3838. +aide_cv_c_endian=little
  3839. fi
  3840. -rm -f conftest*
  3841. +rm -f conftest.$ac_objext conftest.$ac_ext
  3842. else
  3843. - echo "configure: failed program was:" >&5
  3844. - cat conftest.$ac_ext >&5
  3845. + echo "$as_me: failed program was:" >&5
  3846. +cat conftest.$ac_ext >&5
  3847. fi
  3848. -rm -f conftest*
  3849. +rm -f conftest.$ac_objext conftest.$ac_ext
  3850. if test "$aide_cv_c_endian" = unknown; then
  3851. if test "$cross_compiling" = yes; then
  3852. aide_cv_c_endian=little
  3853. -
  3854. +
  3855. else
  3856. - cat > conftest.$ac_ext <<EOF
  3857. -#line 1852 "configure"
  3858. + cat >conftest.$ac_ext <<_ACEOF
  3859. +#line $LINENO "configure"
  3860. #include "confdefs.h"
  3861. main () {
  3862. /* Are we little or big endian? From Harbison&Steele. */
  3863. @@ -1860,381 +3266,585 @@
  3864. u.l = 1;
  3865. exit (u.c[sizeof (long) - 1] == 1);
  3866. }
  3867. -EOF
  3868. -if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3869. -then
  3870. +_ACEOF
  3871. +rm -f conftest$ac_exeext
  3872. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3873. + (eval $ac_link) 2>&5
  3874. + ac_status=$?
  3875. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3876. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3877. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3878. + (eval $ac_try) 2>&5
  3879. + ac_status=$?
  3880. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3881. + (exit $ac_status); }; }; then
  3882. aide_cv_c_endian=little
  3883. else
  3884. - echo "configure: failed program was:" >&5
  3885. - cat conftest.$ac_ext >&5
  3886. - rm -fr conftest*
  3887. - aide_cv_c_endian=big
  3888. + echo "$as_me: program exited with status $ac_status" >&5
  3889. +echo "$as_me: failed program was:" >&5
  3890. +cat conftest.$ac_ext >&5
  3891. +( exit $ac_status )
  3892. +aide_cv_c_endian=big
  3893. fi
  3894. -rm -fr conftest*
  3895. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3896. fi
  3897. -
  3898. fi
  3899. -
  3900. +
  3901. fi
  3902. - echo "$ac_t""$aide_cv_c_endian" 1>&6
  3903. + echo "$as_me:$LINENO: result: $aide_cv_c_endian" >&5
  3904. +echo "${ECHO_T}$aide_cv_c_endian" >&6
  3905. if test "$aide_cv_c_endian" = little; then
  3906. - cat >> confdefs.h <<\EOF
  3907. + cat >>confdefs.h <<\_ACEOF
  3908. #define LITTLE_ENDIAN_HOST 1
  3909. -EOF
  3910. +_ACEOF
  3911. else
  3912. - cat >> confdefs.h <<\EOF
  3913. + cat >>confdefs.h <<\_ACEOF
  3914. #define BIG_ENDIAN_HOST 1
  3915. -EOF
  3916. +_ACEOF
  3917. fi
  3918. -
  3919. - echo $ac_n "checking for byte typedef""... $ac_c" 1>&6
  3920. -echo "configure:1896: checking for byte typedef" >&5
  3921. - if eval "test \"`echo '$''{'aide_cv_typedef_byte'+set}'`\" = set"; then
  3922. - echo $ac_n "(cached) $ac_c" 1>&6
  3923. +
  3924. + echo "$as_me:$LINENO: checking for byte typedef" >&5
  3925. +echo $ECHO_N "checking for byte typedef... $ECHO_C" >&6
  3926. + if test "${aide_cv_typedef_byte+set}" = set; then
  3927. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3928. else
  3929. - cat > conftest.$ac_ext <<EOF
  3930. -#line 1901 "configure"
  3931. + cat >conftest.$ac_ext <<_ACEOF
  3932. +#line $LINENO "configure"
  3933. #include "confdefs.h"
  3934. #include <stdlib.h>
  3935. #include <sys/types.h>
  3936. -int main() {
  3937. +#ifdef F77_DUMMY_MAIN
  3938. +# ifdef __cplusplus
  3939. + extern "C"
  3940. +# endif
  3941. + int F77_DUMMY_MAIN() { return 1; }
  3942. +#endif
  3943. +int
  3944. +main ()
  3945. +{
  3946. #undef byte
  3947. int a = sizeof(byte);
  3948. -
  3949. -; return 0; }
  3950. -EOF
  3951. -if { (eval echo configure:1912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3952. - rm -rf conftest*
  3953. +
  3954. + ;
  3955. + return 0;
  3956. +}
  3957. +_ACEOF
  3958. +rm -f conftest.$ac_objext
  3959. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3960. + (eval $ac_compile) 2>&5
  3961. + ac_status=$?
  3962. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3963. + (exit $ac_status); } &&
  3964. + { ac_try='test -s conftest.$ac_objext'
  3965. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3966. + (eval $ac_try) 2>&5
  3967. + ac_status=$?
  3968. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3969. + (exit $ac_status); }; }; then
  3970. aide_cv_typedef_byte=yes
  3971. else
  3972. - echo "configure: failed program was:" >&5
  3973. - cat conftest.$ac_ext >&5
  3974. - rm -rf conftest*
  3975. - aide_cv_typedef_byte=no
  3976. + echo "$as_me: failed program was:" >&5
  3977. +cat conftest.$ac_ext >&5
  3978. +aide_cv_typedef_byte=no
  3979. fi
  3980. -rm -f conftest*
  3981. +rm -f conftest.$ac_objext conftest.$ac_ext
  3982. fi
  3983. - echo "$ac_t""$aide_cv_typedef_byte" 1>&6
  3984. + echo "$as_me:$LINENO: result: $aide_cv_typedef_byte" >&5
  3985. +echo "${ECHO_T}$aide_cv_typedef_byte" >&6
  3986. if test "$aide_cv_typedef_byte" = yes; then
  3987. - cat >> confdefs.h <<\EOF
  3988. + cat >>confdefs.h <<\_ACEOF
  3989. #define HAVE_BYTE_TYPEDEF 1
  3990. -EOF
  3991. +_ACEOF
  3992. fi
  3993. -
  3994. - echo $ac_n "checking for ushort typedef""... $ac_c" 1>&6
  3995. -echo "configure:1933: checking for ushort typedef" >&5
  3996. - if eval "test \"`echo '$''{'aide_cv_typedef_ushort'+set}'`\" = set"; then
  3997. - echo $ac_n "(cached) $ac_c" 1>&6
  3998. +
  3999. + echo "$as_me:$LINENO: checking for ushort typedef" >&5
  4000. +echo $ECHO_N "checking for ushort typedef... $ECHO_C" >&6
  4001. + if test "${aide_cv_typedef_ushort+set}" = set; then
  4002. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4003. else
  4004. - cat > conftest.$ac_ext <<EOF
  4005. -#line 1938 "configure"
  4006. + cat >conftest.$ac_ext <<_ACEOF
  4007. +#line $LINENO "configure"
  4008. #include "confdefs.h"
  4009. #include <stdlib.h>
  4010. #include <sys/types.h>
  4011. -int main() {
  4012. +#ifdef F77_DUMMY_MAIN
  4013. +# ifdef __cplusplus
  4014. + extern "C"
  4015. +# endif
  4016. + int F77_DUMMY_MAIN() { return 1; }
  4017. +#endif
  4018. +int
  4019. +main ()
  4020. +{
  4021. #undef ushort
  4022. int a = sizeof(ushort);
  4023. -
  4024. -; return 0; }
  4025. -EOF
  4026. -if { (eval echo configure:1949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4027. - rm -rf conftest*
  4028. +
  4029. + ;
  4030. + return 0;
  4031. +}
  4032. +_ACEOF
  4033. +rm -f conftest.$ac_objext
  4034. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4035. + (eval $ac_compile) 2>&5
  4036. + ac_status=$?
  4037. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4038. + (exit $ac_status); } &&
  4039. + { ac_try='test -s conftest.$ac_objext'
  4040. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4041. + (eval $ac_try) 2>&5
  4042. + ac_status=$?
  4043. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4044. + (exit $ac_status); }; }; then
  4045. aide_cv_typedef_ushort=yes
  4046. else
  4047. - echo "configure: failed program was:" >&5
  4048. - cat conftest.$ac_ext >&5
  4049. - rm -rf conftest*
  4050. - aide_cv_typedef_ushort=no
  4051. + echo "$as_me: failed program was:" >&5
  4052. +cat conftest.$ac_ext >&5
  4053. +aide_cv_typedef_ushort=no
  4054. fi
  4055. -rm -f conftest*
  4056. +rm -f conftest.$ac_objext conftest.$ac_ext
  4057. fi
  4058. - echo "$ac_t""$aide_cv_typedef_ushort" 1>&6
  4059. + echo "$as_me:$LINENO: result: $aide_cv_typedef_ushort" >&5
  4060. +echo "${ECHO_T}$aide_cv_typedef_ushort" >&6
  4061. if test "$aide_cv_typedef_ushort" = yes; then
  4062. - cat >> confdefs.h <<\EOF
  4063. + cat >>confdefs.h <<\_ACEOF
  4064. #define HAVE_USHORT_TYPEDEF 1
  4065. -EOF
  4066. +_ACEOF
  4067. fi
  4068. -
  4069. - echo $ac_n "checking for ulong typedef""... $ac_c" 1>&6
  4070. -echo "configure:1970: checking for ulong typedef" >&5
  4071. - if eval "test \"`echo '$''{'aide_cv_typedef_ulong'+set}'`\" = set"; then
  4072. - echo $ac_n "(cached) $ac_c" 1>&6
  4073. +
  4074. + echo "$as_me:$LINENO: checking for ulong typedef" >&5
  4075. +echo $ECHO_N "checking for ulong typedef... $ECHO_C" >&6
  4076. + if test "${aide_cv_typedef_ulong+set}" = set; then
  4077. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4078. else
  4079. - cat > conftest.$ac_ext <<EOF
  4080. -#line 1975 "configure"
  4081. + cat >conftest.$ac_ext <<_ACEOF
  4082. +#line $LINENO "configure"
  4083. #include "confdefs.h"
  4084. #include <stdlib.h>
  4085. #include <sys/types.h>
  4086. -int main() {
  4087. +#ifdef F77_DUMMY_MAIN
  4088. +# ifdef __cplusplus
  4089. + extern "C"
  4090. +# endif
  4091. + int F77_DUMMY_MAIN() { return 1; }
  4092. +#endif
  4093. +int
  4094. +main ()
  4095. +{
  4096. #undef ulong
  4097. int a = sizeof(ulong);
  4098. -
  4099. -; return 0; }
  4100. -EOF
  4101. -if { (eval echo configure:1986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4102. - rm -rf conftest*
  4103. +
  4104. + ;
  4105. + return 0;
  4106. +}
  4107. +_ACEOF
  4108. +rm -f conftest.$ac_objext
  4109. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4110. + (eval $ac_compile) 2>&5
  4111. + ac_status=$?
  4112. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4113. + (exit $ac_status); } &&
  4114. + { ac_try='test -s conftest.$ac_objext'
  4115. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4116. + (eval $ac_try) 2>&5
  4117. + ac_status=$?
  4118. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4119. + (exit $ac_status); }; }; then
  4120. aide_cv_typedef_ulong=yes
  4121. else
  4122. - echo "configure: failed program was:" >&5
  4123. - cat conftest.$ac_ext >&5
  4124. - rm -rf conftest*
  4125. - aide_cv_typedef_ulong=no
  4126. + echo "$as_me: failed program was:" >&5
  4127. +cat conftest.$ac_ext >&5
  4128. +aide_cv_typedef_ulong=no
  4129. fi
  4130. -rm -f conftest*
  4131. +rm -f conftest.$ac_objext conftest.$ac_ext
  4132. fi
  4133. - echo "$ac_t""$aide_cv_typedef_ulong" 1>&6
  4134. + echo "$as_me:$LINENO: result: $aide_cv_typedef_ulong" >&5
  4135. +echo "${ECHO_T}$aide_cv_typedef_ulong" >&6
  4136. if test "$aide_cv_typedef_ulong" = yes; then
  4137. - cat >> confdefs.h <<\EOF
  4138. + cat >>confdefs.h <<\_ACEOF
  4139. #define HAVE_ULONG_TYPEDEF 1
  4140. -EOF
  4141. +_ACEOF
  4142. fi
  4143. -
  4144. - echo $ac_n "checking for u16 typedef""... $ac_c" 1>&6
  4145. -echo "configure:2007: checking for u16 typedef" >&5
  4146. - if eval "test \"`echo '$''{'aide_cv_typedef_u16'+set}'`\" = set"; then
  4147. - echo $ac_n "(cached) $ac_c" 1>&6
  4148. +
  4149. + echo "$as_me:$LINENO: checking for u16 typedef" >&5
  4150. +echo $ECHO_N "checking for u16 typedef... $ECHO_C" >&6
  4151. + if test "${aide_cv_typedef_u16+set}" = set; then
  4152. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4153. else
  4154. - cat > conftest.$ac_ext <<EOF
  4155. -#line 2012 "configure"
  4156. + cat >conftest.$ac_ext <<_ACEOF
  4157. +#line $LINENO "configure"
  4158. #include "confdefs.h"
  4159. #include <stdlib.h>
  4160. #include <sys/types.h>
  4161. -int main() {
  4162. +#ifdef F77_DUMMY_MAIN
  4163. +# ifdef __cplusplus
  4164. + extern "C"
  4165. +# endif
  4166. + int F77_DUMMY_MAIN() { return 1; }
  4167. +#endif
  4168. +int
  4169. +main ()
  4170. +{
  4171. #undef u16
  4172. int a = sizeof(u16);
  4173. -
  4174. -; return 0; }
  4175. -EOF
  4176. -if { (eval echo configure:2023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4177. - rm -rf conftest*
  4178. +
  4179. + ;
  4180. + return 0;
  4181. +}
  4182. +_ACEOF
  4183. +rm -f conftest.$ac_objext
  4184. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4185. + (eval $ac_compile) 2>&5
  4186. + ac_status=$?
  4187. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4188. + (exit $ac_status); } &&
  4189. + { ac_try='test -s conftest.$ac_objext'
  4190. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4191. + (eval $ac_try) 2>&5
  4192. + ac_status=$?
  4193. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4194. + (exit $ac_status); }; }; then
  4195. aide_cv_typedef_u16=yes
  4196. else
  4197. - echo "configure: failed program was:" >&5
  4198. - cat conftest.$ac_ext >&5
  4199. - rm -rf conftest*
  4200. - aide_cv_typedef_u16=no
  4201. + echo "$as_me: failed program was:" >&5
  4202. +cat conftest.$ac_ext >&5
  4203. +aide_cv_typedef_u16=no
  4204. fi
  4205. -rm -f conftest*
  4206. +rm -f conftest.$ac_objext conftest.$ac_ext
  4207. fi
  4208. - echo "$ac_t""$aide_cv_typedef_u16" 1>&6
  4209. + echo "$as_me:$LINENO: result: $aide_cv_typedef_u16" >&5
  4210. +echo "${ECHO_T}$aide_cv_typedef_u16" >&6
  4211. if test "$aide_cv_typedef_u16" = yes; then
  4212. - cat >> confdefs.h <<\EOF
  4213. + cat >>confdefs.h <<\_ACEOF
  4214. #define HAVE_U16_TYPEDEF 1
  4215. -EOF
  4216. +_ACEOF
  4217. fi
  4218. -
  4219. - echo $ac_n "checking for u32 typedef""... $ac_c" 1>&6
  4220. -echo "configure:2044: checking for u32 typedef" >&5
  4221. - if eval "test \"`echo '$''{'aide_cv_typedef_u32'+set}'`\" = set"; then
  4222. - echo $ac_n "(cached) $ac_c" 1>&6
  4223. +
  4224. + echo "$as_me:$LINENO: checking for u32 typedef" >&5
  4225. +echo $ECHO_N "checking for u32 typedef... $ECHO_C" >&6
  4226. + if test "${aide_cv_typedef_u32+set}" = set; then
  4227. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4228. else
  4229. - cat > conftest.$ac_ext <<EOF
  4230. -#line 2049 "configure"
  4231. + cat >conftest.$ac_ext <<_ACEOF
  4232. +#line $LINENO "configure"
  4233. #include "confdefs.h"
  4234. #include <stdlib.h>
  4235. #include <sys/types.h>
  4236. -int main() {
  4237. +#ifdef F77_DUMMY_MAIN
  4238. +# ifdef __cplusplus
  4239. + extern "C"
  4240. +# endif
  4241. + int F77_DUMMY_MAIN() { return 1; }
  4242. +#endif
  4243. +int
  4244. +main ()
  4245. +{
  4246. #undef u32
  4247. int a = sizeof(u32);
  4248. -
  4249. -; return 0; }
  4250. -EOF
  4251. -if { (eval echo configure:2060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4252. - rm -rf conftest*
  4253. +
  4254. + ;
  4255. + return 0;
  4256. +}
  4257. +_ACEOF
  4258. +rm -f conftest.$ac_objext
  4259. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4260. + (eval $ac_compile) 2>&5
  4261. + ac_status=$?
  4262. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4263. + (exit $ac_status); } &&
  4264. + { ac_try='test -s conftest.$ac_objext'
  4265. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4266. + (eval $ac_try) 2>&5
  4267. + ac_status=$?
  4268. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4269. + (exit $ac_status); }; }; then
  4270. aide_cv_typedef_u32=yes
  4271. else
  4272. - echo "configure: failed program was:" >&5
  4273. - cat conftest.$ac_ext >&5
  4274. - rm -rf conftest*
  4275. - aide_cv_typedef_u32=no
  4276. + echo "$as_me: failed program was:" >&5
  4277. +cat conftest.$ac_ext >&5
  4278. +aide_cv_typedef_u32=no
  4279. fi
  4280. -rm -f conftest*
  4281. +rm -f conftest.$ac_objext conftest.$ac_ext
  4282. fi
  4283. - echo "$ac_t""$aide_cv_typedef_u32" 1>&6
  4284. + echo "$as_me:$LINENO: result: $aide_cv_typedef_u32" >&5
  4285. +echo "${ECHO_T}$aide_cv_typedef_u32" >&6
  4286. if test "$aide_cv_typedef_u32" = yes; then
  4287. - cat >> confdefs.h <<\EOF
  4288. + cat >>confdefs.h <<\_ACEOF
  4289. #define HAVE_U32_TYPEDEF 1
  4290. -EOF
  4291. +_ACEOF
  4292. fi
  4293. -
  4294. -echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
  4295. -echo "configure:2082: checking size of unsigned short" >&5
  4296. -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
  4297. - echo $ac_n "(cached) $ac_c" 1>&6
  4298. -else
  4299. - if test "$cross_compiling" = yes; then
  4300. - ac_cv_sizeof_unsigned_short=2
  4301. +
  4302. +ac_ext=c
  4303. +ac_cpp='$CPP $CPPFLAGS'
  4304. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4305. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4306. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4307. +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4308. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4309. +# On Suns, sometimes $CPP names a directory.
  4310. +if test -n "$CPP" && test -d "$CPP"; then
  4311. + CPP=
  4312. +fi
  4313. +if test -z "$CPP"; then
  4314. + if test "${ac_cv_prog_CPP+set}" = set; then
  4315. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4316. else
  4317. - cat > conftest.$ac_ext <<EOF
  4318. -#line 2090 "configure"
  4319. + # Double quotes because CPP needs to be expanded
  4320. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4321. + do
  4322. + ac_preproc_ok=false
  4323. +for ac_c_preproc_warn_flag in '' yes
  4324. +do
  4325. + # Use a header file that comes with gcc, so configuring glibc
  4326. + # with a fresh cross-compiler works.
  4327. + # On the NeXT, cc -E runs the code through the compiler's parser,
  4328. + # not just through cpp. "Syntax error" is here to catch this case.
  4329. + cat >conftest.$ac_ext <<_ACEOF
  4330. +#line $LINENO "configure"
  4331. #include "confdefs.h"
  4332. -#include <stdio.h>
  4333. -main()
  4334. -{
  4335. - FILE *f=fopen("conftestval", "w");
  4336. - if (!f) exit(1);
  4337. - fprintf(f, "%d\n", sizeof(unsigned short));
  4338. - exit(0);
  4339. -}
  4340. -EOF
  4341. -if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4342. -then
  4343. - ac_cv_sizeof_unsigned_short=`cat conftestval`
  4344. +#include <assert.h>
  4345. + Syntax error
  4346. +_ACEOF
  4347. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4348. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4349. + ac_status=$?
  4350. + egrep -v '^ *\+' conftest.er1 >conftest.err
  4351. + rm -f conftest.er1
  4352. + cat conftest.err >&5
  4353. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4354. + (exit $ac_status); } >/dev/null; then
  4355. + if test -s conftest.err; then
  4356. + ac_cpp_err=$ac_c_preproc_warn_flag
  4357. + else
  4358. + ac_cpp_err=
  4359. + fi
  4360. else
  4361. - echo "configure: failed program was:" >&5
  4362. - cat conftest.$ac_ext >&5
  4363. - rm -fr conftest*
  4364. - ac_cv_sizeof_unsigned_short=0
  4365. -fi
  4366. -rm -fr conftest*
  4367. + ac_cpp_err=yes
  4368. fi
  4369. -
  4370. +if test -z "$ac_cpp_err"; then
  4371. + :
  4372. +else
  4373. + echo "$as_me: failed program was:" >&5
  4374. + cat conftest.$ac_ext >&5
  4375. + # Broken: fails on valid input.
  4376. +continue
  4377. fi
  4378. -echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
  4379. -cat >> confdefs.h <<EOF
  4380. -#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  4381. -EOF
  4382. -
  4383. +rm -f conftest.err conftest.$ac_ext
  4384. -echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
  4385. -echo "configure:2121: checking size of unsigned int" >&5
  4386. -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
  4387. - echo $ac_n "(cached) $ac_c" 1>&6
  4388. -else
  4389. - if test "$cross_compiling" = yes; then
  4390. - ac_cv_sizeof_unsigned_int=4
  4391. + # OK, works on sane cases. Now check whether non-existent headers
  4392. + # can be detected and how.
  4393. + cat >conftest.$ac_ext <<_ACEOF
  4394. +#line $LINENO "configure"
  4395. +#include "confdefs.h"
  4396. +#include <ac_nonexistent.h>
  4397. +_ACEOF
  4398. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4399. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4400. + ac_status=$?
  4401. + egrep -v '^ *\+' conftest.er1 >conftest.err
  4402. + rm -f conftest.er1
  4403. + cat conftest.err >&5
  4404. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4405. + (exit $ac_status); } >/dev/null; then
  4406. + if test -s conftest.err; then
  4407. + ac_cpp_err=$ac_c_preproc_warn_flag
  4408. + else
  4409. + ac_cpp_err=
  4410. + fi
  4411. else
  4412. - cat > conftest.$ac_ext <<EOF
  4413. -#line 2129 "configure"
  4414. -#include "confdefs.h"
  4415. -#include <stdio.h>
  4416. -main()
  4417. -{
  4418. - FILE *f=fopen("conftestval", "w");
  4419. - if (!f) exit(1);
  4420. - fprintf(f, "%d\n", sizeof(unsigned int));
  4421. - exit(0);
  4422. -}
  4423. -EOF
  4424. -if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4425. -then
  4426. - ac_cv_sizeof_unsigned_int=`cat conftestval`
  4427. + ac_cpp_err=yes
  4428. +fi
  4429. +if test -z "$ac_cpp_err"; then
  4430. + # Broken: success on invalid input.
  4431. +continue
  4432. else
  4433. - echo "configure: failed program was:" >&5
  4434. + echo "$as_me: failed program was:" >&5
  4435. cat conftest.$ac_ext >&5
  4436. - rm -fr conftest*
  4437. - ac_cv_sizeof_unsigned_int=0
  4438. -fi
  4439. -rm -fr conftest*
  4440. + # Passes both tests.
  4441. +ac_preproc_ok=:
  4442. +break
  4443. fi
  4444. +rm -f conftest.err conftest.$ac_ext
  4445. +done
  4446. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4447. +rm -f conftest.err conftest.$ac_ext
  4448. +if $ac_preproc_ok; then
  4449. + break
  4450. fi
  4451. -echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
  4452. -cat >> confdefs.h <<EOF
  4453. -#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  4454. -EOF
  4455. + done
  4456. + ac_cv_prog_CPP=$CPP
  4457. -echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
  4458. -echo "configure:2160: checking size of unsigned long" >&5
  4459. -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
  4460. - echo $ac_n "(cached) $ac_c" 1>&6
  4461. -else
  4462. - if test "$cross_compiling" = yes; then
  4463. - ac_cv_sizeof_unsigned_long=4
  4464. +fi
  4465. + CPP=$ac_cv_prog_CPP
  4466. else
  4467. - cat > conftest.$ac_ext <<EOF
  4468. -#line 2168 "configure"
  4469. + ac_cv_prog_CPP=$CPP
  4470. +fi
  4471. +echo "$as_me:$LINENO: result: $CPP" >&5
  4472. +echo "${ECHO_T}$CPP" >&6
  4473. +ac_preproc_ok=false
  4474. +for ac_c_preproc_warn_flag in '' yes
  4475. +do
  4476. + # Use a header file that comes with gcc, so configuring glibc
  4477. + # with a fresh cross-compiler works.
  4478. + # On the NeXT, cc -E runs the code through the compiler's parser,
  4479. + # not just through cpp. "Syntax error" is here to catch this case.
  4480. + cat >conftest.$ac_ext <<_ACEOF
  4481. +#line $LINENO "configure"
  4482. #include "confdefs.h"
  4483. -#include <stdio.h>
  4484. -main()
  4485. -{
  4486. - FILE *f=fopen("conftestval", "w");
  4487. - if (!f) exit(1);
  4488. - fprintf(f, "%d\n", sizeof(unsigned long));
  4489. - exit(0);
  4490. -}
  4491. -EOF
  4492. -if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4493. -then
  4494. - ac_cv_sizeof_unsigned_long=`cat conftestval`
  4495. +#include <assert.h>
  4496. + Syntax error
  4497. +_ACEOF
  4498. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4499. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4500. + ac_status=$?
  4501. + egrep -v '^ *\+' conftest.er1 >conftest.err
  4502. + rm -f conftest.er1
  4503. + cat conftest.err >&5
  4504. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4505. + (exit $ac_status); } >/dev/null; then
  4506. + if test -s conftest.err; then
  4507. + ac_cpp_err=$ac_c_preproc_warn_flag
  4508. + else
  4509. + ac_cpp_err=
  4510. + fi
  4511. else
  4512. - echo "configure: failed program was:" >&5
  4513. + ac_cpp_err=yes
  4514. +fi
  4515. +if test -z "$ac_cpp_err"; then
  4516. + :
  4517. +else
  4518. + echo "$as_me: failed program was:" >&5
  4519. cat conftest.$ac_ext >&5
  4520. - rm -fr conftest*
  4521. - ac_cv_sizeof_unsigned_long=0
  4522. + # Broken: fails on valid input.
  4523. +continue
  4524. fi
  4525. -rm -fr conftest*
  4526. +rm -f conftest.err conftest.$ac_ext
  4527. +
  4528. + # OK, works on sane cases. Now check whether non-existent headers
  4529. + # can be detected and how.
  4530. + cat >conftest.$ac_ext <<_ACEOF
  4531. +#line $LINENO "configure"
  4532. +#include "confdefs.h"
  4533. +#include <ac_nonexistent.h>
  4534. +_ACEOF
  4535. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4536. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4537. + ac_status=$?
  4538. + egrep -v '^ *\+' conftest.er1 >conftest.err
  4539. + rm -f conftest.er1
  4540. + cat conftest.err >&5
  4541. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4542. + (exit $ac_status); } >/dev/null; then
  4543. + if test -s conftest.err; then
  4544. + ac_cpp_err=$ac_c_preproc_warn_flag
  4545. + else
  4546. + ac_cpp_err=
  4547. + fi
  4548. +else
  4549. + ac_cpp_err=yes
  4550. +fi
  4551. +if test -z "$ac_cpp_err"; then
  4552. + # Broken: success on invalid input.
  4553. +continue
  4554. +else
  4555. + echo "$as_me: failed program was:" >&5
  4556. + cat conftest.$ac_ext >&5
  4557. + # Passes both tests.
  4558. +ac_preproc_ok=:
  4559. +break
  4560. fi
  4561. +rm -f conftest.err conftest.$ac_ext
  4562. +done
  4563. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4564. +rm -f conftest.err conftest.$ac_ext
  4565. +if $ac_preproc_ok; then
  4566. + :
  4567. +else
  4568. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
  4569. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
  4570. + { (exit 1); exit 1; }; }
  4571. fi
  4572. -echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
  4573. -cat >> confdefs.h <<EOF
  4574. -#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  4575. -EOF
  4576. +ac_ext=c
  4577. +ac_cpp='$CPP $CPPFLAGS'
  4578. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4579. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4580. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4581. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  4582. -echo "configure:2200: checking for ANSI C header files" >&5
  4583. -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  4584. - echo $ac_n "(cached) $ac_c" 1>&6
  4585. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4586. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4587. +if test "${ac_cv_header_stdc+set}" = set; then
  4588. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4589. else
  4590. - cat > conftest.$ac_ext <<EOF
  4591. -#line 2205 "configure"
  4592. + cat >conftest.$ac_ext <<_ACEOF
  4593. +#line $LINENO "configure"
  4594. #include "confdefs.h"
  4595. #include <stdlib.h>
  4596. #include <stdarg.h>
  4597. #include <string.h>
  4598. #include <float.h>
  4599. -EOF
  4600. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4601. -{ (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4602. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4603. -if test -z "$ac_err"; then
  4604. - rm -rf conftest*
  4605. +
  4606. +_ACEOF
  4607. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4608. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4609. + ac_status=$?
  4610. + egrep -v '^ *\+' conftest.er1 >conftest.err
  4611. + rm -f conftest.er1
  4612. + cat conftest.err >&5
  4613. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4614. + (exit $ac_status); } >/dev/null; then
  4615. + if test -s conftest.err; then
  4616. + ac_cpp_err=$ac_c_preproc_warn_flag
  4617. + else
  4618. + ac_cpp_err=
  4619. + fi
  4620. +else
  4621. + ac_cpp_err=yes
  4622. +fi
  4623. +if test -z "$ac_cpp_err"; then
  4624. ac_cv_header_stdc=yes
  4625. else
  4626. - echo "$ac_err" >&5
  4627. - echo "configure: failed program was:" >&5
  4628. + echo "$as_me: failed program was:" >&5
  4629. cat conftest.$ac_ext >&5
  4630. - rm -rf conftest*
  4631. ac_cv_header_stdc=no
  4632. fi
  4633. -rm -f conftest*
  4634. +rm -f conftest.err conftest.$ac_ext
  4635. if test $ac_cv_header_stdc = yes; then
  4636. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4637. -cat > conftest.$ac_ext <<EOF
  4638. -#line 2230 "configure"
  4639. + cat >conftest.$ac_ext <<_ACEOF
  4640. +#line $LINENO "configure"
  4641. #include "confdefs.h"
  4642. #include <string.h>
  4643. -EOF
  4644. +
  4645. +_ACEOF
  4646. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4647. egrep "memchr" >/dev/null 2>&1; then
  4648. :
  4649. else
  4650. - rm -rf conftest*
  4651. ac_cv_header_stdc=no
  4652. fi
  4653. rm -f conftest*
  4654. @@ -2243,16 +3853,16 @@
  4655. if test $ac_cv_header_stdc = yes; then
  4656. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4657. -cat > conftest.$ac_ext <<EOF
  4658. -#line 2248 "configure"
  4659. + cat >conftest.$ac_ext <<_ACEOF
  4660. +#line $LINENO "configure"
  4661. #include "confdefs.h"
  4662. #include <stdlib.h>
  4663. -EOF
  4664. +
  4665. +_ACEOF
  4666. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4667. egrep "free" >/dev/null 2>&1; then
  4668. :
  4669. else
  4670. - rm -rf conftest*
  4671. ac_cv_header_stdc=no
  4672. fi
  4673. rm -f conftest*
  4674. @@ -2261,367 +3871,1836 @@
  4675. if test $ac_cv_header_stdc = yes; then
  4676. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4677. -if test "$cross_compiling" = yes; then
  4678. + if test "$cross_compiling" = yes; then
  4679. :
  4680. else
  4681. - cat > conftest.$ac_ext <<EOF
  4682. -#line 2269 "configure"
  4683. + cat >conftest.$ac_ext <<_ACEOF
  4684. +#line $LINENO "configure"
  4685. #include "confdefs.h"
  4686. #include <ctype.h>
  4687. -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4688. -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4689. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4690. -int main () { int i; for (i = 0; i < 256; i++)
  4691. -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  4692. -exit (0); }
  4693. +#if ((' ' & 0x0FF) == 0x020)
  4694. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4695. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4696. +#else
  4697. +# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  4698. + || ('j' <= (c) && (c) <= 'r') \
  4699. + || ('s' <= (c) && (c) <= 'z'))
  4700. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4701. +#endif
  4702. -EOF
  4703. -if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4704. -then
  4705. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4706. +int
  4707. +main ()
  4708. +{
  4709. + int i;
  4710. + for (i = 0; i < 256; i++)
  4711. + if (XOR (islower (i), ISLOWER (i))
  4712. + || toupper (i) != TOUPPER (i))
  4713. + exit(2);
  4714. + exit (0);
  4715. +}
  4716. +_ACEOF
  4717. +rm -f conftest$ac_exeext
  4718. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4719. + (eval $ac_link) 2>&5
  4720. + ac_status=$?
  4721. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4722. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4723. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4724. + (eval $ac_try) 2>&5
  4725. + ac_status=$?
  4726. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4727. + (exit $ac_status); }; }; then
  4728. :
  4729. else
  4730. - echo "configure: failed program was:" >&5
  4731. - cat conftest.$ac_ext >&5
  4732. - rm -fr conftest*
  4733. - ac_cv_header_stdc=no
  4734. + echo "$as_me: program exited with status $ac_status" >&5
  4735. +echo "$as_me: failed program was:" >&5
  4736. +cat conftest.$ac_ext >&5
  4737. +( exit $ac_status )
  4738. +ac_cv_header_stdc=no
  4739. fi
  4740. -rm -fr conftest*
  4741. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4742. fi
  4743. -
  4744. fi
  4745. fi
  4746. -
  4747. -echo "$ac_t""$ac_cv_header_stdc" 1>&6
  4748. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4749. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4750. if test $ac_cv_header_stdc = yes; then
  4751. - cat >> confdefs.h <<\EOF
  4752. +
  4753. +cat >>confdefs.h <<\_ACEOF
  4754. #define STDC_HEADERS 1
  4755. -EOF
  4756. +_ACEOF
  4757. fi
  4758. -for ac_func in readdir readdir_r stricmp ustat
  4759. -do
  4760. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4761. -echo "configure:2306: checking for $ac_func" >&5
  4762. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4763. - echo $ac_n "(cached) $ac_c" 1>&6
  4764. -else
  4765. - cat > conftest.$ac_ext <<EOF
  4766. -#line 2311 "configure"
  4767. -#include "confdefs.h"
  4768. -/* System header to define __stub macros and hopefully few prototypes,
  4769. - which can conflict with char $ac_func(); below. */
  4770. -#include <assert.h>
  4771. -/* Override any gcc2 internal prototype to avoid an error. */
  4772. -/* We use char because int might match the return type of a gcc2
  4773. - builtin and then its argument prototype would still apply. */
  4774. -char $ac_func();
  4775. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4776. -int main() {
  4777. -/* The GNU C library defines this for functions which it implements
  4778. - to always fail with ENOSYS. Some functions are actually named
  4779. - something starting with __ and the normal name is an alias. */
  4780. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4781. -choke me
  4782. -#else
  4783. -$ac_func();
  4784. -#endif
  4785. -; return 0; }
  4786. -EOF
  4787. -if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4788. - rm -rf conftest*
  4789. - eval "ac_cv_func_$ac_func=yes"
  4790. -else
  4791. - echo "configure: failed program was:" >&5
  4792. - cat conftest.$ac_ext >&5
  4793. - rm -rf conftest*
  4794. - eval "ac_cv_func_$ac_func=no"
  4795. -fi
  4796. -rm -f conftest*
  4797. -fi
  4798. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4799. - echo "$ac_t""yes" 1>&6
  4800. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4801. - cat >> confdefs.h <<EOF
  4802. -#define $ac_tr_func 1
  4803. -EOF
  4804. -
  4805. -else
  4806. - echo "$ac_t""no" 1>&6
  4807. -fi
  4808. -done
  4809. -# Check whether --with-mmap or --without-mmap was given.
  4810. -if test "${with_mmap+set}" = set; then
  4811. - withval="$with_mmap"
  4812. - if test "x$withval" = "xyes"; then
  4813. - for ac_func in mmap
  4814. -do
  4815. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4816. -echo "configure:2365: checking for $ac_func" >&5
  4817. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4818. - echo $ac_n "(cached) $ac_c" 1>&6
  4819. -else
  4820. - cat > conftest.$ac_ext <<EOF
  4821. -#line 2370 "configure"
  4822. -#include "confdefs.h"
  4823. -/* System header to define __stub macros and hopefully few prototypes,
  4824. - which can conflict with char $ac_func(); below. */
  4825. -#include <assert.h>
  4826. -/* Override any gcc2 internal prototype to avoid an error. */
  4827. -/* We use char because int might match the return type of a gcc2
  4828. - builtin and then its argument prototype would still apply. */
  4829. -char $ac_func();
  4830. -int main() {
  4831. -/* The GNU C library defines this for functions which it implements
  4832. - to always fail with ENOSYS. Some functions are actually named
  4833. - something starting with __ and the normal name is an alias. */
  4834. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4835. -choke me
  4836. -#else
  4837. -$ac_func();
  4838. -#endif
  4839. -; return 0; }
  4840. -EOF
  4841. -if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4842. - rm -rf conftest*
  4843. - eval "ac_cv_func_$ac_func=yes"
  4844. -else
  4845. - echo "configure: failed program was:" >&5
  4846. - cat conftest.$ac_ext >&5
  4847. - rm -rf conftest*
  4848. - eval "ac_cv_func_$ac_func=no"
  4849. -fi
  4850. -rm -f conftest*
  4851. -fi
  4852. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4853. - echo "$ac_t""yes" 1>&6
  4854. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4855. - cat >> confdefs.h <<EOF
  4856. -#define $ac_tr_func 1
  4857. -EOF
  4858. -
  4859. -else
  4860. - echo "$ac_t""no" 1>&6
  4861. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4862. + inttypes.h stdint.h unistd.h
  4863. +do
  4864. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4865. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  4866. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4867. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4868. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4869. +else
  4870. + cat >conftest.$ac_ext <<_ACEOF
  4871. +#line $LINENO "configure"
  4872. +#include "confdefs.h"
  4873. +$ac_includes_default
  4874. +
  4875. +#include <$ac_header>
  4876. +_ACEOF
  4877. +rm -f conftest.$ac_objext
  4878. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4879. + (eval $ac_compile) 2>&5
  4880. + ac_status=$?
  4881. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4882. + (exit $ac_status); } &&
  4883. + { ac_try='test -s conftest.$ac_objext'
  4884. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4885. + (eval $ac_try) 2>&5
  4886. + ac_status=$?
  4887. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4888. + (exit $ac_status); }; }; then
  4889. + eval "$as_ac_Header=yes"
  4890. +else
  4891. + echo "$as_me: failed program was:" >&5
  4892. +cat conftest.$ac_ext >&5
  4893. +eval "$as_ac_Header=no"
  4894. +fi
  4895. +rm -f conftest.$ac_objext conftest.$ac_ext
  4896. +fi
  4897. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4898. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4899. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4900. + cat >>confdefs.h <<_ACEOF
  4901. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4902. +_ACEOF
  4903. +
  4904. fi
  4905. +
  4906. done
  4907. - fi
  4908. -
  4909. +
  4910. +echo "$as_me:$LINENO: checking for unsigned short" >&5
  4911. +echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
  4912. +if test "${ac_cv_type_unsigned_short+set}" = set; then
  4913. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4914. +else
  4915. + cat >conftest.$ac_ext <<_ACEOF
  4916. +#line $LINENO "configure"
  4917. +#include "confdefs.h"
  4918. +$ac_includes_default
  4919. +#ifdef F77_DUMMY_MAIN
  4920. +# ifdef __cplusplus
  4921. + extern "C"
  4922. +# endif
  4923. + int F77_DUMMY_MAIN() { return 1; }
  4924. +#endif
  4925. +int
  4926. +main ()
  4927. +{
  4928. +if ((unsigned short *) 0)
  4929. + return 0;
  4930. +if (sizeof (unsigned short))
  4931. + return 0;
  4932. + ;
  4933. + return 0;
  4934. +}
  4935. +_ACEOF
  4936. +rm -f conftest.$ac_objext
  4937. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4938. + (eval $ac_compile) 2>&5
  4939. + ac_status=$?
  4940. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4941. + (exit $ac_status); } &&
  4942. + { ac_try='test -s conftest.$ac_objext'
  4943. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4944. + (eval $ac_try) 2>&5
  4945. + ac_status=$?
  4946. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4947. + (exit $ac_status); }; }; then
  4948. + ac_cv_type_unsigned_short=yes
  4949. +else
  4950. + echo "$as_me: failed program was:" >&5
  4951. +cat conftest.$ac_ext >&5
  4952. +ac_cv_type_unsigned_short=no
  4953. +fi
  4954. +rm -f conftest.$ac_objext conftest.$ac_ext
  4955. +fi
  4956. +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
  4957. +echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
  4958. +
  4959. +echo "$as_me:$LINENO: checking size of unsigned short" >&5
  4960. +echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
  4961. +if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
  4962. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4963. +else
  4964. + if test "$ac_cv_type_unsigned_short" = yes; then
  4965. + # The cast to unsigned long works around a bug in the HP C Compiler
  4966. + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4967. + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4968. + # This bug is HP SR number 8606223364.
  4969. + if test "$cross_compiling" = yes; then
  4970. + # Depending upon the size, compute the lo and hi bounds.
  4971. +cat >conftest.$ac_ext <<_ACEOF
  4972. +#line $LINENO "configure"
  4973. +#include "confdefs.h"
  4974. +$ac_includes_default
  4975. +#ifdef F77_DUMMY_MAIN
  4976. +# ifdef __cplusplus
  4977. + extern "C"
  4978. +# endif
  4979. + int F77_DUMMY_MAIN() { return 1; }
  4980. +#endif
  4981. +int
  4982. +main ()
  4983. +{
  4984. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
  4985. +test_array [0] = 0
  4986. +
  4987. + ;
  4988. + return 0;
  4989. +}
  4990. +_ACEOF
  4991. +rm -f conftest.$ac_objext
  4992. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4993. + (eval $ac_compile) 2>&5
  4994. + ac_status=$?
  4995. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4996. + (exit $ac_status); } &&
  4997. + { ac_try='test -s conftest.$ac_objext'
  4998. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4999. + (eval $ac_try) 2>&5
  5000. + ac_status=$?
  5001. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5002. + (exit $ac_status); }; }; then
  5003. + ac_lo=0 ac_mid=0
  5004. + while :; do
  5005. + cat >conftest.$ac_ext <<_ACEOF
  5006. +#line $LINENO "configure"
  5007. +#include "confdefs.h"
  5008. +$ac_includes_default
  5009. +#ifdef F77_DUMMY_MAIN
  5010. +# ifdef __cplusplus
  5011. + extern "C"
  5012. +# endif
  5013. + int F77_DUMMY_MAIN() { return 1; }
  5014. +#endif
  5015. +int
  5016. +main ()
  5017. +{
  5018. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
  5019. +test_array [0] = 0
  5020. +
  5021. + ;
  5022. + return 0;
  5023. +}
  5024. +_ACEOF
  5025. +rm -f conftest.$ac_objext
  5026. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5027. + (eval $ac_compile) 2>&5
  5028. + ac_status=$?
  5029. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5030. + (exit $ac_status); } &&
  5031. + { ac_try='test -s conftest.$ac_objext'
  5032. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5033. + (eval $ac_try) 2>&5
  5034. + ac_status=$?
  5035. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5036. + (exit $ac_status); }; }; then
  5037. + ac_hi=$ac_mid; break
  5038. +else
  5039. + echo "$as_me: failed program was:" >&5
  5040. +cat conftest.$ac_ext >&5
  5041. +ac_lo=`expr $ac_mid + 1`
  5042. + if test $ac_lo -le $ac_mid; then
  5043. + ac_lo= ac_hi=
  5044. + break
  5045. + fi
  5046. + ac_mid=`expr 2 '*' $ac_mid + 1`
  5047. +fi
  5048. +rm -f conftest.$ac_objext conftest.$ac_ext
  5049. + done
  5050. +else
  5051. + echo "$as_me: failed program was:" >&5
  5052. +cat conftest.$ac_ext >&5
  5053. +cat >conftest.$ac_ext <<_ACEOF
  5054. +#line $LINENO "configure"
  5055. +#include "confdefs.h"
  5056. +$ac_includes_default
  5057. +#ifdef F77_DUMMY_MAIN
  5058. +# ifdef __cplusplus
  5059. + extern "C"
  5060. +# endif
  5061. + int F77_DUMMY_MAIN() { return 1; }
  5062. +#endif
  5063. +int
  5064. +main ()
  5065. +{
  5066. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
  5067. +test_array [0] = 0
  5068. +
  5069. + ;
  5070. + return 0;
  5071. +}
  5072. +_ACEOF
  5073. +rm -f conftest.$ac_objext
  5074. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5075. + (eval $ac_compile) 2>&5
  5076. + ac_status=$?
  5077. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5078. + (exit $ac_status); } &&
  5079. + { ac_try='test -s conftest.$ac_objext'
  5080. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5081. + (eval $ac_try) 2>&5
  5082. + ac_status=$?
  5083. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5084. + (exit $ac_status); }; }; then
  5085. + ac_hi=-1 ac_mid=-1
  5086. + while :; do
  5087. + cat >conftest.$ac_ext <<_ACEOF
  5088. +#line $LINENO "configure"
  5089. +#include "confdefs.h"
  5090. +$ac_includes_default
  5091. +#ifdef F77_DUMMY_MAIN
  5092. +# ifdef __cplusplus
  5093. + extern "C"
  5094. +# endif
  5095. + int F77_DUMMY_MAIN() { return 1; }
  5096. +#endif
  5097. +int
  5098. +main ()
  5099. +{
  5100. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
  5101. +test_array [0] = 0
  5102. +
  5103. + ;
  5104. + return 0;
  5105. +}
  5106. +_ACEOF
  5107. +rm -f conftest.$ac_objext
  5108. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5109. + (eval $ac_compile) 2>&5
  5110. + ac_status=$?
  5111. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5112. + (exit $ac_status); } &&
  5113. + { ac_try='test -s conftest.$ac_objext'
  5114. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5115. + (eval $ac_try) 2>&5
  5116. + ac_status=$?
  5117. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5118. + (exit $ac_status); }; }; then
  5119. + ac_lo=$ac_mid; break
  5120. +else
  5121. + echo "$as_me: failed program was:" >&5
  5122. +cat conftest.$ac_ext >&5
  5123. +ac_hi=`expr '(' $ac_mid ')' - 1`
  5124. + if test $ac_mid -le $ac_hi; then
  5125. + ac_lo= ac_hi=
  5126. + break
  5127. + fi
  5128. + ac_mid=`expr 2 '*' $ac_mid`
  5129. +fi
  5130. +rm -f conftest.$ac_objext conftest.$ac_ext
  5131. + done
  5132. +else
  5133. + echo "$as_me: failed program was:" >&5
  5134. +cat conftest.$ac_ext >&5
  5135. +ac_lo= ac_hi=
  5136. +fi
  5137. +rm -f conftest.$ac_objext conftest.$ac_ext
  5138. +fi
  5139. +rm -f conftest.$ac_objext conftest.$ac_ext
  5140. +# Binary search between lo and hi bounds.
  5141. +while test "x$ac_lo" != "x$ac_hi"; do
  5142. + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5143. + cat >conftest.$ac_ext <<_ACEOF
  5144. +#line $LINENO "configure"
  5145. +#include "confdefs.h"
  5146. +$ac_includes_default
  5147. +#ifdef F77_DUMMY_MAIN
  5148. +# ifdef __cplusplus
  5149. + extern "C"
  5150. +# endif
  5151. + int F77_DUMMY_MAIN() { return 1; }
  5152. +#endif
  5153. +int
  5154. +main ()
  5155. +{
  5156. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
  5157. +test_array [0] = 0
  5158. +
  5159. + ;
  5160. + return 0;
  5161. +}
  5162. +_ACEOF
  5163. +rm -f conftest.$ac_objext
  5164. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5165. + (eval $ac_compile) 2>&5
  5166. + ac_status=$?
  5167. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5168. + (exit $ac_status); } &&
  5169. + { ac_try='test -s conftest.$ac_objext'
  5170. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5171. + (eval $ac_try) 2>&5
  5172. + ac_status=$?
  5173. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5174. + (exit $ac_status); }; }; then
  5175. + ac_hi=$ac_mid
  5176. +else
  5177. + echo "$as_me: failed program was:" >&5
  5178. +cat conftest.$ac_ext >&5
  5179. +ac_lo=`expr '(' $ac_mid ')' + 1`
  5180. +fi
  5181. +rm -f conftest.$ac_objext conftest.$ac_ext
  5182. +done
  5183. +case $ac_lo in
  5184. +?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
  5185. +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77" >&5
  5186. +echo "$as_me: error: cannot compute sizeof (unsigned short), 77" >&2;}
  5187. + { (exit 1); exit 1; }; } ;;
  5188. +esac
  5189. +else
  5190. + if test "$cross_compiling" = yes; then
  5191. + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  5192. +echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  5193. + { (exit 1); exit 1; }; }
  5194. +else
  5195. + cat >conftest.$ac_ext <<_ACEOF
  5196. +#line $LINENO "configure"
  5197. +#include "confdefs.h"
  5198. +$ac_includes_default
  5199. +long longval () { return (long) (sizeof (unsigned short)); }
  5200. +unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
  5201. +#include <stdio.h>
  5202. +#include <stdlib.h>
  5203. +#ifdef F77_DUMMY_MAIN
  5204. +# ifdef __cplusplus
  5205. + extern "C"
  5206. +# endif
  5207. + int F77_DUMMY_MAIN() { return 1; }
  5208. +#endif
  5209. +int
  5210. +main ()
  5211. +{
  5212. +
  5213. + FILE *f = fopen ("conftest.val", "w");
  5214. + if (! f)
  5215. + exit (1);
  5216. + if (((long) (sizeof (unsigned short))) < 0)
  5217. + {
  5218. + long i = longval ();
  5219. + if (i != ((long) (sizeof (unsigned short))))
  5220. + exit (1);
  5221. + fprintf (f, "%ld\n", i);
  5222. + }
  5223. + else
  5224. + {
  5225. + unsigned long i = ulongval ();
  5226. + if (i != ((long) (sizeof (unsigned short))))
  5227. + exit (1);
  5228. + fprintf (f, "%lu\n", i);
  5229. + }
  5230. + exit (ferror (f) || fclose (f) != 0);
  5231. +
  5232. + ;
  5233. + return 0;
  5234. +}
  5235. +_ACEOF
  5236. +rm -f conftest$ac_exeext
  5237. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5238. + (eval $ac_link) 2>&5
  5239. + ac_status=$?
  5240. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5241. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5242. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5243. + (eval $ac_try) 2>&5
  5244. + ac_status=$?
  5245. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5246. + (exit $ac_status); }; }; then
  5247. + ac_cv_sizeof_unsigned_short=`cat conftest.val`
  5248. +else
  5249. + echo "$as_me: program exited with status $ac_status" >&5
  5250. +echo "$as_me: failed program was:" >&5
  5251. +cat conftest.$ac_ext >&5
  5252. +( exit $ac_status )
  5253. +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77" >&5
  5254. +echo "$as_me: error: cannot compute sizeof (unsigned short), 77" >&2;}
  5255. + { (exit 1); exit 1; }; }
  5256. +fi
  5257. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5258. +fi
  5259. +fi
  5260. +rm -f conftest.val
  5261. +else
  5262. + ac_cv_sizeof_unsigned_short=0
  5263. +fi
  5264. +fi
  5265. +echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
  5266. +echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
  5267. +cat >>confdefs.h <<_ACEOF
  5268. +#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  5269. +_ACEOF
  5270. +
  5271. +
  5272. +echo "$as_me:$LINENO: checking for unsigned int" >&5
  5273. +echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
  5274. +if test "${ac_cv_type_unsigned_int+set}" = set; then
  5275. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5276. +else
  5277. + cat >conftest.$ac_ext <<_ACEOF
  5278. +#line $LINENO "configure"
  5279. +#include "confdefs.h"
  5280. +$ac_includes_default
  5281. +#ifdef F77_DUMMY_MAIN
  5282. +# ifdef __cplusplus
  5283. + extern "C"
  5284. +# endif
  5285. + int F77_DUMMY_MAIN() { return 1; }
  5286. +#endif
  5287. +int
  5288. +main ()
  5289. +{
  5290. +if ((unsigned int *) 0)
  5291. + return 0;
  5292. +if (sizeof (unsigned int))
  5293. + return 0;
  5294. + ;
  5295. + return 0;
  5296. +}
  5297. +_ACEOF
  5298. +rm -f conftest.$ac_objext
  5299. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5300. + (eval $ac_compile) 2>&5
  5301. + ac_status=$?
  5302. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5303. + (exit $ac_status); } &&
  5304. + { ac_try='test -s conftest.$ac_objext'
  5305. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5306. + (eval $ac_try) 2>&5
  5307. + ac_status=$?
  5308. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5309. + (exit $ac_status); }; }; then
  5310. + ac_cv_type_unsigned_int=yes
  5311. +else
  5312. + echo "$as_me: failed program was:" >&5
  5313. +cat conftest.$ac_ext >&5
  5314. +ac_cv_type_unsigned_int=no
  5315. +fi
  5316. +rm -f conftest.$ac_objext conftest.$ac_ext
  5317. +fi
  5318. +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
  5319. +echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
  5320. +
  5321. +echo "$as_me:$LINENO: checking size of unsigned int" >&5
  5322. +echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
  5323. +if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
  5324. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5325. +else
  5326. + if test "$ac_cv_type_unsigned_int" = yes; then
  5327. + # The cast to unsigned long works around a bug in the HP C Compiler
  5328. + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5329. + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5330. + # This bug is HP SR number 8606223364.
  5331. + if test "$cross_compiling" = yes; then
  5332. + # Depending upon the size, compute the lo and hi bounds.
  5333. +cat >conftest.$ac_ext <<_ACEOF
  5334. +#line $LINENO "configure"
  5335. +#include "confdefs.h"
  5336. +$ac_includes_default
  5337. +#ifdef F77_DUMMY_MAIN
  5338. +# ifdef __cplusplus
  5339. + extern "C"
  5340. +# endif
  5341. + int F77_DUMMY_MAIN() { return 1; }
  5342. +#endif
  5343. +int
  5344. +main ()
  5345. +{
  5346. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
  5347. +test_array [0] = 0
  5348. +
  5349. + ;
  5350. + return 0;
  5351. +}
  5352. +_ACEOF
  5353. +rm -f conftest.$ac_objext
  5354. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5355. + (eval $ac_compile) 2>&5
  5356. + ac_status=$?
  5357. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5358. + (exit $ac_status); } &&
  5359. + { ac_try='test -s conftest.$ac_objext'
  5360. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5361. + (eval $ac_try) 2>&5
  5362. + ac_status=$?
  5363. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5364. + (exit $ac_status); }; }; then
  5365. + ac_lo=0 ac_mid=0
  5366. + while :; do
  5367. + cat >conftest.$ac_ext <<_ACEOF
  5368. +#line $LINENO "configure"
  5369. +#include "confdefs.h"
  5370. +$ac_includes_default
  5371. +#ifdef F77_DUMMY_MAIN
  5372. +# ifdef __cplusplus
  5373. + extern "C"
  5374. +# endif
  5375. + int F77_DUMMY_MAIN() { return 1; }
  5376. +#endif
  5377. +int
  5378. +main ()
  5379. +{
  5380. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  5381. +test_array [0] = 0
  5382. +
  5383. + ;
  5384. + return 0;
  5385. +}
  5386. +_ACEOF
  5387. +rm -f conftest.$ac_objext
  5388. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5389. + (eval $ac_compile) 2>&5
  5390. + ac_status=$?
  5391. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5392. + (exit $ac_status); } &&
  5393. + { ac_try='test -s conftest.$ac_objext'
  5394. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5395. + (eval $ac_try) 2>&5
  5396. + ac_status=$?
  5397. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5398. + (exit $ac_status); }; }; then
  5399. + ac_hi=$ac_mid; break
  5400. +else
  5401. + echo "$as_me: failed program was:" >&5
  5402. +cat conftest.$ac_ext >&5
  5403. +ac_lo=`expr $ac_mid + 1`
  5404. + if test $ac_lo -le $ac_mid; then
  5405. + ac_lo= ac_hi=
  5406. + break
  5407. + fi
  5408. + ac_mid=`expr 2 '*' $ac_mid + 1`
  5409. +fi
  5410. +rm -f conftest.$ac_objext conftest.$ac_ext
  5411. + done
  5412. else
  5413. - for ac_func in mmap
  5414. + echo "$as_me: failed program was:" >&5
  5415. +cat conftest.$ac_ext >&5
  5416. +cat >conftest.$ac_ext <<_ACEOF
  5417. +#line $LINENO "configure"
  5418. +#include "confdefs.h"
  5419. +$ac_includes_default
  5420. +#ifdef F77_DUMMY_MAIN
  5421. +# ifdef __cplusplus
  5422. + extern "C"
  5423. +# endif
  5424. + int F77_DUMMY_MAIN() { return 1; }
  5425. +#endif
  5426. +int
  5427. +main ()
  5428. +{
  5429. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
  5430. +test_array [0] = 0
  5431. +
  5432. + ;
  5433. + return 0;
  5434. +}
  5435. +_ACEOF
  5436. +rm -f conftest.$ac_objext
  5437. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5438. + (eval $ac_compile) 2>&5
  5439. + ac_status=$?
  5440. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5441. + (exit $ac_status); } &&
  5442. + { ac_try='test -s conftest.$ac_objext'
  5443. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5444. + (eval $ac_try) 2>&5
  5445. + ac_status=$?
  5446. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5447. + (exit $ac_status); }; }; then
  5448. + ac_hi=-1 ac_mid=-1
  5449. + while :; do
  5450. + cat >conftest.$ac_ext <<_ACEOF
  5451. +#line $LINENO "configure"
  5452. +#include "confdefs.h"
  5453. +$ac_includes_default
  5454. +#ifdef F77_DUMMY_MAIN
  5455. +# ifdef __cplusplus
  5456. + extern "C"
  5457. +# endif
  5458. + int F77_DUMMY_MAIN() { return 1; }
  5459. +#endif
  5460. +int
  5461. +main ()
  5462. +{
  5463. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
  5464. +test_array [0] = 0
  5465. +
  5466. + ;
  5467. + return 0;
  5468. +}
  5469. +_ACEOF
  5470. +rm -f conftest.$ac_objext
  5471. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5472. + (eval $ac_compile) 2>&5
  5473. + ac_status=$?
  5474. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5475. + (exit $ac_status); } &&
  5476. + { ac_try='test -s conftest.$ac_objext'
  5477. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5478. + (eval $ac_try) 2>&5
  5479. + ac_status=$?
  5480. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5481. + (exit $ac_status); }; }; then
  5482. + ac_lo=$ac_mid; break
  5483. +else
  5484. + echo "$as_me: failed program was:" >&5
  5485. +cat conftest.$ac_ext >&5
  5486. +ac_hi=`expr '(' $ac_mid ')' - 1`
  5487. + if test $ac_mid -le $ac_hi; then
  5488. + ac_lo= ac_hi=
  5489. + break
  5490. + fi
  5491. + ac_mid=`expr 2 '*' $ac_mid`
  5492. +fi
  5493. +rm -f conftest.$ac_objext conftest.$ac_ext
  5494. + done
  5495. +else
  5496. + echo "$as_me: failed program was:" >&5
  5497. +cat conftest.$ac_ext >&5
  5498. +ac_lo= ac_hi=
  5499. +fi
  5500. +rm -f conftest.$ac_objext conftest.$ac_ext
  5501. +fi
  5502. +rm -f conftest.$ac_objext conftest.$ac_ext
  5503. +# Binary search between lo and hi bounds.
  5504. +while test "x$ac_lo" != "x$ac_hi"; do
  5505. + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5506. + cat >conftest.$ac_ext <<_ACEOF
  5507. +#line $LINENO "configure"
  5508. +#include "confdefs.h"
  5509. +$ac_includes_default
  5510. +#ifdef F77_DUMMY_MAIN
  5511. +# ifdef __cplusplus
  5512. + extern "C"
  5513. +# endif
  5514. + int F77_DUMMY_MAIN() { return 1; }
  5515. +#endif
  5516. +int
  5517. +main ()
  5518. +{
  5519. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  5520. +test_array [0] = 0
  5521. +
  5522. + ;
  5523. + return 0;
  5524. +}
  5525. +_ACEOF
  5526. +rm -f conftest.$ac_objext
  5527. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5528. + (eval $ac_compile) 2>&5
  5529. + ac_status=$?
  5530. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5531. + (exit $ac_status); } &&
  5532. + { ac_try='test -s conftest.$ac_objext'
  5533. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5534. + (eval $ac_try) 2>&5
  5535. + ac_status=$?
  5536. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5537. + (exit $ac_status); }; }; then
  5538. + ac_hi=$ac_mid
  5539. +else
  5540. + echo "$as_me: failed program was:" >&5
  5541. +cat conftest.$ac_ext >&5
  5542. +ac_lo=`expr '(' $ac_mid ')' + 1`
  5543. +fi
  5544. +rm -f conftest.$ac_objext conftest.$ac_ext
  5545. +done
  5546. +case $ac_lo in
  5547. +?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
  5548. +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77" >&5
  5549. +echo "$as_me: error: cannot compute sizeof (unsigned int), 77" >&2;}
  5550. + { (exit 1); exit 1; }; } ;;
  5551. +esac
  5552. +else
  5553. + if test "$cross_compiling" = yes; then
  5554. + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  5555. +echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  5556. + { (exit 1); exit 1; }; }
  5557. +else
  5558. + cat >conftest.$ac_ext <<_ACEOF
  5559. +#line $LINENO "configure"
  5560. +#include "confdefs.h"
  5561. +$ac_includes_default
  5562. +long longval () { return (long) (sizeof (unsigned int)); }
  5563. +unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
  5564. +#include <stdio.h>
  5565. +#include <stdlib.h>
  5566. +#ifdef F77_DUMMY_MAIN
  5567. +# ifdef __cplusplus
  5568. + extern "C"
  5569. +# endif
  5570. + int F77_DUMMY_MAIN() { return 1; }
  5571. +#endif
  5572. +int
  5573. +main ()
  5574. +{
  5575. +
  5576. + FILE *f = fopen ("conftest.val", "w");
  5577. + if (! f)
  5578. + exit (1);
  5579. + if (((long) (sizeof (unsigned int))) < 0)
  5580. + {
  5581. + long i = longval ();
  5582. + if (i != ((long) (sizeof (unsigned int))))
  5583. + exit (1);
  5584. + fprintf (f, "%ld\n", i);
  5585. + }
  5586. + else
  5587. + {
  5588. + unsigned long i = ulongval ();
  5589. + if (i != ((long) (sizeof (unsigned int))))
  5590. + exit (1);
  5591. + fprintf (f, "%lu\n", i);
  5592. + }
  5593. + exit (ferror (f) || fclose (f) != 0);
  5594. +
  5595. + ;
  5596. + return 0;
  5597. +}
  5598. +_ACEOF
  5599. +rm -f conftest$ac_exeext
  5600. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5601. + (eval $ac_link) 2>&5
  5602. + ac_status=$?
  5603. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5604. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5605. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5606. + (eval $ac_try) 2>&5
  5607. + ac_status=$?
  5608. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5609. + (exit $ac_status); }; }; then
  5610. + ac_cv_sizeof_unsigned_int=`cat conftest.val`
  5611. +else
  5612. + echo "$as_me: program exited with status $ac_status" >&5
  5613. +echo "$as_me: failed program was:" >&5
  5614. +cat conftest.$ac_ext >&5
  5615. +( exit $ac_status )
  5616. +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77" >&5
  5617. +echo "$as_me: error: cannot compute sizeof (unsigned int), 77" >&2;}
  5618. + { (exit 1); exit 1; }; }
  5619. +fi
  5620. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5621. +fi
  5622. +fi
  5623. +rm -f conftest.val
  5624. +else
  5625. + ac_cv_sizeof_unsigned_int=0
  5626. +fi
  5627. +fi
  5628. +echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
  5629. +echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
  5630. +cat >>confdefs.h <<_ACEOF
  5631. +#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  5632. +_ACEOF
  5633. +
  5634. +
  5635. +echo "$as_me:$LINENO: checking for unsigned long" >&5
  5636. +echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
  5637. +if test "${ac_cv_type_unsigned_long+set}" = set; then
  5638. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5639. +else
  5640. + cat >conftest.$ac_ext <<_ACEOF
  5641. +#line $LINENO "configure"
  5642. +#include "confdefs.h"
  5643. +$ac_includes_default
  5644. +#ifdef F77_DUMMY_MAIN
  5645. +# ifdef __cplusplus
  5646. + extern "C"
  5647. +# endif
  5648. + int F77_DUMMY_MAIN() { return 1; }
  5649. +#endif
  5650. +int
  5651. +main ()
  5652. +{
  5653. +if ((unsigned long *) 0)
  5654. + return 0;
  5655. +if (sizeof (unsigned long))
  5656. + return 0;
  5657. + ;
  5658. + return 0;
  5659. +}
  5660. +_ACEOF
  5661. +rm -f conftest.$ac_objext
  5662. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5663. + (eval $ac_compile) 2>&5
  5664. + ac_status=$?
  5665. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5666. + (exit $ac_status); } &&
  5667. + { ac_try='test -s conftest.$ac_objext'
  5668. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5669. + (eval $ac_try) 2>&5
  5670. + ac_status=$?
  5671. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5672. + (exit $ac_status); }; }; then
  5673. + ac_cv_type_unsigned_long=yes
  5674. +else
  5675. + echo "$as_me: failed program was:" >&5
  5676. +cat conftest.$ac_ext >&5
  5677. +ac_cv_type_unsigned_long=no
  5678. +fi
  5679. +rm -f conftest.$ac_objext conftest.$ac_ext
  5680. +fi
  5681. +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
  5682. +echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
  5683. +
  5684. +echo "$as_me:$LINENO: checking size of unsigned long" >&5
  5685. +echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
  5686. +if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  5687. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5688. +else
  5689. + if test "$ac_cv_type_unsigned_long" = yes; then
  5690. + # The cast to unsigned long works around a bug in the HP C Compiler
  5691. + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5692. + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5693. + # This bug is HP SR number 8606223364.
  5694. + if test "$cross_compiling" = yes; then
  5695. + # Depending upon the size, compute the lo and hi bounds.
  5696. +cat >conftest.$ac_ext <<_ACEOF
  5697. +#line $LINENO "configure"
  5698. +#include "confdefs.h"
  5699. +$ac_includes_default
  5700. +#ifdef F77_DUMMY_MAIN
  5701. +# ifdef __cplusplus
  5702. + extern "C"
  5703. +# endif
  5704. + int F77_DUMMY_MAIN() { return 1; }
  5705. +#endif
  5706. +int
  5707. +main ()
  5708. +{
  5709. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
  5710. +test_array [0] = 0
  5711. +
  5712. + ;
  5713. + return 0;
  5714. +}
  5715. +_ACEOF
  5716. +rm -f conftest.$ac_objext
  5717. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5718. + (eval $ac_compile) 2>&5
  5719. + ac_status=$?
  5720. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5721. + (exit $ac_status); } &&
  5722. + { ac_try='test -s conftest.$ac_objext'
  5723. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5724. + (eval $ac_try) 2>&5
  5725. + ac_status=$?
  5726. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5727. + (exit $ac_status); }; }; then
  5728. + ac_lo=0 ac_mid=0
  5729. + while :; do
  5730. + cat >conftest.$ac_ext <<_ACEOF
  5731. +#line $LINENO "configure"
  5732. +#include "confdefs.h"
  5733. +$ac_includes_default
  5734. +#ifdef F77_DUMMY_MAIN
  5735. +# ifdef __cplusplus
  5736. + extern "C"
  5737. +# endif
  5738. + int F77_DUMMY_MAIN() { return 1; }
  5739. +#endif
  5740. +int
  5741. +main ()
  5742. +{
  5743. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  5744. +test_array [0] = 0
  5745. +
  5746. + ;
  5747. + return 0;
  5748. +}
  5749. +_ACEOF
  5750. +rm -f conftest.$ac_objext
  5751. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5752. + (eval $ac_compile) 2>&5
  5753. + ac_status=$?
  5754. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5755. + (exit $ac_status); } &&
  5756. + { ac_try='test -s conftest.$ac_objext'
  5757. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5758. + (eval $ac_try) 2>&5
  5759. + ac_status=$?
  5760. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5761. + (exit $ac_status); }; }; then
  5762. + ac_hi=$ac_mid; break
  5763. +else
  5764. + echo "$as_me: failed program was:" >&5
  5765. +cat conftest.$ac_ext >&5
  5766. +ac_lo=`expr $ac_mid + 1`
  5767. + if test $ac_lo -le $ac_mid; then
  5768. + ac_lo= ac_hi=
  5769. + break
  5770. + fi
  5771. + ac_mid=`expr 2 '*' $ac_mid + 1`
  5772. +fi
  5773. +rm -f conftest.$ac_objext conftest.$ac_ext
  5774. + done
  5775. +else
  5776. + echo "$as_me: failed program was:" >&5
  5777. +cat conftest.$ac_ext >&5
  5778. +cat >conftest.$ac_ext <<_ACEOF
  5779. +#line $LINENO "configure"
  5780. +#include "confdefs.h"
  5781. +$ac_includes_default
  5782. +#ifdef F77_DUMMY_MAIN
  5783. +# ifdef __cplusplus
  5784. + extern "C"
  5785. +# endif
  5786. + int F77_DUMMY_MAIN() { return 1; }
  5787. +#endif
  5788. +int
  5789. +main ()
  5790. +{
  5791. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
  5792. +test_array [0] = 0
  5793. +
  5794. + ;
  5795. + return 0;
  5796. +}
  5797. +_ACEOF
  5798. +rm -f conftest.$ac_objext
  5799. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5800. + (eval $ac_compile) 2>&5
  5801. + ac_status=$?
  5802. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5803. + (exit $ac_status); } &&
  5804. + { ac_try='test -s conftest.$ac_objext'
  5805. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5806. + (eval $ac_try) 2>&5
  5807. + ac_status=$?
  5808. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5809. + (exit $ac_status); }; }; then
  5810. + ac_hi=-1 ac_mid=-1
  5811. + while :; do
  5812. + cat >conftest.$ac_ext <<_ACEOF
  5813. +#line $LINENO "configure"
  5814. +#include "confdefs.h"
  5815. +$ac_includes_default
  5816. +#ifdef F77_DUMMY_MAIN
  5817. +# ifdef __cplusplus
  5818. + extern "C"
  5819. +# endif
  5820. + int F77_DUMMY_MAIN() { return 1; }
  5821. +#endif
  5822. +int
  5823. +main ()
  5824. +{
  5825. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
  5826. +test_array [0] = 0
  5827. +
  5828. + ;
  5829. + return 0;
  5830. +}
  5831. +_ACEOF
  5832. +rm -f conftest.$ac_objext
  5833. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5834. + (eval $ac_compile) 2>&5
  5835. + ac_status=$?
  5836. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5837. + (exit $ac_status); } &&
  5838. + { ac_try='test -s conftest.$ac_objext'
  5839. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5840. + (eval $ac_try) 2>&5
  5841. + ac_status=$?
  5842. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5843. + (exit $ac_status); }; }; then
  5844. + ac_lo=$ac_mid; break
  5845. +else
  5846. + echo "$as_me: failed program was:" >&5
  5847. +cat conftest.$ac_ext >&5
  5848. +ac_hi=`expr '(' $ac_mid ')' - 1`
  5849. + if test $ac_mid -le $ac_hi; then
  5850. + ac_lo= ac_hi=
  5851. + break
  5852. + fi
  5853. + ac_mid=`expr 2 '*' $ac_mid`
  5854. +fi
  5855. +rm -f conftest.$ac_objext conftest.$ac_ext
  5856. + done
  5857. +else
  5858. + echo "$as_me: failed program was:" >&5
  5859. +cat conftest.$ac_ext >&5
  5860. +ac_lo= ac_hi=
  5861. +fi
  5862. +rm -f conftest.$ac_objext conftest.$ac_ext
  5863. +fi
  5864. +rm -f conftest.$ac_objext conftest.$ac_ext
  5865. +# Binary search between lo and hi bounds.
  5866. +while test "x$ac_lo" != "x$ac_hi"; do
  5867. + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5868. + cat >conftest.$ac_ext <<_ACEOF
  5869. +#line $LINENO "configure"
  5870. +#include "confdefs.h"
  5871. +$ac_includes_default
  5872. +#ifdef F77_DUMMY_MAIN
  5873. +# ifdef __cplusplus
  5874. + extern "C"
  5875. +# endif
  5876. + int F77_DUMMY_MAIN() { return 1; }
  5877. +#endif
  5878. +int
  5879. +main ()
  5880. +{
  5881. +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  5882. +test_array [0] = 0
  5883. +
  5884. + ;
  5885. + return 0;
  5886. +}
  5887. +_ACEOF
  5888. +rm -f conftest.$ac_objext
  5889. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5890. + (eval $ac_compile) 2>&5
  5891. + ac_status=$?
  5892. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5893. + (exit $ac_status); } &&
  5894. + { ac_try='test -s conftest.$ac_objext'
  5895. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5896. + (eval $ac_try) 2>&5
  5897. + ac_status=$?
  5898. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5899. + (exit $ac_status); }; }; then
  5900. + ac_hi=$ac_mid
  5901. +else
  5902. + echo "$as_me: failed program was:" >&5
  5903. +cat conftest.$ac_ext >&5
  5904. +ac_lo=`expr '(' $ac_mid ')' + 1`
  5905. +fi
  5906. +rm -f conftest.$ac_objext conftest.$ac_ext
  5907. +done
  5908. +case $ac_lo in
  5909. +?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
  5910. +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
  5911. +echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
  5912. + { (exit 1); exit 1; }; } ;;
  5913. +esac
  5914. +else
  5915. + if test "$cross_compiling" = yes; then
  5916. + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
  5917. +echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  5918. + { (exit 1); exit 1; }; }
  5919. +else
  5920. + cat >conftest.$ac_ext <<_ACEOF
  5921. +#line $LINENO "configure"
  5922. +#include "confdefs.h"
  5923. +$ac_includes_default
  5924. +long longval () { return (long) (sizeof (unsigned long)); }
  5925. +unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
  5926. +#include <stdio.h>
  5927. +#include <stdlib.h>
  5928. +#ifdef F77_DUMMY_MAIN
  5929. +# ifdef __cplusplus
  5930. + extern "C"
  5931. +# endif
  5932. + int F77_DUMMY_MAIN() { return 1; }
  5933. +#endif
  5934. +int
  5935. +main ()
  5936. +{
  5937. +
  5938. + FILE *f = fopen ("conftest.val", "w");
  5939. + if (! f)
  5940. + exit (1);
  5941. + if (((long) (sizeof (unsigned long))) < 0)
  5942. + {
  5943. + long i = longval ();
  5944. + if (i != ((long) (sizeof (unsigned long))))
  5945. + exit (1);
  5946. + fprintf (f, "%ld\n", i);
  5947. + }
  5948. + else
  5949. + {
  5950. + unsigned long i = ulongval ();
  5951. + if (i != ((long) (sizeof (unsigned long))))
  5952. + exit (1);
  5953. + fprintf (f, "%lu\n", i);
  5954. + }
  5955. + exit (ferror (f) || fclose (f) != 0);
  5956. +
  5957. + ;
  5958. + return 0;
  5959. +}
  5960. +_ACEOF
  5961. +rm -f conftest$ac_exeext
  5962. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5963. + (eval $ac_link) 2>&5
  5964. + ac_status=$?
  5965. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5966. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5967. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5968. + (eval $ac_try) 2>&5
  5969. + ac_status=$?
  5970. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5971. + (exit $ac_status); }; }; then
  5972. + ac_cv_sizeof_unsigned_long=`cat conftest.val`
  5973. +else
  5974. + echo "$as_me: program exited with status $ac_status" >&5
  5975. +echo "$as_me: failed program was:" >&5
  5976. +cat conftest.$ac_ext >&5
  5977. +( exit $ac_status )
  5978. +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
  5979. +echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
  5980. + { (exit 1); exit 1; }; }
  5981. +fi
  5982. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5983. +fi
  5984. +fi
  5985. +rm -f conftest.val
  5986. +else
  5987. + ac_cv_sizeof_unsigned_long=0
  5988. +fi
  5989. +fi
  5990. +echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
  5991. +echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
  5992. +cat >>confdefs.h <<_ACEOF
  5993. +#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  5994. +_ACEOF
  5995. +
  5996. +
  5997. +
  5998. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5999. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  6000. +if test "${ac_cv_header_stdc+set}" = set; then
  6001. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6002. +else
  6003. + cat >conftest.$ac_ext <<_ACEOF
  6004. +#line $LINENO "configure"
  6005. +#include "confdefs.h"
  6006. +#include <stdlib.h>
  6007. +#include <stdarg.h>
  6008. +#include <string.h>
  6009. +#include <float.h>
  6010. +
  6011. +_ACEOF
  6012. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6013. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6014. + ac_status=$?
  6015. + egrep -v '^ *\+' conftest.er1 >conftest.err
  6016. + rm -f conftest.er1
  6017. + cat conftest.err >&5
  6018. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6019. + (exit $ac_status); } >/dev/null; then
  6020. + if test -s conftest.err; then
  6021. + ac_cpp_err=$ac_c_preproc_warn_flag
  6022. + else
  6023. + ac_cpp_err=
  6024. + fi
  6025. +else
  6026. + ac_cpp_err=yes
  6027. +fi
  6028. +if test -z "$ac_cpp_err"; then
  6029. + ac_cv_header_stdc=yes
  6030. +else
  6031. + echo "$as_me: failed program was:" >&5
  6032. + cat conftest.$ac_ext >&5
  6033. + ac_cv_header_stdc=no
  6034. +fi
  6035. +rm -f conftest.err conftest.$ac_ext
  6036. +
  6037. +if test $ac_cv_header_stdc = yes; then
  6038. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6039. + cat >conftest.$ac_ext <<_ACEOF
  6040. +#line $LINENO "configure"
  6041. +#include "confdefs.h"
  6042. +#include <string.h>
  6043. +
  6044. +_ACEOF
  6045. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6046. + egrep "memchr" >/dev/null 2>&1; then
  6047. + :
  6048. +else
  6049. + ac_cv_header_stdc=no
  6050. +fi
  6051. +rm -f conftest*
  6052. +
  6053. +fi
  6054. +
  6055. +if test $ac_cv_header_stdc = yes; then
  6056. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6057. + cat >conftest.$ac_ext <<_ACEOF
  6058. +#line $LINENO "configure"
  6059. +#include "confdefs.h"
  6060. +#include <stdlib.h>
  6061. +
  6062. +_ACEOF
  6063. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6064. + egrep "free" >/dev/null 2>&1; then
  6065. + :
  6066. +else
  6067. + ac_cv_header_stdc=no
  6068. +fi
  6069. +rm -f conftest*
  6070. +
  6071. +fi
  6072. +
  6073. +if test $ac_cv_header_stdc = yes; then
  6074. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6075. + if test "$cross_compiling" = yes; then
  6076. + :
  6077. +else
  6078. + cat >conftest.$ac_ext <<_ACEOF
  6079. +#line $LINENO "configure"
  6080. +#include "confdefs.h"
  6081. +#include <ctype.h>
  6082. +#if ((' ' & 0x0FF) == 0x020)
  6083. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6084. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6085. +#else
  6086. +# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  6087. + || ('j' <= (c) && (c) <= 'r') \
  6088. + || ('s' <= (c) && (c) <= 'z'))
  6089. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6090. +#endif
  6091. +
  6092. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6093. +int
  6094. +main ()
  6095. +{
  6096. + int i;
  6097. + for (i = 0; i < 256; i++)
  6098. + if (XOR (islower (i), ISLOWER (i))
  6099. + || toupper (i) != TOUPPER (i))
  6100. + exit(2);
  6101. + exit (0);
  6102. +}
  6103. +_ACEOF
  6104. +rm -f conftest$ac_exeext
  6105. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6106. + (eval $ac_link) 2>&5
  6107. + ac_status=$?
  6108. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6109. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6110. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6111. + (eval $ac_try) 2>&5
  6112. + ac_status=$?
  6113. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6114. + (exit $ac_status); }; }; then
  6115. + :
  6116. +else
  6117. + echo "$as_me: program exited with status $ac_status" >&5
  6118. +echo "$as_me: failed program was:" >&5
  6119. +cat conftest.$ac_ext >&5
  6120. +( exit $ac_status )
  6121. +ac_cv_header_stdc=no
  6122. +fi
  6123. +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6124. +fi
  6125. +fi
  6126. +fi
  6127. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6128. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  6129. +if test $ac_cv_header_stdc = yes; then
  6130. +
  6131. +cat >>confdefs.h <<\_ACEOF
  6132. +#define STDC_HEADERS 1
  6133. +_ACEOF
  6134. +
  6135. +fi
  6136. +
  6137. +
  6138. +
  6139. +
  6140. +
  6141. +
  6142. +for ac_func in readdir readdir_r stricmp strnstr ustat
  6143. do
  6144. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6145. -echo "configure:2423: checking for $ac_func" >&5
  6146. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6147. - echo $ac_n "(cached) $ac_c" 1>&6
  6148. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6149. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  6150. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6151. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  6152. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6153. else
  6154. - cat > conftest.$ac_ext <<EOF
  6155. -#line 2428 "configure"
  6156. + cat >conftest.$ac_ext <<_ACEOF
  6157. +#line $LINENO "configure"
  6158. #include "confdefs.h"
  6159. /* System header to define __stub macros and hopefully few prototypes,
  6160. - which can conflict with char $ac_func(); below. */
  6161. + which can conflict with char $ac_func (); below. */
  6162. #include <assert.h>
  6163. /* Override any gcc2 internal prototype to avoid an error. */
  6164. +#ifdef __cplusplus
  6165. +extern "C"
  6166. +#endif
  6167. /* We use char because int might match the return type of a gcc2
  6168. - builtin and then its argument prototype would still apply. */
  6169. -char $ac_func();
  6170. -
  6171. -int main() {
  6172. -
  6173. + builtin and then its argument prototype would still apply. */
  6174. +char $ac_func ();
  6175. +char (*f) ();
  6176. +
  6177. +#ifdef F77_DUMMY_MAIN
  6178. +# ifdef __cplusplus
  6179. + extern "C"
  6180. +# endif
  6181. + int F77_DUMMY_MAIN() { return 1; }
  6182. +#endif
  6183. +int
  6184. +main ()
  6185. +{
  6186. /* The GNU C library defines this for functions which it implements
  6187. to always fail with ENOSYS. Some functions are actually named
  6188. something starting with __ and the normal name is an alias. */
  6189. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6190. choke me
  6191. #else
  6192. -$ac_func();
  6193. +f = $ac_func;
  6194. #endif
  6195. -; return 0; }
  6196. -EOF
  6197. -if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6198. - rm -rf conftest*
  6199. - eval "ac_cv_func_$ac_func=yes"
  6200. -else
  6201. - echo "configure: failed program was:" >&5
  6202. - cat conftest.$ac_ext >&5
  6203. - rm -rf conftest*
  6204. - eval "ac_cv_func_$ac_func=no"
  6205. -fi
  6206. -rm -f conftest*
  6207. -fi
  6208. + ;
  6209. + return 0;
  6210. +}
  6211. +_ACEOF
  6212. +rm -f conftest.$ac_objext conftest$ac_exeext
  6213. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6214. + (eval $ac_link) 2>&5
  6215. + ac_status=$?
  6216. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6217. + (exit $ac_status); } &&
  6218. + { ac_try='test -s conftest$ac_exeext'
  6219. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6220. + (eval $ac_try) 2>&5
  6221. + ac_status=$?
  6222. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6223. + (exit $ac_status); }; }; then
  6224. + eval "$as_ac_var=yes"
  6225. +else
  6226. + echo "$as_me: failed program was:" >&5
  6227. +cat conftest.$ac_ext >&5
  6228. +eval "$as_ac_var=no"
  6229. +fi
  6230. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6231. +fi
  6232. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6233. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6234. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  6235. + cat >>confdefs.h <<_ACEOF
  6236. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6237. +_ACEOF
  6238. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6239. - echo "$ac_t""yes" 1>&6
  6240. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6241. - cat >> confdefs.h <<EOF
  6242. -#define $ac_tr_func 1
  6243. -EOF
  6244. -
  6245. -else
  6246. - echo "$ac_t""no" 1>&6
  6247. fi
  6248. done
  6249. -fi
  6250. +# Check whether --with-mmap or --without-mmap was given.
  6251. +if test "${with_mmap+set}" = set; then
  6252. + withval="$with_mmap"
  6253. + if test "x$withval" = "xyes"; then
  6254. -echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
  6255. -echo "configure:2479: checking for vsnprintf" >&5
  6256. -if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
  6257. - echo $ac_n "(cached) $ac_c" 1>&6
  6258. +for ac_func in mmap
  6259. +do
  6260. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6261. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  6262. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6263. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  6264. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6265. else
  6266. - cat > conftest.$ac_ext <<EOF
  6267. -#line 2484 "configure"
  6268. + cat >conftest.$ac_ext <<_ACEOF
  6269. +#line $LINENO "configure"
  6270. #include "confdefs.h"
  6271. -/* System header to define __stub macros and hopefully few prototypes,
  6272. - which can conflict with char vsnprintf(); below. */
  6273. +/* System header to define __stub macros and hopefully few prototypes
  6274. +else
  6275. + which can conflict with char $ac_func (); below. */
  6276. #include <assert.h>
  6277. /* Override any gcc2 internal prototype to avoid an error. */
  6278. +#ifdef __cplusplus
  6279. +extern "C"
  6280. +#endif
  6281. /* We use char because int might match the return type of a gcc2
  6282. - builtin and then its argument prototype would still apply. */
  6283. -char vsnprintf();
  6284. + builtin and then its argument prototype would still apply. */
  6285. +char $ac_func ();
  6286. +char (*f) ();
  6287. +
  6288. +#ifdef F77_DUMMY_MAIN
  6289. +# ifdef __cplusplus
  6290. + extern "C"
  6291. +# endif
  6292. + int F77_DUMMY_MAIN() { return 1; }
  6293. +#endif
  6294. +int
  6295. +main ()
  6296. +{
  6297. +/* The GNU C library defines this for functions which it implements
  6298. + to always fail with ENOSYS. Some functions are actually named
  6299. + something starting with __ and the normal name is an alias. */
  6300. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6301. +choke me
  6302. +#else
  6303. +f = $ac_func;
  6304. +#endif
  6305. -int main() {
  6306. + ;
  6307. + return 0;
  6308. +}
  6309. +_ACEOF
  6310. +rm -f conftest.$ac_objext conftest$ac_exeext
  6311. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6312. + (eval $ac_link) 2>&5
  6313. + ac_status=$?
  6314. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6315. + (exit $ac_status); } &&
  6316. + { ac_try='test -s conftest$ac_exeext'
  6317. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6318. + (eval $ac_try) 2>&5
  6319. + ac_status=$?
  6320. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6321. + (exit $ac_status); }; }; then
  6322. + eval "$as_ac_var=yes"
  6323. +else
  6324. + echo "$as_me: failed program was:" >&5
  6325. +cat conftest.$ac_ext >&5
  6326. +eval "$as_ac_var=no"
  6327. +fi
  6328. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6329. +fi
  6330. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6331. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6332. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  6333. + cat >>confdefs.h <<_ACEOF
  6334. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6335. +_ACEOF
  6336. +
  6337. +fi
  6338. +done
  6339. + fi
  6340. +
  6341. +fi;
  6342. +echo "$as_me:$LINENO: checking for vsnprintf" >&5
  6343. +echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
  6344. +if test "${ac_cv_func_vsnprintf+set}" = set; then
  6345. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6346. +else
  6347. + cat >conftest.$ac_ext <<_ACEOF
  6348. +#line $LINENO "configure"
  6349. +#include "confdefs.h"
  6350. +/* System header to define __stub macros and hopefully few prototypes,
  6351. + which can conflict with char vsnprintf (); below. */
  6352. +#include <assert.h>
  6353. +/* Override any gcc2 internal prototype to avoid an error. */
  6354. +#ifdef __cplusplus
  6355. +extern "C"
  6356. +#endif
  6357. +/* We use char because int might match the return type of a gcc2
  6358. + builtin and then its argument prototype would still apply. */
  6359. +char vsnprintf ();
  6360. +char (*f) ();
  6361. +
  6362. +#ifdef F77_DUMMY_MAIN
  6363. +# ifdef __cplusplus
  6364. + extern "C"
  6365. +# endif
  6366. + int F77_DUMMY_MAIN() { return 1; }
  6367. +#endif
  6368. +int
  6369. +main ()
  6370. +{
  6371. /* The GNU C library defines this for functions which it implements
  6372. to always fail with ENOSYS. Some functions are actually named
  6373. something starting with __ and the normal name is an alias. */
  6374. #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
  6375. choke me
  6376. #else
  6377. -vsnprintf();
  6378. +f = vsnprintf;
  6379. #endif
  6380. -; return 0; }
  6381. -EOF
  6382. -if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6383. - rm -rf conftest*
  6384. - eval "ac_cv_func_vsnprintf=yes"
  6385. -else
  6386. - echo "configure: failed program was:" >&5
  6387. - cat conftest.$ac_ext >&5
  6388. - rm -rf conftest*
  6389. - eval "ac_cv_func_vsnprintf=no"
  6390. -fi
  6391. -rm -f conftest*
  6392. -fi
  6393. -
  6394. -if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
  6395. - echo "$ac_t""yes" 1>&6
  6396. + ;
  6397. + return 0;
  6398. +}
  6399. +_ACEOF
  6400. +rm -f conftest.$ac_objext conftest$ac_exeext
  6401. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6402. + (eval $ac_link) 2>&5
  6403. + ac_status=$?
  6404. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6405. + (exit $ac_status); } &&
  6406. + { ac_try='test -s conftest$ac_exeext'
  6407. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6408. + (eval $ac_try) 2>&5
  6409. + ac_status=$?
  6410. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6411. + (exit $ac_status); }; }; then
  6412. + ac_cv_func_vsnprintf=yes
  6413. +else
  6414. + echo "$as_me: failed program was:" >&5
  6415. +cat conftest.$ac_ext >&5
  6416. +ac_cv_func_vsnprintf=no
  6417. +fi
  6418. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6419. +fi
  6420. +echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
  6421. +echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
  6422. +if test $ac_cv_func_vsnprintf = yes; then
  6423. :
  6424. else
  6425. - echo "$ac_t""no" 1>&6
  6426. -echo "Must have a system that supports vsnprintf"
  6427. + echo "Must have a system that supports vsnprintf"
  6428. exit 1
  6429. fi
  6430. -for ac_hdr in syslog.h ustat.h
  6431. +
  6432. +
  6433. +for ac_header in syslog.h ustat.h
  6434. do
  6435. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6436. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6437. -echo "configure:2533: checking for $ac_hdr" >&5
  6438. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6439. - echo $ac_n "(cached) $ac_c" 1>&6
  6440. -else
  6441. - cat > conftest.$ac_ext <<EOF
  6442. -#line 2538 "configure"
  6443. -#include "confdefs.h"
  6444. -#include <$ac_hdr>
  6445. -EOF
  6446. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6447. -{ (eval echo configure:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6448. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6449. -if test -z "$ac_err"; then
  6450. - rm -rf conftest*
  6451. - eval "ac_cv_header_$ac_safe=yes"
  6452. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6453. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6454. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6455. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6456. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6457. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6458. +fi
  6459. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6460. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6461. +else
  6462. + # Is the header compilable?
  6463. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6464. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6465. +cat >conftest.$ac_ext <<_ACEOF
  6466. +#line $LINENO "configure"
  6467. +#include "confdefs.h"
  6468. +$ac_includes_default
  6469. +#include <$ac_header>
  6470. +_ACEOF
  6471. +rm -f conftest.$ac_objext
  6472. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6473. + (eval $ac_compile) 2>&5
  6474. + ac_status=$?
  6475. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6476. + (exit $ac_status); } &&
  6477. + { ac_try='test -s conftest.$ac_objext'
  6478. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6479. + (eval $ac_try) 2>&5
  6480. + ac_status=$?
  6481. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6482. + (exit $ac_status); }; }; then
  6483. + ac_header_compiler=yes
  6484. +else
  6485. + echo "$as_me: failed program was:" >&5
  6486. +cat conftest.$ac_ext >&5
  6487. +ac_header_compiler=no
  6488. +fi
  6489. +rm -f conftest.$ac_objext conftest.$ac_ext
  6490. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6491. +echo "${ECHO_T}$ac_header_compiler" >&6
  6492. +
  6493. +# Is the header present?
  6494. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6495. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6496. +cat >conftest.$ac_ext <<_ACEOF
  6497. +#line $LINENO "configure"
  6498. +#include "confdefs.h"
  6499. +#include <$ac_header>
  6500. +_ACEOF
  6501. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6502. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6503. + ac_status=$?
  6504. + egrep -v '^ *\+' conftest.er1 >conftest.err
  6505. + rm -f conftest.er1
  6506. + cat conftest.err >&5
  6507. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6508. + (exit $ac_status); } >/dev/null; then
  6509. + if test -s conftest.err; then
  6510. + ac_cpp_err=$ac_c_preproc_warn_flag
  6511. + else
  6512. + ac_cpp_err=
  6513. + fi
  6514. else
  6515. - echo "$ac_err" >&5
  6516. - echo "configure: failed program was:" >&5
  6517. - cat conftest.$ac_ext >&5
  6518. - rm -rf conftest*
  6519. - eval "ac_cv_header_$ac_safe=no"
  6520. + ac_cpp_err=yes
  6521. fi
  6522. -rm -f conftest*
  6523. +if test -z "$ac_cpp_err"; then
  6524. + ac_header_preproc=yes
  6525. +else
  6526. + echo "$as_me: failed program was:" >&5
  6527. + cat conftest.$ac_ext >&5
  6528. + ac_header_preproc=no
  6529. fi
  6530. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6531. - echo "$ac_t""yes" 1>&6
  6532. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6533. - cat >> confdefs.h <<EOF
  6534. -#define $ac_tr_hdr 1
  6535. -EOF
  6536. -
  6537. +rm -f conftest.err conftest.$ac_ext
  6538. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6539. +echo "${ECHO_T}$ac_header_preproc" >&6
  6540. +
  6541. +# So? What about this header?
  6542. +case $ac_header_compiler:$ac_header_preproc in
  6543. + yes:no )
  6544. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6545. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6546. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6547. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6548. + no:yes )
  6549. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6550. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6551. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6552. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6553. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6554. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6555. +esac
  6556. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  6557. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6558. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6559. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6560. else
  6561. - echo "$ac_t""no" 1>&6
  6562. + eval "$as_ac_Header=$ac_header_preproc"
  6563. +fi
  6564. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6565. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6566. +
  6567. fi
  6568. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6569. + cat >>confdefs.h <<_ACEOF
  6570. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6571. +_ACEOF
  6572. +
  6573. +fi
  6574. +
  6575. done
  6576. AIDE_USE_LOCALE="#"
  6577. +
  6578. # Check whether --with-locale or --without-locale was given.
  6579. if test "${with_locale+set}" = set; then
  6580. withval="$with_locale"
  6581. - for ac_hdr in libintl.h
  6582. +
  6583. +for ac_header in libintl.h
  6584. do
  6585. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6586. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6587. -echo "configure:2580: checking for $ac_hdr" >&5
  6588. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6589. - echo $ac_n "(cached) $ac_c" 1>&6
  6590. -else
  6591. - cat > conftest.$ac_ext <<EOF
  6592. -#line 2585 "configure"
  6593. -#include "confdefs.h"
  6594. -#include <$ac_hdr>
  6595. -EOF
  6596. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6597. -{ (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6598. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6599. -if test -z "$ac_err"; then
  6600. - rm -rf conftest*
  6601. - eval "ac_cv_header_$ac_safe=yes"
  6602. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6603. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6604. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6605. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6606. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6607. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6608. +fi
  6609. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6610. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6611. +else
  6612. + # Is the header compilable?
  6613. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6614. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6615. +cat >conftest.$ac_ext <<_ACEOF
  6616. +#line $LINENO "configure"
  6617. +#include "confdefs.h"
  6618. +$ac_includes_default
  6619. +#include <$ac_header>
  6620. +_ACEOF
  6621. +rm -f conftest.$ac_objext
  6622. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6623. + (eval $ac_compile) 2>&5
  6624. + ac_status=$?
  6625. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6626. + (exit $ac_status); } &&
  6627. + { ac_try='test -s conftest.$ac_objext'
  6628. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6629. + (eval $ac_try) 2>&5
  6630. + ac_status=$?
  6631. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6632. + (exit $ac_status); }; }; then
  6633. + ac_header_compiler=yes
  6634. +else
  6635. + echo "$as_me: failed program was:" >&5
  6636. +cat conftest.$ac_ext >&5
  6637. +ac_header_compiler=no
  6638. +fi
  6639. +rm -f conftest.$ac_objext conftest.$ac_ext
  6640. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6641. +echo "${ECHO_T}$ac_header_compiler" >&6
  6642. +
  6643. +# Is the header present?
  6644. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6645. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6646. +cat >conftest.$ac_ext <<_ACEOF
  6647. +#line $LINENO "configure"
  6648. +#include "confdefs.h"
  6649. +#include <$ac_header>
  6650. +_ACEOF
  6651. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6652. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6653. + ac_status=$?
  6654. + egrep -v '^ *\+' conftest.er1 >conftest.err
  6655. + rm -f conftest.er1
  6656. + cat conftest.err >&5
  6657. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6658. + (exit $ac_status); } >/dev/null; then
  6659. + if test -s conftest.err; then
  6660. + ac_cpp_err=$ac_c_preproc_warn_flag
  6661. + else
  6662. + ac_cpp_err=
  6663. + fi
  6664. else
  6665. - echo "$ac_err" >&5
  6666. - echo "configure: failed program was:" >&5
  6667. - cat conftest.$ac_ext >&5
  6668. - rm -rf conftest*
  6669. - eval "ac_cv_header_$ac_safe=no"
  6670. + ac_cpp_err=yes
  6671. fi
  6672. -rm -f conftest*
  6673. +if test -z "$ac_cpp_err"; then
  6674. + ac_header_preproc=yes
  6675. +else
  6676. + echo "$as_me: failed program was:" >&5
  6677. + cat conftest.$ac_ext >&5
  6678. + ac_header_preproc=no
  6679. fi
  6680. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6681. - echo "$ac_t""yes" 1>&6
  6682. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6683. - cat >> confdefs.h <<EOF
  6684. -#define $ac_tr_hdr 1
  6685. -EOF
  6686. - cat >> confdefs.h <<\EOF
  6687. +rm -f conftest.err conftest.$ac_ext
  6688. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6689. +echo "${ECHO_T}$ac_header_preproc" >&6
  6690. +
  6691. +# So? What about this header?
  6692. +case $ac_header_compiler:$ac_header_preproc in
  6693. + yes:no )
  6694. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6695. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6696. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6697. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6698. + no:yes )
  6699. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6700. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6701. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6702. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6703. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6704. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  6705. +esac
  6706. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  6707. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6708. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6709. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6710. +else
  6711. + eval "$as_ac_Header=$ac_header_preproc"
  6712. +fi
  6713. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6714. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6715. +
  6716. +fi
  6717. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6718. + cat >>confdefs.h <<_ACEOF
  6719. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6720. +_ACEOF
  6721. + cat >>confdefs.h <<\_ACEOF
  6722. #define USE_LOCALE 1
  6723. -EOF
  6724. +_ACEOF
  6725. AIDE_USE_LOCALE=""
  6726. - cat >> confdefs.h <<EOF
  6727. + cat >>confdefs.h <<_ACEOF
  6728. #define LOCALEDIR "$prefix/lib/locale"
  6729. -EOF
  6730. +_ACEOF
  6731. -else
  6732. - echo "$ac_t""no" 1>&6
  6733. fi
  6734. +
  6735. done
  6736. -fi
  6737. +fi;
  6738. @@ -2629,595 +5708,842 @@
  6739. # Check whether --with-syslog_ident or --without-syslog_ident was given.
  6740. if test "${with_syslog_ident+set}" = set; then
  6741. withval="$with_syslog_ident"
  6742. - cat >> confdefs.h <<EOF
  6743. + cat >>confdefs.h <<_ACEOF
  6744. #define AIDE_IDENT "$withval"
  6745. -EOF
  6746. +_ACEOF
  6747. -
  6748. -fi
  6749. +
  6750. +fi;
  6751. # Check whether --with-syslog_facility or --without-syslog_facility was given.
  6752. if test "${with_syslog_facility+set}" = set; then
  6753. withval="$with_syslog_facility"
  6754. - cat >> confdefs.h <<EOF
  6755. + cat >>confdefs.h <<_ACEOF
  6756. #define AIDE_SYSLOG_FACILITY $withval
  6757. -EOF
  6758. +_ACEOF
  6759. +
  6760. +
  6761. +fi;
  6762. -
  6763. -fi
  6764. -
  6765. # Check whether --with-syslog_logopt or --without-syslog_logopt was given.
  6766. if test "${with_syslog_logopt+set}" = set; then
  6767. withval="$with_syslog_logopt"
  6768. - cat >> confdefs.h <<EOF
  6769. + cat >>confdefs.h <<_ACEOF
  6770. #define AIDE_LOGOPT $withval
  6771. -EOF
  6772. +_ACEOF
  6773. -
  6774. -fi
  6775. +
  6776. +fi;
  6777. # Check whether --with-syslog_priority or --without-syslog_priority was given.
  6778. if test "${with_syslog_priority+set}" = set; then
  6779. withval="$with_syslog_priority"
  6780. - cat >> confdefs.h <<EOF
  6781. + cat >>confdefs.h <<_ACEOF
  6782. #define SYSLOG_PRIORITY $withval
  6783. -EOF
  6784. +_ACEOF
  6785. -
  6786. -fi
  6787. +
  6788. +fi;
  6789. # Check whether --with-zlib or --without-zlib was given.
  6790. if test "${with_zlib+set}" = set; then
  6791. withval="$with_zlib"
  6792. - :
  6793. +
  6794. else
  6795. with_zlib=yes
  6796. -fi
  6797. +fi;
  6798. +echo "$as_me:$LINENO: checking for acl-support" >&5
  6799. +echo $ECHO_N "checking for acl-support... $ECHO_C" >&6
  6800. -echo $ac_n "checking for acl-support""... $ac_c" 1>&6
  6801. -echo "configure:2686: checking for acl-support" >&5
  6802. # Check whether --with-sun-acl or --without-sun-acl was given.
  6803. if test "${with_sun_acl+set}" = set; then
  6804. withval="$with_sun_acl"
  6805. - cat >> confdefs.h <<\EOF
  6806. + cat >>confdefs.h <<\_ACEOF
  6807. #define WITH_SUN_ACL 1
  6808. -EOF
  6809. +_ACEOF
  6810. - cat >> confdefs.h <<\EOF
  6811. + cat >>confdefs.h <<\_ACEOF
  6812. #define WITH_ACL 1
  6813. -EOF
  6814. +_ACEOF
  6815. ACLLIB="-lsec"
  6816. - echo "$ac_t""yes" 1>&6
  6817. -
  6818. + echo "$as_me:$LINENO: result: yes" >&5
  6819. +echo "${ECHO_T}yes" >&6
  6820. +
  6821. else
  6822. - echo "$ac_t""no" 1>&6
  6823. -
  6824. -fi
  6825. + echo "$as_me:$LINENO: result: no" >&5
  6826. +echo "${ECHO_T}no" >&6
  6827. +
  6828. +fi;
  6829. -
  6830. -echo $ac_n "checking for lstat64""... $ac_c" 1>&6
  6831. -echo "configure:2713: checking for lstat64" >&5
  6832. -if eval "test \"`echo '$''{'ac_cv_func_lstat64'+set}'`\" = set"; then
  6833. - echo $ac_n "(cached) $ac_c" 1>&6
  6834. +echo "$as_me:$LINENO: checking for lstat64" >&5
  6835. +echo $ECHO_N "checking for lstat64... $ECHO_C" >&6
  6836. +if test "${ac_cv_func_lstat64+set}" = set; then
  6837. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6838. else
  6839. - cat > conftest.$ac_ext <<EOF
  6840. -#line 2718 "configure"
  6841. + cat >conftest.$ac_ext <<_ACEOF
  6842. +#line $LINENO "configure"
  6843. #include "confdefs.h"
  6844. /* System header to define __stub macros and hopefully few prototypes,
  6845. - which can conflict with char lstat64(); below. */
  6846. + which can conflict with char lstat64 (); below. */
  6847. #include <assert.h>
  6848. /* Override any gcc2 internal prototype to avoid an error. */
  6849. +#ifdef __cplusplus
  6850. +extern "C"
  6851. +#endif
  6852. /* We use char because int might match the return type of a gcc2
  6853. - builtin and then its argument prototype would still apply. */
  6854. -char lstat64();
  6855. -
  6856. -int main() {
  6857. -
  6858. + builtin and then its argument prototype would still apply. */
  6859. +char lstat64 ();
  6860. +char (*f) ();
  6861. +
  6862. +#ifdef F77_DUMMY_MAIN
  6863. +# ifdef __cplusplus
  6864. + extern "C"
  6865. +# endif
  6866. + int F77_DUMMY_MAIN() { return 1; }
  6867. +#endif
  6868. +int
  6869. +main ()
  6870. +{
  6871. /* The GNU C library defines this for functions which it implements
  6872. to always fail with ENOSYS. Some functions are actually named
  6873. something starting with __ and the normal name is an alias. */
  6874. #if defined (__stub_lstat64) || defined (__stub___lstat64)
  6875. choke me
  6876. #else
  6877. -lstat64();
  6878. +f = lstat64;
  6879. #endif
  6880. -; return 0; }
  6881. -EOF
  6882. -if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6883. - rm -rf conftest*
  6884. - eval "ac_cv_func_lstat64=yes"
  6885. -else
  6886. - echo "configure: failed program was:" >&5
  6887. - cat conftest.$ac_ext >&5
  6888. - rm -rf conftest*
  6889. - eval "ac_cv_func_lstat64=no"
  6890. -fi
  6891. -rm -f conftest*
  6892. -fi
  6893. -
  6894. -if eval "test \"`echo '$ac_cv_func_'lstat64`\" = yes"; then
  6895. - echo "$ac_t""yes" 1>&6
  6896. + ;
  6897. + return 0;
  6898. +}
  6899. +_ACEOF
  6900. +rm -f conftest.$ac_objext conftest$ac_exeext
  6901. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6902. + (eval $ac_link) 2>&5
  6903. + ac_status=$?
  6904. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6905. + (exit $ac_status); } &&
  6906. + { ac_try='test -s conftest$ac_exeext'
  6907. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6908. + (eval $ac_try) 2>&5
  6909. + ac_status=$?
  6910. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6911. + (exit $ac_status); }; }; then
  6912. + ac_cv_func_lstat64=yes
  6913. +else
  6914. + echo "$as_me: failed program was:" >&5
  6915. +cat conftest.$ac_ext >&5
  6916. +ac_cv_func_lstat64=no
  6917. +fi
  6918. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6919. +fi
  6920. +echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
  6921. +echo "${ECHO_T}$ac_cv_func_lstat64" >&6
  6922. +if test $ac_cv_func_lstat64 = yes; then
  6923. # This looks wierd because Linux defines lstat64 and then screws it up
  6924. - cat > conftest.$ac_ext <<EOF
  6925. -#line 2757 "configure"
  6926. + cat >conftest.$ac_ext <<_ACEOF
  6927. +#line $LINENO "configure"
  6928. #include "confdefs.h"
  6929. #ifdef stat64
  6930. yes
  6931. #endif
  6932. -EOF
  6933. +_ACEOF
  6934. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6935. egrep "yes" >/dev/null 2>&1; then
  6936. - rm -rf conftest*
  6937. - cat > conftest.$ac_ext <<EOF
  6938. -#line 2767 "configure"
  6939. + cat >conftest.$ac_ext <<_ACEOF
  6940. +#line $LINENO "configure"
  6941. #include "confdefs.h"
  6942. #ifdef ino64_t
  6943. yes
  6944. #endif
  6945. -EOF
  6946. +_ACEOF
  6947. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6948. egrep "yes" >/dev/null 2>&1; then
  6949. - rm -rf conftest*
  6950. - cat >> confdefs.h <<EOF
  6951. + cat >>confdefs.h <<_ACEOF
  6952. #define AIDE_LSTAT_FUNC lstat64
  6953. -EOF
  6954. +_ACEOF
  6955. - cat >> confdefs.h <<EOF
  6956. + cat >>confdefs.h <<_ACEOF
  6957. #define AIDE_STAT_FUNC stat64
  6958. -EOF
  6959. +_ACEOF
  6960. - cat >> confdefs.h <<EOF
  6961. + cat >>confdefs.h <<_ACEOF
  6962. #define AIDE_STAT_TYPE stat64
  6963. -EOF
  6964. +_ACEOF
  6965. else
  6966. - rm -rf conftest*
  6967. - cat >> confdefs.h <<EOF
  6968. + cat >>confdefs.h <<_ACEOF
  6969. #define AIDE_INO_TYPE ino64_t
  6970. -EOF
  6971. +_ACEOF
  6972. - cat >> confdefs.h <<EOF
  6973. + cat >>confdefs.h <<_ACEOF
  6974. #define AIDE_OFF_TYPE off64_t
  6975. -EOF
  6976. +_ACEOF
  6977. - cat >> confdefs.h <<EOF
  6978. + cat >>confdefs.h <<_ACEOF
  6979. #define AIDE_BLKCNT_TYPE blkcnt64_t
  6980. -EOF
  6981. +_ACEOF
  6982. - cat >> confdefs.h <<EOF
  6983. + cat >>confdefs.h <<_ACEOF
  6984. #define AIDE_READDIR_FUNC readdir64
  6985. -EOF
  6986. +_ACEOF
  6987. - cat >> confdefs.h <<EOF
  6988. + cat >>confdefs.h <<_ACEOF
  6989. #define AIDE_READDIR_R_FUNC readdir64_r
  6990. -EOF
  6991. +_ACEOF
  6992. - cat >> confdefs.h <<EOF
  6993. + cat >>confdefs.h <<_ACEOF
  6994. #define AIDE_DIRENT_TYPE dirent64
  6995. -EOF
  6996. +_ACEOF
  6997. compoptionstring="${compoptionstring}WITH_READDIR64\\n"
  6998. fi
  6999. rm -f conftest*
  7000. +
  7001. fi
  7002. rm -f conftest*
  7003. compoptionstring="${compoptionstring}WITH_LSTAT64\\n"
  7004. -
  7005. +
  7006. else
  7007. - echo "$ac_t""no" 1>&6
  7008. -cat >> confdefs.h <<EOF
  7009. +
  7010. + cat >>confdefs.h <<_ACEOF
  7011. #define AIDE_LSTAT_FUNC lstat
  7012. -EOF
  7013. +_ACEOF
  7014. - cat >> confdefs.h <<EOF
  7015. + cat >>confdefs.h <<_ACEOF
  7016. #define AIDE_STAT_TYPE stat
  7017. -EOF
  7018. +_ACEOF
  7019. - cat >> confdefs.h <<EOF
  7020. + cat >>confdefs.h <<_ACEOF
  7021. #define AIDE_INO_TYPE ino_t
  7022. -EOF
  7023. +_ACEOF
  7024. - cat >> confdefs.h <<EOF
  7025. + cat >>confdefs.h <<_ACEOF
  7026. #define AIDE_OFF_TYPE off_t
  7027. -EOF
  7028. +_ACEOF
  7029. - cat >> confdefs.h <<EOF
  7030. + cat >conftest.$ac_ext <<_ACEOF
  7031. +#line $LINENO "configure"
  7032. +#include "confdefs.h"
  7033. +#ifdef blkcnt_t
  7034. +_ACEOF
  7035. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7036. + egrep "yes" >/dev/null 2>&1; then
  7037. + cat >>confdefs.h <<_ACEOF
  7038. #define AIDE_BLKCNT_TYPE blkcnt_t
  7039. -EOF
  7040. +_ACEOF
  7041. +
  7042. +else
  7043. + cat >>confdefs.h <<_ACEOF
  7044. +#define AIDE_BLKCNT_TYPE int64_t
  7045. +_ACEOF
  7046. +
  7047. +
  7048. +fi
  7049. +rm -f conftest*
  7050. compoptionstring="${compoptionstring}WITH_LSTAT\\n"
  7051. - cat >> confdefs.h <<EOF
  7052. + cat >>confdefs.h <<_ACEOF
  7053. #define AIDE_READDIR_FUNC readdir
  7054. -EOF
  7055. +_ACEOF
  7056. - cat >> confdefs.h <<EOF
  7057. + cat >>confdefs.h <<_ACEOF
  7058. #define AIDE_READDIR_R_FUNC readdir_r
  7059. -EOF
  7060. +_ACEOF
  7061. - cat >> confdefs.h <<EOF
  7062. + cat >>confdefs.h <<_ACEOF
  7063. #define AIDE_DIRENT_TYPE dirent
  7064. -EOF
  7065. +_ACEOF
  7066. compoptionstring="${compoptionstring}WITH_READDIR\\n"
  7067. -
  7068. +
  7069. fi
  7070. +
  7071. # Check whether --with-config_file or --without-config_file was given.
  7072. if test "${with_config_file+set}" = set; then
  7073. withval="$with_config_file"
  7074. - cat >> confdefs.h <<EOF
  7075. + cat >>confdefs.h <<_ACEOF
  7076. #define CONFIG_FILE "$withval"
  7077. -EOF
  7078. +_ACEOF
  7079. config_file=$withval
  7080. else
  7081. if test "x$sysconfdir" != x'${prefix}/etc'; then
  7082. config_file=`eval echo "$sysconfdir/aide.conf"`
  7083. - cat >> confdefs.h <<EOF
  7084. + cat >>confdefs.h <<_ACEOF
  7085. #define CONFIG_FILE "$config_file"
  7086. -EOF
  7087. +_ACEOF
  7088. elif test "x$prefix" != xNONE; then
  7089. - cat >> confdefs.h <<EOF
  7090. + cat >>confdefs.h <<_ACEOF
  7091. #define CONFIG_FILE "$prefix/etc/aide.conf"
  7092. -EOF
  7093. -
  7094. +_ACEOF
  7095. +
  7096. config_file="$prefix/etc/aide.conf"
  7097. else
  7098. - cat >> confdefs.h <<EOF
  7099. + cat >>confdefs.h <<_ACEOF
  7100. #define CONFIG_FILE "$ac_default_prefix/etc/aide.conf"
  7101. -EOF
  7102. -
  7103. +_ACEOF
  7104. +
  7105. config_file="$ac_default_prefix/etc/aide.conf"
  7106. fi
  7107. -fi
  7108. -
  7109. +fi;
  7110. if test "x$sysconfdir" != x'${prefix}/etc'; then
  7111. evalled_sysconfdir=`eval echo "$sysconfdir"`
  7112. - cat >> confdefs.h <<EOF
  7113. + cat >>confdefs.h <<_ACEOF
  7114. #define DEFAULT_DB "$evalled_sysconfdir/aide.db"
  7115. -EOF
  7116. +_ACEOF
  7117. - cat >> confdefs.h <<EOF
  7118. + cat >>confdefs.h <<_ACEOF
  7119. #define DEFAULT_DB_OUT "$evalled_sysconfdir/aide.db.new"
  7120. -EOF
  7121. +_ACEOF
  7122. elif test "x$prefix" != xNONE; then
  7123. - cat >> confdefs.h <<EOF
  7124. + cat >>confdefs.h <<_ACEOF
  7125. #define DEFAULT_DB "$prefix/etc/aide.db"
  7126. -EOF
  7127. +_ACEOF
  7128. - cat >> confdefs.h <<EOF
  7129. + cat >>confdefs.h <<_ACEOF
  7130. #define DEFAULT_DB_OUT "$prefix/etc/aide.db.new"
  7131. -EOF
  7132. +_ACEOF
  7133. else
  7134. - cat >> confdefs.h <<EOF
  7135. + cat >>confdefs.h <<_ACEOF
  7136. #define DEFAULT_DB "$ac_default_prefix/etc/aide.db"
  7137. -EOF
  7138. +_ACEOF
  7139. - cat >> confdefs.h <<EOF
  7140. + cat >>confdefs.h <<_ACEOF
  7141. #define DEFAULT_DB_OUT "$ac_default_prefix/etc/aide.db.new"
  7142. -EOF
  7143. +_ACEOF
  7144. fi
  7145. if test x$with_zlib = xyes; then
  7146. - for ac_hdr in zlib.h
  7147. +
  7148. +for ac_header in zlib.h
  7149. do
  7150. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7151. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7152. -echo "configure:2935: checking for $ac_hdr" >&5
  7153. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7154. - echo $ac_n "(cached) $ac_c" 1>&6
  7155. -else
  7156. - cat > conftest.$ac_ext <<EOF
  7157. -#line 2940 "configure"
  7158. -#include "confdefs.h"
  7159. -#include <$ac_hdr>
  7160. -EOF
  7161. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7162. -{ (eval echo configure:2945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7163. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7164. -if test -z "$ac_err"; then
  7165. - rm -rf conftest*
  7166. - eval "ac_cv_header_$ac_safe=yes"
  7167. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7168. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7169. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  7170. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7171. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7172. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7173. +fi
  7174. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7175. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7176. +else
  7177. + # Is the header compilable?
  7178. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7179. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7180. +cat >conftest.$ac_ext <<_ACEOF
  7181. +#line $LINENO "configure"
  7182. +#include "confdefs.h"
  7183. +$ac_includes_default
  7184. +#include <$ac_header>
  7185. +_ACEOF
  7186. +rm -f conftest.$ac_objext
  7187. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7188. + (eval $ac_compile) 2>&5
  7189. + ac_status=$?
  7190. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7191. + (exit $ac_status); } &&
  7192. + { ac_try='test -s conftest.$ac_objext'
  7193. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7194. + (eval $ac_try) 2>&5
  7195. + ac_status=$?
  7196. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7197. + (exit $ac_status); }; }; then
  7198. + ac_header_compiler=yes
  7199. +else
  7200. + echo "$as_me: failed program was:" >&5
  7201. +cat conftest.$ac_ext >&5
  7202. +ac_header_compiler=no
  7203. +fi
  7204. +rm -f conftest.$ac_objext conftest.$ac_ext
  7205. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7206. +echo "${ECHO_T}$ac_header_compiler" >&6
  7207. +
  7208. +# Is the header present?
  7209. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7210. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7211. +cat >conftest.$ac_ext <<_ACEOF
  7212. +#line $LINENO "configure"
  7213. +#include "confdefs.h"
  7214. +#include <$ac_header>
  7215. +_ACEOF
  7216. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7217. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7218. + ac_status=$?
  7219. + egrep -v '^ *\+' conftest.er1 >conftest.err
  7220. + rm -f conftest.er1
  7221. + cat conftest.err >&5
  7222. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7223. + (exit $ac_status); } >/dev/null; then
  7224. + if test -s conftest.err; then
  7225. + ac_cpp_err=$ac_c_preproc_warn_flag
  7226. + else
  7227. + ac_cpp_err=
  7228. + fi
  7229. else
  7230. - echo "$ac_err" >&5
  7231. - echo "configure: failed program was:" >&5
  7232. + ac_cpp_err=yes
  7233. +fi
  7234. +if test -z "$ac_cpp_err"; then
  7235. + ac_header_preproc=yes
  7236. +else
  7237. + echo "$as_me: failed program was:" >&5
  7238. cat conftest.$ac_ext >&5
  7239. - rm -rf conftest*
  7240. - eval "ac_cv_header_$ac_safe=no"
  7241. + ac_header_preproc=no
  7242. fi
  7243. -rm -f conftest*
  7244. +rm -f conftest.err conftest.$ac_ext
  7245. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7246. +echo "${ECHO_T}$ac_header_preproc" >&6
  7247. +
  7248. +# So? What about this header?
  7249. +case $ac_header_compiler:$ac_header_preproc in
  7250. + yes:no )
  7251. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7252. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7253. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7254. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7255. + no:yes )
  7256. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7257. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7258. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7259. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7260. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7261. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  7262. +esac
  7263. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  7264. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7265. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7266. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7267. +else
  7268. + eval "$as_ac_Header=$ac_header_preproc"
  7269. +fi
  7270. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7271. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7272. +
  7273. fi
  7274. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7275. - echo "$ac_t""yes" 1>&6
  7276. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7277. - cat >> confdefs.h <<EOF
  7278. -#define $ac_tr_hdr 1
  7279. -EOF
  7280. -
  7281. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7282. + cat >>confdefs.h <<_ACEOF
  7283. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7284. +_ACEOF
  7285. +
  7286. else
  7287. - echo "$ac_t""no" 1>&6
  7288. -echo "You don't have zlib properly installed."
  7289. + echo "You don't have zlib properly installed."
  7290. echo "Install it or try --without-zlib."
  7291. exit 1
  7292. fi
  7293. +
  7294. done
  7295. save_LDFLAGS=$LDFLAGS
  7296. LDFLAGS="$LDFLAGS $LD_STATIC_FLAG"
  7297. - echo $ac_n "checking for gzdopen in -lz""... $ac_c" 1>&6
  7298. -echo "configure:2977: checking for gzdopen in -lz" >&5
  7299. -ac_lib_var=`echo z'_'gzdopen | sed 'y%./+-%__p_%'`
  7300. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7301. - echo $ac_n "(cached) $ac_c" 1>&6
  7302. +
  7303. +echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
  7304. +echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
  7305. +if test "${ac_cv_lib_z_gzdopen+set}" = set; then
  7306. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7307. else
  7308. - ac_save_LIBS="$LIBS"
  7309. + ac_check_lib_save_LIBS=$LIBS
  7310. LIBS="-lz $LIBS"
  7311. -cat > conftest.$ac_ext <<EOF
  7312. -#line 2985 "configure"
  7313. +cat >conftest.$ac_ext <<_ACEOF
  7314. +#line $LINENO "configure"
  7315. #include "confdefs.h"
  7316. +
  7317. /* Override any gcc2 internal prototype to avoid an error. */
  7318. +#ifdef __cplusplus
  7319. +extern "C"
  7320. +#endif
  7321. /* We use char because int might match the return type of a gcc2
  7322. - builtin and then its argument prototype would still apply. */
  7323. -char gzdopen();
  7324. -
  7325. -int main() {
  7326. -gzdopen()
  7327. -; return 0; }
  7328. -EOF
  7329. -if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7330. - rm -rf conftest*
  7331. - eval "ac_cv_lib_$ac_lib_var=yes"
  7332. -else
  7333. - echo "configure: failed program was:" >&5
  7334. - cat conftest.$ac_ext >&5
  7335. - rm -rf conftest*
  7336. - eval "ac_cv_lib_$ac_lib_var=no"
  7337. -fi
  7338. -rm -f conftest*
  7339. -LIBS="$ac_save_LIBS"
  7340. -
  7341. -fi
  7342. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7343. - echo "$ac_t""yes" 1>&6
  7344. - ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  7345. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  7346. - cat >> confdefs.h <<EOF
  7347. -#define $ac_tr_lib 1
  7348. -EOF
  7349. + builtin and then its argument prototype would still apply. */
  7350. +char gzdopen ();
  7351. +#ifdef F77_DUMMY_MAIN
  7352. +# ifdef __cplusplus
  7353. + extern "C"
  7354. +# endif
  7355. + int F77_DUMMY_MAIN() { return 1; }
  7356. +#endif
  7357. +int
  7358. +main ()
  7359. +{
  7360. +gzdopen ();
  7361. + ;
  7362. + return 0;
  7363. +}
  7364. +_ACEOF
  7365. +rm -f conftest.$ac_objext conftest$ac_exeext
  7366. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7367. + (eval $ac_link) 2>&5
  7368. + ac_status=$?
  7369. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7370. + (exit $ac_status); } &&
  7371. + { ac_try='test -s conftest$ac_exeext'
  7372. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7373. + (eval $ac_try) 2>&5
  7374. + ac_status=$?
  7375. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. + (exit $ac_status); }; }; then
  7377. + ac_cv_lib_z_gzdopen=yes
  7378. +else
  7379. + echo "$as_me: failed program was:" >&5
  7380. +cat conftest.$ac_ext >&5
  7381. +ac_cv_lib_z_gzdopen=no
  7382. +fi
  7383. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7384. +LIBS=$ac_check_lib_save_LIBS
  7385. +fi
  7386. +echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
  7387. +echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
  7388. +if test $ac_cv_lib_z_gzdopen = yes; then
  7389. + cat >>confdefs.h <<_ACEOF
  7390. +#define HAVE_LIBZ 1
  7391. +_ACEOF
  7392. LIBS="-lz $LIBS"
  7393. else
  7394. - echo "$ac_t""no" 1>&6
  7395. -echo "You don't have zlib properly installed."
  7396. + echo "You don't have zlib properly installed."
  7397. echo "Install it or try --without-zlib."
  7398. exit 1
  7399. fi
  7400. LDFLAGS=$save_LDFLAGS
  7401. - cat >> confdefs.h <<\EOF
  7402. + cat >>confdefs.h <<\_ACEOF
  7403. #define WITH_ZLIB 1
  7404. -EOF
  7405. +_ACEOF
  7406. fi
  7407. +
  7408. # Check whether --with-gnu-regexp or --without-gnu-regexp was given.
  7409. if test "${with_gnu_regexp+set}" = set; then
  7410. withval="$with_gnu_regexp"
  7411. - cat >> confdefs.h <<\EOF
  7412. + cat >>confdefs.h <<\_ACEOF
  7413. #define REGEX 1
  7414. -EOF
  7415. +_ACEOF
  7416. -else
  7417. - for ac_func in regexec regcomp
  7418. +
  7419. +for ac_func in regexec regcomp
  7420. do
  7421. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7422. -echo "configure:3045: checking for $ac_func" >&5
  7423. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7424. - echo $ac_n "(cached) $ac_c" 1>&6
  7425. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7426. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  7427. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7428. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  7429. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7430. else
  7431. - cat > conftest.$ac_ext <<EOF
  7432. -#line 3050 "configure"
  7433. + cat >conftest.$ac_ext <<_ACEOF
  7434. +#line $LINENO "configure"
  7435. #include "confdefs.h"
  7436. -/* System header to define __stub macros and hopefully few prototypes,
  7437. - which can conflict with char $ac_func(); below. */
  7438. +/* System header to define __stub macros and hopefully few prototypes
  7439. +else
  7440. + which can conflict with char $ac_func (); below. */
  7441. #include <assert.h>
  7442. /* Override any gcc2 internal prototype to avoid an error. */
  7443. +#ifdef __cplusplus
  7444. +extern "C"
  7445. +#endif
  7446. /* We use char because int might match the return type of a gcc2
  7447. - builtin and then its argument prototype would still apply. */
  7448. -char $ac_func();
  7449. -
  7450. -int main() {
  7451. -
  7452. + builtin and then its argument prototype would still apply. */
  7453. +char $ac_func ();
  7454. +char (*f) ();
  7455. +
  7456. +#ifdef F77_DUMMY_MAIN
  7457. +# ifdef __cplusplus
  7458. + extern "C"
  7459. +# endif
  7460. + int F77_DUMMY_MAIN() { return 1; }
  7461. +#endif
  7462. +int
  7463. +main ()
  7464. +{
  7465. /* The GNU C library defines this for functions which it implements
  7466. to always fail with ENOSYS. Some functions are actually named
  7467. something starting with __ and the normal name is an alias. */
  7468. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7469. choke me
  7470. #else
  7471. -$ac_func();
  7472. +f = $ac_func;
  7473. #endif
  7474. -; return 0; }
  7475. -EOF
  7476. -if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7477. - rm -rf conftest*
  7478. - eval "ac_cv_func_$ac_func=yes"
  7479. -else
  7480. - echo "configure: failed program was:" >&5
  7481. - cat conftest.$ac_ext >&5
  7482. - rm -rf conftest*
  7483. - eval "ac_cv_func_$ac_func=no"
  7484. -fi
  7485. -rm -f conftest*
  7486. -fi
  7487. + ;
  7488. + return 0;
  7489. +}
  7490. +_ACEOF
  7491. +rm -f conftest.$ac_objext conftest$ac_exeext
  7492. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7493. + (eval $ac_link) 2>&5
  7494. + ac_status=$?
  7495. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496. + (exit $ac_status); } &&
  7497. + { ac_try='test -s conftest$ac_exeext'
  7498. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7499. + (eval $ac_try) 2>&5
  7500. + ac_status=$?
  7501. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7502. + (exit $ac_status); }; }; then
  7503. + eval "$as_ac_var=yes"
  7504. +else
  7505. + echo "$as_me: failed program was:" >&5
  7506. +cat conftest.$ac_ext >&5
  7507. +eval "$as_ac_var=no"
  7508. +fi
  7509. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7510. +fi
  7511. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7512. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7513. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  7514. + cat >>confdefs.h <<_ACEOF
  7515. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7516. +_ACEOF
  7517. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7518. - echo "$ac_t""yes" 1>&6
  7519. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7520. - cat >> confdefs.h <<EOF
  7521. -#define $ac_tr_func 1
  7522. -EOF
  7523. -
  7524. else
  7525. - echo "$ac_t""no" 1>&6
  7526. -cat >> confdefs.h <<\EOF
  7527. + cat >>confdefs.h <<\_ACEOF
  7528. #define REGEX 1
  7529. -EOF
  7530. +_ACEOF
  7531. fi
  7532. done
  7533. -fi
  7534. +fi;
  7535. # Check whether --with-gcrypt or --without-gcrypt was given.
  7536. if test "${with_gcrypt+set}" = set; then
  7537. withval="$with_gcrypt"
  7538. - cat >> confdefs.h <<\EOF
  7539. + cat >>confdefs.h <<\_ACEOF
  7540. #define WITH_GCRYPT 1
  7541. -EOF
  7542. +_ACEOF
  7543. - ac_safe=`echo "gcrypt.h" | sed 'y%./+-%__p_%'`
  7544. -echo $ac_n "checking for gcrypt.h""... $ac_c" 1>&6
  7545. -echo "configure:3114: checking for gcrypt.h" >&5
  7546. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7547. - echo $ac_n "(cached) $ac_c" 1>&6
  7548. -else
  7549. - cat > conftest.$ac_ext <<EOF
  7550. -#line 3119 "configure"
  7551. + if test "${ac_cv_header_gcrypt_h+set}" = set; then
  7552. + echo "$as_me:$LINENO: checking for gcrypt.h" >&5
  7553. +echo $ECHO_N "checking for gcrypt.h... $ECHO_C" >&6
  7554. +if test "${ac_cv_header_gcrypt_h+set}" = set; then
  7555. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7556. +fi
  7557. +echo "$as_me:$LINENO: result: $ac_cv_header_gcrypt_h" >&5
  7558. +echo "${ECHO_T}$ac_cv_header_gcrypt_h" >&6
  7559. +else
  7560. + # Is the header compilable?
  7561. +echo "$as_me:$LINENO: checking gcrypt.h usability" >&5
  7562. +echo $ECHO_N "checking gcrypt.h usability... $ECHO_C" >&6
  7563. +cat >conftest.$ac_ext <<_ACEOF
  7564. +#line $LINENO "configure"
  7565. +#include "confdefs.h"
  7566. +$ac_includes_default
  7567. +#include <gcrypt.h>
  7568. +_ACEOF
  7569. +rm -f conftest.$ac_objext
  7570. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7571. + (eval $ac_compile) 2>&5
  7572. + ac_status=$?
  7573. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7574. + (exit $ac_status); } &&
  7575. + { ac_try='test -s conftest.$ac_objext'
  7576. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7577. + (eval $ac_try) 2>&5
  7578. + ac_status=$?
  7579. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7580. + (exit $ac_status); }; }; then
  7581. + ac_header_compiler=yes
  7582. +else
  7583. + echo "$as_me: failed program was:" >&5
  7584. +cat conftest.$ac_ext >&5
  7585. +ac_header_compiler=no
  7586. +fi
  7587. +rm -f conftest.$ac_objext conftest.$ac_ext
  7588. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7589. +echo "${ECHO_T}$ac_header_compiler" >&6
  7590. +
  7591. +# Is the header present?
  7592. +echo "$as_me:$LINENO: checking gcrypt.h presence" >&5
  7593. +echo $ECHO_N "checking gcrypt.h presence... $ECHO_C" >&6
  7594. +cat >conftest.$ac_ext <<_ACEOF
  7595. +#line $LINENO "configure"
  7596. #include "confdefs.h"
  7597. #include <gcrypt.h>
  7598. -EOF
  7599. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7600. -{ (eval echo configure:3124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7601. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7602. -if test -z "$ac_err"; then
  7603. - rm -rf conftest*
  7604. - eval "ac_cv_header_$ac_safe=yes"
  7605. +_ACEOF
  7606. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7607. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7608. + ac_status=$?
  7609. + egrep -v '^ *\+' conftest.er1 >conftest.err
  7610. + rm -f conftest.er1
  7611. + cat conftest.err >&5
  7612. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7613. + (exit $ac_status); } >/dev/null; then
  7614. + if test -s conftest.err; then
  7615. + ac_cpp_err=$ac_c_preproc_warn_flag
  7616. + else
  7617. + ac_cpp_err=
  7618. + fi
  7619. +else
  7620. + ac_cpp_err=yes
  7621. +fi
  7622. +if test -z "$ac_cpp_err"; then
  7623. + ac_header_preproc=yes
  7624. else
  7625. - echo "$ac_err" >&5
  7626. - echo "configure: failed program was:" >&5
  7627. + echo "$as_me: failed program was:" >&5
  7628. cat conftest.$ac_ext >&5
  7629. - rm -rf conftest*
  7630. - eval "ac_cv_header_$ac_safe=no"
  7631. + ac_header_preproc=no
  7632. fi
  7633. -rm -f conftest*
  7634. +rm -f conftest.err conftest.$ac_ext
  7635. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7636. +echo "${ECHO_T}$ac_header_preproc" >&6
  7637. +
  7638. +# So? What about this header?
  7639. +case $ac_header_compiler:$ac_header_preproc in
  7640. + yes:no )
  7641. + { echo "$as_me:$LINENO: WARNING: gcrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
  7642. +echo "$as_me: WARNING: gcrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7643. + { echo "$as_me:$LINENO: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&5
  7644. +echo "$as_me: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&2;};;
  7645. + no:yes )
  7646. + { echo "$as_me:$LINENO: WARNING: gcrypt.h: present but cannot be compiled" >&5
  7647. +echo "$as_me: WARNING: gcrypt.h: present but cannot be compiled" >&2;}
  7648. + { echo "$as_me:$LINENO: WARNING: gcrypt.h: check for missing prerequisite headers?" >&5
  7649. +echo "$as_me: WARNING: gcrypt.h: check for missing prerequisite headers?" >&2;}
  7650. + { echo "$as_me:$LINENO: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&5
  7651. +echo "$as_me: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&2;};;
  7652. +esac
  7653. +echo "$as_me:$LINENO: checking for gcrypt.h" >&5
  7654. +echo $ECHO_N "checking for gcrypt.h... $ECHO_C" >&6
  7655. +if test "${ac_cv_header_gcrypt_h+set}" = set; then
  7656. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7657. +else
  7658. + ac_cv_header_gcrypt_h=$ac_header_preproc
  7659. fi
  7660. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7661. - echo "$ac_t""yes" 1>&6
  7662. +echo "$as_me:$LINENO: result: $ac_cv_header_gcrypt_h" >&5
  7663. +echo "${ECHO_T}$ac_cv_header_gcrypt_h" >&6
  7664. +
  7665. +fi
  7666. +if test $ac_cv_header_gcrypt_h = yes; then
  7667. :
  7668. else
  7669. - echo "$ac_t""no" 1>&6
  7670. -echo "You don't have libgcrypt properly installed."
  7671. + echo "You don't have libgcrypt properly installed."
  7672. echo "Install it if you need one."
  7673. exit 1
  7674. fi
  7675. +
  7676. CRYPTLIB="-lgcrypt"
  7677. compoptionstring="${compoptionstring}WITH_GCRYPT\\n"
  7678. -
  7679. else
  7680. with_gcrypt=no
  7681. -fi
  7682. +fi;
  7683. -
  7684. -echo $ac_n "checking for mhash_get_block_size in -lmhash""... $ac_c" 1>&6
  7685. -echo "configure:3157: checking for mhash_get_block_size in -lmhash" >&5
  7686. -ac_lib_var=`echo mhash'_'mhash_get_block_size | sed 'y%./+-%__p_%'`
  7687. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7688. - echo $ac_n "(cached) $ac_c" 1>&6
  7689. +echo "$as_me:$LINENO: checking for mhash_get_block_size in -lmhash" >&5
  7690. +echo $ECHO_N "checking for mhash_get_block_size in -lmhash... $ECHO_C" >&6
  7691. +if test "${ac_cv_lib_mhash_mhash_get_block_size+set}" = set; then
  7692. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7693. else
  7694. - ac_save_LIBS="$LIBS"
  7695. + ac_check_lib_save_LIBS=$LIBS
  7696. LIBS="-lmhash $LIBS"
  7697. -cat > conftest.$ac_ext <<EOF
  7698. -#line 3165 "configure"
  7699. +cat >conftest.$ac_ext <<_ACEOF
  7700. +#line $LINENO "configure"
  7701. #include "confdefs.h"
  7702. +
  7703. /* Override any gcc2 internal prototype to avoid an error. */
  7704. +#ifdef __cplusplus
  7705. +extern "C"
  7706. +#endif
  7707. /* We use char because int might match the return type of a gcc2
  7708. - builtin and then its argument prototype would still apply. */
  7709. -char mhash_get_block_size();
  7710. -
  7711. -int main() {
  7712. -mhash_get_block_size()
  7713. -; return 0; }
  7714. -EOF
  7715. -if { (eval echo configure:3176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7716. - rm -rf conftest*
  7717. - eval "ac_cv_lib_$ac_lib_var=yes"
  7718. -else
  7719. - echo "configure: failed program was:" >&5
  7720. - cat conftest.$ac_ext >&5
  7721. - rm -rf conftest*
  7722. - eval "ac_cv_lib_$ac_lib_var=no"
  7723. -fi
  7724. -rm -f conftest*
  7725. -LIBS="$ac_save_LIBS"
  7726. -
  7727. -fi
  7728. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7729. - echo "$ac_t""yes" 1>&6
  7730. + builtin and then its argument prototype would still apply. */
  7731. +char mhash_get_block_size ();
  7732. +#ifdef F77_DUMMY_MAIN
  7733. +# ifdef __cplusplus
  7734. + extern "C"
  7735. +# endif
  7736. + int F77_DUMMY_MAIN() { return 1; }
  7737. +#endif
  7738. +int
  7739. +main ()
  7740. +{
  7741. +mhash_get_block_size ();
  7742. + ;
  7743. + return 0;
  7744. +}
  7745. +_ACEOF
  7746. +rm -f conftest.$ac_objext conftest$ac_exeext
  7747. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7748. + (eval $ac_link) 2>&5
  7749. + ac_status=$?
  7750. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7751. + (exit $ac_status); } &&
  7752. + { ac_try='test -s conftest$ac_exeext'
  7753. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7754. + (eval $ac_try) 2>&5
  7755. + ac_status=$?
  7756. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7757. + (exit $ac_status); }; }; then
  7758. + ac_cv_lib_mhash_mhash_get_block_size=yes
  7759. +else
  7760. + echo "$as_me: failed program was:" >&5
  7761. +cat conftest.$ac_ext >&5
  7762. +ac_cv_lib_mhash_mhash_get_block_size=no
  7763. +fi
  7764. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7765. +LIBS=$ac_check_lib_save_LIBS
  7766. +fi
  7767. +echo "$as_me:$LINENO: result: $ac_cv_lib_mhash_mhash_get_block_size" >&5
  7768. +echo "${ECHO_T}$ac_cv_lib_mhash_mhash_get_block_size" >&6
  7769. +if test $ac_cv_lib_mhash_mhash_get_block_size = yes; then
  7770. CRYPTLIB="-lmhash"
  7771. compoptionstring="${compoptionstring}WITH_MHASH\\n"
  7772. - cat >> confdefs.h <<\EOF
  7773. + cat >>confdefs.h <<\_ACEOF
  7774. #define WITH_MHASH 1
  7775. -EOF
  7776. +_ACEOF
  7777. else
  7778. - echo "$ac_t""no" 1>&6
  7779. -echo "You must have libmhash properly installed."
  7780. + echo "You must have libmhash properly installed."
  7781. exit 1
  7782. fi
  7783. +
  7784. # Check whether --with-confighmactype or --without-confighmactype was given.
  7785. if test "${with_confighmactype+set}" = set; then
  7786. withval="$with_confighmactype"
  7787. if test "x$withval" = "xmd5" ;then
  7788. - cat >> confdefs.h <<\EOF
  7789. + cat >>confdefs.h <<\_ACEOF
  7790. #define CONFIGHMACTYPE MHASH_MD5
  7791. -EOF
  7792. +_ACEOF
  7793. - else
  7794. + else
  7795. if test "x$withval" = "xsha1" ;then
  7796. - cat >> confdefs.h <<\EOF
  7797. + cat >>confdefs.h <<\_ACEOF
  7798. #define CONFIGHMACTYPE MHASH_SHA1
  7799. -EOF
  7800. +_ACEOF
  7801. - else
  7802. + else
  7803. echo "Valid parameters for --with-confighmactype are md5
  7804. else
  7805. sha1"
  7806. @@ -3225,7 +6551,7 @@
  7807. fi
  7808. fi
  7809. -fi
  7810. +fi;
  7811. # Check whether --with-confighmackey or --without-confighmackey was given.
  7812. @@ -3246,47 +6572,47 @@
  7813. key08=`echo $withval|cut -c25-28`
  7814. key09=`echo $withval|cut -c29-31`
  7815. - cat >> confdefs.h <<EOF
  7816. + cat >>confdefs.h <<_ACEOF
  7817. #define CONFHMACKEY_00 "$key00"
  7818. -EOF
  7819. +_ACEOF
  7820. - cat >> confdefs.h <<EOF
  7821. + cat >>confdefs.h <<_ACEOF
  7822. #define CONFHMACKEY_01 "$key01"
  7823. -EOF
  7824. +_ACEOF
  7825. - cat >> confdefs.h <<EOF
  7826. + cat >>confdefs.h <<_ACEOF
  7827. #define CONFHMACKEY_02 "$key02"
  7828. -EOF
  7829. +_ACEOF
  7830. - cat >> confdefs.h <<EOF
  7831. + cat >>confdefs.h <<_ACEOF
  7832. #define CONFHMACKEY_03 "$key03"
  7833. -EOF
  7834. +_ACEOF
  7835. - cat >> confdefs.h <<EOF
  7836. + cat >>confdefs.h <<_ACEOF
  7837. #define CONFHMACKEY_04 "$key04"
  7838. -EOF
  7839. +_ACEOF
  7840. - cat >> confdefs.h <<EOF
  7841. + cat >>confdefs.h <<_ACEOF
  7842. #define CONFHMACKEY_05 "$key05"
  7843. -EOF
  7844. +_ACEOF
  7845. - cat >> confdefs.h <<EOF
  7846. + cat >>confdefs.h <<_ACEOF
  7847. #define CONFHMACKEY_06 "$key06"
  7848. -EOF
  7849. +_ACEOF
  7850. - cat >> confdefs.h <<EOF
  7851. + cat >>confdefs.h <<_ACEOF
  7852. #define CONFHMACKEY_07 "$key07"
  7853. -EOF
  7854. +_ACEOF
  7855. - cat >> confdefs.h <<EOF
  7856. + cat >>confdefs.h <<_ACEOF
  7857. #define CONFHMACKEY_08 "$key08"
  7858. -EOF
  7859. +_ACEOF
  7860. - cat >> confdefs.h <<EOF
  7861. + cat >>confdefs.h <<_ACEOF
  7862. #define CONFHMACKEY_09 "$key09"
  7863. -EOF
  7864. +_ACEOF
  7865. -fi
  7866. +fi;
  7867. @@ -3294,17 +6620,17 @@
  7868. if test "${with_dbhmactype+set}" = set; then
  7869. withval="$with_dbhmactype"
  7870. if test "x$withval" = "xmd5" ;then
  7871. - cat >> confdefs.h <<\EOF
  7872. + cat >>confdefs.h <<\_ACEOF
  7873. #define DBHMACTYPE MHASH_MD5
  7874. -EOF
  7875. +_ACEOF
  7876. - else
  7877. + else
  7878. if test "x$withval" = "xsha1" ;then
  7879. - cat >> confdefs.h <<\EOF
  7880. + cat >>confdefs.h <<\_ACEOF
  7881. #define DBHMACTYPE MHASH_SHA1
  7882. -EOF
  7883. +_ACEOF
  7884. - else
  7885. + else
  7886. echo "Valid parameters for --with-dbhmactype are md5
  7887. else
  7888. sha1"
  7889. @@ -3312,7 +6638,7 @@
  7890. fi
  7891. fi
  7892. -fi
  7893. +fi;
  7894. # Check whether --with-dbhmackey or --without-dbhmackey was given.
  7895. @@ -3333,690 +6659,1540 @@
  7896. key08=`echo $withval|cut -c25-28`
  7897. key09=`echo $withval|cut -c29-31`
  7898. - cat >> confdefs.h <<EOF
  7899. + cat >>confdefs.h <<_ACEOF
  7900. #define DBHMACKEY_00 "$key00"
  7901. -EOF
  7902. +_ACEOF
  7903. - cat >> confdefs.h <<EOF
  7904. + cat >>confdefs.h <<_ACEOF
  7905. #define DBHMACKEY_01 "$key01"
  7906. -EOF
  7907. +_ACEOF
  7908. - cat >> confdefs.h <<EOF
  7909. + cat >>confdefs.h <<_ACEOF
  7910. #define DBHMACKEY_02 "$key02"
  7911. -EOF
  7912. +_ACEOF
  7913. - cat >> confdefs.h <<EOF
  7914. + cat >>confdefs.h <<_ACEOF
  7915. #define DBHMACKEY_03 "$key03"
  7916. -EOF
  7917. +_ACEOF
  7918. - cat >> confdefs.h <<EOF
  7919. + cat >>confdefs.h <<_ACEOF
  7920. #define DBHMACKEY_04 "$key04"
  7921. -EOF
  7922. +_ACEOF
  7923. - cat >> confdefs.h <<EOF
  7924. + cat >>confdefs.h <<_ACEOF
  7925. #define DBHMACKEY_05 "$key05"
  7926. -EOF
  7927. +_ACEOF
  7928. - cat >> confdefs.h <<EOF
  7929. + cat >>confdefs.h <<_ACEOF
  7930. #define DBHMACKEY_06 "$key06"
  7931. -EOF
  7932. +_ACEOF
  7933. - cat >> confdefs.h <<EOF
  7934. + cat >>confdefs.h <<_ACEOF
  7935. #define DBHMACKEY_07 "$key07"
  7936. -EOF
  7937. +_ACEOF
  7938. - cat >> confdefs.h <<EOF
  7939. + cat >>confdefs.h <<_ACEOF
  7940. #define DBHMACKEY_08 "$key08"
  7941. -EOF
  7942. +_ACEOF
  7943. - cat >> confdefs.h <<EOF
  7944. + cat >>confdefs.h <<_ACEOF
  7945. #define DBHMACKEY_09 "$key09"
  7946. -EOF
  7947. -
  7948. -fi
  7949. +_ACEOF
  7950. +fi;
  7951. # Check whether --enable-forced_configmd or --disable-forced_configmd was given.
  7952. if test "${enable_forced_configmd+set}" = set; then
  7953. enableval="$enable_forced_configmd"
  7954. - cat >> confdefs.h <<\EOF
  7955. + cat >>confdefs.h <<\_ACEOF
  7956. #define FORCECONFIGMD 1
  7957. -EOF
  7958. +_ACEOF
  7959. else
  7960. - cat >> confdefs.h <<\EOF
  7961. + cat >>confdefs.h <<\_ACEOF
  7962. #define FORCECONFIGMD 0
  7963. -EOF
  7964. -
  7965. -fi
  7966. +_ACEOF
  7967. +fi;
  7968. # Check whether --enable-forced_dbmd or --disable-forced_dbmd was given.
  7969. if test "${enable_forced_dbmd+set}" = set; then
  7970. enableval="$enable_forced_dbmd"
  7971. - cat >> confdefs.h <<\EOF
  7972. + cat >>confdefs.h <<\_ACEOF
  7973. #define FORCEDBMD 1
  7974. -EOF
  7975. +_ACEOF
  7976. else
  7977. - cat >> confdefs.h <<\EOF
  7978. + cat >>confdefs.h <<\_ACEOF
  7979. #define FORCEDBMD 0
  7980. -EOF
  7981. +_ACEOF
  7982. -fi
  7983. +fi;
  7984. # Check whether --with-initial_errors_to or --without-initial_errors_to was given.
  7985. if test "${with_initial_errors_to+set}" = set; then
  7986. withval="$with_initial_errors_to"
  7987. - cat >> confdefs.h <<EOF
  7988. + cat >>confdefs.h <<_ACEOF
  7989. #define INITIALERRORSTO "$withval"
  7990. -EOF
  7991. +_ACEOF
  7992. else
  7993. - cat >> confdefs.h <<EOF
  7994. + cat >>confdefs.h <<_ACEOF
  7995. #define INITIALERRORSTO "stderr"
  7996. -EOF
  7997. -
  7998. -fi
  7999. +_ACEOF
  8000. +fi;
  8001. -echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
  8002. -echo "configure:3427: checking for crypt in -lc" >&5
  8003. -ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
  8004. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8005. - echo $ac_n "(cached) $ac_c" 1>&6
  8006. +echo "$as_me:$LINENO: checking for crypt in -lc" >&5
  8007. +echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
  8008. +if test "${ac_cv_lib_c_crypt+set}" = set; then
  8009. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8010. else
  8011. - ac_save_LIBS="$LIBS"
  8012. + ac_check_lib_save_LIBS=$LIBS
  8013. LIBS="-lc $LIBS"
  8014. -cat > conftest.$ac_ext <<EOF
  8015. -#line 3435 "configure"
  8016. +cat >conftest.$ac_ext <<_ACEOF
  8017. +#line $LINENO "configure"
  8018. #include "confdefs.h"
  8019. -/* Override any gcc2 internal prototype to avoid an error. */
  8020. -/* We use char because int might match the return type of a gcc2
  8021. - builtin and then its argument prototype would still apply. */
  8022. -char crypt();
  8023. -
  8024. -int main() {
  8025. -crypt()
  8026. -; return 0; }
  8027. -EOF
  8028. -if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8029. - rm -rf conftest*
  8030. - eval "ac_cv_lib_$ac_lib_var=yes"
  8031. -else
  8032. - echo "configure: failed program was:" >&5
  8033. - cat conftest.$ac_ext >&5
  8034. - rm -rf conftest*
  8035. - eval "ac_cv_lib_$ac_lib_var=no"
  8036. -fi
  8037. -rm -f conftest*
  8038. -LIBS="$ac_save_LIBS"
  8039. -fi
  8040. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8041. - echo "$ac_t""yes" 1>&6
  8042. +/* Override any gcc2 internal prototype to avoid an error. */
  8043. +#ifdef __cplusplus
  8044. +extern "C"
  8045. +#endif
  8046. +/* We use char because int might match the return type of a gcc2
  8047. + builtin and then its argument prototype would still apply. */
  8048. +char crypt ();
  8049. +#ifdef F77_DUMMY_MAIN
  8050. +# ifdef __cplusplus
  8051. + extern "C"
  8052. +# endif
  8053. + int F77_DUMMY_MAIN() { return 1; }
  8054. +#endif
  8055. +int
  8056. +main ()
  8057. +{
  8058. +crypt ();
  8059. + ;
  8060. + return 0;
  8061. +}
  8062. +_ACEOF
  8063. +rm -f conftest.$ac_objext conftest$ac_exeext
  8064. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8065. + (eval $ac_link) 2>&5
  8066. + ac_status=$?
  8067. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8068. + (exit $ac_status); } &&
  8069. + { ac_try='test -s conftest$ac_exeext'
  8070. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8071. + (eval $ac_try) 2>&5
  8072. + ac_status=$?
  8073. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8074. + (exit $ac_status); }; }; then
  8075. + ac_cv_lib_c_crypt=yes
  8076. +else
  8077. + echo "$as_me: failed program was:" >&5
  8078. +cat conftest.$ac_ext >&5
  8079. +ac_cv_lib_c_crypt=no
  8080. +fi
  8081. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8082. +LIBS=$ac_check_lib_save_LIBS
  8083. +fi
  8084. +echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
  8085. +echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
  8086. +if test $ac_cv_lib_c_crypt = yes; then
  8087. true
  8088. else
  8089. - echo "$ac_t""no" 1>&6
  8090. -echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
  8091. -echo "configure:3465: checking for crypt in -lcrypt" >&5
  8092. -ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
  8093. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8094. - echo $ac_n "(cached) $ac_c" 1>&6
  8095. +
  8096. +echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
  8097. +echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
  8098. +if test "${ac_cv_lib_crypt_crypt+set}" = set; then
  8099. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8100. else
  8101. - ac_save_LIBS="$LIBS"
  8102. + ac_check_lib_save_LIBS=$LIBS
  8103. LIBS="-lcrypt $LIBS"
  8104. -cat > conftest.$ac_ext <<EOF
  8105. -#line 3473 "configure"
  8106. +cat >conftest.$ac_ext <<_ACEOF
  8107. +#line $LINENO "configure"
  8108. #include "confdefs.h"
  8109. +
  8110. /* Override any gcc2 internal prototype to avoid an error. */
  8111. +#ifdef __cplusplus
  8112. +extern "C"
  8113. +#endif
  8114. /* We use char because int might match the return type of a gcc2
  8115. - builtin and then its argument prototype would still apply. */
  8116. -char crypt();
  8117. -
  8118. -int main() {
  8119. -crypt()
  8120. -; return 0; }
  8121. -EOF
  8122. -if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8123. - rm -rf conftest*
  8124. - eval "ac_cv_lib_$ac_lib_var=yes"
  8125. -else
  8126. - echo "configure: failed program was:" >&5
  8127. - cat conftest.$ac_ext >&5
  8128. - rm -rf conftest*
  8129. - eval "ac_cv_lib_$ac_lib_var=no"
  8130. -fi
  8131. -rm -f conftest*
  8132. -LIBS="$ac_save_LIBS"
  8133. -
  8134. -fi
  8135. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8136. - echo "$ac_t""yes" 1>&6
  8137. - ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/^a-zA-Z0-9_/_/g' \
  8138. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  8139. - cat >> confdefs.h <<EOF
  8140. -#define $ac_tr_lib 1
  8141. -EOF
  8142. + builtin and then its argument prototype would still apply. */
  8143. +char crypt ();
  8144. +#ifdef F77_DUMMY_MAIN
  8145. +# ifdef __cplusplus
  8146. + extern "C"
  8147. +# endif
  8148. + int F77_DUMMY_MAIN() { return 1; }
  8149. +#endif
  8150. +int
  8151. +main ()
  8152. +{
  8153. +crypt ();
  8154. + ;
  8155. + return 0;
  8156. +}
  8157. +_ACEOF
  8158. +rm -f conftest.$ac_objext conftest$ac_exeext
  8159. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8160. + (eval $ac_link) 2>&5
  8161. + ac_status=$?
  8162. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8163. + (exit $ac_status); } &&
  8164. + { ac_try='test -s conftest$ac_exeext'
  8165. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8166. + (eval $ac_try) 2>&5
  8167. + ac_status=$?
  8168. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8169. + (exit $ac_status); }; }; then
  8170. + ac_cv_lib_crypt_crypt=yes
  8171. +else
  8172. + echo "$as_me: failed program was:" >&5
  8173. +cat conftest.$ac_ext >&5
  8174. +ac_cv_lib_crypt_crypt=no
  8175. +fi
  8176. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8177. +LIBS=$ac_check_lib_save_LIBS
  8178. +fi
  8179. +echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
  8180. +echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
  8181. +if test $ac_cv_lib_crypt_crypt = yes; then
  8182. + cat >>confdefs.h <<_ACEOF
  8183. +#define HAVE_LIBCRYPT 1
  8184. +_ACEOF
  8185. LIBS="-lcrypt $LIBS"
  8186. -else
  8187. - echo "$ac_t""no" 1>&6
  8188. fi
  8189. fi
  8190. -echo $ac_n "checking for PostgresSQL support""... $ac_c" 1>&6
  8191. -echo "configure:3515: checking for PostgresSQL support" >&5
  8192. +echo "$as_me:$LINENO: checking for PostgresSQL support" >&5
  8193. +echo $ECHO_N "checking for PostgresSQL support... $ECHO_C" >&6
  8194. +
  8195. # Check whether --with-psql or --without-psql was given.
  8196. if test "${with_psql+set}" = set; then
  8197. withval="$with_psql"
  8198. - cat >> confdefs.h <<\EOF
  8199. + cat >>confdefs.h <<\_ACEOF
  8200. #define WITH_PSQL 1
  8201. -EOF
  8202. +_ACEOF
  8203. - echo $ac_n "checking for PQclear in -lpq""... $ac_c" 1>&6
  8204. -echo "configure:3524: checking for PQclear in -lpq" >&5
  8205. -ac_lib_var=`echo pq'_'PQclear | sed 'y%./+-%__p_%'`
  8206. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8207. - echo $ac_n "(cached) $ac_c" 1>&6
  8208. +
  8209. +echo "$as_me:$LINENO: checking for PQclear in -lpq" >&5
  8210. +echo $ECHO_N "checking for PQclear in -lpq... $ECHO_C" >&6
  8211. +if test "${ac_cv_lib_pq_PQclear+set}" = set; then
  8212. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8213. else
  8214. - ac_save_LIBS="$LIBS"
  8215. + ac_check_lib_save_LIBS=$LIBS
  8216. LIBS="-lpq $LIBS"
  8217. -cat > conftest.$ac_ext <<EOF
  8218. -#line 3532 "configure"
  8219. +cat >conftest.$ac_ext <<_ACEOF
  8220. +#line $LINENO "configure"
  8221. #include "confdefs.h"
  8222. +
  8223. /* Override any gcc2 internal prototype to avoid an error. */
  8224. +#ifdef __cplusplus
  8225. +extern "C"
  8226. +#endif
  8227. /* We use char because int might match the return type of a gcc2
  8228. - builtin and then its argument prototype would still apply. */
  8229. -char PQclear();
  8230. -
  8231. -int main() {
  8232. -PQclear()
  8233. -; return 0; }
  8234. -EOF
  8235. -if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8236. - rm -rf conftest*
  8237. - eval "ac_cv_lib_$ac_lib_var=yes"
  8238. -else
  8239. - echo "configure: failed program was:" >&5
  8240. - cat conftest.$ac_ext >&5
  8241. - rm -rf conftest*
  8242. - eval "ac_cv_lib_$ac_lib_var=no"
  8243. -fi
  8244. -rm -f conftest*
  8245. -LIBS="$ac_save_LIBS"
  8246. -
  8247. -fi
  8248. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8249. - echo "$ac_t""yes" 1>&6
  8250. - ac_tr_lib=HAVE_LIB`echo pq | sed -e 's/^a-zA-Z0-9_/_/g' \
  8251. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  8252. - cat >> confdefs.h <<EOF
  8253. -#define $ac_tr_lib 1
  8254. -EOF
  8255. + builtin and then its argument prototype would still apply. */
  8256. +char PQclear ();
  8257. +#ifdef F77_DUMMY_MAIN
  8258. +# ifdef __cplusplus
  8259. + extern "C"
  8260. +# endif
  8261. + int F77_DUMMY_MAIN() { return 1; }
  8262. +#endif
  8263. +int
  8264. +main ()
  8265. +{
  8266. +PQclear ();
  8267. + ;
  8268. + return 0;
  8269. +}
  8270. +_ACEOF
  8271. +rm -f conftest.$ac_objext conftest$ac_exeext
  8272. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8273. + (eval $ac_link) 2>&5
  8274. + ac_status=$?
  8275. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8276. + (exit $ac_status); } &&
  8277. + { ac_try='test -s conftest$ac_exeext'
  8278. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8279. + (eval $ac_try) 2>&5
  8280. + ac_status=$?
  8281. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8282. + (exit $ac_status); }; }; then
  8283. + ac_cv_lib_pq_PQclear=yes
  8284. +else
  8285. + echo "$as_me: failed program was:" >&5
  8286. +cat conftest.$ac_ext >&5
  8287. +ac_cv_lib_pq_PQclear=no
  8288. +fi
  8289. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8290. +LIBS=$ac_check_lib_save_LIBS
  8291. +fi
  8292. +echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQclear" >&5
  8293. +echo "${ECHO_T}$ac_cv_lib_pq_PQclear" >&6
  8294. +if test $ac_cv_lib_pq_PQclear = yes; then
  8295. + cat >>confdefs.h <<_ACEOF
  8296. +#define HAVE_LIBPQ 1
  8297. +_ACEOF
  8298. LIBS="-lpq $LIBS"
  8299. else
  8300. - echo "$ac_t""no" 1>&6
  8301. -echo "You must postgres sql library installed."
  8302. + echo "You must postgres sql library installed."
  8303. exit 1
  8304. fi
  8305. PSQLLIB="-lpq"
  8306. compoptionstring="${compoptionstring}WITH_PSQL\\n"
  8307. - echo "$ac_t""yes" 1>&6
  8308. -
  8309. + echo "$as_me:$LINENO: result: yes" >&5
  8310. +echo "${ECHO_T}yes" >&6
  8311. +
  8312. else
  8313. PSQLLIB=""
  8314. with_psql=no
  8315. - echo "$ac_t""no" 1>&6
  8316. + echo "$as_me:$LINENO: result: no" >&5
  8317. +echo "${ECHO_T}no" >&6
  8318. +
  8319. +fi;
  8320. -fi
  8321. + ac_sources="$wk_link_files_src"
  8322. +ac_dests="$wk_link_files_dst "
  8323. +while test -n "$ac_sources"; do
  8324. + set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  8325. + set $ac_sources; ac_source=$1; shift; ac_sources=$*
  8326. + ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  8327. +done
  8328. +ac_config_links="$ac_config_links $ac_config_links_1"
  8329. -
  8330. -
  8331. compoptionstring="${compoptionstring}CONFIG_FILE = \\\"${config_file}\\\"\\n"
  8332. -cat >> confdefs.h <<EOF
  8333. +cat >>confdefs.h <<_ACEOF
  8334. #define AIDECOMPILEOPTIONS "${compoptionstring}"
  8335. -EOF
  8336. +_ACEOF
  8337. -trap '' 1 2 15
  8338. -cat > confcache <<\EOF
  8339. +ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile doc/Makefile doc/aide.conf aide.spec"
  8340. +cat >confcache <<\_ACEOF
  8341. # This file is a shell script that caches the results of configure
  8342. # tests run on this system so they can be shared between configure
  8343. -# scripts and configure runs. It is not useful on other systems.
  8344. -# If it contains results you don't want to keep, you may remove or edit it.
  8345. +# scripts and configure runs, see configure's option --config-cache.
  8346. +# It is not useful on other systems. If it contains results you don't
  8347. +# want to keep, you may remove or edit it.
  8348. #
  8349. -# By default, configure uses ./config.cache as the cache file,
  8350. -# creating it if it does not exist already. You can give configure
  8351. -# the --cache-file=FILE option to use a different cache file; that is
  8352. -# what configure does when it calls configure scripts in
  8353. -# subdirectories, so they share the cache.
  8354. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  8355. -# config.status only pays attention to the cache file if you give it the
  8356. -# --recheck option to rerun configure.
  8357. +# config.status only pays attention to the cache file if you give it
  8358. +# the --recheck option to rerun configure.
  8359. #
  8360. -EOF
  8361. +# `ac_cv_env_foo' variables (set or unset) will be overriden when
  8362. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  8363. +# following values.
  8364. +
  8365. +_ACEOF
  8366. +
  8367. # The following way of writing the cache mishandles newlines in values,
  8368. # but we know of no workaround that is simple, portable, and efficient.
  8369. # So, don't put newlines in cache variables' values.
  8370. # Ultrix sh set writes to stderr and can't be redirected directly,
  8371. # and sets the high bit in the cache file unless we assign to the vars.
  8372. -(set) 2>&1 |
  8373. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8374. - *ac_space=\ *)
  8375. - # `set' does not quote correctly, so add quotes (double-quote substitution
  8376. - # turns \\\\ into \\, and sed turns \\ into \).
  8377. - sed -n \
  8378. - -e "s/'/'\\\\''/g" \
  8379. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  8380. - ;;
  8381. - *)
  8382. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  8383. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  8384. - ;;
  8385. - esac >> confcache
  8386. -if cmp -s $cache_file confcache; then
  8387. - :
  8388. -else
  8389. +{
  8390. + (set) 2>&1 |
  8391. + case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8392. + *ac_space=\ *)
  8393. + # `set' does not quote correctly, so add quotes (double-quote
  8394. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  8395. + sed -n \
  8396. + "s/'/'\\\\''/g;
  8397. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8398. + ;;
  8399. + *)
  8400. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  8401. + sed -n \
  8402. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8403. + ;;
  8404. + esac;
  8405. +} |
  8406. + sed '
  8407. + t clear
  8408. + : clear
  8409. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8410. + t end
  8411. + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8412. + : end' >>confcache
  8413. +if cmp -s $cache_file confcache; then :; else
  8414. if test -w $cache_file; then
  8415. - echo "updating cache $cache_file"
  8416. - cat confcache > $cache_file
  8417. + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  8418. + cat confcache >$cache_file
  8419. else
  8420. echo "not updating unwritable cache $cache_file"
  8421. fi
  8422. fi
  8423. rm -f confcache
  8424. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  8425. -
  8426. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8427. # Let make expand exec_prefix.
  8428. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8429. -# Any assignment to VPATH causes Sun make to only execute
  8430. -# the first set of double-colon rules, so remove it if not needed.
  8431. -# If there is a colon in the path, we need to keep it.
  8432. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  8433. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8434. +# trailing colons and then remove the whole line if VPATH becomes empty
  8435. +# (actually we leave an empty line to preserve line numbers).
  8436. if test "x$srcdir" = x.; then
  8437. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  8438. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  8439. +s/:*\$(srcdir):*/:/;
  8440. +s/:*\${srcdir}:*/:/;
  8441. +s/:*@srcdir@:*/:/;
  8442. +s/^\([^=]*=[ ]*\):*/\1/;
  8443. +s/:*$//;
  8444. +s/^[^=]*=[ ]*$//;
  8445. +}'
  8446. fi
  8447. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  8448. -
  8449. DEFS=-DHAVE_CONFIG_H
  8450. -# Without the "./", some shells look in PATH for config.status.
  8451. -: ${CONFIG_STATUS=./config.status}
  8452. -echo creating $CONFIG_STATUS
  8453. -rm -f $CONFIG_STATUS
  8454. -cat > $CONFIG_STATUS <<EOF
  8455. -#! /bin/sh
  8456. -# Generated automatically by configure.
  8457. +: ${CONFIG_STATUS=./config.status}
  8458. +ac_clean_files_save=$ac_clean_files
  8459. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8460. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8461. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8462. +cat >$CONFIG_STATUS <<_ACEOF
  8463. +#! $SHELL
  8464. +# Generated by $as_me.
  8465. # Run this file to recreate the current configuration.
  8466. -# This directory was configured as follows,
  8467. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8468. -#
  8469. -# $0 $ac_configure_args
  8470. -#
  8471. # Compiler output produced by configure, useful for debugging
  8472. -# configure, is in ./config.log if it exists.
  8473. +# configure, is in config.log if it exists.
  8474. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  8475. -for ac_option
  8476. +debug=false
  8477. +SHELL=\${CONFIG_SHELL-$SHELL}
  8478. +_ACEOF
  8479. +
  8480. +cat >>$CONFIG_STATUS <<\_ACEOF
  8481. +
  8482. +## --------------------- ##
  8483. +## M4sh Initialization. ##
  8484. +## --------------------- ##
  8485. +
  8486. +# Be Bourne compatible
  8487. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8488. + emulate sh
  8489. + NULLCMD=:
  8490. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8491. + set -o posix
  8492. +fi
  8493. +
  8494. +# NLS nuisances.
  8495. +# Support unset when possible.
  8496. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  8497. + as_unset=unset
  8498. +else
  8499. + as_unset=false
  8500. +fi
  8501. +
  8502. +(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
  8503. + { $as_unset LANG || test "${LANG+set}" != set; } ||
  8504. + { LANG=C; export LANG; }
  8505. +(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
  8506. + { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
  8507. + { LC_ALL=C; export LC_ALL; }
  8508. +(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
  8509. + { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
  8510. + { LC_TIME=C; export LC_TIME; }
  8511. +(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
  8512. + { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
  8513. + { LC_CTYPE=C; export LC_CTYPE; }
  8514. +(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
  8515. + { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
  8516. + { LANGUAGE=C; export LANGUAGE; }
  8517. +(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
  8518. + { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
  8519. + { LC_COLLATE=C; export LC_COLLATE; }
  8520. +(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
  8521. + { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
  8522. + { LC_NUMERIC=C; export LC_NUMERIC; }
  8523. +(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
  8524. + { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
  8525. + { LC_MESSAGES=C; export LC_MESSAGES; }
  8526. +
  8527. +
  8528. +# Name of the executable.
  8529. +as_me=`(basename "$0") 2>/dev/null ||
  8530. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8531. + X"$0" : 'X\(//\)$' \| \
  8532. + X"$0" : 'X\(/\)$' \| \
  8533. + . : '\(.\)' 2>/dev/null ||
  8534. +echo X/"$0" |
  8535. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8536. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  8537. + /^X\/\(\/\).*/{ s//\1/; q; }
  8538. + s/.*/./; q'`
  8539. +
  8540. +# PATH needs CR, and LINENO needs CR and PATH.
  8541. +# Avoid depending upon Character Ranges.
  8542. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8543. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8544. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8545. +as_cr_digits='0123456789'
  8546. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  8547. +
  8548. +# The user is always right.
  8549. +if test "${PATH_SEPARATOR+set}" != set; then
  8550. + echo "#! /bin/sh" >conftest.sh
  8551. + echo "exit 0" >>conftest.sh
  8552. + chmod +x conftest.sh
  8553. + if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
  8554. + PATH_SEPARATOR=';'
  8555. + else
  8556. + PATH_SEPARATOR=:
  8557. + fi
  8558. + rm -f conftest.sh
  8559. +fi
  8560. +
  8561. +
  8562. + as_lineno_1=$LINENO
  8563. + as_lineno_2=$LINENO
  8564. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8565. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8566. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  8567. + # Find who we are. Look in the path if we contain no path at all
  8568. + # relative or not.
  8569. + case $0 in
  8570. + *[\\/]* ) as_myself=$0 ;;
  8571. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8572. +for as_dir in $PATH
  8573. do
  8574. - case "\$ac_option" in
  8575. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8576. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  8577. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  8578. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  8579. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  8580. - exit 0 ;;
  8581. - -help | --help | --hel | --he | --h)
  8582. - echo "\$ac_cs_usage"; exit 0 ;;
  8583. - *) echo "\$ac_cs_usage"; exit 1 ;;
  8584. + IFS=$as_save_IFS
  8585. + test -z "$as_dir" && as_dir=.
  8586. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8587. +done
  8588. +
  8589. + ;;
  8590. esac
  8591. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  8592. + # in which case we are not to be found in the path.
  8593. + if test "x$as_myself" = x; then
  8594. + as_myself=$0
  8595. + fi
  8596. + if test ! -f "$as_myself"; then
  8597. + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8598. +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8599. + { (exit 1); exit 1; }; }
  8600. + fi
  8601. + case $CONFIG_SHELL in
  8602. + '')
  8603. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8604. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8605. +do
  8606. + IFS=$as_save_IFS
  8607. + test -z "$as_dir" && as_dir=.
  8608. + for as_base in sh bash ksh sh5; do
  8609. + case $as_dir in
  8610. + /*)
  8611. + if ("$as_dir/$as_base" -c '
  8612. + as_lineno_1=$LINENO
  8613. + as_lineno_2=$LINENO
  8614. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8615. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8616. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8617. + CONFIG_SHELL=$as_dir/$as_base
  8618. + export CONFIG_SHELL
  8619. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8620. + fi;;
  8621. + esac
  8622. + done
  8623. done
  8624. +;;
  8625. + esac
  8626. -ac_given_srcdir=$srcdir
  8627. -ac_given_INSTALL="$INSTALL"
  8628. -
  8629. -trap 'rm -fr `echo "Makefile src/Makefile po/Makefile doc/Makefile doc/aide.conf
  8630. -aide.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  8631. -EOF
  8632. -cat >> $CONFIG_STATUS <<EOF
  8633. -
  8634. -# Protect against being on the right side of a sed subst in config.status.
  8635. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  8636. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  8637. -$ac_vpsub
  8638. -$extrasub
  8639. -s%@SHELL@%$SHELL%g
  8640. -s%@CFLAGS@%$CFLAGS%g
  8641. -s%@CPPFLAGS@%$CPPFLAGS%g
  8642. -s%@CXXFLAGS@%$CXXFLAGS%g
  8643. -s%@FFLAGS@%$FFLAGS%g
  8644. -s%@DEFS@%$DEFS%g
  8645. -s%@LDFLAGS@%$LDFLAGS%g
  8646. -s%@LIBS@%$LIBS%g
  8647. -s%@exec_prefix@%$exec_prefix%g
  8648. -s%@prefix@%$prefix%g
  8649. -s%@program_transform_name@%$program_transform_name%g
  8650. -s%@bindir@%$bindir%g
  8651. -s%@sbindir@%$sbindir%g
  8652. -s%@libexecdir@%$libexecdir%g
  8653. -s%@datadir@%$datadir%g
  8654. -s%@sysconfdir@%$sysconfdir%g
  8655. -s%@sharedstatedir@%$sharedstatedir%g
  8656. -s%@localstatedir@%$localstatedir%g
  8657. -s%@libdir@%$libdir%g
  8658. -s%@includedir@%$includedir%g
  8659. -s%@oldincludedir@%$oldincludedir%g
  8660. -s%@infodir@%$infodir%g
  8661. -s%@mandir@%$mandir%g
  8662. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  8663. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  8664. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  8665. -s%@PACKAGE@%$PACKAGE%g
  8666. -s%@VERSION@%$VERSION%g
  8667. -s%@ACLOCAL@%$ACLOCAL%g
  8668. -s%@AUTOCONF@%$AUTOCONF%g
  8669. -s%@AUTOMAKE@%$AUTOMAKE%g
  8670. -s%@AUTOHEADER@%$AUTOHEADER%g
  8671. -s%@MAKEINFO@%$MAKEINFO%g
  8672. -s%@SET_MAKE@%$SET_MAKE%g
  8673. -s%@CC@%$CC%g
  8674. -s%@RANLIB@%$RANLIB%g
  8675. -s%@YACC@%$YACC%g
  8676. -s%@LEX@%$LEX%g
  8677. -s%@LEXLIB@%$LEXLIB%g
  8678. -s%@CPP@%$CPP%g
  8679. -s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  8680. -s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
  8681. -s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
  8682. -s%@MAINT@%$MAINT%g
  8683. -s%@LD_STATIC_FLAG@%$LD_STATIC_FLAG%g
  8684. -s%@AIDE_USE_LOCALE@%$AIDE_USE_LOCALE%g
  8685. -s%@ACLLIB@%$ACLLIB%g
  8686. -s%@CRYPTLIB@%$CRYPTLIB%g
  8687. -s%@PSQLLIB@%$PSQLLIB%g
  8688. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8689. + # uniformly replaced by the line number. The first 'sed' inserts a
  8690. + # line-number line before each line; the second 'sed' does the real
  8691. + # work. The second script uses 'N' to pair each line-number line
  8692. + # with the numbered line, and appends trailing '-' during
  8693. + # substitution so that $LINENO is not a special case at line end.
  8694. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8695. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8696. + sed '=' <$as_myself |
  8697. + sed '
  8698. + N
  8699. + s,$,-,
  8700. + : loop
  8701. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8702. + t loop
  8703. + s,-$,,
  8704. + s,^['$as_cr_digits']*\n,,
  8705. + ' >$as_me.lineno &&
  8706. + chmod +x $as_me.lineno ||
  8707. + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8708. +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8709. + { (exit 1); exit 1; }; }
  8710. +
  8711. + # Don't try to exec as it changes $[0], causing all sort of problems
  8712. + # (the dirname of $[0] is not the place where we might find the
  8713. + # original and so on. Autoconf is especially sensible to this).
  8714. + . ./$as_me.lineno
  8715. + # Exit status is that of the last command.
  8716. + exit
  8717. +}
  8718. -CEOF
  8719. -EOF
  8720. -cat >> $CONFIG_STATUS <<\EOF
  8721. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8722. + *c*,-n*) ECHO_N= ECHO_C='
  8723. +' ECHO_T=' ' ;;
  8724. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8725. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8726. +esac
  8727. +
  8728. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8729. + as_expr=expr
  8730. +else
  8731. + as_expr=false
  8732. +fi
  8733. -# Split the substitutions into bite-sized pieces for seds with
  8734. -# small command number limits, like on Digital OSF/1 and HP-UX.
  8735. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  8736. -ac_file=1 # Number of current file.
  8737. -ac_beg=1 # First line for current file.
  8738. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  8739. -ac_more_lines=:
  8740. -ac_sed_cmds=""
  8741. -while $ac_more_lines; do
  8742. - if test $ac_beg -gt 1; then
  8743. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  8744. - else
  8745. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  8746. - fi
  8747. - if test ! -s conftest.s$ac_file; then
  8748. - ac_more_lines=false
  8749. - rm -f conftest.s$ac_file
  8750. +rm -f conf$$ conf$$.exe conf$$.file
  8751. +echo >conf$$.file
  8752. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  8753. + # We could just check for DJGPP; but this test a) works b) is more generic
  8754. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8755. + if test -f conf$$.exe; then
  8756. + # Don't use ln at all; we don't have any links
  8757. + as_ln_s='cp -p'
  8758. else
  8759. - if test -z "$ac_sed_cmds"; then
  8760. - ac_sed_cmds="sed -f conftest.s$ac_file"
  8761. - else
  8762. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  8763. - fi
  8764. - ac_file=`expr $ac_file + 1`
  8765. - ac_beg=$ac_end
  8766. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  8767. + as_ln_s='ln -s'
  8768. fi
  8769. +elif ln conf$$.file conf$$ 2>/dev/null; then
  8770. + as_ln_s=ln
  8771. +else
  8772. + as_ln_s='cp -p'
  8773. +fi
  8774. +rm -f conf$$ conf$$.exe conf$$.file
  8775. +
  8776. +as_executable_p="test -f"
  8777. +
  8778. +# Sed expression to map a string onto a valid CPP name.
  8779. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  8780. +
  8781. +# Sed expression to map a string onto a valid variable name.
  8782. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  8783. +
  8784. +
  8785. +# IFS
  8786. +# We need space, tab and new line, in precisely that order.
  8787. +as_nl='
  8788. +'
  8789. +IFS=" $as_nl"
  8790. +
  8791. +# CDPATH.
  8792. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
  8793. +
  8794. +exec 6>&1
  8795. +
  8796. +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  8797. +# report actual input values of CONFIG_FILES etc. instead of their
  8798. +# values after options handling. Logging --version etc. is OK.
  8799. +exec 5>>config.log
  8800. +{
  8801. + echo
  8802. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8803. +## Running $as_me. ##
  8804. +_ASBOX
  8805. +} >&5
  8806. +cat >&5 <<_CSEOF
  8807. +
  8808. +This file was extended by $as_me, which was
  8809. +generated by GNU Autoconf 2.53. Invocation command line was
  8810. +
  8811. + CONFIG_FILES = $CONFIG_FILES
  8812. + CONFIG_HEADERS = $CONFIG_HEADERS
  8813. + CONFIG_LINKS = $CONFIG_LINKS
  8814. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  8815. + $ $0 $@
  8816. +
  8817. +_CSEOF
  8818. +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8819. +echo >&5
  8820. +_ACEOF
  8821. +
  8822. +# Files that config.status was made for.
  8823. +if test -n "$ac_config_files"; then
  8824. + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8825. +fi
  8826. +
  8827. +if test -n "$ac_config_headers"; then
  8828. + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8829. +fi
  8830. +
  8831. +if test -n "$ac_config_links"; then
  8832. + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8833. +fi
  8834. +
  8835. +if test -n "$ac_config_commands"; then
  8836. + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8837. +fi
  8838. +
  8839. +cat >>$CONFIG_STATUS <<\_ACEOF
  8840. +
  8841. +ac_cs_usage="\
  8842. +\`$as_me' instantiates files from templates according to the
  8843. +current configuration.
  8844. +
  8845. +Usage: $0 [OPTIONS] [FILE]...
  8846. +
  8847. + -h, --help print this help, then exit
  8848. + -V, --version print version number, then exit
  8849. + -d, --debug don't remove temporary files
  8850. + --recheck update $as_me by reconfiguring in the same conditions
  8851. + --file=FILE[:TEMPLATE]
  8852. + instantiate the configuration file FILE
  8853. + --header=FILE[:TEMPLATE]
  8854. + instantiate the configuration header FILE
  8855. +
  8856. +Configuration files:
  8857. +$config_files
  8858. +
  8859. +Configuration headers:
  8860. +$config_headers
  8861. +
  8862. +Configuration links:
  8863. +$config_links
  8864. +
  8865. +Configuration commands:
  8866. +$config_commands
  8867. +
  8868. +Report bugs to <bug-autoconf@gnu.org>."
  8869. +_ACEOF
  8870. +
  8871. +cat >>$CONFIG_STATUS <<_ACEOF
  8872. +ac_cs_version="\\
  8873. +config.status
  8874. +configured by $0, generated by GNU Autoconf 2.53,
  8875. + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8876. +
  8877. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  8878. +Free Software Foundation, Inc.
  8879. +This config.status script is free software; the Free Software Foundation
  8880. +gives unlimited permission to copy, distribute and modify it."
  8881. +srcdir=$srcdir
  8882. +INSTALL="$INSTALL"
  8883. +_ACEOF
  8884. +
  8885. +cat >>$CONFIG_STATUS <<\_ACEOF
  8886. +# If no file are specified by the user, then we need to provide default
  8887. +# value. By we need to know if files were specified by the user.
  8888. +ac_need_defaults=:
  8889. +while test $# != 0
  8890. +do
  8891. + case $1 in
  8892. + --*=*)
  8893. + ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8894. + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8895. + shift
  8896. + set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
  8897. + shift
  8898. + ;;
  8899. + -*);;
  8900. + *) # This is not an option, so the user has probably given explicit
  8901. + # arguments.
  8902. + ac_need_defaults=false;;
  8903. + esac
  8904. +
  8905. + case $1 in
  8906. + # Handling of the options.
  8907. +_ACEOF
  8908. +cat >>$CONFIG_STATUS <<_ACEOF
  8909. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8910. + echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
  8911. + exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
  8912. +_ACEOF
  8913. +cat >>$CONFIG_STATUS <<\_ACEOF
  8914. + --version | --vers* | -V )
  8915. + echo "$ac_cs_version"; exit 0 ;;
  8916. + --he | --h)
  8917. + # Conflict between --help and --header
  8918. + { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8919. +Try \`$0 --help' for more information." >&5
  8920. +echo "$as_me: error: ambiguous option: $1
  8921. +Try \`$0 --help' for more information." >&2;}
  8922. + { (exit 1); exit 1; }; };;
  8923. + --help | --hel | -h )
  8924. + echo "$ac_cs_usage"; exit 0 ;;
  8925. + --debug | --d* | -d )
  8926. + debug=: ;;
  8927. + --file | --fil | --fi | --f )
  8928. + shift
  8929. + CONFIG_FILES="$CONFIG_FILES $1"
  8930. + ac_need_defaults=false;;
  8931. + --header | --heade | --head | --hea )
  8932. + shift
  8933. + CONFIG_HEADERS="$CONFIG_HEADERS $1"
  8934. + ac_need_defaults=false;;
  8935. +
  8936. + # This is an error.
  8937. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8938. +Try \`$0 --help' for more information." >&5
  8939. +echo "$as_me: error: unrecognized option: $1
  8940. +Try \`$0 --help' for more information." >&2;}
  8941. + { (exit 1); exit 1; }; } ;;
  8942. +
  8943. + *) ac_config_targets="$ac_config_targets $1" ;;
  8944. +
  8945. + esac
  8946. + shift
  8947. +done
  8948. +
  8949. +_ACEOF
  8950. +
  8951. +cat >>$CONFIG_STATUS <<_ACEOF
  8952. +#
  8953. +# INIT-COMMANDS section.
  8954. +#
  8955. +
  8956. +
  8957. +
  8958. +_ACEOF
  8959. +
  8960. +
  8961. +
  8962. +cat >>$CONFIG_STATUS <<\_ACEOF
  8963. +for ac_config_target in $ac_config_targets
  8964. +do
  8965. + case "$ac_config_target" in
  8966. + # Handling of arguments.
  8967. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8968. + "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8969. + "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
  8970. + "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  8971. + "doc/aide.conf" ) CONFIG_FILES="$CONFIG_FILES doc/aide.conf" ;;
  8972. + "aide.spec" ) CONFIG_FILES="$CONFIG_FILES aide.spec" ;;
  8973. + "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  8974. + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  8975. + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  8976. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8977. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8978. + { (exit 1); exit 1; }; };;
  8979. + esac
  8980. done
  8981. -if test -z "$ac_sed_cmds"; then
  8982. - ac_sed_cmds=cat
  8983. +
  8984. +# If the user did not use the arguments to specify the items to instantiate,
  8985. +# then the envvar interface is used. Set only those that are not.
  8986. +# We use the long form for the default assignment because of an extremely
  8987. +# bizarre bug on SunOS 4.1.3.
  8988. +if $ac_need_defaults; then
  8989. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8990. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8991. + test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  8992. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8993. fi
  8994. -EOF
  8995. -cat >> $CONFIG_STATUS <<EOF
  8996. +# Create a temporary directory, and hook for its removal unless debugging.
  8997. +$debug ||
  8998. +{
  8999. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  9000. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  9001. +}
  9002. +
  9003. +# Create a (secure) tmp directory for tmp files.
  9004. +: ${TMPDIR=/tmp}
  9005. +{
  9006. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  9007. + test -n "$tmp" && test -d "$tmp"
  9008. +} ||
  9009. +{
  9010. + tmp=$TMPDIR/cs$$-$RANDOM
  9011. + (umask 077 && mkdir $tmp)
  9012. +} ||
  9013. +{
  9014. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  9015. + { (exit 1); exit 1; }
  9016. +}
  9017. +
  9018. +_ACEOF
  9019. +
  9020. +cat >>$CONFIG_STATUS <<_ACEOF
  9021. +
  9022. +#
  9023. +# CONFIG_FILES section.
  9024. +#
  9025. +
  9026. +# No need to generate the scripts if there are no CONFIG_FILES.
  9027. +# This happens for instance when ./config.status config.h
  9028. +if test -n "\$CONFIG_FILES"; then
  9029. + # Protect against being on the right side of a sed subst in config.status.
  9030. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  9031. + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  9032. +s,@SHELL@,$SHELL,;t t
  9033. +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  9034. +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  9035. +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  9036. +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  9037. +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  9038. +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  9039. +s,@exec_prefix@,$exec_prefix,;t t
  9040. +s,@prefix@,$prefix,;t t
  9041. +s,@program_transform_name@,$program_transform_name,;t t
  9042. +s,@bindir@,$bindir,;t t
  9043. +s,@sbindir@,$sbindir,;t t
  9044. +s,@libexecdir@,$libexecdir,;t t
  9045. +s,@datadir@,$datadir,;t t
  9046. +s,@sysconfdir@,$sysconfdir,;t t
  9047. +s,@sharedstatedir@,$sharedstatedir,;t t
  9048. +s,@localstatedir@,$localstatedir,;t t
  9049. +s,@libdir@,$libdir,;t t
  9050. +s,@includedir@,$includedir,;t t
  9051. +s,@oldincludedir@,$oldincludedir,;t t
  9052. +s,@infodir@,$infodir,;t t
  9053. +s,@mandir@,$mandir,;t t
  9054. +s,@build_alias@,$build_alias,;t t
  9055. +s,@host_alias@,$host_alias,;t t
  9056. +s,@target_alias@,$target_alias,;t t
  9057. +s,@DEFS@,$DEFS,;t t
  9058. +s,@ECHO_C@,$ECHO_C,;t t
  9059. +s,@ECHO_N@,$ECHO_N,;t t
  9060. +s,@ECHO_T@,$ECHO_T,;t t
  9061. +s,@LIBS@,$LIBS,;t t
  9062. +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  9063. +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  9064. +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  9065. +s,@PACKAGE@,$PACKAGE,;t t
  9066. +s,@VERSION@,$VERSION,;t t
  9067. +s,@ACLOCAL@,$ACLOCAL,;t t
  9068. +s,@AUTOCONF@,$AUTOCONF,;t t
  9069. +s,@AUTOMAKE@,$AUTOMAKE,;t t
  9070. +s,@AUTOHEADER@,$AUTOHEADER,;t t
  9071. +s,@MAKEINFO@,$MAKEINFO,;t t
  9072. +s,@SET_MAKE@,$SET_MAKE,;t t
  9073. +s,@CC@,$CC,;t t
  9074. +s,@CFLAGS@,$CFLAGS,;t t
  9075. +s,@LDFLAGS@,$LDFLAGS,;t t
  9076. +s,@CPPFLAGS@,$CPPFLAGS,;t t
  9077. +s,@ac_ct_CC@,$ac_ct_CC,;t t
  9078. +s,@EXEEXT@,$EXEEXT,;t t
  9079. +s,@OBJEXT@,$OBJEXT,;t t
  9080. +s,@RANLIB@,$RANLIB,;t t
  9081. +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  9082. +s,@YACC@,$YACC,;t t
  9083. +s,@LEX@,$LEX,;t t
  9084. +s,@LEXLIB@,$LEXLIB,;t t
  9085. +s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
  9086. +s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  9087. +s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  9088. +s,@MAINT@,$MAINT,;t t
  9089. +s,@LD_STATIC_FLAG@,$LD_STATIC_FLAG,;t t
  9090. +s,@CPP@,$CPP,;t t
  9091. +s,@AIDE_USE_LOCALE@,$AIDE_USE_LOCALE,;t t
  9092. +s,@ACLLIB@,$ACLLIB,;t t
  9093. +s,@CRYPTLIB@,$CRYPTLIB,;t t
  9094. +s,@PSQLLIB@,$PSQLLIB,;t t
  9095. +CEOF
  9096. +
  9097. +_ACEOF
  9098. +
  9099. + cat >>$CONFIG_STATUS <<\_ACEOF
  9100. + # Split the substitutions into bite-sized pieces for seds with
  9101. + # small command number limits, like on Digital OSF/1 and HP-UX.
  9102. + ac_max_sed_lines=48
  9103. + ac_sed_frag=1 # Number of current file.
  9104. + ac_beg=1 # First line for current file.
  9105. + ac_end=$ac_max_sed_lines # Line after last line for current file.
  9106. + ac_more_lines=:
  9107. + ac_sed_cmds=
  9108. + while $ac_more_lines; do
  9109. + if test $ac_beg -gt 1; then
  9110. + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9111. + else
  9112. + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9113. + fi
  9114. + if test ! -s $tmp/subs.frag; then
  9115. + ac_more_lines=false
  9116. + else
  9117. + # The purpose of the label and of the branching condition is to
  9118. + # speed up the sed processing (if there are no `@' at all, there
  9119. + # is no need to browse any of the substitutions).
  9120. + # These are the two extra sed commands mentioned above.
  9121. + (echo ':t
  9122. + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  9123. + if test -z "$ac_sed_cmds"; then
  9124. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  9125. + else
  9126. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  9127. + fi
  9128. + ac_sed_frag=`expr $ac_sed_frag + 1`
  9129. + ac_beg=$ac_end
  9130. + ac_end=`expr $ac_end + $ac_max_sed_lines`
  9131. + fi
  9132. + done
  9133. + if test -z "$ac_sed_cmds"; then
  9134. + ac_sed_cmds=cat
  9135. + fi
  9136. +fi # test -n "$CONFIG_FILES"
  9137. -CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile po/Makefile doc/Makefile doc/aide.conf
  9138. -aide.spec"}
  9139. -EOF
  9140. -cat >> $CONFIG_STATUS <<\EOF
  9141. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  9142. +_ACEOF
  9143. +cat >>$CONFIG_STATUS <<\_ACEOF
  9144. +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  9145. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9146. - case "$ac_file" in
  9147. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  9148. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9149. - *) ac_file_in="${ac_file}.in" ;;
  9150. - esac
  9151. -
  9152. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  9153. -
  9154. - # Remove last slash and all that follows it. Not all systems have dirname.
  9155. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  9156. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  9157. - # The file is in a subdirectory.
  9158. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  9159. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  9160. - # A "../" for each directory in $ac_dir_suffix.
  9161. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  9162. - else
  9163. - ac_dir_suffix= ac_dots=
  9164. - fi
  9165. -
  9166. - case "$ac_given_srcdir" in
  9167. - .) srcdir=.
  9168. - if test -z "$ac_dots"; then top_srcdir=.
  9169. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  9170. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  9171. + case $ac_file in
  9172. + - | *:- | *:-:* ) # input from stdin
  9173. + cat >$tmp/stdin
  9174. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9175. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9176. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9177. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9178. + * ) ac_file_in=$ac_file.in ;;
  9179. + esac
  9180. +
  9181. + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  9182. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9183. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9184. + X"$ac_file" : 'X\(//\)[^/]' \| \
  9185. + X"$ac_file" : 'X\(//\)$' \| \
  9186. + X"$ac_file" : 'X\(/\)' \| \
  9187. + . : '\(.\)' 2>/dev/null ||
  9188. +echo X"$ac_file" |
  9189. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9190. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9191. + /^X\(\/\/\)$/{ s//\1/; q; }
  9192. + /^X\(\/\).*/{ s//\1/; q; }
  9193. + s/.*/./; q'`
  9194. + { case "$ac_dir" in
  9195. + [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  9196. + *) as_incr_dir=.;;
  9197. +esac
  9198. +as_dummy="$ac_dir"
  9199. +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  9200. + case $as_mkdir_dir in
  9201. + # Skip DOS drivespec
  9202. + ?:) as_incr_dir=$as_mkdir_dir ;;
  9203. + *)
  9204. + as_incr_dir=$as_incr_dir/$as_mkdir_dir
  9205. + test -d "$as_incr_dir" ||
  9206. + mkdir "$as_incr_dir" ||
  9207. + { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
  9208. +echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
  9209. + { (exit 1); exit 1; }; }
  9210. + ;;
  9211. + esac
  9212. +done; }
  9213. +
  9214. + ac_builddir=.
  9215. +
  9216. +if test "$ac_dir" != .; then
  9217. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9218. + # A "../" for each directory in $ac_dir_suffix.
  9219. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9220. +else
  9221. + ac_dir_suffix= ac_top_builddir=
  9222. +fi
  9223. +
  9224. +case $srcdir in
  9225. + .) # No --srcdir option. We are building in place.
  9226. + ac_srcdir=.
  9227. + if test -z "$ac_top_builddir"; then
  9228. + ac_top_srcdir=.
  9229. + else
  9230. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9231. + fi ;;
  9232. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9233. + ac_srcdir=$srcdir$ac_dir_suffix;
  9234. + ac_top_srcdir=$srcdir ;;
  9235. *) # Relative path.
  9236. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  9237. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  9238. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9239. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9240. +esac
  9241. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9242. +# absolute.
  9243. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9244. +ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  9245. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9246. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9247. +
  9248. +
  9249. + case $INSTALL in
  9250. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9251. + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  9252. esac
  9253. - case "$ac_given_INSTALL" in
  9254. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  9255. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  9256. - esac
  9257. -
  9258. - echo creating "$ac_file"
  9259. - rm -f "$ac_file"
  9260. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  9261. - case "$ac_file" in
  9262. - *Makefile*) ac_comsub="1i\\
  9263. -# $configure_input" ;;
  9264. - *) ac_comsub= ;;
  9265. - esac
  9266. -
  9267. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  9268. - sed -e "$ac_comsub
  9269. -s%@configure_input@%$configure_input%g
  9270. -s%@srcdir@%$srcdir%g
  9271. -s%@top_srcdir@%$top_srcdir%g
  9272. -s%@INSTALL@%$INSTALL%g
  9273. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  9274. -fi; done
  9275. -rm -f conftest.s*
  9276. + if test x"$ac_file" != x-; then
  9277. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  9278. +echo "$as_me: creating $ac_file" >&6;}
  9279. + rm -f "$ac_file"
  9280. + fi
  9281. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  9282. + # use $as_me), people would be surprised to read:
  9283. + # /* config.h. Generated by config.status. */
  9284. + if test x"$ac_file" = x-; then
  9285. + configure_input=
  9286. + else
  9287. + configure_input="$ac_file. "
  9288. + fi
  9289. + configure_input=$configure_input"Generated from `echo $ac_file_in |
  9290. + sed 's,.*/,,'` by configure."
  9291. +
  9292. + # First look for the input files in the build tree, otherwise in the
  9293. + # src tree.
  9294. + ac_file_inputs=`IFS=:
  9295. + for f in $ac_file_in; do
  9296. + case $f in
  9297. + -) echo $tmp/stdin ;;
  9298. + [\\/$]*)
  9299. + # Absolute (can't be DOS-style, as IFS=:)
  9300. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9301. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9302. + { (exit 1); exit 1; }; }
  9303. + echo $f;;
  9304. + *) # Relative
  9305. + if test -f "$f"; then
  9306. + # Build tree
  9307. + echo $f
  9308. + elif test -f "$srcdir/$f"; then
  9309. + # Source tree
  9310. + echo $srcdir/$f
  9311. + else
  9312. + # /dev/null tree
  9313. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9314. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9315. + { (exit 1); exit 1; }; }
  9316. + fi;;
  9317. + esac
  9318. + done` || { (exit 1); exit 1; }
  9319. +_ACEOF
  9320. +cat >>$CONFIG_STATUS <<_ACEOF
  9321. + sed "$ac_vpsub
  9322. +$extrasub
  9323. +_ACEOF
  9324. +cat >>$CONFIG_STATUS <<\_ACEOF
  9325. +:t
  9326. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9327. +s,@configure_input@,$configure_input,;t t
  9328. +s,@srcdir@,$ac_srcdir,;t t
  9329. +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  9330. +s,@top_srcdir@,$ac_top_srcdir,;t t
  9331. +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  9332. +s,@builddir@,$ac_builddir,;t t
  9333. +s,@abs_builddir@,$ac_abs_builddir,;t t
  9334. +s,@top_builddir@,$ac_top_builddir,;t t
  9335. +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  9336. +s,@INSTALL@,$ac_INSTALL,;t t
  9337. +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  9338. + rm -f $tmp/stdin
  9339. + if test x"$ac_file" != x-; then
  9340. + mv $tmp/out $ac_file
  9341. + else
  9342. + cat $tmp/out
  9343. + rm -f $tmp/out
  9344. + fi
  9345. +
  9346. +done
  9347. +_ACEOF
  9348. +cat >>$CONFIG_STATUS <<\_ACEOF
  9349. +
  9350. +#
  9351. +# CONFIG_HEADER section.
  9352. +#
  9353. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9354. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  9355. #
  9356. # ac_d sets the value in "#define NAME VALUE" lines.
  9357. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9358. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  9359. -ac_dC='\3'
  9360. -ac_dD='%g'
  9361. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  9362. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9363. -ac_uB='\([ ]\)%\1#\2define\3'
  9364. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9365. +ac_dB='[ ].*$,\1#\2'
  9366. +ac_dC=' '
  9367. +ac_dD=',;t'
  9368. +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9369. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9370. +ac_uB='$,\1#\2define\3'
  9371. ac_uC=' '
  9372. -ac_uD='\4%g'
  9373. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9374. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9375. -ac_eB='$%\1#\2define\3'
  9376. -ac_eC=' '
  9377. -ac_eD='%g'
  9378. -
  9379. -if test "${CONFIG_HEADERS+set}" != set; then
  9380. -EOF
  9381. -cat >> $CONFIG_STATUS <<EOF
  9382. - CONFIG_HEADERS="config.h"
  9383. -EOF
  9384. -cat >> $CONFIG_STATUS <<\EOF
  9385. -fi
  9386. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  9387. +ac_uD=',;t'
  9388. +
  9389. +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9390. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9391. - case "$ac_file" in
  9392. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  9393. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9394. - *) ac_file_in="${ac_file}.in" ;;
  9395. - esac
  9396. -
  9397. - echo creating $ac_file
  9398. -
  9399. - rm -f conftest.frag conftest.in conftest.out
  9400. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  9401. - cat $ac_file_inputs > conftest.in
  9402. -
  9403. -EOF
  9404. -
  9405. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  9406. -# the proper values into config.h.in to produce config.h. And first:
  9407. -# Protect against being on the right side of a sed subst in config.status.
  9408. -# Protect against being in an unquoted here document in config.status.
  9409. -rm -f conftest.vals
  9410. -cat > conftest.hdr <<\EOF
  9411. -s/[\\&%]/\\&/g
  9412. -s%[\\$`]%\\&%g
  9413. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  9414. -s%ac_d%ac_u%gp
  9415. -s%ac_u%ac_e%gp
  9416. -EOF
  9417. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  9418. -rm -f conftest.hdr
  9419. + case $ac_file in
  9420. + - | *:- | *:-:* ) # input from stdin
  9421. + cat >$tmp/stdin
  9422. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9423. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9424. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9425. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9426. + * ) ac_file_in=$ac_file.in ;;
  9427. + esac
  9428. +
  9429. + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9430. +echo "$as_me: creating $ac_file" >&6;}
  9431. +
  9432. + # First look for the input files in the build tree, otherwise in the
  9433. + # src tree.
  9434. + ac_file_inputs=`IFS=:
  9435. + for f in $ac_file_in; do
  9436. + case $f in
  9437. + -) echo $tmp/stdin ;;
  9438. + [\\/$]*)
  9439. + # Absolute (can't be DOS-style, as IFS=:)
  9440. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9441. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9442. + { (exit 1); exit 1; }; }
  9443. + echo $f;;
  9444. + *) # Relative
  9445. + if test -f "$f"; then
  9446. + # Build tree
  9447. + echo $f
  9448. + elif test -f "$srcdir/$f"; then
  9449. + # Source tree
  9450. + echo $srcdir/$f
  9451. + else
  9452. + # /dev/null tree
  9453. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9454. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9455. + { (exit 1); exit 1; }; }
  9456. + fi;;
  9457. + esac
  9458. + done` || { (exit 1); exit 1; }
  9459. + # Remove the trailing spaces.
  9460. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9461. +
  9462. +_ACEOF
  9463. +
  9464. +# Transform confdefs.h into two sed scripts, `conftest.defines' and
  9465. +# `conftest.undefs', that substitutes the proper values into
  9466. +# config.h.in to produce config.h. The first handles `#define'
  9467. +# templates, and the second `#undef' templates.
  9468. +# And first: Protect against being on the right side of a sed subst in
  9469. +# config.status. Protect against being in an unquoted here document
  9470. +# in config.status.
  9471. +rm -f conftest.defines conftest.undefs
  9472. +# Using a here document instead of a string reduces the quoting nightmare.
  9473. +# Putting comments in sed scripts is not portable.
  9474. +#
  9475. +# `end' is used to avoid that the second main sed command (meant for
  9476. +# 0-ary CPP macros) applies to n-ary macro definitions.
  9477. +# See the Autoconf documentation for `clear'.
  9478. +cat >confdef2sed.sed <<\_ACEOF
  9479. +s/[\\&,]/\\&/g
  9480. +s,[\\$`],\\&,g
  9481. +t clear
  9482. +: clear
  9483. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9484. +t end
  9485. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9486. +: end
  9487. +_ACEOF
  9488. +# If some macros were called several times there might be several times
  9489. +# the same #defines, which is useless. Nevertheless, we may not want to
  9490. +# sort them, since we want the *last* AC-DEFINE to be honored.
  9491. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9492. +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9493. +rm -f confdef2sed.sed
  9494. # This sed command replaces #undef with comments. This is necessary, for
  9495. # example, in the case of _POSIX_SOURCE, which is predefined and required
  9496. # on some systems where configure will not decide to define it.
  9497. -cat >> conftest.vals <<\EOF
  9498. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  9499. -EOF
  9500. -
  9501. -# Break up conftest.vals because some shells have a limit on
  9502. -# the size of here documents, and old seds have small limits too.
  9503. -
  9504. +cat >>conftest.undefs <<\_ACEOF
  9505. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9506. +_ACEOF
  9507. +
  9508. +# Break up conftest.defines because some shells have a limit on the size
  9509. +# of here documents, and old seds have small limits too (100 cmds).
  9510. +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9511. +echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9512. +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9513. +echo ' :' >>$CONFIG_STATUS
  9514. rm -f conftest.tail
  9515. -while :
  9516. +while grep . conftest.defines >/dev/null
  9517. do
  9518. - ac_lines=`grep -c . conftest.vals`
  9519. - # grep -c gives empty output for an empty file on some AIX systems.
  9520. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  9521. - # Write a limited-size here document to conftest.frag.
  9522. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  9523. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  9524. + # Write a limited-size here document to $tmp/defines.sed.
  9525. + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9526. + # Speed up: don't consider the non `#define' lines.
  9527. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9528. + # Work around the forget-to-reset-the-flag bug.
  9529. + echo 't clr' >>$CONFIG_STATUS
  9530. + echo ': clr' >>$CONFIG_STATUS
  9531. + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9532. echo 'CEOF
  9533. - sed -f conftest.frag conftest.in > conftest.out
  9534. - rm -f conftest.in
  9535. - mv conftest.out conftest.in
  9536. -' >> $CONFIG_STATUS
  9537. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  9538. - rm -f conftest.vals
  9539. - mv conftest.tail conftest.vals
  9540. -done
  9541. -rm -f conftest.vals
  9542. -
  9543. -cat >> $CONFIG_STATUS <<\EOF
  9544. - rm -f conftest.frag conftest.h
  9545. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  9546. - cat conftest.in >> conftest.h
  9547. - rm -f conftest.in
  9548. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  9549. - echo "$ac_file is unchanged"
  9550. - rm -f conftest.h
  9551. - else
  9552. - # Remove last slash and all that follows it. Not all systems have dirname.
  9553. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  9554. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  9555. - # The file is in a subdirectory.
  9556. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  9557. - fi
  9558. - rm -f $ac_file
  9559. - mv conftest.h $ac_file
  9560. + sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9561. + rm -f $tmp/in
  9562. + mv $tmp/out $tmp/in
  9563. +' >>$CONFIG_STATUS
  9564. + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9565. + rm -f conftest.defines
  9566. + mv conftest.tail conftest.defines
  9567. +done
  9568. +rm -f conftest.defines
  9569. +echo ' fi # egrep' >>$CONFIG_STATUS
  9570. +echo >>$CONFIG_STATUS
  9571. +
  9572. +# Break up conftest.undefs because some shells have a limit on the size
  9573. +# of here documents, and old seds have small limits too (100 cmds).
  9574. +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9575. +rm -f conftest.tail
  9576. +while grep . conftest.undefs >/dev/null
  9577. +do
  9578. + # Write a limited-size here document to $tmp/undefs.sed.
  9579. + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9580. + # Speed up: don't consider the non `#undef'
  9581. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9582. + # Work around the forget-to-reset-the-flag bug.
  9583. + echo 't clr' >>$CONFIG_STATUS
  9584. + echo ': clr' >>$CONFIG_STATUS
  9585. + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9586. + echo 'CEOF
  9587. + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9588. + rm -f $tmp/in
  9589. + mv $tmp/out $tmp/in
  9590. +' >>$CONFIG_STATUS
  9591. + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9592. + rm -f conftest.undefs
  9593. + mv conftest.tail conftest.undefs
  9594. +done
  9595. +rm -f conftest.undefs
  9596. +
  9597. +cat >>$CONFIG_STATUS <<\_ACEOF
  9598. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  9599. + # use $as_me), people would be surprised to read:
  9600. + # /* config.h. Generated by config.status. */
  9601. + if test x"$ac_file" = x-; then
  9602. + echo "/* Generated by configure. */" >$tmp/config.h
  9603. + else
  9604. + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9605. fi
  9606. -fi; done
  9607. + cat $tmp/in >>$tmp/config.h
  9608. + rm -f $tmp/in
  9609. + if test x"$ac_file" != x-; then
  9610. + if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
  9611. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9612. +echo "$as_me: $ac_file is unchanged" >&6;}
  9613. + else
  9614. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9615. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9616. + X"$ac_file" : 'X\(//\)[^/]' \| \
  9617. + X"$ac_file" : 'X\(//\)$' \| \
  9618. + X"$ac_file" : 'X\(/\)' \| \
  9619. + . : '\(.\)' 2>/dev/null ||
  9620. +echo X"$ac_file" |
  9621. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9622. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9623. + /^X\(\/\/\)$/{ s//\1/; q; }
  9624. + /^X\(\/\).*/{ s//\1/; q; }
  9625. + s/.*/./; q'`
  9626. + { case "$ac_dir" in
  9627. + [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  9628. + *) as_incr_dir=.;;
  9629. +esac
  9630. +as_dummy="$ac_dir"
  9631. +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  9632. + case $as_mkdir_dir in
  9633. + # Skip DOS drivespec
  9634. + ?:) as_incr_dir=$as_mkdir_dir ;;
  9635. + *)
  9636. + as_incr_dir=$as_incr_dir/$as_mkdir_dir
  9637. + test -d "$as_incr_dir" ||
  9638. + mkdir "$as_incr_dir" ||
  9639. + { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
  9640. +echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
  9641. + { (exit 1); exit 1; }; }
  9642. + ;;
  9643. + esac
  9644. +done; }
  9645. -EOF
  9646. + rm -f $ac_file
  9647. + mv $tmp/config.h $ac_file
  9648. + fi
  9649. + else
  9650. + cat $tmp/config.h
  9651. + rm -f $tmp/config.h
  9652. + fi
  9653. +done
  9654. +_ACEOF
  9655. +cat >>$CONFIG_STATUS <<\_ACEOF
  9656. -cat >> $CONFIG_STATUS <<EOF
  9657. -ac_sources="$wk_link_files_src"
  9658. -ac_dests="$wk_link_files_dst "
  9659. -EOF
  9660. +#
  9661. +# CONFIG_LINKS section.
  9662. +#
  9663. -cat >> $CONFIG_STATUS <<\EOF
  9664. -srcdir=$ac_given_srcdir
  9665. -while test -n "$ac_sources"; do
  9666. - set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  9667. - set $ac_sources; ac_source=$1; shift; ac_sources=$*
  9668. +for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
  9669. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9670. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9671. - echo "linking $srcdir/$ac_source to $ac_dest"
  9672. + { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
  9673. +echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
  9674. if test ! -r $srcdir/$ac_source; then
  9675. - { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  9676. + { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
  9677. +echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
  9678. + { (exit 1); exit 1; }; }
  9679. fi
  9680. rm -f $ac_dest
  9681. # Make relative symlinks.
  9682. - # Remove last slash and all that follows it. Not all systems have dirname.
  9683. - ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  9684. - if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  9685. - # The dest file is in a subdirectory.
  9686. - test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  9687. - ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  9688. - # A "../" for each directory in $ac_dest_dir_suffix.
  9689. - ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  9690. - else
  9691. - ac_dest_dir_suffix= ac_dots=
  9692. - fi
  9693. + ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9694. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9695. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  9696. + X"$ac_dest" : 'X\(//\)$' \| \
  9697. + X"$ac_dest" : 'X\(/\)' \| \
  9698. + . : '\(.\)' 2>/dev/null ||
  9699. +echo X"$ac_dest" |
  9700. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9701. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9702. + /^X\(\/\/\)$/{ s//\1/; q; }
  9703. + /^X\(\/\).*/{ s//\1/; q; }
  9704. + s/.*/./; q'`
  9705. + { case "$ac_dest_dir" in
  9706. + [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  9707. + *) as_incr_dir=.;;
  9708. +esac
  9709. +as_dummy="$ac_dest_dir"
  9710. +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  9711. + case $as_mkdir_dir in
  9712. + # Skip DOS drivespec
  9713. + ?:) as_incr_dir=$as_mkdir_dir ;;
  9714. + *)
  9715. + as_incr_dir=$as_incr_dir/$as_mkdir_dir
  9716. + test -d "$as_incr_dir" ||
  9717. + mkdir "$as_incr_dir" ||
  9718. + { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
  9719. +echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
  9720. + { (exit 1); exit 1; }; }
  9721. + ;;
  9722. + esac
  9723. +done; }
  9724. +
  9725. + ac_builddir=.
  9726. +
  9727. +if test "$ac_dest_dir" != .; then
  9728. + ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
  9729. + # A "../" for each directory in $ac_dir_suffix.
  9730. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9731. +else
  9732. + ac_dir_suffix= ac_top_builddir=
  9733. +fi
  9734. +
  9735. +case $srcdir in
  9736. + .) # No --srcdir option. We are building in place.
  9737. + ac_srcdir=.
  9738. + if test -z "$ac_top_builddir"; then
  9739. + ac_top_srcdir=.
  9740. + else
  9741. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9742. + fi ;;
  9743. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9744. + ac_srcdir=$srcdir$ac_dir_suffix;
  9745. + ac_top_srcdir=$srcdir ;;
  9746. + *) # Relative path.
  9747. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9748. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9749. +esac
  9750. +# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
  9751. +# absolute.
  9752. +ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
  9753. +ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
  9754. +ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
  9755. +ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
  9756. +
  9757. - case "$srcdir" in
  9758. - [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  9759. - *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  9760. + case $srcdir in
  9761. + [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
  9762. + *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
  9763. esac
  9764. # Make a symlink if possible; otherwise try a hard link.
  9765. - if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  9766. - ln $srcdir/$ac_source $ac_dest; then :
  9767. - else
  9768. - { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  9769. - fi
  9770. + ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  9771. + ln $srcdir/$ac_source $ac_dest ||
  9772. + { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
  9773. +echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
  9774. + { (exit 1); exit 1; }; }
  9775. done
  9776. -EOF
  9777. -cat >> $CONFIG_STATUS <<EOF
  9778. +_ACEOF
  9779. +cat >>$CONFIG_STATUS <<\_ACEOF
  9780. +
  9781. +#
  9782. +# CONFIG_COMMANDS section.
  9783. +#
  9784. +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  9785. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9786. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9787. + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9788. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9789. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  9790. + X"$ac_dest" : 'X\(//\)$' \| \
  9791. + X"$ac_dest" : 'X\(/\)' \| \
  9792. + . : '\(.\)' 2>/dev/null ||
  9793. +echo X"$ac_dest" |
  9794. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9795. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9796. + /^X\(\/\/\)$/{ s//\1/; q; }
  9797. + /^X\(\/\).*/{ s//\1/; q; }
  9798. + s/.*/./; q'`
  9799. + ac_builddir=.
  9800. +
  9801. +if test "$ac_dir" != .; then
  9802. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9803. + # A "../" for each directory in $ac_dir_suffix.
  9804. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9805. +else
  9806. + ac_dir_suffix= ac_top_builddir=
  9807. +fi
  9808. +
  9809. +case $srcdir in
  9810. + .) # No --srcdir option. We are building in place.
  9811. + ac_srcdir=.
  9812. + if test -z "$ac_top_builddir"; then
  9813. + ac_top_srcdir=.
  9814. + else
  9815. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9816. + fi ;;
  9817. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9818. + ac_srcdir=$srcdir$ac_dir_suffix;
  9819. + ac_top_srcdir=$srcdir ;;
  9820. + *) # Relative path.
  9821. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9822. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9823. +esac
  9824. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9825. +# absolute.
  9826. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9827. +ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  9828. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9829. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9830. -EOF
  9831. -cat >> $CONFIG_STATUS <<\EOF
  9832. -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  9833. + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  9834. +echo "$as_me: executing $ac_dest commands" >&6;}
  9835. + case $ac_dest in
  9836. + default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  9837. + esac
  9838. +done
  9839. +_ACEOF
  9840. +
  9841. +cat >>$CONFIG_STATUS <<\_ACEOF
  9842. -exit 0
  9843. -EOF
  9844. +{ (exit 0); exit 0; }
  9845. +_ACEOF
  9846. chmod +x $CONFIG_STATUS
  9847. -rm -fr confdefs* $ac_clean_files
  9848. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  9849. +ac_clean_files=$ac_clean_files_save
  9850. +
  9851. +
  9852. +# configure is writing to config.log, and then calls config.status.
  9853. +# config.status does its own redirection, appending to config.log.
  9854. +# Unfortunately, on DOS this fails, as config.log is still kept open
  9855. +# by configure, so config.status won't be able to write to it; its
  9856. +# output is simply discarded. So we exec the FD to /dev/null,
  9857. +# effectively closing config.log, so it can be properly (re)opened and
  9858. +# appended to by config.status. When coming back to configure, we
  9859. +# need to make the FD available again.
  9860. +if test "$no_create" != yes; then
  9861. + ac_cs_success=:
  9862. + exec 5>/dev/null
  9863. + $SHELL $CONFIG_STATUS || ac_cs_success=false
  9864. + exec 5>>config.log
  9865. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9866. + # would make configure fail if this is the last instruction.
  9867. + $ac_cs_success || { (exit 1); exit 1; }
  9868. +fi
  9869. diff -r -u aide-0.9/configure.in aide-0.9x/configure.in
  9870. --- aide-0.9/configure.in Fri May 31 14:47:07 2002
  9871. +++ aide-0.9x/configure.in Fri Nov 15 09:11:24 2002
  9872. @@ -184,7 +184,7 @@
  9873. AC_CHECK_SIZEOF(unsigned long, 4)
  9874. AC_HEADER_STDC
  9875. -AC_CHECK_FUNCS(readdir readdir_r stricmp ustat)
  9876. +AC_CHECK_FUNCS(readdir readdir_r stricmp strnstr ustat)
  9877. AC_ARG_WITH(mmap,
  9878. [--without-mmap Don't use mmap. Useful on some platforms with slow mmap],
  9879. if test "x$withval" = "xyes"; then
  9880. @@ -204,10 +204,10 @@
  9881. AC_ARG_WITH(locale,
  9882. [--with-locale use locale stuff],
  9883. - AC_CHECK_HEADERS(libintl.h,
  9884. + [AC_CHECK_HEADERS(libintl.h,
  9885. AC_DEFINE(USE_LOCALE)
  9886. AIDE_USE_LOCALE=""
  9887. - AC_DEFINE_UNQUOTED(LOCALEDIR,"$prefix/lib/locale"),)
  9888. + AC_DEFINE_UNQUOTED(LOCALEDIR,"$prefix/lib/locale"),)]
  9889. )
  9890. AC_SUBST(AIDE_USE_LOCALE)
  9891. @@ -256,7 +256,7 @@
  9892. AC_CHECK_FUNC(lstat64,
  9893. # This looks wierd because Linux defines lstat64 and then screws it up
  9894. - AC_EGREP_CPP(yes,
  9895. + [AC_EGREP_CPP(yes,
  9896. [#ifdef stat64
  9897. yes
  9898. #endif],
  9899. @@ -282,20 +282,25 @@
  9900. AC_DEFINE_UNQUOTED(AIDE_READDIR_R_FUNC,readdir_r)
  9901. AC_DEFINE_UNQUOTED(AIDE_DIRENT_TYPE,dirent)
  9902. compoptionstring="${compoptionstring}WITH_READDIR\\n"
  9903. -))
  9904. + )
  9905. + )
  9906. compoptionstring="${compoptionstring}WITH_LSTAT64\\n"
  9907. - ,
  9908. +],[
  9909. AC_DEFINE_UNQUOTED(AIDE_LSTAT_FUNC,lstat)
  9910. AC_DEFINE_UNQUOTED(AIDE_STAT_TYPE,stat)
  9911. AC_DEFINE_UNQUOTED(AIDE_INO_TYPE,ino_t)
  9912. AC_DEFINE_UNQUOTED(AIDE_OFF_TYPE,off_t)
  9913. - AC_DEFINE_UNQUOTED(AIDE_BLKCNT_TYPE,blkcnt_t)
  9914. + AC_EGREP_CPP(yes,
  9915. + [#ifdef blkcnt_t],
  9916. + AC_DEFINE_UNQUOTED(AIDE_BLKCNT_TYPE,blkcnt_t),
  9917. + AC_DEFINE_UNQUOTED(AIDE_BLKCNT_TYPE,int64_t)
  9918. + )
  9919. compoptionstring="${compoptionstring}WITH_LSTAT\\n"
  9920. AC_DEFINE_UNQUOTED(AIDE_READDIR_FUNC,readdir)
  9921. AC_DEFINE_UNQUOTED(AIDE_READDIR_R_FUNC,readdir_r)
  9922. AC_DEFINE_UNQUOTED(AIDE_DIRENT_TYPE,dirent)
  9923. compoptionstring="${compoptionstring}WITH_READDIR\\n"
  9924. - )
  9925. +])
  9926. AC_ARG_WITH(config_file,
  9927. @@ -347,23 +352,21 @@
  9928. fi
  9929. AC_ARG_WITH(gnu-regexp,
  9930. - [--with-gnu-regexp use the bundled GNU regexp(use only if necessary)],
  9931. + [--with-gnu-regexp use the bundled GNU regexp (use only if necessary)],
  9932. AC_DEFINE(REGEX, 1)
  9933. -,
  9934. AC_CHECK_FUNCS(regexec regcomp,,
  9935. - AC_DEFINE(REGEX,1))
  9936. + AC_DEFINE(REGEX, 1))
  9937. )
  9938. AC_ARG_WITH(gcrypt,
  9939. [--with-gcrypt use gcrypt library],
  9940. - AC_DEFINE(WITH_GCRYPT)
  9941. + [AC_DEFINE(WITH_GCRYPT)
  9942. AC_CHECK_HEADER(gcrypt.h,,
  9943. echo "You don't have libgcrypt properly installed."
  9944. echo "Install it if you need one."
  9945. exit 1)
  9946. CRYPTLIB="-lgcrypt"
  9947. - compoptionstring="${compoptionstring}WITH_GCRYPT\\n"
  9948. - ,
  9949. + compoptionstring="${compoptionstring}WITH_GCRYPT\\n"],
  9950. [with_gcrypt=no])
  9951. AC_CHECK_LIB(mhash,mhash_get_block_size,
  9952. Only in aide-0.9x/doc: Makefile
  9953. Only in aide-0.9x/doc: aide.conf
  9954. diff -r -u aide-0.9/include/util.h aide-0.9x/include/util.h
  9955. --- aide-0.9/include/util.h Wed May 29 10:04:26 2002
  9956. +++ aide-0.9x/include/util.h Mon Oct 21 16:31:03 2002
  9957. @@ -57,6 +57,8 @@
  9958. void init_sighandler(void);
  9959. +#ifndef HAVE_STRNSTR
  9960. char* strnstr(char* haystack,char* needle,int n);
  9961. +#endif
  9962. #endif
  9963. Only in aide-0.9x/po: Makefile
  9964. Only in aide-0.9x/src: Makefile
  9965. diff -r -u aide-0.9/src/Makefile.am aide-0.9x/src/Makefile.am
  9966. --- aide-0.9/src/Makefile.am Wed Mar 6 14:12:12 2002
  9967. +++ aide-0.9x/src/Makefile.am Fri Nov 15 09:12:05 2002
  9968. @@ -46,7 +46,7 @@
  9969. util.c \
  9970. aide.c
  9971. -INCLUDES = -I$(prefix)/include -I$(top_srcdir)/include
  9972. +INCLUDES = -I$(top_srcdir)/include -I$(prefix)/include
  9973. LDADD = @CRYPTLIB@ @ACLLIB@
  9974. diff -r -u aide-0.9/src/Makefile.in aide-0.9x/src/Makefile.in
  9975. --- aide-0.9/src/Makefile.in Tue Jun 4 10:33:26 2002
  9976. +++ aide-0.9x/src/Makefile.in Fri Nov 15 09:01:44 2002
  9977. @@ -98,7 +98,7 @@
  9978. aide_SOURCES = conf_yacc.y conf_lex.l getopt.c getopt1.c gnu_regex.c error.c md.c db.c commandconf.c db_file.c db_disk.c db_lex.l db_sql.c gen_list.c list.c do_md.c base64.c symboltable.c compare_db.c be.c util.c aide.c
  9979. -INCLUDES = -I$(prefix)/include -I$(top_srcdir)/include
  9980. +INCLUDES = -I$(top_srcdir)/include -I$(prefix)/include
  9981. LDADD = @CRYPTLIB@ @ACLLIB@
  9982. diff -r -u aide-0.9/src/conf_yacc.y aide-0.9x/src/conf_yacc.y
  9983. --- aide-0.9/src/conf_yacc.y Wed May 29 10:04:27 2002
  9984. +++ aide-0.9x/src/conf_yacc.y Mon Oct 21 16:15:54 2002
  9985. @@ -180,7 +180,7 @@
  9986. conferror("Error in expression");
  9987. YYABORT;
  9988. }
  9989. - }
  9990. + } ;
  9991. other : TRIGHTS { $$ =$1 ;} | TUSER {$$ =$1 ;}
  9992. | TGROUP {$$ =$1 ;} | TINODE {$$ =$1 ;}
  9993. @@ -242,11 +242,11 @@
  9994. beginconfigstmt : TBEGIN_CONFIG TSTRING {
  9995. conf->do_configmd=1;
  9996. conf->old_confmdstr=strdup($2);
  9997. -}
  9998. +} ;
  9999. endconfigstmt : TEND_CONFIG {
  10000. YYACCEPT;
  10001. -}
  10002. +} ;
  10003. acl_no_symlink_follow : TACLNOSYMLINKFOLLOW TTRUE {
  10004. #ifdef WITH_ACL
  10005. @@ -254,7 +254,7 @@
  10006. #else
  10007. error(0,"ACL-support not compiled in.\n");
  10008. #endif
  10009. -}
  10010. +} ;
  10011. acl_no_symlink_follow : TACLNOSYMLINKFOLLOW TFALSE {
  10012. #ifdef WITH_ACL
  10013. @@ -262,15 +262,15 @@
  10014. #else
  10015. error(0,"ACL-support not compiled in.\n");
  10016. #endif
  10017. -}
  10018. +} ;
  10019. warn_dead_symlinks : TWARNDEADSYMLINKS TTRUE {
  10020. conf->warn_dead_symlinks=1;
  10021. -}
  10022. +} ;
  10023. warn_dead_symlinks : TWARNDEADSYMLINKS TFALSE {
  10024. conf->warn_dead_symlinks=0;
  10025. -}
  10026. +} ;
  10027. gzipdbout : TGZIPDBOUT TTRUE {
  10028. #ifdef WITH_ZLIB
  10029. @@ -288,11 +288,11 @@
  10030. recursion_stopper : TRECSTOP TSTRING {
  10031. /* FIXME implement me */
  10032. -}
  10033. +} ;
  10034. config_version : TCONFIG_VERSION TSTRING {
  10035. conf->config_version=strdup($2);
  10036. -}
  10037. +} ;
  10038. %%
  10039. Only in aide-0.9/src: db_lex.c
  10040. diff -r -u aide-0.9/src/util.c aide-0.9x/src/util.c
  10041. --- aide-0.9/src/util.c Wed May 29 10:04:27 2002
  10042. +++ aide-0.9x/src/util.c Mon Oct 21 16:31:15 2002
  10043. @@ -356,7 +356,7 @@
  10044. return;
  10045. }
  10046. -
  10047. +#ifndef HAVE_STRNSTR
  10048. /* Like strstr but only do search for maximum of n chars.
  10049. haystack does not have to be NULL terminated
  10050. needle has to be NULL terminated. NULL in needle is not used in compare.
  10051. @@ -392,6 +392,7 @@
  10052. /* If we get this far no match was found so we return NULL */
  10053. return NULL;
  10054. }
  10055. +#endif
  10056. /* We need these dummy stubs to fool the linker into believing that
  10057. we do not need them at link time */
  10058. Only in aide-0.9x: stamp-h