configure 179 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.54 for CALCRL 1.0.
  4. #
  5. # Report bugs to <zahn.sharon@mayo.edu>.
  6. #
  7. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  8. # Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. # Support unset when possible.
  25. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
  37. do
  38. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  39. eval $as_var=C; export $as_var
  40. else
  41. $as_unset $as_var
  42. fi
  43. done
  44. # Required to use basename.
  45. if expr a : '\(a\)' >/dev/null 2>&1; then
  46. as_expr=expr
  47. else
  48. as_expr=false
  49. fi
  50. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  51. as_basename=basename
  52. else
  53. as_basename=false
  54. fi
  55. # Name of the executable.
  56. as_me=`$as_basename "$0" ||
  57. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  58. X"$0" : 'X\(//\)$' \| \
  59. X"$0" : 'X\(/\)$' \| \
  60. . : '\(.\)' 2>/dev/null ||
  61. echo X/"$0" |
  62. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  63. /^X\/\(\/\/\)$/{ s//\1/; q; }
  64. /^X\/\(\/\).*/{ s//\1/; q; }
  65. s/.*/./; q'`
  66. # PATH needs CR, and LINENO needs CR and PATH.
  67. # Avoid depending upon Character Ranges.
  68. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  69. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  70. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  71. as_cr_digits='0123456789'
  72. as_cr_alnum=$as_cr_Letters$as_cr_digits
  73. # The user is always right.
  74. if test "${PATH_SEPARATOR+set}" != set; then
  75. echo "#! /bin/sh" >conftest.sh
  76. echo "exit 0" >>conftest.sh
  77. chmod +x conftest.sh
  78. if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
  79. PATH_SEPARATOR=';'
  80. else
  81. PATH_SEPARATOR=:
  82. fi
  83. rm -f conftest.sh
  84. fi
  85. as_lineno_1=$LINENO
  86. as_lineno_2=$LINENO
  87. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  88. test "x$as_lineno_1" != "x$as_lineno_2" &&
  89. test "x$as_lineno_3" = "x$as_lineno_2" || {
  90. # Find who we are. Look in the path if we contain no path at all
  91. # relative or not.
  92. case $0 in
  93. *[\\/]* ) as_myself=$0 ;;
  94. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  95. for as_dir in $PATH
  96. do
  97. IFS=$as_save_IFS
  98. test -z "$as_dir" && as_dir=.
  99. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  100. done
  101. ;;
  102. esac
  103. # We did not find ourselves, most probably we were run as `sh COMMAND'
  104. # in which case we are not to be found in the path.
  105. if test "x$as_myself" = x; then
  106. as_myself=$0
  107. fi
  108. if test ! -f "$as_myself"; then
  109. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  110. { (exit 1); exit 1; }; }
  111. fi
  112. case $CONFIG_SHELL in
  113. '')
  114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  115. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  116. do
  117. IFS=$as_save_IFS
  118. test -z "$as_dir" && as_dir=.
  119. for as_base in sh bash ksh sh5; do
  120. case $as_dir in
  121. /*)
  122. if ("$as_dir/$as_base" -c '
  123. as_lineno_1=$LINENO
  124. as_lineno_2=$LINENO
  125. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  126. test "x$as_lineno_1" != "x$as_lineno_2" &&
  127. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  128. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  129. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  130. CONFIG_SHELL=$as_dir/$as_base
  131. export CONFIG_SHELL
  132. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  133. fi;;
  134. esac
  135. done
  136. done
  137. ;;
  138. esac
  139. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  140. # uniformly replaced by the line number. The first 'sed' inserts a
  141. # line-number line before each line; the second 'sed' does the real
  142. # work. The second script uses 'N' to pair each line-number line
  143. # with the numbered line, and appends trailing '-' during
  144. # substitution so that $LINENO is not a special case at line end.
  145. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  146. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  147. sed '=' <$as_myself |
  148. sed '
  149. N
  150. s,$,-,
  151. : loop
  152. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  153. t loop
  154. s,-$,,
  155. s,^['$as_cr_digits']*\n,,
  156. ' >$as_me.lineno &&
  157. chmod +x $as_me.lineno ||
  158. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  159. { (exit 1); exit 1; }; }
  160. # Don't try to exec as it changes $[0], causing all sort of problems
  161. # (the dirname of $[0] is not the place where we might find the
  162. # original and so on. Autoconf is especially sensible to this).
  163. . ./$as_me.lineno
  164. # Exit status is that of the last command.
  165. exit
  166. }
  167. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  168. *c*,-n*) ECHO_N= ECHO_C='
  169. ' ECHO_T=' ' ;;
  170. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  171. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  172. esac
  173. if expr a : '\(a\)' >/dev/null 2>&1; then
  174. as_expr=expr
  175. else
  176. as_expr=false
  177. fi
  178. rm -f conf$$ conf$$.exe conf$$.file
  179. echo >conf$$.file
  180. if ln -s conf$$.file conf$$ 2>/dev/null; then
  181. # We could just check for DJGPP; but this test a) works b) is more generic
  182. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  183. if test -f conf$$.exe; then
  184. # Don't use ln at all; we don't have any links
  185. as_ln_s='cp -p'
  186. else
  187. as_ln_s='ln -s'
  188. fi
  189. elif ln conf$$.file conf$$ 2>/dev/null; then
  190. as_ln_s=ln
  191. else
  192. as_ln_s='cp -p'
  193. fi
  194. rm -f conf$$ conf$$.exe conf$$.file
  195. if mkdir -p . 2>/dev/null; then
  196. as_mkdir_p=:
  197. else
  198. as_mkdir_p=false
  199. fi
  200. as_executable_p="test -f"
  201. # Sed expression to map a string onto a valid CPP name.
  202. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  203. # Sed expression to map a string onto a valid variable name.
  204. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  205. # IFS
  206. # We need space, tab and new line, in precisely that order.
  207. as_nl='
  208. '
  209. IFS=" $as_nl"
  210. # CDPATH.
  211. $as_unset CDPATH
  212. # Name of the host.
  213. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  214. # so uname gets run too.
  215. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  216. exec 6>&1
  217. #
  218. # Initializations.
  219. #
  220. ac_default_prefix=/usr/local
  221. ac_config_libobj_dir=.
  222. cross_compiling=no
  223. subdirs=
  224. MFLAGS=
  225. MAKEFLAGS=
  226. SHELL=${CONFIG_SHELL-/bin/sh}
  227. # Maximum number of lines to put in a shell here document.
  228. # This variable seems obsolete. It should probably be removed, and
  229. # only ac_max_sed_lines should be used.
  230. : ${ac_max_here_lines=38}
  231. # Identity of this package.
  232. PACKAGE_NAME='CALCRL'
  233. PACKAGE_TARNAME='calcrl'
  234. PACKAGE_VERSION='1.0'
  235. PACKAGE_STRING='CALCRL 1.0'
  236. PACKAGE_BUGREPORT='zahn.sharon@mayo.edu'
  237. ac_unique_file="src/calcRL.cpp"
  238. # Factoring default headers for most tests.
  239. ac_includes_default="\
  240. #include <stdio.h>
  241. #if HAVE_SYS_TYPES_H
  242. # include <sys/types.h>
  243. #endif
  244. #if HAVE_SYS_STAT_H
  245. # include <sys/stat.h>
  246. #endif
  247. #if STDC_HEADERS
  248. # include <stdlib.h>
  249. # include <stddef.h>
  250. #else
  251. # if HAVE_STDLIB_H
  252. # include <stdlib.h>
  253. # endif
  254. #endif
  255. #if HAVE_STRING_H
  256. # if !STDC_HEADERS && HAVE_MEMORY_H
  257. # include <memory.h>
  258. # endif
  259. # include <string.h>
  260. #endif
  261. #if HAVE_STRINGS_H
  262. # include <strings.h>
  263. #endif
  264. #if HAVE_INTTYPES_H
  265. # include <inttypes.h>
  266. #else
  267. # if HAVE_STDINT_H
  268. # include <stdint.h>
  269. # endif
  270. #endif
  271. #if HAVE_UNISTD_H
  272. # include <unistd.h>
  273. #endif"
  274. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE F77 FFLAGS ac_ct_F77 CPP EGREP LIBOBJS LTLIBOBJS'
  275. ac_subst_files=''
  276. # Initialize some variables set by options.
  277. ac_init_help=
  278. ac_init_version=false
  279. # The variables have the same names as the options, with
  280. # dashes changed to underlines.
  281. cache_file=/dev/null
  282. exec_prefix=NONE
  283. no_create=
  284. no_recursion=
  285. prefix=NONE
  286. program_prefix=NONE
  287. program_suffix=NONE
  288. program_transform_name=s,x,x,
  289. silent=
  290. site=
  291. srcdir=
  292. verbose=
  293. x_includes=NONE
  294. x_libraries=NONE
  295. # Installation directory options.
  296. # These are left unexpanded so users can "make install exec_prefix=/foo"
  297. # and all the variables that are supposed to be based on exec_prefix
  298. # by default will actually change.
  299. # Use braces instead of parens because sh, perl, etc. also accept them.
  300. bindir='${exec_prefix}/bin'
  301. sbindir='${exec_prefix}/sbin'
  302. libexecdir='${exec_prefix}/libexec'
  303. datadir='${prefix}/share'
  304. sysconfdir='${prefix}/etc'
  305. sharedstatedir='${prefix}/com'
  306. localstatedir='${prefix}/var'
  307. libdir='${exec_prefix}/lib'
  308. includedir='${prefix}/include'
  309. oldincludedir='/usr/include'
  310. infodir='${prefix}/info'
  311. mandir='${prefix}/man'
  312. ac_prev=
  313. for ac_option
  314. do
  315. # If the previous option needs an argument, assign it.
  316. if test -n "$ac_prev"; then
  317. eval "$ac_prev=\$ac_option"
  318. ac_prev=
  319. continue
  320. fi
  321. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  322. # Accept the important Cygnus configure options, so we can diagnose typos.
  323. case $ac_option in
  324. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  325. ac_prev=bindir ;;
  326. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  327. bindir=$ac_optarg ;;
  328. -build | --build | --buil | --bui | --bu)
  329. ac_prev=build_alias ;;
  330. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  331. build_alias=$ac_optarg ;;
  332. -cache-file | --cache-file | --cache-fil | --cache-fi \
  333. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  334. ac_prev=cache_file ;;
  335. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  336. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  337. cache_file=$ac_optarg ;;
  338. --config-cache | -C)
  339. cache_file=config.cache ;;
  340. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  341. ac_prev=datadir ;;
  342. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  343. | --da=*)
  344. datadir=$ac_optarg ;;
  345. -disable-* | --disable-*)
  346. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  347. # Reject names that are not valid shell variable names.
  348. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  349. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  350. { (exit 1); exit 1; }; }
  351. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  352. eval "enable_$ac_feature=no" ;;
  353. -enable-* | --enable-*)
  354. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  355. # Reject names that are not valid shell variable names.
  356. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  357. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  358. { (exit 1); exit 1; }; }
  359. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  360. case $ac_option in
  361. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  362. *) ac_optarg=yes ;;
  363. esac
  364. eval "enable_$ac_feature='$ac_optarg'" ;;
  365. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  366. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  367. | --exec | --exe | --ex)
  368. ac_prev=exec_prefix ;;
  369. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  370. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  371. | --exec=* | --exe=* | --ex=*)
  372. exec_prefix=$ac_optarg ;;
  373. -gas | --gas | --ga | --g)
  374. # Obsolete; use --with-gas.
  375. with_gas=yes ;;
  376. -help | --help | --hel | --he | -h)
  377. ac_init_help=long ;;
  378. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  379. ac_init_help=recursive ;;
  380. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  381. ac_init_help=short ;;
  382. -host | --host | --hos | --ho)
  383. ac_prev=host_alias ;;
  384. -host=* | --host=* | --hos=* | --ho=*)
  385. host_alias=$ac_optarg ;;
  386. -includedir | --includedir | --includedi | --included | --include \
  387. | --includ | --inclu | --incl | --inc)
  388. ac_prev=includedir ;;
  389. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  390. | --includ=* | --inclu=* | --incl=* | --inc=*)
  391. includedir=$ac_optarg ;;
  392. -infodir | --infodir | --infodi | --infod | --info | --inf)
  393. ac_prev=infodir ;;
  394. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  395. infodir=$ac_optarg ;;
  396. -libdir | --libdir | --libdi | --libd)
  397. ac_prev=libdir ;;
  398. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  399. libdir=$ac_optarg ;;
  400. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  401. | --libexe | --libex | --libe)
  402. ac_prev=libexecdir ;;
  403. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  404. | --libexe=* | --libex=* | --libe=*)
  405. libexecdir=$ac_optarg ;;
  406. -localstatedir | --localstatedir | --localstatedi | --localstated \
  407. | --localstate | --localstat | --localsta | --localst \
  408. | --locals | --local | --loca | --loc | --lo)
  409. ac_prev=localstatedir ;;
  410. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  411. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  412. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  413. localstatedir=$ac_optarg ;;
  414. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  415. ac_prev=mandir ;;
  416. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  417. mandir=$ac_optarg ;;
  418. -nfp | --nfp | --nf)
  419. # Obsolete; use --without-fp.
  420. with_fp=no ;;
  421. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  422. | --no-cr | --no-c | -n)
  423. no_create=yes ;;
  424. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  425. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  426. no_recursion=yes ;;
  427. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  428. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  429. | --oldin | --oldi | --old | --ol | --o)
  430. ac_prev=oldincludedir ;;
  431. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  432. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  433. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  434. oldincludedir=$ac_optarg ;;
  435. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  436. ac_prev=prefix ;;
  437. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  438. prefix=$ac_optarg ;;
  439. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  440. | --program-pre | --program-pr | --program-p)
  441. ac_prev=program_prefix ;;
  442. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  443. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  444. program_prefix=$ac_optarg ;;
  445. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  446. | --program-suf | --program-su | --program-s)
  447. ac_prev=program_suffix ;;
  448. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  449. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  450. program_suffix=$ac_optarg ;;
  451. -program-transform-name | --program-transform-name \
  452. | --program-transform-nam | --program-transform-na \
  453. | --program-transform-n | --program-transform- \
  454. | --program-transform | --program-transfor \
  455. | --program-transfo | --program-transf \
  456. | --program-trans | --program-tran \
  457. | --progr-tra | --program-tr | --program-t)
  458. ac_prev=program_transform_name ;;
  459. -program-transform-name=* | --program-transform-name=* \
  460. | --program-transform-nam=* | --program-transform-na=* \
  461. | --program-transform-n=* | --program-transform-=* \
  462. | --program-transform=* | --program-transfor=* \
  463. | --program-transfo=* | --program-transf=* \
  464. | --program-trans=* | --program-tran=* \
  465. | --progr-tra=* | --program-tr=* | --program-t=*)
  466. program_transform_name=$ac_optarg ;;
  467. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  468. | -silent | --silent | --silen | --sile | --sil)
  469. silent=yes ;;
  470. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  471. ac_prev=sbindir ;;
  472. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  473. | --sbi=* | --sb=*)
  474. sbindir=$ac_optarg ;;
  475. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  476. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  477. | --sharedst | --shareds | --shared | --share | --shar \
  478. | --sha | --sh)
  479. ac_prev=sharedstatedir ;;
  480. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  481. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  482. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  483. | --sha=* | --sh=*)
  484. sharedstatedir=$ac_optarg ;;
  485. -site | --site | --sit)
  486. ac_prev=site ;;
  487. -site=* | --site=* | --sit=*)
  488. site=$ac_optarg ;;
  489. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  490. ac_prev=srcdir ;;
  491. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  492. srcdir=$ac_optarg ;;
  493. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  494. | --syscon | --sysco | --sysc | --sys | --sy)
  495. ac_prev=sysconfdir ;;
  496. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  497. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  498. sysconfdir=$ac_optarg ;;
  499. -target | --target | --targe | --targ | --tar | --ta | --t)
  500. ac_prev=target_alias ;;
  501. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  502. target_alias=$ac_optarg ;;
  503. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  504. verbose=yes ;;
  505. -version | --version | --versio | --versi | --vers | -V)
  506. ac_init_version=: ;;
  507. -with-* | --with-*)
  508. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  509. # Reject names that are not valid shell variable names.
  510. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  511. { echo "$as_me: error: invalid package name: $ac_package" >&2
  512. { (exit 1); exit 1; }; }
  513. ac_package=`echo $ac_package| sed 's/-/_/g'`
  514. case $ac_option in
  515. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  516. *) ac_optarg=yes ;;
  517. esac
  518. eval "with_$ac_package='$ac_optarg'" ;;
  519. -without-* | --without-*)
  520. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  521. # Reject names that are not valid shell variable names.
  522. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  523. { echo "$as_me: error: invalid package name: $ac_package" >&2
  524. { (exit 1); exit 1; }; }
  525. ac_package=`echo $ac_package | sed 's/-/_/g'`
  526. eval "with_$ac_package=no" ;;
  527. --x)
  528. # Obsolete; use --with-x.
  529. with_x=yes ;;
  530. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  531. | --x-incl | --x-inc | --x-in | --x-i)
  532. ac_prev=x_includes ;;
  533. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  534. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  535. x_includes=$ac_optarg ;;
  536. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  537. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  538. ac_prev=x_libraries ;;
  539. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  540. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  541. x_libraries=$ac_optarg ;;
  542. -*) { echo "$as_me: error: unrecognized option: $ac_option
  543. Try \`$0 --help' for more information." >&2
  544. { (exit 1); exit 1; }; }
  545. ;;
  546. *=*)
  547. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  548. # Reject names that are not valid shell variable names.
  549. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  550. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  551. { (exit 1); exit 1; }; }
  552. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  553. eval "$ac_envvar='$ac_optarg'"
  554. export $ac_envvar ;;
  555. *)
  556. # FIXME: should be removed in autoconf 3.0.
  557. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  558. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  559. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  560. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  561. ;;
  562. esac
  563. done
  564. if test -n "$ac_prev"; then
  565. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  566. { echo "$as_me: error: missing argument to $ac_option" >&2
  567. { (exit 1); exit 1; }; }
  568. fi
  569. # Be sure to have absolute paths.
  570. for ac_var in exec_prefix prefix
  571. do
  572. eval ac_val=$`echo $ac_var`
  573. case $ac_val in
  574. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  575. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  576. { (exit 1); exit 1; }; };;
  577. esac
  578. done
  579. # Be sure to have absolute paths.
  580. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  581. localstatedir libdir includedir oldincludedir infodir mandir
  582. do
  583. eval ac_val=$`echo $ac_var`
  584. case $ac_val in
  585. [\\/$]* | ?:[\\/]* ) ;;
  586. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  587. { (exit 1); exit 1; }; };;
  588. esac
  589. done
  590. # There might be people who depend on the old broken behavior: `$host'
  591. # used to hold the argument of --host etc.
  592. # FIXME: To remove some day.
  593. build=$build_alias
  594. host=$host_alias
  595. target=$target_alias
  596. # FIXME: To remove some day.
  597. if test "x$host_alias" != x; then
  598. if test "x$build_alias" = x; then
  599. cross_compiling=maybe
  600. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  601. If a cross compiler is detected then cross compile mode will be used." >&2
  602. elif test "x$build_alias" != "x$host_alias"; then
  603. cross_compiling=yes
  604. fi
  605. fi
  606. ac_tool_prefix=
  607. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  608. test "$silent" = yes && exec 6>/dev/null
  609. # Find the source files, if location was not specified.
  610. if test -z "$srcdir"; then
  611. ac_srcdir_defaulted=yes
  612. # Try the directory containing this script, then its parent.
  613. ac_confdir=`(dirname "$0") 2>/dev/null ||
  614. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  615. X"$0" : 'X\(//\)[^/]' \| \
  616. X"$0" : 'X\(//\)$' \| \
  617. X"$0" : 'X\(/\)' \| \
  618. . : '\(.\)' 2>/dev/null ||
  619. echo X"$0" |
  620. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  621. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  622. /^X\(\/\/\)$/{ s//\1/; q; }
  623. /^X\(\/\).*/{ s//\1/; q; }
  624. s/.*/./; q'`
  625. srcdir=$ac_confdir
  626. if test ! -r $srcdir/$ac_unique_file; then
  627. srcdir=..
  628. fi
  629. else
  630. ac_srcdir_defaulted=no
  631. fi
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. if test "$ac_srcdir_defaulted" = yes; then
  634. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  635. { (exit 1); exit 1; }; }
  636. else
  637. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  638. { (exit 1); exit 1; }; }
  639. fi
  640. fi
  641. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  642. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  643. { (exit 1); exit 1; }; }
  644. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  645. ac_env_build_alias_set=${build_alias+set}
  646. ac_env_build_alias_value=$build_alias
  647. ac_cv_env_build_alias_set=${build_alias+set}
  648. ac_cv_env_build_alias_value=$build_alias
  649. ac_env_host_alias_set=${host_alias+set}
  650. ac_env_host_alias_value=$host_alias
  651. ac_cv_env_host_alias_set=${host_alias+set}
  652. ac_cv_env_host_alias_value=$host_alias
  653. ac_env_target_alias_set=${target_alias+set}
  654. ac_env_target_alias_value=$target_alias
  655. ac_cv_env_target_alias_set=${target_alias+set}
  656. ac_cv_env_target_alias_value=$target_alias
  657. ac_env_CXX_set=${CXX+set}
  658. ac_env_CXX_value=$CXX
  659. ac_cv_env_CXX_set=${CXX+set}
  660. ac_cv_env_CXX_value=$CXX
  661. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  662. ac_env_CXXFLAGS_value=$CXXFLAGS
  663. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  664. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  665. ac_env_LDFLAGS_set=${LDFLAGS+set}
  666. ac_env_LDFLAGS_value=$LDFLAGS
  667. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  668. ac_cv_env_LDFLAGS_value=$LDFLAGS
  669. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  670. ac_env_CPPFLAGS_value=$CPPFLAGS
  671. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  672. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  673. ac_env_CC_set=${CC+set}
  674. ac_env_CC_value=$CC
  675. ac_cv_env_CC_set=${CC+set}
  676. ac_cv_env_CC_value=$CC
  677. ac_env_CFLAGS_set=${CFLAGS+set}
  678. ac_env_CFLAGS_value=$CFLAGS
  679. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  680. ac_cv_env_CFLAGS_value=$CFLAGS
  681. ac_env_F77_set=${F77+set}
  682. ac_env_F77_value=$F77
  683. ac_cv_env_F77_set=${F77+set}
  684. ac_cv_env_F77_value=$F77
  685. ac_env_FFLAGS_set=${FFLAGS+set}
  686. ac_env_FFLAGS_value=$FFLAGS
  687. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  688. ac_cv_env_FFLAGS_value=$FFLAGS
  689. ac_env_CPP_set=${CPP+set}
  690. ac_env_CPP_value=$CPP
  691. ac_cv_env_CPP_set=${CPP+set}
  692. ac_cv_env_CPP_value=$CPP
  693. #
  694. # Report the --help message.
  695. #
  696. if test "$ac_init_help" = "long"; then
  697. # Omit some internal or obsolete options to make the list less imposing.
  698. # This message is too long to be a string in the A/UX 3.1 sh.
  699. cat <<_ACEOF
  700. \`configure' configures CALCRL 1.0 to adapt to many kinds of systems.
  701. Usage: $0 [OPTION]... [VAR=VALUE]...
  702. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  703. VAR=VALUE. See below for descriptions of some of the useful variables.
  704. Defaults for the options are specified in brackets.
  705. Configuration:
  706. -h, --help display this help and exit
  707. --help=short display options specific to this package
  708. --help=recursive display the short help of all the included packages
  709. -V, --version display version information and exit
  710. -q, --quiet, --silent do not print \`checking...' messages
  711. --cache-file=FILE cache test results in FILE [disabled]
  712. -C, --config-cache alias for \`--cache-file=config.cache'
  713. -n, --no-create do not create output files
  714. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  715. _ACEOF
  716. cat <<_ACEOF
  717. Installation directories:
  718. --prefix=PREFIX install architecture-independent files in PREFIX
  719. [$ac_default_prefix]
  720. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  721. [PREFIX]
  722. By default, \`make install' will install all the files in
  723. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  724. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  725. for instance \`--prefix=\$HOME'.
  726. For better control, use the options below.
  727. Fine tuning of the installation directories:
  728. --bindir=DIR user executables [EPREFIX/bin]
  729. --sbindir=DIR system admin executables [EPREFIX/sbin]
  730. --libexecdir=DIR program executables [EPREFIX/libexec]
  731. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  732. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  733. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  734. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  735. --libdir=DIR object code libraries [EPREFIX/lib]
  736. --includedir=DIR C header files [PREFIX/include]
  737. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  738. --infodir=DIR info documentation [PREFIX/info]
  739. --mandir=DIR man documentation [PREFIX/man]
  740. _ACEOF
  741. cat <<\_ACEOF
  742. Program names:
  743. --program-prefix=PREFIX prepend PREFIX to installed program names
  744. --program-suffix=SUFFIX append SUFFIX to installed program names
  745. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  746. System types:
  747. --build=BUILD configure for building on BUILD [guessed]
  748. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  749. _ACEOF
  750. fi
  751. if test -n "$ac_init_help"; then
  752. case $ac_init_help in
  753. short | recursive ) echo "Configuration of CALCRL 1.0:";;
  754. esac
  755. cat <<\_ACEOF
  756. Optional Features:
  757. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  758. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  759. --disable-dependency-tracking Speeds up one-time builds
  760. --enable-dependency-tracking Do not reject slow dependency extractors
  761. Some influential environment variables:
  762. CXX C++ compiler command
  763. CXXFLAGS C++ compiler flags
  764. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  765. nonstandard directory <lib dir>
  766. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  767. headers in a nonstandard directory <include dir>
  768. CC C compiler command
  769. CFLAGS C compiler flags
  770. F77 Fortran 77 compiler command
  771. FFLAGS Fortran 77 compiler flags
  772. CPP C preprocessor
  773. Use these variables to override the choices made by `configure' or to help
  774. it to find libraries and programs with nonstandard names/locations.
  775. Report bugs to <zahn.sharon@mayo.edu>.
  776. _ACEOF
  777. fi
  778. if test "$ac_init_help" = "recursive"; then
  779. # If there are subdirs, report their specific --help.
  780. ac_popdir=`pwd`
  781. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  782. test -d $ac_dir || continue
  783. ac_builddir=.
  784. if test "$ac_dir" != .; then
  785. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  786. # A "../" for each directory in $ac_dir_suffix.
  787. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  788. else
  789. ac_dir_suffix= ac_top_builddir=
  790. fi
  791. case $srcdir in
  792. .) # No --srcdir option. We are building in place.
  793. ac_srcdir=.
  794. if test -z "$ac_top_builddir"; then
  795. ac_top_srcdir=.
  796. else
  797. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  798. fi ;;
  799. [\\/]* | ?:[\\/]* ) # Absolute path.
  800. ac_srcdir=$srcdir$ac_dir_suffix;
  801. ac_top_srcdir=$srcdir ;;
  802. *) # Relative path.
  803. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  804. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  805. esac
  806. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  807. # absolute.
  808. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  809. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  810. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  811. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  812. cd $ac_dir
  813. # Check for guested configure; otherwise get Cygnus style configure.
  814. if test -f $ac_srcdir/configure.gnu; then
  815. echo
  816. $SHELL $ac_srcdir/configure.gnu --help=recursive
  817. elif test -f $ac_srcdir/configure; then
  818. echo
  819. $SHELL $ac_srcdir/configure --help=recursive
  820. elif test -f $ac_srcdir/configure.ac ||
  821. test -f $ac_srcdir/configure.in; then
  822. echo
  823. $ac_configure --help
  824. else
  825. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  826. fi
  827. cd $ac_popdir
  828. done
  829. fi
  830. test -n "$ac_init_help" && exit 0
  831. if $ac_init_version; then
  832. cat <<\_ACEOF
  833. CALCRL configure 1.0
  834. generated by GNU Autoconf 2.54
  835. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  836. Free Software Foundation, Inc.
  837. This configure script is free software; the Free Software Foundation
  838. gives unlimited permission to copy, distribute and modify it.
  839. _ACEOF
  840. exit 0
  841. fi
  842. exec 5>config.log
  843. cat >&5 <<_ACEOF
  844. This file contains any messages produced by compilers while
  845. running configure, to aid debugging if configure makes a mistake.
  846. It was created by CALCRL $as_me 1.0, which was
  847. generated by GNU Autoconf 2.54. Invocation command line was
  848. $ $0 $@
  849. _ACEOF
  850. {
  851. cat <<_ASUNAME
  852. ## --------- ##
  853. ## Platform. ##
  854. ## --------- ##
  855. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  856. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  857. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  858. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  859. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  860. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  861. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  862. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  863. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  864. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  865. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  866. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  867. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  868. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  869. _ASUNAME
  870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  871. for as_dir in $PATH
  872. do
  873. IFS=$as_save_IFS
  874. test -z "$as_dir" && as_dir=.
  875. echo "PATH: $as_dir"
  876. done
  877. } >&5
  878. cat >&5 <<_ACEOF
  879. ## ----------- ##
  880. ## Core tests. ##
  881. ## ----------- ##
  882. _ACEOF
  883. # Keep a trace of the command line.
  884. # Strip out --no-create and --no-recursion so they do not pile up.
  885. # Also quote any args containing shell meta-characters.
  886. ac_configure_args=
  887. ac_sep=
  888. for ac_arg
  889. do
  890. case $ac_arg in
  891. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  892. | --no-cr | --no-c | -n ) continue ;;
  893. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  894. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  895. continue ;;
  896. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  897. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  898. esac
  899. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  900. # Get rid of the leading space.
  901. ac_sep=" "
  902. done
  903. # When interrupted or exit'd, cleanup temporary files, and complete
  904. # config.log. We remove comments because anyway the quotes in there
  905. # would cause problems or look ugly.
  906. # WARNING: Be sure not to use single quotes in there, as some shells,
  907. # such as our DU 5.0 friend, will then `close' the trap.
  908. trap 'exit_status=$?
  909. # Save into config.log some information that might help in debugging.
  910. {
  911. echo
  912. cat <<\_ASBOX
  913. ## ---------------- ##
  914. ## Cache variables. ##
  915. ## ---------------- ##
  916. _ASBOX
  917. echo
  918. # The following way of writing the cache mishandles newlines in values,
  919. {
  920. (set) 2>&1 |
  921. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  922. *ac_space=\ *)
  923. sed -n \
  924. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  925. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  926. ;;
  927. *)
  928. sed -n \
  929. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  930. ;;
  931. esac;
  932. }
  933. echo
  934. cat <<\_ASBOX
  935. ## ----------------- ##
  936. ## Output variables. ##
  937. ## ----------------- ##
  938. _ASBOX
  939. echo
  940. for ac_var in $ac_subst_vars
  941. do
  942. eval ac_val=$`echo $ac_var`
  943. echo "$ac_var='"'"'$ac_val'"'"'"
  944. done | sort
  945. echo
  946. if test -n "$ac_subst_files"; then
  947. cat <<\_ASBOX
  948. ## ------------- ##
  949. ## Output files. ##
  950. ## ------------- ##
  951. _ASBOX
  952. echo
  953. for ac_var in $ac_subst_files
  954. do
  955. eval ac_val=$`echo $ac_var`
  956. echo "$ac_var='"'"'$ac_val'"'"'"
  957. done | sort
  958. echo
  959. fi
  960. if test -s confdefs.h; then
  961. cat <<\_ASBOX
  962. ## ----------- ##
  963. ## confdefs.h. ##
  964. ## ----------- ##
  965. _ASBOX
  966. echo
  967. sed "/^$/d" confdefs.h | sort
  968. echo
  969. fi
  970. test "$ac_signal" != 0 &&
  971. echo "$as_me: caught signal $ac_signal"
  972. echo "$as_me: exit $exit_status"
  973. } >&5
  974. rm -f core core.* *.core &&
  975. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  976. exit $exit_status
  977. ' 0
  978. for ac_signal in 1 2 13 15; do
  979. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  980. done
  981. ac_signal=0
  982. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  983. rm -rf conftest* confdefs.h
  984. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  985. echo >confdefs.h
  986. # Predefined preprocessor variables.
  987. cat >>confdefs.h <<_ACEOF
  988. #define PACKAGE_NAME "$PACKAGE_NAME"
  989. _ACEOF
  990. cat >>confdefs.h <<_ACEOF
  991. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  992. _ACEOF
  993. cat >>confdefs.h <<_ACEOF
  994. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  995. _ACEOF
  996. cat >>confdefs.h <<_ACEOF
  997. #define PACKAGE_STRING "$PACKAGE_STRING"
  998. _ACEOF
  999. cat >>confdefs.h <<_ACEOF
  1000. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1001. _ACEOF
  1002. # Let the site file select an alternate cache file if it wants to.
  1003. # Prefer explicitly selected file to automatically selected ones.
  1004. if test -z "$CONFIG_SITE"; then
  1005. if test "x$prefix" != xNONE; then
  1006. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1007. else
  1008. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1009. fi
  1010. fi
  1011. for ac_site_file in $CONFIG_SITE; do
  1012. if test -r "$ac_site_file"; then
  1013. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1014. echo "$as_me: loading site script $ac_site_file" >&6;}
  1015. sed 's/^/| /' "$ac_site_file" >&5
  1016. . "$ac_site_file"
  1017. fi
  1018. done
  1019. if test -r "$cache_file"; then
  1020. # Some versions of bash will fail to source /dev/null (special
  1021. # files actually), so we avoid doing that.
  1022. if test -f "$cache_file"; then
  1023. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1024. echo "$as_me: loading cache $cache_file" >&6;}
  1025. case $cache_file in
  1026. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1027. *) . ./$cache_file;;
  1028. esac
  1029. fi
  1030. else
  1031. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1032. echo "$as_me: creating cache $cache_file" >&6;}
  1033. >$cache_file
  1034. fi
  1035. # Check that the precious variables saved in the cache have kept the same
  1036. # value.
  1037. ac_cache_corrupted=false
  1038. for ac_var in `(set) 2>&1 |
  1039. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1040. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1041. eval ac_new_set=\$ac_env_${ac_var}_set
  1042. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1043. eval ac_new_val="\$ac_env_${ac_var}_value"
  1044. case $ac_old_set,$ac_new_set in
  1045. set,)
  1046. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1047. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1048. ac_cache_corrupted=: ;;
  1049. ,set)
  1050. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1051. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1052. ac_cache_corrupted=: ;;
  1053. ,);;
  1054. *)
  1055. if test "x$ac_old_val" != "x$ac_new_val"; then
  1056. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1057. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1058. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1059. echo "$as_me: former value: $ac_old_val" >&2;}
  1060. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1061. echo "$as_me: current value: $ac_new_val" >&2;}
  1062. ac_cache_corrupted=:
  1063. fi;;
  1064. esac
  1065. # Pass precious variables to config.status.
  1066. if test "$ac_new_set" = set; then
  1067. case $ac_new_val in
  1068. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1069. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1070. *) ac_arg=$ac_var=$ac_new_val ;;
  1071. esac
  1072. case " $ac_configure_args " in
  1073. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1074. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1075. esac
  1076. fi
  1077. done
  1078. if $ac_cache_corrupted; then
  1079. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1080. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1081. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1082. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1083. { (exit 1); exit 1; }; }
  1084. fi
  1085. ac_ext=c
  1086. ac_cpp='$CPP $CPPFLAGS'
  1087. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1088. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1089. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1090. #----------------------------------------------------------------
  1091. # Give autoconf a point of reference, and tell it that
  1092. # we're going to use automake later.
  1093. #----------------------------------------------------------------
  1094. am__api_version="1.7"
  1095. ac_aux_dir=
  1096. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1097. if test -f $ac_dir/install-sh; then
  1098. ac_aux_dir=$ac_dir
  1099. ac_install_sh="$ac_aux_dir/install-sh -c"
  1100. break
  1101. elif test -f $ac_dir/install.sh; then
  1102. ac_aux_dir=$ac_dir
  1103. ac_install_sh="$ac_aux_dir/install.sh -c"
  1104. break
  1105. elif test -f $ac_dir/shtool; then
  1106. ac_aux_dir=$ac_dir
  1107. ac_install_sh="$ac_aux_dir/shtool install -c"
  1108. break
  1109. fi
  1110. done
  1111. if test -z "$ac_aux_dir"; then
  1112. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1113. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1114. { (exit 1); exit 1; }; }
  1115. fi
  1116. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1117. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1118. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1119. # Find a good install program. We prefer a C program (faster),
  1120. # so one script is as good as another. But avoid the broken or
  1121. # incompatible versions:
  1122. # SysV /etc/install, /usr/sbin/install
  1123. # SunOS /usr/etc/install
  1124. # IRIX /sbin/install
  1125. # AIX /bin/install
  1126. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1127. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1128. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1129. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1130. # ./install, which can be erroneously created by make from ./install.sh.
  1131. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1132. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1133. if test -z "$INSTALL"; then
  1134. if test "${ac_cv_path_install+set}" = set; then
  1135. echo $ECHO_N "(cached) $ECHO_C" >&6
  1136. else
  1137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1138. for as_dir in $PATH
  1139. do
  1140. IFS=$as_save_IFS
  1141. test -z "$as_dir" && as_dir=.
  1142. # Account for people who put trailing slashes in PATH elements.
  1143. case $as_dir/ in
  1144. ./ | .// | /cC/* | \
  1145. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1146. /usr/ucb/* ) ;;
  1147. *)
  1148. # OSF1 and SCO ODT 3.0 have their own names for install.
  1149. # Don't use installbsd from OSF since it installs stuff as root
  1150. # by default.
  1151. for ac_prog in ginstall scoinst install; do
  1152. for ac_exec_ext in '' $ac_executable_extensions; do
  1153. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1154. if test $ac_prog = install &&
  1155. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1156. # AIX install. It has an incompatible calling convention.
  1157. :
  1158. elif test $ac_prog = install &&
  1159. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1160. # program-specific install script used by HP pwplus--don't use.
  1161. :
  1162. else
  1163. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1164. break 3
  1165. fi
  1166. fi
  1167. done
  1168. done
  1169. ;;
  1170. esac
  1171. done
  1172. fi
  1173. if test "${ac_cv_path_install+set}" = set; then
  1174. INSTALL=$ac_cv_path_install
  1175. else
  1176. # As a last resort, use the slow shell script. We don't cache a
  1177. # path for INSTALL within a source directory, because that will
  1178. # break other packages using the cache if that directory is
  1179. # removed, or if the path is relative.
  1180. INSTALL=$ac_install_sh
  1181. fi
  1182. fi
  1183. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1184. echo "${ECHO_T}$INSTALL" >&6
  1185. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1186. # It thinks the first close brace ends the variable substitution.
  1187. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1188. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1189. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1190. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1191. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1192. # Just in case
  1193. sleep 1
  1194. echo timestamp > conftest.file
  1195. # Do `set' in a subshell so we don't clobber the current shell's
  1196. # arguments. Must try -L first in case configure is actually a
  1197. # symlink; some systems play weird games with the mod time of symlinks
  1198. # (eg FreeBSD returns the mod time of the symlink's containing
  1199. # directory).
  1200. if (
  1201. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1202. if test "$*" = "X"; then
  1203. # -L didn't work.
  1204. set X `ls -t $srcdir/configure conftest.file`
  1205. fi
  1206. rm -f conftest.file
  1207. if test "$*" != "X $srcdir/configure conftest.file" \
  1208. && test "$*" != "X conftest.file $srcdir/configure"; then
  1209. # If neither matched, then we have a broken ls. This can happen
  1210. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1211. # broken ls alias from the environment. This has actually
  1212. # happened. Such a system could not be considered "sane".
  1213. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1214. alias in your environment" >&5
  1215. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1216. alias in your environment" >&2;}
  1217. { (exit 1); exit 1; }; }
  1218. fi
  1219. test "$2" = conftest.file
  1220. )
  1221. then
  1222. # Ok.
  1223. :
  1224. else
  1225. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1226. Check your system clock" >&5
  1227. echo "$as_me: error: newly created file is older than distributed files!
  1228. Check your system clock" >&2;}
  1229. { (exit 1); exit 1; }; }
  1230. fi
  1231. echo "$as_me:$LINENO: result: yes" >&5
  1232. echo "${ECHO_T}yes" >&6
  1233. test "$program_prefix" != NONE &&
  1234. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1235. # Use a double $ so make ignores it.
  1236. test "$program_suffix" != NONE &&
  1237. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1238. # Double any \ or $. echo might interpret backslashes.
  1239. # By default was `s,x,x', remove it if useless.
  1240. cat <<\_ACEOF >conftest.sed
  1241. s/[\\$]/&&/g;s/;s,x,x,$//
  1242. _ACEOF
  1243. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1244. rm conftest.sed
  1245. # expand $ac_aux_dir to an absolute path
  1246. am_aux_dir=`cd $ac_aux_dir && pwd`
  1247. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1248. # Use eval to expand $SHELL
  1249. if eval "$MISSING --run true"; then
  1250. am_missing_run="$MISSING --run "
  1251. else
  1252. am_missing_run=
  1253. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1254. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1255. fi
  1256. for ac_prog in gawk mawk nawk awk
  1257. do
  1258. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1259. set dummy $ac_prog; ac_word=$2
  1260. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1261. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1262. if test "${ac_cv_prog_AWK+set}" = set; then
  1263. echo $ECHO_N "(cached) $ECHO_C" >&6
  1264. else
  1265. if test -n "$AWK"; then
  1266. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1267. else
  1268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1269. for as_dir in $PATH
  1270. do
  1271. IFS=$as_save_IFS
  1272. test -z "$as_dir" && as_dir=.
  1273. for ac_exec_ext in '' $ac_executable_extensions; do
  1274. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1275. ac_cv_prog_AWK="$ac_prog"
  1276. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1277. break 2
  1278. fi
  1279. done
  1280. done
  1281. fi
  1282. fi
  1283. AWK=$ac_cv_prog_AWK
  1284. if test -n "$AWK"; then
  1285. echo "$as_me:$LINENO: result: $AWK" >&5
  1286. echo "${ECHO_T}$AWK" >&6
  1287. else
  1288. echo "$as_me:$LINENO: result: no" >&5
  1289. echo "${ECHO_T}no" >&6
  1290. fi
  1291. test -n "$AWK" && break
  1292. done
  1293. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1294. echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  1295. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1296. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1297. echo $ECHO_N "(cached) $ECHO_C" >&6
  1298. else
  1299. cat >conftest.make <<\_ACEOF
  1300. all:
  1301. @echo 'ac_maketemp="${MAKE}"'
  1302. _ACEOF
  1303. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1304. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1305. if test -n "$ac_maketemp"; then
  1306. eval ac_cv_prog_make_${ac_make}_set=yes
  1307. else
  1308. eval ac_cv_prog_make_${ac_make}_set=no
  1309. fi
  1310. rm -f conftest.make
  1311. fi
  1312. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1313. echo "$as_me:$LINENO: result: yes" >&5
  1314. echo "${ECHO_T}yes" >&6
  1315. SET_MAKE=
  1316. else
  1317. echo "$as_me:$LINENO: result: no" >&5
  1318. echo "${ECHO_T}no" >&6
  1319. SET_MAKE="MAKE=${MAKE-make}"
  1320. fi
  1321. # test to see if srcdir already configured
  1322. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1323. test -f $srcdir/config.status; then
  1324. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1325. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1326. { (exit 1); exit 1; }; }
  1327. fi
  1328. # test whether we have cygpath
  1329. if test -z "$CYGPATH_W"; then
  1330. if (cygpath --version) >/dev/null 2>/dev/null; then
  1331. CYGPATH_W='cygpath -w'
  1332. else
  1333. CYGPATH_W=echo
  1334. fi
  1335. fi
  1336. # Define the identity of the package.
  1337. PACKAGE=calcrl
  1338. VERSION=1.0
  1339. cat >>confdefs.h <<_ACEOF
  1340. #define PACKAGE "$PACKAGE"
  1341. _ACEOF
  1342. cat >>confdefs.h <<_ACEOF
  1343. #define VERSION "$VERSION"
  1344. _ACEOF
  1345. # Some tools Automake needs.
  1346. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1347. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1348. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1349. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1350. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1351. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1352. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1353. # Installed binaries are usually stripped using `strip' when the user
  1354. # run `make install-strip'. However `strip' might not be the right
  1355. # tool to use in cross-compilation environments, therefore Automake
  1356. # will honor the `STRIP' environment variable to overrule this program.
  1357. if test "$cross_compiling" != no; then
  1358. if test -n "$ac_tool_prefix"; then
  1359. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1360. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1361. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1362. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1363. if test "${ac_cv_prog_STRIP+set}" = set; then
  1364. echo $ECHO_N "(cached) $ECHO_C" >&6
  1365. else
  1366. if test -n "$STRIP"; then
  1367. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1368. else
  1369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1370. for as_dir in $PATH
  1371. do
  1372. IFS=$as_save_IFS
  1373. test -z "$as_dir" && as_dir=.
  1374. for ac_exec_ext in '' $ac_executable_extensions; do
  1375. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1376. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1377. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1378. break 2
  1379. fi
  1380. done
  1381. done
  1382. fi
  1383. fi
  1384. STRIP=$ac_cv_prog_STRIP
  1385. if test -n "$STRIP"; then
  1386. echo "$as_me:$LINENO: result: $STRIP" >&5
  1387. echo "${ECHO_T}$STRIP" >&6
  1388. else
  1389. echo "$as_me:$LINENO: result: no" >&5
  1390. echo "${ECHO_T}no" >&6
  1391. fi
  1392. fi
  1393. if test -z "$ac_cv_prog_STRIP"; then
  1394. ac_ct_STRIP=$STRIP
  1395. # Extract the first word of "strip", so it can be a program name with args.
  1396. set dummy strip; ac_word=$2
  1397. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1398. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1399. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1400. echo $ECHO_N "(cached) $ECHO_C" >&6
  1401. else
  1402. if test -n "$ac_ct_STRIP"; then
  1403. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1404. else
  1405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1406. for as_dir in $PATH
  1407. do
  1408. IFS=$as_save_IFS
  1409. test -z "$as_dir" && as_dir=.
  1410. for ac_exec_ext in '' $ac_executable_extensions; do
  1411. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1412. ac_cv_prog_ac_ct_STRIP="strip"
  1413. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1414. break 2
  1415. fi
  1416. done
  1417. done
  1418. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1419. fi
  1420. fi
  1421. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1422. if test -n "$ac_ct_STRIP"; then
  1423. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1424. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1425. else
  1426. echo "$as_me:$LINENO: result: no" >&5
  1427. echo "${ECHO_T}no" >&6
  1428. fi
  1429. STRIP=$ac_ct_STRIP
  1430. else
  1431. STRIP="$ac_cv_prog_STRIP"
  1432. fi
  1433. fi
  1434. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1435. # We need awk for the "check" target. The system "awk" is bad on
  1436. # some platforms.
  1437. #----------------------------------------------------------------
  1438. # Check platform name so we can specify particular
  1439. # compilers and switches that we like.
  1440. #----------------------------------------------------------------
  1441. # Make sure we can run config.sub.
  1442. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1443. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1444. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1445. { (exit 1); exit 1; }; }
  1446. echo "$as_me:$LINENO: checking build system type" >&5
  1447. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1448. if test "${ac_cv_build+set}" = set; then
  1449. echo $ECHO_N "(cached) $ECHO_C" >&6
  1450. else
  1451. ac_cv_build_alias=$build_alias
  1452. test -z "$ac_cv_build_alias" &&
  1453. ac_cv_build_alias=`$ac_config_guess`
  1454. test -z "$ac_cv_build_alias" &&
  1455. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1456. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1457. { (exit 1); exit 1; }; }
  1458. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1459. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1460. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1461. { (exit 1); exit 1; }; }
  1462. fi
  1463. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1464. echo "${ECHO_T}$ac_cv_build" >&6
  1465. build=$ac_cv_build
  1466. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1467. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1468. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1469. echo "$as_me:$LINENO: checking host system type" >&5
  1470. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1471. if test "${ac_cv_host+set}" = set; then
  1472. echo $ECHO_N "(cached) $ECHO_C" >&6
  1473. else
  1474. ac_cv_host_alias=$host_alias
  1475. test -z "$ac_cv_host_alias" &&
  1476. ac_cv_host_alias=$ac_cv_build_alias
  1477. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1478. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1479. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1480. { (exit 1); exit 1; }; }
  1481. fi
  1482. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1483. echo "${ECHO_T}$ac_cv_host" >&6
  1484. host=$ac_cv_host
  1485. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1486. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1487. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1488. case "${host}" in
  1489. *hpux11*)
  1490. CC=cc
  1491. CXX=aCC
  1492. CXXFLAGS="+O3 -DFORTRAN_UNDERBARS"
  1493. F77=f90
  1494. FFLAGS="+ppu -O2"
  1495. ;;
  1496. *cygwin*)
  1497. # On Windows using Cygwin
  1498. # Use the GNU compilers, but not the cygwin.dll,
  1499. # which would infect our code with the GPL.
  1500. # Note that we must also specify the gcc compiler,
  1501. # as the -mno-cygwin switch makes it behave differently
  1502. # for many of the configure tests.
  1503. CC="gcc -mno-cygwin"
  1504. CXX="g++ -mno-cygwin"
  1505. F77="g77 -mno-cygwin"
  1506. AM_CXXFLAGS="-DFORTRAN_UNDERBARS"
  1507. ;;
  1508. esac
  1509. #----------------------------------------------------------------
  1510. # Portabiliy checks were, for the most part, generated by
  1511. # an initial 'autoscan' of the source code. The configure
  1512. # script checks the system for features and generates the
  1513. # compile commands with flags like -DHAVE_STDLIB_H=1, but
  1514. # the nmmtl source code does not (as of this writing) take
  1515. # advantage of those flags.
  1516. #----------------------------------------------------------------
  1517. #----------------------------------------------------------------
  1518. # Checks for programs.
  1519. #----------------------------------------------------------------
  1520. ac_ext=cc
  1521. ac_cpp='$CXXCPP $CPPFLAGS'
  1522. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1523. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1524. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1525. if test -n "$ac_tool_prefix"; then
  1526. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1527. do
  1528. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1529. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1530. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1531. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1532. if test "${ac_cv_prog_CXX+set}" = set; then
  1533. echo $ECHO_N "(cached) $ECHO_C" >&6
  1534. else
  1535. if test -n "$CXX"; then
  1536. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1537. else
  1538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1539. for as_dir in $PATH
  1540. do
  1541. IFS=$as_save_IFS
  1542. test -z "$as_dir" && as_dir=.
  1543. for ac_exec_ext in '' $ac_executable_extensions; do
  1544. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1545. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1546. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1547. break 2
  1548. fi
  1549. done
  1550. done
  1551. fi
  1552. fi
  1553. CXX=$ac_cv_prog_CXX
  1554. if test -n "$CXX"; then
  1555. echo "$as_me:$LINENO: result: $CXX" >&5
  1556. echo "${ECHO_T}$CXX" >&6
  1557. else
  1558. echo "$as_me:$LINENO: result: no" >&5
  1559. echo "${ECHO_T}no" >&6
  1560. fi
  1561. test -n "$CXX" && break
  1562. done
  1563. fi
  1564. if test -z "$CXX"; then
  1565. ac_ct_CXX=$CXX
  1566. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1567. do
  1568. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1569. set dummy $ac_prog; ac_word=$2
  1570. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1571. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1572. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1573. echo $ECHO_N "(cached) $ECHO_C" >&6
  1574. else
  1575. if test -n "$ac_ct_CXX"; then
  1576. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1577. else
  1578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1579. for as_dir in $PATH
  1580. do
  1581. IFS=$as_save_IFS
  1582. test -z "$as_dir" && as_dir=.
  1583. for ac_exec_ext in '' $ac_executable_extensions; do
  1584. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1585. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1586. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1587. break 2
  1588. fi
  1589. done
  1590. done
  1591. fi
  1592. fi
  1593. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1594. if test -n "$ac_ct_CXX"; then
  1595. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1596. echo "${ECHO_T}$ac_ct_CXX" >&6
  1597. else
  1598. echo "$as_me:$LINENO: result: no" >&5
  1599. echo "${ECHO_T}no" >&6
  1600. fi
  1601. test -n "$ac_ct_CXX" && break
  1602. done
  1603. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1604. CXX=$ac_ct_CXX
  1605. fi
  1606. # Provide some information about the compiler.
  1607. echo "$as_me:$LINENO:" \
  1608. "checking for C++ compiler version" >&5
  1609. ac_compiler=`set X $ac_compile; echo $2`
  1610. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1611. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1612. ac_status=$?
  1613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1614. (exit $ac_status); }
  1615. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1616. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1617. ac_status=$?
  1618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1619. (exit $ac_status); }
  1620. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1621. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1622. ac_status=$?
  1623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1624. (exit $ac_status); }
  1625. cat >conftest.$ac_ext <<_ACEOF
  1626. #line $LINENO "configure"
  1627. #include "confdefs.h"
  1628. int
  1629. main ()
  1630. {
  1631. ;
  1632. return 0;
  1633. }
  1634. _ACEOF
  1635. ac_clean_files_save=$ac_clean_files
  1636. ac_clean_files="$ac_clean_files a.out a.exe"
  1637. # Try to create an executable without -o first, disregard a.out.
  1638. # It will help us diagnose broken compilers, and finding out an intuition
  1639. # of exeext.
  1640. echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
  1641. echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
  1642. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1643. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1644. (eval $ac_link_default) 2>&5
  1645. ac_status=$?
  1646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1647. (exit $ac_status); }; then
  1648. # Find the output, starting from the most likely. This scheme is
  1649. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1650. # resort.
  1651. # Be careful to initialize this variable, since it used to be cached.
  1652. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1653. ac_cv_exeext=
  1654. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
  1655. test -f "$ac_file" || continue
  1656. case $ac_file in
  1657. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1658. a.out ) # We found the default executable, but exeext='' is most
  1659. # certainly right.
  1660. break;;
  1661. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1662. # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  1663. export ac_cv_exeext
  1664. break;;
  1665. * ) break;;
  1666. esac
  1667. done
  1668. else
  1669. echo "$as_me: failed program was:" >&5
  1670. cat conftest.$ac_ext >&5
  1671. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1672. check \`config.log' for details." >&5
  1673. echo "$as_me: error: C++ compiler cannot create executables
  1674. check \`config.log' for details." >&2;}
  1675. { (exit 77); exit 77; }; }
  1676. fi
  1677. ac_exeext=$ac_cv_exeext
  1678. echo "$as_me:$LINENO: result: $ac_file" >&5
  1679. echo "${ECHO_T}$ac_file" >&6
  1680. # Check the compiler produces executables we can run. If not, either
  1681. # the compiler is broken, or we cross compile.
  1682. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1683. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1684. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1685. # If not cross compiling, check that we can run a simple program.
  1686. if test "$cross_compiling" != yes; then
  1687. if { ac_try='./$ac_file'
  1688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1689. (eval $ac_try) 2>&5
  1690. ac_status=$?
  1691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1692. (exit $ac_status); }; }; then
  1693. cross_compiling=no
  1694. else
  1695. if test "$cross_compiling" = maybe; then
  1696. cross_compiling=yes
  1697. else
  1698. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1699. If you meant to cross compile, use \`--host'." >&5
  1700. echo "$as_me: error: cannot run C++ compiled programs.
  1701. If you meant to cross compile, use \`--host'." >&2;}
  1702. { (exit 1); exit 1; }; }
  1703. fi
  1704. fi
  1705. fi
  1706. echo "$as_me:$LINENO: result: yes" >&5
  1707. echo "${ECHO_T}yes" >&6
  1708. rm -f a.out a.exe conftest$ac_cv_exeext
  1709. ac_clean_files=$ac_clean_files_save
  1710. # Check the compiler produces executables we can run. If not, either
  1711. # the compiler is broken, or we cross compile.
  1712. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1713. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1714. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1715. echo "${ECHO_T}$cross_compiling" >&6
  1716. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1717. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1718. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1719. (eval $ac_link) 2>&5
  1720. ac_status=$?
  1721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1722. (exit $ac_status); }; then
  1723. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1724. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1725. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1726. # `rm'.
  1727. for ac_file in conftest.exe conftest conftest.*; do
  1728. test -f "$ac_file" || continue
  1729. case $ac_file in
  1730. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1731. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1732. export ac_cv_exeext
  1733. break;;
  1734. * ) break;;
  1735. esac
  1736. done
  1737. else
  1738. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
  1739. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
  1740. { (exit 1); exit 1; }; }
  1741. fi
  1742. rm -f conftest$ac_cv_exeext
  1743. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1744. echo "${ECHO_T}$ac_cv_exeext" >&6
  1745. rm -f conftest.$ac_ext
  1746. EXEEXT=$ac_cv_exeext
  1747. ac_exeext=$EXEEXT
  1748. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1749. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1750. if test "${ac_cv_objext+set}" = set; then
  1751. echo $ECHO_N "(cached) $ECHO_C" >&6
  1752. else
  1753. cat >conftest.$ac_ext <<_ACEOF
  1754. #line $LINENO "configure"
  1755. #include "confdefs.h"
  1756. int
  1757. main ()
  1758. {
  1759. ;
  1760. return 0;
  1761. }
  1762. _ACEOF
  1763. rm -f conftest.o conftest.obj
  1764. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1765. (eval $ac_compile) 2>&5
  1766. ac_status=$?
  1767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1768. (exit $ac_status); }; then
  1769. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1770. case $ac_file in
  1771. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1772. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1773. break;;
  1774. esac
  1775. done
  1776. else
  1777. echo "$as_me: failed program was:" >&5
  1778. cat conftest.$ac_ext >&5
  1779. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
  1780. echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
  1781. { (exit 1); exit 1; }; }
  1782. fi
  1783. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1784. fi
  1785. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1786. echo "${ECHO_T}$ac_cv_objext" >&6
  1787. OBJEXT=$ac_cv_objext
  1788. ac_objext=$OBJEXT
  1789. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1790. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1791. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1792. echo $ECHO_N "(cached) $ECHO_C" >&6
  1793. else
  1794. cat >conftest.$ac_ext <<_ACEOF
  1795. #line $LINENO "configure"
  1796. #include "confdefs.h"
  1797. int
  1798. main ()
  1799. {
  1800. #ifndef __GNUC__
  1801. choke me
  1802. #endif
  1803. ;
  1804. return 0;
  1805. }
  1806. _ACEOF
  1807. rm -f conftest.$ac_objext
  1808. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1809. (eval $ac_compile) 2>&5
  1810. ac_status=$?
  1811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1812. (exit $ac_status); } &&
  1813. { ac_try='test -s conftest.$ac_objext'
  1814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1815. (eval $ac_try) 2>&5
  1816. ac_status=$?
  1817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1818. (exit $ac_status); }; }; then
  1819. ac_compiler_gnu=yes
  1820. else
  1821. echo "$as_me: failed program was:" >&5
  1822. cat conftest.$ac_ext >&5
  1823. ac_compiler_gnu=no
  1824. fi
  1825. rm -f conftest.$ac_objext conftest.$ac_ext
  1826. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1827. fi
  1828. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1829. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  1830. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1831. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1832. ac_save_CXXFLAGS=$CXXFLAGS
  1833. CXXFLAGS="-g"
  1834. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1835. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  1836. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1837. echo $ECHO_N "(cached) $ECHO_C" >&6
  1838. else
  1839. cat >conftest.$ac_ext <<_ACEOF
  1840. #line $LINENO "configure"
  1841. #include "confdefs.h"
  1842. int
  1843. main ()
  1844. {
  1845. ;
  1846. return 0;
  1847. }
  1848. _ACEOF
  1849. rm -f conftest.$ac_objext
  1850. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1851. (eval $ac_compile) 2>&5
  1852. ac_status=$?
  1853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1854. (exit $ac_status); } &&
  1855. { ac_try='test -s conftest.$ac_objext'
  1856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1857. (eval $ac_try) 2>&5
  1858. ac_status=$?
  1859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1860. (exit $ac_status); }; }; then
  1861. ac_cv_prog_cxx_g=yes
  1862. else
  1863. echo "$as_me: failed program was:" >&5
  1864. cat conftest.$ac_ext >&5
  1865. ac_cv_prog_cxx_g=no
  1866. fi
  1867. rm -f conftest.$ac_objext conftest.$ac_ext
  1868. fi
  1869. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  1870. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  1871. if test "$ac_test_CXXFLAGS" = set; then
  1872. CXXFLAGS=$ac_save_CXXFLAGS
  1873. elif test $ac_cv_prog_cxx_g = yes; then
  1874. if test "$GXX" = yes; then
  1875. CXXFLAGS="-g -O2"
  1876. else
  1877. CXXFLAGS="-g"
  1878. fi
  1879. else
  1880. if test "$GXX" = yes; then
  1881. CXXFLAGS="-O2"
  1882. else
  1883. CXXFLAGS=
  1884. fi
  1885. fi
  1886. for ac_declaration in \
  1887. ''\
  1888. '#include <stdlib.h>' \
  1889. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1890. 'extern "C" void std::exit (int); using std::exit;' \
  1891. 'extern "C" void exit (int) throw ();' \
  1892. 'extern "C" void exit (int);' \
  1893. 'void exit (int);'
  1894. do
  1895. cat >conftest.$ac_ext <<_ACEOF
  1896. #line $LINENO "configure"
  1897. #include "confdefs.h"
  1898. #include <stdlib.h>
  1899. $ac_declaration
  1900. int
  1901. main ()
  1902. {
  1903. exit (42);
  1904. ;
  1905. return 0;
  1906. }
  1907. _ACEOF
  1908. rm -f conftest.$ac_objext
  1909. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1910. (eval $ac_compile) 2>&5
  1911. ac_status=$?
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); } &&
  1914. { ac_try='test -s conftest.$ac_objext'
  1915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1916. (eval $ac_try) 2>&5
  1917. ac_status=$?
  1918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1919. (exit $ac_status); }; }; then
  1920. :
  1921. else
  1922. echo "$as_me: failed program was:" >&5
  1923. cat conftest.$ac_ext >&5
  1924. continue
  1925. fi
  1926. rm -f conftest.$ac_objext conftest.$ac_ext
  1927. cat >conftest.$ac_ext <<_ACEOF
  1928. #line $LINENO "configure"
  1929. #include "confdefs.h"
  1930. $ac_declaration
  1931. int
  1932. main ()
  1933. {
  1934. exit (42);
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. rm -f conftest.$ac_objext
  1940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1941. (eval $ac_compile) 2>&5
  1942. ac_status=$?
  1943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1944. (exit $ac_status); } &&
  1945. { ac_try='test -s conftest.$ac_objext'
  1946. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1947. (eval $ac_try) 2>&5
  1948. ac_status=$?
  1949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1950. (exit $ac_status); }; }; then
  1951. break
  1952. else
  1953. echo "$as_me: failed program was:" >&5
  1954. cat conftest.$ac_ext >&5
  1955. fi
  1956. rm -f conftest.$ac_objext conftest.$ac_ext
  1957. done
  1958. rm -f conftest*
  1959. if test -n "$ac_declaration"; then
  1960. echo '#ifdef __cplusplus' >>confdefs.h
  1961. echo $ac_declaration >>confdefs.h
  1962. echo '#endif' >>confdefs.h
  1963. fi
  1964. ac_ext=c
  1965. ac_cpp='$CPP $CPPFLAGS'
  1966. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1967. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1968. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1969. rm -f .deps 2>/dev/null
  1970. mkdir .deps 2>/dev/null
  1971. if test -d .deps; then
  1972. DEPDIR=.deps
  1973. else
  1974. # MS-DOS does not allow filenames that begin with a dot.
  1975. DEPDIR=_deps
  1976. fi
  1977. rmdir .deps 2>/dev/null
  1978. ac_config_commands="$ac_config_commands depfiles"
  1979. am_make=${MAKE-make}
  1980. cat > confinc << 'END'
  1981. doit:
  1982. @echo done
  1983. END
  1984. # If we don't find an include directive, just comment out the code.
  1985. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  1986. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  1987. am__include="#"
  1988. am__quote=
  1989. _am_result=none
  1990. # First try GNU make style include.
  1991. echo "include confinc" > confmf
  1992. # We grep out `Entering directory' and `Leaving directory'
  1993. # messages which can occur if `w' ends up in MAKEFLAGS.
  1994. # In particular we don't look at `^make:' because GNU make might
  1995. # be invoked under some other name (usually "gmake"), in which
  1996. # case it prints its new name instead of `make'.
  1997. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  1998. am__include=include
  1999. am__quote=
  2000. _am_result=GNU
  2001. fi
  2002. # Now try BSD make style include.
  2003. if test "$am__include" = "#"; then
  2004. echo '.include "confinc"' > confmf
  2005. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2006. am__include=.include
  2007. am__quote="\""
  2008. _am_result=BSD
  2009. fi
  2010. fi
  2011. echo "$as_me:$LINENO: result: $_am_result" >&5
  2012. echo "${ECHO_T}$_am_result" >&6
  2013. rm -f confinc confmf
  2014. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2015. if test "${enable_dependency_tracking+set}" = set; then
  2016. enableval="$enable_dependency_tracking"
  2017. fi;
  2018. if test "x$enable_dependency_tracking" != xno; then
  2019. am_depcomp="$ac_aux_dir/depcomp"
  2020. AMDEPBACKSLASH='\'
  2021. fi
  2022. if test "x$enable_dependency_tracking" != xno; then
  2023. AMDEP_TRUE=
  2024. AMDEP_FALSE='#'
  2025. else
  2026. AMDEP_TRUE='#'
  2027. AMDEP_FALSE=
  2028. fi
  2029. depcc="$CXX" am_compiler_list=
  2030. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2031. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2032. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2033. echo $ECHO_N "(cached) $ECHO_C" >&6
  2034. else
  2035. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2036. # We make a subdir and do the tests there. Otherwise we can end up
  2037. # making bogus files that we don't know about and never remove. For
  2038. # instance it was reported that on HP-UX the gcc test will end up
  2039. # making a dummy file named `D' -- because `-MD' means `put the output
  2040. # in D'.
  2041. mkdir conftest.dir
  2042. # Copy depcomp to subdir because otherwise we won't find it if we're
  2043. # using a relative directory.
  2044. cp "$am_depcomp" conftest.dir
  2045. cd conftest.dir
  2046. am_cv_CXX_dependencies_compiler_type=none
  2047. if test "$am_compiler_list" = ""; then
  2048. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2049. fi
  2050. for depmode in $am_compiler_list; do
  2051. # We need to recreate these files for each test, as the compiler may
  2052. # overwrite some of them when testing with obscure command lines.
  2053. # This happens at least with the AIX C compiler.
  2054. echo '#include "conftest.h"' > conftest.c
  2055. echo 'int i;' > conftest.h
  2056. echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  2057. case $depmode in
  2058. nosideeffect)
  2059. # after this tag, mechanisms are not by side-effect, so they'll
  2060. # only be used when explicitly requested
  2061. if test "x$enable_dependency_tracking" = xyes; then
  2062. continue
  2063. else
  2064. break
  2065. fi
  2066. ;;
  2067. none) break ;;
  2068. esac
  2069. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2070. # mode. It turns out that the SunPro C++ compiler does not properly
  2071. # handle `-M -o', and we need to detect this.
  2072. if depmode=$depmode \
  2073. source=conftest.c object=conftest.o \
  2074. depfile=conftest.Po tmpdepfile=conftest.TPo \
  2075. $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
  2076. grep conftest.h conftest.Po > /dev/null 2>&1 &&
  2077. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2078. am_cv_CXX_dependencies_compiler_type=$depmode
  2079. break
  2080. fi
  2081. done
  2082. cd ..
  2083. rm -rf conftest.dir
  2084. else
  2085. am_cv_CXX_dependencies_compiler_type=none
  2086. fi
  2087. fi
  2088. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2089. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2090. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2091. if
  2092. test "x$enable_dependency_tracking" != xno \
  2093. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2094. am__fastdepCXX_TRUE=
  2095. am__fastdepCXX_FALSE='#'
  2096. else
  2097. am__fastdepCXX_TRUE='#'
  2098. am__fastdepCXX_FALSE=
  2099. fi
  2100. ac_ext=c
  2101. ac_cpp='$CPP $CPPFLAGS'
  2102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2105. if test -n "$ac_tool_prefix"; then
  2106. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2107. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2108. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2109. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2110. if test "${ac_cv_prog_CC+set}" = set; then
  2111. echo $ECHO_N "(cached) $ECHO_C" >&6
  2112. else
  2113. if test -n "$CC"; then
  2114. ac_cv_prog_CC="$CC" # Let the user override the test.
  2115. else
  2116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2117. for as_dir in $PATH
  2118. do
  2119. IFS=$as_save_IFS
  2120. test -z "$as_dir" && as_dir=.
  2121. for ac_exec_ext in '' $ac_executable_extensions; do
  2122. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2123. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2124. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2125. break 2
  2126. fi
  2127. done
  2128. done
  2129. fi
  2130. fi
  2131. CC=$ac_cv_prog_CC
  2132. if test -n "$CC"; then
  2133. echo "$as_me:$LINENO: result: $CC" >&5
  2134. echo "${ECHO_T}$CC" >&6
  2135. else
  2136. echo "$as_me:$LINENO: result: no" >&5
  2137. echo "${ECHO_T}no" >&6
  2138. fi
  2139. fi
  2140. if test -z "$ac_cv_prog_CC"; then
  2141. ac_ct_CC=$CC
  2142. # Extract the first word of "gcc", so it can be a program name with args.
  2143. set dummy gcc; ac_word=$2
  2144. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2145. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2146. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2147. echo $ECHO_N "(cached) $ECHO_C" >&6
  2148. else
  2149. if test -n "$ac_ct_CC"; then
  2150. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2151. else
  2152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2153. for as_dir in $PATH
  2154. do
  2155. IFS=$as_save_IFS
  2156. test -z "$as_dir" && as_dir=.
  2157. for ac_exec_ext in '' $ac_executable_extensions; do
  2158. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2159. ac_cv_prog_ac_ct_CC="gcc"
  2160. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2161. break 2
  2162. fi
  2163. done
  2164. done
  2165. fi
  2166. fi
  2167. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2168. if test -n "$ac_ct_CC"; then
  2169. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2170. echo "${ECHO_T}$ac_ct_CC" >&6
  2171. else
  2172. echo "$as_me:$LINENO: result: no" >&5
  2173. echo "${ECHO_T}no" >&6
  2174. fi
  2175. CC=$ac_ct_CC
  2176. else
  2177. CC="$ac_cv_prog_CC"
  2178. fi
  2179. if test -z "$CC"; then
  2180. if test -n "$ac_tool_prefix"; then
  2181. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2182. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2183. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2184. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2185. if test "${ac_cv_prog_CC+set}" = set; then
  2186. echo $ECHO_N "(cached) $ECHO_C" >&6
  2187. else
  2188. if test -n "$CC"; then
  2189. ac_cv_prog_CC="$CC" # Let the user override the test.
  2190. else
  2191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2192. for as_dir in $PATH
  2193. do
  2194. IFS=$as_save_IFS
  2195. test -z "$as_dir" && as_dir=.
  2196. for ac_exec_ext in '' $ac_executable_extensions; do
  2197. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2198. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2199. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2200. break 2
  2201. fi
  2202. done
  2203. done
  2204. fi
  2205. fi
  2206. CC=$ac_cv_prog_CC
  2207. if test -n "$CC"; then
  2208. echo "$as_me:$LINENO: result: $CC" >&5
  2209. echo "${ECHO_T}$CC" >&6
  2210. else
  2211. echo "$as_me:$LINENO: result: no" >&5
  2212. echo "${ECHO_T}no" >&6
  2213. fi
  2214. fi
  2215. if test -z "$ac_cv_prog_CC"; then
  2216. ac_ct_CC=$CC
  2217. # Extract the first word of "cc", so it can be a program name with args.
  2218. set dummy cc; ac_word=$2
  2219. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2220. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2221. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2222. echo $ECHO_N "(cached) $ECHO_C" >&6
  2223. else
  2224. if test -n "$ac_ct_CC"; then
  2225. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2226. else
  2227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2228. for as_dir in $PATH
  2229. do
  2230. IFS=$as_save_IFS
  2231. test -z "$as_dir" && as_dir=.
  2232. for ac_exec_ext in '' $ac_executable_extensions; do
  2233. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2234. ac_cv_prog_ac_ct_CC="cc"
  2235. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2236. break 2
  2237. fi
  2238. done
  2239. done
  2240. fi
  2241. fi
  2242. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2243. if test -n "$ac_ct_CC"; then
  2244. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2245. echo "${ECHO_T}$ac_ct_CC" >&6
  2246. else
  2247. echo "$as_me:$LINENO: result: no" >&5
  2248. echo "${ECHO_T}no" >&6
  2249. fi
  2250. CC=$ac_ct_CC
  2251. else
  2252. CC="$ac_cv_prog_CC"
  2253. fi
  2254. fi
  2255. if test -z "$CC"; then
  2256. # Extract the first word of "cc", so it can be a program name with args.
  2257. set dummy cc; ac_word=$2
  2258. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2259. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2260. if test "${ac_cv_prog_CC+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. if test -n "$CC"; then
  2264. ac_cv_prog_CC="$CC" # Let the user override the test.
  2265. else
  2266. ac_prog_rejected=no
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. test -z "$as_dir" && as_dir=.
  2272. for ac_exec_ext in '' $ac_executable_extensions; do
  2273. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2274. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2275. ac_prog_rejected=yes
  2276. continue
  2277. fi
  2278. ac_cv_prog_CC="cc"
  2279. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2280. break 2
  2281. fi
  2282. done
  2283. done
  2284. if test $ac_prog_rejected = yes; then
  2285. # We found a bogon in the path, so make sure we never use it.
  2286. set dummy $ac_cv_prog_CC
  2287. shift
  2288. if test $# != 0; then
  2289. # We chose a different compiler from the bogus one.
  2290. # However, it has the same basename, so the bogon will be chosen
  2291. # first if we set CC to just the basename; use the full file name.
  2292. shift
  2293. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2294. fi
  2295. fi
  2296. fi
  2297. fi
  2298. CC=$ac_cv_prog_CC
  2299. if test -n "$CC"; then
  2300. echo "$as_me:$LINENO: result: $CC" >&5
  2301. echo "${ECHO_T}$CC" >&6
  2302. else
  2303. echo "$as_me:$LINENO: result: no" >&5
  2304. echo "${ECHO_T}no" >&6
  2305. fi
  2306. fi
  2307. if test -z "$CC"; then
  2308. if test -n "$ac_tool_prefix"; then
  2309. for ac_prog in cl
  2310. do
  2311. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2312. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2313. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2314. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2315. if test "${ac_cv_prog_CC+set}" = set; then
  2316. echo $ECHO_N "(cached) $ECHO_C" >&6
  2317. else
  2318. if test -n "$CC"; then
  2319. ac_cv_prog_CC="$CC" # Let the user override the test.
  2320. else
  2321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2322. for as_dir in $PATH
  2323. do
  2324. IFS=$as_save_IFS
  2325. test -z "$as_dir" && as_dir=.
  2326. for ac_exec_ext in '' $ac_executable_extensions; do
  2327. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2328. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2329. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2330. break 2
  2331. fi
  2332. done
  2333. done
  2334. fi
  2335. fi
  2336. CC=$ac_cv_prog_CC
  2337. if test -n "$CC"; then
  2338. echo "$as_me:$LINENO: result: $CC" >&5
  2339. echo "${ECHO_T}$CC" >&6
  2340. else
  2341. echo "$as_me:$LINENO: result: no" >&5
  2342. echo "${ECHO_T}no" >&6
  2343. fi
  2344. test -n "$CC" && break
  2345. done
  2346. fi
  2347. if test -z "$CC"; then
  2348. ac_ct_CC=$CC
  2349. for ac_prog in cl
  2350. do
  2351. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2352. set dummy $ac_prog; ac_word=$2
  2353. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2354. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2355. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2356. echo $ECHO_N "(cached) $ECHO_C" >&6
  2357. else
  2358. if test -n "$ac_ct_CC"; then
  2359. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2360. else
  2361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2362. for as_dir in $PATH
  2363. do
  2364. IFS=$as_save_IFS
  2365. test -z "$as_dir" && as_dir=.
  2366. for ac_exec_ext in '' $ac_executable_extensions; do
  2367. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2368. ac_cv_prog_ac_ct_CC="$ac_prog"
  2369. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2370. break 2
  2371. fi
  2372. done
  2373. done
  2374. fi
  2375. fi
  2376. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2377. if test -n "$ac_ct_CC"; then
  2378. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2379. echo "${ECHO_T}$ac_ct_CC" >&6
  2380. else
  2381. echo "$as_me:$LINENO: result: no" >&5
  2382. echo "${ECHO_T}no" >&6
  2383. fi
  2384. test -n "$ac_ct_CC" && break
  2385. done
  2386. CC=$ac_ct_CC
  2387. fi
  2388. fi
  2389. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
  2390. echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
  2391. { (exit 1); exit 1; }; }
  2392. # Provide some information about the compiler.
  2393. echo "$as_me:$LINENO:" \
  2394. "checking for C compiler version" >&5
  2395. ac_compiler=`set X $ac_compile; echo $2`
  2396. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2397. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2398. ac_status=$?
  2399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2400. (exit $ac_status); }
  2401. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2402. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2403. ac_status=$?
  2404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2405. (exit $ac_status); }
  2406. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2407. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2408. ac_status=$?
  2409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2410. (exit $ac_status); }
  2411. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2412. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2413. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2414. echo $ECHO_N "(cached) $ECHO_C" >&6
  2415. else
  2416. cat >conftest.$ac_ext <<_ACEOF
  2417. #line $LINENO "configure"
  2418. #include "confdefs.h"
  2419. int
  2420. main ()
  2421. {
  2422. #ifndef __GNUC__
  2423. choke me
  2424. #endif
  2425. ;
  2426. return 0;
  2427. }
  2428. _ACEOF
  2429. rm -f conftest.$ac_objext
  2430. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2431. (eval $ac_compile) 2>&5
  2432. ac_status=$?
  2433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2434. (exit $ac_status); } &&
  2435. { ac_try='test -s conftest.$ac_objext'
  2436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2437. (eval $ac_try) 2>&5
  2438. ac_status=$?
  2439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2440. (exit $ac_status); }; }; then
  2441. ac_compiler_gnu=yes
  2442. else
  2443. echo "$as_me: failed program was:" >&5
  2444. cat conftest.$ac_ext >&5
  2445. ac_compiler_gnu=no
  2446. fi
  2447. rm -f conftest.$ac_objext conftest.$ac_ext
  2448. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2449. fi
  2450. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2451. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2452. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2453. ac_test_CFLAGS=${CFLAGS+set}
  2454. ac_save_CFLAGS=$CFLAGS
  2455. CFLAGS="-g"
  2456. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2457. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2458. if test "${ac_cv_prog_cc_g+set}" = set; then
  2459. echo $ECHO_N "(cached) $ECHO_C" >&6
  2460. else
  2461. cat >conftest.$ac_ext <<_ACEOF
  2462. #line $LINENO "configure"
  2463. #include "confdefs.h"
  2464. int
  2465. main ()
  2466. {
  2467. ;
  2468. return 0;
  2469. }
  2470. _ACEOF
  2471. rm -f conftest.$ac_objext
  2472. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2473. (eval $ac_compile) 2>&5
  2474. ac_status=$?
  2475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2476. (exit $ac_status); } &&
  2477. { ac_try='test -s conftest.$ac_objext'
  2478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2479. (eval $ac_try) 2>&5
  2480. ac_status=$?
  2481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2482. (exit $ac_status); }; }; then
  2483. ac_cv_prog_cc_g=yes
  2484. else
  2485. echo "$as_me: failed program was:" >&5
  2486. cat conftest.$ac_ext >&5
  2487. ac_cv_prog_cc_g=no
  2488. fi
  2489. rm -f conftest.$ac_objext conftest.$ac_ext
  2490. fi
  2491. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2492. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2493. if test "$ac_test_CFLAGS" = set; then
  2494. CFLAGS=$ac_save_CFLAGS
  2495. elif test $ac_cv_prog_cc_g = yes; then
  2496. if test "$GCC" = yes; then
  2497. CFLAGS="-g -O2"
  2498. else
  2499. CFLAGS="-g"
  2500. fi
  2501. else
  2502. if test "$GCC" = yes; then
  2503. CFLAGS="-O2"
  2504. else
  2505. CFLAGS=
  2506. fi
  2507. fi
  2508. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2509. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2510. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2511. echo $ECHO_N "(cached) $ECHO_C" >&6
  2512. else
  2513. ac_cv_prog_cc_stdc=no
  2514. ac_save_CC=$CC
  2515. cat >conftest.$ac_ext <<_ACEOF
  2516. #line $LINENO "configure"
  2517. #include "confdefs.h"
  2518. #include <stdarg.h>
  2519. #include <stdio.h>
  2520. #include <sys/types.h>
  2521. #include <sys/stat.h>
  2522. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2523. struct buf { int x; };
  2524. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2525. static char *e (p, i)
  2526. char **p;
  2527. int i;
  2528. {
  2529. return p[i];
  2530. }
  2531. static char *f (char * (*g) (char **, int), char **p, ...)
  2532. {
  2533. char *s;
  2534. va_list v;
  2535. va_start (v,p);
  2536. s = g (p, va_arg (v,int));
  2537. va_end (v);
  2538. return s;
  2539. }
  2540. int test (int i, double x);
  2541. struct s1 {int (*f) (int a);};
  2542. struct s2 {int (*f) (double a);};
  2543. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2544. int argc;
  2545. char **argv;
  2546. int
  2547. main ()
  2548. {
  2549. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2550. ;
  2551. return 0;
  2552. }
  2553. _ACEOF
  2554. # Don't try gcc -ansi; that turns off useful extensions and
  2555. # breaks some systems' header files.
  2556. # AIX -qlanglvl=ansi
  2557. # Ultrix and OSF/1 -std1
  2558. # HP-UX 10.20 and later -Ae
  2559. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2560. # SVR4 -Xc -D__EXTENSIONS__
  2561. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2562. do
  2563. CC="$ac_save_CC $ac_arg"
  2564. rm -f conftest.$ac_objext
  2565. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2566. (eval $ac_compile) 2>&5
  2567. ac_status=$?
  2568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2569. (exit $ac_status); } &&
  2570. { ac_try='test -s conftest.$ac_objext'
  2571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2572. (eval $ac_try) 2>&5
  2573. ac_status=$?
  2574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2575. (exit $ac_status); }; }; then
  2576. ac_cv_prog_cc_stdc=$ac_arg
  2577. break
  2578. else
  2579. echo "$as_me: failed program was:" >&5
  2580. cat conftest.$ac_ext >&5
  2581. fi
  2582. rm -f conftest.$ac_objext
  2583. done
  2584. rm -f conftest.$ac_ext conftest.$ac_objext
  2585. CC=$ac_save_CC
  2586. fi
  2587. case "x$ac_cv_prog_cc_stdc" in
  2588. x|xno)
  2589. echo "$as_me:$LINENO: result: none needed" >&5
  2590. echo "${ECHO_T}none needed" >&6 ;;
  2591. *)
  2592. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2593. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2594. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2595. esac
  2596. # Some people use a C++ compiler to compile C. Since we use `exit',
  2597. # in C++ we need to declare it. In case someone uses the same compiler
  2598. # for both compiling C and C++ we need to have the C++ compiler decide
  2599. # the declaration of exit, since it's the most demanding environment.
  2600. cat >conftest.$ac_ext <<_ACEOF
  2601. #ifndef __cplusplus
  2602. choke me
  2603. #endif
  2604. _ACEOF
  2605. rm -f conftest.$ac_objext
  2606. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2607. (eval $ac_compile) 2>&5
  2608. ac_status=$?
  2609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2610. (exit $ac_status); } &&
  2611. { ac_try='test -s conftest.$ac_objext'
  2612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2613. (eval $ac_try) 2>&5
  2614. ac_status=$?
  2615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2616. (exit $ac_status); }; }; then
  2617. for ac_declaration in \
  2618. ''\
  2619. '#include <stdlib.h>' \
  2620. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2621. 'extern "C" void std::exit (int); using std::exit;' \
  2622. 'extern "C" void exit (int) throw ();' \
  2623. 'extern "C" void exit (int);' \
  2624. 'void exit (int);'
  2625. do
  2626. cat >conftest.$ac_ext <<_ACEOF
  2627. #line $LINENO "configure"
  2628. #include "confdefs.h"
  2629. #include <stdlib.h>
  2630. $ac_declaration
  2631. int
  2632. main ()
  2633. {
  2634. exit (42);
  2635. ;
  2636. return 0;
  2637. }
  2638. _ACEOF
  2639. rm -f conftest.$ac_objext
  2640. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2641. (eval $ac_compile) 2>&5
  2642. ac_status=$?
  2643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2644. (exit $ac_status); } &&
  2645. { ac_try='test -s conftest.$ac_objext'
  2646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2647. (eval $ac_try) 2>&5
  2648. ac_status=$?
  2649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2650. (exit $ac_status); }; }; then
  2651. :
  2652. else
  2653. echo "$as_me: failed program was:" >&5
  2654. cat conftest.$ac_ext >&5
  2655. continue
  2656. fi
  2657. rm -f conftest.$ac_objext conftest.$ac_ext
  2658. cat >conftest.$ac_ext <<_ACEOF
  2659. #line $LINENO "configure"
  2660. #include "confdefs.h"
  2661. $ac_declaration
  2662. int
  2663. main ()
  2664. {
  2665. exit (42);
  2666. ;
  2667. return 0;
  2668. }
  2669. _ACEOF
  2670. rm -f conftest.$ac_objext
  2671. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2672. (eval $ac_compile) 2>&5
  2673. ac_status=$?
  2674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2675. (exit $ac_status); } &&
  2676. { ac_try='test -s conftest.$ac_objext'
  2677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2678. (eval $ac_try) 2>&5
  2679. ac_status=$?
  2680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2681. (exit $ac_status); }; }; then
  2682. break
  2683. else
  2684. echo "$as_me: failed program was:" >&5
  2685. cat conftest.$ac_ext >&5
  2686. fi
  2687. rm -f conftest.$ac_objext conftest.$ac_ext
  2688. done
  2689. rm -f conftest*
  2690. if test -n "$ac_declaration"; then
  2691. echo '#ifdef __cplusplus' >>confdefs.h
  2692. echo $ac_declaration >>confdefs.h
  2693. echo '#endif' >>confdefs.h
  2694. fi
  2695. else
  2696. echo "$as_me: failed program was:" >&5
  2697. cat conftest.$ac_ext >&5
  2698. fi
  2699. rm -f conftest.$ac_objext conftest.$ac_ext
  2700. ac_ext=c
  2701. ac_cpp='$CPP $CPPFLAGS'
  2702. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2703. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2704. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2705. depcc="$CC" am_compiler_list=
  2706. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2707. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2708. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2709. echo $ECHO_N "(cached) $ECHO_C" >&6
  2710. else
  2711. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2712. # We make a subdir and do the tests there. Otherwise we can end up
  2713. # making bogus files that we don't know about and never remove. For
  2714. # instance it was reported that on HP-UX the gcc test will end up
  2715. # making a dummy file named `D' -- because `-MD' means `put the output
  2716. # in D'.
  2717. mkdir conftest.dir
  2718. # Copy depcomp to subdir because otherwise we won't find it if we're
  2719. # using a relative directory.
  2720. cp "$am_depcomp" conftest.dir
  2721. cd conftest.dir
  2722. am_cv_CC_dependencies_compiler_type=none
  2723. if test "$am_compiler_list" = ""; then
  2724. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2725. fi
  2726. for depmode in $am_compiler_list; do
  2727. # We need to recreate these files for each test, as the compiler may
  2728. # overwrite some of them when testing with obscure command lines.
  2729. # This happens at least with the AIX C compiler.
  2730. echo '#include "conftest.h"' > conftest.c
  2731. echo 'int i;' > conftest.h
  2732. echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  2733. case $depmode in
  2734. nosideeffect)
  2735. # after this tag, mechanisms are not by side-effect, so they'll
  2736. # only be used when explicitly requested
  2737. if test "x$enable_dependency_tracking" = xyes; then
  2738. continue
  2739. else
  2740. break
  2741. fi
  2742. ;;
  2743. none) break ;;
  2744. esac
  2745. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2746. # mode. It turns out that the SunPro C++ compiler does not properly
  2747. # handle `-M -o', and we need to detect this.
  2748. if depmode=$depmode \
  2749. source=conftest.c object=conftest.o \
  2750. depfile=conftest.Po tmpdepfile=conftest.TPo \
  2751. $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
  2752. grep conftest.h conftest.Po > /dev/null 2>&1 &&
  2753. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2754. am_cv_CC_dependencies_compiler_type=$depmode
  2755. break
  2756. fi
  2757. done
  2758. cd ..
  2759. rm -rf conftest.dir
  2760. else
  2761. am_cv_CC_dependencies_compiler_type=none
  2762. fi
  2763. fi
  2764. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  2765. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  2766. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  2767. if
  2768. test "x$enable_dependency_tracking" != xno \
  2769. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  2770. am__fastdepCC_TRUE=
  2771. am__fastdepCC_FALSE='#'
  2772. else
  2773. am__fastdepCC_TRUE='#'
  2774. am__fastdepCC_FALSE=
  2775. fi
  2776. ac_ext=f
  2777. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  2778. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2779. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  2780. if test -n "$ac_tool_prefix"; then
  2781. for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
  2782. do
  2783. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2784. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2785. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2786. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2787. if test "${ac_cv_prog_F77+set}" = set; then
  2788. echo $ECHO_N "(cached) $ECHO_C" >&6
  2789. else
  2790. if test -n "$F77"; then
  2791. ac_cv_prog_F77="$F77" # Let the user override the test.
  2792. else
  2793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2794. for as_dir in $PATH
  2795. do
  2796. IFS=$as_save_IFS
  2797. test -z "$as_dir" && as_dir=.
  2798. for ac_exec_ext in '' $ac_executable_extensions; do
  2799. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2800. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  2801. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2802. break 2
  2803. fi
  2804. done
  2805. done
  2806. fi
  2807. fi
  2808. F77=$ac_cv_prog_F77
  2809. if test -n "$F77"; then
  2810. echo "$as_me:$LINENO: result: $F77" >&5
  2811. echo "${ECHO_T}$F77" >&6
  2812. else
  2813. echo "$as_me:$LINENO: result: no" >&5
  2814. echo "${ECHO_T}no" >&6
  2815. fi
  2816. test -n "$F77" && break
  2817. done
  2818. fi
  2819. if test -z "$F77"; then
  2820. ac_ct_F77=$F77
  2821. for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
  2822. do
  2823. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2824. set dummy $ac_prog; ac_word=$2
  2825. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2826. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2827. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  2828. echo $ECHO_N "(cached) $ECHO_C" >&6
  2829. else
  2830. if test -n "$ac_ct_F77"; then
  2831. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  2832. else
  2833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2834. for as_dir in $PATH
  2835. do
  2836. IFS=$as_save_IFS
  2837. test -z "$as_dir" && as_dir=.
  2838. for ac_exec_ext in '' $ac_executable_extensions; do
  2839. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2840. ac_cv_prog_ac_ct_F77="$ac_prog"
  2841. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2842. break 2
  2843. fi
  2844. done
  2845. done
  2846. fi
  2847. fi
  2848. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  2849. if test -n "$ac_ct_F77"; then
  2850. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  2851. echo "${ECHO_T}$ac_ct_F77" >&6
  2852. else
  2853. echo "$as_me:$LINENO: result: no" >&5
  2854. echo "${ECHO_T}no" >&6
  2855. fi
  2856. test -n "$ac_ct_F77" && break
  2857. done
  2858. F77=$ac_ct_F77
  2859. fi
  2860. # Provide some information about the compiler.
  2861. echo "$as_me:3202:" \
  2862. "checking for Fortran 77 compiler version" >&5
  2863. ac_compiler=`set X $ac_compile; echo $2`
  2864. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2865. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2866. ac_status=$?
  2867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2868. (exit $ac_status); }
  2869. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2870. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2871. ac_status=$?
  2872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2873. (exit $ac_status); }
  2874. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2875. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2876. ac_status=$?
  2877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2878. (exit $ac_status); }
  2879. # If we don't use `.F' as extension, the preprocessor is not run on the
  2880. # input file.
  2881. ac_save_ext=$ac_ext
  2882. ac_ext=F
  2883. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  2884. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  2885. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  2886. echo $ECHO_N "(cached) $ECHO_C" >&6
  2887. else
  2888. cat >conftest.$ac_ext <<_ACEOF
  2889. program main
  2890. #ifndef __GNUC__
  2891. choke me
  2892. #endif
  2893. end
  2894. _ACEOF
  2895. rm -f conftest.$ac_objext
  2896. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2897. (eval $ac_compile) 2>&5
  2898. ac_status=$?
  2899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2900. (exit $ac_status); } &&
  2901. { ac_try='test -s conftest.$ac_objext'
  2902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2903. (eval $ac_try) 2>&5
  2904. ac_status=$?
  2905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2906. (exit $ac_status); }; }; then
  2907. ac_compiler_gnu=yes
  2908. else
  2909. echo "$as_me: failed program was:" >&5
  2910. cat conftest.$ac_ext >&5
  2911. ac_compiler_gnu=no
  2912. fi
  2913. rm -f conftest.$ac_objext conftest.$ac_ext
  2914. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  2915. fi
  2916. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  2917. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  2918. ac_ext=$ac_save_ext
  2919. G77=`test $ac_compiler_gnu = yes && echo yes`
  2920. ac_test_FFLAGS=${FFLAGS+set}
  2921. ac_save_FFLAGS=$FFLAGS
  2922. FFLAGS=
  2923. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  2924. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  2925. if test "${ac_cv_prog_f77_g+set}" = set; then
  2926. echo $ECHO_N "(cached) $ECHO_C" >&6
  2927. else
  2928. FFLAGS=-g
  2929. cat >conftest.$ac_ext <<_ACEOF
  2930. program main
  2931. end
  2932. _ACEOF
  2933. rm -f conftest.$ac_objext
  2934. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2935. (eval $ac_compile) 2>&5
  2936. ac_status=$?
  2937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2938. (exit $ac_status); } &&
  2939. { ac_try='test -s conftest.$ac_objext'
  2940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2941. (eval $ac_try) 2>&5
  2942. ac_status=$?
  2943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2944. (exit $ac_status); }; }; then
  2945. ac_cv_prog_f77_g=yes
  2946. else
  2947. echo "$as_me: failed program was:" >&5
  2948. cat conftest.$ac_ext >&5
  2949. ac_cv_prog_f77_g=no
  2950. fi
  2951. rm -f conftest.$ac_objext conftest.$ac_ext
  2952. fi
  2953. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  2954. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  2955. if test "$ac_test_FFLAGS" = set; then
  2956. FFLAGS=$ac_save_FFLAGS
  2957. elif test $ac_cv_prog_f77_g = yes; then
  2958. if test "$G77" = yes; then
  2959. FFLAGS="-g -O2"
  2960. else
  2961. FFLAGS="-g"
  2962. fi
  2963. else
  2964. if test "$G77" = yes; then
  2965. FFLAGS="-O2"
  2966. else
  2967. FFLAGS=
  2968. fi
  2969. fi
  2970. ac_ext=c
  2971. ac_cpp='$CPP $CPPFLAGS'
  2972. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2973. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2974. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2975. #----------------------------------------------------------------
  2976. # Checks for header files.
  2977. #----------------------------------------------------------------
  2978. ac_ext=c
  2979. ac_cpp='$CPP $CPPFLAGS'
  2980. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2981. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2982. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2983. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2984. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2985. # On Suns, sometimes $CPP names a directory.
  2986. if test -n "$CPP" && test -d "$CPP"; then
  2987. CPP=
  2988. fi
  2989. if test -z "$CPP"; then
  2990. if test "${ac_cv_prog_CPP+set}" = set; then
  2991. echo $ECHO_N "(cached) $ECHO_C" >&6
  2992. else
  2993. # Double quotes because CPP needs to be expanded
  2994. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2995. do
  2996. ac_preproc_ok=false
  2997. for ac_c_preproc_warn_flag in '' yes
  2998. do
  2999. # Use a header file that comes with gcc, so configuring glibc
  3000. # with a fresh cross-compiler works.
  3001. # On the NeXT, cc -E runs the code through the compiler's parser,
  3002. # not just through cpp. "Syntax error" is here to catch this case.
  3003. cat >conftest.$ac_ext <<_ACEOF
  3004. #line $LINENO "configure"
  3005. #include "confdefs.h"
  3006. #include <assert.h>
  3007. Syntax error
  3008. _ACEOF
  3009. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3010. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3011. ac_status=$?
  3012. grep -v '^ *+' conftest.er1 >conftest.err
  3013. rm -f conftest.er1
  3014. cat conftest.err >&5
  3015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3016. (exit $ac_status); } >/dev/null; then
  3017. if test -s conftest.err; then
  3018. ac_cpp_err=$ac_c_preproc_warn_flag
  3019. else
  3020. ac_cpp_err=
  3021. fi
  3022. else
  3023. ac_cpp_err=yes
  3024. fi
  3025. if test -z "$ac_cpp_err"; then
  3026. :
  3027. else
  3028. echo "$as_me: failed program was:" >&5
  3029. cat conftest.$ac_ext >&5
  3030. # Broken: fails on valid input.
  3031. continue
  3032. fi
  3033. rm -f conftest.err conftest.$ac_ext
  3034. # OK, works on sane cases. Now check whether non-existent headers
  3035. # can be detected and how.
  3036. cat >conftest.$ac_ext <<_ACEOF
  3037. #line $LINENO "configure"
  3038. #include "confdefs.h"
  3039. #include <ac_nonexistent.h>
  3040. _ACEOF
  3041. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3042. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3043. ac_status=$?
  3044. grep -v '^ *+' conftest.er1 >conftest.err
  3045. rm -f conftest.er1
  3046. cat conftest.err >&5
  3047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3048. (exit $ac_status); } >/dev/null; then
  3049. if test -s conftest.err; then
  3050. ac_cpp_err=$ac_c_preproc_warn_flag
  3051. else
  3052. ac_cpp_err=
  3053. fi
  3054. else
  3055. ac_cpp_err=yes
  3056. fi
  3057. if test -z "$ac_cpp_err"; then
  3058. # Broken: success on invalid input.
  3059. continue
  3060. else
  3061. echo "$as_me: failed program was:" >&5
  3062. cat conftest.$ac_ext >&5
  3063. # Passes both tests.
  3064. ac_preproc_ok=:
  3065. break
  3066. fi
  3067. rm -f conftest.err conftest.$ac_ext
  3068. done
  3069. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3070. rm -f conftest.err conftest.$ac_ext
  3071. if $ac_preproc_ok; then
  3072. break
  3073. fi
  3074. done
  3075. ac_cv_prog_CPP=$CPP
  3076. fi
  3077. CPP=$ac_cv_prog_CPP
  3078. else
  3079. ac_cv_prog_CPP=$CPP
  3080. fi
  3081. echo "$as_me:$LINENO: result: $CPP" >&5
  3082. echo "${ECHO_T}$CPP" >&6
  3083. ac_preproc_ok=false
  3084. for ac_c_preproc_warn_flag in '' yes
  3085. do
  3086. # Use a header file that comes with gcc, so configuring glibc
  3087. # with a fresh cross-compiler works.
  3088. # On the NeXT, cc -E runs the code through the compiler's parser,
  3089. # not just through cpp. "Syntax error" is here to catch this case.
  3090. cat >conftest.$ac_ext <<_ACEOF
  3091. #line $LINENO "configure"
  3092. #include "confdefs.h"
  3093. #include <assert.h>
  3094. Syntax error
  3095. _ACEOF
  3096. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3097. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3098. ac_status=$?
  3099. grep -v '^ *+' conftest.er1 >conftest.err
  3100. rm -f conftest.er1
  3101. cat conftest.err >&5
  3102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3103. (exit $ac_status); } >/dev/null; then
  3104. if test -s conftest.err; then
  3105. ac_cpp_err=$ac_c_preproc_warn_flag
  3106. else
  3107. ac_cpp_err=
  3108. fi
  3109. else
  3110. ac_cpp_err=yes
  3111. fi
  3112. if test -z "$ac_cpp_err"; then
  3113. :
  3114. else
  3115. echo "$as_me: failed program was:" >&5
  3116. cat conftest.$ac_ext >&5
  3117. # Broken: fails on valid input.
  3118. continue
  3119. fi
  3120. rm -f conftest.err conftest.$ac_ext
  3121. # OK, works on sane cases. Now check whether non-existent headers
  3122. # can be detected and how.
  3123. cat >conftest.$ac_ext <<_ACEOF
  3124. #line $LINENO "configure"
  3125. #include "confdefs.h"
  3126. #include <ac_nonexistent.h>
  3127. _ACEOF
  3128. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3129. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3130. ac_status=$?
  3131. grep -v '^ *+' conftest.er1 >conftest.err
  3132. rm -f conftest.er1
  3133. cat conftest.err >&5
  3134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3135. (exit $ac_status); } >/dev/null; then
  3136. if test -s conftest.err; then
  3137. ac_cpp_err=$ac_c_preproc_warn_flag
  3138. else
  3139. ac_cpp_err=
  3140. fi
  3141. else
  3142. ac_cpp_err=yes
  3143. fi
  3144. if test -z "$ac_cpp_err"; then
  3145. # Broken: success on invalid input.
  3146. continue
  3147. else
  3148. echo "$as_me: failed program was:" >&5
  3149. cat conftest.$ac_ext >&5
  3150. # Passes both tests.
  3151. ac_preproc_ok=:
  3152. break
  3153. fi
  3154. rm -f conftest.err conftest.$ac_ext
  3155. done
  3156. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3157. rm -f conftest.err conftest.$ac_ext
  3158. if $ac_preproc_ok; then
  3159. :
  3160. else
  3161. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
  3162. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
  3163. { (exit 1); exit 1; }; }
  3164. fi
  3165. ac_ext=c
  3166. ac_cpp='$CPP $CPPFLAGS'
  3167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3170. echo "$as_me:$LINENO: checking for egrep" >&5
  3171. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3172. if test "${ac_cv_prog_egrep+set}" = set; then
  3173. echo $ECHO_N "(cached) $ECHO_C" >&6
  3174. else
  3175. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3176. then ac_cv_prog_egrep='grep -E'
  3177. else ac_cv_prog_egrep='egrep'
  3178. fi
  3179. fi
  3180. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3181. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3182. EGREP=$ac_cv_prog_egrep
  3183. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3184. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3185. if test "${ac_cv_header_stdc+set}" = set; then
  3186. echo $ECHO_N "(cached) $ECHO_C" >&6
  3187. else
  3188. cat >conftest.$ac_ext <<_ACEOF
  3189. #line $LINENO "configure"
  3190. #include "confdefs.h"
  3191. #include <stdlib.h>
  3192. #include <stdarg.h>
  3193. #include <string.h>
  3194. #include <float.h>
  3195. _ACEOF
  3196. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3197. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3198. ac_status=$?
  3199. grep -v '^ *+' conftest.er1 >conftest.err
  3200. rm -f conftest.er1
  3201. cat conftest.err >&5
  3202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3203. (exit $ac_status); } >/dev/null; then
  3204. if test -s conftest.err; then
  3205. ac_cpp_err=$ac_c_preproc_warn_flag
  3206. else
  3207. ac_cpp_err=
  3208. fi
  3209. else
  3210. ac_cpp_err=yes
  3211. fi
  3212. if test -z "$ac_cpp_err"; then
  3213. ac_cv_header_stdc=yes
  3214. else
  3215. echo "$as_me: failed program was:" >&5
  3216. cat conftest.$ac_ext >&5
  3217. ac_cv_header_stdc=no
  3218. fi
  3219. rm -f conftest.err conftest.$ac_ext
  3220. if test $ac_cv_header_stdc = yes; then
  3221. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3222. cat >conftest.$ac_ext <<_ACEOF
  3223. #line $LINENO "configure"
  3224. #include "confdefs.h"
  3225. #include <string.h>
  3226. _ACEOF
  3227. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3228. $EGREP "memchr" >/dev/null 2>&1; then
  3229. :
  3230. else
  3231. ac_cv_header_stdc=no
  3232. fi
  3233. rm -f conftest*
  3234. fi
  3235. if test $ac_cv_header_stdc = yes; then
  3236. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3237. cat >conftest.$ac_ext <<_ACEOF
  3238. #line $LINENO "configure"
  3239. #include "confdefs.h"
  3240. #include <stdlib.h>
  3241. _ACEOF
  3242. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3243. $EGREP "free" >/dev/null 2>&1; then
  3244. :
  3245. else
  3246. ac_cv_header_stdc=no
  3247. fi
  3248. rm -f conftest*
  3249. fi
  3250. if test $ac_cv_header_stdc = yes; then
  3251. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3252. if test "$cross_compiling" = yes; then
  3253. :
  3254. else
  3255. cat >conftest.$ac_ext <<_ACEOF
  3256. #line $LINENO "configure"
  3257. #include "confdefs.h"
  3258. #include <ctype.h>
  3259. #if ((' ' & 0x0FF) == 0x020)
  3260. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3261. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3262. #else
  3263. # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  3264. || ('j' <= (c) && (c) <= 'r') \
  3265. || ('s' <= (c) && (c) <= 'z'))
  3266. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3267. #endif
  3268. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3269. int
  3270. main ()
  3271. {
  3272. int i;
  3273. for (i = 0; i < 256; i++)
  3274. if (XOR (islower (i), ISLOWER (i))
  3275. || toupper (i) != TOUPPER (i))
  3276. exit(2);
  3277. exit (0);
  3278. }
  3279. _ACEOF
  3280. rm -f conftest$ac_exeext
  3281. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3282. (eval $ac_link) 2>&5
  3283. ac_status=$?
  3284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3285. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3287. (eval $ac_try) 2>&5
  3288. ac_status=$?
  3289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3290. (exit $ac_status); }; }; then
  3291. :
  3292. else
  3293. echo "$as_me: program exited with status $ac_status" >&5
  3294. echo "$as_me: failed program was:" >&5
  3295. cat conftest.$ac_ext >&5
  3296. ( exit $ac_status )
  3297. ac_cv_header_stdc=no
  3298. fi
  3299. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3300. fi
  3301. fi
  3302. fi
  3303. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3304. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3305. if test $ac_cv_header_stdc = yes; then
  3306. cat >>confdefs.h <<\_ACEOF
  3307. #define STDC_HEADERS 1
  3308. _ACEOF
  3309. fi
  3310. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3311. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3312. inttypes.h stdint.h unistd.h
  3313. do
  3314. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3315. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3316. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3317. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3318. echo $ECHO_N "(cached) $ECHO_C" >&6
  3319. else
  3320. cat >conftest.$ac_ext <<_ACEOF
  3321. #line $LINENO "configure"
  3322. #include "confdefs.h"
  3323. $ac_includes_default
  3324. #include <$ac_header>
  3325. _ACEOF
  3326. rm -f conftest.$ac_objext
  3327. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3328. (eval $ac_compile) 2>&5
  3329. ac_status=$?
  3330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3331. (exit $ac_status); } &&
  3332. { ac_try='test -s conftest.$ac_objext'
  3333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3334. (eval $ac_try) 2>&5
  3335. ac_status=$?
  3336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3337. (exit $ac_status); }; }; then
  3338. eval "$as_ac_Header=yes"
  3339. else
  3340. echo "$as_me: failed program was:" >&5
  3341. cat conftest.$ac_ext >&5
  3342. eval "$as_ac_Header=no"
  3343. fi
  3344. rm -f conftest.$ac_objext conftest.$ac_ext
  3345. fi
  3346. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3347. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3348. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3349. cat >>confdefs.h <<_ACEOF
  3350. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3351. _ACEOF
  3352. fi
  3353. done
  3354. for ac_header in fcntl.h float.h limits.h malloc.h stddef.h stdlib.h string.h sys/times.h unistd.h
  3355. do
  3356. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3357. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3358. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3359. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3360. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3361. echo $ECHO_N "(cached) $ECHO_C" >&6
  3362. fi
  3363. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3364. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3365. else
  3366. # Is the header compilable?
  3367. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3368. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3369. cat >conftest.$ac_ext <<_ACEOF
  3370. #line $LINENO "configure"
  3371. #include "confdefs.h"
  3372. $ac_includes_default
  3373. #include <$ac_header>
  3374. _ACEOF
  3375. rm -f conftest.$ac_objext
  3376. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3377. (eval $ac_compile) 2>&5
  3378. ac_status=$?
  3379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3380. (exit $ac_status); } &&
  3381. { ac_try='test -s conftest.$ac_objext'
  3382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3383. (eval $ac_try) 2>&5
  3384. ac_status=$?
  3385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3386. (exit $ac_status); }; }; then
  3387. ac_header_compiler=yes
  3388. else
  3389. echo "$as_me: failed program was:" >&5
  3390. cat conftest.$ac_ext >&5
  3391. ac_header_compiler=no
  3392. fi
  3393. rm -f conftest.$ac_objext conftest.$ac_ext
  3394. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3395. echo "${ECHO_T}$ac_header_compiler" >&6
  3396. # Is the header present?
  3397. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3398. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3399. cat >conftest.$ac_ext <<_ACEOF
  3400. #line $LINENO "configure"
  3401. #include "confdefs.h"
  3402. #include <$ac_header>
  3403. _ACEOF
  3404. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3405. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3406. ac_status=$?
  3407. grep -v '^ *+' conftest.er1 >conftest.err
  3408. rm -f conftest.er1
  3409. cat conftest.err >&5
  3410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3411. (exit $ac_status); } >/dev/null; then
  3412. if test -s conftest.err; then
  3413. ac_cpp_err=$ac_c_preproc_warn_flag
  3414. else
  3415. ac_cpp_err=
  3416. fi
  3417. else
  3418. ac_cpp_err=yes
  3419. fi
  3420. if test -z "$ac_cpp_err"; then
  3421. ac_header_preproc=yes
  3422. else
  3423. echo "$as_me: failed program was:" >&5
  3424. cat conftest.$ac_ext >&5
  3425. ac_header_preproc=no
  3426. fi
  3427. rm -f conftest.err conftest.$ac_ext
  3428. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3429. echo "${ECHO_T}$ac_header_preproc" >&6
  3430. # So? What about this header?
  3431. case $ac_header_compiler:$ac_header_preproc in
  3432. yes:no )
  3433. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3434. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3435. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3436. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  3437. no:yes )
  3438. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3439. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3440. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3441. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3442. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3443. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  3444. esac
  3445. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3446. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3447. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3448. echo $ECHO_N "(cached) $ECHO_C" >&6
  3449. else
  3450. eval "$as_ac_Header=$ac_header_preproc"
  3451. fi
  3452. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3453. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3454. fi
  3455. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3456. cat >>confdefs.h <<_ACEOF
  3457. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3458. _ACEOF
  3459. fi
  3460. done
  3461. #----------------------------------------------------------------
  3462. # Checks for typedefs, structures, and compiler characteristics.
  3463. #----------------------------------------------------------------
  3464. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3465. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  3466. if test "${ac_cv_c_const+set}" = set; then
  3467. echo $ECHO_N "(cached) $ECHO_C" >&6
  3468. else
  3469. cat >conftest.$ac_ext <<_ACEOF
  3470. #line $LINENO "configure"
  3471. #include "confdefs.h"
  3472. int
  3473. main ()
  3474. {
  3475. /* FIXME: Include the comments suggested by Paul. */
  3476. #ifndef __cplusplus
  3477. /* Ultrix mips cc rejects this. */
  3478. typedef int charset[2];
  3479. const charset x;
  3480. /* SunOS 4.1.1 cc rejects this. */
  3481. char const *const *ccp;
  3482. char **p;
  3483. /* NEC SVR4.0.2 mips cc rejects this. */
  3484. struct point {int x, y;};
  3485. static struct point const zero = {0,0};
  3486. /* AIX XL C 1.02.0.0 rejects this.
  3487. It does not let you subtract one const X* pointer from another in
  3488. an arm of an if-expression whose if-part is not a constant
  3489. expression */
  3490. const char *g = "string";
  3491. ccp = &g + (g ? g-g : 0);
  3492. /* HPUX 7.0 cc rejects these. */
  3493. ++ccp;
  3494. p = (char**) ccp;
  3495. ccp = (char const *const *) p;
  3496. { /* SCO 3.2v4 cc rejects this. */
  3497. char *t;
  3498. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3499. *t++ = 0;
  3500. }
  3501. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3502. int x[] = {25, 17};
  3503. const int *foo = &x[0];
  3504. ++foo;
  3505. }
  3506. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3507. typedef const int *iptr;
  3508. iptr p = 0;
  3509. ++p;
  3510. }
  3511. { /* AIX XL C 1.02.0.0 rejects this saying
  3512. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3513. struct s { int j; const int *ap[3]; };
  3514. struct s *b; b->j = 5;
  3515. }
  3516. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3517. const int foo = 10;
  3518. }
  3519. #endif
  3520. ;
  3521. return 0;
  3522. }
  3523. _ACEOF
  3524. rm -f conftest.$ac_objext
  3525. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3526. (eval $ac_compile) 2>&5
  3527. ac_status=$?
  3528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3529. (exit $ac_status); } &&
  3530. { ac_try='test -s conftest.$ac_objext'
  3531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3532. (eval $ac_try) 2>&5
  3533. ac_status=$?
  3534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3535. (exit $ac_status); }; }; then
  3536. ac_cv_c_const=yes
  3537. else
  3538. echo "$as_me: failed program was:" >&5
  3539. cat conftest.$ac_ext >&5
  3540. ac_cv_c_const=no
  3541. fi
  3542. rm -f conftest.$ac_objext conftest.$ac_ext
  3543. fi
  3544. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3545. echo "${ECHO_T}$ac_cv_c_const" >&6
  3546. if test $ac_cv_c_const = no; then
  3547. cat >>confdefs.h <<\_ACEOF
  3548. #define const
  3549. _ACEOF
  3550. fi
  3551. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  3552. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  3553. if test "${ac_cv_type_uid_t+set}" = set; then
  3554. echo $ECHO_N "(cached) $ECHO_C" >&6
  3555. else
  3556. cat >conftest.$ac_ext <<_ACEOF
  3557. #line $LINENO "configure"
  3558. #include "confdefs.h"
  3559. #include <sys/types.h>
  3560. _ACEOF
  3561. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3562. $EGREP "uid_t" >/dev/null 2>&1; then
  3563. ac_cv_type_uid_t=yes
  3564. else
  3565. ac_cv_type_uid_t=no
  3566. fi
  3567. rm -f conftest*
  3568. fi
  3569. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  3570. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  3571. if test $ac_cv_type_uid_t = no; then
  3572. cat >>confdefs.h <<\_ACEOF
  3573. #define uid_t int
  3574. _ACEOF
  3575. cat >>confdefs.h <<\_ACEOF
  3576. #define gid_t int
  3577. _ACEOF
  3578. fi
  3579. echo "$as_me:$LINENO: checking for inline" >&5
  3580. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  3581. if test "${ac_cv_c_inline+set}" = set; then
  3582. echo $ECHO_N "(cached) $ECHO_C" >&6
  3583. else
  3584. ac_cv_c_inline=no
  3585. for ac_kw in inline __inline__ __inline; do
  3586. cat >conftest.$ac_ext <<_ACEOF
  3587. #line $LINENO "configure"
  3588. #include "confdefs.h"
  3589. #ifndef __cplusplus
  3590. typedef int foo_t;
  3591. static $ac_kw foo_t static_foo () {return 0; }
  3592. $ac_kw foo_t foo () {return 0; }
  3593. #endif
  3594. _ACEOF
  3595. rm -f conftest.$ac_objext
  3596. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3597. (eval $ac_compile) 2>&5
  3598. ac_status=$?
  3599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3600. (exit $ac_status); } &&
  3601. { ac_try='test -s conftest.$ac_objext'
  3602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3603. (eval $ac_try) 2>&5
  3604. ac_status=$?
  3605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3606. (exit $ac_status); }; }; then
  3607. ac_cv_c_inline=$ac_kw; break
  3608. else
  3609. echo "$as_me: failed program was:" >&5
  3610. cat conftest.$ac_ext >&5
  3611. fi
  3612. rm -f conftest.$ac_objext conftest.$ac_ext
  3613. done
  3614. fi
  3615. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  3616. echo "${ECHO_T}$ac_cv_c_inline" >&6
  3617. case $ac_cv_c_inline in
  3618. inline | yes) ;;
  3619. no)
  3620. cat >>confdefs.h <<\_ACEOF
  3621. #define inline
  3622. _ACEOF
  3623. ;;
  3624. *) cat >>confdefs.h <<_ACEOF
  3625. #define inline $ac_cv_c_inline
  3626. _ACEOF
  3627. ;;
  3628. esac
  3629. echo "$as_me:$LINENO: checking for mode_t" >&5
  3630. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
  3631. if test "${ac_cv_type_mode_t+set}" = set; then
  3632. echo $ECHO_N "(cached) $ECHO_C" >&6
  3633. else
  3634. cat >conftest.$ac_ext <<_ACEOF
  3635. #line $LINENO "configure"
  3636. #include "confdefs.h"
  3637. $ac_includes_default
  3638. int
  3639. main ()
  3640. {
  3641. if ((mode_t *) 0)
  3642. return 0;
  3643. if (sizeof (mode_t))
  3644. return 0;
  3645. ;
  3646. return 0;
  3647. }
  3648. _ACEOF
  3649. rm -f conftest.$ac_objext
  3650. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3651. (eval $ac_compile) 2>&5
  3652. ac_status=$?
  3653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3654. (exit $ac_status); } &&
  3655. { ac_try='test -s conftest.$ac_objext'
  3656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3657. (eval $ac_try) 2>&5
  3658. ac_status=$?
  3659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3660. (exit $ac_status); }; }; then
  3661. ac_cv_type_mode_t=yes
  3662. else
  3663. echo "$as_me: failed program was:" >&5
  3664. cat conftest.$ac_ext >&5
  3665. ac_cv_type_mode_t=no
  3666. fi
  3667. rm -f conftest.$ac_objext conftest.$ac_ext
  3668. fi
  3669. echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  3670. echo "${ECHO_T}$ac_cv_type_mode_t" >&6
  3671. if test $ac_cv_type_mode_t = yes; then
  3672. :
  3673. else
  3674. cat >>confdefs.h <<_ACEOF
  3675. #define mode_t int
  3676. _ACEOF
  3677. fi
  3678. echo "$as_me:$LINENO: checking for size_t" >&5
  3679. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  3680. if test "${ac_cv_type_size_t+set}" = set; then
  3681. echo $ECHO_N "(cached) $ECHO_C" >&6
  3682. else
  3683. cat >conftest.$ac_ext <<_ACEOF
  3684. #line $LINENO "configure"
  3685. #include "confdefs.h"
  3686. $ac_includes_default
  3687. int
  3688. main ()
  3689. {
  3690. if ((size_t *) 0)
  3691. return 0;
  3692. if (sizeof (size_t))
  3693. return 0;
  3694. ;
  3695. return 0;
  3696. }
  3697. _ACEOF
  3698. rm -f conftest.$ac_objext
  3699. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3700. (eval $ac_compile) 2>&5
  3701. ac_status=$?
  3702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3703. (exit $ac_status); } &&
  3704. { ac_try='test -s conftest.$ac_objext'
  3705. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3706. (eval $ac_try) 2>&5
  3707. ac_status=$?
  3708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3709. (exit $ac_status); }; }; then
  3710. ac_cv_type_size_t=yes
  3711. else
  3712. echo "$as_me: failed program was:" >&5
  3713. cat conftest.$ac_ext >&5
  3714. ac_cv_type_size_t=no
  3715. fi
  3716. rm -f conftest.$ac_objext conftest.$ac_ext
  3717. fi
  3718. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  3719. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  3720. if test $ac_cv_type_size_t = yes; then
  3721. :
  3722. else
  3723. cat >>confdefs.h <<_ACEOF
  3724. #define size_t unsigned
  3725. _ACEOF
  3726. fi
  3727. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  3728. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  3729. if test "${ac_cv_struct_tm+set}" = set; then
  3730. echo $ECHO_N "(cached) $ECHO_C" >&6
  3731. else
  3732. cat >conftest.$ac_ext <<_ACEOF
  3733. #line $LINENO "configure"
  3734. #include "confdefs.h"
  3735. #include <sys/types.h>
  3736. #include <time.h>
  3737. int
  3738. main ()
  3739. {
  3740. struct tm *tp; tp->tm_sec;
  3741. ;
  3742. return 0;
  3743. }
  3744. _ACEOF
  3745. rm -f conftest.$ac_objext
  3746. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3747. (eval $ac_compile) 2>&5
  3748. ac_status=$?
  3749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3750. (exit $ac_status); } &&
  3751. { ac_try='test -s conftest.$ac_objext'
  3752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3753. (eval $ac_try) 2>&5
  3754. ac_status=$?
  3755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3756. (exit $ac_status); }; }; then
  3757. ac_cv_struct_tm=time.h
  3758. else
  3759. echo "$as_me: failed program was:" >&5
  3760. cat conftest.$ac_ext >&5
  3761. ac_cv_struct_tm=sys/time.h
  3762. fi
  3763. rm -f conftest.$ac_objext conftest.$ac_ext
  3764. fi
  3765. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  3766. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  3767. if test $ac_cv_struct_tm = sys/time.h; then
  3768. cat >>confdefs.h <<\_ACEOF
  3769. #define TM_IN_SYS_TIME 1
  3770. _ACEOF
  3771. fi
  3772. #----------------------------------------------------------------
  3773. # Checks for library functions.
  3774. #----------------------------------------------------------------
  3775. echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
  3776. echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
  3777. if test "${ac_cv_type_getgroups+set}" = set; then
  3778. echo $ECHO_N "(cached) $ECHO_C" >&6
  3779. else
  3780. if test "$cross_compiling" = yes; then
  3781. ac_cv_type_getgroups=cross
  3782. else
  3783. cat >conftest.$ac_ext <<_ACEOF
  3784. #line $LINENO "configure"
  3785. #include "confdefs.h"
  3786. /* Thanks to Mike Rendell for this test. */
  3787. #include <sys/types.h>
  3788. #define NGID 256
  3789. #undef MAX
  3790. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  3791. int
  3792. main ()
  3793. {
  3794. gid_t gidset[NGID];
  3795. int i, n;
  3796. union { gid_t gval; long lval; } val;
  3797. val.lval = -1;
  3798. for (i = 0; i < NGID; i++)
  3799. gidset[i] = val.gval;
  3800. n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  3801. gidset);
  3802. /* Exit non-zero if getgroups seems to require an array of ints. This
  3803. happens when gid_t is short but getgroups modifies an array of ints. */
  3804. exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  3805. }
  3806. _ACEOF
  3807. rm -f conftest$ac_exeext
  3808. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3809. (eval $ac_link) 2>&5
  3810. ac_status=$?
  3811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3812. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3814. (eval $ac_try) 2>&5
  3815. ac_status=$?
  3816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3817. (exit $ac_status); }; }; then
  3818. ac_cv_type_getgroups=gid_t
  3819. else
  3820. echo "$as_me: program exited with status $ac_status" >&5
  3821. echo "$as_me: failed program was:" >&5
  3822. cat conftest.$ac_ext >&5
  3823. ( exit $ac_status )
  3824. ac_cv_type_getgroups=int
  3825. fi
  3826. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3827. fi
  3828. if test $ac_cv_type_getgroups = cross; then
  3829. cat >conftest.$ac_ext <<_ACEOF
  3830. #line $LINENO "configure"
  3831. #include "confdefs.h"
  3832. #include <unistd.h>
  3833. _ACEOF
  3834. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3835. $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  3836. ac_cv_type_getgroups=gid_t
  3837. else
  3838. ac_cv_type_getgroups=int
  3839. fi
  3840. rm -f conftest*
  3841. fi
  3842. fi
  3843. echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
  3844. echo "${ECHO_T}$ac_cv_type_getgroups" >&6
  3845. cat >>confdefs.h <<_ACEOF
  3846. #define GETGROUPS_T $ac_cv_type_getgroups
  3847. _ACEOF
  3848. echo "$as_me:$LINENO: checking for getgroups" >&5
  3849. echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
  3850. if test "${ac_cv_func_getgroups+set}" = set; then
  3851. echo $ECHO_N "(cached) $ECHO_C" >&6
  3852. else
  3853. cat >conftest.$ac_ext <<_ACEOF
  3854. #line $LINENO "configure"
  3855. #include "confdefs.h"
  3856. /* System header to define __stub macros and hopefully few prototypes,
  3857. which can conflict with char getgroups (); below. */
  3858. #include <assert.h>
  3859. /* Override any gcc2 internal prototype to avoid an error. */
  3860. #ifdef __cplusplus
  3861. extern "C"
  3862. #endif
  3863. /* We use char because int might match the return type of a gcc2
  3864. builtin and then its argument prototype would still apply. */
  3865. char getgroups ();
  3866. char (*f) ();
  3867. int
  3868. main ()
  3869. {
  3870. /* The GNU C library defines this for functions which it implements
  3871. to always fail with ENOSYS. Some functions are actually named
  3872. something starting with __ and the normal name is an alias. */
  3873. #if defined (__stub_getgroups) || defined (__stub___getgroups)
  3874. choke me
  3875. #else
  3876. f = getgroups;
  3877. #endif
  3878. ;
  3879. return 0;
  3880. }
  3881. _ACEOF
  3882. rm -f conftest.$ac_objext conftest$ac_exeext
  3883. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3884. (eval $ac_link) 2>&5
  3885. ac_status=$?
  3886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3887. (exit $ac_status); } &&
  3888. { ac_try='test -s conftest$ac_exeext'
  3889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3890. (eval $ac_try) 2>&5
  3891. ac_status=$?
  3892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3893. (exit $ac_status); }; }; then
  3894. ac_cv_func_getgroups=yes
  3895. else
  3896. echo "$as_me: failed program was:" >&5
  3897. cat conftest.$ac_ext >&5
  3898. ac_cv_func_getgroups=no
  3899. fi
  3900. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3901. fi
  3902. echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
  3903. echo "${ECHO_T}$ac_cv_func_getgroups" >&6
  3904. # If we don't yet have getgroups, see if it's in -lbsd.
  3905. # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
  3906. ac_save_LIBS=$LIBS
  3907. if test $ac_cv_func_getgroups = no; then
  3908. echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
  3909. echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
  3910. if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
  3911. echo $ECHO_N "(cached) $ECHO_C" >&6
  3912. else
  3913. ac_check_lib_save_LIBS=$LIBS
  3914. LIBS="-lbsd $LIBS"
  3915. cat >conftest.$ac_ext <<_ACEOF
  3916. #line $LINENO "configure"
  3917. #include "confdefs.h"
  3918. /* Override any gcc2 internal prototype to avoid an error. */
  3919. #ifdef __cplusplus
  3920. extern "C"
  3921. #endif
  3922. /* We use char because int might match the return type of a gcc2
  3923. builtin and then its argument prototype would still apply. */
  3924. char getgroups ();
  3925. int
  3926. main ()
  3927. {
  3928. getgroups ();
  3929. ;
  3930. return 0;
  3931. }
  3932. _ACEOF
  3933. rm -f conftest.$ac_objext conftest$ac_exeext
  3934. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3935. (eval $ac_link) 2>&5
  3936. ac_status=$?
  3937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3938. (exit $ac_status); } &&
  3939. { ac_try='test -s conftest$ac_exeext'
  3940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3941. (eval $ac_try) 2>&5
  3942. ac_status=$?
  3943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3944. (exit $ac_status); }; }; then
  3945. ac_cv_lib_bsd_getgroups=yes
  3946. else
  3947. echo "$as_me: failed program was:" >&5
  3948. cat conftest.$ac_ext >&5
  3949. ac_cv_lib_bsd_getgroups=no
  3950. fi
  3951. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3952. LIBS=$ac_check_lib_save_LIBS
  3953. fi
  3954. echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
  3955. echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
  3956. if test $ac_cv_lib_bsd_getgroups = yes; then
  3957. GETGROUPS_LIB=-lbsd
  3958. fi
  3959. fi
  3960. # Run the program to test the functionality of the system-supplied
  3961. # getgroups function only if there is such a function.
  3962. if test $ac_cv_func_getgroups = yes; then
  3963. echo "$as_me:$LINENO: checking for working getgroups" >&5
  3964. echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
  3965. if test "${ac_cv_func_getgroups_works+set}" = set; then
  3966. echo $ECHO_N "(cached) $ECHO_C" >&6
  3967. else
  3968. if test "$cross_compiling" = yes; then
  3969. ac_cv_func_getgroups_works=no
  3970. else
  3971. cat >conftest.$ac_ext <<_ACEOF
  3972. #line $LINENO "configure"
  3973. #include "confdefs.h"
  3974. int
  3975. main ()
  3976. {
  3977. /* On Ultrix 4.3, getgroups (0, 0) always fails. */
  3978. exit (getgroups (0, 0) == -1 ? 1 : 0);
  3979. ;
  3980. return 0;
  3981. }
  3982. _ACEOF
  3983. rm -f conftest$ac_exeext
  3984. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3985. (eval $ac_link) 2>&5
  3986. ac_status=$?
  3987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3988. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3990. (eval $ac_try) 2>&5
  3991. ac_status=$?
  3992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3993. (exit $ac_status); }; }; then
  3994. ac_cv_func_getgroups_works=yes
  3995. else
  3996. echo "$as_me: program exited with status $ac_status" >&5
  3997. echo "$as_me: failed program was:" >&5
  3998. cat conftest.$ac_ext >&5
  3999. ( exit $ac_status )
  4000. ac_cv_func_getgroups_works=no
  4001. fi
  4002. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4003. fi
  4004. fi
  4005. echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
  4006. echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
  4007. if test $ac_cv_func_getgroups_works = yes; then
  4008. cat >>confdefs.h <<\_ACEOF
  4009. #define HAVE_GETGROUPS 1
  4010. _ACEOF
  4011. fi
  4012. fi
  4013. LIBS=$ac_save_LIBS
  4014. for ac_header in stdlib.h
  4015. do
  4016. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4017. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4018. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4019. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4020. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4021. echo $ECHO_N "(cached) $ECHO_C" >&6
  4022. fi
  4023. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4024. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4025. else
  4026. # Is the header compilable?
  4027. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4028. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4029. cat >conftest.$ac_ext <<_ACEOF
  4030. #line $LINENO "configure"
  4031. #include "confdefs.h"
  4032. $ac_includes_default
  4033. #include <$ac_header>
  4034. _ACEOF
  4035. rm -f conftest.$ac_objext
  4036. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4037. (eval $ac_compile) 2>&5
  4038. ac_status=$?
  4039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4040. (exit $ac_status); } &&
  4041. { ac_try='test -s conftest.$ac_objext'
  4042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4043. (eval $ac_try) 2>&5
  4044. ac_status=$?
  4045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4046. (exit $ac_status); }; }; then
  4047. ac_header_compiler=yes
  4048. else
  4049. echo "$as_me: failed program was:" >&5
  4050. cat conftest.$ac_ext >&5
  4051. ac_header_compiler=no
  4052. fi
  4053. rm -f conftest.$ac_objext conftest.$ac_ext
  4054. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4055. echo "${ECHO_T}$ac_header_compiler" >&6
  4056. # Is the header present?
  4057. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4058. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4059. cat >conftest.$ac_ext <<_ACEOF
  4060. #line $LINENO "configure"
  4061. #include "confdefs.h"
  4062. #include <$ac_header>
  4063. _ACEOF
  4064. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4065. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4066. ac_status=$?
  4067. grep -v '^ *+' conftest.er1 >conftest.err
  4068. rm -f conftest.er1
  4069. cat conftest.err >&5
  4070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4071. (exit $ac_status); } >/dev/null; then
  4072. if test -s conftest.err; then
  4073. ac_cpp_err=$ac_c_preproc_warn_flag
  4074. else
  4075. ac_cpp_err=
  4076. fi
  4077. else
  4078. ac_cpp_err=yes
  4079. fi
  4080. if test -z "$ac_cpp_err"; then
  4081. ac_header_preproc=yes
  4082. else
  4083. echo "$as_me: failed program was:" >&5
  4084. cat conftest.$ac_ext >&5
  4085. ac_header_preproc=no
  4086. fi
  4087. rm -f conftest.err conftest.$ac_ext
  4088. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4089. echo "${ECHO_T}$ac_header_preproc" >&6
  4090. # So? What about this header?
  4091. case $ac_header_compiler:$ac_header_preproc in
  4092. yes:no )
  4093. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4094. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4095. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4096. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  4097. no:yes )
  4098. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4099. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4100. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4101. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4102. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4103. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
  4104. esac
  4105. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4106. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4107. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4108. echo $ECHO_N "(cached) $ECHO_C" >&6
  4109. else
  4110. eval "$as_ac_Header=$ac_header_preproc"
  4111. fi
  4112. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4113. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4114. fi
  4115. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4116. cat >>confdefs.h <<_ACEOF
  4117. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4118. _ACEOF
  4119. fi
  4120. done
  4121. echo "$as_me:$LINENO: checking for working malloc" >&5
  4122. echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
  4123. if test "${ac_cv_func_malloc_works+set}" = set; then
  4124. echo $ECHO_N "(cached) $ECHO_C" >&6
  4125. else
  4126. if test "$cross_compiling" = yes; then
  4127. ac_cv_func_malloc_works=no
  4128. else
  4129. cat >conftest.$ac_ext <<_ACEOF
  4130. #line $LINENO "configure"
  4131. #include "confdefs.h"
  4132. #if STDC_HEADERS || HAVE_STDLIB_H
  4133. # include <stdlib.h>
  4134. #else
  4135. char *malloc ();
  4136. #endif
  4137. int
  4138. main ()
  4139. {
  4140. exit (malloc (0) ? 0 : 1);
  4141. ;
  4142. return 0;
  4143. }
  4144. _ACEOF
  4145. rm -f conftest$ac_exeext
  4146. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4147. (eval $ac_link) 2>&5
  4148. ac_status=$?
  4149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4150. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4152. (eval $ac_try) 2>&5
  4153. ac_status=$?
  4154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4155. (exit $ac_status); }; }; then
  4156. ac_cv_func_malloc_works=yes
  4157. else
  4158. echo "$as_me: program exited with status $ac_status" >&5
  4159. echo "$as_me: failed program was:" >&5
  4160. cat conftest.$ac_ext >&5
  4161. ( exit $ac_status )
  4162. ac_cv_func_malloc_works=no
  4163. fi
  4164. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4165. fi
  4166. fi
  4167. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
  4168. echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
  4169. if test $ac_cv_func_malloc_works = yes; then
  4170. cat >>confdefs.h <<\_ACEOF
  4171. #define HAVE_MALLOC 1
  4172. _ACEOF
  4173. else
  4174. cat >>confdefs.h <<\_ACEOF
  4175. #define HAVE_MALLOC 0
  4176. _ACEOF
  4177. LIBOBJS="$LIBOBJS malloc.$ac_objext"
  4178. cat >>confdefs.h <<\_ACEOF
  4179. #define malloc rpl_malloc
  4180. _ACEOF
  4181. fi
  4182. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  4183. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  4184. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  4185. echo $ECHO_N "(cached) $ECHO_C" >&6
  4186. else
  4187. rm -f conftest.sym conftest.file
  4188. echo >conftest.file
  4189. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  4190. if test "$cross_compiling" = yes; then
  4191. ac_cv_func_lstat_dereferences_slashed_symlink=no
  4192. else
  4193. cat >conftest.$ac_ext <<_ACEOF
  4194. #line $LINENO "configure"
  4195. #include "confdefs.h"
  4196. $ac_includes_default
  4197. int
  4198. main ()
  4199. {
  4200. struct stat sbuf;
  4201. /* Linux will dereference the symlink and fail.
  4202. That is better in the sense that it means we will not
  4203. have to compile and use the lstat wrapper. */
  4204. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  4205. ;
  4206. return 0;
  4207. }
  4208. _ACEOF
  4209. rm -f conftest$ac_exeext
  4210. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4211. (eval $ac_link) 2>&5
  4212. ac_status=$?
  4213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4214. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4216. (eval $ac_try) 2>&5
  4217. ac_status=$?
  4218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4219. (exit $ac_status); }; }; then
  4220. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  4221. else
  4222. echo "$as_me: program exited with status $ac_status" >&5
  4223. echo "$as_me: failed program was:" >&5
  4224. cat conftest.$ac_ext >&5
  4225. ( exit $ac_status )
  4226. ac_cv_func_lstat_dereferences_slashed_symlink=no
  4227. fi
  4228. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4229. fi
  4230. else
  4231. # If the `ln -s' command failed, then we probably don't even
  4232. # have an lstat function.
  4233. ac_cv_func_lstat_dereferences_slashed_symlink=no
  4234. fi
  4235. rm -f conftest.sym conftest.file
  4236. fi
  4237. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  4238. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  4239. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  4240. cat >>confdefs.h <<_ACEOF
  4241. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  4242. _ACEOF
  4243. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  4244. LIBOBJS="$LIBOBJS lstat.$ac_objext"
  4245. fi
  4246. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  4247. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  4248. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  4249. echo $ECHO_N "(cached) $ECHO_C" >&6
  4250. else
  4251. if test "$cross_compiling" = yes; then
  4252. ac_cv_func_stat_empty_string_bug=yes
  4253. else
  4254. cat >conftest.$ac_ext <<_ACEOF
  4255. #line $LINENO "configure"
  4256. #include "confdefs.h"
  4257. $ac_includes_default
  4258. int
  4259. main ()
  4260. {
  4261. struct stat sbuf;
  4262. exit (stat ("", &sbuf) ? 1 : 0);
  4263. ;
  4264. return 0;
  4265. }
  4266. _ACEOF
  4267. rm -f conftest$ac_exeext
  4268. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4269. (eval $ac_link) 2>&5
  4270. ac_status=$?
  4271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4272. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4273. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4274. (eval $ac_try) 2>&5
  4275. ac_status=$?
  4276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4277. (exit $ac_status); }; }; then
  4278. ac_cv_func_stat_empty_string_bug=yes
  4279. else
  4280. echo "$as_me: program exited with status $ac_status" >&5
  4281. echo "$as_me: failed program was:" >&5
  4282. cat conftest.$ac_ext >&5
  4283. ( exit $ac_status )
  4284. ac_cv_func_stat_empty_string_bug=no
  4285. fi
  4286. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4287. fi
  4288. fi
  4289. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  4290. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  4291. if test $ac_cv_func_stat_empty_string_bug = yes; then
  4292. LIBOBJS="$LIBOBJS stat.$ac_objext"
  4293. cat >>confdefs.h <<_ACEOF
  4294. #define HAVE_STAT_EMPTY_STRING_BUG 1
  4295. _ACEOF
  4296. fi
  4297. for ac_func in strftime
  4298. do
  4299. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4300. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4301. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4302. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4303. echo $ECHO_N "(cached) $ECHO_C" >&6
  4304. else
  4305. cat >conftest.$ac_ext <<_ACEOF
  4306. #line $LINENO "configure"
  4307. #include "confdefs.h"
  4308. /* System header to define __stub macros and hopefully few prototypes,
  4309. which can conflict with char $ac_func (); below. */
  4310. #include <assert.h>
  4311. /* Override any gcc2 internal prototype to avoid an error. */
  4312. #ifdef __cplusplus
  4313. extern "C"
  4314. #endif
  4315. /* We use char because int might match the return type of a gcc2
  4316. builtin and then its argument prototype would still apply. */
  4317. char $ac_func ();
  4318. char (*f) ();
  4319. int
  4320. main ()
  4321. {
  4322. /* The GNU C library defines this for functions which it implements
  4323. to always fail with ENOSYS. Some functions are actually named
  4324. something starting with __ and the normal name is an alias. */
  4325. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4326. choke me
  4327. #else
  4328. f = $ac_func;
  4329. #endif
  4330. ;
  4331. return 0;
  4332. }
  4333. _ACEOF
  4334. rm -f conftest.$ac_objext conftest$ac_exeext
  4335. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4336. (eval $ac_link) 2>&5
  4337. ac_status=$?
  4338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4339. (exit $ac_status); } &&
  4340. { ac_try='test -s conftest$ac_exeext'
  4341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4342. (eval $ac_try) 2>&5
  4343. ac_status=$?
  4344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4345. (exit $ac_status); }; }; then
  4346. eval "$as_ac_var=yes"
  4347. else
  4348. echo "$as_me: failed program was:" >&5
  4349. cat conftest.$ac_ext >&5
  4350. eval "$as_ac_var=no"
  4351. fi
  4352. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4353. fi
  4354. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4355. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4356. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4357. cat >>confdefs.h <<_ACEOF
  4358. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4359. _ACEOF
  4360. else
  4361. # strftime is in -lintl on SCO UNIX.
  4362. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  4363. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  4364. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  4365. echo $ECHO_N "(cached) $ECHO_C" >&6
  4366. else
  4367. ac_check_lib_save_LIBS=$LIBS
  4368. LIBS="-lintl $LIBS"
  4369. cat >conftest.$ac_ext <<_ACEOF
  4370. #line $LINENO "configure"
  4371. #include "confdefs.h"
  4372. /* Override any gcc2 internal prototype to avoid an error. */
  4373. #ifdef __cplusplus
  4374. extern "C"
  4375. #endif
  4376. /* We use char because int might match the return type of a gcc2
  4377. builtin and then its argument prototype would still apply. */
  4378. char strftime ();
  4379. int
  4380. main ()
  4381. {
  4382. strftime ();
  4383. ;
  4384. return 0;
  4385. }
  4386. _ACEOF
  4387. rm -f conftest.$ac_objext conftest$ac_exeext
  4388. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4389. (eval $ac_link) 2>&5
  4390. ac_status=$?
  4391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4392. (exit $ac_status); } &&
  4393. { ac_try='test -s conftest$ac_exeext'
  4394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4395. (eval $ac_try) 2>&5
  4396. ac_status=$?
  4397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4398. (exit $ac_status); }; }; then
  4399. ac_cv_lib_intl_strftime=yes
  4400. else
  4401. echo "$as_me: failed program was:" >&5
  4402. cat conftest.$ac_ext >&5
  4403. ac_cv_lib_intl_strftime=no
  4404. fi
  4405. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4406. LIBS=$ac_check_lib_save_LIBS
  4407. fi
  4408. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  4409. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  4410. if test $ac_cv_lib_intl_strftime = yes; then
  4411. cat >>confdefs.h <<\_ACEOF
  4412. #define HAVE_STRFTIME 1
  4413. _ACEOF
  4414. LIBS="-lintl $LIBS"
  4415. fi
  4416. fi
  4417. done
  4418. for ac_func in vprintf
  4419. do
  4420. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4421. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4422. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4423. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4424. echo $ECHO_N "(cached) $ECHO_C" >&6
  4425. else
  4426. cat >conftest.$ac_ext <<_ACEOF
  4427. #line $LINENO "configure"
  4428. #include "confdefs.h"
  4429. /* System header to define __stub macros and hopefully few prototypes,
  4430. which can conflict with char $ac_func (); below. */
  4431. #include <assert.h>
  4432. /* Override any gcc2 internal prototype to avoid an error. */
  4433. #ifdef __cplusplus
  4434. extern "C"
  4435. #endif
  4436. /* We use char because int might match the return type of a gcc2
  4437. builtin and then its argument prototype would still apply. */
  4438. char $ac_func ();
  4439. char (*f) ();
  4440. int
  4441. main ()
  4442. {
  4443. /* The GNU C library defines this for functions which it implements
  4444. to always fail with ENOSYS. Some functions are actually named
  4445. something starting with __ and the normal name is an alias. */
  4446. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4447. choke me
  4448. #else
  4449. f = $ac_func;
  4450. #endif
  4451. ;
  4452. return 0;
  4453. }
  4454. _ACEOF
  4455. rm -f conftest.$ac_objext conftest$ac_exeext
  4456. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4457. (eval $ac_link) 2>&5
  4458. ac_status=$?
  4459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4460. (exit $ac_status); } &&
  4461. { ac_try='test -s conftest$ac_exeext'
  4462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4463. (eval $ac_try) 2>&5
  4464. ac_status=$?
  4465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4466. (exit $ac_status); }; }; then
  4467. eval "$as_ac_var=yes"
  4468. else
  4469. echo "$as_me: failed program was:" >&5
  4470. cat conftest.$ac_ext >&5
  4471. eval "$as_ac_var=no"
  4472. fi
  4473. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4474. fi
  4475. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4476. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4477. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4478. cat >>confdefs.h <<_ACEOF
  4479. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4480. _ACEOF
  4481. echo "$as_me:$LINENO: checking for _doprnt" >&5
  4482. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  4483. if test "${ac_cv_func__doprnt+set}" = set; then
  4484. echo $ECHO_N "(cached) $ECHO_C" >&6
  4485. else
  4486. cat >conftest.$ac_ext <<_ACEOF
  4487. #line $LINENO "configure"
  4488. #include "confdefs.h"
  4489. /* System header to define __stub macros and hopefully few prototypes,
  4490. which can conflict with char _doprnt (); below. */
  4491. #include <assert.h>
  4492. /* Override any gcc2 internal prototype to avoid an error. */
  4493. #ifdef __cplusplus
  4494. extern "C"
  4495. #endif
  4496. /* We use char because int might match the return type of a gcc2
  4497. builtin and then its argument prototype would still apply. */
  4498. char _doprnt ();
  4499. char (*f) ();
  4500. int
  4501. main ()
  4502. {
  4503. /* The GNU C library defines this for functions which it implements
  4504. to always fail with ENOSYS. Some functions are actually named
  4505. something starting with __ and the normal name is an alias. */
  4506. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  4507. choke me
  4508. #else
  4509. f = _doprnt;
  4510. #endif
  4511. ;
  4512. return 0;
  4513. }
  4514. _ACEOF
  4515. rm -f conftest.$ac_objext conftest$ac_exeext
  4516. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4517. (eval $ac_link) 2>&5
  4518. ac_status=$?
  4519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4520. (exit $ac_status); } &&
  4521. { ac_try='test -s conftest$ac_exeext'
  4522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4523. (eval $ac_try) 2>&5
  4524. ac_status=$?
  4525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4526. (exit $ac_status); }; }; then
  4527. ac_cv_func__doprnt=yes
  4528. else
  4529. echo "$as_me: failed program was:" >&5
  4530. cat conftest.$ac_ext >&5
  4531. ac_cv_func__doprnt=no
  4532. fi
  4533. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4534. fi
  4535. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  4536. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  4537. if test $ac_cv_func__doprnt = yes; then
  4538. cat >>confdefs.h <<\_ACEOF
  4539. #define HAVE_DOPRNT 1
  4540. _ACEOF
  4541. fi
  4542. fi
  4543. done
  4544. for ac_func in getcwd pow rmdir sqrt strchr strdup strrchr strstr
  4545. do
  4546. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4547. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4548. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4549. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4550. echo $ECHO_N "(cached) $ECHO_C" >&6
  4551. else
  4552. cat >conftest.$ac_ext <<_ACEOF
  4553. #line $LINENO "configure"
  4554. #include "confdefs.h"
  4555. /* System header to define __stub macros and hopefully few prototypes,
  4556. which can conflict with char $ac_func (); below. */
  4557. #include <assert.h>
  4558. /* Override any gcc2 internal prototype to avoid an error. */
  4559. #ifdef __cplusplus
  4560. extern "C"
  4561. #endif
  4562. /* We use char because int might match the return type of a gcc2
  4563. builtin and then its argument prototype would still apply. */
  4564. char $ac_func ();
  4565. char (*f) ();
  4566. int
  4567. main ()
  4568. {
  4569. /* The GNU C library defines this for functions which it implements
  4570. to always fail with ENOSYS. Some functions are actually named
  4571. something starting with __ and the normal name is an alias. */
  4572. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4573. choke me
  4574. #else
  4575. f = $ac_func;
  4576. #endif
  4577. ;
  4578. return 0;
  4579. }
  4580. _ACEOF
  4581. rm -f conftest.$ac_objext conftest$ac_exeext
  4582. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4583. (eval $ac_link) 2>&5
  4584. ac_status=$?
  4585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4586. (exit $ac_status); } &&
  4587. { ac_try='test -s conftest$ac_exeext'
  4588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4589. (eval $ac_try) 2>&5
  4590. ac_status=$?
  4591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4592. (exit $ac_status); }; }; then
  4593. eval "$as_ac_var=yes"
  4594. else
  4595. echo "$as_me: failed program was:" >&5
  4596. cat conftest.$ac_ext >&5
  4597. eval "$as_ac_var=no"
  4598. fi
  4599. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4600. fi
  4601. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4602. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4603. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4604. cat >>confdefs.h <<_ACEOF
  4605. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4606. _ACEOF
  4607. fi
  4608. done
  4609. ac_config_files="$ac_config_files Makefile"
  4610. cat >confcache <<\_ACEOF
  4611. # This file is a shell script that caches the results of configure
  4612. # tests run on this system so they can be shared between configure
  4613. # scripts and configure runs, see configure's option --config-cache.
  4614. # It is not useful on other systems. If it contains results you don't
  4615. # want to keep, you may remove or edit it.
  4616. #
  4617. # config.status only pays attention to the cache file if you give it
  4618. # the --recheck option to rerun configure.
  4619. #
  4620. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4621. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4622. # following values.
  4623. _ACEOF
  4624. # The following way of writing the cache mishandles newlines in values,
  4625. # but we know of no workaround that is simple, portable, and efficient.
  4626. # So, don't put newlines in cache variables' values.
  4627. # Ultrix sh set writes to stderr and can't be redirected directly,
  4628. # and sets the high bit in the cache file unless we assign to the vars.
  4629. {
  4630. (set) 2>&1 |
  4631. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4632. *ac_space=\ *)
  4633. # `set' does not quote correctly, so add quotes (double-quote
  4634. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4635. sed -n \
  4636. "s/'/'\\\\''/g;
  4637. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4638. ;;
  4639. *)
  4640. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4641. sed -n \
  4642. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4643. ;;
  4644. esac;
  4645. } |
  4646. sed '
  4647. t clear
  4648. : clear
  4649. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4650. t end
  4651. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4652. : end' >>confcache
  4653. if cmp -s $cache_file confcache; then :; else
  4654. if test -w $cache_file; then
  4655. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  4656. cat confcache >$cache_file
  4657. else
  4658. echo "not updating unwritable cache $cache_file"
  4659. fi
  4660. fi
  4661. rm -f confcache
  4662. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4663. # Let make expand exec_prefix.
  4664. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4665. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4666. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4667. # trailing colons and then remove the whole line if VPATH becomes empty
  4668. # (actually we leave an empty line to preserve line numbers).
  4669. if test "x$srcdir" = x.; then
  4670. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4671. s/:*\$(srcdir):*/:/;
  4672. s/:*\${srcdir}:*/:/;
  4673. s/:*@srcdir@:*/:/;
  4674. s/^\([^=]*=[ ]*\):*/\1/;
  4675. s/:*$//;
  4676. s/^[^=]*=[ ]*$//;
  4677. }'
  4678. fi
  4679. # Transform confdefs.h into DEFS.
  4680. # Protect against shell expansion while executing Makefile rules.
  4681. # Protect against Makefile macro expansion.
  4682. #
  4683. # If the first sed substitution is executed (which looks for macros that
  4684. # take arguments), then we branch to the quote section. Otherwise,
  4685. # look for a macro that doesn't take arguments.
  4686. cat >confdef2opt.sed <<\_ACEOF
  4687. t clear
  4688. : clear
  4689. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
  4690. t quote
  4691. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
  4692. t quote
  4693. d
  4694. : quote
  4695. s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
  4696. s,\[,\\&,g
  4697. s,\],\\&,g
  4698. s,\$,$$,g
  4699. p
  4700. _ACEOF
  4701. # We use echo to avoid assuming a particular line-breaking character.
  4702. # The extra dot is to prevent the shell from consuming trailing
  4703. # line-breaks from the sub-command output. A line-break within
  4704. # single-quotes doesn't work because, if this script is created in a
  4705. # platform that uses two characters for line-breaks (e.g., DOS), tr
  4706. # would break.
  4707. ac_LF_and_DOT=`echo; echo .`
  4708. DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  4709. rm -f confdef2opt.sed
  4710. ac_libobjs=
  4711. ac_ltlibobjs=
  4712. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4713. # 1. Remove the extension, and $U if already installed.
  4714. ac_i=`echo "$ac_i" |
  4715. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  4716. # 2. Add them.
  4717. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  4718. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  4719. done
  4720. LIBOBJS=$ac_libobjs
  4721. LTLIBOBJS=$ac_ltlibobjs
  4722. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  4723. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  4724. Usually this means the macro was only invoked conditionally." >&5
  4725. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  4726. Usually this means the macro was only invoked conditionally." >&2;}
  4727. { (exit 1); exit 1; }; }
  4728. fi
  4729. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  4730. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  4731. Usually this means the macro was only invoked conditionally." >&5
  4732. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  4733. Usually this means the macro was only invoked conditionally." >&2;}
  4734. { (exit 1); exit 1; }; }
  4735. fi
  4736. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  4737. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  4738. Usually this means the macro was only invoked conditionally." >&5
  4739. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  4740. Usually this means the macro was only invoked conditionally." >&2;}
  4741. { (exit 1); exit 1; }; }
  4742. fi
  4743. : ${CONFIG_STATUS=./config.status}
  4744. ac_clean_files_save=$ac_clean_files
  4745. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4746. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4747. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4748. cat >$CONFIG_STATUS <<_ACEOF
  4749. #! $SHELL
  4750. # Generated by $as_me.
  4751. # Run this file to recreate the current configuration.
  4752. # Compiler output produced by configure, useful for debugging
  4753. # configure, is in config.log if it exists.
  4754. debug=false
  4755. SHELL=\${CONFIG_SHELL-$SHELL}
  4756. _ACEOF
  4757. cat >>$CONFIG_STATUS <<\_ACEOF
  4758. ## --------------------- ##
  4759. ## M4sh Initialization. ##
  4760. ## --------------------- ##
  4761. # Be Bourne compatible
  4762. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4763. emulate sh
  4764. NULLCMD=:
  4765. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4766. # is contrary to our usage. Disable this feature.
  4767. alias -g '${1+"$@"}'='"$@"'
  4768. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  4769. set -o posix
  4770. fi
  4771. # Support unset when possible.
  4772. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  4773. as_unset=unset
  4774. else
  4775. as_unset=false
  4776. fi
  4777. # Work around bugs in pre-3.0 UWIN ksh.
  4778. $as_unset ENV MAIL MAILPATH
  4779. PS1='$ '
  4780. PS2='> '
  4781. PS4='+ '
  4782. # NLS nuisances.
  4783. for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
  4784. do
  4785. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  4786. eval $as_var=C; export $as_var
  4787. else
  4788. $as_unset $as_var
  4789. fi
  4790. done
  4791. # Required to use basename.
  4792. if expr a : '\(a\)' >/dev/null 2>&1; then
  4793. as_expr=expr
  4794. else
  4795. as_expr=false
  4796. fi
  4797. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  4798. as_basename=basename
  4799. else
  4800. as_basename=false
  4801. fi
  4802. # Name of the executable.
  4803. as_me=`$as_basename "$0" ||
  4804. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4805. X"$0" : 'X\(//\)$' \| \
  4806. X"$0" : 'X\(/\)$' \| \
  4807. . : '\(.\)' 2>/dev/null ||
  4808. echo X/"$0" |
  4809. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  4810. /^X\/\(\/\/\)$/{ s//\1/; q; }
  4811. /^X\/\(\/\).*/{ s//\1/; q; }
  4812. s/.*/./; q'`
  4813. # PATH needs CR, and LINENO needs CR and PATH.
  4814. # Avoid depending upon Character Ranges.
  4815. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4816. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4817. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4818. as_cr_digits='0123456789'
  4819. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4820. # The user is always right.
  4821. if test "${PATH_SEPARATOR+set}" != set; then
  4822. echo "#! /bin/sh" >conftest.sh
  4823. echo "exit 0" >>conftest.sh
  4824. chmod +x conftest.sh
  4825. if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
  4826. PATH_SEPARATOR=';'
  4827. else
  4828. PATH_SEPARATOR=:
  4829. fi
  4830. rm -f conftest.sh
  4831. fi
  4832. as_lineno_1=$LINENO
  4833. as_lineno_2=$LINENO
  4834. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4835. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4836. test "x$as_lineno_3" = "x$as_lineno_2" || {
  4837. # Find who we are. Look in the path if we contain no path at all
  4838. # relative or not.
  4839. case $0 in
  4840. *[\\/]* ) as_myself=$0 ;;
  4841. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4842. for as_dir in $PATH
  4843. do
  4844. IFS=$as_save_IFS
  4845. test -z "$as_dir" && as_dir=.
  4846. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4847. done
  4848. ;;
  4849. esac
  4850. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4851. # in which case we are not to be found in the path.
  4852. if test "x$as_myself" = x; then
  4853. as_myself=$0
  4854. fi
  4855. if test ! -f "$as_myself"; then
  4856. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  4857. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  4858. { (exit 1); exit 1; }; }
  4859. fi
  4860. case $CONFIG_SHELL in
  4861. '')
  4862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4863. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  4864. do
  4865. IFS=$as_save_IFS
  4866. test -z "$as_dir" && as_dir=.
  4867. for as_base in sh bash ksh sh5; do
  4868. case $as_dir in
  4869. /*)
  4870. if ("$as_dir/$as_base" -c '
  4871. as_lineno_1=$LINENO
  4872. as_lineno_2=$LINENO
  4873. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4874. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4875. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  4876. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  4877. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  4878. CONFIG_SHELL=$as_dir/$as_base
  4879. export CONFIG_SHELL
  4880. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  4881. fi;;
  4882. esac
  4883. done
  4884. done
  4885. ;;
  4886. esac
  4887. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  4888. # uniformly replaced by the line number. The first 'sed' inserts a
  4889. # line-number line before each line; the second 'sed' does the real
  4890. # work. The second script uses 'N' to pair each line-number line
  4891. # with the numbered line, and appends trailing '-' during
  4892. # substitution so that $LINENO is not a special case at line end.
  4893. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  4894. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  4895. sed '=' <$as_myself |
  4896. sed '
  4897. N
  4898. s,$,-,
  4899. : loop
  4900. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  4901. t loop
  4902. s,-$,,
  4903. s,^['$as_cr_digits']*\n,,
  4904. ' >$as_me.lineno &&
  4905. chmod +x $as_me.lineno ||
  4906. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  4907. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  4908. { (exit 1); exit 1; }; }
  4909. # Don't try to exec as it changes $[0], causing all sort of problems
  4910. # (the dirname of $[0] is not the place where we might find the
  4911. # original and so on. Autoconf is especially sensible to this).
  4912. . ./$as_me.lineno
  4913. # Exit status is that of the last command.
  4914. exit
  4915. }
  4916. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  4917. *c*,-n*) ECHO_N= ECHO_C='
  4918. ' ECHO_T=' ' ;;
  4919. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  4920. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  4921. esac
  4922. if expr a : '\(a\)' >/dev/null 2>&1; then
  4923. as_expr=expr
  4924. else
  4925. as_expr=false
  4926. fi
  4927. rm -f conf$$ conf$$.exe conf$$.file
  4928. echo >conf$$.file
  4929. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4930. # We could just check for DJGPP; but this test a) works b) is more generic
  4931. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  4932. if test -f conf$$.exe; then
  4933. # Don't use ln at all; we don't have any links
  4934. as_ln_s='cp -p'
  4935. else
  4936. as_ln_s='ln -s'
  4937. fi
  4938. elif ln conf$$.file conf$$ 2>/dev/null; then
  4939. as_ln_s=ln
  4940. else
  4941. as_ln_s='cp -p'
  4942. fi
  4943. rm -f conf$$ conf$$.exe conf$$.file
  4944. if mkdir -p . 2>/dev/null; then
  4945. as_mkdir_p=:
  4946. else
  4947. as_mkdir_p=false
  4948. fi
  4949. as_executable_p="test -f"
  4950. # Sed expression to map a string onto a valid CPP name.
  4951. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  4952. # Sed expression to map a string onto a valid variable name.
  4953. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  4954. # IFS
  4955. # We need space, tab and new line, in precisely that order.
  4956. as_nl='
  4957. '
  4958. IFS=" $as_nl"
  4959. # CDPATH.
  4960. $as_unset CDPATH
  4961. exec 6>&1
  4962. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  4963. # report actual input values of CONFIG_FILES etc. instead of their
  4964. # values after options handling. Logging --version etc. is OK.
  4965. exec 5>>config.log
  4966. {
  4967. echo
  4968. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4969. ## Running $as_me. ##
  4970. _ASBOX
  4971. } >&5
  4972. cat >&5 <<_CSEOF
  4973. This file was extended by CALCRL $as_me 1.0, which was
  4974. generated by GNU Autoconf 2.54. Invocation command line was
  4975. CONFIG_FILES = $CONFIG_FILES
  4976. CONFIG_HEADERS = $CONFIG_HEADERS
  4977. CONFIG_LINKS = $CONFIG_LINKS
  4978. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4979. $ $0 $@
  4980. _CSEOF
  4981. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  4982. echo >&5
  4983. _ACEOF
  4984. # Files that config.status was made for.
  4985. if test -n "$ac_config_files"; then
  4986. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  4987. fi
  4988. if test -n "$ac_config_headers"; then
  4989. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  4990. fi
  4991. if test -n "$ac_config_links"; then
  4992. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  4993. fi
  4994. if test -n "$ac_config_commands"; then
  4995. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  4996. fi
  4997. cat >>$CONFIG_STATUS <<\_ACEOF
  4998. ac_cs_usage="\
  4999. \`$as_me' instantiates files from templates according to the
  5000. current configuration.
  5001. Usage: $0 [OPTIONS] [FILE]...
  5002. -h, --help print this help, then exit
  5003. -V, --version print version number, then exit
  5004. -d, --debug don't remove temporary files
  5005. --recheck update $as_me by reconfiguring in the same conditions
  5006. --file=FILE[:TEMPLATE]
  5007. instantiate the configuration file FILE
  5008. Configuration files:
  5009. $config_files
  5010. Configuration commands:
  5011. $config_commands
  5012. Report bugs to <bug-autoconf@gnu.org>."
  5013. _ACEOF
  5014. cat >>$CONFIG_STATUS <<_ACEOF
  5015. ac_cs_version="\\
  5016. CALCRL config.status 1.0
  5017. configured by $0, generated by GNU Autoconf 2.54,
  5018. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  5019. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  5020. Free Software Foundation, Inc.
  5021. This config.status script is free software; the Free Software Foundation
  5022. gives unlimited permission to copy, distribute and modify it."
  5023. srcdir=$srcdir
  5024. INSTALL="$INSTALL"
  5025. _ACEOF
  5026. cat >>$CONFIG_STATUS <<\_ACEOF
  5027. # If no file are specified by the user, then we need to provide default
  5028. # value. By we need to know if files were specified by the user.
  5029. ac_need_defaults=:
  5030. while test $# != 0
  5031. do
  5032. case $1 in
  5033. --*=*)
  5034. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  5035. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  5036. ac_shift=:
  5037. ;;
  5038. -*)
  5039. ac_option=$1
  5040. ac_optarg=$2
  5041. ac_shift=shift
  5042. ;;
  5043. *) # This is not an option, so the user has probably given explicit
  5044. # arguments.
  5045. ac_option=$1
  5046. ac_need_defaults=false;;
  5047. esac
  5048. case $ac_option in
  5049. # Handling of the options.
  5050. _ACEOF
  5051. cat >>$CONFIG_STATUS <<_ACEOF
  5052. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5053. echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
  5054. exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
  5055. _ACEOF
  5056. cat >>$CONFIG_STATUS <<\_ACEOF
  5057. --version | --vers* | -V )
  5058. echo "$ac_cs_version"; exit 0 ;;
  5059. --he | --h)
  5060. # Conflict between --help and --header
  5061. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  5062. Try \`$0 --help' for more information." >&5
  5063. echo "$as_me: error: ambiguous option: $1
  5064. Try \`$0 --help' for more information." >&2;}
  5065. { (exit 1); exit 1; }; };;
  5066. --help | --hel | -h )
  5067. echo "$ac_cs_usage"; exit 0 ;;
  5068. --debug | --d* | -d )
  5069. debug=: ;;
  5070. --file | --fil | --fi | --f )
  5071. $ac_shift
  5072. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  5073. ac_need_defaults=false;;
  5074. --header | --heade | --head | --hea )
  5075. $ac_shift
  5076. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  5077. ac_need_defaults=false;;
  5078. # This is an error.
  5079. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  5080. Try \`$0 --help' for more information." >&5
  5081. echo "$as_me: error: unrecognized option: $1
  5082. Try \`$0 --help' for more information." >&2;}
  5083. { (exit 1); exit 1; }; } ;;
  5084. *) ac_config_targets="$ac_config_targets $1" ;;
  5085. esac
  5086. shift
  5087. done
  5088. _ACEOF
  5089. cat >>$CONFIG_STATUS <<_ACEOF
  5090. #
  5091. # INIT-COMMANDS section.
  5092. #
  5093. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  5094. _ACEOF
  5095. cat >>$CONFIG_STATUS <<\_ACEOF
  5096. for ac_config_target in $ac_config_targets
  5097. do
  5098. case "$ac_config_target" in
  5099. # Handling of arguments.
  5100. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5101. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  5102. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  5103. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  5104. { (exit 1); exit 1; }; };;
  5105. esac
  5106. done
  5107. # If the user did not use the arguments to specify the items to instantiate,
  5108. # then the envvar interface is used. Set only those that are not.
  5109. # We use the long form for the default assignment because of an extremely
  5110. # bizarre bug on SunOS 4.1.3.
  5111. if $ac_need_defaults; then
  5112. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5113. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  5114. fi
  5115. # Create a temporary directory, and hook for its removal unless debugging.
  5116. $debug ||
  5117. {
  5118. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  5119. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5120. }
  5121. # Create a (secure) tmp directory for tmp files.
  5122. : ${TMPDIR=/tmp}
  5123. {
  5124. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  5125. test -n "$tmp" && test -d "$tmp"
  5126. } ||
  5127. {
  5128. tmp=$TMPDIR/cs$$-$RANDOM
  5129. (umask 077 && mkdir $tmp)
  5130. } ||
  5131. {
  5132. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  5133. { (exit 1); exit 1; }
  5134. }
  5135. _ACEOF
  5136. cat >>$CONFIG_STATUS <<_ACEOF
  5137. #
  5138. # CONFIG_FILES section.
  5139. #
  5140. # No need to generate the scripts if there are no CONFIG_FILES.
  5141. # This happens for instance when ./config.status config.h
  5142. if test -n "\$CONFIG_FILES"; then
  5143. # Protect against being on the right side of a sed subst in config.status.
  5144. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  5145. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  5146. s,@SHELL@,$SHELL,;t t
  5147. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  5148. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  5149. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  5150. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  5151. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  5152. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  5153. s,@exec_prefix@,$exec_prefix,;t t
  5154. s,@prefix@,$prefix,;t t
  5155. s,@program_transform_name@,$program_transform_name,;t t
  5156. s,@bindir@,$bindir,;t t
  5157. s,@sbindir@,$sbindir,;t t
  5158. s,@libexecdir@,$libexecdir,;t t
  5159. s,@datadir@,$datadir,;t t
  5160. s,@sysconfdir@,$sysconfdir,;t t
  5161. s,@sharedstatedir@,$sharedstatedir,;t t
  5162. s,@localstatedir@,$localstatedir,;t t
  5163. s,@libdir@,$libdir,;t t
  5164. s,@includedir@,$includedir,;t t
  5165. s,@oldincludedir@,$oldincludedir,;t t
  5166. s,@infodir@,$infodir,;t t
  5167. s,@mandir@,$mandir,;t t
  5168. s,@build_alias@,$build_alias,;t t
  5169. s,@host_alias@,$host_alias,;t t
  5170. s,@target_alias@,$target_alias,;t t
  5171. s,@DEFS@,$DEFS,;t t
  5172. s,@ECHO_C@,$ECHO_C,;t t
  5173. s,@ECHO_N@,$ECHO_N,;t t
  5174. s,@ECHO_T@,$ECHO_T,;t t
  5175. s,@LIBS@,$LIBS,;t t
  5176. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  5177. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  5178. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  5179. s,@CYGPATH_W@,$CYGPATH_W,;t t
  5180. s,@PACKAGE@,$PACKAGE,;t t
  5181. s,@VERSION@,$VERSION,;t t
  5182. s,@ACLOCAL@,$ACLOCAL,;t t
  5183. s,@AUTOCONF@,$AUTOCONF,;t t
  5184. s,@AUTOMAKE@,$AUTOMAKE,;t t
  5185. s,@AUTOHEADER@,$AUTOHEADER,;t t
  5186. s,@MAKEINFO@,$MAKEINFO,;t t
  5187. s,@AMTAR@,$AMTAR,;t t
  5188. s,@install_sh@,$install_sh,;t t
  5189. s,@STRIP@,$STRIP,;t t
  5190. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  5191. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  5192. s,@AWK@,$AWK,;t t
  5193. s,@SET_MAKE@,$SET_MAKE,;t t
  5194. s,@build@,$build,;t t
  5195. s,@build_cpu@,$build_cpu,;t t
  5196. s,@build_vendor@,$build_vendor,;t t
  5197. s,@build_os@,$build_os,;t t
  5198. s,@host@,$host,;t t
  5199. s,@host_cpu@,$host_cpu,;t t
  5200. s,@host_vendor@,$host_vendor,;t t
  5201. s,@host_os@,$host_os,;t t
  5202. s,@CXX@,$CXX,;t t
  5203. s,@CXXFLAGS@,$CXXFLAGS,;t t
  5204. s,@LDFLAGS@,$LDFLAGS,;t t
  5205. s,@CPPFLAGS@,$CPPFLAGS,;t t
  5206. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  5207. s,@EXEEXT@,$EXEEXT,;t t
  5208. s,@OBJEXT@,$OBJEXT,;t t
  5209. s,@DEPDIR@,$DEPDIR,;t t
  5210. s,@am__include@,$am__include,;t t
  5211. s,@am__quote@,$am__quote,;t t
  5212. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  5213. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  5214. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  5215. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  5216. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  5217. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  5218. s,@CC@,$CC,;t t
  5219. s,@CFLAGS@,$CFLAGS,;t t
  5220. s,@ac_ct_CC@,$ac_ct_CC,;t t
  5221. s,@CCDEPMODE@,$CCDEPMODE,;t t
  5222. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  5223. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  5224. s,@F77@,$F77,;t t
  5225. s,@FFLAGS@,$FFLAGS,;t t
  5226. s,@ac_ct_F77@,$ac_ct_F77,;t t
  5227. s,@CPP@,$CPP,;t t
  5228. s,@EGREP@,$EGREP,;t t
  5229. s,@LIBOBJS@,$LIBOBJS,;t t
  5230. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  5231. CEOF
  5232. _ACEOF
  5233. cat >>$CONFIG_STATUS <<\_ACEOF
  5234. # Split the substitutions into bite-sized pieces for seds with
  5235. # small command number limits, like on Digital OSF/1 and HP-UX.
  5236. ac_max_sed_lines=48
  5237. ac_sed_frag=1 # Number of current file.
  5238. ac_beg=1 # First line for current file.
  5239. ac_end=$ac_max_sed_lines # Line after last line for current file.
  5240. ac_more_lines=:
  5241. ac_sed_cmds=
  5242. while $ac_more_lines; do
  5243. if test $ac_beg -gt 1; then
  5244. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5245. else
  5246. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  5247. fi
  5248. if test ! -s $tmp/subs.frag; then
  5249. ac_more_lines=false
  5250. else
  5251. # The purpose of the label and of the branching condition is to
  5252. # speed up the sed processing (if there are no `@' at all, there
  5253. # is no need to browse any of the substitutions).
  5254. # These are the two extra sed commands mentioned above.
  5255. (echo ':t
  5256. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  5257. if test -z "$ac_sed_cmds"; then
  5258. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  5259. else
  5260. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  5261. fi
  5262. ac_sed_frag=`expr $ac_sed_frag + 1`
  5263. ac_beg=$ac_end
  5264. ac_end=`expr $ac_end + $ac_max_sed_lines`
  5265. fi
  5266. done
  5267. if test -z "$ac_sed_cmds"; then
  5268. ac_sed_cmds=cat
  5269. fi
  5270. fi # test -n "$CONFIG_FILES"
  5271. _ACEOF
  5272. cat >>$CONFIG_STATUS <<\_ACEOF
  5273. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  5274. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5275. case $ac_file in
  5276. - | *:- | *:-:* ) # input from stdin
  5277. cat >$tmp/stdin
  5278. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5279. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5280. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5281. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  5282. * ) ac_file_in=$ac_file.in ;;
  5283. esac
  5284. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  5285. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  5286. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5287. X"$ac_file" : 'X\(//\)[^/]' \| \
  5288. X"$ac_file" : 'X\(//\)$' \| \
  5289. X"$ac_file" : 'X\(/\)' \| \
  5290. . : '\(.\)' 2>/dev/null ||
  5291. echo X"$ac_file" |
  5292. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5293. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5294. /^X\(\/\/\)$/{ s//\1/; q; }
  5295. /^X\(\/\).*/{ s//\1/; q; }
  5296. s/.*/./; q'`
  5297. { if $as_mkdir_p; then
  5298. mkdir -p "$ac_dir"
  5299. else
  5300. as_dir="$ac_dir"
  5301. as_dirs=
  5302. while test ! -d "$as_dir"; do
  5303. as_dirs="$as_dir $as_dirs"
  5304. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  5305. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5306. X"$as_dir" : 'X\(//\)[^/]' \| \
  5307. X"$as_dir" : 'X\(//\)$' \| \
  5308. X"$as_dir" : 'X\(/\)' \| \
  5309. . : '\(.\)' 2>/dev/null ||
  5310. echo X"$as_dir" |
  5311. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5312. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5313. /^X\(\/\/\)$/{ s//\1/; q; }
  5314. /^X\(\/\).*/{ s//\1/; q; }
  5315. s/.*/./; q'`
  5316. done
  5317. test ! -n "$as_dirs" || mkdir $as_dirs
  5318. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  5319. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  5320. { (exit 1); exit 1; }; }; }
  5321. ac_builddir=.
  5322. if test "$ac_dir" != .; then
  5323. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5324. # A "../" for each directory in $ac_dir_suffix.
  5325. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  5326. else
  5327. ac_dir_suffix= ac_top_builddir=
  5328. fi
  5329. case $srcdir in
  5330. .) # No --srcdir option. We are building in place.
  5331. ac_srcdir=.
  5332. if test -z "$ac_top_builddir"; then
  5333. ac_top_srcdir=.
  5334. else
  5335. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  5336. fi ;;
  5337. [\\/]* | ?:[\\/]* ) # Absolute path.
  5338. ac_srcdir=$srcdir$ac_dir_suffix;
  5339. ac_top_srcdir=$srcdir ;;
  5340. *) # Relative path.
  5341. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  5342. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  5343. esac
  5344. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  5345. # absolute.
  5346. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  5347. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  5348. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  5349. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  5350. case $INSTALL in
  5351. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5352. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  5353. esac
  5354. if test x"$ac_file" != x-; then
  5355. { echo "$as_me:$LINENO: creating $ac_file" >&5
  5356. echo "$as_me: creating $ac_file" >&6;}
  5357. rm -f "$ac_file"
  5358. fi
  5359. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5360. # use $as_me), people would be surprised to read:
  5361. # /* config.h. Generated by config.status. */
  5362. if test x"$ac_file" = x-; then
  5363. configure_input=
  5364. else
  5365. configure_input="$ac_file. "
  5366. fi
  5367. configure_input=$configure_input"Generated from `echo $ac_file_in |
  5368. sed 's,.*/,,'` by configure."
  5369. # First look for the input files in the build tree, otherwise in the
  5370. # src tree.
  5371. ac_file_inputs=`IFS=:
  5372. for f in $ac_file_in; do
  5373. case $f in
  5374. -) echo $tmp/stdin ;;
  5375. [\\/$]*)
  5376. # Absolute (can't be DOS-style, as IFS=:)
  5377. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5378. echo "$as_me: error: cannot find input file: $f" >&2;}
  5379. { (exit 1); exit 1; }; }
  5380. echo $f;;
  5381. *) # Relative
  5382. if test -f "$f"; then
  5383. # Build tree
  5384. echo $f
  5385. elif test -f "$srcdir/$f"; then
  5386. # Source tree
  5387. echo $srcdir/$f
  5388. else
  5389. # /dev/null tree
  5390. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  5391. echo "$as_me: error: cannot find input file: $f" >&2;}
  5392. { (exit 1); exit 1; }; }
  5393. fi;;
  5394. esac
  5395. done` || { (exit 1); exit 1; }
  5396. _ACEOF
  5397. cat >>$CONFIG_STATUS <<_ACEOF
  5398. sed "$ac_vpsub
  5399. $extrasub
  5400. _ACEOF
  5401. cat >>$CONFIG_STATUS <<\_ACEOF
  5402. :t
  5403. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5404. s,@configure_input@,$configure_input,;t t
  5405. s,@srcdir@,$ac_srcdir,;t t
  5406. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  5407. s,@top_srcdir@,$ac_top_srcdir,;t t
  5408. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  5409. s,@builddir@,$ac_builddir,;t t
  5410. s,@abs_builddir@,$ac_abs_builddir,;t t
  5411. s,@top_builddir@,$ac_top_builddir,;t t
  5412. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  5413. s,@INSTALL@,$ac_INSTALL,;t t
  5414. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  5415. rm -f $tmp/stdin
  5416. if test x"$ac_file" != x-; then
  5417. mv $tmp/out $ac_file
  5418. else
  5419. cat $tmp/out
  5420. rm -f $tmp/out
  5421. fi
  5422. done
  5423. _ACEOF
  5424. cat >>$CONFIG_STATUS <<\_ACEOF
  5425. #
  5426. # CONFIG_COMMANDS section.
  5427. #
  5428. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  5429. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  5430. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5431. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  5432. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5433. X"$ac_dest" : 'X\(//\)[^/]' \| \
  5434. X"$ac_dest" : 'X\(//\)$' \| \
  5435. X"$ac_dest" : 'X\(/\)' \| \
  5436. . : '\(.\)' 2>/dev/null ||
  5437. echo X"$ac_dest" |
  5438. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5439. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5440. /^X\(\/\/\)$/{ s//\1/; q; }
  5441. /^X\(\/\).*/{ s//\1/; q; }
  5442. s/.*/./; q'`
  5443. ac_builddir=.
  5444. if test "$ac_dir" != .; then
  5445. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5446. # A "../" for each directory in $ac_dir_suffix.
  5447. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  5448. else
  5449. ac_dir_suffix= ac_top_builddir=
  5450. fi
  5451. case $srcdir in
  5452. .) # No --srcdir option. We are building in place.
  5453. ac_srcdir=.
  5454. if test -z "$ac_top_builddir"; then
  5455. ac_top_srcdir=.
  5456. else
  5457. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  5458. fi ;;
  5459. [\\/]* | ?:[\\/]* ) # Absolute path.
  5460. ac_srcdir=$srcdir$ac_dir_suffix;
  5461. ac_top_srcdir=$srcdir ;;
  5462. *) # Relative path.
  5463. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  5464. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  5465. esac
  5466. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  5467. # absolute.
  5468. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  5469. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  5470. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  5471. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  5472. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  5473. echo "$as_me: executing $ac_dest commands" >&6;}
  5474. case $ac_dest in
  5475. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  5476. # Strip MF so we end up with the name of the file.
  5477. mf=`echo "$mf" | sed -e 's/:.*$//'`
  5478. # Check whether this is an Automake generated Makefile or not.
  5479. # We used to match only the files named `Makefile.in', but
  5480. # some people rename them; so instead we look at the file content.
  5481. # Grep'ing the first line is not enough: some people post-process
  5482. # each Makefile.in and add a new line on top of each file to say so.
  5483. # So let's grep whole file.
  5484. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  5485. dirpart=`(dirname "$mf") 2>/dev/null ||
  5486. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5487. X"$mf" : 'X\(//\)[^/]' \| \
  5488. X"$mf" : 'X\(//\)$' \| \
  5489. X"$mf" : 'X\(/\)' \| \
  5490. . : '\(.\)' 2>/dev/null ||
  5491. echo X"$mf" |
  5492. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5493. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5494. /^X\(\/\/\)$/{ s//\1/; q; }
  5495. /^X\(\/\).*/{ s//\1/; q; }
  5496. s/.*/./; q'`
  5497. else
  5498. continue
  5499. fi
  5500. grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  5501. # Extract the definition of DEP_FILES from the Makefile without
  5502. # running `make'.
  5503. DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  5504. test -z "$DEPDIR" && continue
  5505. # When using ansi2knr, U may be empty or an underscore; expand it
  5506. U=`sed -n -e '/^U = / s///p' < "$mf"`
  5507. test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  5508. # We invoke sed twice because it is the simplest approach to
  5509. # changing $(DEPDIR) to its actual value in the expansion.
  5510. for file in `sed -n -e '
  5511. /^DEP_FILES = .*\\\\$/ {
  5512. s/^DEP_FILES = //
  5513. :loop
  5514. s/\\\\$//
  5515. p
  5516. n
  5517. /\\\\$/ b loop
  5518. p
  5519. }
  5520. /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  5521. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  5522. # Make sure the directory exists.
  5523. test -f "$dirpart/$file" && continue
  5524. fdir=`(dirname "$file") 2>/dev/null ||
  5525. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5526. X"$file" : 'X\(//\)[^/]' \| \
  5527. X"$file" : 'X\(//\)$' \| \
  5528. X"$file" : 'X\(/\)' \| \
  5529. . : '\(.\)' 2>/dev/null ||
  5530. echo X"$file" |
  5531. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5532. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5533. /^X\(\/\/\)$/{ s//\1/; q; }
  5534. /^X\(\/\).*/{ s//\1/; q; }
  5535. s/.*/./; q'`
  5536. { if $as_mkdir_p; then
  5537. mkdir -p $dirpart/$fdir
  5538. else
  5539. as_dir=$dirpart/$fdir
  5540. as_dirs=
  5541. while test ! -d "$as_dir"; do
  5542. as_dirs="$as_dir $as_dirs"
  5543. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  5544. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5545. X"$as_dir" : 'X\(//\)[^/]' \| \
  5546. X"$as_dir" : 'X\(//\)$' \| \
  5547. X"$as_dir" : 'X\(/\)' \| \
  5548. . : '\(.\)' 2>/dev/null ||
  5549. echo X"$as_dir" |
  5550. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5551. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5552. /^X\(\/\/\)$/{ s//\1/; q; }
  5553. /^X\(\/\).*/{ s//\1/; q; }
  5554. s/.*/./; q'`
  5555. done
  5556. test ! -n "$as_dirs" || mkdir $as_dirs
  5557. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  5558. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  5559. { (exit 1); exit 1; }; }; }
  5560. # echo "creating $dirpart/$file"
  5561. echo '# dummy' > "$dirpart/$file"
  5562. done
  5563. done
  5564. ;;
  5565. esac
  5566. done
  5567. _ACEOF
  5568. cat >>$CONFIG_STATUS <<\_ACEOF
  5569. { (exit 0); exit 0; }
  5570. _ACEOF
  5571. chmod +x $CONFIG_STATUS
  5572. ac_clean_files=$ac_clean_files_save
  5573. # configure is writing to config.log, and then calls config.status.
  5574. # config.status does its own redirection, appending to config.log.
  5575. # Unfortunately, on DOS this fails, as config.log is still kept open
  5576. # by configure, so config.status won't be able to write to it; its
  5577. # output is simply discarded. So we exec the FD to /dev/null,
  5578. # effectively closing config.log, so it can be properly (re)opened and
  5579. # appended to by config.status. When coming back to configure, we
  5580. # need to make the FD available again.
  5581. if test "$no_create" != yes; then
  5582. ac_cs_success=:
  5583. exec 5>/dev/null
  5584. $SHELL $CONFIG_STATUS || ac_cs_success=false
  5585. exec 5>>config.log
  5586. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5587. # would make configure fail if this is the last instruction.
  5588. $ac_cs_success || { (exit 1); exit 1; }
  5589. fi