configure 230 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --with-target-subdir=SUBDIR
  14. configuring in a subdirectory"
  15. ac_help="$ac_help
  16. --with-cross-host=HOST configuring with a cross compiler"
  17. ac_help="$ac_help
  18. --with-newlib Configuring with newlib"
  19. ac_help="$ac_help
  20. --enable-multilib build many library versions (default)"
  21. ac_help="$ac_help
  22. --enable-maintainer-mode enable make rules and dependencies not useful
  23. (and sometimes confusing) to the casual installer"
  24. ac_help="$ac_help
  25. --enable-shared[=PKGS] build shared libraries [default=yes]"
  26. ac_help="$ac_help
  27. --enable-static[=PKGS] build static libraries [default=yes]"
  28. ac_help="$ac_help
  29. --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
  30. ac_help="$ac_help
  31. --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  32. ac_help="$ac_help
  33. --disable-libtool-lock avoid locking (might break parallel builds)"
  34. ac_help="$ac_help
  35. --with-pic try to use only PIC/non-PIC objects [default=use both]"
  36. ac_help="$ac_help
  37. --disable-getenv-properties
  38. don't set system properties from GCJ_PROPERTIES"
  39. ac_help="$ac_help
  40. --enable-hash-synchronization
  41. Use global hash table for monitor locks"
  42. ac_help="$ac_help
  43. --enable-libgcj-debug enable runtime debugging code"
  44. ac_help="$ac_help
  45. --enable-interpreter enable interpreter"
  46. ac_help="$ac_help
  47. --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
  48. ac_help="$ac_help
  49. --disable-java-net disable java.net"
  50. ac_help="$ac_help
  51. --without-libffi don't use libffi"
  52. ac_help="$ac_help
  53. --disable-jvmpi disable JVMPI support"
  54. ac_help="$ac_help
  55. --with-ecos enable runtime eCos target support"
  56. ac_help="$ac_help
  57. --with-system-zlib use installed libz"
  58. ac_help="$ac_help
  59. --enable-java-gc=TYPE choose garbage collector [boehm]"
  60. ac_help="$ac_help
  61. --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
  62. ac_help="$ac_help
  63. --with-x use the X Window System"
  64. ac_help="$ac_help
  65. --enable-java-awt list of AWT peer implementations to be built"
  66. # Initialize some variables set by options.
  67. # The variables have the same names as the options, with
  68. # dashes changed to underlines.
  69. build=NONE
  70. cache_file=./config.cache
  71. exec_prefix=NONE
  72. host=NONE
  73. no_create=
  74. nonopt=NONE
  75. no_recursion=
  76. prefix=NONE
  77. program_prefix=NONE
  78. program_suffix=NONE
  79. program_transform_name=s,x,x,
  80. silent=
  81. site=
  82. srcdir=
  83. target=NONE
  84. verbose=
  85. x_includes=NONE
  86. x_libraries=NONE
  87. bindir='${exec_prefix}/bin'
  88. sbindir='${exec_prefix}/sbin'
  89. libexecdir='${exec_prefix}/libexec'
  90. datadir='${prefix}/share'
  91. sysconfdir='${prefix}/etc'
  92. sharedstatedir='${prefix}/com'
  93. localstatedir='${prefix}/var'
  94. libdir='${exec_prefix}/lib'
  95. includedir='${prefix}/include'
  96. oldincludedir='/usr/include'
  97. infodir='${prefix}/info'
  98. mandir='${prefix}/man'
  99. # Initialize some other variables.
  100. subdirs=
  101. MFLAGS= MAKEFLAGS=
  102. SHELL=${CONFIG_SHELL-/bin/sh}
  103. # Maximum number of lines to put in a shell here document.
  104. ac_max_here_lines=12
  105. ac_prev=
  106. for ac_option
  107. do
  108. # If the previous option needs an argument, assign it.
  109. if test -n "$ac_prev"; then
  110. eval "$ac_prev=\$ac_option"
  111. ac_prev=
  112. continue
  113. fi
  114. case "$ac_option" in
  115. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  116. *) ac_optarg= ;;
  117. esac
  118. # Accept the important Cygnus configure options, so we can diagnose typos.
  119. case "$ac_option" in
  120. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  121. ac_prev=bindir ;;
  122. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  123. bindir="$ac_optarg" ;;
  124. -build | --build | --buil | --bui | --bu)
  125. ac_prev=build ;;
  126. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  127. build="$ac_optarg" ;;
  128. -cache-file | --cache-file | --cache-fil | --cache-fi \
  129. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  130. ac_prev=cache_file ;;
  131. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  132. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  133. cache_file="$ac_optarg" ;;
  134. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  135. ac_prev=datadir ;;
  136. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  137. | --da=*)
  138. datadir="$ac_optarg" ;;
  139. -disable-* | --disable-*)
  140. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  141. # Reject names that are not valid shell variable names.
  142. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  143. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  144. fi
  145. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  146. eval "enable_${ac_feature}=no" ;;
  147. -enable-* | --enable-*)
  148. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  149. # Reject names that are not valid shell variable names.
  150. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  151. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  152. fi
  153. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  154. case "$ac_option" in
  155. *=*) ;;
  156. *) ac_optarg=yes ;;
  157. esac
  158. eval "enable_${ac_feature}='$ac_optarg'" ;;
  159. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  160. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  161. | --exec | --exe | --ex)
  162. ac_prev=exec_prefix ;;
  163. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  164. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  165. | --exec=* | --exe=* | --ex=*)
  166. exec_prefix="$ac_optarg" ;;
  167. -gas | --gas | --ga | --g)
  168. # Obsolete; use --with-gas.
  169. with_gas=yes ;;
  170. -help | --help | --hel | --he)
  171. # Omit some internal or obsolete options to make the list less imposing.
  172. # This message is too long to be a string in the A/UX 3.1 sh.
  173. cat << EOF
  174. Usage: configure [options] [host]
  175. Options: [defaults in brackets after descriptions]
  176. Configuration:
  177. --cache-file=FILE cache test results in FILE
  178. --help print this message
  179. --no-create do not create output files
  180. --quiet, --silent do not print \`checking...' messages
  181. --version print the version of autoconf that created configure
  182. Directory and file names:
  183. --prefix=PREFIX install architecture-independent files in PREFIX
  184. [$ac_default_prefix]
  185. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  186. [same as prefix]
  187. --bindir=DIR user executables in DIR [EPREFIX/bin]
  188. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  189. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  190. --datadir=DIR read-only architecture-independent data in DIR
  191. [PREFIX/share]
  192. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  193. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  194. [PREFIX/com]
  195. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  196. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  197. --includedir=DIR C header files in DIR [PREFIX/include]
  198. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  199. --infodir=DIR info documentation in DIR [PREFIX/info]
  200. --mandir=DIR man documentation in DIR [PREFIX/man]
  201. --srcdir=DIR find the sources in DIR [configure dir or ..]
  202. --program-prefix=PREFIX prepend PREFIX to installed program names
  203. --program-suffix=SUFFIX append SUFFIX to installed program names
  204. --program-transform-name=PROGRAM
  205. run sed PROGRAM on installed program names
  206. EOF
  207. cat << EOF
  208. Host type:
  209. --build=BUILD configure for building on BUILD [BUILD=HOST]
  210. --host=HOST configure for HOST [guessed]
  211. --target=TARGET configure for TARGET [TARGET=HOST]
  212. Features and packages:
  213. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  214. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  215. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  216. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  217. --x-includes=DIR X include files are in DIR
  218. --x-libraries=DIR X library files are in DIR
  219. EOF
  220. if test -n "$ac_help"; then
  221. echo "--enable and --with options recognized:$ac_help"
  222. fi
  223. exit 0 ;;
  224. -host | --host | --hos | --ho)
  225. ac_prev=host ;;
  226. -host=* | --host=* | --hos=* | --ho=*)
  227. host="$ac_optarg" ;;
  228. -includedir | --includedir | --includedi | --included | --include \
  229. | --includ | --inclu | --incl | --inc)
  230. ac_prev=includedir ;;
  231. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  232. | --includ=* | --inclu=* | --incl=* | --inc=*)
  233. includedir="$ac_optarg" ;;
  234. -infodir | --infodir | --infodi | --infod | --info | --inf)
  235. ac_prev=infodir ;;
  236. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  237. infodir="$ac_optarg" ;;
  238. -libdir | --libdir | --libdi | --libd)
  239. ac_prev=libdir ;;
  240. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  241. libdir="$ac_optarg" ;;
  242. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  243. | --libexe | --libex | --libe)
  244. ac_prev=libexecdir ;;
  245. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  246. | --libexe=* | --libex=* | --libe=*)
  247. libexecdir="$ac_optarg" ;;
  248. -localstatedir | --localstatedir | --localstatedi | --localstated \
  249. | --localstate | --localstat | --localsta | --localst \
  250. | --locals | --local | --loca | --loc | --lo)
  251. ac_prev=localstatedir ;;
  252. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  253. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  254. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  255. localstatedir="$ac_optarg" ;;
  256. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  257. ac_prev=mandir ;;
  258. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  259. mandir="$ac_optarg" ;;
  260. -nfp | --nfp | --nf)
  261. # Obsolete; use --without-fp.
  262. with_fp=no ;;
  263. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  264. | --no-cr | --no-c)
  265. no_create=yes ;;
  266. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  267. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  268. no_recursion=yes ;;
  269. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  270. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  271. | --oldin | --oldi | --old | --ol | --o)
  272. ac_prev=oldincludedir ;;
  273. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  274. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  275. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  276. oldincludedir="$ac_optarg" ;;
  277. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  278. ac_prev=prefix ;;
  279. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  280. prefix="$ac_optarg" ;;
  281. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  282. | --program-pre | --program-pr | --program-p)
  283. ac_prev=program_prefix ;;
  284. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  285. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  286. program_prefix="$ac_optarg" ;;
  287. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  288. | --program-suf | --program-su | --program-s)
  289. ac_prev=program_suffix ;;
  290. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  291. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  292. program_suffix="$ac_optarg" ;;
  293. -program-transform-name | --program-transform-name \
  294. | --program-transform-nam | --program-transform-na \
  295. | --program-transform-n | --program-transform- \
  296. | --program-transform | --program-transfor \
  297. | --program-transfo | --program-transf \
  298. | --program-trans | --program-tran \
  299. | --progr-tra | --program-tr | --program-t)
  300. ac_prev=program_transform_name ;;
  301. -program-transform-name=* | --program-transform-name=* \
  302. | --program-transform-nam=* | --program-transform-na=* \
  303. | --program-transform-n=* | --program-transform-=* \
  304. | --program-transform=* | --program-transfor=* \
  305. | --program-transfo=* | --program-transf=* \
  306. | --program-trans=* | --program-tran=* \
  307. | --progr-tra=* | --program-tr=* | --program-t=*)
  308. program_transform_name="$ac_optarg" ;;
  309. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  310. | -silent | --silent | --silen | --sile | --sil)
  311. silent=yes ;;
  312. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  313. ac_prev=sbindir ;;
  314. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  315. | --sbi=* | --sb=*)
  316. sbindir="$ac_optarg" ;;
  317. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  318. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  319. | --sharedst | --shareds | --shared | --share | --shar \
  320. | --sha | --sh)
  321. ac_prev=sharedstatedir ;;
  322. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  323. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  324. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  325. | --sha=* | --sh=*)
  326. sharedstatedir="$ac_optarg" ;;
  327. -site | --site | --sit)
  328. ac_prev=site ;;
  329. -site=* | --site=* | --sit=*)
  330. site="$ac_optarg" ;;
  331. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  332. ac_prev=srcdir ;;
  333. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  334. srcdir="$ac_optarg" ;;
  335. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  336. | --syscon | --sysco | --sysc | --sys | --sy)
  337. ac_prev=sysconfdir ;;
  338. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  339. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  340. sysconfdir="$ac_optarg" ;;
  341. -target | --target | --targe | --targ | --tar | --ta | --t)
  342. ac_prev=target ;;
  343. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  344. target="$ac_optarg" ;;
  345. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  346. verbose=yes ;;
  347. -version | --version | --versio | --versi | --vers)
  348. echo "configure generated by autoconf version 2.13"
  349. exit 0 ;;
  350. -with-* | --with-*)
  351. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  352. # Reject names that are not valid shell variable names.
  353. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  354. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  355. fi
  356. ac_package=`echo $ac_package| sed 's/-/_/g'`
  357. case "$ac_option" in
  358. *=*) ;;
  359. *) ac_optarg=yes ;;
  360. esac
  361. eval "with_${ac_package}='$ac_optarg'" ;;
  362. -without-* | --without-*)
  363. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  364. # Reject names that are not valid shell variable names.
  365. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  366. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  367. fi
  368. ac_package=`echo $ac_package| sed 's/-/_/g'`
  369. eval "with_${ac_package}=no" ;;
  370. --x)
  371. # Obsolete; use --with-x.
  372. with_x=yes ;;
  373. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  374. | --x-incl | --x-inc | --x-in | --x-i)
  375. ac_prev=x_includes ;;
  376. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  377. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  378. x_includes="$ac_optarg" ;;
  379. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  380. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  381. ac_prev=x_libraries ;;
  382. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  383. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  384. x_libraries="$ac_optarg" ;;
  385. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  386. ;;
  387. *)
  388. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  389. echo "configure: warning: $ac_option: invalid host type" 1>&2
  390. fi
  391. if test "x$nonopt" != xNONE; then
  392. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  393. fi
  394. nonopt="$ac_option"
  395. ;;
  396. esac
  397. done
  398. if test -n "$ac_prev"; then
  399. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  400. fi
  401. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  402. # File descriptor usage:
  403. # 0 standard input
  404. # 1 file creation
  405. # 2 errors and warnings
  406. # 3 some systems may open it to /dev/tty
  407. # 4 used on the Kubota Titan
  408. # 6 checking for... messages and results
  409. # 5 compiler messages saved in config.log
  410. if test "$silent" = yes; then
  411. exec 6>/dev/null
  412. else
  413. exec 6>&1
  414. fi
  415. exec 5>./config.log
  416. echo "\
  417. This file contains any messages produced by compilers while
  418. running configure, to aid debugging if configure makes a mistake.
  419. " 1>&5
  420. # Strip out --no-create and --no-recursion so they do not pile up.
  421. # Also quote any args containing shell metacharacters.
  422. ac_configure_args=
  423. for ac_arg
  424. do
  425. case "$ac_arg" in
  426. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  427. | --no-cr | --no-c) ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  430. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  431. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  432. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  433. esac
  434. done
  435. # NLS nuisances.
  436. # Only set these to C if already set. These must not be set unconditionally
  437. # because not all systems understand e.g. LANG=C (notably SCO).
  438. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  439. # Non-C LC_CTYPE values break the ctype check.
  440. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  441. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  442. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  443. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  444. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  445. rm -rf conftest* confdefs.h
  446. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  447. echo > confdefs.h
  448. # A filename unique to this package, relative to the directory that
  449. # configure is in, which we can look for to find out if srcdir is correct.
  450. ac_unique_file=java/lang/System.java
  451. # Find the source files, if location was not specified.
  452. if test -z "$srcdir"; then
  453. ac_srcdir_defaulted=yes
  454. # Try the directory containing this script, then its parent.
  455. ac_prog=$0
  456. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  457. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  458. srcdir=$ac_confdir
  459. if test ! -r $srcdir/$ac_unique_file; then
  460. srcdir=..
  461. fi
  462. else
  463. ac_srcdir_defaulted=no
  464. fi
  465. if test ! -r $srcdir/$ac_unique_file; then
  466. if test "$ac_srcdir_defaulted" = yes; then
  467. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  468. else
  469. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  470. fi
  471. fi
  472. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  473. # Prefer explicitly selected file to automatically selected ones.
  474. if test -z "$CONFIG_SITE"; then
  475. if test "x$prefix" != xNONE; then
  476. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  477. else
  478. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  479. fi
  480. fi
  481. for ac_site_file in $CONFIG_SITE; do
  482. if test -r "$ac_site_file"; then
  483. echo "loading site script $ac_site_file"
  484. . "$ac_site_file"
  485. fi
  486. done
  487. if test -r "$cache_file"; then
  488. echo "loading cache $cache_file"
  489. . $cache_file
  490. else
  491. echo "creating cache $cache_file"
  492. > $cache_file
  493. fi
  494. ac_ext=c
  495. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  496. ac_cpp='$CPP $CPPFLAGS'
  497. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  498. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  499. cross_compiling=$ac_cv_prog_cc_cross
  500. ac_exeext=
  501. ac_objext=o
  502. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  503. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  504. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  505. ac_n= ac_c='
  506. ' ac_t=' '
  507. else
  508. ac_n=-n ac_c= ac_t=
  509. fi
  510. else
  511. ac_n= ac_c='\c' ac_t=
  512. fi
  513. # This works around the fact that libtool configuration may change LD
  514. # for this particular configuration, but some shells, instead of
  515. # keeping the changes in LD private, export them just because LD is
  516. # exported.
  517. ORIGINAL_LD_FOR_MULTILIBS=$LD
  518. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  519. echo "configure:587: checking whether ln -s works" >&5
  520. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  521. echo $ac_n "(cached) $ac_c" 1>&6
  522. else
  523. rm -f conftestdata
  524. if ln -s X conftestdata 2>/dev/null
  525. then
  526. rm -f conftestdata
  527. ac_cv_prog_LN_S="ln -s"
  528. else
  529. ac_cv_prog_LN_S=ln
  530. fi
  531. fi
  532. LN_S="$ac_cv_prog_LN_S"
  533. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  534. echo "$ac_t""yes" 1>&6
  535. else
  536. echo "$ac_t""no" 1>&6
  537. fi
  538. # Check whether --with-target-subdir or --without-target-subdir was given.
  539. if test "${with_target_subdir+set}" = set; then
  540. withval="$with_target_subdir"
  541. :
  542. fi
  543. # Check whether --with-cross-host or --without-cross-host was given.
  544. if test "${with_cross_host+set}" = set; then
  545. withval="$with_cross_host"
  546. :
  547. fi
  548. # Check whether --with-newlib or --without-newlib was given.
  549. if test "${with_newlib+set}" = set; then
  550. withval="$with_newlib"
  551. :
  552. fi
  553. # Find a good install program. We prefer a C program (faster),
  554. # so one script is as good as another. But avoid the broken or
  555. # incompatible versions:
  556. # SysV /etc/install, /usr/sbin/install
  557. # SunOS /usr/etc/install
  558. # IRIX /sbin/install
  559. # AIX /bin/install
  560. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  561. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  562. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  563. # ./install, which can be erroneously created by make from ./install.sh.
  564. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  565. echo "configure:640: checking for a BSD compatible install" >&5
  566. if test -z "$INSTALL"; then
  567. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  568. echo $ac_n "(cached) $ac_c" 1>&6
  569. else
  570. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  571. for ac_dir in $PATH; do
  572. # Account for people who put trailing slashes in PATH elements.
  573. case "$ac_dir/" in
  574. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  575. *)
  576. # OSF1 and SCO ODT 3.0 have their own names for install.
  577. # Don't use installbsd from OSF since it installs stuff as root
  578. # by default.
  579. for ac_prog in ginstall scoinst install; do
  580. if test -f $ac_dir/$ac_prog; then
  581. if test $ac_prog = install &&
  582. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  583. # AIX install. It has an incompatible calling convention.
  584. :
  585. else
  586. ac_cv_path_install="$ac_dir/$ac_prog -c"
  587. break 2
  588. fi
  589. fi
  590. done
  591. ;;
  592. esac
  593. done
  594. IFS="$ac_save_IFS"
  595. fi
  596. if test "${ac_cv_path_install+set}" = set; then
  597. INSTALL="$ac_cv_path_install"
  598. else
  599. # As a last resort, use the slow shell script. We don't cache a
  600. # path for INSTALL within a source directory, because that will
  601. # break other packages using the cache if that directory is
  602. # removed, or if the path is relative.
  603. INSTALL="$ac_install_sh"
  604. fi
  605. fi
  606. echo "$ac_t""$INSTALL" 1>&6
  607. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  608. # It thinks the first close brace ends the variable substitution.
  609. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  610. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  611. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  612. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  613. echo "configure:693: checking whether build environment is sane" >&5
  614. # Just in case
  615. sleep 1
  616. echo timestamp > conftestfile
  617. # Do `set' in a subshell so we don't clobber the current shell's
  618. # arguments. Must try -L first in case configure is actually a
  619. # symlink; some systems play weird games with the mod time of symlinks
  620. # (eg FreeBSD returns the mod time of the symlink's containing
  621. # directory).
  622. if (
  623. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  624. if test "$*" = "X"; then
  625. # -L didn't work.
  626. set X `ls -t $srcdir/configure conftestfile`
  627. fi
  628. if test "$*" != "X $srcdir/configure conftestfile" \
  629. && test "$*" != "X conftestfile $srcdir/configure"; then
  630. # If neither matched, then we have a broken ls. This can happen
  631. # if, for instance, CONFIG_SHELL is bash and it inherits a
  632. # broken ls alias from the environment. This has actually
  633. # happened. Such a system could not be considered "sane".
  634. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  635. alias in your environment" 1>&2; exit 1; }
  636. fi
  637. test "$2" = conftestfile
  638. )
  639. then
  640. # Ok.
  641. :
  642. else
  643. { echo "configure: error: newly created file is older than distributed files!
  644. Check your system clock" 1>&2; exit 1; }
  645. fi
  646. rm -f conftest*
  647. echo "$ac_t""yes" 1>&6
  648. if test "$program_transform_name" = s,x,x,; then
  649. program_transform_name=
  650. else
  651. # Double any \ or $. echo might interpret backslashes.
  652. cat <<\EOF_SED > conftestsed
  653. s,\\,\\\\,g; s,\$,$$,g
  654. EOF_SED
  655. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  656. rm -f conftestsed
  657. fi
  658. test "$program_prefix" != NONE &&
  659. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  660. # Use a double $ so make ignores it.
  661. test "$program_suffix" != NONE &&
  662. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  663. # sed with no file args requires a program.
  664. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  665. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  666. echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
  667. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  668. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  669. echo $ac_n "(cached) $ac_c" 1>&6
  670. else
  671. cat > conftestmake <<\EOF
  672. all:
  673. @echo 'ac_maketemp="${MAKE}"'
  674. EOF
  675. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  676. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  677. if test -n "$ac_maketemp"; then
  678. eval ac_cv_prog_make_${ac_make}_set=yes
  679. else
  680. eval ac_cv_prog_make_${ac_make}_set=no
  681. fi
  682. rm -f conftestmake
  683. fi
  684. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  685. echo "$ac_t""yes" 1>&6
  686. SET_MAKE=
  687. else
  688. echo "$ac_t""no" 1>&6
  689. SET_MAKE="MAKE=${MAKE-make}"
  690. fi
  691. if test $host != $build; then
  692. ac_tool_prefix=${host_alias}-
  693. else
  694. ac_tool_prefix=
  695. fi
  696. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  697. echo "configure:783: checking for Cygwin environment" >&5
  698. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  699. echo $ac_n "(cached) $ac_c" 1>&6
  700. else
  701. cat > conftest.$ac_ext <<EOF
  702. #line 788 "configure"
  703. #include "confdefs.h"
  704. int main() {
  705. #ifndef __CYGWIN__
  706. #define __CYGWIN__ __CYGWIN32__
  707. #endif
  708. return __CYGWIN__;
  709. ; return 0; }
  710. EOF
  711. if { (eval echo configure:799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  712. rm -rf conftest*
  713. ac_cv_cygwin=yes
  714. else
  715. echo "configure: failed program was:" >&5
  716. cat conftest.$ac_ext >&5
  717. rm -rf conftest*
  718. ac_cv_cygwin=no
  719. fi
  720. rm -f conftest*
  721. rm -f conftest*
  722. fi
  723. echo "$ac_t""$ac_cv_cygwin" 1>&6
  724. CYGWIN=
  725. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  726. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  727. echo "configure:816: checking for mingw32 environment" >&5
  728. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  729. echo $ac_n "(cached) $ac_c" 1>&6
  730. else
  731. cat > conftest.$ac_ext <<EOF
  732. #line 821 "configure"
  733. #include "confdefs.h"
  734. int main() {
  735. return __MINGW32__;
  736. ; return 0; }
  737. EOF
  738. if { (eval echo configure:828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  739. rm -rf conftest*
  740. ac_cv_mingw32=yes
  741. else
  742. echo "configure: failed program was:" >&5
  743. cat conftest.$ac_ext >&5
  744. rm -rf conftest*
  745. ac_cv_mingw32=no
  746. fi
  747. rm -f conftest*
  748. rm -f conftest*
  749. fi
  750. echo "$ac_t""$ac_cv_mingw32" 1>&6
  751. MINGW32=
  752. test "$ac_cv_mingw32" = yes && MINGW32=yes
  753. # Check whether --enable-multilib or --disable-multilib was given.
  754. if test "${enable_multilib+set}" = set; then
  755. enableval="$enable_multilib"
  756. case "${enableval}" in
  757. yes) multilib=yes ;;
  758. no) multilib=no ;;
  759. *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
  760. esac
  761. else
  762. multilib=yes
  763. fi
  764. # When building with srcdir == objdir, links to the source files will
  765. # be created in directories within the target_subdir. We have to
  766. # adjust toplevel_srcdir accordingly, so that configure finds
  767. # install-sh and other auxiliary files that live in the top-level
  768. # source directory.
  769. if test "${srcdir}" = "."; then
  770. if test -z "${with_target_subdir}"; then
  771. toprel=".."
  772. else
  773. if test "${with_target_subdir}" != "."; then
  774. toprel="${with_multisrctop}../.."
  775. else
  776. toprel="${with_multisrctop}.."
  777. fi
  778. fi
  779. else
  780. toprel=".."
  781. fi
  782. libgcj_basedir=$srcdir/$toprel/./libjava
  783. ac_aux_dir=
  784. for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
  785. if test -f $ac_dir/install-sh; then
  786. ac_aux_dir=$ac_dir
  787. ac_install_sh="$ac_aux_dir/install-sh -c"
  788. break
  789. elif test -f $ac_dir/install.sh; then
  790. ac_aux_dir=$ac_dir
  791. ac_install_sh="$ac_aux_dir/install.sh -c"
  792. break
  793. fi
  794. done
  795. if test -z "$ac_aux_dir"; then
  796. { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
  797. fi
  798. ac_config_guess=$ac_aux_dir/config.guess
  799. ac_config_sub=$ac_aux_dir/config.sub
  800. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  801. if :; then :; else
  802. # This overrides the previous occurrence for automake, but not for
  803. # autoconf, which is exactly what we want.
  804. ac_aux_dir=
  805. for ac_dir in .. $srcdir/..; do
  806. if test -f $ac_dir/install-sh; then
  807. ac_aux_dir=$ac_dir
  808. ac_install_sh="$ac_aux_dir/install-sh -c"
  809. break
  810. elif test -f $ac_dir/install.sh; then
  811. ac_aux_dir=$ac_dir
  812. ac_install_sh="$ac_aux_dir/install.sh -c"
  813. break
  814. fi
  815. done
  816. if test -z "$ac_aux_dir"; then
  817. { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
  818. fi
  819. ac_config_guess=$ac_aux_dir/config.guess
  820. ac_config_sub=$ac_aux_dir/config.sub
  821. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  822. fi
  823. # This works around an automake problem.
  824. mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
  825. # Do some error checking and defaulting for the host and target type.
  826. # The inputs are:
  827. # configure --host=HOST --target=TARGET --build=BUILD NONOPT
  828. #
  829. # The rules are:
  830. # 1. You are not allowed to specify --host, --target, and nonopt at the
  831. # same time.
  832. # 2. Host defaults to nonopt.
  833. # 3. If nonopt is not specified, then host defaults to the current host,
  834. # as determined by config.guess.
  835. # 4. Target and build default to nonopt.
  836. # 5. If nonopt is not specified, then target and build default to host.
  837. # The aliases save the names the user supplied, while $host etc.
  838. # will get canonicalized.
  839. case $host---$target---$nonopt in
  840. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  841. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  842. esac
  843. # Make sure we can run config.sub.
  844. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  845. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  846. fi
  847. echo $ac_n "checking host system type""... $ac_c" 1>&6
  848. echo "configure:955: checking host system type" >&5
  849. host_alias=$host
  850. case "$host_alias" in
  851. NONE)
  852. case $nonopt in
  853. NONE)
  854. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  855. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  856. fi ;;
  857. *) host_alias=$nonopt ;;
  858. esac ;;
  859. esac
  860. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  861. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  862. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  863. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  864. echo "$ac_t""$host" 1>&6
  865. echo $ac_n "checking target system type""... $ac_c" 1>&6
  866. echo "configure:976: checking target system type" >&5
  867. target_alias=$target
  868. case "$target_alias" in
  869. NONE)
  870. case $nonopt in
  871. NONE) target_alias=$host_alias ;;
  872. *) target_alias=$nonopt ;;
  873. esac ;;
  874. esac
  875. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  876. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  877. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  878. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  879. echo "$ac_t""$target" 1>&6
  880. echo $ac_n "checking build system type""... $ac_c" 1>&6
  881. echo "configure:994: checking build system type" >&5
  882. build_alias=$build
  883. case "$build_alias" in
  884. NONE)
  885. case $nonopt in
  886. NONE) build_alias=$host_alias ;;
  887. *) build_alias=$nonopt ;;
  888. esac ;;
  889. esac
  890. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  891. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  892. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  893. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  894. echo "$ac_t""$build" 1>&6
  895. test "$host_alias" != "$target_alias" &&
  896. test "$program_prefix$program_suffix$program_transform_name" = \
  897. NONENONEs,x,x, &&
  898. program_prefix=${target_alias}-
  899. # Extract the first word of "gcc", so it can be a program name with args.
  900. set dummy gcc; ac_word=$2
  901. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  902. echo "configure:1023: checking for $ac_word" >&5
  903. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  904. echo $ac_n "(cached) $ac_c" 1>&6
  905. else
  906. if test -n "$CC"; then
  907. ac_cv_prog_CC="$CC" # Let the user override the test.
  908. else
  909. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  910. ac_dummy="$PATH"
  911. for ac_dir in $ac_dummy; do
  912. test -z "$ac_dir" && ac_dir=.
  913. if test -f $ac_dir/$ac_word; then
  914. ac_cv_prog_CC="gcc"
  915. break
  916. fi
  917. done
  918. IFS="$ac_save_ifs"
  919. fi
  920. fi
  921. CC="$ac_cv_prog_CC"
  922. if test -n "$CC"; then
  923. echo "$ac_t""$CC" 1>&6
  924. else
  925. echo "$ac_t""no" 1>&6
  926. fi
  927. if test -z "$CC"; then
  928. # Extract the first word of "cc", so it can be a program name with args.
  929. set dummy cc; ac_word=$2
  930. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  931. echo "configure:1053: checking for $ac_word" >&5
  932. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  933. echo $ac_n "(cached) $ac_c" 1>&6
  934. else
  935. if test -n "$CC"; then
  936. ac_cv_prog_CC="$CC" # Let the user override the test.
  937. else
  938. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  939. ac_prog_rejected=no
  940. ac_dummy="$PATH"
  941. for ac_dir in $ac_dummy; do
  942. test -z "$ac_dir" && ac_dir=.
  943. if test -f $ac_dir/$ac_word; then
  944. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  945. ac_prog_rejected=yes
  946. continue
  947. fi
  948. ac_cv_prog_CC="cc"
  949. break
  950. fi
  951. done
  952. IFS="$ac_save_ifs"
  953. if test $ac_prog_rejected = yes; then
  954. # We found a bogon in the path, so make sure we never use it.
  955. set dummy $ac_cv_prog_CC
  956. shift
  957. if test $# -gt 0; then
  958. # We chose a different compiler from the bogus one.
  959. # However, it has the same basename, so the bogon will be chosen
  960. # first if we set CC to just the basename; use the full file name.
  961. shift
  962. set dummy "$ac_dir/$ac_word" "$@"
  963. shift
  964. ac_cv_prog_CC="$@"
  965. fi
  966. fi
  967. fi
  968. fi
  969. CC="$ac_cv_prog_CC"
  970. if test -n "$CC"; then
  971. echo "$ac_t""$CC" 1>&6
  972. else
  973. echo "$ac_t""no" 1>&6
  974. fi
  975. if test -z "$CC"; then
  976. case "`uname -s`" in
  977. *win32* | *WIN32*)
  978. # Extract the first word of "cl", so it can be a program name with args.
  979. set dummy cl; ac_word=$2
  980. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  981. echo "configure:1104: checking for $ac_word" >&5
  982. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  983. echo $ac_n "(cached) $ac_c" 1>&6
  984. else
  985. if test -n "$CC"; then
  986. ac_cv_prog_CC="$CC" # Let the user override the test.
  987. else
  988. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  989. ac_dummy="$PATH"
  990. for ac_dir in $ac_dummy; do
  991. test -z "$ac_dir" && ac_dir=.
  992. if test -f $ac_dir/$ac_word; then
  993. ac_cv_prog_CC="cl"
  994. break
  995. fi
  996. done
  997. IFS="$ac_save_ifs"
  998. fi
  999. fi
  1000. CC="$ac_cv_prog_CC"
  1001. if test -n "$CC"; then
  1002. echo "$ac_t""$CC" 1>&6
  1003. else
  1004. echo "$ac_t""no" 1>&6
  1005. fi
  1006. ;;
  1007. esac
  1008. fi
  1009. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1010. fi
  1011. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1012. echo "configure:1137: checking whether we are using GNU C" >&5
  1013. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1014. echo $ac_n "(cached) $ac_c" 1>&6
  1015. else
  1016. cat > conftest.c <<EOF
  1017. #ifdef __GNUC__
  1018. yes;
  1019. #endif
  1020. EOF
  1021. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1022. ac_cv_prog_gcc=yes
  1023. else
  1024. ac_cv_prog_gcc=no
  1025. fi
  1026. fi
  1027. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1028. if test $ac_cv_prog_gcc = yes; then
  1029. GCC=yes
  1030. else
  1031. GCC=
  1032. fi
  1033. ac_test_CFLAGS="${CFLAGS+set}"
  1034. ac_save_CFLAGS="$CFLAGS"
  1035. CFLAGS=
  1036. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1037. echo "configure:1165: checking whether ${CC-cc} accepts -g" >&5
  1038. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1039. echo $ac_n "(cached) $ac_c" 1>&6
  1040. else
  1041. echo 'void f(){}' > conftest.c
  1042. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1043. ac_cv_prog_cc_g=yes
  1044. else
  1045. ac_cv_prog_cc_g=no
  1046. fi
  1047. rm -f conftest*
  1048. fi
  1049. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1050. if test "$ac_test_CFLAGS" = set; then
  1051. CFLAGS="$ac_save_CFLAGS"
  1052. elif test $ac_cv_prog_cc_g = yes; then
  1053. if test "$GCC" = yes; then
  1054. CFLAGS="-g -O2"
  1055. else
  1056. CFLAGS="-g"
  1057. fi
  1058. else
  1059. if test "$GCC" = yes; then
  1060. CFLAGS="-O2"
  1061. else
  1062. CFLAGS=
  1063. fi
  1064. fi
  1065. # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
  1066. # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
  1067. # different definition of CXX than other directories, since we don't
  1068. # depend on libstdc++-v3 having already been built.
  1069. # Use glibjava_CXX so that we do not cause CXX to be cached with the
  1070. # flags that come in CXX while configuring libjava. They're different
  1071. # from those used for all other target libraries. If CXX is set in
  1072. # the environment, respect that here.
  1073. glibjava_CXX=$CXX
  1074. for ac_prog in $CCC c++ g++ gcc CC cxx cc++
  1075. do
  1076. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1077. set dummy $ac_prog; ac_word=$2
  1078. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1079. echo "configure:1214: checking for $ac_word" >&5
  1080. if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
  1081. echo $ac_n "(cached) $ac_c" 1>&6
  1082. else
  1083. if test -n "$glibjava_CXX"; then
  1084. ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
  1085. else
  1086. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1087. ac_dummy="$PATH"
  1088. for ac_dir in $ac_dummy; do
  1089. test -z "$ac_dir" && ac_dir=.
  1090. if test -f $ac_dir/$ac_word; then
  1091. ac_cv_prog_glibjava_CXX="$ac_prog"
  1092. break
  1093. fi
  1094. done
  1095. IFS="$ac_save_ifs"
  1096. fi
  1097. fi
  1098. glibjava_CXX="$ac_cv_prog_glibjava_CXX"
  1099. if test -n "$glibjava_CXX"; then
  1100. echo "$ac_t""$glibjava_CXX" 1>&6
  1101. else
  1102. echo "$ac_t""no" 1>&6
  1103. fi
  1104. test -n "$glibjava_CXX" && break
  1105. done
  1106. test -n "$glibjava_CXX" || glibjava_CXX="gcc"
  1107. CXX=$glibjava_CXX
  1108. test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
  1109. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  1110. echo "configure:1249: checking whether we are using GNU C++" >&5
  1111. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  1112. echo $ac_n "(cached) $ac_c" 1>&6
  1113. else
  1114. cat > conftest.C <<EOF
  1115. #ifdef __GNUC__
  1116. yes;
  1117. #endif
  1118. EOF
  1119. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1120. ac_cv_prog_gxx=yes
  1121. else
  1122. ac_cv_prog_gxx=no
  1123. fi
  1124. fi
  1125. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  1126. if test $ac_cv_prog_gxx = yes; then
  1127. GXX=yes
  1128. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  1129. ac_save_CXXFLAGS="$CXXFLAGS"
  1130. CXXFLAGS=
  1131. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  1132. echo "configure:1273: checking whether ${CXX-g++} accepts -g" >&5
  1133. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  1134. echo $ac_n "(cached) $ac_c" 1>&6
  1135. else
  1136. echo 'void f(){}' > conftest.cc
  1137. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  1138. ac_cv_prog_cxx_g=yes
  1139. else
  1140. ac_cv_prog_cxx_g=no
  1141. fi
  1142. rm -f conftest*
  1143. fi
  1144. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  1145. if test "$ac_test_CXXFLAGS" = set; then
  1146. CXXFLAGS="$ac_save_CXXFLAGS"
  1147. elif test $ac_cv_prog_cxx_g = yes; then
  1148. CXXFLAGS="-g -O2"
  1149. else
  1150. CXXFLAGS="-O2"
  1151. fi
  1152. else
  1153. GXX=
  1154. test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
  1155. fi
  1156. version=0.0.7
  1157. PACKAGE=libjava
  1158. VERSION=$version
  1159. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  1160. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  1161. fi
  1162. cat >> confdefs.h <<EOF
  1163. #define PACKAGE "$PACKAGE"
  1164. EOF
  1165. cat >> confdefs.h <<EOF
  1166. #define VERSION "$VERSION"
  1167. EOF
  1168. missing_dir=`cd $ac_aux_dir && pwd`
  1169. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  1170. echo "configure:1322: checking for working aclocal" >&5
  1171. # Run test in a subshell; some versions of sh will print an error if
  1172. # an executable is not found, even if stderr is redirected.
  1173. # Redirect stdin to placate older versions of autoconf. Sigh.
  1174. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  1175. ACLOCAL=aclocal
  1176. echo "$ac_t""found" 1>&6
  1177. else
  1178. ACLOCAL="$missing_dir/missing aclocal"
  1179. echo "$ac_t""missing" 1>&6
  1180. fi
  1181. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  1182. echo "configure:1335: checking for working autoconf" >&5
  1183. # Run test in a subshell; some versions of sh will print an error if
  1184. # an executable is not found, even if stderr is redirected.
  1185. # Redirect stdin to placate older versions of autoconf. Sigh.
  1186. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  1187. AUTOCONF=autoconf
  1188. echo "$ac_t""found" 1>&6
  1189. else
  1190. AUTOCONF="$missing_dir/missing autoconf"
  1191. echo "$ac_t""missing" 1>&6
  1192. fi
  1193. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  1194. echo "configure:1348: checking for working automake" >&5
  1195. # Run test in a subshell; some versions of sh will print an error if
  1196. # an executable is not found, even if stderr is redirected.
  1197. # Redirect stdin to placate older versions of autoconf. Sigh.
  1198. if (automake --version) < /dev/null > /dev/null 2>&1; then
  1199. AUTOMAKE=automake
  1200. echo "$ac_t""found" 1>&6
  1201. else
  1202. AUTOMAKE="$missing_dir/missing automake"
  1203. echo "$ac_t""missing" 1>&6
  1204. fi
  1205. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  1206. echo "configure:1361: checking for working autoheader" >&5
  1207. # Run test in a subshell; some versions of sh will print an error if
  1208. # an executable is not found, even if stderr is redirected.
  1209. # Redirect stdin to placate older versions of autoconf. Sigh.
  1210. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  1211. AUTOHEADER=autoheader
  1212. echo "$ac_t""found" 1>&6
  1213. else
  1214. AUTOHEADER="$missing_dir/missing autoheader"
  1215. echo "$ac_t""missing" 1>&6
  1216. fi
  1217. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  1218. echo "configure:1374: checking for working makeinfo" >&5
  1219. # Run test in a subshell; some versions of sh will print an error if
  1220. # an executable is not found, even if stderr is redirected.
  1221. # Redirect stdin to placate older versions of autoconf. Sigh.
  1222. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  1223. MAKEINFO=makeinfo
  1224. echo "$ac_t""found" 1>&6
  1225. else
  1226. MAKEINFO="$missing_dir/missing makeinfo"
  1227. echo "$ac_t""missing" 1>&6
  1228. fi
  1229. # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
  1230. # run it explicitly here, it will be run implicitly before
  1231. # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
  1232. # be run before AC_CANONICAL_HOST.
  1233. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1234. echo "configure:1393: checking build system type" >&5
  1235. build_alias=$build
  1236. case "$build_alias" in
  1237. NONE)
  1238. case $nonopt in
  1239. NONE) build_alias=$host_alias ;;
  1240. *) build_alias=$nonopt ;;
  1241. esac ;;
  1242. esac
  1243. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  1244. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1245. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1246. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1247. echo "$ac_t""$build" 1>&6
  1248. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  1249. set dummy ${ac_tool_prefix}as; ac_word=$2
  1250. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1251. echo "configure:1414: checking for $ac_word" >&5
  1252. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  1253. echo $ac_n "(cached) $ac_c" 1>&6
  1254. else
  1255. if test -n "$AS"; then
  1256. ac_cv_prog_AS="$AS" # Let the user override the test.
  1257. else
  1258. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1259. ac_dummy="$PATH"
  1260. for ac_dir in $ac_dummy; do
  1261. test -z "$ac_dir" && ac_dir=.
  1262. if test -f $ac_dir/$ac_word; then
  1263. ac_cv_prog_AS="${ac_tool_prefix}as"
  1264. break
  1265. fi
  1266. done
  1267. IFS="$ac_save_ifs"
  1268. test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
  1269. fi
  1270. fi
  1271. AS="$ac_cv_prog_AS"
  1272. if test -n "$AS"; then
  1273. echo "$ac_t""$AS" 1>&6
  1274. else
  1275. echo "$ac_t""no" 1>&6
  1276. fi
  1277. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  1278. set dummy ${ac_tool_prefix}ar; ac_word=$2
  1279. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1280. echo "configure:1446: checking for $ac_word" >&5
  1281. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  1282. echo $ac_n "(cached) $ac_c" 1>&6
  1283. else
  1284. if test -n "$AR"; then
  1285. ac_cv_prog_AR="$AR" # Let the user override the test.
  1286. else
  1287. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1288. ac_dummy="$PATH"
  1289. for ac_dir in $ac_dummy; do
  1290. test -z "$ac_dir" && ac_dir=.
  1291. if test -f $ac_dir/$ac_word; then
  1292. ac_cv_prog_AR="${ac_tool_prefix}ar"
  1293. break
  1294. fi
  1295. done
  1296. IFS="$ac_save_ifs"
  1297. test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  1298. fi
  1299. fi
  1300. AR="$ac_cv_prog_AR"
  1301. if test -n "$AR"; then
  1302. echo "$ac_t""$AR" 1>&6
  1303. else
  1304. echo "$ac_t""no" 1>&6
  1305. fi
  1306. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1307. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1308. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1309. echo "configure:1478: checking for $ac_word" >&5
  1310. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1311. echo $ac_n "(cached) $ac_c" 1>&6
  1312. else
  1313. if test -n "$RANLIB"; then
  1314. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1315. else
  1316. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1317. ac_dummy="$PATH"
  1318. for ac_dir in $ac_dummy; do
  1319. test -z "$ac_dir" && ac_dir=.
  1320. if test -f $ac_dir/$ac_word; then
  1321. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1322. break
  1323. fi
  1324. done
  1325. IFS="$ac_save_ifs"
  1326. fi
  1327. fi
  1328. RANLIB="$ac_cv_prog_RANLIB"
  1329. if test -n "$RANLIB"; then
  1330. echo "$ac_t""$RANLIB" 1>&6
  1331. else
  1332. echo "$ac_t""no" 1>&6
  1333. fi
  1334. if test -z "$ac_cv_prog_RANLIB"; then
  1335. if test -n "$ac_tool_prefix"; then
  1336. # Extract the first word of "ranlib", so it can be a program name with args.
  1337. set dummy ranlib; ac_word=$2
  1338. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1339. echo "configure:1510: checking for $ac_word" >&5
  1340. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1341. echo $ac_n "(cached) $ac_c" 1>&6
  1342. else
  1343. if test -n "$RANLIB"; then
  1344. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1345. else
  1346. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1347. ac_dummy="$PATH"
  1348. for ac_dir in $ac_dummy; do
  1349. test -z "$ac_dir" && ac_dir=.
  1350. if test -f $ac_dir/$ac_word; then
  1351. ac_cv_prog_RANLIB="ranlib"
  1352. break
  1353. fi
  1354. done
  1355. IFS="$ac_save_ifs"
  1356. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1357. fi
  1358. fi
  1359. RANLIB="$ac_cv_prog_RANLIB"
  1360. if test -n "$RANLIB"; then
  1361. echo "$ac_t""$RANLIB" 1>&6
  1362. else
  1363. echo "$ac_t""no" 1>&6
  1364. fi
  1365. else
  1366. RANLIB=":"
  1367. fi
  1368. fi
  1369. # Find a good install program. We prefer a C program (faster),
  1370. # so one script is as good as another. But avoid the broken or
  1371. # incompatible versions:
  1372. # SysV /etc/install, /usr/sbin/install
  1373. # SunOS /usr/etc/install
  1374. # IRIX /sbin/install
  1375. # AIX /bin/install
  1376. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1377. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1378. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1379. # ./install, which can be erroneously created by make from ./install.sh.
  1380. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1381. echo "configure:1555: checking for a BSD compatible install" >&5
  1382. if test -z "$INSTALL"; then
  1383. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1384. echo $ac_n "(cached) $ac_c" 1>&6
  1385. else
  1386. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1387. for ac_dir in $PATH; do
  1388. # Account for people who put trailing slashes in PATH elements.
  1389. case "$ac_dir/" in
  1390. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1391. *)
  1392. # OSF1 and SCO ODT 3.0 have their own names for install.
  1393. # Don't use installbsd from OSF since it installs stuff as root
  1394. # by default.
  1395. for ac_prog in ginstall scoinst install; do
  1396. if test -f $ac_dir/$ac_prog; then
  1397. if test $ac_prog = install &&
  1398. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1399. # AIX install. It has an incompatible calling convention.
  1400. :
  1401. else
  1402. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1403. break 2
  1404. fi
  1405. fi
  1406. done
  1407. ;;
  1408. esac
  1409. done
  1410. IFS="$ac_save_IFS"
  1411. fi
  1412. if test "${ac_cv_path_install+set}" = set; then
  1413. INSTALL="$ac_cv_path_install"
  1414. else
  1415. # As a last resort, use the slow shell script. We don't cache a
  1416. # path for INSTALL within a source directory, because that will
  1417. # break other packages using the cache if that directory is
  1418. # removed, or if the path is relative.
  1419. INSTALL="$ac_install_sh"
  1420. fi
  1421. fi
  1422. echo "$ac_t""$INSTALL" 1>&6
  1423. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1424. # It thinks the first close brace ends the variable substitution.
  1425. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1426. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1427. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1428. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  1429. echo "configure:1609: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1430. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1431. if test "${enable_maintainer_mode+set}" = set; then
  1432. enableval="$enable_maintainer_mode"
  1433. USE_MAINTAINER_MODE=$enableval
  1434. else
  1435. USE_MAINTAINER_MODE=no
  1436. fi
  1437. echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  1438. if test $USE_MAINTAINER_MODE = yes; then
  1439. MAINTAINER_MODE_TRUE=
  1440. MAINTAINER_MODE_FALSE='#'
  1441. else
  1442. MAINTAINER_MODE_TRUE='#'
  1443. MAINTAINER_MODE_FALSE=
  1444. fi
  1445. MAINT=$MAINTAINER_MODE_TRUE
  1446. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  1447. echo "configure:1635: checking for executable suffix" >&5
  1448. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  1449. echo $ac_n "(cached) $ac_c" 1>&6
  1450. else
  1451. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  1452. ac_cv_exeext=.exe
  1453. else
  1454. rm -f conftest*
  1455. echo 'int main () { return 0; }' > conftest.$ac_ext
  1456. ac_cv_exeext=
  1457. if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1458. for file in conftest.*; do
  1459. case $file in
  1460. *.c | *.o | *.obj) ;;
  1461. *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  1462. esac
  1463. done
  1464. else
  1465. { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  1466. fi
  1467. rm -f conftest*
  1468. test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  1469. fi
  1470. fi
  1471. EXEEXT=""
  1472. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  1473. echo "$ac_t""${ac_cv_exeext}" 1>&6
  1474. ac_exeext=$EXEEXT
  1475. # configure.host sets the following important variables
  1476. # libgcj_cflags - host specific C compiler flags
  1477. # libgcj_cxxflags - host specific C++ compiler flags
  1478. # libgcj_javaflags - host specific Java compiler flags
  1479. libgcj_cflags=
  1480. libgcj_cxxflags=
  1481. libgcj_javaflags=
  1482. . ${srcdir}/configure.host
  1483. LIBGCJ_CFLAGS="${libgcj_cflags}"
  1484. LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
  1485. LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
  1486. # Only use libltdl for native builds.
  1487. if test -z "${with_cross_host}"; then
  1488. case $enable_ltdl_convenience in
  1489. no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
  1490. "") enable_ltdl_convenience=yes
  1491. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  1492. esac
  1493. LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
  1494. INCLTDL='-I${top_srcdir}/''libltdl'
  1495. DIRLTDL=libltdl
  1496. cat >> confdefs.h <<\EOF
  1497. #define USE_LTDL 1
  1498. EOF
  1499. # Sigh. Libtool's macro doesn't do the right thing.
  1500. INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
  1501. # FIXME: this is a hack.
  1502. sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
  1503. ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
  1504. fi
  1505. # Check whether --enable-shared or --disable-shared was given.
  1506. if test "${enable_shared+set}" = set; then
  1507. enableval="$enable_shared"
  1508. p=${PACKAGE-default}
  1509. case $enableval in
  1510. yes) enable_shared=yes ;;
  1511. no) enable_shared=no ;;
  1512. *)
  1513. enable_shared=no
  1514. # Look at the argument we got. We use all the common list separators.
  1515. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1516. for pkg in $enableval; do
  1517. if test "X$pkg" = "X$p"; then
  1518. enable_shared=yes
  1519. fi
  1520. done
  1521. IFS="$ac_save_ifs"
  1522. ;;
  1523. esac
  1524. else
  1525. enable_shared=yes
  1526. fi
  1527. # Check whether --enable-static or --disable-static was given.
  1528. if test "${enable_static+set}" = set; then
  1529. enableval="$enable_static"
  1530. p=${PACKAGE-default}
  1531. case $enableval in
  1532. yes) enable_static=yes ;;
  1533. no) enable_static=no ;;
  1534. *)
  1535. enable_static=no
  1536. # Look at the argument we got. We use all the common list separators.
  1537. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1538. for pkg in $enableval; do
  1539. if test "X$pkg" = "X$p"; then
  1540. enable_static=yes
  1541. fi
  1542. done
  1543. IFS="$ac_save_ifs"
  1544. ;;
  1545. esac
  1546. else
  1547. enable_static=yes
  1548. fi
  1549. # Check whether --enable-fast-install or --disable-fast-install was given.
  1550. if test "${enable_fast_install+set}" = set; then
  1551. enableval="$enable_fast_install"
  1552. p=${PACKAGE-default}
  1553. case $enableval in
  1554. yes) enable_fast_install=yes ;;
  1555. no) enable_fast_install=no ;;
  1556. *)
  1557. enable_fast_install=no
  1558. # Look at the argument we got. We use all the common list separators.
  1559. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1560. for pkg in $enableval; do
  1561. if test "X$pkg" = "X$p"; then
  1562. enable_fast_install=yes
  1563. fi
  1564. done
  1565. IFS="$ac_save_ifs"
  1566. ;;
  1567. esac
  1568. else
  1569. enable_fast_install=yes
  1570. fi
  1571. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1572. if test "${with_gnu_ld+set}" = set; then
  1573. withval="$with_gnu_ld"
  1574. test "$withval" = no || with_gnu_ld=yes
  1575. else
  1576. with_gnu_ld=no
  1577. fi
  1578. ac_prog=ld
  1579. if test "$GCC" = yes; then
  1580. # Check if gcc -print-prog-name=ld gives a path.
  1581. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1582. echo "configure:1795: checking for ld used by GCC" >&5
  1583. case $host in
  1584. *-*-mingw*)
  1585. # gcc leaves a trailing carriage return which upsets mingw
  1586. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1587. *)
  1588. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1589. esac
  1590. case $ac_prog in
  1591. # Accept absolute paths.
  1592. [\\/]* | [A-Za-z]:[\\/]*)
  1593. re_direlt='/[^/][^/]*/\.\./'
  1594. # Canonicalize the path of ld
  1595. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1596. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1597. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1598. done
  1599. test -z "$LD" && LD="$ac_prog"
  1600. ;;
  1601. "")
  1602. # If it fails, then pretend we aren't using GCC.
  1603. ac_prog=ld
  1604. ;;
  1605. *)
  1606. # If it is relative, then search for the first ld in PATH.
  1607. with_gnu_ld=unknown
  1608. ;;
  1609. esac
  1610. elif test "$with_gnu_ld" = yes; then
  1611. echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1612. echo "configure:1825: checking for GNU ld" >&5
  1613. else
  1614. echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1615. echo "configure:1828: checking for non-GNU ld" >&5
  1616. fi
  1617. if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
  1618. echo $ac_n "(cached) $ac_c" 1>&6
  1619. else
  1620. if test -z "$LD"; then
  1621. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1622. for ac_dir in $PATH; do
  1623. test -z "$ac_dir" && ac_dir=.
  1624. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1625. lt_cv_path_LD="$ac_dir/$ac_prog"
  1626. # Check to see if the program is GNU ld. I'd rather use --version,
  1627. # but apparently some GNU ld's only accept -v.
  1628. # Break only if it was the GNU/non-GNU ld that we prefer.
  1629. if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1630. test "$with_gnu_ld" != no && break
  1631. else
  1632. test "$with_gnu_ld" != yes && break
  1633. fi
  1634. fi
  1635. done
  1636. IFS="$ac_save_ifs"
  1637. else
  1638. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  1639. fi
  1640. fi
  1641. LD="$lt_cv_path_LD"
  1642. if test -n "$LD"; then
  1643. echo "$ac_t""$LD" 1>&6
  1644. else
  1645. echo "$ac_t""no" 1>&6
  1646. fi
  1647. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1648. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1649. echo "configure:1863: checking if the linker ($LD) is GNU ld" >&5
  1650. if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
  1651. echo $ac_n "(cached) $ac_c" 1>&6
  1652. else
  1653. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1654. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1655. lt_cv_prog_gnu_ld=yes
  1656. else
  1657. lt_cv_prog_gnu_ld=no
  1658. fi
  1659. fi
  1660. echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
  1661. with_gnu_ld=$lt_cv_prog_gnu_ld
  1662. echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
  1663. echo "configure:1880: checking for $LD option to reload object files" >&5
  1664. if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
  1665. echo $ac_n "(cached) $ac_c" 1>&6
  1666. else
  1667. lt_cv_ld_reload_flag='-r'
  1668. fi
  1669. echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
  1670. reload_flag=$lt_cv_ld_reload_flag
  1671. test -n "$reload_flag" && reload_flag=" $reload_flag"
  1672. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1673. echo "configure:1892: checking for BSD-compatible nm" >&5
  1674. if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
  1675. echo $ac_n "(cached) $ac_c" 1>&6
  1676. else
  1677. if test -n "$NM"; then
  1678. # Let the user override the test.
  1679. lt_cv_path_NM="$NM"
  1680. else
  1681. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1682. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1683. test -z "$ac_dir" && ac_dir=.
  1684. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  1685. if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  1686. # Check to see if the nm accepts a BSD-compat flag.
  1687. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1688. # nm: unknown option "B" ignored
  1689. # Tru64's nm complains that /dev/null is an invalid object file
  1690. if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  1691. lt_cv_path_NM="$tmp_nm -B"
  1692. break
  1693. elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1694. lt_cv_path_NM="$tmp_nm -p"
  1695. break
  1696. else
  1697. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  1698. continue # so that we can try to find one that supports BSD flags
  1699. fi
  1700. fi
  1701. done
  1702. IFS="$ac_save_ifs"
  1703. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  1704. fi
  1705. fi
  1706. NM="$lt_cv_path_NM"
  1707. echo "$ac_t""$NM" 1>&6
  1708. echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
  1709. echo "configure:1930: checking how to recognise dependant libraries" >&5
  1710. if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
  1711. echo $ac_n "(cached) $ac_c" 1>&6
  1712. else
  1713. lt_cv_file_magic_cmd='$MAGIC_CMD'
  1714. lt_cv_file_magic_test_file=
  1715. lt_cv_deplibs_check_method='unknown'
  1716. # Need to set the preceding variable on all platforms that support
  1717. # interlibrary dependencies.
  1718. # 'none' -- dependencies not supported.
  1719. # `unknown' -- same as none, but documents that we really don't know.
  1720. # 'pass_all' -- all dependencies passed with no checks.
  1721. # 'test_compile' -- check by making test program.
  1722. # 'file_magic [regex]' -- check by looking for files in library path
  1723. # which responds to the $file_magic_cmd with a given egrep regex.
  1724. # If you have `file' or equivalent on your system and you're not sure
  1725. # whether `pass_all' will *always* work, you probably want this one.
  1726. case $host_os in
  1727. aix*)
  1728. lt_cv_deplibs_check_method=pass_all
  1729. ;;
  1730. beos*)
  1731. lt_cv_deplibs_check_method=pass_all
  1732. ;;
  1733. bsdi4*)
  1734. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  1735. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1736. lt_cv_file_magic_test_file=/shlib/libc.so
  1737. ;;
  1738. cygwin* | mingw* |pw32*)
  1739. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1740. lt_cv_file_magic_cmd='$OBJDUMP -f'
  1741. ;;
  1742. darwin* | rhapsody*)
  1743. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  1744. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1745. case "$host_os" in
  1746. rhapsody* | darwin1.012)
  1747. lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
  1748. ;;
  1749. *) # Darwin 1.3 on
  1750. lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  1751. ;;
  1752. esac
  1753. ;;
  1754. freebsd* )
  1755. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1756. case $host_cpu in
  1757. i*86 )
  1758. # Not sure whether the presence of OpenBSD here was a mistake.
  1759. # Let's accept both of them until this is cleared up.
  1760. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  1761. lt_cv_file_magic_cmd=/usr/bin/file
  1762. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1763. ;;
  1764. esac
  1765. else
  1766. lt_cv_deplibs_check_method=pass_all
  1767. fi
  1768. ;;
  1769. gnu*)
  1770. lt_cv_deplibs_check_method=pass_all
  1771. ;;
  1772. hpux10.20*|hpux11*)
  1773. case $host_cpu in
  1774. hppa*)
  1775. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  1776. lt_cv_file_magic_cmd=/usr/bin/file
  1777. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1778. ;;
  1779. ia64*)
  1780. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  1781. lt_cv_file_magic_cmd=/usr/bin/file
  1782. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  1783. ;;
  1784. esac
  1785. ;;
  1786. irix5* | irix6*)
  1787. case $host_os in
  1788. irix5*)
  1789. # this will be overridden with pass_all, but let us keep it just in case
  1790. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  1791. ;;
  1792. *)
  1793. case $LD in
  1794. *-32|*"-32 ") libmagic=32-bit;;
  1795. *-n32|*"-n32 ") libmagic=N32;;
  1796. *-64|*"-64 ") libmagic=64-bit;;
  1797. *) libmagic=never-match;;
  1798. esac
  1799. # this will be overridden with pass_all, but let us keep it just in case
  1800. lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  1801. ;;
  1802. esac
  1803. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  1804. lt_cv_deplibs_check_method=pass_all
  1805. ;;
  1806. # This must be Linux ELF.
  1807. linux-gnu*)
  1808. case $host_cpu in
  1809. alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
  1810. lt_cv_deplibs_check_method=pass_all ;;
  1811. *)
  1812. # glibc up to 2.1.1 does not perform some relocations on ARM
  1813. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  1814. esac
  1815. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  1816. ;;
  1817. netbsd*)
  1818. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1819. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  1820. else
  1821. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  1822. fi
  1823. ;;
  1824. newsos6)
  1825. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  1826. lt_cv_file_magic_cmd=/usr/bin/file
  1827. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  1828. ;;
  1829. osf3* | osf4* | osf5*)
  1830. # this will be overridden with pass_all, but let us keep it just in case
  1831. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  1832. lt_cv_file_magic_test_file=/shlib/libc.so
  1833. lt_cv_deplibs_check_method=pass_all
  1834. ;;
  1835. sco3.2v5*)
  1836. lt_cv_deplibs_check_method=pass_all
  1837. ;;
  1838. solaris*)
  1839. lt_cv_deplibs_check_method=pass_all
  1840. lt_cv_file_magic_test_file=/lib/libc.so
  1841. ;;
  1842. sysv5uw[78]* | sysv4*uw2*)
  1843. lt_cv_deplibs_check_method=pass_all
  1844. ;;
  1845. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1846. case $host_vendor in
  1847. ncr)
  1848. lt_cv_deplibs_check_method=pass_all
  1849. ;;
  1850. motorola)
  1851. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  1852. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  1853. ;;
  1854. esac
  1855. ;;
  1856. esac
  1857. fi
  1858. echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
  1859. file_magic_cmd=$lt_cv_file_magic_cmd
  1860. deplibs_check_method=$lt_cv_deplibs_check_method
  1861. echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  1862. echo "configure:2103: checking for object suffix" >&5
  1863. if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  1864. echo $ac_n "(cached) $ac_c" 1>&6
  1865. else
  1866. rm -f conftest*
  1867. echo 'int i = 1;' > conftest.$ac_ext
  1868. if { (eval echo configure:2109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1869. for ac_file in conftest.*; do
  1870. case $ac_file in
  1871. *.c) ;;
  1872. *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  1873. esac
  1874. done
  1875. else
  1876. { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
  1877. fi
  1878. rm -f conftest*
  1879. fi
  1880. echo "$ac_t""$ac_cv_objext" 1>&6
  1881. OBJEXT=$ac_cv_objext
  1882. ac_objext=$ac_cv_objext
  1883. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  1884. # Only perform the check for file, if the check method requires it
  1885. case $deplibs_check_method in
  1886. file_magic*)
  1887. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  1888. echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
  1889. echo "configure:2133: checking for ${ac_tool_prefix}file" >&5
  1890. if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  1891. echo $ac_n "(cached) $ac_c" 1>&6
  1892. else
  1893. case $MAGIC_CMD in
  1894. /*)
  1895. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  1896. ;;
  1897. ?:/*)
  1898. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  1899. ;;
  1900. *)
  1901. ac_save_MAGIC_CMD="$MAGIC_CMD"
  1902. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1903. ac_dummy="/usr/bin:$PATH"
  1904. for ac_dir in $ac_dummy; do
  1905. test -z "$ac_dir" && ac_dir=.
  1906. if test -f $ac_dir/${ac_tool_prefix}file; then
  1907. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  1908. if test -n "$file_magic_test_file"; then
  1909. case $deplibs_check_method in
  1910. "file_magic "*)
  1911. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  1912. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1913. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  1914. egrep "$file_magic_regex" > /dev/null; then
  1915. :
  1916. else
  1917. cat <<EOF 1>&2
  1918. *** Warning: the command libtool uses to detect shared libraries,
  1919. *** $file_magic_cmd, produces output that libtool cannot recognize.
  1920. *** The result is that libtool may fail to recognize shared libraries
  1921. *** as such. This will affect the creation of libtool libraries that
  1922. *** depend on shared libraries, but programs linked with such libtool
  1923. *** libraries will work regardless of this problem. Nevertheless, you
  1924. *** may want to report the problem to your system manager and/or to
  1925. *** bug-libtool@gnu.org
  1926. EOF
  1927. fi ;;
  1928. esac
  1929. fi
  1930. break
  1931. fi
  1932. done
  1933. IFS="$ac_save_ifs"
  1934. MAGIC_CMD="$ac_save_MAGIC_CMD"
  1935. ;;
  1936. esac
  1937. fi
  1938. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1939. if test -n "$MAGIC_CMD"; then
  1940. echo "$ac_t""$MAGIC_CMD" 1>&6
  1941. else
  1942. echo "$ac_t""no" 1>&6
  1943. fi
  1944. if test -z "$lt_cv_path_MAGIC_CMD"; then
  1945. if test -n "$ac_tool_prefix"; then
  1946. echo $ac_n "checking for file""... $ac_c" 1>&6
  1947. echo "configure:2195: checking for file" >&5
  1948. if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  1949. echo $ac_n "(cached) $ac_c" 1>&6
  1950. else
  1951. case $MAGIC_CMD in
  1952. /*)
  1953. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  1954. ;;
  1955. ?:/*)
  1956. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  1957. ;;
  1958. *)
  1959. ac_save_MAGIC_CMD="$MAGIC_CMD"
  1960. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1961. ac_dummy="/usr/bin:$PATH"
  1962. for ac_dir in $ac_dummy; do
  1963. test -z "$ac_dir" && ac_dir=.
  1964. if test -f $ac_dir/file; then
  1965. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  1966. if test -n "$file_magic_test_file"; then
  1967. case $deplibs_check_method in
  1968. "file_magic "*)
  1969. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  1970. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1971. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  1972. egrep "$file_magic_regex" > /dev/null; then
  1973. :
  1974. else
  1975. cat <<EOF 1>&2
  1976. *** Warning: the command libtool uses to detect shared libraries,
  1977. *** $file_magic_cmd, produces output that libtool cannot recognize.
  1978. *** The result is that libtool may fail to recognize shared libraries
  1979. *** as such. This will affect the creation of libtool libraries that
  1980. *** depend on shared libraries, but programs linked with such libtool
  1981. *** libraries will work regardless of this problem. Nevertheless, you
  1982. *** may want to report the problem to your system manager and/or to
  1983. *** bug-libtool@gnu.org
  1984. EOF
  1985. fi ;;
  1986. esac
  1987. fi
  1988. break
  1989. fi
  1990. done
  1991. IFS="$ac_save_ifs"
  1992. MAGIC_CMD="$ac_save_MAGIC_CMD"
  1993. ;;
  1994. esac
  1995. fi
  1996. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1997. if test -n "$MAGIC_CMD"; then
  1998. echo "$ac_t""$MAGIC_CMD" 1>&6
  1999. else
  2000. echo "$ac_t""no" 1>&6
  2001. fi
  2002. else
  2003. MAGIC_CMD=:
  2004. fi
  2005. fi
  2006. fi
  2007. ;;
  2008. esac
  2009. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2010. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2011. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2012. echo "configure:2266: checking for $ac_word" >&5
  2013. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2014. echo $ac_n "(cached) $ac_c" 1>&6
  2015. else
  2016. if test -n "$RANLIB"; then
  2017. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2018. else
  2019. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2020. ac_dummy="$PATH"
  2021. for ac_dir in $ac_dummy; do
  2022. test -z "$ac_dir" && ac_dir=.
  2023. if test -f $ac_dir/$ac_word; then
  2024. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2025. break
  2026. fi
  2027. done
  2028. IFS="$ac_save_ifs"
  2029. fi
  2030. fi
  2031. RANLIB="$ac_cv_prog_RANLIB"
  2032. if test -n "$RANLIB"; then
  2033. echo "$ac_t""$RANLIB" 1>&6
  2034. else
  2035. echo "$ac_t""no" 1>&6
  2036. fi
  2037. if test -z "$ac_cv_prog_RANLIB"; then
  2038. if test -n "$ac_tool_prefix"; then
  2039. # Extract the first word of "ranlib", so it can be a program name with args.
  2040. set dummy ranlib; ac_word=$2
  2041. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2042. echo "configure:2298: checking for $ac_word" >&5
  2043. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2044. echo $ac_n "(cached) $ac_c" 1>&6
  2045. else
  2046. if test -n "$RANLIB"; then
  2047. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2048. else
  2049. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2050. ac_dummy="$PATH"
  2051. for ac_dir in $ac_dummy; do
  2052. test -z "$ac_dir" && ac_dir=.
  2053. if test -f $ac_dir/$ac_word; then
  2054. ac_cv_prog_RANLIB="ranlib"
  2055. break
  2056. fi
  2057. done
  2058. IFS="$ac_save_ifs"
  2059. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2060. fi
  2061. fi
  2062. RANLIB="$ac_cv_prog_RANLIB"
  2063. if test -n "$RANLIB"; then
  2064. echo "$ac_t""$RANLIB" 1>&6
  2065. else
  2066. echo "$ac_t""no" 1>&6
  2067. fi
  2068. else
  2069. RANLIB=":"
  2070. fi
  2071. fi
  2072. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2073. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2074. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2075. echo "configure:2333: checking for $ac_word" >&5
  2076. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2077. echo $ac_n "(cached) $ac_c" 1>&6
  2078. else
  2079. if test -n "$STRIP"; then
  2080. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2081. else
  2082. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2083. ac_dummy="$PATH"
  2084. for ac_dir in $ac_dummy; do
  2085. test -z "$ac_dir" && ac_dir=.
  2086. if test -f $ac_dir/$ac_word; then
  2087. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2088. break
  2089. fi
  2090. done
  2091. IFS="$ac_save_ifs"
  2092. fi
  2093. fi
  2094. STRIP="$ac_cv_prog_STRIP"
  2095. if test -n "$STRIP"; then
  2096. echo "$ac_t""$STRIP" 1>&6
  2097. else
  2098. echo "$ac_t""no" 1>&6
  2099. fi
  2100. if test -z "$ac_cv_prog_STRIP"; then
  2101. if test -n "$ac_tool_prefix"; then
  2102. # Extract the first word of "strip", so it can be a program name with args.
  2103. set dummy strip; ac_word=$2
  2104. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2105. echo "configure:2365: checking for $ac_word" >&5
  2106. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2107. echo $ac_n "(cached) $ac_c" 1>&6
  2108. else
  2109. if test -n "$STRIP"; then
  2110. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2111. else
  2112. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2113. ac_dummy="$PATH"
  2114. for ac_dir in $ac_dummy; do
  2115. test -z "$ac_dir" && ac_dir=.
  2116. if test -f $ac_dir/$ac_word; then
  2117. ac_cv_prog_STRIP="strip"
  2118. break
  2119. fi
  2120. done
  2121. IFS="$ac_save_ifs"
  2122. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
  2123. fi
  2124. fi
  2125. STRIP="$ac_cv_prog_STRIP"
  2126. if test -n "$STRIP"; then
  2127. echo "$ac_t""$STRIP" 1>&6
  2128. else
  2129. echo "$ac_t""no" 1>&6
  2130. fi
  2131. else
  2132. STRIP=":"
  2133. fi
  2134. fi
  2135. # Check for any special flags to pass to ltconfig.
  2136. libtool_flags="--cache-file=$cache_file"
  2137. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  2138. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  2139. test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  2140. test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
  2141. test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  2142. libtool_flags="$libtool_flags --enable-dlopen"
  2143. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  2144. if test "${enable_libtool_lock+set}" = set; then
  2145. enableval="$enable_libtool_lock"
  2146. :
  2147. fi
  2148. test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  2149. test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  2150. # Check whether --with-pic or --without-pic was given.
  2151. if test "${with_pic+set}" = set; then
  2152. withval="$with_pic"
  2153. pic_mode="$withval"
  2154. else
  2155. pic_mode=default
  2156. fi
  2157. test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
  2158. test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
  2159. # Some flags need to be propagated to the compiler or linker for good
  2160. # libtool support.
  2161. case $host in
  2162. *-*-irix6*)
  2163. # Find out which ABI we are using.
  2164. echo '#line 2432 "configure"' > conftest.$ac_ext
  2165. if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2166. if test "$lt_cv_prog_gnu_ld" = yes; then
  2167. case `/usr/bin/file conftest.$ac_objext` in
  2168. *32-bit*)
  2169. LD="${LD-ld} -melf32bsmip"
  2170. ;;
  2171. *N32*)
  2172. LD="${LD-ld} -melf32bmipn32"
  2173. ;;
  2174. *64-bit*)
  2175. LD="${LD-ld} -melf64bmip"
  2176. ;;
  2177. esac
  2178. else
  2179. case `/usr/bin/file conftest.$ac_objext` in
  2180. *32-bit*)
  2181. LD="${LD-ld} -32"
  2182. ;;
  2183. *N32*)
  2184. LD="${LD-ld} -n32"
  2185. ;;
  2186. *64-bit*)
  2187. LD="${LD-ld} -64"
  2188. ;;
  2189. esac
  2190. fi
  2191. fi
  2192. rm -rf conftest*
  2193. ;;
  2194. ia64-*-hpux*)
  2195. # Find out which ABI we are using.
  2196. echo 'int i;' > conftest.$ac_ext
  2197. if { (eval echo configure:2466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2198. case "`/usr/bin/file conftest.o`" in
  2199. *ELF-32*)
  2200. HPUX_IA64_MODE="32"
  2201. ;;
  2202. *ELF-64*)
  2203. HPUX_IA64_MODE="64"
  2204. ;;
  2205. esac
  2206. fi
  2207. rm -rf conftest*
  2208. ;;
  2209. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  2210. # Find out which ABI we are using.
  2211. echo 'int i;' > conftest.$ac_ext
  2212. if { (eval echo configure:2482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2213. case "`/usr/bin/file conftest.o`" in
  2214. *32-bit*)
  2215. case $host in
  2216. x86_64-*linux*)
  2217. LD="${LD-ld} -m elf_i386"
  2218. ;;
  2219. ppc64-*linux*|powerpc64-*linux*)
  2220. LD="${LD-ld} -m elf32ppclinux"
  2221. ;;
  2222. s390x-*linux*)
  2223. LD="${LD-ld} -m elf_s390"
  2224. ;;
  2225. sparc64-*linux*)
  2226. LD="${LD-ld} -m elf32_sparc"
  2227. ;;
  2228. esac
  2229. ;;
  2230. *64-bit*)
  2231. case $host in
  2232. x86_64-*linux*)
  2233. LD="${LD-ld} -m elf_x86_64"
  2234. ;;
  2235. ppc*-*linux*|powerpc*-*linux*)
  2236. LD="${LD-ld} -m elf64ppc"
  2237. ;;
  2238. s390*-*linux*)
  2239. LD="${LD-ld} -m elf64_s390"
  2240. ;;
  2241. sparc*-*linux*)
  2242. LD="${LD-ld} -m elf64_sparc"
  2243. ;;
  2244. esac
  2245. ;;
  2246. esac
  2247. fi
  2248. rm -rf conftest*
  2249. ;;
  2250. *-*-sco3.2v5*)
  2251. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2252. SAVE_CFLAGS="$CFLAGS"
  2253. CFLAGS="$CFLAGS -belf"
  2254. echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  2255. echo "configure:2526: checking whether the C compiler needs -belf" >&5
  2256. if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  2257. echo $ac_n "(cached) $ac_c" 1>&6
  2258. else
  2259. ac_ext=c
  2260. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2261. ac_cpp='$CPP $CPPFLAGS'
  2262. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2263. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2264. cross_compiling=$ac_cv_prog_cc_cross
  2265. cat > conftest.$ac_ext <<EOF
  2266. #line 2539 "configure"
  2267. #include "confdefs.h"
  2268. int main() {
  2269. ; return 0; }
  2270. EOF
  2271. if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2272. rm -rf conftest*
  2273. lt_cv_cc_needs_belf=yes
  2274. else
  2275. echo "configure: failed program was:" >&5
  2276. cat conftest.$ac_ext >&5
  2277. rm -rf conftest*
  2278. lt_cv_cc_needs_belf=no
  2279. fi
  2280. rm -f conftest*
  2281. ac_ext=c
  2282. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2283. ac_cpp='$CPP $CPPFLAGS'
  2284. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2285. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2286. cross_compiling=$ac_cv_prog_cc_cross
  2287. fi
  2288. echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  2289. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2290. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2291. CFLAGS="$SAVE_CFLAGS"
  2292. fi
  2293. ;;
  2294. esac
  2295. echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
  2296. echo "configure:2576: checking how to run the C++ preprocessor" >&5
  2297. if test -z "$CXXCPP"; then
  2298. if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  2299. echo $ac_n "(cached) $ac_c" 1>&6
  2300. else
  2301. ac_ext=C
  2302. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2303. ac_cpp='$CXXCPP $CPPFLAGS'
  2304. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2305. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2306. cross_compiling=$ac_cv_prog_cxx_cross
  2307. CXXCPP="${CXX-g++} -E"
  2308. cat > conftest.$ac_ext <<EOF
  2309. #line 2589 "configure"
  2310. #include "confdefs.h"
  2311. #include <stdlib.h>
  2312. EOF
  2313. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2314. { (eval echo configure:2594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2315. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2316. if test -z "$ac_err"; then
  2317. :
  2318. else
  2319. echo "$ac_err" >&5
  2320. echo "configure: failed program was:" >&5
  2321. cat conftest.$ac_ext >&5
  2322. rm -rf conftest*
  2323. CXXCPP=/lib/cpp
  2324. fi
  2325. rm -f conftest*
  2326. ac_cv_prog_CXXCPP="$CXXCPP"
  2327. ac_ext=c
  2328. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2329. ac_cpp='$CPP $CPPFLAGS'
  2330. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2331. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2332. cross_compiling=$ac_cv_prog_cc_cross
  2333. fi
  2334. fi
  2335. CXXCPP="$ac_cv_prog_CXXCPP"
  2336. echo "$ac_t""$CXXCPP" 1>&6
  2337. # Save cache, so that ltconfig can load it
  2338. cat > confcache <<\EOF
  2339. # This file is a shell script that caches the results of configure
  2340. # tests run on this system so they can be shared between configure
  2341. # scripts and configure runs. It is not useful on other systems.
  2342. # If it contains results you don't want to keep, you may remove or edit it.
  2343. #
  2344. # By default, configure uses ./config.cache as the cache file,
  2345. # creating it if it does not exist already. You can give configure
  2346. # the --cache-file=FILE option to use a different cache file; that is
  2347. # what configure does when it calls configure scripts in
  2348. # subdirectories, so they share the cache.
  2349. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2350. # config.status only pays attention to the cache file if you give it the
  2351. # --recheck option to rerun configure.
  2352. #
  2353. EOF
  2354. # The following way of writing the cache mishandles newlines in values,
  2355. # but we know of no workaround that is simple, portable, and efficient.
  2356. # So, don't put newlines in cache variables' values.
  2357. # Ultrix sh set writes to stderr and can't be redirected directly,
  2358. # and sets the high bit in the cache file unless we assign to the vars.
  2359. (set) 2>&1 |
  2360. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2361. *ac_space=\ *)
  2362. # `set' does not quote correctly, so add quotes (double-quote substitution
  2363. # turns \\\\ into \\, and sed turns \\ into \).
  2364. sed -n \
  2365. -e "s/'/'\\\\''/g" \
  2366. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2367. ;;
  2368. *)
  2369. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2370. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2371. ;;
  2372. esac >> confcache
  2373. if cmp -s $cache_file confcache; then
  2374. :
  2375. else
  2376. if test -w $cache_file; then
  2377. echo "updating cache $cache_file"
  2378. cat confcache > $cache_file
  2379. else
  2380. echo "not updating unwritable cache $cache_file"
  2381. fi
  2382. fi
  2383. rm -f confcache
  2384. # Actually configure libtool. ac_aux_dir is where install-sh is found.
  2385. AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  2386. MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  2387. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
  2388. AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
  2389. objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
  2390. deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
  2391. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  2392. $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
  2393. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  2394. # Reload cache, that may have been modified by ltconfig
  2395. if test -r "$cache_file"; then
  2396. echo "loading cache $cache_file"
  2397. . $cache_file
  2398. else
  2399. echo "creating cache $cache_file"
  2400. > $cache_file
  2401. fi
  2402. # This can be used to rebuild libtool when needed
  2403. LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
  2404. # Always use our own libtool.
  2405. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  2406. # Redirect the config.log output again, so that the ltconfig log is not
  2407. # clobbered by the next message.
  2408. exec 5>>./config.log
  2409. LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
  2410. lt_save_CC="$CC"
  2411. lt_save_CFLAGS="$CFLAGS"
  2412. AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
  2413. MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  2414. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
  2415. AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
  2416. objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
  2417. deplibs_check_method="$deplibs_check_method" \
  2418. file_magic_cmd="$file_magic_cmd" \
  2419. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
  2420. --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
  2421. || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
  2422. CC="$lt_save_CC"
  2423. CFLAGS="$lt_save_CFLAGS"
  2424. # Redirect the config.log output again, so that the ltconfig log is not
  2425. # clobbered by the next message.
  2426. exec 5>>./config.log
  2427. subdirs="$DIRLTDL"
  2428. if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
  2429. COMPPATH=.
  2430. else
  2431. COMPPATH=..
  2432. fi
  2433. if test -d $srcdir/testsuite; then
  2434. TESTSUBDIR_TRUE=
  2435. TESTSUBDIR_FALSE='#'
  2436. else
  2437. TESTSUBDIR_TRUE='#'
  2438. TESTSUBDIR_FALSE=
  2439. fi
  2440. # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
  2441. if test "${enable_getenv_properties+set}" = set; then
  2442. enableval="$enable_getenv_properties"
  2443. :
  2444. fi
  2445. if test -z "$enable_getenv_properties"; then
  2446. enable_getenv_properties=${enable_getenv_properties_default-yes}
  2447. fi
  2448. if test "$enable_getenv_properties" = no; then
  2449. cat >> confdefs.h <<\EOF
  2450. #define DISABLE_GETENV_PROPERTIES 1
  2451. EOF
  2452. fi
  2453. if test -z "$enable_main_args"; then
  2454. enable_main_args=${enable_main_args_default-yes}
  2455. fi
  2456. if test "$enable_main_args" = no; then
  2457. cat >> confdefs.h <<\EOF
  2458. #define DISABLE_MAIN_ARGS 1
  2459. EOF
  2460. fi
  2461. # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
  2462. if test "${enable_hash_synchronization+set}" = set; then
  2463. enableval="$enable_hash_synchronization"
  2464. :
  2465. fi
  2466. if test -z "$enable_hash_synchronization"; then
  2467. enable_hash_synchronization=$enable_hash_synchronization_default
  2468. fi
  2469. if test "${slow_pthread_self}" = "yes"; then
  2470. cat >> confdefs.h <<\EOF
  2471. #define SLOW_PTHREAD_SELF 1
  2472. EOF
  2473. fi
  2474. LIBGCJDEBUG="false"
  2475. # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
  2476. if test "${enable_libgcj_debug+set}" = set; then
  2477. enableval="$enable_libgcj_debug"
  2478. if test "$enable_libgcj_debug" = yes; then
  2479. cat >> confdefs.h <<\EOF
  2480. #define DEBUG 1
  2481. EOF
  2482. LIBGCJDEBUG="true"
  2483. fi
  2484. fi
  2485. # Check whether --enable-interpreter or --disable-interpreter was given.
  2486. if test "${enable_interpreter+set}" = set; then
  2487. enableval="$enable_interpreter"
  2488. if test "$enable_interpreter" = yes; then
  2489. # This can also be set in configure.host.
  2490. libgcj_interpreter=yes
  2491. elif test "$enable_interpreter" = no; then
  2492. libgcj_interpreter=no
  2493. fi
  2494. fi
  2495. if test "$libgcj_interpreter" = yes; then
  2496. cat >> confdefs.h <<\EOF
  2497. #define INTERPRETER 1
  2498. EOF
  2499. fi
  2500. INTERPRETER="$libgcj_interpreter"
  2501. echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
  2502. echo "configure:2830: checking for exception model to use" >&5
  2503. ac_ext=C
  2504. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2505. ac_cpp='$CXXCPP $CPPFLAGS'
  2506. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2507. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2508. cross_compiling=$ac_cv_prog_cxx_cross
  2509. # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
  2510. if test "${enable_sjlj_exceptions+set}" = set; then
  2511. enableval="$enable_sjlj_exceptions"
  2512. :
  2513. else
  2514. cat > conftest.$ac_ext << EOF
  2515. #line 2845 "configure"
  2516. struct S { ~S(); };
  2517. void bar();
  2518. void foo()
  2519. {
  2520. S s;
  2521. bar();
  2522. }
  2523. EOF
  2524. old_CXXFLAGS="$CXXFLAGS"
  2525. CXXFLAGS=-S
  2526. if { (eval echo configure:2856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2527. if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
  2528. enable_sjlj_exceptions=yes
  2529. elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
  2530. enable_sjlj_exceptions=no
  2531. fi
  2532. fi
  2533. CXXFLAGS="$old_CXXFLAGS"
  2534. rm -f conftest*
  2535. fi
  2536. if test x$enable_sjlj_exceptions = xyes; then
  2537. cat >> confdefs.h <<\EOF
  2538. #define SJLJ_EXCEPTIONS 1
  2539. EOF
  2540. ac_exception_model_name=sjlj
  2541. elif test x$enable_sjlj_exceptions = xno; then
  2542. ac_exception_model_name="call frame"
  2543. else
  2544. { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
  2545. fi
  2546. ac_ext=c
  2547. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2548. ac_cpp='$CPP $CPPFLAGS'
  2549. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2550. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2551. cross_compiling=$ac_cv_prog_cc_cross
  2552. echo "$ac_t""$ac_exception_model_name" 1>&6
  2553. # If we are non using SJLJ exceptions, and this host does not have support
  2554. # for unwinding from a signal handler, enable checked dereferences and divides.
  2555. if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
  2556. CHECKREFSPEC=-fcheck-references
  2557. DIVIDESPEC=-fuse-divide-subroutine
  2558. EXCEPTIONSPEC=
  2559. fi
  2560. # Check whether --enable-java-net or --disable-java-net was given.
  2561. if test "${enable_java_net+set}" = set; then
  2562. enableval="$enable_java_net"
  2563. :
  2564. fi
  2565. if test -z "$enable_java_net"; then
  2566. enable_java_net=${enable_java_net_default-yes}
  2567. fi
  2568. if test "$enable_java_net" = no; then
  2569. cat >> confdefs.h <<\EOF
  2570. #define DISABLE_JAVA_NET 1
  2571. EOF
  2572. fi
  2573. # Check whether --with-libffi or --without-libffi was given.
  2574. if test "${with_libffi+set}" = set; then
  2575. withval="$with_libffi"
  2576. :
  2577. else
  2578. with_libffi=${with_libffi_default-yes}
  2579. fi
  2580. LIBFFI=
  2581. LIBFFIINCS=
  2582. if test "$with_libffi" != no; then
  2583. cat >> confdefs.h <<\EOF
  2584. #define USE_LIBFFI 1
  2585. EOF
  2586. LIBFFI=../libffi/libffi_convenience.la
  2587. LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
  2588. fi
  2589. # Check whether --enable-jvmpi or --disable-jvmpi was given.
  2590. if test "${enable_jvmpi+set}" = set; then
  2591. enableval="$enable_jvmpi"
  2592. :
  2593. fi
  2594. if test "$enable_jvmpi" != no; then
  2595. cat >> confdefs.h <<\EOF
  2596. #define ENABLE_JVMPI 1
  2597. EOF
  2598. fi
  2599. TARGET_ECOS=${PROCESS-"no"}
  2600. # Check whether --with-ecos or --without-ecos was given.
  2601. if test "${with_ecos+set}" = set; then
  2602. withval="$with_ecos"
  2603. TARGET_ECOS="$with_ecos"
  2604. fi
  2605. PLATFORMOBJS=
  2606. case "$TARGET_ECOS" in
  2607. no) case "$host" in
  2608. *mingw*)
  2609. PLATFORM=Win32
  2610. PLATFORMOBJS=win32.lo
  2611. PLATFORMH=win32.h
  2612. echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6
  2613. echo "configure:2966: checking whether 'ld' is at least 2.13" >&5
  2614. LD_PROG=`$CC --print-prog-name=ld`
  2615. LD_VERSION=`$LD_PROG --version`
  2616. LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
  2617. LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
  2618. if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
  2619. LD_OK="ok"
  2620. else
  2621. if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
  2622. LD_OK="ok"
  2623. fi
  2624. fi
  2625. if test "x$LD_OK" != x; then
  2626. echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
  2627. else
  2628. echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
  2629. echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2
  2630. cat >> confdefs.h <<\EOF
  2631. #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
  2632. EOF
  2633. fi
  2634. ;;
  2635. *)
  2636. PLATFORM=Posix
  2637. PLATFORMOBJS=posix.lo
  2638. PLATFORMH=posix.h
  2639. ;;
  2640. esac
  2641. ;;
  2642. *)
  2643. PLATFORM=Ecos
  2644. cat >> confdefs.h <<\EOF
  2645. #define ECOS 1
  2646. EOF
  2647. PLATFORMOBJS=posix.lo
  2648. PLATFORMH=posix.h
  2649. ;;
  2650. esac
  2651. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2652. echo "configure:3010: checking how to run the C preprocessor" >&5
  2653. # On Suns, sometimes $CPP names a directory.
  2654. if test -n "$CPP" && test -d "$CPP"; then
  2655. CPP=
  2656. fi
  2657. if test -z "$CPP"; then
  2658. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2659. echo $ac_n "(cached) $ac_c" 1>&6
  2660. else
  2661. # This must be in double quotes, not single quotes, because CPP may get
  2662. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2663. CPP="${CC-cc} -E"
  2664. # On the NeXT, cc -E runs the code through the compiler's parser,
  2665. # not just through cpp.
  2666. cat > conftest.$ac_ext <<EOF
  2667. #line 3025 "configure"
  2668. #include "confdefs.h"
  2669. #include <assert.h>
  2670. Syntax Error
  2671. EOF
  2672. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2673. { (eval echo configure:3031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2674. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2675. if test -z "$ac_err"; then
  2676. :
  2677. else
  2678. echo "$ac_err" >&5
  2679. echo "configure: failed program was:" >&5
  2680. cat conftest.$ac_ext >&5
  2681. rm -rf conftest*
  2682. CPP="${CC-cc} -E -traditional-cpp"
  2683. cat > conftest.$ac_ext <<EOF
  2684. #line 3042 "configure"
  2685. #include "confdefs.h"
  2686. #include <assert.h>
  2687. Syntax Error
  2688. EOF
  2689. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2690. { (eval echo configure:3048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2691. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2692. if test -z "$ac_err"; then
  2693. :
  2694. else
  2695. echo "$ac_err" >&5
  2696. echo "configure: failed program was:" >&5
  2697. cat conftest.$ac_ext >&5
  2698. rm -rf conftest*
  2699. CPP="${CC-cc} -nologo -E"
  2700. cat > conftest.$ac_ext <<EOF
  2701. #line 3059 "configure"
  2702. #include "confdefs.h"
  2703. #include <assert.h>
  2704. Syntax Error
  2705. EOF
  2706. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2707. { (eval echo configure:3065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2708. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2709. if test -z "$ac_err"; then
  2710. :
  2711. else
  2712. echo "$ac_err" >&5
  2713. echo "configure: failed program was:" >&5
  2714. cat conftest.$ac_ext >&5
  2715. rm -rf conftest*
  2716. CPP=/lib/cpp
  2717. fi
  2718. rm -f conftest*
  2719. fi
  2720. rm -f conftest*
  2721. fi
  2722. rm -f conftest*
  2723. ac_cv_prog_CPP="$CPP"
  2724. fi
  2725. CPP="$ac_cv_prog_CPP"
  2726. else
  2727. ac_cv_prog_CPP="$CPP"
  2728. fi
  2729. echo "$ac_t""$CPP" 1>&6
  2730. cat > conftest.$ac_ext <<EOF
  2731. #line 3090 "configure"
  2732. #include "confdefs.h"
  2733. #include <stdint.h>
  2734. EOF
  2735. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2736. egrep "uint32_t" >/dev/null 2>&1; then
  2737. rm -rf conftest*
  2738. cat >> confdefs.h <<\EOF
  2739. #define HAVE_INT32_DEFINED 1
  2740. EOF
  2741. fi
  2742. rm -f conftest*
  2743. cat > conftest.$ac_ext <<EOF
  2744. #line 3105 "configure"
  2745. #include "confdefs.h"
  2746. #include <inttypes.h>
  2747. EOF
  2748. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2749. egrep "uint32_t" >/dev/null 2>&1; then
  2750. rm -rf conftest*
  2751. cat >> confdefs.h <<\EOF
  2752. #define HAVE_INT32_DEFINED 1
  2753. EOF
  2754. fi
  2755. rm -f conftest*
  2756. cat > conftest.$ac_ext <<EOF
  2757. #line 3120 "configure"
  2758. #include "confdefs.h"
  2759. #include <sys/types.h>
  2760. EOF
  2761. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2762. egrep "u_int32_t" >/dev/null 2>&1; then
  2763. rm -rf conftest*
  2764. cat >> confdefs.h <<\EOF
  2765. #define HAVE_BSD_INT32_DEFINED 1
  2766. EOF
  2767. fi
  2768. rm -f conftest*
  2769. cat > conftest.$ac_ext <<EOF
  2770. #line 3135 "configure"
  2771. #include "confdefs.h"
  2772. #include <sys/config.h>
  2773. EOF
  2774. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2775. egrep "u_int32_t" >/dev/null 2>&1; then
  2776. rm -rf conftest*
  2777. cat >> confdefs.h <<\EOF
  2778. #define HAVE_BSD_INT32_DEFINED 1
  2779. EOF
  2780. fi
  2781. rm -f conftest*
  2782. cat > conftest.$ac_ext <<EOF
  2783. #line 3152 "configure"
  2784. #include "confdefs.h"
  2785. #include <time.h>
  2786. EOF
  2787. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2788. egrep "mktime" >/dev/null 2>&1; then
  2789. rm -rf conftest*
  2790. cat >> confdefs.h <<\EOF
  2791. #define HAVE_MKTIME 1
  2792. EOF
  2793. fi
  2794. rm -f conftest*
  2795. cat > conftest.$ac_ext <<EOF
  2796. #line 3167 "configure"
  2797. #include "confdefs.h"
  2798. #include <time.h>
  2799. EOF
  2800. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2801. egrep "localtime" >/dev/null 2>&1; then
  2802. rm -rf conftest*
  2803. cat >> confdefs.h <<\EOF
  2804. #define HAVE_LOCALTIME 1
  2805. EOF
  2806. fi
  2807. rm -f conftest*
  2808. test -d java || mkdir java
  2809. test -d java/io || mkdir java/io
  2810. test -d gnu || mkdir gnu
  2811. test -d java/lang || mkdir java/lang
  2812. case "${host}" in
  2813. *mingw*)
  2814. SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
  2815. ;;
  2816. *)
  2817. SYSTEMSPEC=
  2818. ;;
  2819. esac
  2820. LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
  2821. # Check whether --with-system-zlib or --without-system-zlib was given.
  2822. if test "${with_system_zlib+set}" = set; then
  2823. withval="$with_system_zlib"
  2824. :
  2825. fi
  2826. ZLIBSPEC=
  2827. ZLIBTESTSPEC=
  2828. libsubdir=.libs
  2829. echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
  2830. echo "configure:3219: checking for garbage collector to use" >&5
  2831. # Check whether --enable-java-gc or --disable-java-gc was given.
  2832. if test "${enable_java_gc+set}" = set; then
  2833. enableval="$enable_java_gc"
  2834. GC=$enableval
  2835. else
  2836. GC=boehm
  2837. fi
  2838. GCLIBS=
  2839. GCINCS=
  2840. GCDEPS=
  2841. GCOBJS=
  2842. GCSPEC=
  2843. JC1GCSPEC=
  2844. GCTESTSPEC=
  2845. case "$GC" in
  2846. boehm)
  2847. echo "$ac_t""boehm" 1>&6
  2848. GCLIBS=../boehm-gc/libgcjgc_convenience.la
  2849. GCINCS='-I$(top_srcdir)/../boehm-gc/include'
  2850. JC1GCSPEC='-fuse-boehm-gc'
  2851. GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
  2852. GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
  2853. GCOBJS=boehm.lo
  2854. GCHDR=boehm-gc.h
  2855. cat >> confdefs.h <<\EOF
  2856. #define HAVE_BOEHM_GC 1
  2857. EOF
  2858. ;;
  2859. no)
  2860. echo "$ac_t""none" 1>&6
  2861. GCOBJS=nogc.lo
  2862. GCHDR=no-gc.h
  2863. ;;
  2864. *)
  2865. { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
  2866. ;;
  2867. esac
  2868. echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
  2869. echo "configure:3272: checking for thread model used by GCC" >&5
  2870. THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
  2871. echo "$ac_t""$THREADS" 1>&6
  2872. case "$THREADS" in
  2873. no | none | single)
  2874. THREADS=none
  2875. ;;
  2876. posix | pthreads)
  2877. THREADS=posix
  2878. case "$host" in
  2879. *-*-linux*)
  2880. cat >> confdefs.h <<\EOF
  2881. #define LINUX_THREADS 1
  2882. EOF
  2883. ;;
  2884. esac
  2885. ;;
  2886. win32)
  2887. ;;
  2888. decosf1 | irix | mach | os2 | solaris | dce | vxworks)
  2889. { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
  2890. ;;
  2891. *)
  2892. { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
  2893. ;;
  2894. esac
  2895. THREADLDFLAGS=
  2896. THREADLIBS=
  2897. THREADINCS=
  2898. THREADDEPS=
  2899. THREADOBJS=
  2900. THREADH=
  2901. THREADSPEC=
  2902. case "$THREADS" in
  2903. posix)
  2904. case "$host" in
  2905. *-*-cygwin*)
  2906. # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
  2907. ;;
  2908. *-*-freebsd[1234]*)
  2909. # Before FreeBSD 5, it didn't have -lpthread (or any library which
  2910. # merely adds pthread_* functions) but it does have a -pthread switch
  2911. # which is required at link-time to select -lc_r *instead* of -lc.
  2912. THREADLDFLAGS=-pthread
  2913. # Don't set THREADSPEC here as might be expected since -pthread is
  2914. # not processed when found within a spec file, it must come from
  2915. # the command line. For now, the user must provide the -pthread
  2916. # switch to link code compiled with gcj. In future, consider adding
  2917. # support for weak references to pthread_* functions ala gthr.h API.
  2918. THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
  2919. ;;
  2920. *-*-freebsd*)
  2921. # FreeBSD 5 implements a model much closer to other modern UNIX
  2922. # which support threads. However, it still does not support
  2923. # -lpthread.
  2924. THREADLDFLAGS=-pthread
  2925. THREADSPEC=-lc_r
  2926. ;;
  2927. *)
  2928. THREADLIBS=-lpthread
  2929. THREADSPEC=-lpthread
  2930. ;;
  2931. esac
  2932. THREADOBJS=posix-threads.lo
  2933. THREADH=posix-threads.h
  2934. # MIT pthreads doesn't seem to have the mutexattr functions.
  2935. # But for now we don't check for it. We just assume you aren't
  2936. # using MIT pthreads.
  2937. cat >> confdefs.h <<\EOF
  2938. #define HAVE_PTHREAD_MUTEXATTR_INIT 1
  2939. EOF
  2940. # If we're using the Boehm GC, then we happen to know that it
  2941. # defines _REENTRANT, so we don't bother. Eww.
  2942. if test "$GC" != boehm; then
  2943. cat >> confdefs.h <<\EOF
  2944. #define _REENTRANT 1
  2945. EOF
  2946. fi
  2947. cat >> confdefs.h <<\EOF
  2948. #define _POSIX_PTHREAD_SEMANTICS 1
  2949. EOF
  2950. ;;
  2951. win32)
  2952. THREADOBJS=win32-threads.lo
  2953. THREADH=win32-threads.h
  2954. ;;
  2955. none)
  2956. THREADOBJS=no-threads.lo
  2957. THREADH=no-threads.h
  2958. ;;
  2959. esac
  2960. if test -d sysdep; then true; else mkdir sysdep; fi
  2961. HASH_SYNC_SPEC=
  2962. # Hash synchronization is only useful with posix threads right now.
  2963. if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
  2964. HASH_SYNC_SPEC=-fhash-synchronization
  2965. cat >> confdefs.h <<\EOF
  2966. #define JV_HASH_SYNCHRONIZATION 1
  2967. EOF
  2968. fi
  2969. if test "$GCC" = yes; then
  2970. USING_GCC_TRUE=
  2971. USING_GCC_FALSE='#'
  2972. else
  2973. USING_GCC_TRUE='#'
  2974. USING_GCC_FALSE=
  2975. fi
  2976. CANADIAN=no
  2977. NULL_TARGET=no
  2978. NATIVE=yes
  2979. # We're in the tree with gcc, and need to include some of its headers.
  2980. GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
  2981. # Figure out where generated headers like libgcj-config.h get installed.
  2982. gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
  2983. gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
  2984. gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
  2985. tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
  2986. if test "x${with_newlib}" = "xyes"; then
  2987. # We are being configured with a cross compiler. AC_REPLACE_FUNCS
  2988. # may not work correctly, because the compiler may not be able to
  2989. # link executables.
  2990. # We assume newlib. This lets us hard-code the functions we know
  2991. # we'll have.
  2992. cat >> confdefs.h <<\EOF
  2993. #define HAVE_MEMMOVE 1
  2994. EOF
  2995. cat >> confdefs.h <<\EOF
  2996. #define HAVE_MEMCPY 1
  2997. EOF
  2998. cat >> confdefs.h <<\EOF
  2999. #define HAVE_STRERROR 1
  3000. EOF
  3001. cat >> confdefs.h <<\EOF
  3002. #define HAVE_TIME 1
  3003. EOF
  3004. cat >> confdefs.h <<\EOF
  3005. #define HAVE_GMTIME_R 1
  3006. EOF
  3007. cat >> confdefs.h <<\EOF
  3008. #define HAVE_LOCALTIME_R 1
  3009. EOF
  3010. cat >> confdefs.h <<\EOF
  3011. #define HAVE_PTHREAD_MUTEXATTR_INIT 1
  3012. EOF
  3013. cat >> confdefs.h <<\EOF
  3014. #define HAVE_ALLOCA 1
  3015. EOF
  3016. cat >> confdefs.h <<\EOF
  3017. #define NO_GETUID 1
  3018. EOF
  3019. # If Canadian cross, then don't pick up tools from the build
  3020. # directory.
  3021. if test x"$build" != x"$with_cross_host" \
  3022. && test x"$build" != x"$target"; then
  3023. CANADIAN=yes
  3024. GCC_UNWIND_INCLUDE=
  3025. GCJ="${target_alias}-gcj"
  3026. fi
  3027. NATIVE=no
  3028. else
  3029. for ac_func in strerror ioctl select fstat open fsync sleep opendir
  3030. do
  3031. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3032. echo "configure:3480: checking for $ac_func" >&5
  3033. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3034. echo $ac_n "(cached) $ac_c" 1>&6
  3035. else
  3036. cat > conftest.$ac_ext <<EOF
  3037. #line 3485 "configure"
  3038. #include "confdefs.h"
  3039. /* System header to define __stub macros and hopefully few prototypes,
  3040. which can conflict with char $ac_func(); below. */
  3041. #include <assert.h>
  3042. /* Override any gcc2 internal prototype to avoid an error. */
  3043. /* We use char because int might match the return type of a gcc2
  3044. builtin and then its argument prototype would still apply. */
  3045. char $ac_func();
  3046. int main() {
  3047. /* The GNU C library defines this for functions which it implements
  3048. to always fail with ENOSYS. Some functions are actually named
  3049. something starting with __ and the normal name is an alias. */
  3050. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3051. choke me
  3052. #else
  3053. $ac_func();
  3054. #endif
  3055. ; return 0; }
  3056. EOF
  3057. if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3058. rm -rf conftest*
  3059. eval "ac_cv_func_$ac_func=yes"
  3060. else
  3061. echo "configure: failed program was:" >&5
  3062. cat conftest.$ac_ext >&5
  3063. rm -rf conftest*
  3064. eval "ac_cv_func_$ac_func=no"
  3065. fi
  3066. rm -f conftest*
  3067. fi
  3068. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3069. echo "$ac_t""yes" 1>&6
  3070. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3071. cat >> confdefs.h <<EOF
  3072. #define $ac_tr_func 1
  3073. EOF
  3074. else
  3075. echo "$ac_t""no" 1>&6
  3076. fi
  3077. done
  3078. for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
  3079. do
  3080. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3081. echo "configure:3535: checking for $ac_func" >&5
  3082. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3083. echo $ac_n "(cached) $ac_c" 1>&6
  3084. else
  3085. cat > conftest.$ac_ext <<EOF
  3086. #line 3540 "configure"
  3087. #include "confdefs.h"
  3088. /* System header to define __stub macros and hopefully few prototypes,
  3089. which can conflict with char $ac_func(); below. */
  3090. #include <assert.h>
  3091. /* Override any gcc2 internal prototype to avoid an error. */
  3092. /* We use char because int might match the return type of a gcc2
  3093. builtin and then its argument prototype would still apply. */
  3094. char $ac_func();
  3095. int main() {
  3096. /* The GNU C library defines this for functions which it implements
  3097. to always fail with ENOSYS. Some functions are actually named
  3098. something starting with __ and the normal name is an alias. */
  3099. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3100. choke me
  3101. #else
  3102. $ac_func();
  3103. #endif
  3104. ; return 0; }
  3105. EOF
  3106. if { (eval echo configure:3563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3107. rm -rf conftest*
  3108. eval "ac_cv_func_$ac_func=yes"
  3109. else
  3110. echo "configure: failed program was:" >&5
  3111. cat conftest.$ac_ext >&5
  3112. rm -rf conftest*
  3113. eval "ac_cv_func_$ac_func=no"
  3114. fi
  3115. rm -f conftest*
  3116. fi
  3117. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3118. echo "$ac_t""yes" 1>&6
  3119. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3120. cat >> confdefs.h <<EOF
  3121. #define $ac_tr_func 1
  3122. EOF
  3123. else
  3124. echo "$ac_t""no" 1>&6
  3125. fi
  3126. done
  3127. for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
  3128. do
  3129. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3130. echo "configure:3590: checking for $ac_func" >&5
  3131. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3132. echo $ac_n "(cached) $ac_c" 1>&6
  3133. else
  3134. cat > conftest.$ac_ext <<EOF
  3135. #line 3595 "configure"
  3136. #include "confdefs.h"
  3137. /* System header to define __stub macros and hopefully few prototypes,
  3138. which can conflict with char $ac_func(); below. */
  3139. #include <assert.h>
  3140. /* Override any gcc2 internal prototype to avoid an error. */
  3141. /* We use char because int might match the return type of a gcc2
  3142. builtin and then its argument prototype would still apply. */
  3143. char $ac_func();
  3144. int main() {
  3145. /* The GNU C library defines this for functions which it implements
  3146. to always fail with ENOSYS. Some functions are actually named
  3147. something starting with __ and the normal name is an alias. */
  3148. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3149. choke me
  3150. #else
  3151. $ac_func();
  3152. #endif
  3153. ; return 0; }
  3154. EOF
  3155. if { (eval echo configure:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3156. rm -rf conftest*
  3157. eval "ac_cv_func_$ac_func=yes"
  3158. else
  3159. echo "configure: failed program was:" >&5
  3160. cat conftest.$ac_ext >&5
  3161. rm -rf conftest*
  3162. eval "ac_cv_func_$ac_func=no"
  3163. fi
  3164. rm -f conftest*
  3165. fi
  3166. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3167. echo "$ac_t""yes" 1>&6
  3168. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3169. cat >> confdefs.h <<EOF
  3170. #define $ac_tr_func 1
  3171. EOF
  3172. else
  3173. echo "$ac_t""no" 1>&6
  3174. fi
  3175. done
  3176. for ac_func in nl_langinfo setlocale
  3177. do
  3178. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3179. echo "configure:3645: checking for $ac_func" >&5
  3180. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3181. echo $ac_n "(cached) $ac_c" 1>&6
  3182. else
  3183. cat > conftest.$ac_ext <<EOF
  3184. #line 3650 "configure"
  3185. #include "confdefs.h"
  3186. /* System header to define __stub macros and hopefully few prototypes,
  3187. which can conflict with char $ac_func(); below. */
  3188. #include <assert.h>
  3189. /* Override any gcc2 internal prototype to avoid an error. */
  3190. /* We use char because int might match the return type of a gcc2
  3191. builtin and then its argument prototype would still apply. */
  3192. char $ac_func();
  3193. int main() {
  3194. /* The GNU C library defines this for functions which it implements
  3195. to always fail with ENOSYS. Some functions are actually named
  3196. something starting with __ and the normal name is an alias. */
  3197. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3198. choke me
  3199. #else
  3200. $ac_func();
  3201. #endif
  3202. ; return 0; }
  3203. EOF
  3204. if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3205. rm -rf conftest*
  3206. eval "ac_cv_func_$ac_func=yes"
  3207. else
  3208. echo "configure: failed program was:" >&5
  3209. cat conftest.$ac_ext >&5
  3210. rm -rf conftest*
  3211. eval "ac_cv_func_$ac_func=no"
  3212. fi
  3213. rm -f conftest*
  3214. fi
  3215. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3216. echo "$ac_t""yes" 1>&6
  3217. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3218. cat >> confdefs.h <<EOF
  3219. #define $ac_tr_func 1
  3220. EOF
  3221. else
  3222. echo "$ac_t""no" 1>&6
  3223. fi
  3224. done
  3225. for ac_func in inet_aton inet_addr
  3226. do
  3227. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3228. echo "configure:3700: checking for $ac_func" >&5
  3229. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3230. echo $ac_n "(cached) $ac_c" 1>&6
  3231. else
  3232. cat > conftest.$ac_ext <<EOF
  3233. #line 3705 "configure"
  3234. #include "confdefs.h"
  3235. /* System header to define __stub macros and hopefully few prototypes,
  3236. which can conflict with char $ac_func(); below. */
  3237. #include <assert.h>
  3238. /* Override any gcc2 internal prototype to avoid an error. */
  3239. /* We use char because int might match the return type of a gcc2
  3240. builtin and then its argument prototype would still apply. */
  3241. char $ac_func();
  3242. int main() {
  3243. /* The GNU C library defines this for functions which it implements
  3244. to always fail with ENOSYS. Some functions are actually named
  3245. something starting with __ and the normal name is an alias. */
  3246. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3247. choke me
  3248. #else
  3249. $ac_func();
  3250. #endif
  3251. ; return 0; }
  3252. EOF
  3253. if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3254. rm -rf conftest*
  3255. eval "ac_cv_func_$ac_func=yes"
  3256. else
  3257. echo "configure: failed program was:" >&5
  3258. cat conftest.$ac_ext >&5
  3259. rm -rf conftest*
  3260. eval "ac_cv_func_$ac_func=no"
  3261. fi
  3262. rm -f conftest*
  3263. fi
  3264. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3265. echo "$ac_t""yes" 1>&6
  3266. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3267. cat >> confdefs.h <<EOF
  3268. #define $ac_tr_func 1
  3269. EOF
  3270. break
  3271. else
  3272. echo "$ac_t""no" 1>&6
  3273. fi
  3274. done
  3275. for ac_func in inet_pton uname inet_ntoa
  3276. do
  3277. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3278. echo "configure:3755: checking for $ac_func" >&5
  3279. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3280. echo $ac_n "(cached) $ac_c" 1>&6
  3281. else
  3282. cat > conftest.$ac_ext <<EOF
  3283. #line 3760 "configure"
  3284. #include "confdefs.h"
  3285. /* System header to define __stub macros and hopefully few prototypes,
  3286. which can conflict with char $ac_func(); below. */
  3287. #include <assert.h>
  3288. /* Override any gcc2 internal prototype to avoid an error. */
  3289. /* We use char because int might match the return type of a gcc2
  3290. builtin and then its argument prototype would still apply. */
  3291. char $ac_func();
  3292. int main() {
  3293. /* The GNU C library defines this for functions which it implements
  3294. to always fail with ENOSYS. Some functions are actually named
  3295. something starting with __ and the normal name is an alias. */
  3296. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3297. choke me
  3298. #else
  3299. $ac_func();
  3300. #endif
  3301. ; return 0; }
  3302. EOF
  3303. if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3304. rm -rf conftest*
  3305. eval "ac_cv_func_$ac_func=yes"
  3306. else
  3307. echo "configure: failed program was:" >&5
  3308. cat conftest.$ac_ext >&5
  3309. rm -rf conftest*
  3310. eval "ac_cv_func_$ac_func=no"
  3311. fi
  3312. rm -f conftest*
  3313. fi
  3314. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3315. echo "$ac_t""yes" 1>&6
  3316. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3317. cat >> confdefs.h <<EOF
  3318. #define $ac_tr_func 1
  3319. EOF
  3320. else
  3321. echo "$ac_t""no" 1>&6
  3322. fi
  3323. done
  3324. for ac_func in fork execvp pipe sigaction ftruncate
  3325. do
  3326. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3327. echo "configure:3810: checking for $ac_func" >&5
  3328. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3329. echo $ac_n "(cached) $ac_c" 1>&6
  3330. else
  3331. cat > conftest.$ac_ext <<EOF
  3332. #line 3815 "configure"
  3333. #include "confdefs.h"
  3334. /* System header to define __stub macros and hopefully few prototypes,
  3335. which can conflict with char $ac_func(); below. */
  3336. #include <assert.h>
  3337. /* Override any gcc2 internal prototype to avoid an error. */
  3338. /* We use char because int might match the return type of a gcc2
  3339. builtin and then its argument prototype would still apply. */
  3340. char $ac_func();
  3341. int main() {
  3342. /* The GNU C library defines this for functions which it implements
  3343. to always fail with ENOSYS. Some functions are actually named
  3344. something starting with __ and the normal name is an alias. */
  3345. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3346. choke me
  3347. #else
  3348. $ac_func();
  3349. #endif
  3350. ; return 0; }
  3351. EOF
  3352. if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3353. rm -rf conftest*
  3354. eval "ac_cv_func_$ac_func=yes"
  3355. else
  3356. echo "configure: failed program was:" >&5
  3357. cat conftest.$ac_ext >&5
  3358. rm -rf conftest*
  3359. eval "ac_cv_func_$ac_func=no"
  3360. fi
  3361. rm -f conftest*
  3362. fi
  3363. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3364. echo "$ac_t""yes" 1>&6
  3365. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3366. cat >> confdefs.h <<EOF
  3367. #define $ac_tr_func 1
  3368. EOF
  3369. else
  3370. echo "$ac_t""no" 1>&6
  3371. fi
  3372. done
  3373. for ac_hdr in execinfo.h unistd.h dlfcn.h
  3374. do
  3375. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3376. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3377. echo "configure:3866: checking for $ac_hdr" >&5
  3378. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3379. echo $ac_n "(cached) $ac_c" 1>&6
  3380. else
  3381. cat > conftest.$ac_ext <<EOF
  3382. #line 3871 "configure"
  3383. #include "confdefs.h"
  3384. #include <$ac_hdr>
  3385. EOF
  3386. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3387. { (eval echo configure:3876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3388. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3389. if test -z "$ac_err"; then
  3390. rm -rf conftest*
  3391. eval "ac_cv_header_$ac_safe=yes"
  3392. else
  3393. echo "$ac_err" >&5
  3394. echo "configure: failed program was:" >&5
  3395. cat conftest.$ac_ext >&5
  3396. rm -rf conftest*
  3397. eval "ac_cv_header_$ac_safe=no"
  3398. fi
  3399. rm -f conftest*
  3400. fi
  3401. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3402. echo "$ac_t""yes" 1>&6
  3403. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3404. cat >> confdefs.h <<EOF
  3405. #define $ac_tr_hdr 1
  3406. EOF
  3407. else
  3408. echo "$ac_t""no" 1>&6
  3409. fi
  3410. done
  3411. echo $ac_n "checking for backtrace""... $ac_c" 1>&6
  3412. echo "configure:3903: checking for backtrace" >&5
  3413. if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
  3414. echo $ac_n "(cached) $ac_c" 1>&6
  3415. else
  3416. cat > conftest.$ac_ext <<EOF
  3417. #line 3908 "configure"
  3418. #include "confdefs.h"
  3419. /* System header to define __stub macros and hopefully few prototypes,
  3420. which can conflict with char backtrace(); below. */
  3421. #include <assert.h>
  3422. /* Override any gcc2 internal prototype to avoid an error. */
  3423. /* We use char because int might match the return type of a gcc2
  3424. builtin and then its argument prototype would still apply. */
  3425. char backtrace();
  3426. int main() {
  3427. /* The GNU C library defines this for functions which it implements
  3428. to always fail with ENOSYS. Some functions are actually named
  3429. something starting with __ and the normal name is an alias. */
  3430. #if defined (__stub_backtrace) || defined (__stub___backtrace)
  3431. choke me
  3432. #else
  3433. backtrace();
  3434. #endif
  3435. ; return 0; }
  3436. EOF
  3437. if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3438. rm -rf conftest*
  3439. eval "ac_cv_func_backtrace=yes"
  3440. else
  3441. echo "configure: failed program was:" >&5
  3442. cat conftest.$ac_ext >&5
  3443. rm -rf conftest*
  3444. eval "ac_cv_func_backtrace=no"
  3445. fi
  3446. rm -f conftest*
  3447. fi
  3448. if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
  3449. echo "$ac_t""yes" 1>&6
  3450. case "$host" in
  3451. ia64-*-linux*)
  3452. # Has broken backtrace()
  3453. ;;
  3454. *)
  3455. cat >> confdefs.h <<\EOF
  3456. #define HAVE_BACKTRACE 1
  3457. EOF
  3458. ;;
  3459. esac
  3460. else
  3461. echo "$ac_t""no" 1>&6
  3462. case "$host" in
  3463. *mingw*)
  3464. # Has backtrace() defined in libgcj itself
  3465. cat >> confdefs.h <<\EOF
  3466. #define HAVE_BACKTRACE 1
  3467. EOF
  3468. ;;
  3469. esac
  3470. fi
  3471. echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
  3472. echo "configure:3975: checking for dladdr in -ldl" >&5
  3473. ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
  3474. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3475. echo $ac_n "(cached) $ac_c" 1>&6
  3476. else
  3477. ac_save_LIBS="$LIBS"
  3478. LIBS="-ldl $LIBS"
  3479. cat > conftest.$ac_ext <<EOF
  3480. #line 3983 "configure"
  3481. #include "confdefs.h"
  3482. /* Override any gcc2 internal prototype to avoid an error. */
  3483. /* We use char because int might match the return type of a gcc2
  3484. builtin and then its argument prototype would still apply. */
  3485. char dladdr();
  3486. int main() {
  3487. dladdr()
  3488. ; return 0; }
  3489. EOF
  3490. if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3491. rm -rf conftest*
  3492. eval "ac_cv_lib_$ac_lib_var=yes"
  3493. else
  3494. echo "configure: failed program was:" >&5
  3495. cat conftest.$ac_ext >&5
  3496. rm -rf conftest*
  3497. eval "ac_cv_lib_$ac_lib_var=no"
  3498. fi
  3499. rm -f conftest*
  3500. LIBS="$ac_save_LIBS"
  3501. fi
  3502. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3503. echo "$ac_t""yes" 1>&6
  3504. cat >> confdefs.h <<\EOF
  3505. #define HAVE_DLADDR 1
  3506. EOF
  3507. else
  3508. echo "$ac_t""no" 1>&6
  3509. fi
  3510. if test x"$build" = x"$host"; then
  3511. for ac_file in /proc/self/exe
  3512. do
  3513. ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
  3514. echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
  3515. echo "configure:4024: checking for $ac_file" >&5
  3516. if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
  3517. echo $ac_n "(cached) $ac_c" 1>&6
  3518. else
  3519. if test "$cross_compiling" = yes; then
  3520. { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
  3521. else
  3522. if test -r $ac_file; then
  3523. eval "ac_cv_file_$ac_safe=yes"
  3524. else
  3525. eval "ac_cv_file_$ac_safe=no"
  3526. fi
  3527. fi
  3528. fi
  3529. if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
  3530. echo "$ac_t""yes" 1>&6
  3531. ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3532. cat >> confdefs.h <<EOF
  3533. #define $ac_tr_file 1
  3534. EOF
  3535. cat >> confdefs.h <<\EOF
  3536. #define HAVE_PROC_SELF_EXE 1
  3537. EOF
  3538. else
  3539. echo "$ac_t""no" 1>&6
  3540. fi
  3541. done
  3542. else
  3543. case $host in
  3544. *-linux*)
  3545. cat >> confdefs.h <<\EOF
  3546. #define HAVE_PROC_SELF_EXE 1
  3547. EOF
  3548. ;;
  3549. esac
  3550. fi
  3551. am_cv_lib_iconv_ldpath=
  3552. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  3553. if test "${with_libiconv_prefix+set}" = set; then
  3554. withval="$with_libiconv_prefix"
  3555. for dir in `echo "$withval" | tr : ' '`; do
  3556. if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
  3557. if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
  3558. done
  3559. fi
  3560. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  3561. echo "configure:4082: checking for iconv" >&5
  3562. if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
  3563. echo $ac_n "(cached) $ac_c" 1>&6
  3564. else
  3565. am_cv_func_iconv="no, consider installing GNU libiconv"
  3566. am_cv_lib_iconv=no
  3567. cat > conftest.$ac_ext <<EOF
  3568. #line 4090 "configure"
  3569. #include "confdefs.h"
  3570. #include <stdlib.h>
  3571. #include <iconv.h>
  3572. int main() {
  3573. iconv_t cd = iconv_open("","");
  3574. iconv(cd,NULL,NULL,NULL,NULL);
  3575. iconv_close(cd);
  3576. ; return 0; }
  3577. EOF
  3578. if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3579. rm -rf conftest*
  3580. am_cv_func_iconv=yes
  3581. else
  3582. echo "configure: failed program was:" >&5
  3583. cat conftest.$ac_ext >&5
  3584. fi
  3585. rm -f conftest*
  3586. if test "$am_cv_func_iconv" != yes; then
  3587. am_save_LIBS="$LIBS"
  3588. LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
  3589. cat > conftest.$ac_ext <<EOF
  3590. #line 4112 "configure"
  3591. #include "confdefs.h"
  3592. #include <stdlib.h>
  3593. #include <iconv.h>
  3594. int main() {
  3595. iconv_t cd = iconv_open("","");
  3596. iconv(cd,NULL,NULL,NULL,NULL);
  3597. iconv_close(cd);
  3598. ; return 0; }
  3599. EOF
  3600. if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3601. rm -rf conftest*
  3602. am_cv_lib_iconv=yes
  3603. am_cv_func_iconv=yes
  3604. else
  3605. echo "configure: failed program was:" >&5
  3606. cat conftest.$ac_ext >&5
  3607. fi
  3608. rm -f conftest*
  3609. LIBS="$am_save_LIBS"
  3610. fi
  3611. fi
  3612. echo "$ac_t""$am_cv_func_iconv" 1>&6
  3613. if test "$am_cv_func_iconv" = yes; then
  3614. cat >> confdefs.h <<\EOF
  3615. #define HAVE_ICONV 1
  3616. EOF
  3617. echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
  3618. echo "configure:4143: checking for iconv declaration" >&5
  3619. if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
  3620. echo $ac_n "(cached) $ac_c" 1>&6
  3621. else
  3622. cat > conftest.$ac_ext <<EOF
  3623. #line 4149 "configure"
  3624. #include "confdefs.h"
  3625. #include <stdlib.h>
  3626. #include <iconv.h>
  3627. extern
  3628. #ifdef __cplusplus
  3629. "C"
  3630. #endif
  3631. #if defined(__STDC__) || defined(__cplusplus)
  3632. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  3633. #else
  3634. size_t iconv();
  3635. #endif
  3636. int main() {
  3637. ; return 0; }
  3638. EOF
  3639. if { (eval echo configure:4168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3640. rm -rf conftest*
  3641. am_cv_proto_iconv_arg1=""
  3642. else
  3643. echo "configure: failed program was:" >&5
  3644. cat conftest.$ac_ext >&5
  3645. rm -rf conftest*
  3646. am_cv_proto_iconv_arg1="const"
  3647. fi
  3648. rm -f conftest*
  3649. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  3650. fi
  3651. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  3652. echo "$ac_t""${ac_t:-
  3653. }$am_cv_proto_iconv" 1>&6
  3654. cat >> confdefs.h <<EOF
  3655. #define ICONV_CONST $am_cv_proto_iconv_arg1
  3656. EOF
  3657. fi
  3658. LIBICONV=
  3659. if test "$am_cv_lib_iconv" = yes; then
  3660. LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
  3661. fi
  3662. if test $ac_cv_header_locale_h = yes; then
  3663. echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  3664. echo "configure:4197: checking for LC_MESSAGES" >&5
  3665. if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  3666. echo $ac_n "(cached) $ac_c" 1>&6
  3667. else
  3668. cat > conftest.$ac_ext <<EOF
  3669. #line 4202 "configure"
  3670. #include "confdefs.h"
  3671. #include <locale.h>
  3672. int main() {
  3673. return LC_MESSAGES
  3674. ; return 0; }
  3675. EOF
  3676. if { (eval echo configure:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3677. rm -rf conftest*
  3678. am_cv_val_LC_MESSAGES=yes
  3679. else
  3680. echo "configure: failed program was:" >&5
  3681. cat conftest.$ac_ext >&5
  3682. rm -rf conftest*
  3683. am_cv_val_LC_MESSAGES=no
  3684. fi
  3685. rm -f conftest*
  3686. fi
  3687. echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
  3688. if test $am_cv_val_LC_MESSAGES = yes; then
  3689. cat >> confdefs.h <<\EOF
  3690. #define HAVE_LC_MESSAGES 1
  3691. EOF
  3692. fi
  3693. fi
  3694. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  3695. echo "configure:4230: checking whether struct tm is in sys/time.h or time.h" >&5
  3696. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  3697. echo $ac_n "(cached) $ac_c" 1>&6
  3698. else
  3699. cat > conftest.$ac_ext <<EOF
  3700. #line 4235 "configure"
  3701. #include "confdefs.h"
  3702. #include <sys/types.h>
  3703. #include <time.h>
  3704. int main() {
  3705. struct tm *tp; tp->tm_sec;
  3706. ; return 0; }
  3707. EOF
  3708. if { (eval echo configure:4243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3709. rm -rf conftest*
  3710. ac_cv_struct_tm=time.h
  3711. else
  3712. echo "configure: failed program was:" >&5
  3713. cat conftest.$ac_ext >&5
  3714. rm -rf conftest*
  3715. ac_cv_struct_tm=sys/time.h
  3716. fi
  3717. rm -f conftest*
  3718. fi
  3719. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  3720. if test $ac_cv_struct_tm = sys/time.h; then
  3721. cat >> confdefs.h <<\EOF
  3722. #define TM_IN_SYS_TIME 1
  3723. EOF
  3724. fi
  3725. echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
  3726. echo "configure:4264: checking for tm_zone in struct tm" >&5
  3727. if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  3728. echo $ac_n "(cached) $ac_c" 1>&6
  3729. else
  3730. cat > conftest.$ac_ext <<EOF
  3731. #line 4269 "configure"
  3732. #include "confdefs.h"
  3733. #include <sys/types.h>
  3734. #include <$ac_cv_struct_tm>
  3735. int main() {
  3736. struct tm tm; tm.tm_zone;
  3737. ; return 0; }
  3738. EOF
  3739. if { (eval echo configure:4277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3740. rm -rf conftest*
  3741. ac_cv_struct_tm_zone=yes
  3742. else
  3743. echo "configure: failed program was:" >&5
  3744. cat conftest.$ac_ext >&5
  3745. rm -rf conftest*
  3746. ac_cv_struct_tm_zone=no
  3747. fi
  3748. rm -f conftest*
  3749. fi
  3750. echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
  3751. if test "$ac_cv_struct_tm_zone" = yes; then
  3752. cat >> confdefs.h <<\EOF
  3753. #define HAVE_TM_ZONE 1
  3754. EOF
  3755. else
  3756. echo $ac_n "checking for tzname""... $ac_c" 1>&6
  3757. echo "configure:4297: checking for tzname" >&5
  3758. if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
  3759. echo $ac_n "(cached) $ac_c" 1>&6
  3760. else
  3761. cat > conftest.$ac_ext <<EOF
  3762. #line 4302 "configure"
  3763. #include "confdefs.h"
  3764. #include <time.h>
  3765. #ifndef tzname /* For SGI. */
  3766. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  3767. #endif
  3768. int main() {
  3769. atoi(*tzname);
  3770. ; return 0; }
  3771. EOF
  3772. if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3773. rm -rf conftest*
  3774. ac_cv_var_tzname=yes
  3775. else
  3776. echo "configure: failed program was:" >&5
  3777. cat conftest.$ac_ext >&5
  3778. rm -rf conftest*
  3779. ac_cv_var_tzname=no
  3780. fi
  3781. rm -f conftest*
  3782. fi
  3783. echo "$ac_t""$ac_cv_var_tzname" 1>&6
  3784. if test $ac_cv_var_tzname = yes; then
  3785. cat >> confdefs.h <<\EOF
  3786. #define HAVE_TZNAME 1
  3787. EOF
  3788. fi
  3789. fi
  3790. for ac_func in gethostbyname_r
  3791. do
  3792. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3793. echo "configure:4337: checking for $ac_func" >&5
  3794. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3795. echo $ac_n "(cached) $ac_c" 1>&6
  3796. else
  3797. cat > conftest.$ac_ext <<EOF
  3798. #line 4342 "configure"
  3799. #include "confdefs.h"
  3800. /* System header to define __stub macros and hopefully few prototypes,
  3801. which can conflict with char $ac_func(); below. */
  3802. #include <assert.h>
  3803. /* Override any gcc2 internal prototype to avoid an error. */
  3804. /* We use char because int might match the return type of a gcc2
  3805. builtin and then its argument prototype would still apply. */
  3806. char $ac_func();
  3807. int main() {
  3808. /* The GNU C library defines this for functions which it implements
  3809. to always fail with ENOSYS. Some functions are actually named
  3810. something starting with __ and the normal name is an alias. */
  3811. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3812. choke me
  3813. #else
  3814. $ac_func();
  3815. #endif
  3816. ; return 0; }
  3817. EOF
  3818. if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3819. rm -rf conftest*
  3820. eval "ac_cv_func_$ac_func=yes"
  3821. else
  3822. echo "configure: failed program was:" >&5
  3823. cat conftest.$ac_ext >&5
  3824. rm -rf conftest*
  3825. eval "ac_cv_func_$ac_func=no"
  3826. fi
  3827. rm -f conftest*
  3828. fi
  3829. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3830. echo "$ac_t""yes" 1>&6
  3831. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3832. cat >> confdefs.h <<EOF
  3833. #define $ac_tr_func 1
  3834. EOF
  3835. cat >> confdefs.h <<\EOF
  3836. #define HAVE_GETHOSTBYNAME_R 1
  3837. EOF
  3838. # There are two different kinds of gethostbyname_r.
  3839. # We look for the one that returns `int'.
  3840. # Hopefully this check is robust enough.
  3841. cat > conftest.$ac_ext <<EOF
  3842. #line 4392 "configure"
  3843. #include "confdefs.h"
  3844. #include <netdb.h>
  3845. EOF
  3846. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3847. egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
  3848. rm -rf conftest*
  3849. cat >> confdefs.h <<\EOF
  3850. #define GETHOSTBYNAME_R_RETURNS_INT 1
  3851. EOF
  3852. fi
  3853. rm -f conftest*
  3854. case " $GCINCS " in
  3855. *" -D_REENTRANT "*) ;;
  3856. *)
  3857. echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
  3858. echo "configure:4412: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
  3859. if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
  3860. echo $ac_n "(cached) $ac_c" 1>&6
  3861. else
  3862. ac_ext=C
  3863. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3864. ac_cpp='$CXXCPP $CPPFLAGS'
  3865. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3866. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3867. cross_compiling=$ac_cv_prog_cxx_cross
  3868. cat > conftest.$ac_ext <<EOF
  3869. #line 4425 "configure"
  3870. #include "confdefs.h"
  3871. #include <netdb.h>
  3872. int main() {
  3873. gethostbyname_r("", 0, 0);
  3874. ; return 0; }
  3875. EOF
  3876. if { (eval echo configure:4432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3877. rm -rf conftest*
  3878. libjava_cv_gethostbyname_r_needs_reentrant=no
  3879. else
  3880. echo "configure: failed program was:" >&5
  3881. cat conftest.$ac_ext >&5
  3882. rm -rf conftest*
  3883. CPPFLAGS_SAVE="$CPPFLAGS"
  3884. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  3885. cat > conftest.$ac_ext <<EOF
  3886. #line 4442 "configure"
  3887. #include "confdefs.h"
  3888. #include <netdb.h>
  3889. int main() {
  3890. gethostbyname_r("", 0, 0);
  3891. ; return 0; }
  3892. EOF
  3893. if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3894. rm -rf conftest*
  3895. libjava_cv_gethostbyname_r_needs_reentrant=yes
  3896. else
  3897. echo "configure: failed program was:" >&5
  3898. cat conftest.$ac_ext >&5
  3899. rm -rf conftest*
  3900. libjava_cv_gethostbyname_r_needs_reentrant=fail
  3901. fi
  3902. rm -f conftest*
  3903. CPPFLAGS="$CPPFLAGS_SAVE"
  3904. fi
  3905. rm -f conftest*
  3906. ac_ext=c
  3907. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3908. ac_cpp='$CPP $CPPFLAGS'
  3909. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3910. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3911. cross_compiling=$ac_cv_prog_cc_cross
  3912. fi
  3913. echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
  3914. if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
  3915. cat >> confdefs.h <<\EOF
  3916. #define _REENTRANT 1
  3917. EOF
  3918. fi
  3919. ;;
  3920. esac
  3921. echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
  3922. echo "configure:4484: checking for struct hostent_data" >&5
  3923. if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
  3924. echo $ac_n "(cached) $ac_c" 1>&6
  3925. else
  3926. cat > conftest.$ac_ext <<EOF
  3927. #line 4489 "configure"
  3928. #include "confdefs.h"
  3929. #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
  3930. # define _REENTRANT 1
  3931. #endif
  3932. #include <netdb.h>
  3933. int main() {
  3934. struct hostent_data data;
  3935. ; return 0; }
  3936. EOF
  3937. if { (eval echo configure:4500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3938. rm -rf conftest*
  3939. libjava_cv_struct_hostent_data=yes
  3940. else
  3941. echo "configure: failed program was:" >&5
  3942. cat conftest.$ac_ext >&5
  3943. rm -rf conftest*
  3944. libjava_cv_struct_hostent_data=no
  3945. fi
  3946. rm -f conftest*
  3947. fi
  3948. echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
  3949. if test "x$libjava_cv_struct_hostent_data" = xyes; then
  3950. cat >> confdefs.h <<\EOF
  3951. #define HAVE_STRUCT_HOSTENT_DATA 1
  3952. EOF
  3953. fi
  3954. else
  3955. echo "$ac_t""no" 1>&6
  3956. fi
  3957. done
  3958. # FIXME: libjava source code expects to find a prototype for
  3959. # gethostbyaddr_r in netdb.h. The outer check ensures that
  3960. # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
  3961. # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
  3962. # linkage check is enough, yet C++ code requires proper prototypes.)
  3963. cat > conftest.$ac_ext <<EOF
  3964. #line 4532 "configure"
  3965. #include "confdefs.h"
  3966. #include <netdb.h>
  3967. EOF
  3968. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3969. egrep "gethostbyaddr_r" >/dev/null 2>&1; then
  3970. rm -rf conftest*
  3971. for ac_func in gethostbyaddr_r
  3972. do
  3973. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3974. echo "configure:4543: checking for $ac_func" >&5
  3975. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3976. echo $ac_n "(cached) $ac_c" 1>&6
  3977. else
  3978. cat > conftest.$ac_ext <<EOF
  3979. #line 4548 "configure"
  3980. #include "confdefs.h"
  3981. /* System header to define __stub macros and hopefully few prototypes,
  3982. which can conflict with char $ac_func(); below. */
  3983. #include <assert.h>
  3984. /* Override any gcc2 internal prototype to avoid an error. */
  3985. /* We use char because int might match the return type of a gcc2
  3986. builtin and then its argument prototype would still apply. */
  3987. char $ac_func();
  3988. int main() {
  3989. /* The GNU C library defines this for functions which it implements
  3990. to always fail with ENOSYS. Some functions are actually named
  3991. something starting with __ and the normal name is an alias. */
  3992. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3993. choke me
  3994. #else
  3995. $ac_func();
  3996. #endif
  3997. ; return 0; }
  3998. EOF
  3999. if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4000. rm -rf conftest*
  4001. eval "ac_cv_func_$ac_func=yes"
  4002. else
  4003. echo "configure: failed program was:" >&5
  4004. cat conftest.$ac_ext >&5
  4005. rm -rf conftest*
  4006. eval "ac_cv_func_$ac_func=no"
  4007. fi
  4008. rm -f conftest*
  4009. fi
  4010. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4011. echo "$ac_t""yes" 1>&6
  4012. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4013. cat >> confdefs.h <<EOF
  4014. #define $ac_tr_func 1
  4015. EOF
  4016. cat >> confdefs.h <<\EOF
  4017. #define HAVE_GETHOSTBYADDR_R 1
  4018. EOF
  4019. # There are two different kinds of gethostbyaddr_r.
  4020. # We look for the one that returns `int'.
  4021. # Hopefully this check is robust enough.
  4022. cat > conftest.$ac_ext <<EOF
  4023. #line 4598 "configure"
  4024. #include "confdefs.h"
  4025. #include <netdb.h>
  4026. EOF
  4027. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4028. egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
  4029. rm -rf conftest*
  4030. cat >> confdefs.h <<\EOF
  4031. #define GETHOSTBYADDR_R_RETURNS_INT 1
  4032. EOF
  4033. fi
  4034. rm -f conftest*
  4035. else
  4036. echo "$ac_t""no" 1>&6
  4037. fi
  4038. done
  4039. fi
  4040. rm -f conftest*
  4041. for ac_func in gethostname
  4042. do
  4043. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4044. echo "configure:4625: checking for $ac_func" >&5
  4045. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4046. echo $ac_n "(cached) $ac_c" 1>&6
  4047. else
  4048. cat > conftest.$ac_ext <<EOF
  4049. #line 4630 "configure"
  4050. #include "confdefs.h"
  4051. /* System header to define __stub macros and hopefully few prototypes,
  4052. which can conflict with char $ac_func(); below. */
  4053. #include <assert.h>
  4054. /* Override any gcc2 internal prototype to avoid an error. */
  4055. /* We use char because int might match the return type of a gcc2
  4056. builtin and then its argument prototype would still apply. */
  4057. char $ac_func();
  4058. int main() {
  4059. /* The GNU C library defines this for functions which it implements
  4060. to always fail with ENOSYS. Some functions are actually named
  4061. something starting with __ and the normal name is an alias. */
  4062. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4063. choke me
  4064. #else
  4065. $ac_func();
  4066. #endif
  4067. ; return 0; }
  4068. EOF
  4069. if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4070. rm -rf conftest*
  4071. eval "ac_cv_func_$ac_func=yes"
  4072. else
  4073. echo "configure: failed program was:" >&5
  4074. cat conftest.$ac_ext >&5
  4075. rm -rf conftest*
  4076. eval "ac_cv_func_$ac_func=no"
  4077. fi
  4078. rm -f conftest*
  4079. fi
  4080. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4081. echo "$ac_t""yes" 1>&6
  4082. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4083. cat >> confdefs.h <<EOF
  4084. #define $ac_tr_func 1
  4085. EOF
  4086. cat >> confdefs.h <<\EOF
  4087. #define HAVE_GETHOSTNAME 1
  4088. EOF
  4089. cat > conftest.$ac_ext <<EOF
  4090. #line 4677 "configure"
  4091. #include "confdefs.h"
  4092. #include <unistd.h>
  4093. EOF
  4094. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4095. egrep "gethostname" >/dev/null 2>&1; then
  4096. rm -rf conftest*
  4097. cat >> confdefs.h <<\EOF
  4098. #define HAVE_GETHOSTNAME_DECL 1
  4099. EOF
  4100. fi
  4101. rm -f conftest*
  4102. else
  4103. echo "$ac_t""no" 1>&6
  4104. fi
  4105. done
  4106. # Look for these functions in the thread library, but only bother
  4107. # if using POSIX threads.
  4108. if test "$THREADS" = posix; then
  4109. save_LIBS="$LIBS"
  4110. LIBS="$LIBS $THREADLIBS"
  4111. # Some POSIX thread systems don't have pthread_mutexattr_settype.
  4112. # E.g., Solaris.
  4113. for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
  4114. do
  4115. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4116. echo "configure:4708: checking for $ac_func" >&5
  4117. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4118. echo $ac_n "(cached) $ac_c" 1>&6
  4119. else
  4120. cat > conftest.$ac_ext <<EOF
  4121. #line 4713 "configure"
  4122. #include "confdefs.h"
  4123. /* System header to define __stub macros and hopefully few prototypes,
  4124. which can conflict with char $ac_func(); below. */
  4125. #include <assert.h>
  4126. /* Override any gcc2 internal prototype to avoid an error. */
  4127. /* We use char because int might match the return type of a gcc2
  4128. builtin and then its argument prototype would still apply. */
  4129. char $ac_func();
  4130. int main() {
  4131. /* The GNU C library defines this for functions which it implements
  4132. to always fail with ENOSYS. Some functions are actually named
  4133. something starting with __ and the normal name is an alias. */
  4134. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4135. choke me
  4136. #else
  4137. $ac_func();
  4138. #endif
  4139. ; return 0; }
  4140. EOF
  4141. if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4142. rm -rf conftest*
  4143. eval "ac_cv_func_$ac_func=yes"
  4144. else
  4145. echo "configure: failed program was:" >&5
  4146. cat conftest.$ac_ext >&5
  4147. rm -rf conftest*
  4148. eval "ac_cv_func_$ac_func=no"
  4149. fi
  4150. rm -f conftest*
  4151. fi
  4152. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4153. echo "$ac_t""yes" 1>&6
  4154. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4155. cat >> confdefs.h <<EOF
  4156. #define $ac_tr_func 1
  4157. EOF
  4158. else
  4159. echo "$ac_t""no" 1>&6
  4160. fi
  4161. done
  4162. # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
  4163. # Solaris 7 the name librt is preferred.
  4164. for ac_func in sched_yield
  4165. do
  4166. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4167. echo "configure:4766: checking for $ac_func" >&5
  4168. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4169. echo $ac_n "(cached) $ac_c" 1>&6
  4170. else
  4171. cat > conftest.$ac_ext <<EOF
  4172. #line 4771 "configure"
  4173. #include "confdefs.h"
  4174. /* System header to define __stub macros and hopefully few prototypes,
  4175. which can conflict with char $ac_func(); below. */
  4176. #include <assert.h>
  4177. /* Override any gcc2 internal prototype to avoid an error. */
  4178. /* We use char because int might match the return type of a gcc2
  4179. builtin and then its argument prototype would still apply. */
  4180. char $ac_func();
  4181. int main() {
  4182. /* The GNU C library defines this for functions which it implements
  4183. to always fail with ENOSYS. Some functions are actually named
  4184. something starting with __ and the normal name is an alias. */
  4185. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4186. choke me
  4187. #else
  4188. $ac_func();
  4189. #endif
  4190. ; return 0; }
  4191. EOF
  4192. if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4193. rm -rf conftest*
  4194. eval "ac_cv_func_$ac_func=yes"
  4195. else
  4196. echo "configure: failed program was:" >&5
  4197. cat conftest.$ac_ext >&5
  4198. rm -rf conftest*
  4199. eval "ac_cv_func_$ac_func=no"
  4200. fi
  4201. rm -f conftest*
  4202. fi
  4203. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4204. echo "$ac_t""yes" 1>&6
  4205. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4206. cat >> confdefs.h <<EOF
  4207. #define $ac_tr_func 1
  4208. EOF
  4209. else
  4210. echo "$ac_t""no" 1>&6
  4211. echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
  4212. echo "configure:4816: checking for sched_yield in -lrt" >&5
  4213. ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
  4214. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4215. echo $ac_n "(cached) $ac_c" 1>&6
  4216. else
  4217. ac_save_LIBS="$LIBS"
  4218. LIBS="-lrt $LIBS"
  4219. cat > conftest.$ac_ext <<EOF
  4220. #line 4824 "configure"
  4221. #include "confdefs.h"
  4222. /* Override any gcc2 internal prototype to avoid an error. */
  4223. /* We use char because int might match the return type of a gcc2
  4224. builtin and then its argument prototype would still apply. */
  4225. char sched_yield();
  4226. int main() {
  4227. sched_yield()
  4228. ; return 0; }
  4229. EOF
  4230. if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4231. rm -rf conftest*
  4232. eval "ac_cv_lib_$ac_lib_var=yes"
  4233. else
  4234. echo "configure: failed program was:" >&5
  4235. cat conftest.$ac_ext >&5
  4236. rm -rf conftest*
  4237. eval "ac_cv_lib_$ac_lib_var=no"
  4238. fi
  4239. rm -f conftest*
  4240. LIBS="$ac_save_LIBS"
  4241. fi
  4242. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4243. echo "$ac_t""yes" 1>&6
  4244. cat >> confdefs.h <<\EOF
  4245. #define HAVE_SCHED_YIELD 1
  4246. EOF
  4247. THREADLIBS="$THREADLIBS -lrt"
  4248. THREADSPEC="$THREADSPEC -lrt"
  4249. else
  4250. echo "$ac_t""no" 1>&6
  4251. echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
  4252. echo "configure:4861: checking for sched_yield in -lposix4" >&5
  4253. ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
  4254. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4255. echo $ac_n "(cached) $ac_c" 1>&6
  4256. else
  4257. ac_save_LIBS="$LIBS"
  4258. LIBS="-lposix4 $LIBS"
  4259. cat > conftest.$ac_ext <<EOF
  4260. #line 4869 "configure"
  4261. #include "confdefs.h"
  4262. /* Override any gcc2 internal prototype to avoid an error. */
  4263. /* We use char because int might match the return type of a gcc2
  4264. builtin and then its argument prototype would still apply. */
  4265. char sched_yield();
  4266. int main() {
  4267. sched_yield()
  4268. ; return 0; }
  4269. EOF
  4270. if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4271. rm -rf conftest*
  4272. eval "ac_cv_lib_$ac_lib_var=yes"
  4273. else
  4274. echo "configure: failed program was:" >&5
  4275. cat conftest.$ac_ext >&5
  4276. rm -rf conftest*
  4277. eval "ac_cv_lib_$ac_lib_var=no"
  4278. fi
  4279. rm -f conftest*
  4280. LIBS="$ac_save_LIBS"
  4281. fi
  4282. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4283. echo "$ac_t""yes" 1>&6
  4284. cat >> confdefs.h <<\EOF
  4285. #define HAVE_SCHED_YIELD 1
  4286. EOF
  4287. THREADLIBS="$THREADLIBS -lposix4"
  4288. THREADSPEC="$THREADSPEC -lposix4"
  4289. else
  4290. echo "$ac_t""no" 1>&6
  4291. fi
  4292. fi
  4293. fi
  4294. done
  4295. LIBS="$save_LIBS"
  4296. # We can save a little space at runtime if the mutex has m_count
  4297. # or __m_count. This is a nice hack for Linux.
  4298. cat > conftest.$ac_ext <<EOF
  4299. #line 4916 "configure"
  4300. #include "confdefs.h"
  4301. #include <pthread.h>
  4302. int main() {
  4303. extern pthread_mutex_t *mutex; int q = mutex->m_count;
  4304. ; return 0; }
  4305. EOF
  4306. if { (eval echo configure:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4307. rm -rf conftest*
  4308. cat >> confdefs.h <<\EOF
  4309. #define PTHREAD_MUTEX_HAVE_M_COUNT 1
  4310. EOF
  4311. else
  4312. echo "configure: failed program was:" >&5
  4313. cat conftest.$ac_ext >&5
  4314. rm -rf conftest*
  4315. cat > conftest.$ac_ext <<EOF
  4316. #line 4937 "configure"
  4317. #include "confdefs.h"
  4318. #include <pthread.h>
  4319. int main() {
  4320. extern pthread_mutex_t *mutex; int q = mutex->__m_count;
  4321. ; return 0; }
  4322. EOF
  4323. if { (eval echo configure:4946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4324. rm -rf conftest*
  4325. cat >> confdefs.h <<\EOF
  4326. #define PTHREAD_MUTEX_HAVE___M_COUNT 1
  4327. EOF
  4328. else
  4329. echo "configure: failed program was:" >&5
  4330. cat conftest.$ac_ext >&5
  4331. fi
  4332. rm -f conftest*
  4333. fi
  4334. rm -f conftest*
  4335. fi
  4336. # We require a way to get the time.
  4337. time_found=no
  4338. for ac_func in gettimeofday time ftime
  4339. do
  4340. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4341. echo "configure:4966: checking for $ac_func" >&5
  4342. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4343. echo $ac_n "(cached) $ac_c" 1>&6
  4344. else
  4345. cat > conftest.$ac_ext <<EOF
  4346. #line 4971 "configure"
  4347. #include "confdefs.h"
  4348. /* System header to define __stub macros and hopefully few prototypes,
  4349. which can conflict with char $ac_func(); below. */
  4350. #include <assert.h>
  4351. /* Override any gcc2 internal prototype to avoid an error. */
  4352. /* We use char because int might match the return type of a gcc2
  4353. builtin and then its argument prototype would still apply. */
  4354. char $ac_func();
  4355. int main() {
  4356. /* The GNU C library defines this for functions which it implements
  4357. to always fail with ENOSYS. Some functions are actually named
  4358. something starting with __ and the normal name is an alias. */
  4359. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4360. choke me
  4361. #else
  4362. $ac_func();
  4363. #endif
  4364. ; return 0; }
  4365. EOF
  4366. if { (eval echo configure:4994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4367. rm -rf conftest*
  4368. eval "ac_cv_func_$ac_func=yes"
  4369. else
  4370. echo "configure: failed program was:" >&5
  4371. cat conftest.$ac_ext >&5
  4372. rm -rf conftest*
  4373. eval "ac_cv_func_$ac_func=no"
  4374. fi
  4375. rm -f conftest*
  4376. fi
  4377. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4378. echo "$ac_t""yes" 1>&6
  4379. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4380. cat >> confdefs.h <<EOF
  4381. #define $ac_tr_func 1
  4382. EOF
  4383. time_found=yes
  4384. else
  4385. echo "$ac_t""no" 1>&6
  4386. fi
  4387. done
  4388. if test "$time_found" = no; then
  4389. { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
  4390. fi
  4391. for ac_func in memmove
  4392. do
  4393. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4394. echo "configure:5025: checking for $ac_func" >&5
  4395. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4396. echo $ac_n "(cached) $ac_c" 1>&6
  4397. else
  4398. cat > conftest.$ac_ext <<EOF
  4399. #line 5030 "configure"
  4400. #include "confdefs.h"
  4401. /* System header to define __stub macros and hopefully few prototypes,
  4402. which can conflict with char $ac_func(); below. */
  4403. #include <assert.h>
  4404. /* Override any gcc2 internal prototype to avoid an error. */
  4405. /* We use char because int might match the return type of a gcc2
  4406. builtin and then its argument prototype would still apply. */
  4407. char $ac_func();
  4408. int main() {
  4409. /* The GNU C library defines this for functions which it implements
  4410. to always fail with ENOSYS. Some functions are actually named
  4411. something starting with __ and the normal name is an alias. */
  4412. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4413. choke me
  4414. #else
  4415. $ac_func();
  4416. #endif
  4417. ; return 0; }
  4418. EOF
  4419. if { (eval echo configure:5053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4420. rm -rf conftest*
  4421. eval "ac_cv_func_$ac_func=yes"
  4422. else
  4423. echo "configure: failed program was:" >&5
  4424. cat conftest.$ac_ext >&5
  4425. rm -rf conftest*
  4426. eval "ac_cv_func_$ac_func=no"
  4427. fi
  4428. rm -f conftest*
  4429. fi
  4430. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4431. echo "$ac_t""yes" 1>&6
  4432. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4433. cat >> confdefs.h <<EOF
  4434. #define $ac_tr_func 1
  4435. EOF
  4436. else
  4437. echo "$ac_t""no" 1>&6
  4438. fi
  4439. done
  4440. # We require memcpy.
  4441. memcpy_found=no
  4442. for ac_func in memcpy
  4443. do
  4444. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4445. echo "configure:5083: checking for $ac_func" >&5
  4446. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4447. echo $ac_n "(cached) $ac_c" 1>&6
  4448. else
  4449. cat > conftest.$ac_ext <<EOF
  4450. #line 5088 "configure"
  4451. #include "confdefs.h"
  4452. /* System header to define __stub macros and hopefully few prototypes,
  4453. which can conflict with char $ac_func(); below. */
  4454. #include <assert.h>
  4455. /* Override any gcc2 internal prototype to avoid an error. */
  4456. /* We use char because int might match the return type of a gcc2
  4457. builtin and then its argument prototype would still apply. */
  4458. char $ac_func();
  4459. int main() {
  4460. /* The GNU C library defines this for functions which it implements
  4461. to always fail with ENOSYS. Some functions are actually named
  4462. something starting with __ and the normal name is an alias. */
  4463. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4464. choke me
  4465. #else
  4466. $ac_func();
  4467. #endif
  4468. ; return 0; }
  4469. EOF
  4470. if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4471. rm -rf conftest*
  4472. eval "ac_cv_func_$ac_func=yes"
  4473. else
  4474. echo "configure: failed program was:" >&5
  4475. cat conftest.$ac_ext >&5
  4476. rm -rf conftest*
  4477. eval "ac_cv_func_$ac_func=no"
  4478. fi
  4479. rm -f conftest*
  4480. fi
  4481. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4482. echo "$ac_t""yes" 1>&6
  4483. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4484. cat >> confdefs.h <<EOF
  4485. #define $ac_tr_func 1
  4486. EOF
  4487. memcpy_found=yes
  4488. else
  4489. echo "$ac_t""no" 1>&6
  4490. fi
  4491. done
  4492. if test "$memcpy_found" = no; then
  4493. { echo "configure: error: memcpy is required" 1>&2; exit 1; }
  4494. fi
  4495. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  4496. echo "configure:5140: checking for dlopen in -ldl" >&5
  4497. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  4498. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4499. echo $ac_n "(cached) $ac_c" 1>&6
  4500. else
  4501. ac_save_LIBS="$LIBS"
  4502. LIBS="-ldl $LIBS"
  4503. cat > conftest.$ac_ext <<EOF
  4504. #line 5148 "configure"
  4505. #include "confdefs.h"
  4506. /* Override any gcc2 internal prototype to avoid an error. */
  4507. /* We use char because int might match the return type of a gcc2
  4508. builtin and then its argument prototype would still apply. */
  4509. char dlopen();
  4510. int main() {
  4511. dlopen()
  4512. ; return 0; }
  4513. EOF
  4514. if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4515. rm -rf conftest*
  4516. eval "ac_cv_lib_$ac_lib_var=yes"
  4517. else
  4518. echo "configure: failed program was:" >&5
  4519. cat conftest.$ac_ext >&5
  4520. rm -rf conftest*
  4521. eval "ac_cv_lib_$ac_lib_var=no"
  4522. fi
  4523. rm -f conftest*
  4524. LIBS="$ac_save_LIBS"
  4525. fi
  4526. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4527. echo "$ac_t""yes" 1>&6
  4528. cat >> confdefs.h <<\EOF
  4529. #define HAVE_DLOPEN 1
  4530. EOF
  4531. else
  4532. echo "$ac_t""no" 1>&6
  4533. fi
  4534. # Some library-finding code we stole from Tcl.
  4535. #--------------------------------------------------------------------
  4536. # Check for the existence of the -lsocket and -lnsl libraries.
  4537. # The order here is important, so that they end up in the right
  4538. # order in the command line generated by make. Here are some
  4539. # special considerations:
  4540. # 1. Use "connect" and "accept" to check for -lsocket, and
  4541. # "gethostbyname" to check for -lnsl.
  4542. # 2. Use each function name only once: can't redo a check because
  4543. # autoconf caches the results of the last check and won't redo it.
  4544. # 3. Use -lnsl and -lsocket only if they supply procedures that
  4545. # aren't already present in the normal libraries. This is because
  4546. # IRIX 5.2 has libraries, but they aren't needed and they're
  4547. # bogus: they goof up name resolution if used.
  4548. # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
  4549. # To get around this problem, check for both libraries together
  4550. # if -lsocket doesn't work by itself.
  4551. #--------------------------------------------------------------------
  4552. echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
  4553. echo "configure:5204: checking for socket libraries" >&5
  4554. if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
  4555. echo $ac_n "(cached) $ac_c" 1>&6
  4556. else
  4557. gcj_cv_lib_sockets=
  4558. gcj_checkBoth=0
  4559. unset ac_cv_func_connect
  4560. echo $ac_n "checking for connect""... $ac_c" 1>&6
  4561. echo "configure:5212: checking for connect" >&5
  4562. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  4563. echo $ac_n "(cached) $ac_c" 1>&6
  4564. else
  4565. cat > conftest.$ac_ext <<EOF
  4566. #line 5217 "configure"
  4567. #include "confdefs.h"
  4568. /* System header to define __stub macros and hopefully few prototypes,
  4569. which can conflict with char connect(); below. */
  4570. #include <assert.h>
  4571. /* Override any gcc2 internal prototype to avoid an error. */
  4572. /* We use char because int might match the return type of a gcc2
  4573. builtin and then its argument prototype would still apply. */
  4574. char connect();
  4575. int main() {
  4576. /* The GNU C library defines this for functions which it implements
  4577. to always fail with ENOSYS. Some functions are actually named
  4578. something starting with __ and the normal name is an alias. */
  4579. #if defined (__stub_connect) || defined (__stub___connect)
  4580. choke me
  4581. #else
  4582. connect();
  4583. #endif
  4584. ; return 0; }
  4585. EOF
  4586. if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4587. rm -rf conftest*
  4588. eval "ac_cv_func_connect=yes"
  4589. else
  4590. echo "configure: failed program was:" >&5
  4591. cat conftest.$ac_ext >&5
  4592. rm -rf conftest*
  4593. eval "ac_cv_func_connect=no"
  4594. fi
  4595. rm -f conftest*
  4596. fi
  4597. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  4598. echo "$ac_t""yes" 1>&6
  4599. gcj_checkSocket=0
  4600. else
  4601. echo "$ac_t""no" 1>&6
  4602. gcj_checkSocket=1
  4603. fi
  4604. if test "$gcj_checkSocket" = 1; then
  4605. unset ac_cv_func_connect
  4606. echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
  4607. echo "configure:5263: checking for main in -lsocket" >&5
  4608. ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
  4609. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4610. echo $ac_n "(cached) $ac_c" 1>&6
  4611. else
  4612. ac_save_LIBS="$LIBS"
  4613. LIBS="-lsocket $LIBS"
  4614. cat > conftest.$ac_ext <<EOF
  4615. #line 5271 "configure"
  4616. #include "confdefs.h"
  4617. int main() {
  4618. main()
  4619. ; return 0; }
  4620. EOF
  4621. if { (eval echo configure:5278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4622. rm -rf conftest*
  4623. eval "ac_cv_lib_$ac_lib_var=yes"
  4624. else
  4625. echo "configure: failed program was:" >&5
  4626. cat conftest.$ac_ext >&5
  4627. rm -rf conftest*
  4628. eval "ac_cv_lib_$ac_lib_var=no"
  4629. fi
  4630. rm -f conftest*
  4631. LIBS="$ac_save_LIBS"
  4632. fi
  4633. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4634. echo "$ac_t""yes" 1>&6
  4635. gcj_cv_lib_sockets="-lsocket"
  4636. else
  4637. echo "$ac_t""no" 1>&6
  4638. gcj_checkBoth=1
  4639. fi
  4640. fi
  4641. if test "$gcj_checkBoth" = 1; then
  4642. gcj_oldLibs=$LIBS
  4643. LIBS="$LIBS -lsocket -lnsl"
  4644. unset ac_cv_func_accept
  4645. echo $ac_n "checking for accept""... $ac_c" 1>&6
  4646. echo "configure:5305: checking for accept" >&5
  4647. if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
  4648. echo $ac_n "(cached) $ac_c" 1>&6
  4649. else
  4650. cat > conftest.$ac_ext <<EOF
  4651. #line 5310 "configure"
  4652. #include "confdefs.h"
  4653. /* System header to define __stub macros and hopefully few prototypes,
  4654. which can conflict with char accept(); below. */
  4655. #include <assert.h>
  4656. /* Override any gcc2 internal prototype to avoid an error. */
  4657. /* We use char because int might match the return type of a gcc2
  4658. builtin and then its argument prototype would still apply. */
  4659. char accept();
  4660. int main() {
  4661. /* The GNU C library defines this for functions which it implements
  4662. to always fail with ENOSYS. Some functions are actually named
  4663. something starting with __ and the normal name is an alias. */
  4664. #if defined (__stub_accept) || defined (__stub___accept)
  4665. choke me
  4666. #else
  4667. accept();
  4668. #endif
  4669. ; return 0; }
  4670. EOF
  4671. if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4672. rm -rf conftest*
  4673. eval "ac_cv_func_accept=yes"
  4674. else
  4675. echo "configure: failed program was:" >&5
  4676. cat conftest.$ac_ext >&5
  4677. rm -rf conftest*
  4678. eval "ac_cv_func_accept=no"
  4679. fi
  4680. rm -f conftest*
  4681. fi
  4682. if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
  4683. echo "$ac_t""yes" 1>&6
  4684. gcj_checkNsl=0
  4685. gcj_cv_lib_sockets="-lsocket -lnsl"
  4686. else
  4687. echo "$ac_t""no" 1>&6
  4688. fi
  4689. unset ac_cv_func_accept
  4690. LIBS=$gcj_oldLibs
  4691. fi
  4692. unset ac_cv_func_gethostbyname
  4693. gcj_oldLibs=$LIBS
  4694. LIBS="$LIBS $gcj_cv_lib_sockets"
  4695. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  4696. echo "configure:5360: checking for gethostbyname" >&5
  4697. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  4698. echo $ac_n "(cached) $ac_c" 1>&6
  4699. else
  4700. cat > conftest.$ac_ext <<EOF
  4701. #line 5365 "configure"
  4702. #include "confdefs.h"
  4703. /* System header to define __stub macros and hopefully few prototypes,
  4704. which can conflict with char gethostbyname(); below. */
  4705. #include <assert.h>
  4706. /* Override any gcc2 internal prototype to avoid an error. */
  4707. /* We use char because int might match the return type of a gcc2
  4708. builtin and then its argument prototype would still apply. */
  4709. char gethostbyname();
  4710. int main() {
  4711. /* The GNU C library defines this for functions which it implements
  4712. to always fail with ENOSYS. Some functions are actually named
  4713. something starting with __ and the normal name is an alias. */
  4714. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  4715. choke me
  4716. #else
  4717. gethostbyname();
  4718. #endif
  4719. ; return 0; }
  4720. EOF
  4721. if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4722. rm -rf conftest*
  4723. eval "ac_cv_func_gethostbyname=yes"
  4724. else
  4725. echo "configure: failed program was:" >&5
  4726. cat conftest.$ac_ext >&5
  4727. rm -rf conftest*
  4728. eval "ac_cv_func_gethostbyname=no"
  4729. fi
  4730. rm -f conftest*
  4731. fi
  4732. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  4733. echo "$ac_t""yes" 1>&6
  4734. :
  4735. else
  4736. echo "$ac_t""no" 1>&6
  4737. echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
  4738. echo "configure:5406: checking for main in -lnsl" >&5
  4739. ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
  4740. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4741. echo $ac_n "(cached) $ac_c" 1>&6
  4742. else
  4743. ac_save_LIBS="$LIBS"
  4744. LIBS="-lnsl $LIBS"
  4745. cat > conftest.$ac_ext <<EOF
  4746. #line 5414 "configure"
  4747. #include "confdefs.h"
  4748. int main() {
  4749. main()
  4750. ; return 0; }
  4751. EOF
  4752. if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4753. rm -rf conftest*
  4754. eval "ac_cv_lib_$ac_lib_var=yes"
  4755. else
  4756. echo "configure: failed program was:" >&5
  4757. cat conftest.$ac_ext >&5
  4758. rm -rf conftest*
  4759. eval "ac_cv_lib_$ac_lib_var=no"
  4760. fi
  4761. rm -f conftest*
  4762. LIBS="$ac_save_LIBS"
  4763. fi
  4764. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4765. echo "$ac_t""yes" 1>&6
  4766. gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
  4767. else
  4768. echo "$ac_t""no" 1>&6
  4769. fi
  4770. fi
  4771. unset ac_cv_func_gethostbyname
  4772. LIBS=$gcj_oldLIBS
  4773. fi
  4774. echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
  4775. SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
  4776. if test "$with_system_zlib" = yes; then
  4777. echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  4778. echo "configure:5453: checking for deflate in -lz" >&5
  4779. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  4780. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4781. echo $ac_n "(cached) $ac_c" 1>&6
  4782. else
  4783. ac_save_LIBS="$LIBS"
  4784. LIBS="-lz $LIBS"
  4785. cat > conftest.$ac_ext <<EOF
  4786. #line 5461 "configure"
  4787. #include "confdefs.h"
  4788. /* Override any gcc2 internal prototype to avoid an error. */
  4789. /* We use char because int might match the return type of a gcc2
  4790. builtin and then its argument prototype would still apply. */
  4791. char deflate();
  4792. int main() {
  4793. deflate()
  4794. ; return 0; }
  4795. EOF
  4796. if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4797. rm -rf conftest*
  4798. eval "ac_cv_lib_$ac_lib_var=yes"
  4799. else
  4800. echo "configure: failed program was:" >&5
  4801. cat conftest.$ac_ext >&5
  4802. rm -rf conftest*
  4803. eval "ac_cv_lib_$ac_lib_var=no"
  4804. fi
  4805. rm -f conftest*
  4806. LIBS="$ac_save_LIBS"
  4807. fi
  4808. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4809. echo "$ac_t""yes" 1>&6
  4810. ZLIBSPEC=-lz
  4811. else
  4812. echo "$ac_t""no" 1>&6
  4813. ZLIBSPEC=
  4814. fi
  4815. fi
  4816. # On Solaris, and maybe other architectures, the Boehm collector
  4817. # requires -ldl.
  4818. if test "$GC" = boehm; then
  4819. echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
  4820. echo "configure:5499: checking for main in -ldl" >&5
  4821. ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
  4822. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4823. echo $ac_n "(cached) $ac_c" 1>&6
  4824. else
  4825. ac_save_LIBS="$LIBS"
  4826. LIBS="-ldl $LIBS"
  4827. cat > conftest.$ac_ext <<EOF
  4828. #line 5507 "configure"
  4829. #include "confdefs.h"
  4830. int main() {
  4831. main()
  4832. ; return 0; }
  4833. EOF
  4834. if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4835. rm -rf conftest*
  4836. eval "ac_cv_lib_$ac_lib_var=yes"
  4837. else
  4838. echo "configure: failed program was:" >&5
  4839. cat conftest.$ac_ext >&5
  4840. rm -rf conftest*
  4841. eval "ac_cv_lib_$ac_lib_var=no"
  4842. fi
  4843. rm -f conftest*
  4844. LIBS="$ac_save_LIBS"
  4845. fi
  4846. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4847. echo "$ac_t""yes" 1>&6
  4848. SYSTEMSPEC="$SYSTEMSPEC -ldl"
  4849. else
  4850. echo "$ac_t""no" 1>&6
  4851. fi
  4852. fi
  4853. if test -z "${with_multisubdir}"; then
  4854. builddotdot=.
  4855. else
  4856. builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
  4857. fi
  4858. if test -x "${builddotdot}/../../gcc/gcj"; then
  4859. dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
  4860. GCJ="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/"
  4861. else
  4862. CANADIAN=yes
  4863. NULL_TARGET=yes
  4864. GCJ="gcj -B`${PWDCMD-pwd}`/"
  4865. fi
  4866. fi
  4867. # Create it, so that compile/link tests don't fail
  4868. test -f libgcj.spec || touch libgcj.spec
  4869. # We must search the source tree for java.lang, since we still don't
  4870. # have libgcj.jar nor java/lang/*.class
  4871. GCJ_SAVE_CPPFLAGS=$CPPFLAGS
  4872. CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
  4873. # Since some classes depend on this one, we need its source available
  4874. # before we can do any GCJ compilation test :-(
  4875. if test ! -f gnu/classpath/Configuration.java; then
  4876. test -d gnu || mkdir gnu
  4877. test -d gnu/classpath || mkdir gnu/classpath
  4878. sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
  4879. < $srcdir/gnu/classpath/Configuration.java.in \
  4880. > gnu/classpath/Configuration.java
  4881. # We do not want to redirect the output of the grep below to /dev/null,
  4882. # but we add /dev/null to the input list so that grep will print the
  4883. # filename of Configuration.java in case it finds any matches.
  4884. if grep @ gnu/classpath/Configuration.java /dev/null; then
  4885. { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
  4886. fi
  4887. fi
  4888. # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
  4889. set dummy ${ac_tool_prefix}gcj; ac_word=$2
  4890. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4891. echo "configure:5580: checking for $ac_word" >&5
  4892. if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
  4893. echo $ac_n "(cached) $ac_c" 1>&6
  4894. else
  4895. if test -n "$GCJ"; then
  4896. ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
  4897. else
  4898. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4899. ac_dummy="$PATH"
  4900. for ac_dir in $ac_dummy; do
  4901. test -z "$ac_dir" && ac_dir=.
  4902. if test -f $ac_dir/$ac_word; then
  4903. ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
  4904. break
  4905. fi
  4906. done
  4907. IFS="$ac_save_ifs"
  4908. fi
  4909. fi
  4910. GCJ="$ac_cv_prog_GCJ"
  4911. if test -n "$GCJ"; then
  4912. echo "$ac_t""$GCJ" 1>&6
  4913. else
  4914. echo "$ac_t""no" 1>&6
  4915. fi
  4916. if test -z "$ac_cv_prog_GCJ"; then
  4917. if test -n "$ac_tool_prefix"; then
  4918. # Extract the first word of "gcj", so it can be a program name with args.
  4919. set dummy gcj; ac_word=$2
  4920. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4921. echo "configure:5612: checking for $ac_word" >&5
  4922. if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
  4923. echo $ac_n "(cached) $ac_c" 1>&6
  4924. else
  4925. if test -n "$GCJ"; then
  4926. ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
  4927. else
  4928. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4929. ac_dummy="$PATH"
  4930. for ac_dir in $ac_dummy; do
  4931. test -z "$ac_dir" && ac_dir=.
  4932. if test -f $ac_dir/$ac_word; then
  4933. ac_cv_prog_GCJ="gcj"
  4934. break
  4935. fi
  4936. done
  4937. IFS="$ac_save_ifs"
  4938. test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
  4939. fi
  4940. fi
  4941. GCJ="$ac_cv_prog_GCJ"
  4942. if test -n "$GCJ"; then
  4943. echo "$ac_t""$GCJ" 1>&6
  4944. else
  4945. echo "$ac_t""no" 1>&6
  4946. fi
  4947. else
  4948. GCJ="no"
  4949. fi
  4950. fi
  4951. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  4952. LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
  4953. lt_save_CC="$CC"
  4954. lt_save_CFLAGS="$CFLAGS"
  4955. AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
  4956. MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  4957. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
  4958. AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
  4959. objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
  4960. deplibs_check_method="$deplibs_check_method" \
  4961. file_magic_cmd="$file_magic_cmd" \
  4962. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
  4963. --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
  4964. || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
  4965. CC="$lt_save_CC"
  4966. CFLAGS="$lt_save_CFLAGS"
  4967. # Redirect the config.log output again, so that the ltconfig log is not
  4968. # clobbered by the next message.
  4969. exec 5>>./config.log
  4970. CPPFLAGS=$GCJ_SAVE_CPPFLAGS
  4971. echo $ac_n "checking size of void *""... $ac_c" 1>&6
  4972. echo "configure:5674: checking size of void *" >&5
  4973. if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
  4974. echo $ac_n "(cached) $ac_c" 1>&6
  4975. else
  4976. for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
  4977. cat > conftest.$ac_ext <<EOF
  4978. #line 5680 "configure"
  4979. #include "confdefs.h"
  4980. #include "confdefs.h"
  4981. #include <sys/types.h>
  4982. int main() {
  4983. switch (0) case 0: case (sizeof (void *) == $ac_size):;
  4984. ; return 0; }
  4985. EOF
  4986. if { (eval echo configure:5690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4987. rm -rf conftest*
  4988. ac_cv_sizeof_void_p=$ac_size
  4989. else
  4990. echo "configure: failed program was:" >&5
  4991. cat conftest.$ac_ext >&5
  4992. fi
  4993. rm -f conftest*
  4994. if test x$ac_cv_sizeof_void_p != x ; then break; fi
  4995. done
  4996. fi
  4997. if test x$ac_cv_sizeof_void_p = x ; then
  4998. { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
  4999. fi
  5000. echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
  5001. cat >> confdefs.h <<EOF
  5002. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  5003. EOF
  5004. ZLIBS=
  5005. SYS_ZLIBS=
  5006. ZINCS=
  5007. if test -z "$ZLIBSPEC"; then
  5008. # Use zlib from the GCC tree.
  5009. ZINCS='-I$(top_srcdir)/../zlib'
  5010. ZLIBS=../zlib/libzgcj_convenience.la
  5011. else
  5012. # System's zlib.
  5013. SYS_ZLIBS="$ZLIBSPEC"
  5014. fi
  5015. if test "$CANADIAN" = yes; then
  5016. CANADIAN_TRUE=
  5017. CANADIAN_FALSE='#'
  5018. else
  5019. CANADIAN_TRUE='#'
  5020. CANADIAN_FALSE=
  5021. fi
  5022. if test "$NULL_TARGET" = yes; then
  5023. NULL_TARGET_TRUE=
  5024. NULL_TARGET_FALSE='#'
  5025. else
  5026. NULL_TARGET_TRUE='#'
  5027. NULL_TARGET_FALSE=
  5028. fi
  5029. if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
  5030. NATIVE_TRUE=
  5031. NATIVE_FALSE='#'
  5032. else
  5033. NATIVE_TRUE='#'
  5034. NATIVE_FALSE=
  5035. fi
  5036. if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
  5037. NEEDS_DATA_START_TRUE=
  5038. NEEDS_DATA_START_FALSE='#'
  5039. else
  5040. NEEDS_DATA_START_TRUE='#'
  5041. NEEDS_DATA_START_FALSE=
  5042. fi
  5043. if test -n "$with_cross_host" &&
  5044. test x"$with_cross_host" != x"no"; then
  5045. toolexecdir='$(exec_prefix)/$(target_alias)'
  5046. toolexecmainlibdir='$(toolexecdir)/lib'
  5047. else
  5048. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  5049. toolexecmainlibdir='$(libdir)'
  5050. fi
  5051. toolexeclibdir=$toolexecmainlibdir/`$CC -print-multi-os-directory`
  5052. # Determine gcj version number.
  5053. gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
  5054. GCJVERSION=$gcjversion
  5055. cat >> confdefs.h <<EOF
  5056. #define GCJVERSION "$GCJVERSION"
  5057. EOF
  5058. echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
  5059. echo "configure:5796: checking for g++ -ffloat-store bug" >&5
  5060. save_CFLAGS="$CFLAGS"
  5061. CFLAGS="-x c++ -O2 -ffloat-store"
  5062. cat > conftest.$ac_ext <<EOF
  5063. #line 5800 "configure"
  5064. #include "confdefs.h"
  5065. #include <math.h>
  5066. int main() {
  5067. ; return 0; }
  5068. EOF
  5069. if { (eval echo configure:5807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5070. rm -rf conftest*
  5071. echo "$ac_t""no" 1>&6
  5072. else
  5073. echo "configure: failed program was:" >&5
  5074. cat conftest.$ac_ext >&5
  5075. rm -rf conftest*
  5076. cat >> confdefs.h <<\EOF
  5077. #define __NO_MATH_INLINES 1
  5078. EOF
  5079. echo "$ac_t""yes" 1>&6
  5080. fi
  5081. rm -f conftest*
  5082. CFLAGS="$save_CFLAGS"
  5083. for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
  5084. do
  5085. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5086. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5087. echo "configure:5827: checking for $ac_hdr" >&5
  5088. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5089. echo $ac_n "(cached) $ac_c" 1>&6
  5090. else
  5091. cat > conftest.$ac_ext <<EOF
  5092. #line 5832 "configure"
  5093. #include "confdefs.h"
  5094. #include <$ac_hdr>
  5095. EOF
  5096. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5097. { (eval echo configure:5837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5098. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5099. if test -z "$ac_err"; then
  5100. rm -rf conftest*
  5101. eval "ac_cv_header_$ac_safe=yes"
  5102. else
  5103. echo "$ac_err" >&5
  5104. echo "configure: failed program was:" >&5
  5105. cat conftest.$ac_ext >&5
  5106. rm -rf conftest*
  5107. eval "ac_cv_header_$ac_safe=no"
  5108. fi
  5109. rm -f conftest*
  5110. fi
  5111. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5112. echo "$ac_t""yes" 1>&6
  5113. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5114. cat >> confdefs.h <<EOF
  5115. #define $ac_tr_hdr 1
  5116. EOF
  5117. else
  5118. echo "$ac_t""no" 1>&6
  5119. fi
  5120. done
  5121. for ac_hdr in dirent.h
  5122. do
  5123. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5124. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5125. echo "configure:5867: checking for $ac_hdr" >&5
  5126. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5127. echo $ac_n "(cached) $ac_c" 1>&6
  5128. else
  5129. cat > conftest.$ac_ext <<EOF
  5130. #line 5872 "configure"
  5131. #include "confdefs.h"
  5132. #include <$ac_hdr>
  5133. EOF
  5134. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5135. { (eval echo configure:5877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5136. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5137. if test -z "$ac_err"; then
  5138. rm -rf conftest*
  5139. eval "ac_cv_header_$ac_safe=yes"
  5140. else
  5141. echo "$ac_err" >&5
  5142. echo "configure: failed program was:" >&5
  5143. cat conftest.$ac_ext >&5
  5144. rm -rf conftest*
  5145. eval "ac_cv_header_$ac_safe=no"
  5146. fi
  5147. rm -f conftest*
  5148. fi
  5149. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5150. echo "$ac_t""yes" 1>&6
  5151. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5152. cat >> confdefs.h <<EOF
  5153. #define $ac_tr_hdr 1
  5154. EOF
  5155. else
  5156. echo "$ac_t""no" 1>&6
  5157. fi
  5158. done
  5159. for ac_hdr in inttypes.h
  5160. do
  5161. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5162. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5163. echo "configure:5907: checking for $ac_hdr" >&5
  5164. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5165. echo $ac_n "(cached) $ac_c" 1>&6
  5166. else
  5167. cat > conftest.$ac_ext <<EOF
  5168. #line 5912 "configure"
  5169. #include "confdefs.h"
  5170. #include <$ac_hdr>
  5171. EOF
  5172. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5173. { (eval echo configure:5917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5174. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5175. if test -z "$ac_err"; then
  5176. rm -rf conftest*
  5177. eval "ac_cv_header_$ac_safe=yes"
  5178. else
  5179. echo "$ac_err" >&5
  5180. echo "configure: failed program was:" >&5
  5181. cat conftest.$ac_ext >&5
  5182. rm -rf conftest*
  5183. eval "ac_cv_header_$ac_safe=no"
  5184. fi
  5185. rm -f conftest*
  5186. fi
  5187. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5188. echo "$ac_t""yes" 1>&6
  5189. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5190. cat >> confdefs.h <<EOF
  5191. #define $ac_tr_hdr 1
  5192. EOF
  5193. cat >> confdefs.h <<\EOF
  5194. #define HAVE_INTTYPES_H 1
  5195. EOF
  5196. cat >> confdefs.h <<\EOF
  5197. #define JV_HAVE_INTTYPES_H 1
  5198. EOF
  5199. else
  5200. echo "$ac_t""no" 1>&6
  5201. fi
  5202. done
  5203. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  5204. echo "configure:5953: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5205. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  5206. echo $ac_n "(cached) $ac_c" 1>&6
  5207. else
  5208. cat > conftest.$ac_ext <<EOF
  5209. #line 5958 "configure"
  5210. #include "confdefs.h"
  5211. #include <sys/types.h>
  5212. #include <sys/wait.h>
  5213. #ifndef WEXITSTATUS
  5214. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5215. #endif
  5216. #ifndef WIFEXITED
  5217. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5218. #endif
  5219. int main() {
  5220. int s;
  5221. wait (&s);
  5222. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5223. ; return 0; }
  5224. EOF
  5225. if { (eval echo configure:5974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5226. rm -rf conftest*
  5227. ac_cv_header_sys_wait_h=yes
  5228. else
  5229. echo "configure: failed program was:" >&5
  5230. cat conftest.$ac_ext >&5
  5231. rm -rf conftest*
  5232. ac_cv_header_sys_wait_h=no
  5233. fi
  5234. rm -f conftest*
  5235. fi
  5236. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  5237. if test $ac_cv_header_sys_wait_h = yes; then
  5238. cat >> confdefs.h <<\EOF
  5239. #define HAVE_SYS_WAIT_H 1
  5240. EOF
  5241. fi
  5242. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  5243. echo "configure:5996: checking for ANSI C header files" >&5
  5244. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  5245. echo $ac_n "(cached) $ac_c" 1>&6
  5246. else
  5247. cat > conftest.$ac_ext <<EOF
  5248. #line 6001 "configure"
  5249. #include "confdefs.h"
  5250. #include <stdlib.h>
  5251. #include <stdarg.h>
  5252. #include <string.h>
  5253. #include <float.h>
  5254. EOF
  5255. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5256. { (eval echo configure:6009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5257. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5258. if test -z "$ac_err"; then
  5259. rm -rf conftest*
  5260. ac_cv_header_stdc=yes
  5261. else
  5262. echo "$ac_err" >&5
  5263. echo "configure: failed program was:" >&5
  5264. cat conftest.$ac_ext >&5
  5265. rm -rf conftest*
  5266. ac_cv_header_stdc=no
  5267. fi
  5268. rm -f conftest*
  5269. if test $ac_cv_header_stdc = yes; then
  5270. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5271. cat > conftest.$ac_ext <<EOF
  5272. #line 6026 "configure"
  5273. #include "confdefs.h"
  5274. #include <string.h>
  5275. EOF
  5276. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5277. egrep "memchr" >/dev/null 2>&1; then
  5278. :
  5279. else
  5280. rm -rf conftest*
  5281. ac_cv_header_stdc=no
  5282. fi
  5283. rm -f conftest*
  5284. fi
  5285. if test $ac_cv_header_stdc = yes; then
  5286. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5287. cat > conftest.$ac_ext <<EOF
  5288. #line 6044 "configure"
  5289. #include "confdefs.h"
  5290. #include <stdlib.h>
  5291. EOF
  5292. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5293. egrep "free" >/dev/null 2>&1; then
  5294. :
  5295. else
  5296. rm -rf conftest*
  5297. ac_cv_header_stdc=no
  5298. fi
  5299. rm -f conftest*
  5300. fi
  5301. if test $ac_cv_header_stdc = yes; then
  5302. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5303. if test "$cross_compiling" = yes; then
  5304. :
  5305. else
  5306. cat > conftest.$ac_ext <<EOF
  5307. #line 6065 "configure"
  5308. #include "confdefs.h"
  5309. #include <ctype.h>
  5310. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5311. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5312. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5313. int main () { int i; for (i = 0; i < 256; i++)
  5314. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  5315. exit (0); }
  5316. EOF
  5317. if { (eval echo configure:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5318. then
  5319. :
  5320. else
  5321. echo "configure: failed program was:" >&5
  5322. cat conftest.$ac_ext >&5
  5323. rm -fr conftest*
  5324. ac_cv_header_stdc=no
  5325. fi
  5326. rm -fr conftest*
  5327. fi
  5328. fi
  5329. fi
  5330. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  5331. if test $ac_cv_header_stdc = yes; then
  5332. cat >> confdefs.h <<\EOF
  5333. #define STDC_HEADERS 1
  5334. EOF
  5335. fi
  5336. echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
  5337. echo "configure:6100: checking for ssize_t" >&5
  5338. if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
  5339. echo $ac_n "(cached) $ac_c" 1>&6
  5340. else
  5341. cat > conftest.$ac_ext <<EOF
  5342. #line 6105 "configure"
  5343. #include "confdefs.h"
  5344. #include <sys/types.h>
  5345. #if STDC_HEADERS
  5346. #include <stdlib.h>
  5347. #include <stddef.h>
  5348. #endif
  5349. EOF
  5350. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5351. egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5352. rm -rf conftest*
  5353. ac_cv_type_ssize_t=yes
  5354. else
  5355. rm -rf conftest*
  5356. ac_cv_type_ssize_t=no
  5357. fi
  5358. rm -f conftest*
  5359. fi
  5360. echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
  5361. if test $ac_cv_type_ssize_t = no; then
  5362. cat >> confdefs.h <<\EOF
  5363. #define ssize_t int
  5364. EOF
  5365. fi
  5366. echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
  5367. echo "configure:6134: checking for in_addr_t" >&5
  5368. cat > conftest.$ac_ext <<EOF
  5369. #line 6136 "configure"
  5370. #include "confdefs.h"
  5371. #include <sys/types.h>
  5372. #if STDC_HEADERS
  5373. #include <stdlib.h>
  5374. #include <stddef.h>
  5375. #endif
  5376. #if HAVE_NETINET_IN_H
  5377. #include <netinet/in.h>
  5378. #endif
  5379. int main() {
  5380. in_addr_t foo;
  5381. ; return 0; }
  5382. EOF
  5383. if { (eval echo configure:6150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5384. rm -rf conftest*
  5385. cat >> confdefs.h <<\EOF
  5386. #define HAVE_IN_ADDR_T 1
  5387. EOF
  5388. echo "$ac_t""yes" 1>&6
  5389. else
  5390. echo "configure: failed program was:" >&5
  5391. cat conftest.$ac_ext >&5
  5392. rm -rf conftest*
  5393. echo "$ac_t""no" 1>&6
  5394. fi
  5395. rm -f conftest*
  5396. echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
  5397. echo "configure:6166: checking whether struct ip_mreq is in netinet/in.h" >&5
  5398. cat > conftest.$ac_ext <<EOF
  5399. #line 6168 "configure"
  5400. #include "confdefs.h"
  5401. #include <netinet/in.h>
  5402. int main() {
  5403. struct ip_mreq mreq;
  5404. ; return 0; }
  5405. EOF
  5406. if { (eval echo configure:6175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5407. rm -rf conftest*
  5408. cat >> confdefs.h <<\EOF
  5409. #define HAVE_STRUCT_IP_MREQ 1
  5410. EOF
  5411. echo "$ac_t""yes" 1>&6
  5412. else
  5413. echo "configure: failed program was:" >&5
  5414. cat conftest.$ac_ext >&5
  5415. rm -rf conftest*
  5416. echo "$ac_t""no" 1>&6
  5417. fi
  5418. rm -f conftest*
  5419. echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
  5420. echo "configure:6191: checking whether struct ipv6_mreq is in netinet/in.h" >&5
  5421. cat > conftest.$ac_ext <<EOF
  5422. #line 6193 "configure"
  5423. #include "confdefs.h"
  5424. #include <netinet/in.h>
  5425. int main() {
  5426. struct ipv6_mreq mreq6;
  5427. ; return 0; }
  5428. EOF
  5429. if { (eval echo configure:6200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5430. rm -rf conftest*
  5431. cat >> confdefs.h <<\EOF
  5432. #define HAVE_STRUCT_IPV6_MREQ 1
  5433. EOF
  5434. echo "$ac_t""yes" 1>&6
  5435. else
  5436. echo "configure: failed program was:" >&5
  5437. cat conftest.$ac_ext >&5
  5438. rm -rf conftest*
  5439. echo "$ac_t""no" 1>&6
  5440. fi
  5441. rm -f conftest*
  5442. echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
  5443. echo "configure:6216: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
  5444. cat > conftest.$ac_ext <<EOF
  5445. #line 6218 "configure"
  5446. #include "confdefs.h"
  5447. #include <netinet/in.h>
  5448. int main() {
  5449. struct sockaddr_in6 addr6;
  5450. ; return 0; }
  5451. EOF
  5452. if { (eval echo configure:6225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5453. rm -rf conftest*
  5454. cat >> confdefs.h <<\EOF
  5455. #define HAVE_INET6 1
  5456. EOF
  5457. echo "$ac_t""yes" 1>&6
  5458. else
  5459. echo "configure: failed program was:" >&5
  5460. cat conftest.$ac_ext >&5
  5461. rm -rf conftest*
  5462. echo "$ac_t""no" 1>&6
  5463. fi
  5464. rm -f conftest*
  5465. echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
  5466. echo "configure:6241: checking for socklen_t in sys/socket.h" >&5
  5467. cat > conftest.$ac_ext <<EOF
  5468. #line 6243 "configure"
  5469. #include "confdefs.h"
  5470. #define _POSIX_PII_SOCKET
  5471. #include <sys/types.h>
  5472. #include <sys/socket.h>
  5473. int main() {
  5474. socklen_t x = 5;
  5475. ; return 0; }
  5476. EOF
  5477. if { (eval echo configure:6252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5478. rm -rf conftest*
  5479. cat >> confdefs.h <<\EOF
  5480. #define HAVE_SOCKLEN_T 1
  5481. EOF
  5482. echo "$ac_t""yes" 1>&6
  5483. else
  5484. echo "configure: failed program was:" >&5
  5485. cat conftest.$ac_ext >&5
  5486. rm -rf conftest*
  5487. echo "$ac_t""no" 1>&6
  5488. fi
  5489. rm -f conftest*
  5490. echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
  5491. echo "configure:6268: checking for tm_gmtoff in struct tm" >&5
  5492. cat > conftest.$ac_ext <<EOF
  5493. #line 6270 "configure"
  5494. #include "confdefs.h"
  5495. #include <time.h>
  5496. int main() {
  5497. struct tm tim; tim.tm_gmtoff = 0;
  5498. ; return 0; }
  5499. EOF
  5500. if { (eval echo configure:6277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5501. rm -rf conftest*
  5502. cat >> confdefs.h <<\EOF
  5503. #define STRUCT_TM_HAS_GMTOFF 1
  5504. EOF
  5505. echo "$ac_t""yes" 1>&6
  5506. else
  5507. echo "configure: failed program was:" >&5
  5508. cat conftest.$ac_ext >&5
  5509. rm -rf conftest*
  5510. echo "$ac_t""no" 1>&6
  5511. echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
  5512. echo "configure:6290: checking for global timezone variable" >&5
  5513. cat > conftest.$ac_ext <<EOF
  5514. #line 6292 "configure"
  5515. #include "confdefs.h"
  5516. #include <time.h>
  5517. int main() {
  5518. void i(){long z2 = 2*timezone;}
  5519. ; return 0; }
  5520. EOF
  5521. if { (eval echo configure:6299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5522. rm -rf conftest*
  5523. cat >> confdefs.h <<\EOF
  5524. #define HAVE_TIMEZONE 1
  5525. EOF
  5526. echo "$ac_t""yes" 1>&6
  5527. else
  5528. echo "configure: failed program was:" >&5
  5529. cat conftest.$ac_ext >&5
  5530. rm -rf conftest*
  5531. echo "$ac_t""no" 1>&6
  5532. echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
  5533. echo "configure:6312: checking for global _timezone variable" >&5
  5534. cat > conftest.$ac_ext <<EOF
  5535. #line 6314 "configure"
  5536. #include "confdefs.h"
  5537. #include <time.h>
  5538. int main() {
  5539. long z2 = _timezone;
  5540. ; return 0; }
  5541. EOF
  5542. if { (eval echo configure:6321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5543. rm -rf conftest*
  5544. cat >> confdefs.h <<\EOF
  5545. #define HAVE_UNDERSCORE_TIMEZONE 1
  5546. EOF
  5547. echo "$ac_t""yes" 1>&6
  5548. else
  5549. echo "configure: failed program was:" >&5
  5550. cat conftest.$ac_ext >&5
  5551. rm -rf conftest*
  5552. echo "$ac_t""no" 1>&6
  5553. fi
  5554. rm -f conftest*
  5555. fi
  5556. rm -f conftest*
  5557. fi
  5558. rm -f conftest*
  5559. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5560. # for constant arguments. Useless!
  5561. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  5562. echo "configure:6343: checking for working alloca.h" >&5
  5563. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  5564. echo $ac_n "(cached) $ac_c" 1>&6
  5565. else
  5566. cat > conftest.$ac_ext <<EOF
  5567. #line 6348 "configure"
  5568. #include "confdefs.h"
  5569. #include <alloca.h>
  5570. int main() {
  5571. char *p = alloca(2 * sizeof(int));
  5572. ; return 0; }
  5573. EOF
  5574. if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5575. rm -rf conftest*
  5576. ac_cv_header_alloca_h=yes
  5577. else
  5578. echo "configure: failed program was:" >&5
  5579. cat conftest.$ac_ext >&5
  5580. rm -rf conftest*
  5581. ac_cv_header_alloca_h=no
  5582. fi
  5583. rm -f conftest*
  5584. fi
  5585. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  5586. if test $ac_cv_header_alloca_h = yes; then
  5587. cat >> confdefs.h <<\EOF
  5588. #define HAVE_ALLOCA_H 1
  5589. EOF
  5590. fi
  5591. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  5592. echo "configure:6376: checking for alloca" >&5
  5593. if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  5594. echo $ac_n "(cached) $ac_c" 1>&6
  5595. else
  5596. cat > conftest.$ac_ext <<EOF
  5597. #line 6381 "configure"
  5598. #include "confdefs.h"
  5599. #ifdef __GNUC__
  5600. # define alloca __builtin_alloca
  5601. #else
  5602. # ifdef _MSC_VER
  5603. # include <malloc.h>
  5604. # define alloca _alloca
  5605. # else
  5606. # if HAVE_ALLOCA_H
  5607. # include <alloca.h>
  5608. # else
  5609. # ifdef _AIX
  5610. #pragma alloca
  5611. # else
  5612. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5613. char *alloca ();
  5614. # endif
  5615. # endif
  5616. # endif
  5617. # endif
  5618. #endif
  5619. int main() {
  5620. char *p = (char *) alloca(1);
  5621. ; return 0; }
  5622. EOF
  5623. if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5624. rm -rf conftest*
  5625. ac_cv_func_alloca_works=yes
  5626. else
  5627. echo "configure: failed program was:" >&5
  5628. cat conftest.$ac_ext >&5
  5629. rm -rf conftest*
  5630. ac_cv_func_alloca_works=no
  5631. fi
  5632. rm -f conftest*
  5633. fi
  5634. echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
  5635. if test $ac_cv_func_alloca_works = yes; then
  5636. cat >> confdefs.h <<\EOF
  5637. #define HAVE_ALLOCA 1
  5638. EOF
  5639. fi
  5640. if test $ac_cv_func_alloca_works = no; then
  5641. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5642. # that cause trouble. Some versions do not even contain alloca or
  5643. # contain a buggy version. If you still want to use their alloca,
  5644. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5645. ALLOCA=alloca.${ac_objext}
  5646. cat >> confdefs.h <<\EOF
  5647. #define C_ALLOCA 1
  5648. EOF
  5649. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  5650. echo "configure:6441: checking whether alloca needs Cray hooks" >&5
  5651. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  5652. echo $ac_n "(cached) $ac_c" 1>&6
  5653. else
  5654. cat > conftest.$ac_ext <<EOF
  5655. #line 6446 "configure"
  5656. #include "confdefs.h"
  5657. #if defined(CRAY) && ! defined(CRAY2)
  5658. webecray
  5659. #else
  5660. wenotbecray
  5661. #endif
  5662. EOF
  5663. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5664. egrep "webecray" >/dev/null 2>&1; then
  5665. rm -rf conftest*
  5666. ac_cv_os_cray=yes
  5667. else
  5668. rm -rf conftest*
  5669. ac_cv_os_cray=no
  5670. fi
  5671. rm -f conftest*
  5672. fi
  5673. echo "$ac_t""$ac_cv_os_cray" 1>&6
  5674. if test $ac_cv_os_cray = yes; then
  5675. for ac_func in _getb67 GETB67 getb67; do
  5676. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5677. echo "configure:6471: checking for $ac_func" >&5
  5678. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5679. echo $ac_n "(cached) $ac_c" 1>&6
  5680. else
  5681. cat > conftest.$ac_ext <<EOF
  5682. #line 6476 "configure"
  5683. #include "confdefs.h"
  5684. /* System header to define __stub macros and hopefully few prototypes,
  5685. which can conflict with char $ac_func(); below. */
  5686. #include <assert.h>
  5687. /* Override any gcc2 internal prototype to avoid an error. */
  5688. /* We use char because int might match the return type of a gcc2
  5689. builtin and then its argument prototype would still apply. */
  5690. char $ac_func();
  5691. int main() {
  5692. /* The GNU C library defines this for functions which it implements
  5693. to always fail with ENOSYS. Some functions are actually named
  5694. something starting with __ and the normal name is an alias. */
  5695. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5696. choke me
  5697. #else
  5698. $ac_func();
  5699. #endif
  5700. ; return 0; }
  5701. EOF
  5702. if { (eval echo configure:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5703. rm -rf conftest*
  5704. eval "ac_cv_func_$ac_func=yes"
  5705. else
  5706. echo "configure: failed program was:" >&5
  5707. cat conftest.$ac_ext >&5
  5708. rm -rf conftest*
  5709. eval "ac_cv_func_$ac_func=no"
  5710. fi
  5711. rm -f conftest*
  5712. fi
  5713. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5714. echo "$ac_t""yes" 1>&6
  5715. cat >> confdefs.h <<EOF
  5716. #define CRAY_STACKSEG_END $ac_func
  5717. EOF
  5718. break
  5719. else
  5720. echo "$ac_t""no" 1>&6
  5721. fi
  5722. done
  5723. fi
  5724. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  5725. echo "configure:6526: checking stack direction for C alloca" >&5
  5726. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  5727. echo $ac_n "(cached) $ac_c" 1>&6
  5728. else
  5729. if test "$cross_compiling" = yes; then
  5730. ac_cv_c_stack_direction=0
  5731. else
  5732. cat > conftest.$ac_ext <<EOF
  5733. #line 6534 "configure"
  5734. #include "confdefs.h"
  5735. find_stack_direction ()
  5736. {
  5737. static char *addr = 0;
  5738. auto char dummy;
  5739. if (addr == 0)
  5740. {
  5741. addr = &dummy;
  5742. return find_stack_direction ();
  5743. }
  5744. else
  5745. return (&dummy > addr) ? 1 : -1;
  5746. }
  5747. main ()
  5748. {
  5749. exit (find_stack_direction() < 0);
  5750. }
  5751. EOF
  5752. if { (eval echo configure:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5753. then
  5754. ac_cv_c_stack_direction=1
  5755. else
  5756. echo "configure: failed program was:" >&5
  5757. cat conftest.$ac_ext >&5
  5758. rm -fr conftest*
  5759. ac_cv_c_stack_direction=-1
  5760. fi
  5761. rm -fr conftest*
  5762. fi
  5763. fi
  5764. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  5765. cat >> confdefs.h <<EOF
  5766. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5767. EOF
  5768. fi
  5769. for ac_prog in perl
  5770. do
  5771. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5772. set dummy $ac_prog; ac_word=$2
  5773. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5774. echo "configure:6580: checking for $ac_word" >&5
  5775. if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
  5776. echo $ac_n "(cached) $ac_c" 1>&6
  5777. else
  5778. if test -n "$PERL"; then
  5779. ac_cv_prog_PERL="$PERL" # Let the user override the test.
  5780. else
  5781. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5782. ac_dummy="$PATH"
  5783. for ac_dir in $ac_dummy; do
  5784. test -z "$ac_dir" && ac_dir=.
  5785. if test -f $ac_dir/$ac_word; then
  5786. ac_cv_prog_PERL="$ac_prog"
  5787. break
  5788. fi
  5789. done
  5790. IFS="$ac_save_ifs"
  5791. fi
  5792. fi
  5793. PERL="$ac_cv_prog_PERL"
  5794. if test -n "$PERL"; then
  5795. echo "$ac_t""$PERL" 1>&6
  5796. else
  5797. echo "$ac_t""no" 1>&6
  5798. fi
  5799. test -n "$PERL" && break
  5800. done
  5801. test -n "$PERL" || PERL="false"
  5802. SYSDEP_SOURCES=
  5803. case "${host}" in
  5804. i?86-*-linux*)
  5805. SIGNAL_HANDLER=include/i386-signal.h
  5806. ;;
  5807. sparc*-sun-solaris*)
  5808. SIGNAL_HANDLER=include/sparc-signal.h
  5809. ;;
  5810. # ia64-*)
  5811. # SYSDEP_SOURCES=sysdep/ia64.c
  5812. # test -d sysdep || mkdir sysdep
  5813. # ;;
  5814. ia64-*-linux*)
  5815. SIGNAL_HANDLER=include/dwarf2-signal.h
  5816. ;;
  5817. powerpc-*-linux*)
  5818. SIGNAL_HANDLER=include/powerpc-signal.h
  5819. ;;
  5820. alpha*-*-linux*)
  5821. SIGNAL_HANDLER=include/dwarf2-signal.h
  5822. ;;
  5823. s390*-*-linux*)
  5824. SIGNAL_HANDLER=include/s390-signal.h
  5825. ;;
  5826. x86_64*-*-linux*)
  5827. SIGNAL_HANDLER=include/x86_64-signal.h
  5828. ;;
  5829. sparc*-*-linux*)
  5830. SIGNAL_HANDLER=include/dwarf2-signal.h
  5831. ;;
  5832. *mingw*)
  5833. SIGNAL_HANDLER=include/win32-signal.h
  5834. ;;
  5835. *)
  5836. SIGNAL_HANDLER=include/default-signal.h
  5837. ;;
  5838. esac
  5839. # If we're using sjlj exceptions, forget what we just learned.
  5840. if test "$enable_sjlj_exceptions" = yes; then
  5841. SIGNAL_HANDLER=include/default-signal.h
  5842. fi
  5843. # Define here any compiler flags that you need in order to make backtrace() work.
  5844. BACKTRACESPEC=
  5845. case "${host}" in
  5846. x86_64*-*-linux*)
  5847. BACKTRACESPEC=-fno-omit-frame-pointer
  5848. ;;
  5849. esac
  5850. if test "${multilib}" = "yes"; then
  5851. multilib_arg="--enable-multilib"
  5852. else
  5853. multilib_arg=
  5854. fi
  5855. # If we find X, set shell vars x_includes and x_libraries to the
  5856. # paths, otherwise set no_x=yes.
  5857. # Uses ac_ vars as temps to allow command line to override cache and checks.
  5858. # --without-x overrides everything else, but does not touch the cache.
  5859. echo $ac_n "checking for X""... $ac_c" 1>&6
  5860. echo "configure:6679: checking for X" >&5
  5861. # Check whether --with-x or --without-x was given.
  5862. if test "${with_x+set}" = set; then
  5863. withval="$with_x"
  5864. :
  5865. fi
  5866. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  5867. if test "x$with_x" = xno; then
  5868. # The user explicitly disabled X.
  5869. have_x=disabled
  5870. else
  5871. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  5872. # Both variables are already set.
  5873. have_x=yes
  5874. else
  5875. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  5876. echo $ac_n "(cached) $ac_c" 1>&6
  5877. else
  5878. # One or both of the vars are not set, and there is no cached value.
  5879. ac_x_includes=NO ac_x_libraries=NO
  5880. rm -fr conftestdir
  5881. if mkdir conftestdir; then
  5882. cd conftestdir
  5883. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  5884. cat > Imakefile <<'EOF'
  5885. acfindx:
  5886. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  5887. EOF
  5888. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  5889. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  5890. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  5891. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  5892. for ac_extension in a so sl; do
  5893. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  5894. test -f $ac_im_libdir/libX11.$ac_extension; then
  5895. ac_im_usrlibdir=$ac_im_libdir; break
  5896. fi
  5897. done
  5898. # Screen out bogus values from the imake configuration. They are
  5899. # bogus both because they are the default anyway, and because
  5900. # using them would break gcc on systems where it needs fixed includes.
  5901. case "$ac_im_incroot" in
  5902. /usr/include) ;;
  5903. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  5904. esac
  5905. case "$ac_im_usrlibdir" in
  5906. /usr/lib | /lib) ;;
  5907. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  5908. esac
  5909. fi
  5910. cd ..
  5911. rm -fr conftestdir
  5912. fi
  5913. if test "$ac_x_includes" = NO; then
  5914. # Guess where to find include files, by looking for this one X11 .h file.
  5915. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  5916. # First, try using that file with no special directory specified.
  5917. cat > conftest.$ac_ext <<EOF
  5918. #line 6741 "configure"
  5919. #include "confdefs.h"
  5920. #include <$x_direct_test_include>
  5921. EOF
  5922. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5923. { (eval echo configure:6746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5924. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5925. if test -z "$ac_err"; then
  5926. rm -rf conftest*
  5927. # We can compile using X headers with no special include directory.
  5928. ac_x_includes=
  5929. else
  5930. echo "$ac_err" >&5
  5931. echo "configure: failed program was:" >&5
  5932. cat conftest.$ac_ext >&5
  5933. rm -rf conftest*
  5934. # Look for the header file in a standard set of common directories.
  5935. # Check X11 before X11Rn because it is often a symlink to the current release.
  5936. for ac_dir in \
  5937. /usr/X11/include \
  5938. /usr/X11R6/include \
  5939. /usr/X11R5/include \
  5940. /usr/X11R4/include \
  5941. \
  5942. /usr/include/X11 \
  5943. /usr/include/X11R6 \
  5944. /usr/include/X11R5 \
  5945. /usr/include/X11R4 \
  5946. \
  5947. /usr/local/X11/include \
  5948. /usr/local/X11R6/include \
  5949. /usr/local/X11R5/include \
  5950. /usr/local/X11R4/include \
  5951. \
  5952. /usr/local/include/X11 \
  5953. /usr/local/include/X11R6 \
  5954. /usr/local/include/X11R5 \
  5955. /usr/local/include/X11R4 \
  5956. \
  5957. /usr/X386/include \
  5958. /usr/x386/include \
  5959. /usr/XFree86/include/X11 \
  5960. \
  5961. /usr/include \
  5962. /usr/local/include \
  5963. /usr/unsupported/include \
  5964. /usr/athena/include \
  5965. /usr/local/x11r5/include \
  5966. /usr/lpp/Xamples/include \
  5967. \
  5968. /usr/openwin/include \
  5969. /usr/openwin/share/include \
  5970. ; \
  5971. do
  5972. if test -r "$ac_dir/$x_direct_test_include"; then
  5973. ac_x_includes=$ac_dir
  5974. break
  5975. fi
  5976. done
  5977. fi
  5978. rm -f conftest*
  5979. fi # $ac_x_includes = NO
  5980. if test "$ac_x_libraries" = NO; then
  5981. # Check for the libraries.
  5982. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  5983. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  5984. # See if we find them without any special options.
  5985. # Don't add to $LIBS permanently.
  5986. ac_save_LIBS="$LIBS"
  5987. LIBS="-l$x_direct_test_library $LIBS"
  5988. cat > conftest.$ac_ext <<EOF
  5989. #line 6815 "configure"
  5990. #include "confdefs.h"
  5991. int main() {
  5992. ${x_direct_test_function}()
  5993. ; return 0; }
  5994. EOF
  5995. if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5996. rm -rf conftest*
  5997. LIBS="$ac_save_LIBS"
  5998. # We can link X programs with no special library path.
  5999. ac_x_libraries=
  6000. else
  6001. echo "configure: failed program was:" >&5
  6002. cat conftest.$ac_ext >&5
  6003. rm -rf conftest*
  6004. LIBS="$ac_save_LIBS"
  6005. # First see if replacing the include by lib works.
  6006. # Check X11 before X11Rn because it is often a symlink to the current release.
  6007. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  6008. /usr/X11/lib \
  6009. /usr/X11R6/lib \
  6010. /usr/X11R5/lib \
  6011. /usr/X11R4/lib \
  6012. \
  6013. /usr/lib/X11 \
  6014. /usr/lib/X11R6 \
  6015. /usr/lib/X11R5 \
  6016. /usr/lib/X11R4 \
  6017. \
  6018. /usr/local/X11/lib \
  6019. /usr/local/X11R6/lib \
  6020. /usr/local/X11R5/lib \
  6021. /usr/local/X11R4/lib \
  6022. \
  6023. /usr/local/lib/X11 \
  6024. /usr/local/lib/X11R6 \
  6025. /usr/local/lib/X11R5 \
  6026. /usr/local/lib/X11R4 \
  6027. \
  6028. /usr/X386/lib \
  6029. /usr/x386/lib \
  6030. /usr/XFree86/lib/X11 \
  6031. \
  6032. /usr/lib \
  6033. /usr/local/lib \
  6034. /usr/unsupported/lib \
  6035. /usr/athena/lib \
  6036. /usr/local/x11r5/lib \
  6037. /usr/lpp/Xamples/lib \
  6038. /lib/usr/lib/X11 \
  6039. \
  6040. /usr/openwin/lib \
  6041. /usr/openwin/share/lib \
  6042. ; \
  6043. do
  6044. for ac_extension in a so sl; do
  6045. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  6046. ac_x_libraries=$ac_dir
  6047. break 2
  6048. fi
  6049. done
  6050. done
  6051. fi
  6052. rm -f conftest*
  6053. fi # $ac_x_libraries = NO
  6054. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  6055. # Didn't find X anywhere. Cache the known absence of X.
  6056. ac_cv_have_x="have_x=no"
  6057. else
  6058. # Record where we found X for the cache.
  6059. ac_cv_have_x="have_x=yes \
  6060. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  6061. fi
  6062. fi
  6063. fi
  6064. eval "$ac_cv_have_x"
  6065. fi # $with_x != no
  6066. if test "$have_x" != yes; then
  6067. echo "$ac_t""$have_x" 1>&6
  6068. no_x=yes
  6069. else
  6070. # If each of the values was on the command line, it overrides each guess.
  6071. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  6072. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  6073. # Update the cache value to reflect the command line values.
  6074. ac_cv_have_x="have_x=yes \
  6075. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  6076. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  6077. fi
  6078. if test "$no_x" = yes; then
  6079. # Not all programs may use this symbol, but it does not hurt to define it.
  6080. cat >> confdefs.h <<\EOF
  6081. #define X_DISPLAY_MISSING 1
  6082. EOF
  6083. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  6084. else
  6085. if test -n "$x_includes"; then
  6086. X_CFLAGS="$X_CFLAGS -I$x_includes"
  6087. fi
  6088. # It would also be nice to do this for all -L options, not just this one.
  6089. if test -n "$x_libraries"; then
  6090. X_LIBS="$X_LIBS -L$x_libraries"
  6091. # For Solaris; some versions of Sun CC require a space after -R and
  6092. # others require no space. Words are not sufficient . . . .
  6093. case "`(uname -sr) 2>/dev/null`" in
  6094. "SunOS 5"*)
  6095. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  6096. echo "configure:6928: checking whether -R must be followed by a space" >&5
  6097. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  6098. cat > conftest.$ac_ext <<EOF
  6099. #line 6931 "configure"
  6100. #include "confdefs.h"
  6101. int main() {
  6102. ; return 0; }
  6103. EOF
  6104. if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6105. rm -rf conftest*
  6106. ac_R_nospace=yes
  6107. else
  6108. echo "configure: failed program was:" >&5
  6109. cat conftest.$ac_ext >&5
  6110. rm -rf conftest*
  6111. ac_R_nospace=no
  6112. fi
  6113. rm -f conftest*
  6114. if test $ac_R_nospace = yes; then
  6115. echo "$ac_t""no" 1>&6
  6116. X_LIBS="$X_LIBS -R$x_libraries"
  6117. else
  6118. LIBS="$ac_xsave_LIBS -R $x_libraries"
  6119. cat > conftest.$ac_ext <<EOF
  6120. #line 6954 "configure"
  6121. #include "confdefs.h"
  6122. int main() {
  6123. ; return 0; }
  6124. EOF
  6125. if { (eval echo configure:6961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6126. rm -rf conftest*
  6127. ac_R_space=yes
  6128. else
  6129. echo "configure: failed program was:" >&5
  6130. cat conftest.$ac_ext >&5
  6131. rm -rf conftest*
  6132. ac_R_space=no
  6133. fi
  6134. rm -f conftest*
  6135. if test $ac_R_space = yes; then
  6136. echo "$ac_t""yes" 1>&6
  6137. X_LIBS="$X_LIBS -R $x_libraries"
  6138. else
  6139. echo "$ac_t""neither works" 1>&6
  6140. fi
  6141. fi
  6142. LIBS="$ac_xsave_LIBS"
  6143. esac
  6144. fi
  6145. # Check for system-dependent libraries X programs must link with.
  6146. # Do this before checking for the system-independent R6 libraries
  6147. # (-lICE), since we may need -lsocket or whatever for X linking.
  6148. if test "$ISC" = yes; then
  6149. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  6150. else
  6151. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  6152. # libraries were built with DECnet support. And karl@cs.umb.edu says
  6153. # the Alpha needs dnet_stub (dnet does not exist).
  6154. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  6155. echo "configure:6993: checking for dnet_ntoa in -ldnet" >&5
  6156. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  6157. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6158. echo $ac_n "(cached) $ac_c" 1>&6
  6159. else
  6160. ac_save_LIBS="$LIBS"
  6161. LIBS="-ldnet $LIBS"
  6162. cat > conftest.$ac_ext <<EOF
  6163. #line 7001 "configure"
  6164. #include "confdefs.h"
  6165. /* Override any gcc2 internal prototype to avoid an error. */
  6166. /* We use char because int might match the return type of a gcc2
  6167. builtin and then its argument prototype would still apply. */
  6168. char dnet_ntoa();
  6169. int main() {
  6170. dnet_ntoa()
  6171. ; return 0; }
  6172. EOF
  6173. if { (eval echo configure:7012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6174. rm -rf conftest*
  6175. eval "ac_cv_lib_$ac_lib_var=yes"
  6176. else
  6177. echo "configure: failed program was:" >&5
  6178. cat conftest.$ac_ext >&5
  6179. rm -rf conftest*
  6180. eval "ac_cv_lib_$ac_lib_var=no"
  6181. fi
  6182. rm -f conftest*
  6183. LIBS="$ac_save_LIBS"
  6184. fi
  6185. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6186. echo "$ac_t""yes" 1>&6
  6187. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  6188. else
  6189. echo "$ac_t""no" 1>&6
  6190. fi
  6191. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  6192. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  6193. echo "configure:7034: checking for dnet_ntoa in -ldnet_stub" >&5
  6194. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  6195. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6196. echo $ac_n "(cached) $ac_c" 1>&6
  6197. else
  6198. ac_save_LIBS="$LIBS"
  6199. LIBS="-ldnet_stub $LIBS"
  6200. cat > conftest.$ac_ext <<EOF
  6201. #line 7042 "configure"
  6202. #include "confdefs.h"
  6203. /* Override any gcc2 internal prototype to avoid an error. */
  6204. /* We use char because int might match the return type of a gcc2
  6205. builtin and then its argument prototype would still apply. */
  6206. char dnet_ntoa();
  6207. int main() {
  6208. dnet_ntoa()
  6209. ; return 0; }
  6210. EOF
  6211. if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6212. rm -rf conftest*
  6213. eval "ac_cv_lib_$ac_lib_var=yes"
  6214. else
  6215. echo "configure: failed program was:" >&5
  6216. cat conftest.$ac_ext >&5
  6217. rm -rf conftest*
  6218. eval "ac_cv_lib_$ac_lib_var=no"
  6219. fi
  6220. rm -f conftest*
  6221. LIBS="$ac_save_LIBS"
  6222. fi
  6223. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6224. echo "$ac_t""yes" 1>&6
  6225. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  6226. else
  6227. echo "$ac_t""no" 1>&6
  6228. fi
  6229. fi
  6230. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  6231. # to get the SysV transport functions.
  6232. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  6233. # needs -lnsl.
  6234. # The nsl library prevents programs from opening the X display
  6235. # on Irix 5.2, according to dickey@clark.net.
  6236. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  6237. echo "configure:7082: checking for gethostbyname" >&5
  6238. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  6239. echo $ac_n "(cached) $ac_c" 1>&6
  6240. else
  6241. cat > conftest.$ac_ext <<EOF
  6242. #line 7087 "configure"
  6243. #include "confdefs.h"
  6244. /* System header to define __stub macros and hopefully few prototypes,
  6245. which can conflict with char gethostbyname(); below. */
  6246. #include <assert.h>
  6247. /* Override any gcc2 internal prototype to avoid an error. */
  6248. /* We use char because int might match the return type of a gcc2
  6249. builtin and then its argument prototype would still apply. */
  6250. char gethostbyname();
  6251. int main() {
  6252. /* The GNU C library defines this for functions which it implements
  6253. to always fail with ENOSYS. Some functions are actually named
  6254. something starting with __ and the normal name is an alias. */
  6255. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  6256. choke me
  6257. #else
  6258. gethostbyname();
  6259. #endif
  6260. ; return 0; }
  6261. EOF
  6262. if { (eval echo configure:7110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6263. rm -rf conftest*
  6264. eval "ac_cv_func_gethostbyname=yes"
  6265. else
  6266. echo "configure: failed program was:" >&5
  6267. cat conftest.$ac_ext >&5
  6268. rm -rf conftest*
  6269. eval "ac_cv_func_gethostbyname=no"
  6270. fi
  6271. rm -f conftest*
  6272. fi
  6273. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  6274. echo "$ac_t""yes" 1>&6
  6275. :
  6276. else
  6277. echo "$ac_t""no" 1>&6
  6278. fi
  6279. if test $ac_cv_func_gethostbyname = no; then
  6280. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  6281. echo "configure:7131: checking for gethostbyname in -lnsl" >&5
  6282. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  6283. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6284. echo $ac_n "(cached) $ac_c" 1>&6
  6285. else
  6286. ac_save_LIBS="$LIBS"
  6287. LIBS="-lnsl $LIBS"
  6288. cat > conftest.$ac_ext <<EOF
  6289. #line 7139 "configure"
  6290. #include "confdefs.h"
  6291. /* Override any gcc2 internal prototype to avoid an error. */
  6292. /* We use char because int might match the return type of a gcc2
  6293. builtin and then its argument prototype would still apply. */
  6294. char gethostbyname();
  6295. int main() {
  6296. gethostbyname()
  6297. ; return 0; }
  6298. EOF
  6299. if { (eval echo configure:7150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6300. rm -rf conftest*
  6301. eval "ac_cv_lib_$ac_lib_var=yes"
  6302. else
  6303. echo "configure: failed program was:" >&5
  6304. cat conftest.$ac_ext >&5
  6305. rm -rf conftest*
  6306. eval "ac_cv_lib_$ac_lib_var=no"
  6307. fi
  6308. rm -f conftest*
  6309. LIBS="$ac_save_LIBS"
  6310. fi
  6311. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6312. echo "$ac_t""yes" 1>&6
  6313. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  6314. else
  6315. echo "$ac_t""no" 1>&6
  6316. fi
  6317. fi
  6318. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  6319. # socket/setsockopt and other routines are undefined under SCO ODT
  6320. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  6321. # on later versions), says simon@lia.di.epfl.ch: it contains
  6322. # gethostby* variants that don't use the nameserver (or something).
  6323. # -lsocket must be given before -lnsl if both are needed.
  6324. # We assume that if connect needs -lnsl, so does gethostbyname.
  6325. echo $ac_n "checking for connect""... $ac_c" 1>&6
  6326. echo "configure:7180: checking for connect" >&5
  6327. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  6328. echo $ac_n "(cached) $ac_c" 1>&6
  6329. else
  6330. cat > conftest.$ac_ext <<EOF
  6331. #line 7185 "configure"
  6332. #include "confdefs.h"
  6333. /* System header to define __stub macros and hopefully few prototypes,
  6334. which can conflict with char connect(); below. */
  6335. #include <assert.h>
  6336. /* Override any gcc2 internal prototype to avoid an error. */
  6337. /* We use char because int might match the return type of a gcc2
  6338. builtin and then its argument prototype would still apply. */
  6339. char connect();
  6340. int main() {
  6341. /* The GNU C library defines this for functions which it implements
  6342. to always fail with ENOSYS. Some functions are actually named
  6343. something starting with __ and the normal name is an alias. */
  6344. #if defined (__stub_connect) || defined (__stub___connect)
  6345. choke me
  6346. #else
  6347. connect();
  6348. #endif
  6349. ; return 0; }
  6350. EOF
  6351. if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6352. rm -rf conftest*
  6353. eval "ac_cv_func_connect=yes"
  6354. else
  6355. echo "configure: failed program was:" >&5
  6356. cat conftest.$ac_ext >&5
  6357. rm -rf conftest*
  6358. eval "ac_cv_func_connect=no"
  6359. fi
  6360. rm -f conftest*
  6361. fi
  6362. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  6363. echo "$ac_t""yes" 1>&6
  6364. :
  6365. else
  6366. echo "$ac_t""no" 1>&6
  6367. fi
  6368. if test $ac_cv_func_connect = no; then
  6369. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  6370. echo "configure:7229: checking for connect in -lsocket" >&5
  6371. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  6372. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6373. echo $ac_n "(cached) $ac_c" 1>&6
  6374. else
  6375. ac_save_LIBS="$LIBS"
  6376. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  6377. cat > conftest.$ac_ext <<EOF
  6378. #line 7237 "configure"
  6379. #include "confdefs.h"
  6380. /* Override any gcc2 internal prototype to avoid an error. */
  6381. /* We use char because int might match the return type of a gcc2
  6382. builtin and then its argument prototype would still apply. */
  6383. char connect();
  6384. int main() {
  6385. connect()
  6386. ; return 0; }
  6387. EOF
  6388. if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6389. rm -rf conftest*
  6390. eval "ac_cv_lib_$ac_lib_var=yes"
  6391. else
  6392. echo "configure: failed program was:" >&5
  6393. cat conftest.$ac_ext >&5
  6394. rm -rf conftest*
  6395. eval "ac_cv_lib_$ac_lib_var=no"
  6396. fi
  6397. rm -f conftest*
  6398. LIBS="$ac_save_LIBS"
  6399. fi
  6400. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6401. echo "$ac_t""yes" 1>&6
  6402. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  6403. else
  6404. echo "$ac_t""no" 1>&6
  6405. fi
  6406. fi
  6407. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  6408. echo $ac_n "checking for remove""... $ac_c" 1>&6
  6409. echo "configure:7272: checking for remove" >&5
  6410. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  6411. echo $ac_n "(cached) $ac_c" 1>&6
  6412. else
  6413. cat > conftest.$ac_ext <<EOF
  6414. #line 7277 "configure"
  6415. #include "confdefs.h"
  6416. /* System header to define __stub macros and hopefully few prototypes,
  6417. which can conflict with char remove(); below. */
  6418. #include <assert.h>
  6419. /* Override any gcc2 internal prototype to avoid an error. */
  6420. /* We use char because int might match the return type of a gcc2
  6421. builtin and then its argument prototype would still apply. */
  6422. char remove();
  6423. int main() {
  6424. /* The GNU C library defines this for functions which it implements
  6425. to always fail with ENOSYS. Some functions are actually named
  6426. something starting with __ and the normal name is an alias. */
  6427. #if defined (__stub_remove) || defined (__stub___remove)
  6428. choke me
  6429. #else
  6430. remove();
  6431. #endif
  6432. ; return 0; }
  6433. EOF
  6434. if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6435. rm -rf conftest*
  6436. eval "ac_cv_func_remove=yes"
  6437. else
  6438. echo "configure: failed program was:" >&5
  6439. cat conftest.$ac_ext >&5
  6440. rm -rf conftest*
  6441. eval "ac_cv_func_remove=no"
  6442. fi
  6443. rm -f conftest*
  6444. fi
  6445. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  6446. echo "$ac_t""yes" 1>&6
  6447. :
  6448. else
  6449. echo "$ac_t""no" 1>&6
  6450. fi
  6451. if test $ac_cv_func_remove = no; then
  6452. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  6453. echo "configure:7321: checking for remove in -lposix" >&5
  6454. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  6455. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6456. echo $ac_n "(cached) $ac_c" 1>&6
  6457. else
  6458. ac_save_LIBS="$LIBS"
  6459. LIBS="-lposix $LIBS"
  6460. cat > conftest.$ac_ext <<EOF
  6461. #line 7329 "configure"
  6462. #include "confdefs.h"
  6463. /* Override any gcc2 internal prototype to avoid an error. */
  6464. /* We use char because int might match the return type of a gcc2
  6465. builtin and then its argument prototype would still apply. */
  6466. char remove();
  6467. int main() {
  6468. remove()
  6469. ; return 0; }
  6470. EOF
  6471. if { (eval echo configure:7340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6472. rm -rf conftest*
  6473. eval "ac_cv_lib_$ac_lib_var=yes"
  6474. else
  6475. echo "configure: failed program was:" >&5
  6476. cat conftest.$ac_ext >&5
  6477. rm -rf conftest*
  6478. eval "ac_cv_lib_$ac_lib_var=no"
  6479. fi
  6480. rm -f conftest*
  6481. LIBS="$ac_save_LIBS"
  6482. fi
  6483. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6484. echo "$ac_t""yes" 1>&6
  6485. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  6486. else
  6487. echo "$ac_t""no" 1>&6
  6488. fi
  6489. fi
  6490. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  6491. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  6492. echo "configure:7364: checking for shmat" >&5
  6493. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  6494. echo $ac_n "(cached) $ac_c" 1>&6
  6495. else
  6496. cat > conftest.$ac_ext <<EOF
  6497. #line 7369 "configure"
  6498. #include "confdefs.h"
  6499. /* System header to define __stub macros and hopefully few prototypes,
  6500. which can conflict with char shmat(); below. */
  6501. #include <assert.h>
  6502. /* Override any gcc2 internal prototype to avoid an error. */
  6503. /* We use char because int might match the return type of a gcc2
  6504. builtin and then its argument prototype would still apply. */
  6505. char shmat();
  6506. int main() {
  6507. /* The GNU C library defines this for functions which it implements
  6508. to always fail with ENOSYS. Some functions are actually named
  6509. something starting with __ and the normal name is an alias. */
  6510. #if defined (__stub_shmat) || defined (__stub___shmat)
  6511. choke me
  6512. #else
  6513. shmat();
  6514. #endif
  6515. ; return 0; }
  6516. EOF
  6517. if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6518. rm -rf conftest*
  6519. eval "ac_cv_func_shmat=yes"
  6520. else
  6521. echo "configure: failed program was:" >&5
  6522. cat conftest.$ac_ext >&5
  6523. rm -rf conftest*
  6524. eval "ac_cv_func_shmat=no"
  6525. fi
  6526. rm -f conftest*
  6527. fi
  6528. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  6529. echo "$ac_t""yes" 1>&6
  6530. :
  6531. else
  6532. echo "$ac_t""no" 1>&6
  6533. fi
  6534. if test $ac_cv_func_shmat = no; then
  6535. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  6536. echo "configure:7413: checking for shmat in -lipc" >&5
  6537. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  6538. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6539. echo $ac_n "(cached) $ac_c" 1>&6
  6540. else
  6541. ac_save_LIBS="$LIBS"
  6542. LIBS="-lipc $LIBS"
  6543. cat > conftest.$ac_ext <<EOF
  6544. #line 7421 "configure"
  6545. #include "confdefs.h"
  6546. /* Override any gcc2 internal prototype to avoid an error. */
  6547. /* We use char because int might match the return type of a gcc2
  6548. builtin and then its argument prototype would still apply. */
  6549. char shmat();
  6550. int main() {
  6551. shmat()
  6552. ; return 0; }
  6553. EOF
  6554. if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6555. rm -rf conftest*
  6556. eval "ac_cv_lib_$ac_lib_var=yes"
  6557. else
  6558. echo "configure: failed program was:" >&5
  6559. cat conftest.$ac_ext >&5
  6560. rm -rf conftest*
  6561. eval "ac_cv_lib_$ac_lib_var=no"
  6562. fi
  6563. rm -f conftest*
  6564. LIBS="$ac_save_LIBS"
  6565. fi
  6566. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6567. echo "$ac_t""yes" 1>&6
  6568. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  6569. else
  6570. echo "$ac_t""no" 1>&6
  6571. fi
  6572. fi
  6573. fi
  6574. # Check for libraries that X11R6 Xt/Xaw programs need.
  6575. ac_save_LDFLAGS="$LDFLAGS"
  6576. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  6577. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  6578. # check for ICE first), but we must link in the order -lSM -lICE or
  6579. # we get undefined symbols. So assume we have SM if we have ICE.
  6580. # These have to be linked with before -lX11, unlike the other
  6581. # libraries we check for below, so use a different variable.
  6582. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  6583. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  6584. echo "configure:7465: checking for IceConnectionNumber in -lICE" >&5
  6585. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  6586. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6587. echo $ac_n "(cached) $ac_c" 1>&6
  6588. else
  6589. ac_save_LIBS="$LIBS"
  6590. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  6591. cat > conftest.$ac_ext <<EOF
  6592. #line 7473 "configure"
  6593. #include "confdefs.h"
  6594. /* Override any gcc2 internal prototype to avoid an error. */
  6595. /* We use char because int might match the return type of a gcc2
  6596. builtin and then its argument prototype would still apply. */
  6597. char IceConnectionNumber();
  6598. int main() {
  6599. IceConnectionNumber()
  6600. ; return 0; }
  6601. EOF
  6602. if { (eval echo configure:7484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6603. rm -rf conftest*
  6604. eval "ac_cv_lib_$ac_lib_var=yes"
  6605. else
  6606. echo "configure: failed program was:" >&5
  6607. cat conftest.$ac_ext >&5
  6608. rm -rf conftest*
  6609. eval "ac_cv_lib_$ac_lib_var=no"
  6610. fi
  6611. rm -f conftest*
  6612. LIBS="$ac_save_LIBS"
  6613. fi
  6614. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6615. echo "$ac_t""yes" 1>&6
  6616. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  6617. else
  6618. echo "$ac_t""no" 1>&6
  6619. fi
  6620. LDFLAGS="$ac_save_LDFLAGS"
  6621. fi
  6622. # Check whether --enable-java-awt or --disable-java-awt was given.
  6623. if test "${enable_java_awt+set}" = set; then
  6624. enableval="$enable_java_awt"
  6625. :
  6626. fi
  6627. peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
  6628. use_xlib_awt=""
  6629. use_gtk_awt=""
  6630. for peer in $peerlibs ; do
  6631. case $peer in
  6632. xlib)
  6633. if test "$no_x" = yes; then
  6634. echo "*** xlib peers requested but no X library available" 1>&2
  6635. exit 1
  6636. else
  6637. use_xlib_awt="yes"
  6638. fi
  6639. ;;
  6640. gtk)
  6641. # Nothing, yet...
  6642. ;;
  6643. no)
  6644. use_xlib_awt=
  6645. use_gtk_awt=
  6646. break
  6647. ;;
  6648. *)
  6649. echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
  6650. exit 1
  6651. esac
  6652. done
  6653. if test "$use_xlib_awt" = yes; then
  6654. XLIB_AWT_TRUE=
  6655. XLIB_AWT_FALSE='#'
  6656. else
  6657. XLIB_AWT_TRUE='#'
  6658. XLIB_AWT_FALSE=
  6659. fi
  6660. if test "$use_gtk_awt" = yes; then
  6661. GTK_AWT_TRUE=
  6662. GTK_AWT_FALSE='#'
  6663. else
  6664. GTK_AWT_TRUE='#'
  6665. GTK_AWT_FALSE=
  6666. fi
  6667. here=`${PWDCMD-pwd}`
  6668. # We get this from the environment.
  6669. trap '' 1 2 15
  6670. cat > confcache <<\EOF
  6671. # This file is a shell script that caches the results of configure
  6672. # tests run on this system so they can be shared between configure
  6673. # scripts and configure runs. It is not useful on other systems.
  6674. # If it contains results you don't want to keep, you may remove or edit it.
  6675. #
  6676. # By default, configure uses ./config.cache as the cache file,
  6677. # creating it if it does not exist already. You can give configure
  6678. # the --cache-file=FILE option to use a different cache file; that is
  6679. # what configure does when it calls configure scripts in
  6680. # subdirectories, so they share the cache.
  6681. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  6682. # config.status only pays attention to the cache file if you give it the
  6683. # --recheck option to rerun configure.
  6684. #
  6685. EOF
  6686. # The following way of writing the cache mishandles newlines in values,
  6687. # but we know of no workaround that is simple, portable, and efficient.
  6688. # So, don't put newlines in cache variables' values.
  6689. # Ultrix sh set writes to stderr and can't be redirected directly,
  6690. # and sets the high bit in the cache file unless we assign to the vars.
  6691. (set) 2>&1 |
  6692. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6693. *ac_space=\ *)
  6694. # `set' does not quote correctly, so add quotes (double-quote substitution
  6695. # turns \\\\ into \\, and sed turns \\ into \).
  6696. sed -n \
  6697. -e "s/'/'\\\\''/g" \
  6698. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  6699. ;;
  6700. *)
  6701. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6702. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  6703. ;;
  6704. esac >> confcache
  6705. if cmp -s $cache_file confcache; then
  6706. :
  6707. else
  6708. if test -w $cache_file; then
  6709. echo "updating cache $cache_file"
  6710. cat confcache > $cache_file
  6711. else
  6712. echo "not updating unwritable cache $cache_file"
  6713. fi
  6714. fi
  6715. rm -f confcache
  6716. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  6717. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6718. # Let make expand exec_prefix.
  6719. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6720. # Any assignment to VPATH causes Sun make to only execute
  6721. # the first set of double-colon rules, so remove it if not needed.
  6722. # If there is a colon in the path, we need to keep it.
  6723. if test "x$srcdir" = x.; then
  6724. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  6725. fi
  6726. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  6727. DEFS=-DHAVE_CONFIG_H
  6728. # Without the "./", some shells look in PATH for config.status.
  6729. : ${CONFIG_STATUS=./config.status}
  6730. echo creating $CONFIG_STATUS
  6731. rm -f $CONFIG_STATUS
  6732. cat > $CONFIG_STATUS <<EOF
  6733. #! /bin/sh
  6734. # Generated automatically by configure.
  6735. # Run this file to recreate the current configuration.
  6736. # This directory was configured as follows,
  6737. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6738. #
  6739. # $0 $ac_configure_args
  6740. #
  6741. # Compiler output produced by configure, useful for debugging
  6742. # configure, is in ./config.log if it exists.
  6743. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  6744. for ac_option
  6745. do
  6746. case "\$ac_option" in
  6747. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6748. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  6749. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  6750. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  6751. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  6752. exit 0 ;;
  6753. -help | --help | --hel | --he | --h)
  6754. echo "\$ac_cs_usage"; exit 0 ;;
  6755. *) echo "\$ac_cs_usage"; exit 1 ;;
  6756. esac
  6757. done
  6758. ac_given_srcdir=$srcdir
  6759. ac_given_INSTALL="$INSTALL"
  6760. trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  6761. EOF
  6762. cat >> $CONFIG_STATUS <<EOF
  6763. # Protect against being on the right side of a sed subst in config.status.
  6764. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  6765. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  6766. $ac_vpsub
  6767. $extrasub
  6768. s%@SHELL@%$SHELL%g
  6769. s%@CFLAGS@%$CFLAGS%g
  6770. s%@CPPFLAGS@%$CPPFLAGS%g
  6771. s%@CXXFLAGS@%$CXXFLAGS%g
  6772. s%@FFLAGS@%$FFLAGS%g
  6773. s%@DEFS@%$DEFS%g
  6774. s%@LDFLAGS@%$LDFLAGS%g
  6775. s%@LIBS@%$LIBS%g
  6776. s%@exec_prefix@%$exec_prefix%g
  6777. s%@prefix@%$prefix%g
  6778. s%@program_transform_name@%$program_transform_name%g
  6779. s%@bindir@%$bindir%g
  6780. s%@sbindir@%$sbindir%g
  6781. s%@libexecdir@%$libexecdir%g
  6782. s%@datadir@%$datadir%g
  6783. s%@sysconfdir@%$sysconfdir%g
  6784. s%@sharedstatedir@%$sharedstatedir%g
  6785. s%@localstatedir@%$localstatedir%g
  6786. s%@libdir@%$libdir%g
  6787. s%@includedir@%$includedir%g
  6788. s%@oldincludedir@%$oldincludedir%g
  6789. s%@infodir@%$infodir%g
  6790. s%@mandir@%$mandir%g
  6791. s%@LN_S@%$LN_S%g
  6792. s%@libgcj_basedir@%$libgcj_basedir%g
  6793. s%@mkinstalldirs@%$mkinstalldirs%g
  6794. s%@host@%$host%g
  6795. s%@host_alias@%$host_alias%g
  6796. s%@host_cpu@%$host_cpu%g
  6797. s%@host_vendor@%$host_vendor%g
  6798. s%@host_os@%$host_os%g
  6799. s%@target@%$target%g
  6800. s%@target_alias@%$target_alias%g
  6801. s%@target_cpu@%$target_cpu%g
  6802. s%@target_vendor@%$target_vendor%g
  6803. s%@target_os@%$target_os%g
  6804. s%@build@%$build%g
  6805. s%@build_alias@%$build_alias%g
  6806. s%@build_cpu@%$build_cpu%g
  6807. s%@build_vendor@%$build_vendor%g
  6808. s%@build_os@%$build_os%g
  6809. s%@CC@%$CC%g
  6810. s%@glibjava_CXX@%$glibjava_CXX%g
  6811. s%@CXX@%$CXX%g
  6812. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  6813. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  6814. s%@INSTALL_DATA@%$INSTALL_DATA%g
  6815. s%@PACKAGE@%$PACKAGE%g
  6816. s%@VERSION@%$VERSION%g
  6817. s%@ACLOCAL@%$ACLOCAL%g
  6818. s%@AUTOCONF@%$AUTOCONF%g
  6819. s%@AUTOMAKE@%$AUTOMAKE%g
  6820. s%@AUTOHEADER@%$AUTOHEADER%g
  6821. s%@MAKEINFO@%$MAKEINFO%g
  6822. s%@SET_MAKE@%$SET_MAKE%g
  6823. s%@AS@%$AS%g
  6824. s%@AR@%$AR%g
  6825. s%@RANLIB@%$RANLIB%g
  6826. s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
  6827. s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
  6828. s%@MAINT@%$MAINT%g
  6829. s%@EXEEXT@%$EXEEXT%g
  6830. s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
  6831. s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
  6832. s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
  6833. s%@INCLTDL@%$INCLTDL%g
  6834. s%@LIBLTDL@%$LIBLTDL%g
  6835. s%@DIRLTDL@%$DIRLTDL%g
  6836. s%@OBJEXT@%$OBJEXT%g
  6837. s%@STRIP@%$STRIP%g
  6838. s%@LIBTOOL@%$LIBTOOL%g
  6839. s%@CXXCPP@%$CXXCPP%g
  6840. s%@subdirs@%$subdirs%g
  6841. s%@COMPPATH@%$COMPPATH%g
  6842. s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
  6843. s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
  6844. s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
  6845. s%@INTERPRETER@%$INTERPRETER%g
  6846. s%@LIBFFI@%$LIBFFI%g
  6847. s%@LIBFFIINCS@%$LIBFFIINCS%g
  6848. s%@PLATFORMOBJS@%$PLATFORMOBJS%g
  6849. s%@CPP@%$CPP%g
  6850. s%@SYSTEMSPEC@%$SYSTEMSPEC%g
  6851. s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
  6852. s%@ZLIBSPEC@%$ZLIBSPEC%g
  6853. s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
  6854. s%@GCLIBS@%$GCLIBS%g
  6855. s%@GCINCS@%$GCINCS%g
  6856. s%@GCDEPS@%$GCDEPS%g
  6857. s%@GCOBJS@%$GCOBJS%g
  6858. s%@GCSPEC@%$GCSPEC%g
  6859. s%@JC1GCSPEC@%$JC1GCSPEC%g
  6860. s%@GCTESTSPEC@%$GCTESTSPEC%g
  6861. s%@THREADLIBS@%$THREADLIBS%g
  6862. s%@THREADINCS@%$THREADINCS%g
  6863. s%@THREADDEPS@%$THREADDEPS%g
  6864. s%@THREADOBJS@%$THREADOBJS%g
  6865. s%@THREADSPEC@%$THREADSPEC%g
  6866. s%@THREADLDFLAGS@%$THREADLDFLAGS%g
  6867. s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
  6868. s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
  6869. s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
  6870. s%@tool_include_dir@%$tool_include_dir%g
  6871. s%@gcc_version@%$gcc_version%g
  6872. s%@LIBICONV@%$LIBICONV%g
  6873. s%@GCJ@%$GCJ%g
  6874. s%@GCJFLAGS@%$GCJFLAGS%g
  6875. s%@ZLIBS@%$ZLIBS%g
  6876. s%@SYS_ZLIBS@%$SYS_ZLIBS%g
  6877. s%@ZINCS@%$ZINCS%g
  6878. s%@DIVIDESPEC@%$DIVIDESPEC%g
  6879. s%@CHECKREFSPEC@%$CHECKREFSPEC%g
  6880. s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
  6881. s%@IEEESPEC@%$IEEESPEC%g
  6882. s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
  6883. s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
  6884. s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
  6885. s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
  6886. s%@NATIVE_TRUE@%$NATIVE_TRUE%g
  6887. s%@NATIVE_FALSE@%$NATIVE_FALSE%g
  6888. s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
  6889. s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
  6890. s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
  6891. s%@toolexecdir@%$toolexecdir%g
  6892. s%@toolexecmainlibdir@%$toolexecmainlibdir%g
  6893. s%@toolexeclibdir@%$toolexeclibdir%g
  6894. s%@GCJVERSION@%$GCJVERSION%g
  6895. s%@ALLOCA@%$ALLOCA%g
  6896. s%@PERL@%$PERL%g
  6897. s%@BACKTRACESPEC@%$BACKTRACESPEC%g
  6898. s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
  6899. s%@X_CFLAGS@%$X_CFLAGS%g
  6900. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  6901. s%@X_LIBS@%$X_LIBS%g
  6902. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  6903. s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
  6904. s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
  6905. s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
  6906. s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
  6907. s%@here@%$here%g
  6908. CEOF
  6909. EOF
  6910. cat >> $CONFIG_STATUS <<\EOF
  6911. # Split the substitutions into bite-sized pieces for seds with
  6912. # small command number limits, like on Digital OSF/1 and HP-UX.
  6913. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  6914. ac_file=1 # Number of current file.
  6915. ac_beg=1 # First line for current file.
  6916. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  6917. ac_more_lines=:
  6918. ac_sed_cmds=""
  6919. while $ac_more_lines; do
  6920. if test $ac_beg -gt 1; then
  6921. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  6922. else
  6923. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  6924. fi
  6925. if test ! -s conftest.s$ac_file; then
  6926. ac_more_lines=false
  6927. rm -f conftest.s$ac_file
  6928. else
  6929. if test -z "$ac_sed_cmds"; then
  6930. ac_sed_cmds="sed -f conftest.s$ac_file"
  6931. else
  6932. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  6933. fi
  6934. ac_file=`expr $ac_file + 1`
  6935. ac_beg=$ac_end
  6936. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  6937. fi
  6938. done
  6939. if test -z "$ac_sed_cmds"; then
  6940. ac_sed_cmds=cat
  6941. fi
  6942. EOF
  6943. cat >> $CONFIG_STATUS <<EOF
  6944. CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
  6945. EOF
  6946. cat >> $CONFIG_STATUS <<\EOF
  6947. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  6948. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6949. case "$ac_file" in
  6950. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6951. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6952. *) ac_file_in="${ac_file}.in" ;;
  6953. esac
  6954. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  6955. # Remove last slash and all that follows it. Not all systems have dirname.
  6956. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6957. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6958. # The file is in a subdirectory.
  6959. test ! -d "$ac_dir" && mkdir "$ac_dir"
  6960. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  6961. # A "../" for each directory in $ac_dir_suffix.
  6962. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  6963. else
  6964. ac_dir_suffix= ac_dots=
  6965. fi
  6966. case "$ac_given_srcdir" in
  6967. .) srcdir=.
  6968. if test -z "$ac_dots"; then top_srcdir=.
  6969. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  6970. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  6971. *) # Relative path.
  6972. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  6973. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  6974. esac
  6975. case "$ac_given_INSTALL" in
  6976. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  6977. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  6978. esac
  6979. echo creating "$ac_file"
  6980. rm -f "$ac_file"
  6981. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  6982. case "$ac_file" in
  6983. *Makefile*) ac_comsub="1i\\
  6984. # $configure_input" ;;
  6985. *) ac_comsub= ;;
  6986. esac
  6987. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6988. sed -e "$ac_comsub
  6989. s%@configure_input@%$configure_input%g
  6990. s%@srcdir@%$srcdir%g
  6991. s%@top_srcdir@%$top_srcdir%g
  6992. s%@INSTALL@%$INSTALL%g
  6993. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  6994. fi; done
  6995. rm -f conftest.s*
  6996. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  6997. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  6998. #
  6999. # ac_d sets the value in "#define NAME VALUE" lines.
  7000. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  7001. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  7002. ac_dC='\3'
  7003. ac_dD='%g'
  7004. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  7005. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  7006. ac_uB='\([ ]\)%\1#\2define\3'
  7007. ac_uC=' '
  7008. ac_uD='\4%g'
  7009. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  7010. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  7011. ac_eB='$%\1#\2define\3'
  7012. ac_eC=' '
  7013. ac_eD='%g'
  7014. if test "${CONFIG_HEADERS+set}" != set; then
  7015. EOF
  7016. cat >> $CONFIG_STATUS <<EOF
  7017. CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
  7018. EOF
  7019. cat >> $CONFIG_STATUS <<\EOF
  7020. fi
  7021. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  7022. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  7023. case "$ac_file" in
  7024. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  7025. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  7026. *) ac_file_in="${ac_file}.in" ;;
  7027. esac
  7028. echo creating $ac_file
  7029. rm -f conftest.frag conftest.in conftest.out
  7030. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  7031. cat $ac_file_inputs > conftest.in
  7032. EOF
  7033. # Transform confdefs.h into a sed script conftest.vals that substitutes
  7034. # the proper values into config.h.in to produce config.h. And first:
  7035. # Protect against being on the right side of a sed subst in config.status.
  7036. # Protect against being in an unquoted here document in config.status.
  7037. rm -f conftest.vals
  7038. cat > conftest.hdr <<\EOF
  7039. s/[\\&%]/\\&/g
  7040. s%[\\$`]%\\&%g
  7041. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  7042. s%ac_d%ac_u%gp
  7043. s%ac_u%ac_e%gp
  7044. EOF
  7045. sed -n -f conftest.hdr confdefs.h > conftest.vals
  7046. rm -f conftest.hdr
  7047. # This sed command replaces #undef with comments. This is necessary, for
  7048. # example, in the case of _POSIX_SOURCE, which is predefined and required
  7049. # on some systems where configure will not decide to define it.
  7050. cat >> conftest.vals <<\EOF
  7051. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  7052. EOF
  7053. # Break up conftest.vals because some shells have a limit on
  7054. # the size of here documents, and old seds have small limits too.
  7055. rm -f conftest.tail
  7056. while :
  7057. do
  7058. ac_lines=`grep -c . conftest.vals`
  7059. # grep -c gives empty output for an empty file on some AIX systems.
  7060. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  7061. # Write a limited-size here document to conftest.frag.
  7062. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  7063. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  7064. echo 'CEOF
  7065. sed -f conftest.frag conftest.in > conftest.out
  7066. rm -f conftest.in
  7067. mv conftest.out conftest.in
  7068. ' >> $CONFIG_STATUS
  7069. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  7070. rm -f conftest.vals
  7071. mv conftest.tail conftest.vals
  7072. done
  7073. rm -f conftest.vals
  7074. cat >> $CONFIG_STATUS <<\EOF
  7075. rm -f conftest.frag conftest.h
  7076. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  7077. cat conftest.in >> conftest.h
  7078. rm -f conftest.in
  7079. if cmp -s $ac_file conftest.h 2>/dev/null; then
  7080. echo "$ac_file is unchanged"
  7081. rm -f conftest.h
  7082. else
  7083. # Remove last slash and all that follows it. Not all systems have dirname.
  7084. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  7085. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  7086. # The file is in a subdirectory.
  7087. test ! -d "$ac_dir" && mkdir "$ac_dir"
  7088. fi
  7089. rm -f $ac_file
  7090. mv conftest.h $ac_file
  7091. fi
  7092. fi; done
  7093. EOF
  7094. cat >> $CONFIG_STATUS <<EOF
  7095. ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
  7096. ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h"
  7097. EOF
  7098. cat >> $CONFIG_STATUS <<\EOF
  7099. srcdir=$ac_given_srcdir
  7100. while test -n "$ac_sources"; do
  7101. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  7102. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  7103. echo "linking $srcdir/$ac_source to $ac_dest"
  7104. if test ! -r $srcdir/$ac_source; then
  7105. { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  7106. fi
  7107. rm -f $ac_dest
  7108. # Make relative symlinks.
  7109. # Remove last slash and all that follows it. Not all systems have dirname.
  7110. ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  7111. if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  7112. # The dest file is in a subdirectory.
  7113. test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  7114. ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  7115. # A "../" for each directory in $ac_dest_dir_suffix.
  7116. ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  7117. else
  7118. ac_dest_dir_suffix= ac_dots=
  7119. fi
  7120. case "$srcdir" in
  7121. [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  7122. *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  7123. esac
  7124. # Make a symlink if possible; otherwise try a hard link.
  7125. if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  7126. ln $srcdir/$ac_source $ac_dest; then :
  7127. else
  7128. { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  7129. fi
  7130. done
  7131. EOF
  7132. cat >> $CONFIG_STATUS <<EOF
  7133. srcdir=${srcdir}
  7134. host=${host}
  7135. target=${target}
  7136. with_multisubdir=${with_multisubdir}
  7137. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  7138. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  7139. libgcj_basedir=${libgcj_basedir}
  7140. CC="${CC}"
  7141. CXX="${CXX}"
  7142. ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
  7143. EOF
  7144. cat >> $CONFIG_STATUS <<\EOF
  7145. am_indx=1
  7146. for am_file in include/config.h gcj/libgcj-config.h; do
  7147. case " $CONFIG_HEADERS " in
  7148. *" $am_file "*)
  7149. echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
  7150. ;;
  7151. esac
  7152. am_indx=`expr "$am_indx" + 1`
  7153. done
  7154. # Only add multilib support code if we just rebuilt top-level Makefile.
  7155. case " $CONFIG_FILES " in
  7156. *" Makefile "*)
  7157. LD="${ORIGINAL_LD_FOR_MULTILIBS}"
  7158. ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
  7159. ;;
  7160. esac
  7161. # Make subdirectories and `.d' files. Look in both srcdir and
  7162. # builddir for the .java files.
  7163. h=`${PWDCMD-pwd}`
  7164. : > deps.mk
  7165. ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
  7166. find . \( -name '*.java' -o -name '*.cc' \) -print) | \
  7167. fgrep -v testsuite | \
  7168. sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
  7169. while read f; do
  7170. echo "include $f" >> deps.mk
  7171. test -f $f || {
  7172. d=`echo $f | sed -e 's,/[^/]*$,,'`
  7173. if test ! -d $d; then
  7174. $libgcj_basedir/../mkinstalldirs $d
  7175. fi;
  7176. echo > $f
  7177. }
  7178. done
  7179. exit 0
  7180. EOF
  7181. chmod +x $CONFIG_STATUS
  7182. rm -fr confdefs* $ac_clean_files
  7183. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  7184. if test "$no_recursion" != yes; then
  7185. # Remove --cache-file and --srcdir arguments so they do not pile up.
  7186. ac_sub_configure_args=
  7187. ac_prev=
  7188. for ac_arg in $ac_configure_args; do
  7189. if test -n "$ac_prev"; then
  7190. ac_prev=
  7191. continue
  7192. fi
  7193. case "$ac_arg" in
  7194. -cache-file | --cache-file | --cache-fil | --cache-fi \
  7195. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  7196. ac_prev=cache_file ;;
  7197. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  7198. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  7199. ;;
  7200. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  7201. ac_prev=srcdir ;;
  7202. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  7203. ;;
  7204. *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  7205. esac
  7206. done
  7207. for ac_config_dir in $DIRLTDL; do
  7208. # Do not complain, so a configure script can configure whichever
  7209. # parts of a large source tree are present.
  7210. if test ! -d $srcdir/$ac_config_dir; then
  7211. continue
  7212. fi
  7213. echo configuring in $ac_config_dir
  7214. case "$srcdir" in
  7215. .) ;;
  7216. *)
  7217. if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
  7218. else
  7219. { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
  7220. fi
  7221. ;;
  7222. esac
  7223. ac_popdir=`pwd`
  7224. cd $ac_config_dir
  7225. # A "../" for each directory in /$ac_config_dir.
  7226. ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
  7227. case "$srcdir" in
  7228. .) # No --srcdir option. We are building in place.
  7229. ac_sub_srcdir=$srcdir ;;
  7230. /*) # Absolute path.
  7231. ac_sub_srcdir=$srcdir/$ac_config_dir ;;
  7232. *) # Relative path.
  7233. ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
  7234. esac
  7235. # Check for guested configure; otherwise get Cygnus style configure.
  7236. if test -f $ac_sub_srcdir/configure; then
  7237. ac_sub_configure=$ac_sub_srcdir/configure
  7238. elif test -f $ac_sub_srcdir/configure.in; then
  7239. ac_sub_configure=$ac_configure
  7240. else
  7241. echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
  7242. ac_sub_configure=
  7243. fi
  7244. # The recursion is here.
  7245. if test -n "$ac_sub_configure"; then
  7246. # Make the cache file name correct relative to the subdirectory.
  7247. case "$cache_file" in
  7248. /*) ac_sub_cache_file=$cache_file ;;
  7249. *) # Relative path.
  7250. ac_sub_cache_file="$ac_dots$cache_file" ;;
  7251. esac
  7252. case "$ac_given_INSTALL" in
  7253. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  7254. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  7255. esac
  7256. echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
  7257. # The eval makes quoting arguments work.
  7258. if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
  7259. then :
  7260. else
  7261. { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
  7262. fi
  7263. fi
  7264. cd $ac_popdir
  7265. done
  7266. fi