configure 172 KB

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