1
0

configure 1.0 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Check that we are running under the correct shell.
  215. SHELL=${CONFIG_SHELL-/bin/sh}
  216. case X$ECHO in
  217. X*--fallback-echo)
  218. # Remove one level of quotation (which was required for Make).
  219. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  220. ;;
  221. esac
  222. echo=${ECHO-echo}
  223. if test "X$1" = X--no-reexec; then
  224. # Discard the --no-reexec flag, and continue.
  225. shift
  226. elif test "X$1" = X--fallback-echo; then
  227. # Avoid inline document here, it may be left over
  228. :
  229. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  230. # Yippee, $echo works!
  231. :
  232. else
  233. # Restart under the correct shell.
  234. exec $SHELL "$0" --no-reexec ${1+"$@"}
  235. fi
  236. if test "X$1" = X--fallback-echo; then
  237. # used as fallback echo
  238. shift
  239. cat <<EOF
  240. $*
  241. EOF
  242. exit 0
  243. fi
  244. # The HP-UX ksh and POSIX shell print the target directory to stdout
  245. # if CDPATH is set.
  246. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  247. if test -z "$ECHO"; then
  248. if test "X${echo_test_string+set}" != Xset; then
  249. # find a string as large as possible, as long as the shell can cope with it
  250. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  251. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  252. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  253. echo_test_string=`eval $cmd` &&
  254. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  255. then
  256. break
  257. fi
  258. done
  259. fi
  260. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  261. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  262. test "X$echo_testing_string" = "X$echo_test_string"; then
  263. :
  264. else
  265. # The Solaris, AIX, and Digital Unix default echo programs unquote
  266. # backslashes. This makes it impossible to quote backslashes using
  267. # echo "$something" | sed 's/\\/\\\\/g'
  268. #
  269. # So, first we look for a working echo in the user's PATH.
  270. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  271. for dir in $PATH /usr/ucb; do
  272. IFS="$lt_save_ifs"
  273. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  274. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  275. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  276. test "X$echo_testing_string" = "X$echo_test_string"; then
  277. echo="$dir/echo"
  278. break
  279. fi
  280. done
  281. IFS="$lt_save_ifs"
  282. if test "X$echo" = Xecho; then
  283. # We didn't find a better echo, so look for alternatives.
  284. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  285. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  286. test "X$echo_testing_string" = "X$echo_test_string"; then
  287. # This shell has a builtin print -r that does the trick.
  288. echo='print -r'
  289. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  290. test "X$CONFIG_SHELL" != X/bin/ksh; then
  291. # If we have ksh, try running configure again with it.
  292. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  293. export ORIGINAL_CONFIG_SHELL
  294. CONFIG_SHELL=/bin/ksh
  295. export CONFIG_SHELL
  296. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  297. else
  298. # Try using printf.
  299. echo='printf %s\n'
  300. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  301. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  302. test "X$echo_testing_string" = "X$echo_test_string"; then
  303. # Cool, printf works
  304. :
  305. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  306. test "X$echo_testing_string" = 'X\t' &&
  307. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  308. test "X$echo_testing_string" = "X$echo_test_string"; then
  309. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  310. export CONFIG_SHELL
  311. SHELL="$CONFIG_SHELL"
  312. export SHELL
  313. echo="$CONFIG_SHELL $0 --fallback-echo"
  314. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  315. test "X$echo_testing_string" = 'X\t' &&
  316. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  317. test "X$echo_testing_string" = "X$echo_test_string"; then
  318. echo="$CONFIG_SHELL $0 --fallback-echo"
  319. else
  320. # maybe with a smaller string...
  321. prev=:
  322. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  323. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  324. then
  325. break
  326. fi
  327. prev="$cmd"
  328. done
  329. if test "$prev" != 'sed 50q "$0"'; then
  330. echo_test_string=`eval $prev`
  331. export echo_test_string
  332. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  333. else
  334. # Oops. We lost completely, so just stick with echo.
  335. echo=echo
  336. fi
  337. fi
  338. fi
  339. fi
  340. fi
  341. fi
  342. # Copy echo and quote the copy suitably for passing to libtool from
  343. # the Makefile, instead of quoting the original, which is used later.
  344. ECHO=$echo
  345. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  346. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  347. fi
  348. tagnames=${tagnames+${tagnames},}CXX
  349. tagnames=${tagnames+${tagnames},}F77
  350. # Name of the host.
  351. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  352. # so uname gets run too.
  353. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  354. exec 6>&1
  355. #
  356. # Initializations.
  357. #
  358. ac_default_prefix=/usr/local
  359. ac_config_libobj_dir=.
  360. cross_compiling=no
  361. subdirs=
  362. MFLAGS=
  363. MAKEFLAGS=
  364. SHELL=${CONFIG_SHELL-/bin/sh}
  365. # Maximum number of lines to put in a shell here document.
  366. # This variable seems obsolete. It should probably be removed, and
  367. # only ac_max_sed_lines should be used.
  368. : ${ac_max_here_lines=38}
  369. # Identity of this package.
  370. PACKAGE_NAME=
  371. PACKAGE_TARNAME=
  372. PACKAGE_VERSION=
  373. PACKAGE_STRING=
  374. PACKAGE_BUGREPORT=
  375. ac_unique_file="tcpreplay"
  376. ac_unique_file="src/tcpreplay.c"
  377. # Factoring default headers for most tests.
  378. ac_includes_default="\
  379. #include <stdio.h>
  380. #if HAVE_SYS_TYPES_H
  381. # include <sys/types.h>
  382. #endif
  383. #if HAVE_SYS_STAT_H
  384. # include <sys/stat.h>
  385. #endif
  386. #if STDC_HEADERS
  387. # include <stdlib.h>
  388. # include <stddef.h>
  389. #else
  390. # if HAVE_STDLIB_H
  391. # include <stdlib.h>
  392. # endif
  393. #endif
  394. #if HAVE_STRING_H
  395. # if !STDC_HEADERS && HAVE_MEMORY_H
  396. # include <memory.h>
  397. # endif
  398. # include <string.h>
  399. #endif
  400. #if HAVE_STRINGS_H
  401. # include <strings.h>
  402. #endif
  403. #if HAVE_INTTYPES_H
  404. # include <inttypes.h>
  405. #else
  406. # if HAVE_STDINT_H
  407. # include <stdint.h>
  408. # endif
  409. #endif
  410. #if HAVE_UNISTD_H
  411. # include <unistd.h>
  412. #endif"
  413. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TCPREPLAY_VERSION TCPREPLAY_RELEASE target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE PRINTF FIG2DEV LYX DVIPS TEXI2DVI LATEX2HTML DVIPDFM AUTOGEN LIBOBJS SYSTEM_STRLCPY_TRUE SYSTEM_STRLCPY_FALSE HAVE_DOCTOOLS_TRUE HAVE_DOCTOOLS_FALSE debug_flag LNETINC LNETLIB LPCAPINC LPCAPLIB PCAP_BPF_H_FILE pcncfg LNAVLIB LNAV_CFLAGS LNIDSINC LNIDSLIB HAVE_LIBNIDS_TRUE HAVE_LIBNIDS_FALSE td nic1 nic2 LIBOPTS_DIR NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS LTLIBOBJS'
  414. ac_subst_files=''
  415. # Initialize some variables set by options.
  416. ac_init_help=
  417. ac_init_version=false
  418. # The variables have the same names as the options, with
  419. # dashes changed to underlines.
  420. cache_file=/dev/null
  421. exec_prefix=NONE
  422. no_create=
  423. no_recursion=
  424. prefix=NONE
  425. program_prefix=NONE
  426. program_suffix=NONE
  427. program_transform_name=s,x,x,
  428. silent=
  429. site=
  430. srcdir=
  431. verbose=
  432. x_includes=NONE
  433. x_libraries=NONE
  434. # Installation directory options.
  435. # These are left unexpanded so users can "make install exec_prefix=/foo"
  436. # and all the variables that are supposed to be based on exec_prefix
  437. # by default will actually change.
  438. # Use braces instead of parens because sh, perl, etc. also accept them.
  439. bindir='${exec_prefix}/bin'
  440. sbindir='${exec_prefix}/sbin'
  441. libexecdir='${exec_prefix}/libexec'
  442. datadir='${prefix}/share'
  443. sysconfdir='${prefix}/etc'
  444. sharedstatedir='${prefix}/com'
  445. localstatedir='${prefix}/var'
  446. libdir='${exec_prefix}/lib'
  447. includedir='${prefix}/include'
  448. oldincludedir='/usr/include'
  449. infodir='${prefix}/info'
  450. mandir='${prefix}/man'
  451. ac_prev=
  452. for ac_option
  453. do
  454. # If the previous option needs an argument, assign it.
  455. if test -n "$ac_prev"; then
  456. eval "$ac_prev=\$ac_option"
  457. ac_prev=
  458. continue
  459. fi
  460. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  461. # Accept the important Cygnus configure options, so we can diagnose typos.
  462. case $ac_option in
  463. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  464. ac_prev=bindir ;;
  465. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  466. bindir=$ac_optarg ;;
  467. -build | --build | --buil | --bui | --bu)
  468. ac_prev=build_alias ;;
  469. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  470. build_alias=$ac_optarg ;;
  471. -cache-file | --cache-file | --cache-fil | --cache-fi \
  472. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  473. ac_prev=cache_file ;;
  474. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  475. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  476. cache_file=$ac_optarg ;;
  477. --config-cache | -C)
  478. cache_file=config.cache ;;
  479. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  480. ac_prev=datadir ;;
  481. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  482. | --da=*)
  483. datadir=$ac_optarg ;;
  484. -disable-* | --disable-*)
  485. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  486. # Reject names that are not valid shell variable names.
  487. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  488. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  489. { (exit 1); exit 1; }; }
  490. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  491. eval "enable_$ac_feature=no" ;;
  492. -enable-* | --enable-*)
  493. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  494. # Reject names that are not valid shell variable names.
  495. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  496. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  497. { (exit 1); exit 1; }; }
  498. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  499. case $ac_option in
  500. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  501. *) ac_optarg=yes ;;
  502. esac
  503. eval "enable_$ac_feature='$ac_optarg'" ;;
  504. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  505. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  506. | --exec | --exe | --ex)
  507. ac_prev=exec_prefix ;;
  508. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  509. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  510. | --exec=* | --exe=* | --ex=*)
  511. exec_prefix=$ac_optarg ;;
  512. -gas | --gas | --ga | --g)
  513. # Obsolete; use --with-gas.
  514. with_gas=yes ;;
  515. -help | --help | --hel | --he | -h)
  516. ac_init_help=long ;;
  517. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  518. ac_init_help=recursive ;;
  519. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  520. ac_init_help=short ;;
  521. -host | --host | --hos | --ho)
  522. ac_prev=host_alias ;;
  523. -host=* | --host=* | --hos=* | --ho=*)
  524. host_alias=$ac_optarg ;;
  525. -includedir | --includedir | --includedi | --included | --include \
  526. | --includ | --inclu | --incl | --inc)
  527. ac_prev=includedir ;;
  528. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  529. | --includ=* | --inclu=* | --incl=* | --inc=*)
  530. includedir=$ac_optarg ;;
  531. -infodir | --infodir | --infodi | --infod | --info | --inf)
  532. ac_prev=infodir ;;
  533. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  534. infodir=$ac_optarg ;;
  535. -libdir | --libdir | --libdi | --libd)
  536. ac_prev=libdir ;;
  537. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  538. libdir=$ac_optarg ;;
  539. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  540. | --libexe | --libex | --libe)
  541. ac_prev=libexecdir ;;
  542. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  543. | --libexe=* | --libex=* | --libe=*)
  544. libexecdir=$ac_optarg ;;
  545. -localstatedir | --localstatedir | --localstatedi | --localstated \
  546. | --localstate | --localstat | --localsta | --localst \
  547. | --locals | --local | --loca | --loc | --lo)
  548. ac_prev=localstatedir ;;
  549. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  550. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  551. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  552. localstatedir=$ac_optarg ;;
  553. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  554. ac_prev=mandir ;;
  555. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  556. mandir=$ac_optarg ;;
  557. -nfp | --nfp | --nf)
  558. # Obsolete; use --without-fp.
  559. with_fp=no ;;
  560. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  561. | --no-cr | --no-c | -n)
  562. no_create=yes ;;
  563. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  564. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  565. no_recursion=yes ;;
  566. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  567. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  568. | --oldin | --oldi | --old | --ol | --o)
  569. ac_prev=oldincludedir ;;
  570. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  571. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  572. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  573. oldincludedir=$ac_optarg ;;
  574. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  575. ac_prev=prefix ;;
  576. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  577. prefix=$ac_optarg ;;
  578. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  579. | --program-pre | --program-pr | --program-p)
  580. ac_prev=program_prefix ;;
  581. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  582. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  583. program_prefix=$ac_optarg ;;
  584. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  585. | --program-suf | --program-su | --program-s)
  586. ac_prev=program_suffix ;;
  587. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  588. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  589. program_suffix=$ac_optarg ;;
  590. -program-transform-name | --program-transform-name \
  591. | --program-transform-nam | --program-transform-na \
  592. | --program-transform-n | --program-transform- \
  593. | --program-transform | --program-transfor \
  594. | --program-transfo | --program-transf \
  595. | --program-trans | --program-tran \
  596. | --progr-tra | --program-tr | --program-t)
  597. ac_prev=program_transform_name ;;
  598. -program-transform-name=* | --program-transform-name=* \
  599. | --program-transform-nam=* | --program-transform-na=* \
  600. | --program-transform-n=* | --program-transform-=* \
  601. | --program-transform=* | --program-transfor=* \
  602. | --program-transfo=* | --program-transf=* \
  603. | --program-trans=* | --program-tran=* \
  604. | --progr-tra=* | --program-tr=* | --program-t=*)
  605. program_transform_name=$ac_optarg ;;
  606. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  607. | -silent | --silent | --silen | --sile | --sil)
  608. silent=yes ;;
  609. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  610. ac_prev=sbindir ;;
  611. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  612. | --sbi=* | --sb=*)
  613. sbindir=$ac_optarg ;;
  614. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  615. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  616. | --sharedst | --shareds | --shared | --share | --shar \
  617. | --sha | --sh)
  618. ac_prev=sharedstatedir ;;
  619. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  620. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  621. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  622. | --sha=* | --sh=*)
  623. sharedstatedir=$ac_optarg ;;
  624. -site | --site | --sit)
  625. ac_prev=site ;;
  626. -site=* | --site=* | --sit=*)
  627. site=$ac_optarg ;;
  628. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  629. ac_prev=srcdir ;;
  630. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  631. srcdir=$ac_optarg ;;
  632. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  633. | --syscon | --sysco | --sysc | --sys | --sy)
  634. ac_prev=sysconfdir ;;
  635. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  636. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  637. sysconfdir=$ac_optarg ;;
  638. -target | --target | --targe | --targ | --tar | --ta | --t)
  639. ac_prev=target_alias ;;
  640. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  641. target_alias=$ac_optarg ;;
  642. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  643. verbose=yes ;;
  644. -version | --version | --versio | --versi | --vers | -V)
  645. ac_init_version=: ;;
  646. -with-* | --with-*)
  647. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  648. # Reject names that are not valid shell variable names.
  649. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  650. { echo "$as_me: error: invalid package name: $ac_package" >&2
  651. { (exit 1); exit 1; }; }
  652. ac_package=`echo $ac_package| sed 's/-/_/g'`
  653. case $ac_option in
  654. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  655. *) ac_optarg=yes ;;
  656. esac
  657. eval "with_$ac_package='$ac_optarg'" ;;
  658. -without-* | --without-*)
  659. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  660. # Reject names that are not valid shell variable names.
  661. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  662. { echo "$as_me: error: invalid package name: $ac_package" >&2
  663. { (exit 1); exit 1; }; }
  664. ac_package=`echo $ac_package | sed 's/-/_/g'`
  665. eval "with_$ac_package=no" ;;
  666. --x)
  667. # Obsolete; use --with-x.
  668. with_x=yes ;;
  669. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  670. | --x-incl | --x-inc | --x-in | --x-i)
  671. ac_prev=x_includes ;;
  672. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  673. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  674. x_includes=$ac_optarg ;;
  675. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  676. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  677. ac_prev=x_libraries ;;
  678. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  679. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  680. x_libraries=$ac_optarg ;;
  681. -*) { echo "$as_me: error: unrecognized option: $ac_option
  682. Try \`$0 --help' for more information." >&2
  683. { (exit 1); exit 1; }; }
  684. ;;
  685. *=*)
  686. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  687. # Reject names that are not valid shell variable names.
  688. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  689. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  690. { (exit 1); exit 1; }; }
  691. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  692. eval "$ac_envvar='$ac_optarg'"
  693. export $ac_envvar ;;
  694. *)
  695. # FIXME: should be removed in autoconf 3.0.
  696. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  697. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  698. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  699. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  700. ;;
  701. esac
  702. done
  703. if test -n "$ac_prev"; then
  704. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  705. { echo "$as_me: error: missing argument to $ac_option" >&2
  706. { (exit 1); exit 1; }; }
  707. fi
  708. # Be sure to have absolute paths.
  709. for ac_var in exec_prefix prefix
  710. do
  711. eval ac_val=$`echo $ac_var`
  712. case $ac_val in
  713. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  714. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  715. { (exit 1); exit 1; }; };;
  716. esac
  717. done
  718. # Be sure to have absolute paths.
  719. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  720. localstatedir libdir includedir oldincludedir infodir mandir
  721. do
  722. eval ac_val=$`echo $ac_var`
  723. case $ac_val in
  724. [\\/$]* | ?:[\\/]* ) ;;
  725. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  726. { (exit 1); exit 1; }; };;
  727. esac
  728. done
  729. # There might be people who depend on the old broken behavior: `$host'
  730. # used to hold the argument of --host etc.
  731. # FIXME: To remove some day.
  732. build=$build_alias
  733. host=$host_alias
  734. target=$target_alias
  735. # FIXME: To remove some day.
  736. if test "x$host_alias" != x; then
  737. if test "x$build_alias" = x; then
  738. cross_compiling=maybe
  739. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  740. If a cross compiler is detected then cross compile mode will be used." >&2
  741. elif test "x$build_alias" != "x$host_alias"; then
  742. cross_compiling=yes
  743. fi
  744. fi
  745. ac_tool_prefix=
  746. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  747. test "$silent" = yes && exec 6>/dev/null
  748. # Find the source files, if location was not specified.
  749. if test -z "$srcdir"; then
  750. ac_srcdir_defaulted=yes
  751. # Try the directory containing this script, then its parent.
  752. ac_confdir=`(dirname "$0") 2>/dev/null ||
  753. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  754. X"$0" : 'X\(//\)[^/]' \| \
  755. X"$0" : 'X\(//\)$' \| \
  756. X"$0" : 'X\(/\)' \| \
  757. . : '\(.\)' 2>/dev/null ||
  758. echo X"$0" |
  759. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  760. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  761. /^X\(\/\/\)$/{ s//\1/; q; }
  762. /^X\(\/\).*/{ s//\1/; q; }
  763. s/.*/./; q'`
  764. srcdir=$ac_confdir
  765. if test ! -r $srcdir/$ac_unique_file; then
  766. srcdir=..
  767. fi
  768. else
  769. ac_srcdir_defaulted=no
  770. fi
  771. if test ! -r $srcdir/$ac_unique_file; then
  772. if test "$ac_srcdir_defaulted" = yes; then
  773. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  774. { (exit 1); exit 1; }; }
  775. else
  776. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  777. { (exit 1); exit 1; }; }
  778. fi
  779. fi
  780. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  781. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  782. { (exit 1); exit 1; }; }
  783. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  784. ac_env_build_alias_set=${build_alias+set}
  785. ac_env_build_alias_value=$build_alias
  786. ac_cv_env_build_alias_set=${build_alias+set}
  787. ac_cv_env_build_alias_value=$build_alias
  788. ac_env_host_alias_set=${host_alias+set}
  789. ac_env_host_alias_value=$host_alias
  790. ac_cv_env_host_alias_set=${host_alias+set}
  791. ac_cv_env_host_alias_value=$host_alias
  792. ac_env_target_alias_set=${target_alias+set}
  793. ac_env_target_alias_value=$target_alias
  794. ac_cv_env_target_alias_set=${target_alias+set}
  795. ac_cv_env_target_alias_value=$target_alias
  796. ac_env_CC_set=${CC+set}
  797. ac_env_CC_value=$CC
  798. ac_cv_env_CC_set=${CC+set}
  799. ac_cv_env_CC_value=$CC
  800. ac_env_CFLAGS_set=${CFLAGS+set}
  801. ac_env_CFLAGS_value=$CFLAGS
  802. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  803. ac_cv_env_CFLAGS_value=$CFLAGS
  804. ac_env_LDFLAGS_set=${LDFLAGS+set}
  805. ac_env_LDFLAGS_value=$LDFLAGS
  806. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  807. ac_cv_env_LDFLAGS_value=$LDFLAGS
  808. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  809. ac_env_CPPFLAGS_value=$CPPFLAGS
  810. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  811. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  812. ac_env_CPP_set=${CPP+set}
  813. ac_env_CPP_value=$CPP
  814. ac_cv_env_CPP_set=${CPP+set}
  815. ac_cv_env_CPP_value=$CPP
  816. ac_env_CXX_set=${CXX+set}
  817. ac_env_CXX_value=$CXX
  818. ac_cv_env_CXX_set=${CXX+set}
  819. ac_cv_env_CXX_value=$CXX
  820. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  821. ac_env_CXXFLAGS_value=$CXXFLAGS
  822. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  823. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  824. ac_env_CXXCPP_set=${CXXCPP+set}
  825. ac_env_CXXCPP_value=$CXXCPP
  826. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  827. ac_cv_env_CXXCPP_value=$CXXCPP
  828. ac_env_F77_set=${F77+set}
  829. ac_env_F77_value=$F77
  830. ac_cv_env_F77_set=${F77+set}
  831. ac_cv_env_F77_value=$F77
  832. ac_env_FFLAGS_set=${FFLAGS+set}
  833. ac_env_FFLAGS_value=$FFLAGS
  834. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  835. ac_cv_env_FFLAGS_value=$FFLAGS
  836. #
  837. # Report the --help message.
  838. #
  839. if test "$ac_init_help" = "long"; then
  840. # Omit some internal or obsolete options to make the list less imposing.
  841. # This message is too long to be a string in the A/UX 3.1 sh.
  842. cat <<_ACEOF
  843. \`configure' configures this package to adapt to many kinds of systems.
  844. Usage: $0 [OPTION]... [VAR=VALUE]...
  845. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  846. VAR=VALUE. See below for descriptions of some of the useful variables.
  847. Defaults for the options are specified in brackets.
  848. Configuration:
  849. -h, --help display this help and exit
  850. --help=short display options specific to this package
  851. --help=recursive display the short help of all the included packages
  852. -V, --version display version information and exit
  853. -q, --quiet, --silent do not print \`checking...' messages
  854. --cache-file=FILE cache test results in FILE [disabled]
  855. -C, --config-cache alias for \`--cache-file=config.cache'
  856. -n, --no-create do not create output files
  857. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  858. _ACEOF
  859. cat <<_ACEOF
  860. Installation directories:
  861. --prefix=PREFIX install architecture-independent files in PREFIX
  862. [$ac_default_prefix]
  863. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  864. [PREFIX]
  865. By default, \`make install' will install all the files in
  866. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  867. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  868. for instance \`--prefix=\$HOME'.
  869. For better control, use the options below.
  870. Fine tuning of the installation directories:
  871. --bindir=DIR user executables [EPREFIX/bin]
  872. --sbindir=DIR system admin executables [EPREFIX/sbin]
  873. --libexecdir=DIR program executables [EPREFIX/libexec]
  874. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  875. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  876. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  877. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  878. --libdir=DIR object code libraries [EPREFIX/lib]
  879. --includedir=DIR C header files [PREFIX/include]
  880. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  881. --infodir=DIR info documentation [PREFIX/info]
  882. --mandir=DIR man documentation [PREFIX/man]
  883. _ACEOF
  884. cat <<\_ACEOF
  885. Program names:
  886. --program-prefix=PREFIX prepend PREFIX to installed program names
  887. --program-suffix=SUFFIX append SUFFIX to installed program names
  888. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  889. System types:
  890. --build=BUILD configure for building on BUILD [guessed]
  891. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  892. --target=TARGET configure for building compilers for TARGET [HOST]
  893. _ACEOF
  894. fi
  895. if test -n "$ac_init_help"; then
  896. cat <<\_ACEOF
  897. Optional Features:
  898. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  899. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  900. --enable-maintainer-mode enable make rules and dependencies not useful
  901. (and sometimes confusing) to the casual installer
  902. --enable-shared[=PKGS]
  903. build shared libraries [default=yes]
  904. --enable-static[=PKGS]
  905. build static libraries [default=yes]
  906. --enable-fast-install[=PKGS]
  907. optimize for fast installation [default=yes]
  908. --disable-libtool-lock avoid locking (might break parallel builds)
  909. --disable-dependency-tracking speeds up one-time build
  910. --enable-dependency-tracking do not reject slow dependency extractors
  911. --disable-largefile omit support for large files
  912. --enable-debug Enable debugging code and support for the -d option
  913. --enable-pedantic Enable gcc's -pedantic option
  914. --enable-efence Enable Electric Fence memory debugger
  915. --enable-gprof Enable GNU Profiler
  916. --enable-64bits Use 64bit packet counters
  917. --enable-dynamic-link Dynamically link libraries
  918. --enable-local-libopts Force using the supplied libopts tearoff code
  919. Optional Packages:
  920. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  921. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  922. --with-dmalloc use dmalloc, as in
  923. http://www.dmalloc.com/dmalloc.tar.gz
  924. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  925. --with-pic try to use only PIC/non-PIC objects [default=use
  926. both]
  927. --with-tags[=TAGS]
  928. include additional configurations [automatic]
  929. --with-lyx=FILE Path to Lyx binary
  930. --with-libnet=DIR Use libnet in DIR
  931. --with-libpcap=DIR Use libpcap in DIR
  932. --with-pcapnav-config=FILE
  933. Use given pcapnav-config
  934. --with-libnids=DIR Use libnids in DIR
  935. --with-tcpdump=FILE Path to tcpdump binary
  936. --with-testnic=NIC Select which network card to use for testing
  937. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  938. testing
  939. --with-autoopts-config specify the config-info script
  940. --with-regex-header a reg expr header is specified
  941. --with-libregex libregex installation prefix
  942. --with-libregex-cflags libregex compile flags
  943. --with-libregex-libs libregex link command arguments
  944. Some influential environment variables:
  945. CC C compiler command
  946. CFLAGS C compiler flags
  947. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  948. nonstandard directory <lib dir>
  949. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  950. headers in a nonstandard directory <include dir>
  951. CPP C preprocessor
  952. CXX C++ compiler command
  953. CXXFLAGS C++ compiler flags
  954. CXXCPP C++ preprocessor
  955. F77 Fortran 77 compiler command
  956. FFLAGS Fortran 77 compiler flags
  957. Use these variables to override the choices made by `configure' or to help
  958. it to find libraries and programs with nonstandard names/locations.
  959. _ACEOF
  960. fi
  961. if test "$ac_init_help" = "recursive"; then
  962. # If there are subdirs, report their specific --help.
  963. ac_popdir=`pwd`
  964. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  965. test -d $ac_dir || continue
  966. ac_builddir=.
  967. if test "$ac_dir" != .; then
  968. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  969. # A "../" for each directory in $ac_dir_suffix.
  970. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  971. else
  972. ac_dir_suffix= ac_top_builddir=
  973. fi
  974. case $srcdir in
  975. .) # No --srcdir option. We are building in place.
  976. ac_srcdir=.
  977. if test -z "$ac_top_builddir"; then
  978. ac_top_srcdir=.
  979. else
  980. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  981. fi ;;
  982. [\\/]* | ?:[\\/]* ) # Absolute path.
  983. ac_srcdir=$srcdir$ac_dir_suffix;
  984. ac_top_srcdir=$srcdir ;;
  985. *) # Relative path.
  986. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  987. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  988. esac
  989. # Do not use `cd foo && pwd` to compute absolute paths, because
  990. # the directories may not exist.
  991. case `pwd` in
  992. .) ac_abs_builddir="$ac_dir";;
  993. *)
  994. case "$ac_dir" in
  995. .) ac_abs_builddir=`pwd`;;
  996. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  997. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  998. esac;;
  999. esac
  1000. case $ac_abs_builddir in
  1001. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1002. *)
  1003. case ${ac_top_builddir}. in
  1004. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1005. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1006. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1007. esac;;
  1008. esac
  1009. case $ac_abs_builddir in
  1010. .) ac_abs_srcdir=$ac_srcdir;;
  1011. *)
  1012. case $ac_srcdir in
  1013. .) ac_abs_srcdir=$ac_abs_builddir;;
  1014. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1015. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1016. esac;;
  1017. esac
  1018. case $ac_abs_builddir in
  1019. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1020. *)
  1021. case $ac_top_srcdir in
  1022. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1023. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1024. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1025. esac;;
  1026. esac
  1027. cd $ac_dir
  1028. # Check for guested configure; otherwise get Cygnus style configure.
  1029. if test -f $ac_srcdir/configure.gnu; then
  1030. echo
  1031. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1032. elif test -f $ac_srcdir/configure; then
  1033. echo
  1034. $SHELL $ac_srcdir/configure --help=recursive
  1035. elif test -f $ac_srcdir/configure.ac ||
  1036. test -f $ac_srcdir/configure.in; then
  1037. echo
  1038. $ac_configure --help
  1039. else
  1040. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1041. fi
  1042. cd $ac_popdir
  1043. done
  1044. fi
  1045. test -n "$ac_init_help" && exit 0
  1046. if $ac_init_version; then
  1047. cat <<\_ACEOF
  1048. Copyright (C) 2003 Free Software Foundation, Inc.
  1049. This configure script is free software; the Free Software Foundation
  1050. gives unlimited permission to copy, distribute and modify it.
  1051. _ACEOF
  1052. exit 0
  1053. fi
  1054. exec 5>config.log
  1055. cat >&5 <<_ACEOF
  1056. This file contains any messages produced by compilers while
  1057. running configure, to aid debugging if configure makes a mistake.
  1058. It was created by $as_me, which was
  1059. generated by GNU Autoconf 2.59. Invocation command line was
  1060. $ $0 $@
  1061. _ACEOF
  1062. {
  1063. cat <<_ASUNAME
  1064. ## --------- ##
  1065. ## Platform. ##
  1066. ## --------- ##
  1067. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1068. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1069. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1070. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1071. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1072. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1073. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1074. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1075. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1076. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1077. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1078. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1079. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1080. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1081. _ASUNAME
  1082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1083. for as_dir in $PATH
  1084. do
  1085. IFS=$as_save_IFS
  1086. test -z "$as_dir" && as_dir=.
  1087. echo "PATH: $as_dir"
  1088. done
  1089. } >&5
  1090. cat >&5 <<_ACEOF
  1091. ## ----------- ##
  1092. ## Core tests. ##
  1093. ## ----------- ##
  1094. _ACEOF
  1095. # Keep a trace of the command line.
  1096. # Strip out --no-create and --no-recursion so they do not pile up.
  1097. # Strip out --silent because we don't want to record it for future runs.
  1098. # Also quote any args containing shell meta-characters.
  1099. # Make two passes to allow for proper duplicate-argument suppression.
  1100. ac_configure_args=
  1101. ac_configure_args0=
  1102. ac_configure_args1=
  1103. ac_sep=
  1104. ac_must_keep_next=false
  1105. for ac_pass in 1 2
  1106. do
  1107. for ac_arg
  1108. do
  1109. case $ac_arg in
  1110. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1111. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1112. | -silent | --silent | --silen | --sile | --sil)
  1113. continue ;;
  1114. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1115. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1116. esac
  1117. case $ac_pass in
  1118. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1119. 2)
  1120. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1121. if test $ac_must_keep_next = true; then
  1122. ac_must_keep_next=false # Got value, back to normal.
  1123. else
  1124. case $ac_arg in
  1125. *=* | --config-cache | -C | -disable-* | --disable-* \
  1126. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1127. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1128. | -with-* | --with-* | -without-* | --without-* | --x)
  1129. case "$ac_configure_args0 " in
  1130. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1131. esac
  1132. ;;
  1133. -* ) ac_must_keep_next=true ;;
  1134. esac
  1135. fi
  1136. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1137. # Get rid of the leading space.
  1138. ac_sep=" "
  1139. ;;
  1140. esac
  1141. done
  1142. done
  1143. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1144. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1145. # When interrupted or exit'd, cleanup temporary files, and complete
  1146. # config.log. We remove comments because anyway the quotes in there
  1147. # would cause problems or look ugly.
  1148. # WARNING: Be sure not to use single quotes in there, as some shells,
  1149. # such as our DU 5.0 friend, will then `close' the trap.
  1150. trap 'exit_status=$?
  1151. # Save into config.log some information that might help in debugging.
  1152. {
  1153. echo
  1154. cat <<\_ASBOX
  1155. ## ---------------- ##
  1156. ## Cache variables. ##
  1157. ## ---------------- ##
  1158. _ASBOX
  1159. echo
  1160. # The following way of writing the cache mishandles newlines in values,
  1161. {
  1162. (set) 2>&1 |
  1163. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1164. *ac_space=\ *)
  1165. sed -n \
  1166. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1167. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1168. ;;
  1169. *)
  1170. sed -n \
  1171. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1172. ;;
  1173. esac;
  1174. }
  1175. echo
  1176. cat <<\_ASBOX
  1177. ## ----------------- ##
  1178. ## Output variables. ##
  1179. ## ----------------- ##
  1180. _ASBOX
  1181. echo
  1182. for ac_var in $ac_subst_vars
  1183. do
  1184. eval ac_val=$`echo $ac_var`
  1185. echo "$ac_var='"'"'$ac_val'"'"'"
  1186. done | sort
  1187. echo
  1188. if test -n "$ac_subst_files"; then
  1189. cat <<\_ASBOX
  1190. ## ------------- ##
  1191. ## Output files. ##
  1192. ## ------------- ##
  1193. _ASBOX
  1194. echo
  1195. for ac_var in $ac_subst_files
  1196. do
  1197. eval ac_val=$`echo $ac_var`
  1198. echo "$ac_var='"'"'$ac_val'"'"'"
  1199. done | sort
  1200. echo
  1201. fi
  1202. if test -s confdefs.h; then
  1203. cat <<\_ASBOX
  1204. ## ----------- ##
  1205. ## confdefs.h. ##
  1206. ## ----------- ##
  1207. _ASBOX
  1208. echo
  1209. sed "/^$/d" confdefs.h | sort
  1210. echo
  1211. fi
  1212. test "$ac_signal" != 0 &&
  1213. echo "$as_me: caught signal $ac_signal"
  1214. echo "$as_me: exit $exit_status"
  1215. } >&5
  1216. rm -f core *.core &&
  1217. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1218. exit $exit_status
  1219. ' 0
  1220. for ac_signal in 1 2 13 15; do
  1221. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1222. done
  1223. ac_signal=0
  1224. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1225. rm -rf conftest* confdefs.h
  1226. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1227. echo >confdefs.h
  1228. # Predefined preprocessor variables.
  1229. cat >>confdefs.h <<_ACEOF
  1230. #define PACKAGE_NAME "$PACKAGE_NAME"
  1231. _ACEOF
  1232. cat >>confdefs.h <<_ACEOF
  1233. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1234. _ACEOF
  1235. cat >>confdefs.h <<_ACEOF
  1236. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1237. _ACEOF
  1238. cat >>confdefs.h <<_ACEOF
  1239. #define PACKAGE_STRING "$PACKAGE_STRING"
  1240. _ACEOF
  1241. cat >>confdefs.h <<_ACEOF
  1242. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1243. _ACEOF
  1244. # Let the site file select an alternate cache file if it wants to.
  1245. # Prefer explicitly selected file to automatically selected ones.
  1246. if test -z "$CONFIG_SITE"; then
  1247. if test "x$prefix" != xNONE; then
  1248. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1249. else
  1250. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1251. fi
  1252. fi
  1253. for ac_site_file in $CONFIG_SITE; do
  1254. if test -r "$ac_site_file"; then
  1255. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1256. echo "$as_me: loading site script $ac_site_file" >&6;}
  1257. sed 's/^/| /' "$ac_site_file" >&5
  1258. . "$ac_site_file"
  1259. fi
  1260. done
  1261. if test -r "$cache_file"; then
  1262. # Some versions of bash will fail to source /dev/null (special
  1263. # files actually), so we avoid doing that.
  1264. if test -f "$cache_file"; then
  1265. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1266. echo "$as_me: loading cache $cache_file" >&6;}
  1267. case $cache_file in
  1268. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1269. *) . ./$cache_file;;
  1270. esac
  1271. fi
  1272. else
  1273. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1274. echo "$as_me: creating cache $cache_file" >&6;}
  1275. >$cache_file
  1276. fi
  1277. # Check that the precious variables saved in the cache have kept the same
  1278. # value.
  1279. ac_cache_corrupted=false
  1280. for ac_var in `(set) 2>&1 |
  1281. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1282. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1283. eval ac_new_set=\$ac_env_${ac_var}_set
  1284. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1285. eval ac_new_val="\$ac_env_${ac_var}_value"
  1286. case $ac_old_set,$ac_new_set in
  1287. set,)
  1288. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1289. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1290. ac_cache_corrupted=: ;;
  1291. ,set)
  1292. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1293. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1294. ac_cache_corrupted=: ;;
  1295. ,);;
  1296. *)
  1297. if test "x$ac_old_val" != "x$ac_new_val"; then
  1298. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1299. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1300. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1301. echo "$as_me: former value: $ac_old_val" >&2;}
  1302. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1303. echo "$as_me: current value: $ac_new_val" >&2;}
  1304. ac_cache_corrupted=:
  1305. fi;;
  1306. esac
  1307. # Pass precious variables to config.status.
  1308. if test "$ac_new_set" = set; then
  1309. case $ac_new_val in
  1310. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1311. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1312. *) ac_arg=$ac_var=$ac_new_val ;;
  1313. esac
  1314. case " $ac_configure_args " in
  1315. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1316. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1317. esac
  1318. fi
  1319. done
  1320. if $ac_cache_corrupted; then
  1321. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1322. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1323. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1324. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1325. { (exit 1); exit 1; }; }
  1326. fi
  1327. ac_ext=c
  1328. ac_cpp='$CPP $CPPFLAGS'
  1329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1332. ac_config_headers="$ac_config_headers src/config.h"
  1333. ac_aux_dir=
  1334. for ac_dir in config $srcdir/config; do
  1335. if test -f $ac_dir/install-sh; then
  1336. ac_aux_dir=$ac_dir
  1337. ac_install_sh="$ac_aux_dir/install-sh -c"
  1338. break
  1339. elif test -f $ac_dir/install.sh; then
  1340. ac_aux_dir=$ac_dir
  1341. ac_install_sh="$ac_aux_dir/install.sh -c"
  1342. break
  1343. elif test -f $ac_dir/shtool; then
  1344. ac_aux_dir=$ac_dir
  1345. ac_install_sh="$ac_aux_dir/shtool install -c"
  1346. break
  1347. fi
  1348. done
  1349. if test -z "$ac_aux_dir"; then
  1350. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
  1351. echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
  1352. { (exit 1); exit 1; }; }
  1353. fi
  1354. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1355. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1356. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1357. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1358. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1359. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1360. if test "${enable_maintainer_mode+set}" = set; then
  1361. enableval="$enable_maintainer_mode"
  1362. USE_MAINTAINER_MODE=$enableval
  1363. else
  1364. USE_MAINTAINER_MODE=no
  1365. fi;
  1366. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1367. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1368. if test $USE_MAINTAINER_MODE = yes; then
  1369. MAINTAINER_MODE_TRUE=
  1370. MAINTAINER_MODE_FALSE='#'
  1371. else
  1372. MAINTAINER_MODE_TRUE='#'
  1373. MAINTAINER_MODE_FALSE=
  1374. fi
  1375. MAINT=$MAINTAINER_MODE_TRUE
  1376. echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1377. echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
  1378. # Check whether --with-dmalloc or --without-dmalloc was given.
  1379. if test "${with_dmalloc+set}" = set; then
  1380. withval="$with_dmalloc"
  1381. if test "$withval" = yes; then
  1382. echo "$as_me:$LINENO: result: yes" >&5
  1383. echo "${ECHO_T}yes" >&6
  1384. cat >>confdefs.h <<\_ACEOF
  1385. #define WITH_DMALLOC 1
  1386. _ACEOF
  1387. LIBS="$LIBS -ldmalloc"
  1388. LDFLAGS="$LDFLAGS -g"
  1389. else
  1390. echo "$as_me:$LINENO: result: no" >&5
  1391. echo "${ECHO_T}no" >&6
  1392. fi
  1393. else
  1394. echo "$as_me:$LINENO: result: no" >&5
  1395. echo "${ECHO_T}no" >&6
  1396. fi;
  1397. # Check whether --enable-shared or --disable-shared was given.
  1398. if test "${enable_shared+set}" = set; then
  1399. enableval="$enable_shared"
  1400. p=${PACKAGE-default}
  1401. case $enableval in
  1402. yes) enable_shared=yes ;;
  1403. no) enable_shared=no ;;
  1404. *)
  1405. enable_shared=no
  1406. # Look at the argument we got. We use all the common list separators.
  1407. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1408. for pkg in $enableval; do
  1409. IFS="$lt_save_ifs"
  1410. if test "X$pkg" = "X$p"; then
  1411. enable_shared=yes
  1412. fi
  1413. done
  1414. IFS="$lt_save_ifs"
  1415. ;;
  1416. esac
  1417. else
  1418. enable_shared=yes
  1419. fi;
  1420. # Check whether --enable-static or --disable-static was given.
  1421. if test "${enable_static+set}" = set; then
  1422. enableval="$enable_static"
  1423. p=${PACKAGE-default}
  1424. case $enableval in
  1425. yes) enable_static=yes ;;
  1426. no) enable_static=no ;;
  1427. *)
  1428. enable_static=no
  1429. # Look at the argument we got. We use all the common list separators.
  1430. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1431. for pkg in $enableval; do
  1432. IFS="$lt_save_ifs"
  1433. if test "X$pkg" = "X$p"; then
  1434. enable_static=yes
  1435. fi
  1436. done
  1437. IFS="$lt_save_ifs"
  1438. ;;
  1439. esac
  1440. else
  1441. enable_static=yes
  1442. fi;
  1443. # Check whether --enable-fast-install or --disable-fast-install was given.
  1444. if test "${enable_fast_install+set}" = set; then
  1445. enableval="$enable_fast_install"
  1446. p=${PACKAGE-default}
  1447. case $enableval in
  1448. yes) enable_fast_install=yes ;;
  1449. no) enable_fast_install=no ;;
  1450. *)
  1451. enable_fast_install=no
  1452. # Look at the argument we got. We use all the common list separators.
  1453. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1454. for pkg in $enableval; do
  1455. IFS="$lt_save_ifs"
  1456. if test "X$pkg" = "X$p"; then
  1457. enable_fast_install=yes
  1458. fi
  1459. done
  1460. IFS="$lt_save_ifs"
  1461. ;;
  1462. esac
  1463. else
  1464. enable_fast_install=yes
  1465. fi;
  1466. # Make sure we can run config.sub.
  1467. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1468. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1469. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1470. { (exit 1); exit 1; }; }
  1471. echo "$as_me:$LINENO: checking build system type" >&5
  1472. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1473. if test "${ac_cv_build+set}" = set; then
  1474. echo $ECHO_N "(cached) $ECHO_C" >&6
  1475. else
  1476. ac_cv_build_alias=$build_alias
  1477. test -z "$ac_cv_build_alias" &&
  1478. ac_cv_build_alias=`$ac_config_guess`
  1479. test -z "$ac_cv_build_alias" &&
  1480. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1481. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1482. { (exit 1); exit 1; }; }
  1483. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1484. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1485. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1486. { (exit 1); exit 1; }; }
  1487. fi
  1488. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1489. echo "${ECHO_T}$ac_cv_build" >&6
  1490. build=$ac_cv_build
  1491. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1492. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1493. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1494. echo "$as_me:$LINENO: checking host system type" >&5
  1495. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1496. if test "${ac_cv_host+set}" = set; then
  1497. echo $ECHO_N "(cached) $ECHO_C" >&6
  1498. else
  1499. ac_cv_host_alias=$host_alias
  1500. test -z "$ac_cv_host_alias" &&
  1501. ac_cv_host_alias=$ac_cv_build_alias
  1502. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1503. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1504. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1505. { (exit 1); exit 1; }; }
  1506. fi
  1507. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1508. echo "${ECHO_T}$ac_cv_host" >&6
  1509. host=$ac_cv_host
  1510. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1511. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1512. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1513. ac_ext=c
  1514. ac_cpp='$CPP $CPPFLAGS'
  1515. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1516. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1517. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1518. if test -n "$ac_tool_prefix"; then
  1519. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1520. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1521. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1522. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1523. if test "${ac_cv_prog_CC+set}" = set; then
  1524. echo $ECHO_N "(cached) $ECHO_C" >&6
  1525. else
  1526. if test -n "$CC"; then
  1527. ac_cv_prog_CC="$CC" # Let the user override the test.
  1528. else
  1529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1530. for as_dir in $PATH
  1531. do
  1532. IFS=$as_save_IFS
  1533. test -z "$as_dir" && as_dir=.
  1534. for ac_exec_ext in '' $ac_executable_extensions; do
  1535. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1536. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1537. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1538. break 2
  1539. fi
  1540. done
  1541. done
  1542. fi
  1543. fi
  1544. CC=$ac_cv_prog_CC
  1545. if test -n "$CC"; then
  1546. echo "$as_me:$LINENO: result: $CC" >&5
  1547. echo "${ECHO_T}$CC" >&6
  1548. else
  1549. echo "$as_me:$LINENO: result: no" >&5
  1550. echo "${ECHO_T}no" >&6
  1551. fi
  1552. fi
  1553. if test -z "$ac_cv_prog_CC"; then
  1554. ac_ct_CC=$CC
  1555. # Extract the first word of "gcc", so it can be a program name with args.
  1556. set dummy gcc; ac_word=$2
  1557. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1558. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1559. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1560. echo $ECHO_N "(cached) $ECHO_C" >&6
  1561. else
  1562. if test -n "$ac_ct_CC"; then
  1563. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1564. else
  1565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1566. for as_dir in $PATH
  1567. do
  1568. IFS=$as_save_IFS
  1569. test -z "$as_dir" && as_dir=.
  1570. for ac_exec_ext in '' $ac_executable_extensions; do
  1571. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1572. ac_cv_prog_ac_ct_CC="gcc"
  1573. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1574. break 2
  1575. fi
  1576. done
  1577. done
  1578. fi
  1579. fi
  1580. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1581. if test -n "$ac_ct_CC"; then
  1582. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1583. echo "${ECHO_T}$ac_ct_CC" >&6
  1584. else
  1585. echo "$as_me:$LINENO: result: no" >&5
  1586. echo "${ECHO_T}no" >&6
  1587. fi
  1588. CC=$ac_ct_CC
  1589. else
  1590. CC="$ac_cv_prog_CC"
  1591. fi
  1592. if test -z "$CC"; then
  1593. if test -n "$ac_tool_prefix"; then
  1594. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1595. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1596. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1597. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1598. if test "${ac_cv_prog_CC+set}" = set; then
  1599. echo $ECHO_N "(cached) $ECHO_C" >&6
  1600. else
  1601. if test -n "$CC"; then
  1602. ac_cv_prog_CC="$CC" # Let the user override the test.
  1603. else
  1604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1605. for as_dir in $PATH
  1606. do
  1607. IFS=$as_save_IFS
  1608. test -z "$as_dir" && as_dir=.
  1609. for ac_exec_ext in '' $ac_executable_extensions; do
  1610. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1611. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1612. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1613. break 2
  1614. fi
  1615. done
  1616. done
  1617. fi
  1618. fi
  1619. CC=$ac_cv_prog_CC
  1620. if test -n "$CC"; then
  1621. echo "$as_me:$LINENO: result: $CC" >&5
  1622. echo "${ECHO_T}$CC" >&6
  1623. else
  1624. echo "$as_me:$LINENO: result: no" >&5
  1625. echo "${ECHO_T}no" >&6
  1626. fi
  1627. fi
  1628. if test -z "$ac_cv_prog_CC"; then
  1629. ac_ct_CC=$CC
  1630. # Extract the first word of "cc", so it can be a program name with args.
  1631. set dummy cc; ac_word=$2
  1632. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1633. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1634. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1635. echo $ECHO_N "(cached) $ECHO_C" >&6
  1636. else
  1637. if test -n "$ac_ct_CC"; then
  1638. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1639. else
  1640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1641. for as_dir in $PATH
  1642. do
  1643. IFS=$as_save_IFS
  1644. test -z "$as_dir" && as_dir=.
  1645. for ac_exec_ext in '' $ac_executable_extensions; do
  1646. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1647. ac_cv_prog_ac_ct_CC="cc"
  1648. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1649. break 2
  1650. fi
  1651. done
  1652. done
  1653. fi
  1654. fi
  1655. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1656. if test -n "$ac_ct_CC"; then
  1657. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1658. echo "${ECHO_T}$ac_ct_CC" >&6
  1659. else
  1660. echo "$as_me:$LINENO: result: no" >&5
  1661. echo "${ECHO_T}no" >&6
  1662. fi
  1663. CC=$ac_ct_CC
  1664. else
  1665. CC="$ac_cv_prog_CC"
  1666. fi
  1667. fi
  1668. if test -z "$CC"; then
  1669. # Extract the first word of "cc", so it can be a program name with args.
  1670. set dummy cc; ac_word=$2
  1671. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1672. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1673. if test "${ac_cv_prog_CC+set}" = set; then
  1674. echo $ECHO_N "(cached) $ECHO_C" >&6
  1675. else
  1676. if test -n "$CC"; then
  1677. ac_cv_prog_CC="$CC" # Let the user override the test.
  1678. else
  1679. ac_prog_rejected=no
  1680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1681. for as_dir in $PATH
  1682. do
  1683. IFS=$as_save_IFS
  1684. test -z "$as_dir" && as_dir=.
  1685. for ac_exec_ext in '' $ac_executable_extensions; do
  1686. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1687. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1688. ac_prog_rejected=yes
  1689. continue
  1690. fi
  1691. ac_cv_prog_CC="cc"
  1692. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1693. break 2
  1694. fi
  1695. done
  1696. done
  1697. if test $ac_prog_rejected = yes; then
  1698. # We found a bogon in the path, so make sure we never use it.
  1699. set dummy $ac_cv_prog_CC
  1700. shift
  1701. if test $# != 0; then
  1702. # We chose a different compiler from the bogus one.
  1703. # However, it has the same basename, so the bogon will be chosen
  1704. # first if we set CC to just the basename; use the full file name.
  1705. shift
  1706. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1707. fi
  1708. fi
  1709. fi
  1710. fi
  1711. CC=$ac_cv_prog_CC
  1712. if test -n "$CC"; then
  1713. echo "$as_me:$LINENO: result: $CC" >&5
  1714. echo "${ECHO_T}$CC" >&6
  1715. else
  1716. echo "$as_me:$LINENO: result: no" >&5
  1717. echo "${ECHO_T}no" >&6
  1718. fi
  1719. fi
  1720. if test -z "$CC"; then
  1721. if test -n "$ac_tool_prefix"; then
  1722. for ac_prog in cl
  1723. do
  1724. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1725. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1726. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1727. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1728. if test "${ac_cv_prog_CC+set}" = set; then
  1729. echo $ECHO_N "(cached) $ECHO_C" >&6
  1730. else
  1731. if test -n "$CC"; then
  1732. ac_cv_prog_CC="$CC" # Let the user override the test.
  1733. else
  1734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1735. for as_dir in $PATH
  1736. do
  1737. IFS=$as_save_IFS
  1738. test -z "$as_dir" && as_dir=.
  1739. for ac_exec_ext in '' $ac_executable_extensions; do
  1740. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1741. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1742. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1743. break 2
  1744. fi
  1745. done
  1746. done
  1747. fi
  1748. fi
  1749. CC=$ac_cv_prog_CC
  1750. if test -n "$CC"; then
  1751. echo "$as_me:$LINENO: result: $CC" >&5
  1752. echo "${ECHO_T}$CC" >&6
  1753. else
  1754. echo "$as_me:$LINENO: result: no" >&5
  1755. echo "${ECHO_T}no" >&6
  1756. fi
  1757. test -n "$CC" && break
  1758. done
  1759. fi
  1760. if test -z "$CC"; then
  1761. ac_ct_CC=$CC
  1762. for ac_prog in cl
  1763. do
  1764. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1765. set dummy $ac_prog; ac_word=$2
  1766. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1767. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1768. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1769. echo $ECHO_N "(cached) $ECHO_C" >&6
  1770. else
  1771. if test -n "$ac_ct_CC"; then
  1772. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1773. else
  1774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1775. for as_dir in $PATH
  1776. do
  1777. IFS=$as_save_IFS
  1778. test -z "$as_dir" && as_dir=.
  1779. for ac_exec_ext in '' $ac_executable_extensions; do
  1780. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1781. ac_cv_prog_ac_ct_CC="$ac_prog"
  1782. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1783. break 2
  1784. fi
  1785. done
  1786. done
  1787. fi
  1788. fi
  1789. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1790. if test -n "$ac_ct_CC"; then
  1791. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1792. echo "${ECHO_T}$ac_ct_CC" >&6
  1793. else
  1794. echo "$as_me:$LINENO: result: no" >&5
  1795. echo "${ECHO_T}no" >&6
  1796. fi
  1797. test -n "$ac_ct_CC" && break
  1798. done
  1799. CC=$ac_ct_CC
  1800. fi
  1801. fi
  1802. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1803. See \`config.log' for more details." >&5
  1804. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1805. See \`config.log' for more details." >&2;}
  1806. { (exit 1); exit 1; }; }
  1807. # Provide some information about the compiler.
  1808. echo "$as_me:$LINENO:" \
  1809. "checking for C compiler version" >&5
  1810. ac_compiler=`set X $ac_compile; echo $2`
  1811. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1812. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1813. ac_status=$?
  1814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1815. (exit $ac_status); }
  1816. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1817. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1818. ac_status=$?
  1819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1820. (exit $ac_status); }
  1821. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1822. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1823. ac_status=$?
  1824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1825. (exit $ac_status); }
  1826. cat >conftest.$ac_ext <<_ACEOF
  1827. /* confdefs.h. */
  1828. _ACEOF
  1829. cat confdefs.h >>conftest.$ac_ext
  1830. cat >>conftest.$ac_ext <<_ACEOF
  1831. /* end confdefs.h. */
  1832. int
  1833. main ()
  1834. {
  1835. ;
  1836. return 0;
  1837. }
  1838. _ACEOF
  1839. ac_clean_files_save=$ac_clean_files
  1840. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1841. # Try to create an executable without -o first, disregard a.out.
  1842. # It will help us diagnose broken compilers, and finding out an intuition
  1843. # of exeext.
  1844. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1845. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1846. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1847. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1848. (eval $ac_link_default) 2>&5
  1849. ac_status=$?
  1850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1851. (exit $ac_status); }; then
  1852. # Find the output, starting from the most likely. This scheme is
  1853. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1854. # resort.
  1855. # Be careful to initialize this variable, since it used to be cached.
  1856. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1857. ac_cv_exeext=
  1858. # b.out is created by i960 compilers.
  1859. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1860. do
  1861. test -f "$ac_file" || continue
  1862. case $ac_file in
  1863. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1864. ;;
  1865. conftest.$ac_ext )
  1866. # This is the source file.
  1867. ;;
  1868. [ab].out )
  1869. # We found the default executable, but exeext='' is most
  1870. # certainly right.
  1871. break;;
  1872. *.* )
  1873. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1874. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1875. # but it would be cool to find out if it's true. Does anybody
  1876. # maintain Libtool? --akim.
  1877. export ac_cv_exeext
  1878. break;;
  1879. * )
  1880. break;;
  1881. esac
  1882. done
  1883. else
  1884. echo "$as_me: failed program was:" >&5
  1885. sed 's/^/| /' conftest.$ac_ext >&5
  1886. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1887. See \`config.log' for more details." >&5
  1888. echo "$as_me: error: C compiler cannot create executables
  1889. See \`config.log' for more details." >&2;}
  1890. { (exit 77); exit 77; }; }
  1891. fi
  1892. ac_exeext=$ac_cv_exeext
  1893. echo "$as_me:$LINENO: result: $ac_file" >&5
  1894. echo "${ECHO_T}$ac_file" >&6
  1895. # Check the compiler produces executables we can run. If not, either
  1896. # the compiler is broken, or we cross compile.
  1897. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1898. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1899. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1900. # If not cross compiling, check that we can run a simple program.
  1901. if test "$cross_compiling" != yes; then
  1902. if { ac_try='./$ac_file'
  1903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1904. (eval $ac_try) 2>&5
  1905. ac_status=$?
  1906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1907. (exit $ac_status); }; }; then
  1908. cross_compiling=no
  1909. else
  1910. if test "$cross_compiling" = maybe; then
  1911. cross_compiling=yes
  1912. else
  1913. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1914. If you meant to cross compile, use \`--host'.
  1915. See \`config.log' for more details." >&5
  1916. echo "$as_me: error: cannot run C compiled programs.
  1917. If you meant to cross compile, use \`--host'.
  1918. See \`config.log' for more details." >&2;}
  1919. { (exit 1); exit 1; }; }
  1920. fi
  1921. fi
  1922. fi
  1923. echo "$as_me:$LINENO: result: yes" >&5
  1924. echo "${ECHO_T}yes" >&6
  1925. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1926. ac_clean_files=$ac_clean_files_save
  1927. # Check the compiler produces executables we can run. If not, either
  1928. # the compiler is broken, or we cross compile.
  1929. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1930. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1931. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1932. echo "${ECHO_T}$cross_compiling" >&6
  1933. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1934. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1935. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1936. (eval $ac_link) 2>&5
  1937. ac_status=$?
  1938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1939. (exit $ac_status); }; then
  1940. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1941. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1942. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1943. # `rm'.
  1944. for ac_file in conftest.exe conftest conftest.*; do
  1945. test -f "$ac_file" || continue
  1946. case $ac_file in
  1947. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1948. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1949. export ac_cv_exeext
  1950. break;;
  1951. * ) break;;
  1952. esac
  1953. done
  1954. else
  1955. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1956. See \`config.log' for more details." >&5
  1957. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1958. See \`config.log' for more details." >&2;}
  1959. { (exit 1); exit 1; }; }
  1960. fi
  1961. rm -f conftest$ac_cv_exeext
  1962. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1963. echo "${ECHO_T}$ac_cv_exeext" >&6
  1964. rm -f conftest.$ac_ext
  1965. EXEEXT=$ac_cv_exeext
  1966. ac_exeext=$EXEEXT
  1967. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1968. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1969. if test "${ac_cv_objext+set}" = set; then
  1970. echo $ECHO_N "(cached) $ECHO_C" >&6
  1971. else
  1972. cat >conftest.$ac_ext <<_ACEOF
  1973. /* confdefs.h. */
  1974. _ACEOF
  1975. cat confdefs.h >>conftest.$ac_ext
  1976. cat >>conftest.$ac_ext <<_ACEOF
  1977. /* end confdefs.h. */
  1978. int
  1979. main ()
  1980. {
  1981. ;
  1982. return 0;
  1983. }
  1984. _ACEOF
  1985. rm -f conftest.o conftest.obj
  1986. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1987. (eval $ac_compile) 2>&5
  1988. ac_status=$?
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); }; then
  1991. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1992. case $ac_file in
  1993. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1994. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1995. break;;
  1996. esac
  1997. done
  1998. else
  1999. echo "$as_me: failed program was:" >&5
  2000. sed 's/^/| /' conftest.$ac_ext >&5
  2001. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2002. See \`config.log' for more details." >&5
  2003. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2004. See \`config.log' for more details." >&2;}
  2005. { (exit 1); exit 1; }; }
  2006. fi
  2007. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2008. fi
  2009. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2010. echo "${ECHO_T}$ac_cv_objext" >&6
  2011. OBJEXT=$ac_cv_objext
  2012. ac_objext=$OBJEXT
  2013. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2014. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2015. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2016. echo $ECHO_N "(cached) $ECHO_C" >&6
  2017. else
  2018. cat >conftest.$ac_ext <<_ACEOF
  2019. /* confdefs.h. */
  2020. _ACEOF
  2021. cat confdefs.h >>conftest.$ac_ext
  2022. cat >>conftest.$ac_ext <<_ACEOF
  2023. /* end confdefs.h. */
  2024. int
  2025. main ()
  2026. {
  2027. #ifndef __GNUC__
  2028. choke me
  2029. #endif
  2030. ;
  2031. return 0;
  2032. }
  2033. _ACEOF
  2034. rm -f conftest.$ac_objext
  2035. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2036. (eval $ac_compile) 2>conftest.er1
  2037. ac_status=$?
  2038. grep -v '^ *+' conftest.er1 >conftest.err
  2039. rm -f conftest.er1
  2040. cat conftest.err >&5
  2041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2042. (exit $ac_status); } &&
  2043. { ac_try='test -z "$ac_c_werror_flag"
  2044. || test ! -s conftest.err'
  2045. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2046. (eval $ac_try) 2>&5
  2047. ac_status=$?
  2048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2049. (exit $ac_status); }; } &&
  2050. { ac_try='test -s conftest.$ac_objext'
  2051. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2052. (eval $ac_try) 2>&5
  2053. ac_status=$?
  2054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2055. (exit $ac_status); }; }; then
  2056. ac_compiler_gnu=yes
  2057. else
  2058. echo "$as_me: failed program was:" >&5
  2059. sed 's/^/| /' conftest.$ac_ext >&5
  2060. ac_compiler_gnu=no
  2061. fi
  2062. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2063. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2064. fi
  2065. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2066. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2067. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2068. ac_test_CFLAGS=${CFLAGS+set}
  2069. ac_save_CFLAGS=$CFLAGS
  2070. CFLAGS="-g"
  2071. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2072. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2073. if test "${ac_cv_prog_cc_g+set}" = set; then
  2074. echo $ECHO_N "(cached) $ECHO_C" >&6
  2075. else
  2076. cat >conftest.$ac_ext <<_ACEOF
  2077. /* confdefs.h. */
  2078. _ACEOF
  2079. cat confdefs.h >>conftest.$ac_ext
  2080. cat >>conftest.$ac_ext <<_ACEOF
  2081. /* end confdefs.h. */
  2082. int
  2083. main ()
  2084. {
  2085. ;
  2086. return 0;
  2087. }
  2088. _ACEOF
  2089. rm -f conftest.$ac_objext
  2090. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2091. (eval $ac_compile) 2>conftest.er1
  2092. ac_status=$?
  2093. grep -v '^ *+' conftest.er1 >conftest.err
  2094. rm -f conftest.er1
  2095. cat conftest.err >&5
  2096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2097. (exit $ac_status); } &&
  2098. { ac_try='test -z "$ac_c_werror_flag"
  2099. || test ! -s conftest.err'
  2100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2101. (eval $ac_try) 2>&5
  2102. ac_status=$?
  2103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2104. (exit $ac_status); }; } &&
  2105. { ac_try='test -s conftest.$ac_objext'
  2106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2107. (eval $ac_try) 2>&5
  2108. ac_status=$?
  2109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2110. (exit $ac_status); }; }; then
  2111. ac_cv_prog_cc_g=yes
  2112. else
  2113. echo "$as_me: failed program was:" >&5
  2114. sed 's/^/| /' conftest.$ac_ext >&5
  2115. ac_cv_prog_cc_g=no
  2116. fi
  2117. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2118. fi
  2119. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2120. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2121. if test "$ac_test_CFLAGS" = set; then
  2122. CFLAGS=$ac_save_CFLAGS
  2123. elif test $ac_cv_prog_cc_g = yes; then
  2124. if test "$GCC" = yes; then
  2125. CFLAGS="-g -O2"
  2126. else
  2127. CFLAGS="-g"
  2128. fi
  2129. else
  2130. if test "$GCC" = yes; then
  2131. CFLAGS="-O2"
  2132. else
  2133. CFLAGS=
  2134. fi
  2135. fi
  2136. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2137. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2138. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2139. echo $ECHO_N "(cached) $ECHO_C" >&6
  2140. else
  2141. ac_cv_prog_cc_stdc=no
  2142. ac_save_CC=$CC
  2143. cat >conftest.$ac_ext <<_ACEOF
  2144. /* confdefs.h. */
  2145. _ACEOF
  2146. cat confdefs.h >>conftest.$ac_ext
  2147. cat >>conftest.$ac_ext <<_ACEOF
  2148. /* end confdefs.h. */
  2149. #include <stdarg.h>
  2150. #include <stdio.h>
  2151. #include <sys/types.h>
  2152. #include <sys/stat.h>
  2153. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2154. struct buf { int x; };
  2155. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2156. static char *e (p, i)
  2157. char **p;
  2158. int i;
  2159. {
  2160. return p[i];
  2161. }
  2162. static char *f (char * (*g) (char **, int), char **p, ...)
  2163. {
  2164. char *s;
  2165. va_list v;
  2166. va_start (v,p);
  2167. s = g (p, va_arg (v,int));
  2168. va_end (v);
  2169. return s;
  2170. }
  2171. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2172. function prototypes and stuff, but not '\xHH' hex character constants.
  2173. These don't provoke an error unfortunately, instead are silently treated
  2174. as 'x'. The following induces an error, until -std1 is added to get
  2175. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2176. array size at least. It's necessary to write '\x00'==0 to get something
  2177. that's true only with -std1. */
  2178. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2179. int test (int i, double x);
  2180. struct s1 {int (*f) (int a);};
  2181. struct s2 {int (*f) (double a);};
  2182. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2183. int argc;
  2184. char **argv;
  2185. int
  2186. main ()
  2187. {
  2188. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2189. ;
  2190. return 0;
  2191. }
  2192. _ACEOF
  2193. # Don't try gcc -ansi; that turns off useful extensions and
  2194. # breaks some systems' header files.
  2195. # AIX -qlanglvl=ansi
  2196. # Ultrix and OSF/1 -std1
  2197. # HP-UX 10.20 and later -Ae
  2198. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2199. # SVR4 -Xc -D__EXTENSIONS__
  2200. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2201. do
  2202. CC="$ac_save_CC $ac_arg"
  2203. rm -f conftest.$ac_objext
  2204. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2205. (eval $ac_compile) 2>conftest.er1
  2206. ac_status=$?
  2207. grep -v '^ *+' conftest.er1 >conftest.err
  2208. rm -f conftest.er1
  2209. cat conftest.err >&5
  2210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2211. (exit $ac_status); } &&
  2212. { ac_try='test -z "$ac_c_werror_flag"
  2213. || test ! -s conftest.err'
  2214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2215. (eval $ac_try) 2>&5
  2216. ac_status=$?
  2217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2218. (exit $ac_status); }; } &&
  2219. { ac_try='test -s conftest.$ac_objext'
  2220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2221. (eval $ac_try) 2>&5
  2222. ac_status=$?
  2223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2224. (exit $ac_status); }; }; then
  2225. ac_cv_prog_cc_stdc=$ac_arg
  2226. break
  2227. else
  2228. echo "$as_me: failed program was:" >&5
  2229. sed 's/^/| /' conftest.$ac_ext >&5
  2230. fi
  2231. rm -f conftest.err conftest.$ac_objext
  2232. done
  2233. rm -f conftest.$ac_ext conftest.$ac_objext
  2234. CC=$ac_save_CC
  2235. fi
  2236. case "x$ac_cv_prog_cc_stdc" in
  2237. x|xno)
  2238. echo "$as_me:$LINENO: result: none needed" >&5
  2239. echo "${ECHO_T}none needed" >&6 ;;
  2240. *)
  2241. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2242. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2243. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2244. esac
  2245. # Some people use a C++ compiler to compile C. Since we use `exit',
  2246. # in C++ we need to declare it. In case someone uses the same compiler
  2247. # for both compiling C and C++ we need to have the C++ compiler decide
  2248. # the declaration of exit, since it's the most demanding environment.
  2249. cat >conftest.$ac_ext <<_ACEOF
  2250. #ifndef __cplusplus
  2251. choke me
  2252. #endif
  2253. _ACEOF
  2254. rm -f conftest.$ac_objext
  2255. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2256. (eval $ac_compile) 2>conftest.er1
  2257. ac_status=$?
  2258. grep -v '^ *+' conftest.er1 >conftest.err
  2259. rm -f conftest.er1
  2260. cat conftest.err >&5
  2261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2262. (exit $ac_status); } &&
  2263. { ac_try='test -z "$ac_c_werror_flag"
  2264. || test ! -s conftest.err'
  2265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2266. (eval $ac_try) 2>&5
  2267. ac_status=$?
  2268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2269. (exit $ac_status); }; } &&
  2270. { ac_try='test -s conftest.$ac_objext'
  2271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2272. (eval $ac_try) 2>&5
  2273. ac_status=$?
  2274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2275. (exit $ac_status); }; }; then
  2276. for ac_declaration in \
  2277. '' \
  2278. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2279. 'extern "C" void std::exit (int); using std::exit;' \
  2280. 'extern "C" void exit (int) throw ();' \
  2281. 'extern "C" void exit (int);' \
  2282. 'void exit (int);'
  2283. do
  2284. cat >conftest.$ac_ext <<_ACEOF
  2285. /* confdefs.h. */
  2286. _ACEOF
  2287. cat confdefs.h >>conftest.$ac_ext
  2288. cat >>conftest.$ac_ext <<_ACEOF
  2289. /* end confdefs.h. */
  2290. $ac_declaration
  2291. #include <stdlib.h>
  2292. int
  2293. main ()
  2294. {
  2295. exit (42);
  2296. ;
  2297. return 0;
  2298. }
  2299. _ACEOF
  2300. rm -f conftest.$ac_objext
  2301. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2302. (eval $ac_compile) 2>conftest.er1
  2303. ac_status=$?
  2304. grep -v '^ *+' conftest.er1 >conftest.err
  2305. rm -f conftest.er1
  2306. cat conftest.err >&5
  2307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2308. (exit $ac_status); } &&
  2309. { ac_try='test -z "$ac_c_werror_flag"
  2310. || test ! -s conftest.err'
  2311. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2312. (eval $ac_try) 2>&5
  2313. ac_status=$?
  2314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2315. (exit $ac_status); }; } &&
  2316. { ac_try='test -s conftest.$ac_objext'
  2317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2318. (eval $ac_try) 2>&5
  2319. ac_status=$?
  2320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2321. (exit $ac_status); }; }; then
  2322. :
  2323. else
  2324. echo "$as_me: failed program was:" >&5
  2325. sed 's/^/| /' conftest.$ac_ext >&5
  2326. continue
  2327. fi
  2328. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2329. cat >conftest.$ac_ext <<_ACEOF
  2330. /* confdefs.h. */
  2331. _ACEOF
  2332. cat confdefs.h >>conftest.$ac_ext
  2333. cat >>conftest.$ac_ext <<_ACEOF
  2334. /* end confdefs.h. */
  2335. $ac_declaration
  2336. int
  2337. main ()
  2338. {
  2339. exit (42);
  2340. ;
  2341. return 0;
  2342. }
  2343. _ACEOF
  2344. rm -f conftest.$ac_objext
  2345. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2346. (eval $ac_compile) 2>conftest.er1
  2347. ac_status=$?
  2348. grep -v '^ *+' conftest.er1 >conftest.err
  2349. rm -f conftest.er1
  2350. cat conftest.err >&5
  2351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2352. (exit $ac_status); } &&
  2353. { ac_try='test -z "$ac_c_werror_flag"
  2354. || test ! -s conftest.err'
  2355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2356. (eval $ac_try) 2>&5
  2357. ac_status=$?
  2358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2359. (exit $ac_status); }; } &&
  2360. { ac_try='test -s conftest.$ac_objext'
  2361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2362. (eval $ac_try) 2>&5
  2363. ac_status=$?
  2364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2365. (exit $ac_status); }; }; then
  2366. break
  2367. else
  2368. echo "$as_me: failed program was:" >&5
  2369. sed 's/^/| /' conftest.$ac_ext >&5
  2370. fi
  2371. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2372. done
  2373. rm -f conftest*
  2374. if test -n "$ac_declaration"; then
  2375. echo '#ifdef __cplusplus' >>confdefs.h
  2376. echo $ac_declaration >>confdefs.h
  2377. echo '#endif' >>confdefs.h
  2378. fi
  2379. else
  2380. echo "$as_me: failed program was:" >&5
  2381. sed 's/^/| /' conftest.$ac_ext >&5
  2382. fi
  2383. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2384. ac_ext=c
  2385. ac_cpp='$CPP $CPPFLAGS'
  2386. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2387. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2388. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2389. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  2390. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  2391. if test "${lt_cv_path_SED+set}" = set; then
  2392. echo $ECHO_N "(cached) $ECHO_C" >&6
  2393. else
  2394. # Loop through the user's path and test for sed and gsed.
  2395. # Then use that list of sed's as ones to test for truncation.
  2396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2397. for as_dir in $PATH
  2398. do
  2399. IFS=$as_save_IFS
  2400. test -z "$as_dir" && as_dir=.
  2401. for lt_ac_prog in sed gsed; do
  2402. for ac_exec_ext in '' $ac_executable_extensions; do
  2403. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  2404. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  2405. fi
  2406. done
  2407. done
  2408. done
  2409. lt_ac_max=0
  2410. lt_ac_count=0
  2411. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  2412. # along with /bin/sed that truncates output.
  2413. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  2414. test ! -f $lt_ac_sed && continue
  2415. cat /dev/null > conftest.in
  2416. lt_ac_count=0
  2417. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  2418. # Check for GNU sed and select it if it is found.
  2419. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  2420. lt_cv_path_SED=$lt_ac_sed
  2421. break
  2422. fi
  2423. while true; do
  2424. cat conftest.in conftest.in >conftest.tmp
  2425. mv conftest.tmp conftest.in
  2426. cp conftest.in conftest.nl
  2427. echo >>conftest.nl
  2428. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  2429. cmp -s conftest.out conftest.nl || break
  2430. # 10000 chars as input seems more than enough
  2431. test $lt_ac_count -gt 10 && break
  2432. lt_ac_count=`expr $lt_ac_count + 1`
  2433. if test $lt_ac_count -gt $lt_ac_max; then
  2434. lt_ac_max=$lt_ac_count
  2435. lt_cv_path_SED=$lt_ac_sed
  2436. fi
  2437. done
  2438. done
  2439. fi
  2440. SED=$lt_cv_path_SED
  2441. echo "$as_me:$LINENO: result: $SED" >&5
  2442. echo "${ECHO_T}$SED" >&6
  2443. echo "$as_me:$LINENO: checking for egrep" >&5
  2444. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2445. if test "${ac_cv_prog_egrep+set}" = set; then
  2446. echo $ECHO_N "(cached) $ECHO_C" >&6
  2447. else
  2448. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2449. then ac_cv_prog_egrep='grep -E'
  2450. else ac_cv_prog_egrep='egrep'
  2451. fi
  2452. fi
  2453. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2454. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2455. EGREP=$ac_cv_prog_egrep
  2456. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2457. if test "${with_gnu_ld+set}" = set; then
  2458. withval="$with_gnu_ld"
  2459. test "$withval" = no || with_gnu_ld=yes
  2460. else
  2461. with_gnu_ld=no
  2462. fi;
  2463. ac_prog=ld
  2464. if test "$GCC" = yes; then
  2465. # Check if gcc -print-prog-name=ld gives a path.
  2466. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  2467. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  2468. case $host in
  2469. *-*-mingw*)
  2470. # gcc leaves a trailing carriage return which upsets mingw
  2471. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2472. *)
  2473. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2474. esac
  2475. case $ac_prog in
  2476. # Accept absolute paths.
  2477. [\\/]* | ?:[\\/]*)
  2478. re_direlt='/[^/][^/]*/\.\./'
  2479. # Canonicalize the pathname of ld
  2480. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2481. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2482. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2483. done
  2484. test -z "$LD" && LD="$ac_prog"
  2485. ;;
  2486. "")
  2487. # If it fails, then pretend we aren't using GCC.
  2488. ac_prog=ld
  2489. ;;
  2490. *)
  2491. # If it is relative, then search for the first ld in PATH.
  2492. with_gnu_ld=unknown
  2493. ;;
  2494. esac
  2495. elif test "$with_gnu_ld" = yes; then
  2496. echo "$as_me:$LINENO: checking for GNU ld" >&5
  2497. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  2498. else
  2499. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  2500. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  2501. fi
  2502. if test "${lt_cv_path_LD+set}" = set; then
  2503. echo $ECHO_N "(cached) $ECHO_C" >&6
  2504. else
  2505. if test -z "$LD"; then
  2506. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2507. for ac_dir in $PATH; do
  2508. IFS="$lt_save_ifs"
  2509. test -z "$ac_dir" && ac_dir=.
  2510. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2511. lt_cv_path_LD="$ac_dir/$ac_prog"
  2512. # Check to see if the program is GNU ld. I'd rather use --version,
  2513. # but apparently some variants of GNU ld only accept -v.
  2514. # Break only if it was the GNU/non-GNU ld that we prefer.
  2515. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2516. *GNU* | *'with BFD'*)
  2517. test "$with_gnu_ld" != no && break
  2518. ;;
  2519. *)
  2520. test "$with_gnu_ld" != yes && break
  2521. ;;
  2522. esac
  2523. fi
  2524. done
  2525. IFS="$lt_save_ifs"
  2526. else
  2527. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2528. fi
  2529. fi
  2530. LD="$lt_cv_path_LD"
  2531. if test -n "$LD"; then
  2532. echo "$as_me:$LINENO: result: $LD" >&5
  2533. echo "${ECHO_T}$LD" >&6
  2534. else
  2535. echo "$as_me:$LINENO: result: no" >&5
  2536. echo "${ECHO_T}no" >&6
  2537. fi
  2538. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  2539. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  2540. { (exit 1); exit 1; }; }
  2541. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  2542. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  2543. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  2544. echo $ECHO_N "(cached) $ECHO_C" >&6
  2545. else
  2546. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  2547. case `$LD -v 2>&1 </dev/null` in
  2548. *GNU* | *'with BFD'*)
  2549. lt_cv_prog_gnu_ld=yes
  2550. ;;
  2551. *)
  2552. lt_cv_prog_gnu_ld=no
  2553. ;;
  2554. esac
  2555. fi
  2556. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  2557. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  2558. with_gnu_ld=$lt_cv_prog_gnu_ld
  2559. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  2560. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  2561. if test "${lt_cv_ld_reload_flag+set}" = set; then
  2562. echo $ECHO_N "(cached) $ECHO_C" >&6
  2563. else
  2564. lt_cv_ld_reload_flag='-r'
  2565. fi
  2566. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  2567. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  2568. reload_flag=$lt_cv_ld_reload_flag
  2569. case $reload_flag in
  2570. "" | " "*) ;;
  2571. *) reload_flag=" $reload_flag" ;;
  2572. esac
  2573. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2574. case $host_os in
  2575. darwin*)
  2576. if test "$GCC" = yes; then
  2577. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2578. else
  2579. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2580. fi
  2581. ;;
  2582. esac
  2583. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  2584. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  2585. if test "${lt_cv_path_NM+set}" = set; then
  2586. echo $ECHO_N "(cached) $ECHO_C" >&6
  2587. else
  2588. if test -n "$NM"; then
  2589. # Let the user override the test.
  2590. lt_cv_path_NM="$NM"
  2591. else
  2592. lt_nm_to_check="${ac_tool_prefix}nm"
  2593. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  2594. lt_nm_to_check="$lt_nm_to_check nm"
  2595. fi
  2596. for lt_tmp_nm in $lt_nm_to_check; do
  2597. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2598. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  2599. IFS="$lt_save_ifs"
  2600. test -z "$ac_dir" && ac_dir=.
  2601. tmp_nm="$ac_dir/$lt_tmp_nm"
  2602. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2603. # Check to see if the nm accepts a BSD-compat flag.
  2604. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2605. # nm: unknown option "B" ignored
  2606. # Tru64's nm complains that /dev/null is an invalid object file
  2607. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2608. */dev/null* | *'Invalid file or object type'*)
  2609. lt_cv_path_NM="$tmp_nm -B"
  2610. break
  2611. ;;
  2612. *)
  2613. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2614. */dev/null*)
  2615. lt_cv_path_NM="$tmp_nm -p"
  2616. break
  2617. ;;
  2618. *)
  2619. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2620. continue # so that we can try to find one that supports BSD flags
  2621. ;;
  2622. esac
  2623. ;;
  2624. esac
  2625. fi
  2626. done
  2627. IFS="$lt_save_ifs"
  2628. done
  2629. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2630. fi
  2631. fi
  2632. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  2633. echo "${ECHO_T}$lt_cv_path_NM" >&6
  2634. NM="$lt_cv_path_NM"
  2635. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  2636. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2637. LN_S=$as_ln_s
  2638. if test "$LN_S" = "ln -s"; then
  2639. echo "$as_me:$LINENO: result: yes" >&5
  2640. echo "${ECHO_T}yes" >&6
  2641. else
  2642. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  2643. echo "${ECHO_T}no, using $LN_S" >&6
  2644. fi
  2645. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  2646. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  2647. if test "${lt_cv_deplibs_check_method+set}" = set; then
  2648. echo $ECHO_N "(cached) $ECHO_C" >&6
  2649. else
  2650. lt_cv_file_magic_cmd='$MAGIC_CMD'
  2651. lt_cv_file_magic_test_file=
  2652. lt_cv_deplibs_check_method='unknown'
  2653. # Need to set the preceding variable on all platforms that support
  2654. # interlibrary dependencies.
  2655. # 'none' -- dependencies not supported.
  2656. # `unknown' -- same as none, but documents that we really don't know.
  2657. # 'pass_all' -- all dependencies passed with no checks.
  2658. # 'test_compile' -- check by making test program.
  2659. # 'file_magic [[regex]]' -- check by looking for files in library path
  2660. # which responds to the $file_magic_cmd with a given extended regex.
  2661. # If you have `file' or equivalent on your system and you're not sure
  2662. # whether `pass_all' will *always* work, you probably want this one.
  2663. case $host_os in
  2664. aix4* | aix5*)
  2665. lt_cv_deplibs_check_method=pass_all
  2666. ;;
  2667. beos*)
  2668. lt_cv_deplibs_check_method=pass_all
  2669. ;;
  2670. bsdi[45]*)
  2671. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  2672. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2673. lt_cv_file_magic_test_file=/shlib/libc.so
  2674. ;;
  2675. cygwin*)
  2676. # func_win32_libid is a shell function defined in ltmain.sh
  2677. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2678. lt_cv_file_magic_cmd='func_win32_libid'
  2679. ;;
  2680. mingw* | pw32*)
  2681. # Base MSYS/MinGW do not provide the 'file' command needed by
  2682. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  2683. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2684. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2685. ;;
  2686. darwin* | rhapsody*)
  2687. lt_cv_deplibs_check_method=pass_all
  2688. ;;
  2689. freebsd* | kfreebsd*-gnu | dragonfly*)
  2690. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2691. case $host_cpu in
  2692. i*86 )
  2693. # Not sure whether the presence of OpenBSD here was a mistake.
  2694. # Let's accept both of them until this is cleared up.
  2695. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  2696. lt_cv_file_magic_cmd=/usr/bin/file
  2697. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2698. ;;
  2699. esac
  2700. else
  2701. lt_cv_deplibs_check_method=pass_all
  2702. fi
  2703. ;;
  2704. gnu*)
  2705. lt_cv_deplibs_check_method=pass_all
  2706. ;;
  2707. hpux10.20* | hpux11*)
  2708. lt_cv_file_magic_cmd=/usr/bin/file
  2709. case $host_cpu in
  2710. ia64*)
  2711. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  2712. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2713. ;;
  2714. hppa*64*)
  2715. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  2716. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2717. ;;
  2718. *)
  2719. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  2720. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2721. ;;
  2722. esac
  2723. ;;
  2724. interix3*)
  2725. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2726. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  2727. ;;
  2728. irix5* | irix6* | nonstopux*)
  2729. case $LD in
  2730. *-32|*"-32 ") libmagic=32-bit;;
  2731. *-n32|*"-n32 ") libmagic=N32;;
  2732. *-64|*"-64 ") libmagic=64-bit;;
  2733. *) libmagic=never-match;;
  2734. esac
  2735. lt_cv_deplibs_check_method=pass_all
  2736. ;;
  2737. # This must be Linux ELF.
  2738. linux*)
  2739. lt_cv_deplibs_check_method=pass_all
  2740. ;;
  2741. netbsd*)
  2742. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2743. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2744. else
  2745. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  2746. fi
  2747. ;;
  2748. newos6*)
  2749. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  2750. lt_cv_file_magic_cmd=/usr/bin/file
  2751. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2752. ;;
  2753. nto-qnx*)
  2754. lt_cv_deplibs_check_method=unknown
  2755. ;;
  2756. openbsd*)
  2757. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2758. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  2759. else
  2760. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  2761. fi
  2762. ;;
  2763. osf3* | osf4* | osf5*)
  2764. lt_cv_deplibs_check_method=pass_all
  2765. ;;
  2766. solaris*)
  2767. lt_cv_deplibs_check_method=pass_all
  2768. ;;
  2769. sysv4 | sysv4.3*)
  2770. case $host_vendor in
  2771. motorola)
  2772. 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]'
  2773. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2774. ;;
  2775. ncr)
  2776. lt_cv_deplibs_check_method=pass_all
  2777. ;;
  2778. sequent)
  2779. lt_cv_file_magic_cmd='/bin/file'
  2780. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  2781. ;;
  2782. sni)
  2783. lt_cv_file_magic_cmd='/bin/file'
  2784. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  2785. lt_cv_file_magic_test_file=/lib/libc.so
  2786. ;;
  2787. siemens)
  2788. lt_cv_deplibs_check_method=pass_all
  2789. ;;
  2790. pc)
  2791. lt_cv_deplibs_check_method=pass_all
  2792. ;;
  2793. esac
  2794. ;;
  2795. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2796. lt_cv_deplibs_check_method=pass_all
  2797. ;;
  2798. esac
  2799. fi
  2800. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  2801. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  2802. file_magic_cmd=$lt_cv_file_magic_cmd
  2803. deplibs_check_method=$lt_cv_deplibs_check_method
  2804. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2805. # If no C compiler was specified, use CC.
  2806. LTCC=${LTCC-"$CC"}
  2807. # If no C compiler flags were specified, use CFLAGS.
  2808. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  2809. # Allow CC to be a program name with arguments.
  2810. compiler=$CC
  2811. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  2812. if test "${enable_libtool_lock+set}" = set; then
  2813. enableval="$enable_libtool_lock"
  2814. fi;
  2815. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2816. # Some flags need to be propagated to the compiler or linker for good
  2817. # libtool support.
  2818. case $host in
  2819. ia64-*-hpux*)
  2820. # Find out which ABI we are using.
  2821. echo 'int i;' > conftest.$ac_ext
  2822. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2823. (eval $ac_compile) 2>&5
  2824. ac_status=$?
  2825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2826. (exit $ac_status); }; then
  2827. case `/usr/bin/file conftest.$ac_objext` in
  2828. *ELF-32*)
  2829. HPUX_IA64_MODE="32"
  2830. ;;
  2831. *ELF-64*)
  2832. HPUX_IA64_MODE="64"
  2833. ;;
  2834. esac
  2835. fi
  2836. rm -rf conftest*
  2837. ;;
  2838. *-*-irix6*)
  2839. # Find out which ABI we are using.
  2840. echo '#line 3153 "configure"' > conftest.$ac_ext
  2841. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2842. (eval $ac_compile) 2>&5
  2843. ac_status=$?
  2844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2845. (exit $ac_status); }; then
  2846. if test "$lt_cv_prog_gnu_ld" = yes; then
  2847. case `/usr/bin/file conftest.$ac_objext` in
  2848. *32-bit*)
  2849. LD="${LD-ld} -melf32bsmip"
  2850. ;;
  2851. *N32*)
  2852. LD="${LD-ld} -melf32bmipn32"
  2853. ;;
  2854. *64-bit*)
  2855. LD="${LD-ld} -melf64bmip"
  2856. ;;
  2857. esac
  2858. else
  2859. case `/usr/bin/file conftest.$ac_objext` in
  2860. *32-bit*)
  2861. LD="${LD-ld} -32"
  2862. ;;
  2863. *N32*)
  2864. LD="${LD-ld} -n32"
  2865. ;;
  2866. *64-bit*)
  2867. LD="${LD-ld} -64"
  2868. ;;
  2869. esac
  2870. fi
  2871. fi
  2872. rm -rf conftest*
  2873. ;;
  2874. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  2875. # Find out which ABI we are using.
  2876. echo 'int i;' > conftest.$ac_ext
  2877. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2878. (eval $ac_compile) 2>&5
  2879. ac_status=$?
  2880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2881. (exit $ac_status); }; then
  2882. case `/usr/bin/file conftest.o` in
  2883. *32-bit*)
  2884. case $host in
  2885. x86_64-*linux*)
  2886. LD="${LD-ld} -m elf_i386"
  2887. ;;
  2888. ppc64-*linux*|powerpc64-*linux*)
  2889. LD="${LD-ld} -m elf32ppclinux"
  2890. ;;
  2891. s390x-*linux*)
  2892. LD="${LD-ld} -m elf_s390"
  2893. ;;
  2894. sparc64-*linux*)
  2895. LD="${LD-ld} -m elf32_sparc"
  2896. ;;
  2897. esac
  2898. ;;
  2899. *64-bit*)
  2900. case $host in
  2901. x86_64-*linux*)
  2902. LD="${LD-ld} -m elf_x86_64"
  2903. ;;
  2904. ppc*-*linux*|powerpc*-*linux*)
  2905. LD="${LD-ld} -m elf64ppc"
  2906. ;;
  2907. s390*-*linux*)
  2908. LD="${LD-ld} -m elf64_s390"
  2909. ;;
  2910. sparc*-*linux*)
  2911. LD="${LD-ld} -m elf64_sparc"
  2912. ;;
  2913. esac
  2914. ;;
  2915. esac
  2916. fi
  2917. rm -rf conftest*
  2918. ;;
  2919. *-*-sco3.2v5*)
  2920. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2921. SAVE_CFLAGS="$CFLAGS"
  2922. CFLAGS="$CFLAGS -belf"
  2923. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  2924. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  2925. if test "${lt_cv_cc_needs_belf+set}" = set; then
  2926. echo $ECHO_N "(cached) $ECHO_C" >&6
  2927. else
  2928. ac_ext=c
  2929. ac_cpp='$CPP $CPPFLAGS'
  2930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2933. cat >conftest.$ac_ext <<_ACEOF
  2934. /* confdefs.h. */
  2935. _ACEOF
  2936. cat confdefs.h >>conftest.$ac_ext
  2937. cat >>conftest.$ac_ext <<_ACEOF
  2938. /* end confdefs.h. */
  2939. int
  2940. main ()
  2941. {
  2942. ;
  2943. return 0;
  2944. }
  2945. _ACEOF
  2946. rm -f conftest.$ac_objext conftest$ac_exeext
  2947. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2948. (eval $ac_link) 2>conftest.er1
  2949. ac_status=$?
  2950. grep -v '^ *+' conftest.er1 >conftest.err
  2951. rm -f conftest.er1
  2952. cat conftest.err >&5
  2953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2954. (exit $ac_status); } &&
  2955. { ac_try='test -z "$ac_c_werror_flag"
  2956. || test ! -s conftest.err'
  2957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2958. (eval $ac_try) 2>&5
  2959. ac_status=$?
  2960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2961. (exit $ac_status); }; } &&
  2962. { ac_try='test -s conftest$ac_exeext'
  2963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2964. (eval $ac_try) 2>&5
  2965. ac_status=$?
  2966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2967. (exit $ac_status); }; }; then
  2968. lt_cv_cc_needs_belf=yes
  2969. else
  2970. echo "$as_me: failed program was:" >&5
  2971. sed 's/^/| /' conftest.$ac_ext >&5
  2972. lt_cv_cc_needs_belf=no
  2973. fi
  2974. rm -f conftest.err conftest.$ac_objext \
  2975. conftest$ac_exeext conftest.$ac_ext
  2976. ac_ext=c
  2977. ac_cpp='$CPP $CPPFLAGS'
  2978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2981. fi
  2982. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  2983. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  2984. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2985. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2986. CFLAGS="$SAVE_CFLAGS"
  2987. fi
  2988. ;;
  2989. sparc*-*solaris*)
  2990. # Find out which ABI we are using.
  2991. echo 'int i;' > conftest.$ac_ext
  2992. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2993. (eval $ac_compile) 2>&5
  2994. ac_status=$?
  2995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2996. (exit $ac_status); }; then
  2997. case `/usr/bin/file conftest.o` in
  2998. *64-bit*)
  2999. case $lt_cv_prog_gnu_ld in
  3000. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  3001. *) LD="${LD-ld} -64" ;;
  3002. esac
  3003. ;;
  3004. esac
  3005. fi
  3006. rm -rf conftest*
  3007. ;;
  3008. esac
  3009. need_locks="$enable_libtool_lock"
  3010. ac_ext=c
  3011. ac_cpp='$CPP $CPPFLAGS'
  3012. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3013. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3014. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3015. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3016. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3017. # On Suns, sometimes $CPP names a directory.
  3018. if test -n "$CPP" && test -d "$CPP"; then
  3019. CPP=
  3020. fi
  3021. if test -z "$CPP"; then
  3022. if test "${ac_cv_prog_CPP+set}" = set; then
  3023. echo $ECHO_N "(cached) $ECHO_C" >&6
  3024. else
  3025. # Double quotes because CPP needs to be expanded
  3026. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3027. do
  3028. ac_preproc_ok=false
  3029. for ac_c_preproc_warn_flag in '' yes
  3030. do
  3031. # Use a header file that comes with gcc, so configuring glibc
  3032. # with a fresh cross-compiler works.
  3033. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3034. # <limits.h> exists even on freestanding compilers.
  3035. # On the NeXT, cc -E runs the code through the compiler's parser,
  3036. # not just through cpp. "Syntax error" is here to catch this case.
  3037. cat >conftest.$ac_ext <<_ACEOF
  3038. /* confdefs.h. */
  3039. _ACEOF
  3040. cat confdefs.h >>conftest.$ac_ext
  3041. cat >>conftest.$ac_ext <<_ACEOF
  3042. /* end confdefs.h. */
  3043. #ifdef __STDC__
  3044. # include <limits.h>
  3045. #else
  3046. # include <assert.h>
  3047. #endif
  3048. Syntax error
  3049. _ACEOF
  3050. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3051. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3052. ac_status=$?
  3053. grep -v '^ *+' conftest.er1 >conftest.err
  3054. rm -f conftest.er1
  3055. cat conftest.err >&5
  3056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3057. (exit $ac_status); } >/dev/null; then
  3058. if test -s conftest.err; then
  3059. ac_cpp_err=$ac_c_preproc_warn_flag
  3060. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3061. else
  3062. ac_cpp_err=
  3063. fi
  3064. else
  3065. ac_cpp_err=yes
  3066. fi
  3067. if test -z "$ac_cpp_err"; then
  3068. :
  3069. else
  3070. echo "$as_me: failed program was:" >&5
  3071. sed 's/^/| /' conftest.$ac_ext >&5
  3072. # Broken: fails on valid input.
  3073. continue
  3074. fi
  3075. rm -f conftest.err conftest.$ac_ext
  3076. # OK, works on sane cases. Now check whether non-existent headers
  3077. # can be detected and how.
  3078. cat >conftest.$ac_ext <<_ACEOF
  3079. /* confdefs.h. */
  3080. _ACEOF
  3081. cat confdefs.h >>conftest.$ac_ext
  3082. cat >>conftest.$ac_ext <<_ACEOF
  3083. /* end confdefs.h. */
  3084. #include <ac_nonexistent.h>
  3085. _ACEOF
  3086. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3087. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3088. ac_status=$?
  3089. grep -v '^ *+' conftest.er1 >conftest.err
  3090. rm -f conftest.er1
  3091. cat conftest.err >&5
  3092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3093. (exit $ac_status); } >/dev/null; then
  3094. if test -s conftest.err; then
  3095. ac_cpp_err=$ac_c_preproc_warn_flag
  3096. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3097. else
  3098. ac_cpp_err=
  3099. fi
  3100. else
  3101. ac_cpp_err=yes
  3102. fi
  3103. if test -z "$ac_cpp_err"; then
  3104. # Broken: success on invalid input.
  3105. continue
  3106. else
  3107. echo "$as_me: failed program was:" >&5
  3108. sed 's/^/| /' conftest.$ac_ext >&5
  3109. # Passes both tests.
  3110. ac_preproc_ok=:
  3111. break
  3112. fi
  3113. rm -f conftest.err conftest.$ac_ext
  3114. done
  3115. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3116. rm -f conftest.err conftest.$ac_ext
  3117. if $ac_preproc_ok; then
  3118. break
  3119. fi
  3120. done
  3121. ac_cv_prog_CPP=$CPP
  3122. fi
  3123. CPP=$ac_cv_prog_CPP
  3124. else
  3125. ac_cv_prog_CPP=$CPP
  3126. fi
  3127. echo "$as_me:$LINENO: result: $CPP" >&5
  3128. echo "${ECHO_T}$CPP" >&6
  3129. ac_preproc_ok=false
  3130. for ac_c_preproc_warn_flag in '' yes
  3131. do
  3132. # Use a header file that comes with gcc, so configuring glibc
  3133. # with a fresh cross-compiler works.
  3134. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3135. # <limits.h> exists even on freestanding compilers.
  3136. # On the NeXT, cc -E runs the code through the compiler's parser,
  3137. # not just through cpp. "Syntax error" is here to catch this case.
  3138. cat >conftest.$ac_ext <<_ACEOF
  3139. /* confdefs.h. */
  3140. _ACEOF
  3141. cat confdefs.h >>conftest.$ac_ext
  3142. cat >>conftest.$ac_ext <<_ACEOF
  3143. /* end confdefs.h. */
  3144. #ifdef __STDC__
  3145. # include <limits.h>
  3146. #else
  3147. # include <assert.h>
  3148. #endif
  3149. Syntax error
  3150. _ACEOF
  3151. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3152. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3153. ac_status=$?
  3154. grep -v '^ *+' conftest.er1 >conftest.err
  3155. rm -f conftest.er1
  3156. cat conftest.err >&5
  3157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3158. (exit $ac_status); } >/dev/null; then
  3159. if test -s conftest.err; then
  3160. ac_cpp_err=$ac_c_preproc_warn_flag
  3161. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3162. else
  3163. ac_cpp_err=
  3164. fi
  3165. else
  3166. ac_cpp_err=yes
  3167. fi
  3168. if test -z "$ac_cpp_err"; then
  3169. :
  3170. else
  3171. echo "$as_me: failed program was:" >&5
  3172. sed 's/^/| /' conftest.$ac_ext >&5
  3173. # Broken: fails on valid input.
  3174. continue
  3175. fi
  3176. rm -f conftest.err conftest.$ac_ext
  3177. # OK, works on sane cases. Now check whether non-existent headers
  3178. # can be detected and how.
  3179. cat >conftest.$ac_ext <<_ACEOF
  3180. /* confdefs.h. */
  3181. _ACEOF
  3182. cat confdefs.h >>conftest.$ac_ext
  3183. cat >>conftest.$ac_ext <<_ACEOF
  3184. /* end confdefs.h. */
  3185. #include <ac_nonexistent.h>
  3186. _ACEOF
  3187. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3188. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3189. ac_status=$?
  3190. grep -v '^ *+' conftest.er1 >conftest.err
  3191. rm -f conftest.er1
  3192. cat conftest.err >&5
  3193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3194. (exit $ac_status); } >/dev/null; then
  3195. if test -s conftest.err; then
  3196. ac_cpp_err=$ac_c_preproc_warn_flag
  3197. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3198. else
  3199. ac_cpp_err=
  3200. fi
  3201. else
  3202. ac_cpp_err=yes
  3203. fi
  3204. if test -z "$ac_cpp_err"; then
  3205. # Broken: success on invalid input.
  3206. continue
  3207. else
  3208. echo "$as_me: failed program was:" >&5
  3209. sed 's/^/| /' conftest.$ac_ext >&5
  3210. # Passes both tests.
  3211. ac_preproc_ok=:
  3212. break
  3213. fi
  3214. rm -f conftest.err conftest.$ac_ext
  3215. done
  3216. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3217. rm -f conftest.err conftest.$ac_ext
  3218. if $ac_preproc_ok; then
  3219. :
  3220. else
  3221. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3222. See \`config.log' for more details." >&5
  3223. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3224. See \`config.log' for more details." >&2;}
  3225. { (exit 1); exit 1; }; }
  3226. fi
  3227. ac_ext=c
  3228. ac_cpp='$CPP $CPPFLAGS'
  3229. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3230. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3231. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3232. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3233. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3234. if test "${ac_cv_header_stdc+set}" = set; then
  3235. echo $ECHO_N "(cached) $ECHO_C" >&6
  3236. else
  3237. cat >conftest.$ac_ext <<_ACEOF
  3238. /* confdefs.h. */
  3239. _ACEOF
  3240. cat confdefs.h >>conftest.$ac_ext
  3241. cat >>conftest.$ac_ext <<_ACEOF
  3242. /* end confdefs.h. */
  3243. #include <stdlib.h>
  3244. #include <stdarg.h>
  3245. #include <string.h>
  3246. #include <float.h>
  3247. int
  3248. main ()
  3249. {
  3250. ;
  3251. return 0;
  3252. }
  3253. _ACEOF
  3254. rm -f conftest.$ac_objext
  3255. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3256. (eval $ac_compile) 2>conftest.er1
  3257. ac_status=$?
  3258. grep -v '^ *+' conftest.er1 >conftest.err
  3259. rm -f conftest.er1
  3260. cat conftest.err >&5
  3261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3262. (exit $ac_status); } &&
  3263. { ac_try='test -z "$ac_c_werror_flag"
  3264. || test ! -s conftest.err'
  3265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3266. (eval $ac_try) 2>&5
  3267. ac_status=$?
  3268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3269. (exit $ac_status); }; } &&
  3270. { ac_try='test -s conftest.$ac_objext'
  3271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3272. (eval $ac_try) 2>&5
  3273. ac_status=$?
  3274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3275. (exit $ac_status); }; }; then
  3276. ac_cv_header_stdc=yes
  3277. else
  3278. echo "$as_me: failed program was:" >&5
  3279. sed 's/^/| /' conftest.$ac_ext >&5
  3280. ac_cv_header_stdc=no
  3281. fi
  3282. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3283. if test $ac_cv_header_stdc = yes; then
  3284. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3285. cat >conftest.$ac_ext <<_ACEOF
  3286. /* confdefs.h. */
  3287. _ACEOF
  3288. cat confdefs.h >>conftest.$ac_ext
  3289. cat >>conftest.$ac_ext <<_ACEOF
  3290. /* end confdefs.h. */
  3291. #include <string.h>
  3292. _ACEOF
  3293. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3294. $EGREP "memchr" >/dev/null 2>&1; then
  3295. :
  3296. else
  3297. ac_cv_header_stdc=no
  3298. fi
  3299. rm -f conftest*
  3300. fi
  3301. if test $ac_cv_header_stdc = yes; then
  3302. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3303. cat >conftest.$ac_ext <<_ACEOF
  3304. /* confdefs.h. */
  3305. _ACEOF
  3306. cat confdefs.h >>conftest.$ac_ext
  3307. cat >>conftest.$ac_ext <<_ACEOF
  3308. /* end confdefs.h. */
  3309. #include <stdlib.h>
  3310. _ACEOF
  3311. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3312. $EGREP "free" >/dev/null 2>&1; then
  3313. :
  3314. else
  3315. ac_cv_header_stdc=no
  3316. fi
  3317. rm -f conftest*
  3318. fi
  3319. if test $ac_cv_header_stdc = yes; then
  3320. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3321. if test "$cross_compiling" = yes; then
  3322. :
  3323. else
  3324. cat >conftest.$ac_ext <<_ACEOF
  3325. /* confdefs.h. */
  3326. _ACEOF
  3327. cat confdefs.h >>conftest.$ac_ext
  3328. cat >>conftest.$ac_ext <<_ACEOF
  3329. /* end confdefs.h. */
  3330. #include <ctype.h>
  3331. #if ((' ' & 0x0FF) == 0x020)
  3332. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3333. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3334. #else
  3335. # define ISLOWER(c) \
  3336. (('a' <= (c) && (c) <= 'i') \
  3337. || ('j' <= (c) && (c) <= 'r') \
  3338. || ('s' <= (c) && (c) <= 'z'))
  3339. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3340. #endif
  3341. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3342. int
  3343. main ()
  3344. {
  3345. int i;
  3346. for (i = 0; i < 256; i++)
  3347. if (XOR (islower (i), ISLOWER (i))
  3348. || toupper (i) != TOUPPER (i))
  3349. exit(2);
  3350. exit (0);
  3351. }
  3352. _ACEOF
  3353. rm -f conftest$ac_exeext
  3354. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3355. (eval $ac_link) 2>&5
  3356. ac_status=$?
  3357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3358. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3360. (eval $ac_try) 2>&5
  3361. ac_status=$?
  3362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3363. (exit $ac_status); }; }; then
  3364. :
  3365. else
  3366. echo "$as_me: program exited with status $ac_status" >&5
  3367. echo "$as_me: failed program was:" >&5
  3368. sed 's/^/| /' conftest.$ac_ext >&5
  3369. ( exit $ac_status )
  3370. ac_cv_header_stdc=no
  3371. fi
  3372. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3373. fi
  3374. fi
  3375. fi
  3376. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3377. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3378. if test $ac_cv_header_stdc = yes; then
  3379. cat >>confdefs.h <<\_ACEOF
  3380. #define STDC_HEADERS 1
  3381. _ACEOF
  3382. fi
  3383. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3384. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3385. inttypes.h stdint.h unistd.h
  3386. do
  3387. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3388. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3389. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3390. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3391. echo $ECHO_N "(cached) $ECHO_C" >&6
  3392. else
  3393. cat >conftest.$ac_ext <<_ACEOF
  3394. /* confdefs.h. */
  3395. _ACEOF
  3396. cat confdefs.h >>conftest.$ac_ext
  3397. cat >>conftest.$ac_ext <<_ACEOF
  3398. /* end confdefs.h. */
  3399. $ac_includes_default
  3400. #include <$ac_header>
  3401. _ACEOF
  3402. rm -f conftest.$ac_objext
  3403. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3404. (eval $ac_compile) 2>conftest.er1
  3405. ac_status=$?
  3406. grep -v '^ *+' conftest.er1 >conftest.err
  3407. rm -f conftest.er1
  3408. cat conftest.err >&5
  3409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3410. (exit $ac_status); } &&
  3411. { ac_try='test -z "$ac_c_werror_flag"
  3412. || test ! -s conftest.err'
  3413. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3414. (eval $ac_try) 2>&5
  3415. ac_status=$?
  3416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3417. (exit $ac_status); }; } &&
  3418. { ac_try='test -s conftest.$ac_objext'
  3419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3420. (eval $ac_try) 2>&5
  3421. ac_status=$?
  3422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3423. (exit $ac_status); }; }; then
  3424. eval "$as_ac_Header=yes"
  3425. else
  3426. echo "$as_me: failed program was:" >&5
  3427. sed 's/^/| /' conftest.$ac_ext >&5
  3428. eval "$as_ac_Header=no"
  3429. fi
  3430. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3431. fi
  3432. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3433. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3434. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3435. cat >>confdefs.h <<_ACEOF
  3436. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3437. _ACEOF
  3438. fi
  3439. done
  3440. for ac_header in dlfcn.h
  3441. do
  3442. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3443. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3444. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3445. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3446. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3447. echo $ECHO_N "(cached) $ECHO_C" >&6
  3448. fi
  3449. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3450. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3451. else
  3452. # Is the header compilable?
  3453. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3454. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3455. cat >conftest.$ac_ext <<_ACEOF
  3456. /* confdefs.h. */
  3457. _ACEOF
  3458. cat confdefs.h >>conftest.$ac_ext
  3459. cat >>conftest.$ac_ext <<_ACEOF
  3460. /* end confdefs.h. */
  3461. $ac_includes_default
  3462. #include <$ac_header>
  3463. _ACEOF
  3464. rm -f conftest.$ac_objext
  3465. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3466. (eval $ac_compile) 2>conftest.er1
  3467. ac_status=$?
  3468. grep -v '^ *+' conftest.er1 >conftest.err
  3469. rm -f conftest.er1
  3470. cat conftest.err >&5
  3471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3472. (exit $ac_status); } &&
  3473. { ac_try='test -z "$ac_c_werror_flag"
  3474. || test ! -s conftest.err'
  3475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3476. (eval $ac_try) 2>&5
  3477. ac_status=$?
  3478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3479. (exit $ac_status); }; } &&
  3480. { ac_try='test -s conftest.$ac_objext'
  3481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3482. (eval $ac_try) 2>&5
  3483. ac_status=$?
  3484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3485. (exit $ac_status); }; }; then
  3486. ac_header_compiler=yes
  3487. else
  3488. echo "$as_me: failed program was:" >&5
  3489. sed 's/^/| /' conftest.$ac_ext >&5
  3490. ac_header_compiler=no
  3491. fi
  3492. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3493. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3494. echo "${ECHO_T}$ac_header_compiler" >&6
  3495. # Is the header present?
  3496. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3497. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3498. cat >conftest.$ac_ext <<_ACEOF
  3499. /* confdefs.h. */
  3500. _ACEOF
  3501. cat confdefs.h >>conftest.$ac_ext
  3502. cat >>conftest.$ac_ext <<_ACEOF
  3503. /* end confdefs.h. */
  3504. #include <$ac_header>
  3505. _ACEOF
  3506. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3507. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3508. ac_status=$?
  3509. grep -v '^ *+' conftest.er1 >conftest.err
  3510. rm -f conftest.er1
  3511. cat conftest.err >&5
  3512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3513. (exit $ac_status); } >/dev/null; then
  3514. if test -s conftest.err; then
  3515. ac_cpp_err=$ac_c_preproc_warn_flag
  3516. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3517. else
  3518. ac_cpp_err=
  3519. fi
  3520. else
  3521. ac_cpp_err=yes
  3522. fi
  3523. if test -z "$ac_cpp_err"; then
  3524. ac_header_preproc=yes
  3525. else
  3526. echo "$as_me: failed program was:" >&5
  3527. sed 's/^/| /' conftest.$ac_ext >&5
  3528. ac_header_preproc=no
  3529. fi
  3530. rm -f conftest.err conftest.$ac_ext
  3531. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3532. echo "${ECHO_T}$ac_header_preproc" >&6
  3533. # So? What about this header?
  3534. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3535. yes:no: )
  3536. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3537. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3538. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3539. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3540. ac_header_preproc=yes
  3541. ;;
  3542. no:yes:* )
  3543. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3544. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3545. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3546. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3547. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3548. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3549. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3550. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3551. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3552. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3553. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3554. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3555. (
  3556. cat <<\_ASBOX
  3557. ## ------------------------------------------ ##
  3558. ## Report this to the AC_PACKAGE_NAME lists. ##
  3559. ## ------------------------------------------ ##
  3560. _ASBOX
  3561. ) |
  3562. sed "s/^/$as_me: WARNING: /" >&2
  3563. ;;
  3564. esac
  3565. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3566. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3567. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3568. echo $ECHO_N "(cached) $ECHO_C" >&6
  3569. else
  3570. eval "$as_ac_Header=\$ac_header_preproc"
  3571. fi
  3572. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3573. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3574. fi
  3575. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3576. cat >>confdefs.h <<_ACEOF
  3577. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3578. _ACEOF
  3579. fi
  3580. done
  3581. ac_ext=cc
  3582. ac_cpp='$CXXCPP $CPPFLAGS'
  3583. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3584. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3585. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3586. if test -n "$ac_tool_prefix"; then
  3587. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3588. do
  3589. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3590. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3591. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3592. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3593. if test "${ac_cv_prog_CXX+set}" = set; then
  3594. echo $ECHO_N "(cached) $ECHO_C" >&6
  3595. else
  3596. if test -n "$CXX"; then
  3597. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3598. else
  3599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3600. for as_dir in $PATH
  3601. do
  3602. IFS=$as_save_IFS
  3603. test -z "$as_dir" && as_dir=.
  3604. for ac_exec_ext in '' $ac_executable_extensions; do
  3605. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3606. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3607. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3608. break 2
  3609. fi
  3610. done
  3611. done
  3612. fi
  3613. fi
  3614. CXX=$ac_cv_prog_CXX
  3615. if test -n "$CXX"; then
  3616. echo "$as_me:$LINENO: result: $CXX" >&5
  3617. echo "${ECHO_T}$CXX" >&6
  3618. else
  3619. echo "$as_me:$LINENO: result: no" >&5
  3620. echo "${ECHO_T}no" >&6
  3621. fi
  3622. test -n "$CXX" && break
  3623. done
  3624. fi
  3625. if test -z "$CXX"; then
  3626. ac_ct_CXX=$CXX
  3627. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3628. do
  3629. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3630. set dummy $ac_prog; ac_word=$2
  3631. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3632. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3633. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3634. echo $ECHO_N "(cached) $ECHO_C" >&6
  3635. else
  3636. if test -n "$ac_ct_CXX"; then
  3637. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3638. else
  3639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3640. for as_dir in $PATH
  3641. do
  3642. IFS=$as_save_IFS
  3643. test -z "$as_dir" && as_dir=.
  3644. for ac_exec_ext in '' $ac_executable_extensions; do
  3645. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3646. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3647. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3648. break 2
  3649. fi
  3650. done
  3651. done
  3652. fi
  3653. fi
  3654. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3655. if test -n "$ac_ct_CXX"; then
  3656. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3657. echo "${ECHO_T}$ac_ct_CXX" >&6
  3658. else
  3659. echo "$as_me:$LINENO: result: no" >&5
  3660. echo "${ECHO_T}no" >&6
  3661. fi
  3662. test -n "$ac_ct_CXX" && break
  3663. done
  3664. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  3665. CXX=$ac_ct_CXX
  3666. fi
  3667. # Provide some information about the compiler.
  3668. echo "$as_me:$LINENO:" \
  3669. "checking for C++ compiler version" >&5
  3670. ac_compiler=`set X $ac_compile; echo $2`
  3671. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3672. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3673. ac_status=$?
  3674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3675. (exit $ac_status); }
  3676. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3677. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3678. ac_status=$?
  3679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3680. (exit $ac_status); }
  3681. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3682. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3683. ac_status=$?
  3684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3685. (exit $ac_status); }
  3686. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3687. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  3688. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3689. echo $ECHO_N "(cached) $ECHO_C" >&6
  3690. else
  3691. cat >conftest.$ac_ext <<_ACEOF
  3692. /* confdefs.h. */
  3693. _ACEOF
  3694. cat confdefs.h >>conftest.$ac_ext
  3695. cat >>conftest.$ac_ext <<_ACEOF
  3696. /* end confdefs.h. */
  3697. int
  3698. main ()
  3699. {
  3700. #ifndef __GNUC__
  3701. choke me
  3702. #endif
  3703. ;
  3704. return 0;
  3705. }
  3706. _ACEOF
  3707. rm -f conftest.$ac_objext
  3708. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3709. (eval $ac_compile) 2>conftest.er1
  3710. ac_status=$?
  3711. grep -v '^ *+' conftest.er1 >conftest.err
  3712. rm -f conftest.er1
  3713. cat conftest.err >&5
  3714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3715. (exit $ac_status); } &&
  3716. { ac_try='test -z "$ac_cxx_werror_flag"
  3717. || test ! -s conftest.err'
  3718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3719. (eval $ac_try) 2>&5
  3720. ac_status=$?
  3721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3722. (exit $ac_status); }; } &&
  3723. { ac_try='test -s conftest.$ac_objext'
  3724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3725. (eval $ac_try) 2>&5
  3726. ac_status=$?
  3727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3728. (exit $ac_status); }; }; then
  3729. ac_compiler_gnu=yes
  3730. else
  3731. echo "$as_me: failed program was:" >&5
  3732. sed 's/^/| /' conftest.$ac_ext >&5
  3733. ac_compiler_gnu=no
  3734. fi
  3735. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3736. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3737. fi
  3738. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3739. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  3740. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3741. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3742. ac_save_CXXFLAGS=$CXXFLAGS
  3743. CXXFLAGS="-g"
  3744. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3745. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  3746. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3747. echo $ECHO_N "(cached) $ECHO_C" >&6
  3748. else
  3749. cat >conftest.$ac_ext <<_ACEOF
  3750. /* confdefs.h. */
  3751. _ACEOF
  3752. cat confdefs.h >>conftest.$ac_ext
  3753. cat >>conftest.$ac_ext <<_ACEOF
  3754. /* end confdefs.h. */
  3755. int
  3756. main ()
  3757. {
  3758. ;
  3759. return 0;
  3760. }
  3761. _ACEOF
  3762. rm -f conftest.$ac_objext
  3763. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3764. (eval $ac_compile) 2>conftest.er1
  3765. ac_status=$?
  3766. grep -v '^ *+' conftest.er1 >conftest.err
  3767. rm -f conftest.er1
  3768. cat conftest.err >&5
  3769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3770. (exit $ac_status); } &&
  3771. { ac_try='test -z "$ac_cxx_werror_flag"
  3772. || test ! -s conftest.err'
  3773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3774. (eval $ac_try) 2>&5
  3775. ac_status=$?
  3776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3777. (exit $ac_status); }; } &&
  3778. { ac_try='test -s conftest.$ac_objext'
  3779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3780. (eval $ac_try) 2>&5
  3781. ac_status=$?
  3782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3783. (exit $ac_status); }; }; then
  3784. ac_cv_prog_cxx_g=yes
  3785. else
  3786. echo "$as_me: failed program was:" >&5
  3787. sed 's/^/| /' conftest.$ac_ext >&5
  3788. ac_cv_prog_cxx_g=no
  3789. fi
  3790. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3791. fi
  3792. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3793. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  3794. if test "$ac_test_CXXFLAGS" = set; then
  3795. CXXFLAGS=$ac_save_CXXFLAGS
  3796. elif test $ac_cv_prog_cxx_g = yes; then
  3797. if test "$GXX" = yes; then
  3798. CXXFLAGS="-g -O2"
  3799. else
  3800. CXXFLAGS="-g"
  3801. fi
  3802. else
  3803. if test "$GXX" = yes; then
  3804. CXXFLAGS="-O2"
  3805. else
  3806. CXXFLAGS=
  3807. fi
  3808. fi
  3809. for ac_declaration in \
  3810. '' \
  3811. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3812. 'extern "C" void std::exit (int); using std::exit;' \
  3813. 'extern "C" void exit (int) throw ();' \
  3814. 'extern "C" void exit (int);' \
  3815. 'void exit (int);'
  3816. do
  3817. cat >conftest.$ac_ext <<_ACEOF
  3818. /* confdefs.h. */
  3819. _ACEOF
  3820. cat confdefs.h >>conftest.$ac_ext
  3821. cat >>conftest.$ac_ext <<_ACEOF
  3822. /* end confdefs.h. */
  3823. $ac_declaration
  3824. #include <stdlib.h>
  3825. int
  3826. main ()
  3827. {
  3828. exit (42);
  3829. ;
  3830. return 0;
  3831. }
  3832. _ACEOF
  3833. rm -f conftest.$ac_objext
  3834. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3835. (eval $ac_compile) 2>conftest.er1
  3836. ac_status=$?
  3837. grep -v '^ *+' conftest.er1 >conftest.err
  3838. rm -f conftest.er1
  3839. cat conftest.err >&5
  3840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3841. (exit $ac_status); } &&
  3842. { ac_try='test -z "$ac_cxx_werror_flag"
  3843. || test ! -s conftest.err'
  3844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3845. (eval $ac_try) 2>&5
  3846. ac_status=$?
  3847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3848. (exit $ac_status); }; } &&
  3849. { ac_try='test -s conftest.$ac_objext'
  3850. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3851. (eval $ac_try) 2>&5
  3852. ac_status=$?
  3853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3854. (exit $ac_status); }; }; then
  3855. :
  3856. else
  3857. echo "$as_me: failed program was:" >&5
  3858. sed 's/^/| /' conftest.$ac_ext >&5
  3859. continue
  3860. fi
  3861. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3862. cat >conftest.$ac_ext <<_ACEOF
  3863. /* confdefs.h. */
  3864. _ACEOF
  3865. cat confdefs.h >>conftest.$ac_ext
  3866. cat >>conftest.$ac_ext <<_ACEOF
  3867. /* end confdefs.h. */
  3868. $ac_declaration
  3869. int
  3870. main ()
  3871. {
  3872. exit (42);
  3873. ;
  3874. return 0;
  3875. }
  3876. _ACEOF
  3877. rm -f conftest.$ac_objext
  3878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3879. (eval $ac_compile) 2>conftest.er1
  3880. ac_status=$?
  3881. grep -v '^ *+' conftest.er1 >conftest.err
  3882. rm -f conftest.er1
  3883. cat conftest.err >&5
  3884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3885. (exit $ac_status); } &&
  3886. { ac_try='test -z "$ac_cxx_werror_flag"
  3887. || test ! -s conftest.err'
  3888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3889. (eval $ac_try) 2>&5
  3890. ac_status=$?
  3891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3892. (exit $ac_status); }; } &&
  3893. { ac_try='test -s conftest.$ac_objext'
  3894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3895. (eval $ac_try) 2>&5
  3896. ac_status=$?
  3897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3898. (exit $ac_status); }; }; then
  3899. break
  3900. else
  3901. echo "$as_me: failed program was:" >&5
  3902. sed 's/^/| /' conftest.$ac_ext >&5
  3903. fi
  3904. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3905. done
  3906. rm -f conftest*
  3907. if test -n "$ac_declaration"; then
  3908. echo '#ifdef __cplusplus' >>confdefs.h
  3909. echo $ac_declaration >>confdefs.h
  3910. echo '#endif' >>confdefs.h
  3911. fi
  3912. ac_ext=cc
  3913. ac_cpp='$CXXCPP $CPPFLAGS'
  3914. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3915. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3916. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3917. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3918. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3919. (test "X$CXX" != "Xg++"))) ; then
  3920. ac_ext=cc
  3921. ac_cpp='$CXXCPP $CPPFLAGS'
  3922. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3923. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3924. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3925. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  3926. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  3927. if test -z "$CXXCPP"; then
  3928. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  3929. echo $ECHO_N "(cached) $ECHO_C" >&6
  3930. else
  3931. # Double quotes because CXXCPP needs to be expanded
  3932. for CXXCPP in "$CXX -E" "/lib/cpp"
  3933. do
  3934. ac_preproc_ok=false
  3935. for ac_cxx_preproc_warn_flag in '' yes
  3936. do
  3937. # Use a header file that comes with gcc, so configuring glibc
  3938. # with a fresh cross-compiler works.
  3939. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3940. # <limits.h> exists even on freestanding compilers.
  3941. # On the NeXT, cc -E runs the code through the compiler's parser,
  3942. # not just through cpp. "Syntax error" is here to catch this case.
  3943. cat >conftest.$ac_ext <<_ACEOF
  3944. /* confdefs.h. */
  3945. _ACEOF
  3946. cat confdefs.h >>conftest.$ac_ext
  3947. cat >>conftest.$ac_ext <<_ACEOF
  3948. /* end confdefs.h. */
  3949. #ifdef __STDC__
  3950. # include <limits.h>
  3951. #else
  3952. # include <assert.h>
  3953. #endif
  3954. Syntax error
  3955. _ACEOF
  3956. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3957. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3958. ac_status=$?
  3959. grep -v '^ *+' conftest.er1 >conftest.err
  3960. rm -f conftest.er1
  3961. cat conftest.err >&5
  3962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3963. (exit $ac_status); } >/dev/null; then
  3964. if test -s conftest.err; then
  3965. ac_cpp_err=$ac_cxx_preproc_warn_flag
  3966. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  3967. else
  3968. ac_cpp_err=
  3969. fi
  3970. else
  3971. ac_cpp_err=yes
  3972. fi
  3973. if test -z "$ac_cpp_err"; then
  3974. :
  3975. else
  3976. echo "$as_me: failed program was:" >&5
  3977. sed 's/^/| /' conftest.$ac_ext >&5
  3978. # Broken: fails on valid input.
  3979. continue
  3980. fi
  3981. rm -f conftest.err conftest.$ac_ext
  3982. # OK, works on sane cases. Now check whether non-existent headers
  3983. # can be detected and how.
  3984. cat >conftest.$ac_ext <<_ACEOF
  3985. /* confdefs.h. */
  3986. _ACEOF
  3987. cat confdefs.h >>conftest.$ac_ext
  3988. cat >>conftest.$ac_ext <<_ACEOF
  3989. /* end confdefs.h. */
  3990. #include <ac_nonexistent.h>
  3991. _ACEOF
  3992. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3993. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3994. ac_status=$?
  3995. grep -v '^ *+' conftest.er1 >conftest.err
  3996. rm -f conftest.er1
  3997. cat conftest.err >&5
  3998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3999. (exit $ac_status); } >/dev/null; then
  4000. if test -s conftest.err; then
  4001. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4002. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4003. else
  4004. ac_cpp_err=
  4005. fi
  4006. else
  4007. ac_cpp_err=yes
  4008. fi
  4009. if test -z "$ac_cpp_err"; then
  4010. # Broken: success on invalid input.
  4011. continue
  4012. else
  4013. echo "$as_me: failed program was:" >&5
  4014. sed 's/^/| /' conftest.$ac_ext >&5
  4015. # Passes both tests.
  4016. ac_preproc_ok=:
  4017. break
  4018. fi
  4019. rm -f conftest.err conftest.$ac_ext
  4020. done
  4021. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4022. rm -f conftest.err conftest.$ac_ext
  4023. if $ac_preproc_ok; then
  4024. break
  4025. fi
  4026. done
  4027. ac_cv_prog_CXXCPP=$CXXCPP
  4028. fi
  4029. CXXCPP=$ac_cv_prog_CXXCPP
  4030. else
  4031. ac_cv_prog_CXXCPP=$CXXCPP
  4032. fi
  4033. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4034. echo "${ECHO_T}$CXXCPP" >&6
  4035. ac_preproc_ok=false
  4036. for ac_cxx_preproc_warn_flag in '' yes
  4037. do
  4038. # Use a header file that comes with gcc, so configuring glibc
  4039. # with a fresh cross-compiler works.
  4040. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4041. # <limits.h> exists even on freestanding compilers.
  4042. # On the NeXT, cc -E runs the code through the compiler's parser,
  4043. # not just through cpp. "Syntax error" is here to catch this case.
  4044. cat >conftest.$ac_ext <<_ACEOF
  4045. /* confdefs.h. */
  4046. _ACEOF
  4047. cat confdefs.h >>conftest.$ac_ext
  4048. cat >>conftest.$ac_ext <<_ACEOF
  4049. /* end confdefs.h. */
  4050. #ifdef __STDC__
  4051. # include <limits.h>
  4052. #else
  4053. # include <assert.h>
  4054. #endif
  4055. Syntax error
  4056. _ACEOF
  4057. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4058. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4059. ac_status=$?
  4060. grep -v '^ *+' conftest.er1 >conftest.err
  4061. rm -f conftest.er1
  4062. cat conftest.err >&5
  4063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4064. (exit $ac_status); } >/dev/null; then
  4065. if test -s conftest.err; then
  4066. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4067. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4068. else
  4069. ac_cpp_err=
  4070. fi
  4071. else
  4072. ac_cpp_err=yes
  4073. fi
  4074. if test -z "$ac_cpp_err"; then
  4075. :
  4076. else
  4077. echo "$as_me: failed program was:" >&5
  4078. sed 's/^/| /' conftest.$ac_ext >&5
  4079. # Broken: fails on valid input.
  4080. continue
  4081. fi
  4082. rm -f conftest.err conftest.$ac_ext
  4083. # OK, works on sane cases. Now check whether non-existent headers
  4084. # can be detected and how.
  4085. cat >conftest.$ac_ext <<_ACEOF
  4086. /* confdefs.h. */
  4087. _ACEOF
  4088. cat confdefs.h >>conftest.$ac_ext
  4089. cat >>conftest.$ac_ext <<_ACEOF
  4090. /* end confdefs.h. */
  4091. #include <ac_nonexistent.h>
  4092. _ACEOF
  4093. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4094. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4095. ac_status=$?
  4096. grep -v '^ *+' conftest.er1 >conftest.err
  4097. rm -f conftest.er1
  4098. cat conftest.err >&5
  4099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4100. (exit $ac_status); } >/dev/null; then
  4101. if test -s conftest.err; then
  4102. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4103. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4104. else
  4105. ac_cpp_err=
  4106. fi
  4107. else
  4108. ac_cpp_err=yes
  4109. fi
  4110. if test -z "$ac_cpp_err"; then
  4111. # Broken: success on invalid input.
  4112. continue
  4113. else
  4114. echo "$as_me: failed program was:" >&5
  4115. sed 's/^/| /' conftest.$ac_ext >&5
  4116. # Passes both tests.
  4117. ac_preproc_ok=:
  4118. break
  4119. fi
  4120. rm -f conftest.err conftest.$ac_ext
  4121. done
  4122. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4123. rm -f conftest.err conftest.$ac_ext
  4124. if $ac_preproc_ok; then
  4125. :
  4126. else
  4127. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4128. See \`config.log' for more details." >&5
  4129. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4130. See \`config.log' for more details." >&2;}
  4131. { (exit 1); exit 1; }; }
  4132. fi
  4133. ac_ext=cc
  4134. ac_cpp='$CXXCPP $CPPFLAGS'
  4135. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4136. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4137. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4138. fi
  4139. ac_ext=f
  4140. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4141. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4142. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4143. if test -n "$ac_tool_prefix"; then
  4144. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4145. do
  4146. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4147. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4148. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4149. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4150. if test "${ac_cv_prog_F77+set}" = set; then
  4151. echo $ECHO_N "(cached) $ECHO_C" >&6
  4152. else
  4153. if test -n "$F77"; then
  4154. ac_cv_prog_F77="$F77" # Let the user override the test.
  4155. else
  4156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4157. for as_dir in $PATH
  4158. do
  4159. IFS=$as_save_IFS
  4160. test -z "$as_dir" && as_dir=.
  4161. for ac_exec_ext in '' $ac_executable_extensions; do
  4162. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4163. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4164. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4165. break 2
  4166. fi
  4167. done
  4168. done
  4169. fi
  4170. fi
  4171. F77=$ac_cv_prog_F77
  4172. if test -n "$F77"; then
  4173. echo "$as_me:$LINENO: result: $F77" >&5
  4174. echo "${ECHO_T}$F77" >&6
  4175. else
  4176. echo "$as_me:$LINENO: result: no" >&5
  4177. echo "${ECHO_T}no" >&6
  4178. fi
  4179. test -n "$F77" && break
  4180. done
  4181. fi
  4182. if test -z "$F77"; then
  4183. ac_ct_F77=$F77
  4184. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4185. do
  4186. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4187. set dummy $ac_prog; ac_word=$2
  4188. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4189. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4190. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4191. echo $ECHO_N "(cached) $ECHO_C" >&6
  4192. else
  4193. if test -n "$ac_ct_F77"; then
  4194. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4195. else
  4196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4197. for as_dir in $PATH
  4198. do
  4199. IFS=$as_save_IFS
  4200. test -z "$as_dir" && as_dir=.
  4201. for ac_exec_ext in '' $ac_executable_extensions; do
  4202. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4203. ac_cv_prog_ac_ct_F77="$ac_prog"
  4204. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4205. break 2
  4206. fi
  4207. done
  4208. done
  4209. fi
  4210. fi
  4211. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4212. if test -n "$ac_ct_F77"; then
  4213. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4214. echo "${ECHO_T}$ac_ct_F77" >&6
  4215. else
  4216. echo "$as_me:$LINENO: result: no" >&5
  4217. echo "${ECHO_T}no" >&6
  4218. fi
  4219. test -n "$ac_ct_F77" && break
  4220. done
  4221. F77=$ac_ct_F77
  4222. fi
  4223. # Provide some information about the compiler.
  4224. echo "$as_me:4643:" \
  4225. "checking for Fortran 77 compiler version" >&5
  4226. ac_compiler=`set X $ac_compile; echo $2`
  4227. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4228. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4229. ac_status=$?
  4230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4231. (exit $ac_status); }
  4232. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4233. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4234. ac_status=$?
  4235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4236. (exit $ac_status); }
  4237. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4238. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4239. ac_status=$?
  4240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4241. (exit $ac_status); }
  4242. rm -f a.out
  4243. # If we don't use `.F' as extension, the preprocessor is not run on the
  4244. # input file. (Note that this only needs to work for GNU compilers.)
  4245. ac_save_ext=$ac_ext
  4246. ac_ext=F
  4247. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4248. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4249. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4250. echo $ECHO_N "(cached) $ECHO_C" >&6
  4251. else
  4252. cat >conftest.$ac_ext <<_ACEOF
  4253. program main
  4254. #ifndef __GNUC__
  4255. choke me
  4256. #endif
  4257. end
  4258. _ACEOF
  4259. rm -f conftest.$ac_objext
  4260. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4261. (eval $ac_compile) 2>conftest.er1
  4262. ac_status=$?
  4263. grep -v '^ *+' conftest.er1 >conftest.err
  4264. rm -f conftest.er1
  4265. cat conftest.err >&5
  4266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4267. (exit $ac_status); } &&
  4268. { ac_try='test -z "$ac_f77_werror_flag"
  4269. || test ! -s conftest.err'
  4270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4271. (eval $ac_try) 2>&5
  4272. ac_status=$?
  4273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4274. (exit $ac_status); }; } &&
  4275. { ac_try='test -s conftest.$ac_objext'
  4276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4277. (eval $ac_try) 2>&5
  4278. ac_status=$?
  4279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4280. (exit $ac_status); }; }; then
  4281. ac_compiler_gnu=yes
  4282. else
  4283. echo "$as_me: failed program was:" >&5
  4284. sed 's/^/| /' conftest.$ac_ext >&5
  4285. ac_compiler_gnu=no
  4286. fi
  4287. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4288. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  4289. fi
  4290. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  4291. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  4292. ac_ext=$ac_save_ext
  4293. ac_test_FFLAGS=${FFLAGS+set}
  4294. ac_save_FFLAGS=$FFLAGS
  4295. FFLAGS=
  4296. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  4297. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  4298. if test "${ac_cv_prog_f77_g+set}" = set; then
  4299. echo $ECHO_N "(cached) $ECHO_C" >&6
  4300. else
  4301. FFLAGS=-g
  4302. cat >conftest.$ac_ext <<_ACEOF
  4303. program main
  4304. end
  4305. _ACEOF
  4306. rm -f conftest.$ac_objext
  4307. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4308. (eval $ac_compile) 2>conftest.er1
  4309. ac_status=$?
  4310. grep -v '^ *+' conftest.er1 >conftest.err
  4311. rm -f conftest.er1
  4312. cat conftest.err >&5
  4313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4314. (exit $ac_status); } &&
  4315. { ac_try='test -z "$ac_f77_werror_flag"
  4316. || test ! -s conftest.err'
  4317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4318. (eval $ac_try) 2>&5
  4319. ac_status=$?
  4320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4321. (exit $ac_status); }; } &&
  4322. { ac_try='test -s conftest.$ac_objext'
  4323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4324. (eval $ac_try) 2>&5
  4325. ac_status=$?
  4326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4327. (exit $ac_status); }; }; then
  4328. ac_cv_prog_f77_g=yes
  4329. else
  4330. echo "$as_me: failed program was:" >&5
  4331. sed 's/^/| /' conftest.$ac_ext >&5
  4332. ac_cv_prog_f77_g=no
  4333. fi
  4334. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4335. fi
  4336. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  4337. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  4338. if test "$ac_test_FFLAGS" = set; then
  4339. FFLAGS=$ac_save_FFLAGS
  4340. elif test $ac_cv_prog_f77_g = yes; then
  4341. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4342. FFLAGS="-g -O2"
  4343. else
  4344. FFLAGS="-g"
  4345. fi
  4346. else
  4347. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  4348. FFLAGS="-O2"
  4349. else
  4350. FFLAGS=
  4351. fi
  4352. fi
  4353. G77=`test $ac_compiler_gnu = yes && echo yes`
  4354. ac_ext=c
  4355. ac_cpp='$CPP $CPPFLAGS'
  4356. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4357. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4358. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4359. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4360. # find the maximum length of command line arguments
  4361. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4362. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  4363. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4364. echo $ECHO_N "(cached) $ECHO_C" >&6
  4365. else
  4366. i=0
  4367. teststring="ABCD"
  4368. case $build_os in
  4369. msdosdjgpp*)
  4370. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4371. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4372. # during glob expansion). Even if it were fixed, the result of this
  4373. # check would be larger than it should be.
  4374. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4375. ;;
  4376. gnu*)
  4377. # Under GNU Hurd, this test is not required because there is
  4378. # no limit to the length of command line arguments.
  4379. # Libtool will interpret -1 as no limit whatsoever
  4380. lt_cv_sys_max_cmd_len=-1;
  4381. ;;
  4382. cygwin* | mingw*)
  4383. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4384. # about 5 minutes as the teststring grows exponentially.
  4385. # Worse, since 9x/ME are not pre-emptively multitasking,
  4386. # you end up with a "frozen" computer, even though with patience
  4387. # the test eventually succeeds (with a max line length of 256k).
  4388. # Instead, let's just punt: use the minimum linelength reported by
  4389. # all of the supported platforms: 8192 (on NT/2K/XP).
  4390. lt_cv_sys_max_cmd_len=8192;
  4391. ;;
  4392. amigaos*)
  4393. # On AmigaOS with pdksh, this test takes hours, literally.
  4394. # So we just punt and use a minimum line length of 8192.
  4395. lt_cv_sys_max_cmd_len=8192;
  4396. ;;
  4397. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4398. # This has been around since 386BSD, at least. Likely further.
  4399. if test -x /sbin/sysctl; then
  4400. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4401. elif test -x /usr/sbin/sysctl; then
  4402. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4403. else
  4404. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4405. fi
  4406. # And add a safety zone
  4407. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4408. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4409. ;;
  4410. interix*)
  4411. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4412. lt_cv_sys_max_cmd_len=196608
  4413. ;;
  4414. osf*)
  4415. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4416. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4417. # nice to cause kernel panics so lets avoid the loop below.
  4418. # First set a reasonable default.
  4419. lt_cv_sys_max_cmd_len=16384
  4420. #
  4421. if test -x /sbin/sysconfig; then
  4422. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4423. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4424. esac
  4425. fi
  4426. ;;
  4427. sco3.2v5*)
  4428. lt_cv_sys_max_cmd_len=102400
  4429. ;;
  4430. sysv5* | sco5v6* | sysv4.2uw2*)
  4431. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4432. if test -n "$kargmax"; then
  4433. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4434. else
  4435. lt_cv_sys_max_cmd_len=32768
  4436. fi
  4437. ;;
  4438. *)
  4439. # If test is not a shell built-in, we'll probably end up computing a
  4440. # maximum length that is only half of the actual maximum length, but
  4441. # we can't tell.
  4442. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4443. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  4444. = "XX$teststring") >/dev/null 2>&1 &&
  4445. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  4446. lt_cv_sys_max_cmd_len=$new_result &&
  4447. test $i != 17 # 1/2 MB should be enough
  4448. do
  4449. i=`expr $i + 1`
  4450. teststring=$teststring$teststring
  4451. done
  4452. teststring=
  4453. # Add a significant safety factor because C++ compilers can tack on massive
  4454. # amounts of additional arguments before passing them to the linker.
  4455. # It appears as though 1/2 is a usable value.
  4456. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4457. ;;
  4458. esac
  4459. fi
  4460. if test -n $lt_cv_sys_max_cmd_len ; then
  4461. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4462. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  4463. else
  4464. echo "$as_me:$LINENO: result: none" >&5
  4465. echo "${ECHO_T}none" >&6
  4466. fi
  4467. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4468. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4469. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  4470. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4471. echo $ECHO_N "(cached) $ECHO_C" >&6
  4472. else
  4473. # These are sane defaults that work on at least a few old systems.
  4474. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4475. # Character class describing NM global symbol codes.
  4476. symcode='[BCDEGRST]'
  4477. # Regexp to match symbols that can be accessed directly from C.
  4478. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4479. # Transform an extracted symbol line into a proper C declaration
  4480. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4481. # Transform an extracted symbol line into symbol name and symbol address
  4482. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4483. # Define system-specific variables.
  4484. case $host_os in
  4485. aix*)
  4486. symcode='[BCDT]'
  4487. ;;
  4488. cygwin* | mingw* | pw32*)
  4489. symcode='[ABCDGISTW]'
  4490. ;;
  4491. hpux*) # Its linker distinguishes data from code symbols
  4492. if test "$host_cpu" = ia64; then
  4493. symcode='[ABCDEGRST]'
  4494. fi
  4495. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4496. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4497. ;;
  4498. linux*)
  4499. if test "$host_cpu" = ia64; then
  4500. symcode='[ABCDGIRSTW]'
  4501. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4502. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4503. fi
  4504. ;;
  4505. irix* | nonstopux*)
  4506. symcode='[BCDEGRST]'
  4507. ;;
  4508. osf*)
  4509. symcode='[BCDEGQRST]'
  4510. ;;
  4511. solaris*)
  4512. symcode='[BDRT]'
  4513. ;;
  4514. sco3.2v5*)
  4515. symcode='[DT]'
  4516. ;;
  4517. sysv4.2uw2*)
  4518. symcode='[DT]'
  4519. ;;
  4520. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4521. symcode='[ABDT]'
  4522. ;;
  4523. sysv4)
  4524. symcode='[DFNSTU]'
  4525. ;;
  4526. esac
  4527. # Handle CRLF in mingw tool chain
  4528. opt_cr=
  4529. case $build_os in
  4530. mingw*)
  4531. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4532. ;;
  4533. esac
  4534. # If we're using GNU nm, then use its standard symbol codes.
  4535. case `$NM -V 2>&1` in
  4536. *GNU* | *'with BFD'*)
  4537. symcode='[ABCDGIRSTW]' ;;
  4538. esac
  4539. # Try without a prefix undercore, then with it.
  4540. for ac_symprfx in "" "_"; do
  4541. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4542. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4543. # Write the raw and C identifiers.
  4544. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4545. # Check to see that the pipe works correctly.
  4546. pipe_works=no
  4547. rm -f conftest*
  4548. cat > conftest.$ac_ext <<EOF
  4549. #ifdef __cplusplus
  4550. extern "C" {
  4551. #endif
  4552. char nm_test_var;
  4553. void nm_test_func(){}
  4554. #ifdef __cplusplus
  4555. }
  4556. #endif
  4557. int main(){nm_test_var='a';nm_test_func();return(0);}
  4558. EOF
  4559. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4560. (eval $ac_compile) 2>&5
  4561. ac_status=$?
  4562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4563. (exit $ac_status); }; then
  4564. # Now try to grab the symbols.
  4565. nlist=conftest.nm
  4566. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4567. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4568. ac_status=$?
  4569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4570. (exit $ac_status); } && test -s "$nlist"; then
  4571. # Try sorting and uniquifying the output.
  4572. if sort "$nlist" | uniq > "$nlist"T; then
  4573. mv -f "$nlist"T "$nlist"
  4574. else
  4575. rm -f "$nlist"T
  4576. fi
  4577. # Make sure that we snagged all the symbols we need.
  4578. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4579. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4580. cat <<EOF > conftest.$ac_ext
  4581. #ifdef __cplusplus
  4582. extern "C" {
  4583. #endif
  4584. EOF
  4585. # Now generate the symbol file.
  4586. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4587. cat <<EOF >> conftest.$ac_ext
  4588. #if defined (__STDC__) && __STDC__
  4589. # define lt_ptr_t void *
  4590. #else
  4591. # define lt_ptr_t char *
  4592. # define const
  4593. #endif
  4594. /* The mapping between symbol names and symbols. */
  4595. const struct {
  4596. const char *name;
  4597. lt_ptr_t address;
  4598. }
  4599. lt_preloaded_symbols[] =
  4600. {
  4601. EOF
  4602. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4603. cat <<\EOF >> conftest.$ac_ext
  4604. {0, (lt_ptr_t) 0}
  4605. };
  4606. #ifdef __cplusplus
  4607. }
  4608. #endif
  4609. EOF
  4610. # Now try linking the two files.
  4611. mv conftest.$ac_objext conftstm.$ac_objext
  4612. lt_save_LIBS="$LIBS"
  4613. lt_save_CFLAGS="$CFLAGS"
  4614. LIBS="conftstm.$ac_objext"
  4615. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4616. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4617. (eval $ac_link) 2>&5
  4618. ac_status=$?
  4619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4620. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4621. pipe_works=yes
  4622. fi
  4623. LIBS="$lt_save_LIBS"
  4624. CFLAGS="$lt_save_CFLAGS"
  4625. else
  4626. echo "cannot find nm_test_func in $nlist" >&5
  4627. fi
  4628. else
  4629. echo "cannot find nm_test_var in $nlist" >&5
  4630. fi
  4631. else
  4632. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4633. fi
  4634. else
  4635. echo "$progname: failed program was:" >&5
  4636. cat conftest.$ac_ext >&5
  4637. fi
  4638. rm -f conftest* conftst*
  4639. # Do not use the global_symbol_pipe unless it works.
  4640. if test "$pipe_works" = yes; then
  4641. break
  4642. else
  4643. lt_cv_sys_global_symbol_pipe=
  4644. fi
  4645. done
  4646. fi
  4647. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4648. lt_cv_sys_global_symbol_to_cdecl=
  4649. fi
  4650. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4651. echo "$as_me:$LINENO: result: failed" >&5
  4652. echo "${ECHO_T}failed" >&6
  4653. else
  4654. echo "$as_me:$LINENO: result: ok" >&5
  4655. echo "${ECHO_T}ok" >&6
  4656. fi
  4657. echo "$as_me:$LINENO: checking for objdir" >&5
  4658. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  4659. if test "${lt_cv_objdir+set}" = set; then
  4660. echo $ECHO_N "(cached) $ECHO_C" >&6
  4661. else
  4662. rm -f .libs 2>/dev/null
  4663. mkdir .libs 2>/dev/null
  4664. if test -d .libs; then
  4665. lt_cv_objdir=.libs
  4666. else
  4667. # MS-DOS does not allow filenames that begin with a dot.
  4668. lt_cv_objdir=_libs
  4669. fi
  4670. rmdir .libs 2>/dev/null
  4671. fi
  4672. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  4673. echo "${ECHO_T}$lt_cv_objdir" >&6
  4674. objdir=$lt_cv_objdir
  4675. case $host_os in
  4676. aix3*)
  4677. # AIX sometimes has problems with the GCC collect2 program. For some
  4678. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4679. # vanish in a puff of smoke.
  4680. if test "X${COLLECT_NAMES+set}" != Xset; then
  4681. COLLECT_NAMES=
  4682. export COLLECT_NAMES
  4683. fi
  4684. ;;
  4685. esac
  4686. # Sed substitution that helps us do robust quoting. It backslashifies
  4687. # metacharacters that are still active within double-quoted strings.
  4688. Xsed='sed -e 1s/^X//'
  4689. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  4690. # Same as above, but do not quote variable references.
  4691. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  4692. # Sed substitution to delay expansion of an escaped shell variable in a
  4693. # double_quote_subst'ed string.
  4694. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4695. # Sed substitution to avoid accidental globbing in evaled expressions
  4696. no_glob_subst='s/\*/\\\*/g'
  4697. # Constants:
  4698. rm="rm -f"
  4699. # Global variables:
  4700. default_ofile=libtool
  4701. can_build_shared=yes
  4702. # All known linkers require a `.a' archive for static linking (except MSVC,
  4703. # which needs '.lib').
  4704. libext=a
  4705. ltmain="$ac_aux_dir/ltmain.sh"
  4706. ofile="$default_ofile"
  4707. with_gnu_ld="$lt_cv_prog_gnu_ld"
  4708. if test -n "$ac_tool_prefix"; then
  4709. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4710. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4711. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4712. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4713. if test "${ac_cv_prog_AR+set}" = set; then
  4714. echo $ECHO_N "(cached) $ECHO_C" >&6
  4715. else
  4716. if test -n "$AR"; then
  4717. ac_cv_prog_AR="$AR" # Let the user override the test.
  4718. else
  4719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4720. for as_dir in $PATH
  4721. do
  4722. IFS=$as_save_IFS
  4723. test -z "$as_dir" && as_dir=.
  4724. for ac_exec_ext in '' $ac_executable_extensions; do
  4725. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4726. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4727. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4728. break 2
  4729. fi
  4730. done
  4731. done
  4732. fi
  4733. fi
  4734. AR=$ac_cv_prog_AR
  4735. if test -n "$AR"; then
  4736. echo "$as_me:$LINENO: result: $AR" >&5
  4737. echo "${ECHO_T}$AR" >&6
  4738. else
  4739. echo "$as_me:$LINENO: result: no" >&5
  4740. echo "${ECHO_T}no" >&6
  4741. fi
  4742. fi
  4743. if test -z "$ac_cv_prog_AR"; then
  4744. ac_ct_AR=$AR
  4745. # Extract the first word of "ar", so it can be a program name with args.
  4746. set dummy ar; ac_word=$2
  4747. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4748. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4749. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4750. echo $ECHO_N "(cached) $ECHO_C" >&6
  4751. else
  4752. if test -n "$ac_ct_AR"; then
  4753. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4754. else
  4755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4756. for as_dir in $PATH
  4757. do
  4758. IFS=$as_save_IFS
  4759. test -z "$as_dir" && as_dir=.
  4760. for ac_exec_ext in '' $ac_executable_extensions; do
  4761. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4762. ac_cv_prog_ac_ct_AR="ar"
  4763. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4764. break 2
  4765. fi
  4766. done
  4767. done
  4768. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  4769. fi
  4770. fi
  4771. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4772. if test -n "$ac_ct_AR"; then
  4773. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4774. echo "${ECHO_T}$ac_ct_AR" >&6
  4775. else
  4776. echo "$as_me:$LINENO: result: no" >&5
  4777. echo "${ECHO_T}no" >&6
  4778. fi
  4779. AR=$ac_ct_AR
  4780. else
  4781. AR="$ac_cv_prog_AR"
  4782. fi
  4783. if test -n "$ac_tool_prefix"; then
  4784. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4785. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4786. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4787. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4788. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4789. echo $ECHO_N "(cached) $ECHO_C" >&6
  4790. else
  4791. if test -n "$RANLIB"; then
  4792. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4793. else
  4794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4795. for as_dir in $PATH
  4796. do
  4797. IFS=$as_save_IFS
  4798. test -z "$as_dir" && as_dir=.
  4799. for ac_exec_ext in '' $ac_executable_extensions; do
  4800. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4801. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4802. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4803. break 2
  4804. fi
  4805. done
  4806. done
  4807. fi
  4808. fi
  4809. RANLIB=$ac_cv_prog_RANLIB
  4810. if test -n "$RANLIB"; then
  4811. echo "$as_me:$LINENO: result: $RANLIB" >&5
  4812. echo "${ECHO_T}$RANLIB" >&6
  4813. else
  4814. echo "$as_me:$LINENO: result: no" >&5
  4815. echo "${ECHO_T}no" >&6
  4816. fi
  4817. fi
  4818. if test -z "$ac_cv_prog_RANLIB"; then
  4819. ac_ct_RANLIB=$RANLIB
  4820. # Extract the first word of "ranlib", so it can be a program name with args.
  4821. set dummy ranlib; ac_word=$2
  4822. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4823. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4824. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4825. echo $ECHO_N "(cached) $ECHO_C" >&6
  4826. else
  4827. if test -n "$ac_ct_RANLIB"; then
  4828. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4829. else
  4830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4831. for as_dir in $PATH
  4832. do
  4833. IFS=$as_save_IFS
  4834. test -z "$as_dir" && as_dir=.
  4835. for ac_exec_ext in '' $ac_executable_extensions; do
  4836. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4837. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4838. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4839. break 2
  4840. fi
  4841. done
  4842. done
  4843. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  4844. fi
  4845. fi
  4846. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4847. if test -n "$ac_ct_RANLIB"; then
  4848. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4849. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  4850. else
  4851. echo "$as_me:$LINENO: result: no" >&5
  4852. echo "${ECHO_T}no" >&6
  4853. fi
  4854. RANLIB=$ac_ct_RANLIB
  4855. else
  4856. RANLIB="$ac_cv_prog_RANLIB"
  4857. fi
  4858. if test -n "$ac_tool_prefix"; then
  4859. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4860. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4861. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4862. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4863. if test "${ac_cv_prog_STRIP+set}" = set; then
  4864. echo $ECHO_N "(cached) $ECHO_C" >&6
  4865. else
  4866. if test -n "$STRIP"; then
  4867. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4868. else
  4869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4870. for as_dir in $PATH
  4871. do
  4872. IFS=$as_save_IFS
  4873. test -z "$as_dir" && as_dir=.
  4874. for ac_exec_ext in '' $ac_executable_extensions; do
  4875. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4876. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4877. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4878. break 2
  4879. fi
  4880. done
  4881. done
  4882. fi
  4883. fi
  4884. STRIP=$ac_cv_prog_STRIP
  4885. if test -n "$STRIP"; then
  4886. echo "$as_me:$LINENO: result: $STRIP" >&5
  4887. echo "${ECHO_T}$STRIP" >&6
  4888. else
  4889. echo "$as_me:$LINENO: result: no" >&5
  4890. echo "${ECHO_T}no" >&6
  4891. fi
  4892. fi
  4893. if test -z "$ac_cv_prog_STRIP"; then
  4894. ac_ct_STRIP=$STRIP
  4895. # Extract the first word of "strip", so it can be a program name with args.
  4896. set dummy strip; ac_word=$2
  4897. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4898. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4899. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4900. echo $ECHO_N "(cached) $ECHO_C" >&6
  4901. else
  4902. if test -n "$ac_ct_STRIP"; then
  4903. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4904. else
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_exec_ext in '' $ac_executable_extensions; do
  4911. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4912. ac_cv_prog_ac_ct_STRIP="strip"
  4913. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914. break 2
  4915. fi
  4916. done
  4917. done
  4918. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  4919. fi
  4920. fi
  4921. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4922. if test -n "$ac_ct_STRIP"; then
  4923. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4924. echo "${ECHO_T}$ac_ct_STRIP" >&6
  4925. else
  4926. echo "$as_me:$LINENO: result: no" >&5
  4927. echo "${ECHO_T}no" >&6
  4928. fi
  4929. STRIP=$ac_ct_STRIP
  4930. else
  4931. STRIP="$ac_cv_prog_STRIP"
  4932. fi
  4933. old_CC="$CC"
  4934. old_CFLAGS="$CFLAGS"
  4935. # Set sane defaults for various variables
  4936. test -z "$AR" && AR=ar
  4937. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4938. test -z "$AS" && AS=as
  4939. test -z "$CC" && CC=cc
  4940. test -z "$LTCC" && LTCC=$CC
  4941. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  4942. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4943. test -z "$LD" && LD=ld
  4944. test -z "$LN_S" && LN_S="ln -s"
  4945. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  4946. test -z "$NM" && NM=nm
  4947. test -z "$SED" && SED=sed
  4948. test -z "$OBJDUMP" && OBJDUMP=objdump
  4949. test -z "$RANLIB" && RANLIB=:
  4950. test -z "$STRIP" && STRIP=:
  4951. test -z "$ac_objext" && ac_objext=o
  4952. # Determine commands to create old-style static archives.
  4953. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  4954. old_postinstall_cmds='chmod 644 $oldlib'
  4955. old_postuninstall_cmds=
  4956. if test -n "$RANLIB"; then
  4957. case $host_os in
  4958. openbsd*)
  4959. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4960. ;;
  4961. *)
  4962. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4963. ;;
  4964. esac
  4965. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4966. fi
  4967. for cc_temp in $compiler""; do
  4968. case $cc_temp in
  4969. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  4970. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  4971. \-*) ;;
  4972. *) break;;
  4973. esac
  4974. done
  4975. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  4976. # Only perform the check for file, if the check method requires it
  4977. case $deplibs_check_method in
  4978. file_magic*)
  4979. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  4980. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  4981. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  4982. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  4983. echo $ECHO_N "(cached) $ECHO_C" >&6
  4984. else
  4985. case $MAGIC_CMD in
  4986. [\\/*] | ?:[\\/]*)
  4987. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4988. ;;
  4989. *)
  4990. lt_save_MAGIC_CMD="$MAGIC_CMD"
  4991. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4992. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  4993. for ac_dir in $ac_dummy; do
  4994. IFS="$lt_save_ifs"
  4995. test -z "$ac_dir" && ac_dir=.
  4996. if test -f $ac_dir/${ac_tool_prefix}file; then
  4997. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  4998. if test -n "$file_magic_test_file"; then
  4999. case $deplibs_check_method in
  5000. "file_magic "*)
  5001. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5002. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5003. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5004. $EGREP "$file_magic_regex" > /dev/null; then
  5005. :
  5006. else
  5007. cat <<EOF 1>&2
  5008. *** Warning: the command libtool uses to detect shared libraries,
  5009. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5010. *** The result is that libtool may fail to recognize shared libraries
  5011. *** as such. This will affect the creation of libtool libraries that
  5012. *** depend on shared libraries, but programs linked with such libtool
  5013. *** libraries will work regardless of this problem. Nevertheless, you
  5014. *** may want to report the problem to your system manager and/or to
  5015. *** bug-libtool@gnu.org
  5016. EOF
  5017. fi ;;
  5018. esac
  5019. fi
  5020. break
  5021. fi
  5022. done
  5023. IFS="$lt_save_ifs"
  5024. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5025. ;;
  5026. esac
  5027. fi
  5028. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5029. if test -n "$MAGIC_CMD"; then
  5030. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5031. echo "${ECHO_T}$MAGIC_CMD" >&6
  5032. else
  5033. echo "$as_me:$LINENO: result: no" >&5
  5034. echo "${ECHO_T}no" >&6
  5035. fi
  5036. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5037. if test -n "$ac_tool_prefix"; then
  5038. echo "$as_me:$LINENO: checking for file" >&5
  5039. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5040. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5041. echo $ECHO_N "(cached) $ECHO_C" >&6
  5042. else
  5043. case $MAGIC_CMD in
  5044. [\\/*] | ?:[\\/]*)
  5045. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5046. ;;
  5047. *)
  5048. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5049. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5050. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5051. for ac_dir in $ac_dummy; do
  5052. IFS="$lt_save_ifs"
  5053. test -z "$ac_dir" && ac_dir=.
  5054. if test -f $ac_dir/file; then
  5055. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5056. if test -n "$file_magic_test_file"; then
  5057. case $deplibs_check_method in
  5058. "file_magic "*)
  5059. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5060. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5061. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5062. $EGREP "$file_magic_regex" > /dev/null; then
  5063. :
  5064. else
  5065. cat <<EOF 1>&2
  5066. *** Warning: the command libtool uses to detect shared libraries,
  5067. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5068. *** The result is that libtool may fail to recognize shared libraries
  5069. *** as such. This will affect the creation of libtool libraries that
  5070. *** depend on shared libraries, but programs linked with such libtool
  5071. *** libraries will work regardless of this problem. Nevertheless, you
  5072. *** may want to report the problem to your system manager and/or to
  5073. *** bug-libtool@gnu.org
  5074. EOF
  5075. fi ;;
  5076. esac
  5077. fi
  5078. break
  5079. fi
  5080. done
  5081. IFS="$lt_save_ifs"
  5082. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5083. ;;
  5084. esac
  5085. fi
  5086. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5087. if test -n "$MAGIC_CMD"; then
  5088. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5089. echo "${ECHO_T}$MAGIC_CMD" >&6
  5090. else
  5091. echo "$as_me:$LINENO: result: no" >&5
  5092. echo "${ECHO_T}no" >&6
  5093. fi
  5094. else
  5095. MAGIC_CMD=:
  5096. fi
  5097. fi
  5098. fi
  5099. ;;
  5100. esac
  5101. enable_dlopen=no
  5102. enable_win32_dll=no
  5103. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5104. if test "${enable_libtool_lock+set}" = set; then
  5105. enableval="$enable_libtool_lock"
  5106. fi;
  5107. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5108. # Check whether --with-pic or --without-pic was given.
  5109. if test "${with_pic+set}" = set; then
  5110. withval="$with_pic"
  5111. pic_mode="$withval"
  5112. else
  5113. pic_mode=default
  5114. fi;
  5115. test -z "$pic_mode" && pic_mode=default
  5116. # Use C for the default configuration in the libtool script
  5117. tagname=
  5118. lt_save_CC="$CC"
  5119. ac_ext=c
  5120. ac_cpp='$CPP $CPPFLAGS'
  5121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5124. # Source file extension for C test sources.
  5125. ac_ext=c
  5126. # Object file extension for compiled C test sources.
  5127. objext=o
  5128. objext=$objext
  5129. # Code to be used in simple compile tests
  5130. lt_simple_compile_test_code="int some_variable = 0;\n"
  5131. # Code to be used in simple link tests
  5132. lt_simple_link_test_code='int main(){return(0);}\n'
  5133. # If no C compiler was specified, use CC.
  5134. LTCC=${LTCC-"$CC"}
  5135. # If no C compiler flags were specified, use CFLAGS.
  5136. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5137. # Allow CC to be a program name with arguments.
  5138. compiler=$CC
  5139. # save warnings/boilerplate of simple test code
  5140. ac_outfile=conftest.$ac_objext
  5141. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5142. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5143. _lt_compiler_boilerplate=`cat conftest.err`
  5144. $rm conftest*
  5145. ac_outfile=conftest.$ac_objext
  5146. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5147. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5148. _lt_linker_boilerplate=`cat conftest.err`
  5149. $rm conftest*
  5150. lt_prog_compiler_no_builtin_flag=
  5151. if test "$GCC" = yes; then
  5152. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5153. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5154. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5155. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5156. echo $ECHO_N "(cached) $ECHO_C" >&6
  5157. else
  5158. lt_cv_prog_compiler_rtti_exceptions=no
  5159. ac_outfile=conftest.$ac_objext
  5160. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5161. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5162. # Insert the option either (1) after the last *FLAGS variable, or
  5163. # (2) before a word containing "conftest.", or (3) at the end.
  5164. # Note that $ac_compile itself does not contain backslashes and begins
  5165. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5166. # The option is referenced via a variable to avoid confusing sed.
  5167. lt_compile=`echo "$ac_compile" | $SED \
  5168. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5169. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5170. -e 's:$: $lt_compiler_flag:'`
  5171. (eval echo "\"\$as_me:5706: $lt_compile\"" >&5)
  5172. (eval "$lt_compile" 2>conftest.err)
  5173. ac_status=$?
  5174. cat conftest.err >&5
  5175. echo "$as_me:5710: \$? = $ac_status" >&5
  5176. if (exit $ac_status) && test -s "$ac_outfile"; then
  5177. # The compiler can only warn and ignore the option if not recognized
  5178. # So say no if there are warnings other than the usual output.
  5179. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5180. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5181. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5182. lt_cv_prog_compiler_rtti_exceptions=yes
  5183. fi
  5184. fi
  5185. $rm conftest*
  5186. fi
  5187. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5188. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5189. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5190. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5191. else
  5192. :
  5193. fi
  5194. fi
  5195. lt_prog_compiler_wl=
  5196. lt_prog_compiler_pic=
  5197. lt_prog_compiler_static=
  5198. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5199. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5200. if test "$GCC" = yes; then
  5201. lt_prog_compiler_wl='-Wl,'
  5202. lt_prog_compiler_static='-static'
  5203. case $host_os in
  5204. aix*)
  5205. # All AIX code is PIC.
  5206. if test "$host_cpu" = ia64; then
  5207. # AIX 5 now supports IA64 processor
  5208. lt_prog_compiler_static='-Bstatic'
  5209. fi
  5210. ;;
  5211. amigaos*)
  5212. # FIXME: we need at least 68020 code to build shared libraries, but
  5213. # adding the `-m68020' flag to GCC prevents building anything better,
  5214. # like `-m68040'.
  5215. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5216. ;;
  5217. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5218. # PIC is the default for these OSes.
  5219. ;;
  5220. mingw* | pw32* | os2*)
  5221. # This hack is so that the source file can tell whether it is being
  5222. # built for inclusion in a dll (and should export symbols for example).
  5223. lt_prog_compiler_pic='-DDLL_EXPORT'
  5224. ;;
  5225. darwin* | rhapsody*)
  5226. # PIC is the default on this platform
  5227. # Common symbols not allowed in MH_DYLIB files
  5228. lt_prog_compiler_pic='-fno-common'
  5229. ;;
  5230. interix3*)
  5231. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5232. # Instead, we relocate shared libraries at runtime.
  5233. ;;
  5234. msdosdjgpp*)
  5235. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5236. # on systems that don't support them.
  5237. lt_prog_compiler_can_build_shared=no
  5238. enable_shared=no
  5239. ;;
  5240. sysv4*MP*)
  5241. if test -d /usr/nec; then
  5242. lt_prog_compiler_pic=-Kconform_pic
  5243. fi
  5244. ;;
  5245. hpux*)
  5246. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5247. # not for PA HP-UX.
  5248. case $host_cpu in
  5249. hppa*64*|ia64*)
  5250. # +Z the default
  5251. ;;
  5252. *)
  5253. lt_prog_compiler_pic='-fPIC'
  5254. ;;
  5255. esac
  5256. ;;
  5257. *)
  5258. lt_prog_compiler_pic='-fPIC'
  5259. ;;
  5260. esac
  5261. else
  5262. # PORTME Check for flag to pass linker flags through the system compiler.
  5263. case $host_os in
  5264. aix*)
  5265. lt_prog_compiler_wl='-Wl,'
  5266. if test "$host_cpu" = ia64; then
  5267. # AIX 5 now supports IA64 processor
  5268. lt_prog_compiler_static='-Bstatic'
  5269. else
  5270. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5271. fi
  5272. ;;
  5273. darwin*)
  5274. # PIC is the default on this platform
  5275. # Common symbols not allowed in MH_DYLIB files
  5276. case $cc_basename in
  5277. xlc*)
  5278. lt_prog_compiler_pic='-qnocommon'
  5279. lt_prog_compiler_wl='-Wl,'
  5280. ;;
  5281. esac
  5282. ;;
  5283. mingw* | pw32* | os2*)
  5284. # This hack is so that the source file can tell whether it is being
  5285. # built for inclusion in a dll (and should export symbols for example).
  5286. lt_prog_compiler_pic='-DDLL_EXPORT'
  5287. ;;
  5288. hpux9* | hpux10* | hpux11*)
  5289. lt_prog_compiler_wl='-Wl,'
  5290. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5291. # not for PA HP-UX.
  5292. case $host_cpu in
  5293. hppa*64*|ia64*)
  5294. # +Z the default
  5295. ;;
  5296. *)
  5297. lt_prog_compiler_pic='+Z'
  5298. ;;
  5299. esac
  5300. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5301. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5302. ;;
  5303. irix5* | irix6* | nonstopux*)
  5304. lt_prog_compiler_wl='-Wl,'
  5305. # PIC (with -KPIC) is the default.
  5306. lt_prog_compiler_static='-non_shared'
  5307. ;;
  5308. newsos6)
  5309. lt_prog_compiler_pic='-KPIC'
  5310. lt_prog_compiler_static='-Bstatic'
  5311. ;;
  5312. linux*)
  5313. case $cc_basename in
  5314. icc* | ecc*)
  5315. lt_prog_compiler_wl='-Wl,'
  5316. lt_prog_compiler_pic='-KPIC'
  5317. lt_prog_compiler_static='-static'
  5318. ;;
  5319. pgcc* | pgf77* | pgf90* | pgf95*)
  5320. # Portland Group compilers (*not* the Pentium gcc compiler,
  5321. # which looks to be a dead project)
  5322. lt_prog_compiler_wl='-Wl,'
  5323. lt_prog_compiler_pic='-fpic'
  5324. lt_prog_compiler_static='-Bstatic'
  5325. ;;
  5326. ccc*)
  5327. lt_prog_compiler_wl='-Wl,'
  5328. # All Alpha code is PIC.
  5329. lt_prog_compiler_static='-non_shared'
  5330. ;;
  5331. esac
  5332. ;;
  5333. osf3* | osf4* | osf5*)
  5334. lt_prog_compiler_wl='-Wl,'
  5335. # All OSF/1 code is PIC.
  5336. lt_prog_compiler_static='-non_shared'
  5337. ;;
  5338. solaris*)
  5339. lt_prog_compiler_pic='-KPIC'
  5340. lt_prog_compiler_static='-Bstatic'
  5341. case $cc_basename in
  5342. f77* | f90* | f95*)
  5343. lt_prog_compiler_wl='-Qoption ld ';;
  5344. *)
  5345. lt_prog_compiler_wl='-Wl,';;
  5346. esac
  5347. ;;
  5348. sunos4*)
  5349. lt_prog_compiler_wl='-Qoption ld '
  5350. lt_prog_compiler_pic='-PIC'
  5351. lt_prog_compiler_static='-Bstatic'
  5352. ;;
  5353. sysv4 | sysv4.2uw2* | sysv4.3*)
  5354. lt_prog_compiler_wl='-Wl,'
  5355. lt_prog_compiler_pic='-KPIC'
  5356. lt_prog_compiler_static='-Bstatic'
  5357. ;;
  5358. sysv4*MP*)
  5359. if test -d /usr/nec ;then
  5360. lt_prog_compiler_pic='-Kconform_pic'
  5361. lt_prog_compiler_static='-Bstatic'
  5362. fi
  5363. ;;
  5364. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5365. lt_prog_compiler_wl='-Wl,'
  5366. lt_prog_compiler_pic='-KPIC'
  5367. lt_prog_compiler_static='-Bstatic'
  5368. ;;
  5369. unicos*)
  5370. lt_prog_compiler_wl='-Wl,'
  5371. lt_prog_compiler_can_build_shared=no
  5372. ;;
  5373. uts4*)
  5374. lt_prog_compiler_pic='-pic'
  5375. lt_prog_compiler_static='-Bstatic'
  5376. ;;
  5377. *)
  5378. lt_prog_compiler_can_build_shared=no
  5379. ;;
  5380. esac
  5381. fi
  5382. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  5383. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  5384. #
  5385. # Check to make sure the PIC flag actually works.
  5386. #
  5387. if test -n "$lt_prog_compiler_pic"; then
  5388. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5389. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  5390. if test "${lt_prog_compiler_pic_works+set}" = set; then
  5391. echo $ECHO_N "(cached) $ECHO_C" >&6
  5392. else
  5393. lt_prog_compiler_pic_works=no
  5394. ac_outfile=conftest.$ac_objext
  5395. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5396. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5397. # Insert the option either (1) after the last *FLAGS variable, or
  5398. # (2) before a word containing "conftest.", or (3) at the end.
  5399. # Note that $ac_compile itself does not contain backslashes and begins
  5400. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5401. # The option is referenced via a variable to avoid confusing sed.
  5402. lt_compile=`echo "$ac_compile" | $SED \
  5403. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5404. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5405. -e 's:$: $lt_compiler_flag:'`
  5406. (eval echo "\"\$as_me:5974: $lt_compile\"" >&5)
  5407. (eval "$lt_compile" 2>conftest.err)
  5408. ac_status=$?
  5409. cat conftest.err >&5
  5410. echo "$as_me:5978: \$? = $ac_status" >&5
  5411. if (exit $ac_status) && test -s "$ac_outfile"; then
  5412. # The compiler can only warn and ignore the option if not recognized
  5413. # So say no if there are warnings other than the usual output.
  5414. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5415. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5416. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5417. lt_prog_compiler_pic_works=yes
  5418. fi
  5419. fi
  5420. $rm conftest*
  5421. fi
  5422. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  5423. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  5424. if test x"$lt_prog_compiler_pic_works" = xyes; then
  5425. case $lt_prog_compiler_pic in
  5426. "" | " "*) ;;
  5427. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  5428. esac
  5429. else
  5430. lt_prog_compiler_pic=
  5431. lt_prog_compiler_can_build_shared=no
  5432. fi
  5433. fi
  5434. case $host_os in
  5435. # For platforms which do not support PIC, -DPIC is meaningless:
  5436. *djgpp*)
  5437. lt_prog_compiler_pic=
  5438. ;;
  5439. *)
  5440. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5441. ;;
  5442. esac
  5443. #
  5444. # Check to make sure the static flag actually works.
  5445. #
  5446. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  5447. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  5448. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  5449. if test "${lt_prog_compiler_static_works+set}" = set; then
  5450. echo $ECHO_N "(cached) $ECHO_C" >&6
  5451. else
  5452. lt_prog_compiler_static_works=no
  5453. save_LDFLAGS="$LDFLAGS"
  5454. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  5455. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  5456. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  5457. # The linker can only warn and ignore the option if not recognized
  5458. # So say no if there are warnings
  5459. if test -s conftest.err; then
  5460. # Append any errors to the config.log.
  5461. cat conftest.err 1>&5
  5462. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  5463. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5464. if diff conftest.exp conftest.er2 >/dev/null; then
  5465. lt_prog_compiler_static_works=yes
  5466. fi
  5467. else
  5468. lt_prog_compiler_static_works=yes
  5469. fi
  5470. fi
  5471. $rm conftest*
  5472. LDFLAGS="$save_LDFLAGS"
  5473. fi
  5474. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  5475. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  5476. if test x"$lt_prog_compiler_static_works" = xyes; then
  5477. :
  5478. else
  5479. lt_prog_compiler_static=
  5480. fi
  5481. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  5482. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  5483. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  5484. echo $ECHO_N "(cached) $ECHO_C" >&6
  5485. else
  5486. lt_cv_prog_compiler_c_o=no
  5487. $rm -r conftest 2>/dev/null
  5488. mkdir conftest
  5489. cd conftest
  5490. mkdir out
  5491. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5492. lt_compiler_flag="-o out/conftest2.$ac_objext"
  5493. # Insert the option either (1) after the last *FLAGS variable, or
  5494. # (2) before a word containing "conftest.", or (3) at the end.
  5495. # Note that $ac_compile itself does not contain backslashes and begins
  5496. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5497. lt_compile=`echo "$ac_compile" | $SED \
  5498. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5499. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5500. -e 's:$: $lt_compiler_flag:'`
  5501. (eval echo "\"\$as_me:6078: $lt_compile\"" >&5)
  5502. (eval "$lt_compile" 2>out/conftest.err)
  5503. ac_status=$?
  5504. cat out/conftest.err >&5
  5505. echo "$as_me:6082: \$? = $ac_status" >&5
  5506. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5507. then
  5508. # The compiler can only warn and ignore the option if not recognized
  5509. # So say no if there are warnings
  5510. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  5511. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  5512. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  5513. lt_cv_prog_compiler_c_o=yes
  5514. fi
  5515. fi
  5516. chmod u+w . 2>&5
  5517. $rm conftest*
  5518. # SGI C++ compiler will create directory out/ii_files/ for
  5519. # template instantiation
  5520. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  5521. $rm out/* && rmdir out
  5522. cd ..
  5523. rmdir conftest
  5524. $rm conftest*
  5525. fi
  5526. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  5527. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  5528. hard_links="nottested"
  5529. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  5530. # do not overwrite the value of need_locks provided by the user
  5531. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  5532. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  5533. hard_links=yes
  5534. $rm conftest*
  5535. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5536. touch conftest.a
  5537. ln conftest.a conftest.b 2>&5 || hard_links=no
  5538. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5539. echo "$as_me:$LINENO: result: $hard_links" >&5
  5540. echo "${ECHO_T}$hard_links" >&6
  5541. if test "$hard_links" = no; then
  5542. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  5543. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  5544. need_locks=warn
  5545. fi
  5546. else
  5547. need_locks=no
  5548. fi
  5549. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  5550. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  5551. runpath_var=
  5552. allow_undefined_flag=
  5553. enable_shared_with_static_runtimes=no
  5554. archive_cmds=
  5555. archive_expsym_cmds=
  5556. old_archive_From_new_cmds=
  5557. old_archive_from_expsyms_cmds=
  5558. export_dynamic_flag_spec=
  5559. whole_archive_flag_spec=
  5560. thread_safe_flag_spec=
  5561. hardcode_libdir_flag_spec=
  5562. hardcode_libdir_flag_spec_ld=
  5563. hardcode_libdir_separator=
  5564. hardcode_direct=no
  5565. hardcode_minus_L=no
  5566. hardcode_shlibpath_var=unsupported
  5567. link_all_deplibs=unknown
  5568. hardcode_automatic=no
  5569. module_cmds=
  5570. module_expsym_cmds=
  5571. always_export_symbols=no
  5572. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5573. # include_expsyms should be a list of space-separated symbols to be *always*
  5574. # included in the symbol list
  5575. include_expsyms=
  5576. # exclude_expsyms can be an extended regexp of symbols to exclude
  5577. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5578. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5579. # as well as any symbol that contains `d'.
  5580. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  5581. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5582. # platforms (ab)use it in PIC code, but their linkers get confused if
  5583. # the symbol is explicitly referenced. Since portable code cannot
  5584. # rely on this symbol name, it's probably fine to never include it in
  5585. # preloaded symbol tables.
  5586. extract_expsyms_cmds=
  5587. # Just being paranoid about ensuring that cc_basename is set.
  5588. for cc_temp in $compiler""; do
  5589. case $cc_temp in
  5590. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5591. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5592. \-*) ;;
  5593. *) break;;
  5594. esac
  5595. done
  5596. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5597. case $host_os in
  5598. cygwin* | mingw* | pw32*)
  5599. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5600. # When not using gcc, we currently assume that we are using
  5601. # Microsoft Visual C++.
  5602. if test "$GCC" != yes; then
  5603. with_gnu_ld=no
  5604. fi
  5605. ;;
  5606. interix*)
  5607. # we just hope/assume this is gcc and not c89 (= MSVC++)
  5608. with_gnu_ld=yes
  5609. ;;
  5610. openbsd*)
  5611. with_gnu_ld=no
  5612. ;;
  5613. esac
  5614. ld_shlibs=yes
  5615. if test "$with_gnu_ld" = yes; then
  5616. # If archive_cmds runs LD, not CC, wlarc should be empty
  5617. wlarc='${wl}'
  5618. # Set some defaults for GNU ld with shared library support. These
  5619. # are reset later if shared libraries are not supported. Putting them
  5620. # here allows them to be overridden if necessary.
  5621. runpath_var=LD_RUN_PATH
  5622. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  5623. export_dynamic_flag_spec='${wl}--export-dynamic'
  5624. # ancient GNU ld didn't support --whole-archive et. al.
  5625. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5626. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5627. else
  5628. whole_archive_flag_spec=
  5629. fi
  5630. supports_anon_versioning=no
  5631. case `$LD -v 2>/dev/null` in
  5632. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  5633. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5634. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5635. *\ 2.11.*) ;; # other 2.11 versions
  5636. *) supports_anon_versioning=yes ;;
  5637. esac
  5638. # See if GNU ld supports shared libraries.
  5639. case $host_os in
  5640. aix3* | aix4* | aix5*)
  5641. # On AIX/PPC, the GNU linker is very broken
  5642. if test "$host_cpu" != ia64; then
  5643. ld_shlibs=no
  5644. cat <<EOF 1>&2
  5645. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5646. *** to be unable to reliably create shared libraries on AIX.
  5647. *** Therefore, libtool is disabling shared libraries support. If you
  5648. *** really care for shared libraries, you may want to modify your PATH
  5649. *** so that a non-GNU linker is found, and then restart.
  5650. EOF
  5651. fi
  5652. ;;
  5653. amigaos*)
  5654. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5655. hardcode_libdir_flag_spec='-L$libdir'
  5656. hardcode_minus_L=yes
  5657. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5658. # that the semantics of dynamic libraries on AmigaOS, at least up
  5659. # to version 4, is to share data among multiple programs linked
  5660. # with the same dynamic library. Since this doesn't match the
  5661. # behavior of shared libraries on other platforms, we can't use
  5662. # them.
  5663. ld_shlibs=no
  5664. ;;
  5665. beos*)
  5666. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5667. allow_undefined_flag=unsupported
  5668. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5669. # support --undefined. This deserves some investigation. FIXME
  5670. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5671. else
  5672. ld_shlibs=no
  5673. fi
  5674. ;;
  5675. cygwin* | mingw* | pw32*)
  5676. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  5677. # as there is no search path for DLLs.
  5678. hardcode_libdir_flag_spec='-L$libdir'
  5679. allow_undefined_flag=unsupported
  5680. always_export_symbols=no
  5681. enable_shared_with_static_runtimes=yes
  5682. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  5683. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5684. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5685. # If the export-symbols file already is a .def file (1st line
  5686. # is EXPORTS), use it as is; otherwise, prepend...
  5687. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5688. cp $export_symbols $output_objdir/$soname.def;
  5689. else
  5690. echo EXPORTS > $output_objdir/$soname.def;
  5691. cat $export_symbols >> $output_objdir/$soname.def;
  5692. fi~
  5693. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5694. else
  5695. ld_shlibs=no
  5696. fi
  5697. ;;
  5698. interix3*)
  5699. hardcode_direct=no
  5700. hardcode_shlibpath_var=no
  5701. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  5702. export_dynamic_flag_spec='${wl}-E'
  5703. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5704. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5705. # default) and relocated if they conflict, which is a slow very memory
  5706. # consuming and fragmenting process. To avoid this, we pick a random,
  5707. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5708. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5709. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5710. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5711. ;;
  5712. linux*)
  5713. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5714. tmp_addflag=
  5715. case $cc_basename,$host_cpu in
  5716. pgcc*) # Portland Group C compiler
  5717. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5718. tmp_addflag=' $pic_flag'
  5719. ;;
  5720. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5721. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5722. tmp_addflag=' $pic_flag -Mnomain' ;;
  5723. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5724. tmp_addflag=' -i_dynamic' ;;
  5725. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5726. tmp_addflag=' -i_dynamic -nofor_main' ;;
  5727. ifc* | ifort*) # Intel Fortran compiler
  5728. tmp_addflag=' -nofor_main' ;;
  5729. esac
  5730. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5731. if test $supports_anon_versioning = yes; then
  5732. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  5733. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5734. $echo "local: *; };" >> $output_objdir/$libname.ver~
  5735. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5736. fi
  5737. else
  5738. ld_shlibs=no
  5739. fi
  5740. ;;
  5741. netbsd*)
  5742. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5743. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5744. wlarc=
  5745. else
  5746. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5747. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5748. fi
  5749. ;;
  5750. solaris*)
  5751. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5752. ld_shlibs=no
  5753. cat <<EOF 1>&2
  5754. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5755. *** create shared libraries on Solaris systems. Therefore, libtool
  5756. *** is disabling shared libraries support. We urge you to upgrade GNU
  5757. *** binutils to release 2.9.1 or newer. Another option is to modify
  5758. *** your PATH or compiler configuration so that the native linker is
  5759. *** used, and then restart.
  5760. EOF
  5761. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5762. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5763. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5764. else
  5765. ld_shlibs=no
  5766. fi
  5767. ;;
  5768. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5769. case `$LD -v 2>&1` in
  5770. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  5771. ld_shlibs=no
  5772. cat <<_LT_EOF 1>&2
  5773. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5774. *** reliably create shared libraries on SCO systems. Therefore, libtool
  5775. *** is disabling shared libraries support. We urge you to upgrade GNU
  5776. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5777. *** your PATH or compiler configuration so that the native linker is
  5778. *** used, and then restart.
  5779. _LT_EOF
  5780. ;;
  5781. *)
  5782. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5783. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  5784. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  5785. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  5786. else
  5787. ld_shlibs=no
  5788. fi
  5789. ;;
  5790. esac
  5791. ;;
  5792. sunos4*)
  5793. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5794. wlarc=
  5795. hardcode_direct=yes
  5796. hardcode_shlibpath_var=no
  5797. ;;
  5798. *)
  5799. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5800. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5801. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5802. else
  5803. ld_shlibs=no
  5804. fi
  5805. ;;
  5806. esac
  5807. if test "$ld_shlibs" = no; then
  5808. runpath_var=
  5809. hardcode_libdir_flag_spec=
  5810. export_dynamic_flag_spec=
  5811. whole_archive_flag_spec=
  5812. fi
  5813. else
  5814. # PORTME fill in a description of your system's linker (not GNU ld)
  5815. case $host_os in
  5816. aix3*)
  5817. allow_undefined_flag=unsupported
  5818. always_export_symbols=yes
  5819. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  5820. # Note: this linker hardcodes the directories in LIBPATH if there
  5821. # are no directories specified by -L.
  5822. hardcode_minus_L=yes
  5823. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5824. # Neither direct hardcoding nor static linking is supported with a
  5825. # broken collect2.
  5826. hardcode_direct=unsupported
  5827. fi
  5828. ;;
  5829. aix4* | aix5*)
  5830. if test "$host_cpu" = ia64; then
  5831. # On IA64, the linker does run time linking by default, so we don't
  5832. # have to do anything special.
  5833. aix_use_runtimelinking=no
  5834. exp_sym_flag='-Bexport'
  5835. no_entry_flag=""
  5836. else
  5837. # If we're using GNU nm, then we don't want the "-C" option.
  5838. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5839. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5840. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  5841. else
  5842. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  5843. fi
  5844. aix_use_runtimelinking=no
  5845. # Test if we are trying to use run time linking or normal
  5846. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5847. # need to do runtime linking.
  5848. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  5849. for ld_flag in $LDFLAGS; do
  5850. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5851. aix_use_runtimelinking=yes
  5852. break
  5853. fi
  5854. done
  5855. ;;
  5856. esac
  5857. exp_sym_flag='-bexport'
  5858. no_entry_flag='-bnoentry'
  5859. fi
  5860. # When large executables or shared objects are built, AIX ld can
  5861. # have problems creating the table of contents. If linking a library
  5862. # or program results in "error TOC overflow" add -mminimal-toc to
  5863. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5864. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5865. archive_cmds=''
  5866. hardcode_direct=yes
  5867. hardcode_libdir_separator=':'
  5868. link_all_deplibs=yes
  5869. if test "$GCC" = yes; then
  5870. case $host_os in aix4.[012]|aix4.[012].*)
  5871. # We only want to do this on AIX 4.2 and lower, the check
  5872. # below for broken collect2 doesn't work under 4.3+
  5873. collect2name=`${CC} -print-prog-name=collect2`
  5874. if test -f "$collect2name" && \
  5875. strings "$collect2name" | grep resolve_lib_name >/dev/null
  5876. then
  5877. # We have reworked collect2
  5878. hardcode_direct=yes
  5879. else
  5880. # We have old collect2
  5881. hardcode_direct=unsupported
  5882. # It fails to find uninstalled libraries when the uninstalled
  5883. # path is not listed in the libpath. Setting hardcode_minus_L
  5884. # to unsupported forces relinking
  5885. hardcode_minus_L=yes
  5886. hardcode_libdir_flag_spec='-L$libdir'
  5887. hardcode_libdir_separator=
  5888. fi
  5889. ;;
  5890. esac
  5891. shared_flag='-shared'
  5892. if test "$aix_use_runtimelinking" = yes; then
  5893. shared_flag="$shared_flag "'${wl}-G'
  5894. fi
  5895. else
  5896. # not using gcc
  5897. if test "$host_cpu" = ia64; then
  5898. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5899. # chokes on -Wl,-G. The following line is correct:
  5900. shared_flag='-G'
  5901. else
  5902. if test "$aix_use_runtimelinking" = yes; then
  5903. shared_flag='${wl}-G'
  5904. else
  5905. shared_flag='${wl}-bM:SRE'
  5906. fi
  5907. fi
  5908. fi
  5909. # It seems that -bexpall does not export symbols beginning with
  5910. # underscore (_), so it is better to generate a list of symbols to export.
  5911. always_export_symbols=yes
  5912. if test "$aix_use_runtimelinking" = yes; then
  5913. # Warning - without using the other runtime loading flags (-brtl),
  5914. # -berok will link without error, but may produce a broken library.
  5915. allow_undefined_flag='-berok'
  5916. # Determine the default libpath from the value encoded in an empty executable.
  5917. cat >conftest.$ac_ext <<_ACEOF
  5918. /* confdefs.h. */
  5919. _ACEOF
  5920. cat confdefs.h >>conftest.$ac_ext
  5921. cat >>conftest.$ac_ext <<_ACEOF
  5922. /* end confdefs.h. */
  5923. int
  5924. main ()
  5925. {
  5926. ;
  5927. return 0;
  5928. }
  5929. _ACEOF
  5930. rm -f conftest.$ac_objext conftest$ac_exeext
  5931. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5932. (eval $ac_link) 2>conftest.er1
  5933. ac_status=$?
  5934. grep -v '^ *+' conftest.er1 >conftest.err
  5935. rm -f conftest.er1
  5936. cat conftest.err >&5
  5937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5938. (exit $ac_status); } &&
  5939. { ac_try='test -z "$ac_c_werror_flag"
  5940. || test ! -s conftest.err'
  5941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5942. (eval $ac_try) 2>&5
  5943. ac_status=$?
  5944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5945. (exit $ac_status); }; } &&
  5946. { ac_try='test -s conftest$ac_exeext'
  5947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5948. (eval $ac_try) 2>&5
  5949. ac_status=$?
  5950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5951. (exit $ac_status); }; }; then
  5952. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5953. }'`
  5954. # Check for a 64-bit object if we didn't find anything.
  5955. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  5956. }'`; fi
  5957. else
  5958. echo "$as_me: failed program was:" >&5
  5959. sed 's/^/| /' conftest.$ac_ext >&5
  5960. fi
  5961. rm -f conftest.err conftest.$ac_objext \
  5962. conftest$ac_exeext conftest.$ac_ext
  5963. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  5964. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  5965. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5966. else
  5967. if test "$host_cpu" = ia64; then
  5968. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  5969. allow_undefined_flag="-z nodefs"
  5970. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  5971. else
  5972. # Determine the default libpath from the value encoded in an empty executable.
  5973. cat >conftest.$ac_ext <<_ACEOF
  5974. /* confdefs.h. */
  5975. _ACEOF
  5976. cat confdefs.h >>conftest.$ac_ext
  5977. cat >>conftest.$ac_ext <<_ACEOF
  5978. /* end confdefs.h. */
  5979. int
  5980. main ()
  5981. {
  5982. ;
  5983. return 0;
  5984. }
  5985. _ACEOF
  5986. rm -f conftest.$ac_objext conftest$ac_exeext
  5987. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5988. (eval $ac_link) 2>conftest.er1
  5989. ac_status=$?
  5990. grep -v '^ *+' conftest.er1 >conftest.err
  5991. rm -f conftest.er1
  5992. cat conftest.err >&5
  5993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5994. (exit $ac_status); } &&
  5995. { ac_try='test -z "$ac_c_werror_flag"
  5996. || test ! -s conftest.err'
  5997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5998. (eval $ac_try) 2>&5
  5999. ac_status=$?
  6000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6001. (exit $ac_status); }; } &&
  6002. { ac_try='test -s conftest$ac_exeext'
  6003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6004. (eval $ac_try) 2>&5
  6005. ac_status=$?
  6006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6007. (exit $ac_status); }; }; then
  6008. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6009. }'`
  6010. # Check for a 64-bit object if we didn't find anything.
  6011. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6012. }'`; fi
  6013. else
  6014. echo "$as_me: failed program was:" >&5
  6015. sed 's/^/| /' conftest.$ac_ext >&5
  6016. fi
  6017. rm -f conftest.err conftest.$ac_objext \
  6018. conftest$ac_exeext conftest.$ac_ext
  6019. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6020. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6021. # Warning - without using the other run time loading flags,
  6022. # -berok will link without error, but may produce a broken library.
  6023. no_undefined_flag=' ${wl}-bernotok'
  6024. allow_undefined_flag=' ${wl}-berok'
  6025. # Exported symbols can be pulled into shared objects from archives
  6026. whole_archive_flag_spec='$convenience'
  6027. archive_cmds_need_lc=yes
  6028. # This is similar to how AIX traditionally builds its shared libraries.
  6029. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6030. fi
  6031. fi
  6032. ;;
  6033. amigaos*)
  6034. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  6035. hardcode_libdir_flag_spec='-L$libdir'
  6036. hardcode_minus_L=yes
  6037. # see comment about different semantics on the GNU ld section
  6038. ld_shlibs=no
  6039. ;;
  6040. bsdi[45]*)
  6041. export_dynamic_flag_spec=-rdynamic
  6042. ;;
  6043. cygwin* | mingw* | pw32*)
  6044. # When not using gcc, we currently assume that we are using
  6045. # Microsoft Visual C++.
  6046. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6047. # no search path for DLLs.
  6048. hardcode_libdir_flag_spec=' '
  6049. allow_undefined_flag=unsupported
  6050. # Tell ltmain to make .lib files, not .a files.
  6051. libext=lib
  6052. # Tell ltmain to make .dll files, not .so files.
  6053. shrext_cmds=".dll"
  6054. # FIXME: Setting linknames here is a bad hack.
  6055. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6056. # The linker will automatically build a .lib file if we build a DLL.
  6057. old_archive_From_new_cmds='true'
  6058. # FIXME: Should let the user specify the lib program.
  6059. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6060. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6061. enable_shared_with_static_runtimes=yes
  6062. ;;
  6063. darwin* | rhapsody*)
  6064. case $host_os in
  6065. rhapsody* | darwin1.[012])
  6066. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6067. ;;
  6068. *) # Darwin 1.3 on
  6069. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6070. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6071. else
  6072. case ${MACOSX_DEPLOYMENT_TARGET} in
  6073. 10.[012])
  6074. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6075. ;;
  6076. 10.*)
  6077. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6078. ;;
  6079. esac
  6080. fi
  6081. ;;
  6082. esac
  6083. archive_cmds_need_lc=no
  6084. hardcode_direct=no
  6085. hardcode_automatic=yes
  6086. hardcode_shlibpath_var=unsupported
  6087. whole_archive_flag_spec=''
  6088. link_all_deplibs=yes
  6089. if test "$GCC" = yes ; then
  6090. output_verbose_link_cmd='echo'
  6091. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6092. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6093. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6094. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6095. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6096. else
  6097. case $cc_basename in
  6098. xlc*)
  6099. output_verbose_link_cmd='echo'
  6100. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6101. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6102. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6103. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6104. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6105. ;;
  6106. *)
  6107. ld_shlibs=no
  6108. ;;
  6109. esac
  6110. fi
  6111. ;;
  6112. dgux*)
  6113. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6114. hardcode_libdir_flag_spec='-L$libdir'
  6115. hardcode_shlibpath_var=no
  6116. ;;
  6117. freebsd1*)
  6118. ld_shlibs=no
  6119. ;;
  6120. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6121. # support. Future versions do this automatically, but an explicit c++rt0.o
  6122. # does not break anything, and helps significantly (at the cost of a little
  6123. # extra space).
  6124. freebsd2.2*)
  6125. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6126. hardcode_libdir_flag_spec='-R$libdir'
  6127. hardcode_direct=yes
  6128. hardcode_shlibpath_var=no
  6129. ;;
  6130. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6131. freebsd2*)
  6132. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6133. hardcode_direct=yes
  6134. hardcode_minus_L=yes
  6135. hardcode_shlibpath_var=no
  6136. ;;
  6137. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6138. freebsd* | kfreebsd*-gnu | dragonfly*)
  6139. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6140. hardcode_libdir_flag_spec='-R$libdir'
  6141. hardcode_direct=yes
  6142. hardcode_shlibpath_var=no
  6143. ;;
  6144. hpux9*)
  6145. if test "$GCC" = yes; then
  6146. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6147. else
  6148. archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6149. fi
  6150. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6151. hardcode_libdir_separator=:
  6152. hardcode_direct=yes
  6153. # hardcode_minus_L: Not really in the search PATH,
  6154. # but as the default location of the library.
  6155. hardcode_minus_L=yes
  6156. export_dynamic_flag_spec='${wl}-E'
  6157. ;;
  6158. hpux10*)
  6159. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6160. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6161. else
  6162. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6163. fi
  6164. if test "$with_gnu_ld" = no; then
  6165. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6166. hardcode_libdir_separator=:
  6167. hardcode_direct=yes
  6168. export_dynamic_flag_spec='${wl}-E'
  6169. # hardcode_minus_L: Not really in the search PATH,
  6170. # but as the default location of the library.
  6171. hardcode_minus_L=yes
  6172. fi
  6173. ;;
  6174. hpux11*)
  6175. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6176. case $host_cpu in
  6177. hppa*64*)
  6178. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6179. ;;
  6180. ia64*)
  6181. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6182. ;;
  6183. *)
  6184. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6185. ;;
  6186. esac
  6187. else
  6188. case $host_cpu in
  6189. hppa*64*)
  6190. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6191. ;;
  6192. ia64*)
  6193. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6194. ;;
  6195. *)
  6196. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6197. ;;
  6198. esac
  6199. fi
  6200. if test "$with_gnu_ld" = no; then
  6201. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6202. hardcode_libdir_separator=:
  6203. case $host_cpu in
  6204. hppa*64*|ia64*)
  6205. hardcode_libdir_flag_spec_ld='+b $libdir'
  6206. hardcode_direct=no
  6207. hardcode_shlibpath_var=no
  6208. ;;
  6209. *)
  6210. hardcode_direct=yes
  6211. export_dynamic_flag_spec='${wl}-E'
  6212. # hardcode_minus_L: Not really in the search PATH,
  6213. # but as the default location of the library.
  6214. hardcode_minus_L=yes
  6215. ;;
  6216. esac
  6217. fi
  6218. ;;
  6219. irix5* | irix6* | nonstopux*)
  6220. if test "$GCC" = yes; then
  6221. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6222. else
  6223. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6224. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6225. fi
  6226. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6227. hardcode_libdir_separator=:
  6228. link_all_deplibs=yes
  6229. ;;
  6230. netbsd*)
  6231. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6232. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6233. else
  6234. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6235. fi
  6236. hardcode_libdir_flag_spec='-R$libdir'
  6237. hardcode_direct=yes
  6238. hardcode_shlibpath_var=no
  6239. ;;
  6240. newsos6)
  6241. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6242. hardcode_direct=yes
  6243. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6244. hardcode_libdir_separator=:
  6245. hardcode_shlibpath_var=no
  6246. ;;
  6247. openbsd*)
  6248. hardcode_direct=yes
  6249. hardcode_shlibpath_var=no
  6250. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6251. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6252. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6253. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6254. export_dynamic_flag_spec='${wl}-E'
  6255. else
  6256. case $host_os in
  6257. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6258. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6259. hardcode_libdir_flag_spec='-R$libdir'
  6260. ;;
  6261. *)
  6262. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6263. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6264. ;;
  6265. esac
  6266. fi
  6267. ;;
  6268. os2*)
  6269. hardcode_libdir_flag_spec='-L$libdir'
  6270. hardcode_minus_L=yes
  6271. allow_undefined_flag=unsupported
  6272. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  6273. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6274. ;;
  6275. osf3*)
  6276. if test "$GCC" = yes; then
  6277. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6278. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6279. else
  6280. allow_undefined_flag=' -expect_unresolved \*'
  6281. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6282. fi
  6283. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6284. hardcode_libdir_separator=:
  6285. ;;
  6286. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6287. if test "$GCC" = yes; then
  6288. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6289. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6290. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6291. else
  6292. allow_undefined_flag=' -expect_unresolved \*'
  6293. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6294. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6295. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  6296. # Both c and cxx compiler support -rpath directly
  6297. hardcode_libdir_flag_spec='-rpath $libdir'
  6298. fi
  6299. hardcode_libdir_separator=:
  6300. ;;
  6301. solaris*)
  6302. no_undefined_flag=' -z text'
  6303. if test "$GCC" = yes; then
  6304. wlarc='${wl}'
  6305. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6306. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6307. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6308. else
  6309. wlarc=''
  6310. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6311. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6312. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6313. fi
  6314. hardcode_libdir_flag_spec='-R$libdir'
  6315. hardcode_shlibpath_var=no
  6316. case $host_os in
  6317. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6318. *)
  6319. # The compiler driver will combine linker options so we
  6320. # cannot just pass the convience library names through
  6321. # without $wl, iff we do not link with $LD.
  6322. # Luckily, gcc supports the same syntax we need for Sun Studio.
  6323. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6324. case $wlarc in
  6325. '')
  6326. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6327. *)
  6328. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  6329. esac ;;
  6330. esac
  6331. link_all_deplibs=yes
  6332. ;;
  6333. sunos4*)
  6334. if test "x$host_vendor" = xsequent; then
  6335. # Use $CC to link under sequent, because it throws in some extra .o
  6336. # files that make .init and .fini sections work.
  6337. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6338. else
  6339. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6340. fi
  6341. hardcode_libdir_flag_spec='-L$libdir'
  6342. hardcode_direct=yes
  6343. hardcode_minus_L=yes
  6344. hardcode_shlibpath_var=no
  6345. ;;
  6346. sysv4)
  6347. case $host_vendor in
  6348. sni)
  6349. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6350. hardcode_direct=yes # is this really true???
  6351. ;;
  6352. siemens)
  6353. ## LD is ld it makes a PLAMLIB
  6354. ## CC just makes a GrossModule.
  6355. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6356. reload_cmds='$CC -r -o $output$reload_objs'
  6357. hardcode_direct=no
  6358. ;;
  6359. motorola)
  6360. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6361. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6362. ;;
  6363. esac
  6364. runpath_var='LD_RUN_PATH'
  6365. hardcode_shlibpath_var=no
  6366. ;;
  6367. sysv4.3*)
  6368. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6369. hardcode_shlibpath_var=no
  6370. export_dynamic_flag_spec='-Bexport'
  6371. ;;
  6372. sysv4*MP*)
  6373. if test -d /usr/nec; then
  6374. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6375. hardcode_shlibpath_var=no
  6376. runpath_var=LD_RUN_PATH
  6377. hardcode_runpath_var=yes
  6378. ld_shlibs=yes
  6379. fi
  6380. ;;
  6381. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  6382. no_undefined_flag='${wl}-z,text'
  6383. archive_cmds_need_lc=no
  6384. hardcode_shlibpath_var=no
  6385. runpath_var='LD_RUN_PATH'
  6386. if test "$GCC" = yes; then
  6387. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6388. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6389. else
  6390. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6391. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6392. fi
  6393. ;;
  6394. sysv5* | sco3.2v5* | sco5v6*)
  6395. # Note: We can NOT use -z defs as we might desire, because we do not
  6396. # link with -lc, and that would cause any symbols used from libc to
  6397. # always be unresolved, which means just about no library would
  6398. # ever link correctly. If we're not using GNU ld we use -z text
  6399. # though, which does catch some bad symbols but isn't as heavy-handed
  6400. # as -z defs.
  6401. no_undefined_flag='${wl}-z,text'
  6402. allow_undefined_flag='${wl}-z,nodefs'
  6403. archive_cmds_need_lc=no
  6404. hardcode_shlibpath_var=no
  6405. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6406. hardcode_libdir_separator=':'
  6407. link_all_deplibs=yes
  6408. export_dynamic_flag_spec='${wl}-Bexport'
  6409. runpath_var='LD_RUN_PATH'
  6410. if test "$GCC" = yes; then
  6411. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6412. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6413. else
  6414. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6415. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6416. fi
  6417. ;;
  6418. uts4*)
  6419. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6420. hardcode_libdir_flag_spec='-L$libdir'
  6421. hardcode_shlibpath_var=no
  6422. ;;
  6423. *)
  6424. ld_shlibs=no
  6425. ;;
  6426. esac
  6427. fi
  6428. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  6429. echo "${ECHO_T}$ld_shlibs" >&6
  6430. test "$ld_shlibs" = no && can_build_shared=no
  6431. #
  6432. # Do we need to explicitly link libc?
  6433. #
  6434. case "x$archive_cmds_need_lc" in
  6435. x|xyes)
  6436. # Assume -lc should be added
  6437. archive_cmds_need_lc=yes
  6438. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6439. case $archive_cmds in
  6440. *'~'*)
  6441. # FIXME: we may have to deal with multi-command sequences.
  6442. ;;
  6443. '$CC '*)
  6444. # Test whether the compiler implicitly links with -lc since on some
  6445. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6446. # to ld, don't add -lc before -lgcc.
  6447. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6448. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  6449. $rm conftest*
  6450. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6451. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6452. (eval $ac_compile) 2>&5
  6453. ac_status=$?
  6454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6455. (exit $ac_status); } 2>conftest.err; then
  6456. soname=conftest
  6457. lib=conftest
  6458. libobjs=conftest.$ac_objext
  6459. deplibs=
  6460. wl=$lt_prog_compiler_wl
  6461. pic_flag=$lt_prog_compiler_pic
  6462. compiler_flags=-v
  6463. linker_flags=-v
  6464. verstring=
  6465. output_objdir=.
  6466. libname=conftest
  6467. lt_save_allow_undefined_flag=$allow_undefined_flag
  6468. allow_undefined_flag=
  6469. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6470. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6471. ac_status=$?
  6472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6473. (exit $ac_status); }
  6474. then
  6475. archive_cmds_need_lc=no
  6476. else
  6477. archive_cmds_need_lc=yes
  6478. fi
  6479. allow_undefined_flag=$lt_save_allow_undefined_flag
  6480. else
  6481. cat conftest.err 1>&5
  6482. fi
  6483. $rm conftest*
  6484. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  6485. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  6486. ;;
  6487. esac
  6488. fi
  6489. ;;
  6490. esac
  6491. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  6492. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  6493. library_names_spec=
  6494. libname_spec='lib$name'
  6495. soname_spec=
  6496. shrext_cmds=".so"
  6497. postinstall_cmds=
  6498. postuninstall_cmds=
  6499. finish_cmds=
  6500. finish_eval=
  6501. shlibpath_var=
  6502. shlibpath_overrides_runpath=unknown
  6503. version_type=none
  6504. dynamic_linker="$host_os ld.so"
  6505. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6506. if test "$GCC" = yes; then
  6507. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6508. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  6509. # if the path contains ";" then we assume it to be the separator
  6510. # otherwise default to the standard path separator (i.e. ":") - it is
  6511. # assumed that no part of a normal pathname contains ";" but that should
  6512. # okay in the real world where ";" in dirpaths is itself problematic.
  6513. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6514. else
  6515. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6516. fi
  6517. else
  6518. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6519. fi
  6520. need_lib_prefix=unknown
  6521. hardcode_into_libs=no
  6522. # when you set need_version to no, make sure it does not cause -set_version
  6523. # flags to be left without arguments
  6524. need_version=unknown
  6525. case $host_os in
  6526. aix3*)
  6527. version_type=linux
  6528. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  6529. shlibpath_var=LIBPATH
  6530. # AIX 3 has no versioning support, so we append a major version to the name.
  6531. soname_spec='${libname}${release}${shared_ext}$major'
  6532. ;;
  6533. aix4* | aix5*)
  6534. version_type=linux
  6535. need_lib_prefix=no
  6536. need_version=no
  6537. hardcode_into_libs=yes
  6538. if test "$host_cpu" = ia64; then
  6539. # AIX 5 supports IA64
  6540. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  6541. shlibpath_var=LD_LIBRARY_PATH
  6542. else
  6543. # With GCC up to 2.95.x, collect2 would create an import file
  6544. # for dependence libraries. The import file would start with
  6545. # the line `#! .'. This would cause the generated library to
  6546. # depend on `.', always an invalid library. This was fixed in
  6547. # development snapshots of GCC prior to 3.0.
  6548. case $host_os in
  6549. aix4 | aix4.[01] | aix4.[01].*)
  6550. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  6551. echo ' yes '
  6552. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  6553. :
  6554. else
  6555. can_build_shared=no
  6556. fi
  6557. ;;
  6558. esac
  6559. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  6560. # soname into executable. Probably we can add versioning support to
  6561. # collect2, so additional links can be useful in future.
  6562. if test "$aix_use_runtimelinking" = yes; then
  6563. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  6564. # instead of lib<name>.a to let people know that these are not
  6565. # typical AIX shared libraries.
  6566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6567. else
  6568. # We preserve .a as extension for shared libraries through AIX4.2
  6569. # and later when we are not doing run time linking.
  6570. library_names_spec='${libname}${release}.a $libname.a'
  6571. soname_spec='${libname}${release}${shared_ext}$major'
  6572. fi
  6573. shlibpath_var=LIBPATH
  6574. fi
  6575. ;;
  6576. amigaos*)
  6577. library_names_spec='$libname.ixlibrary $libname.a'
  6578. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  6579. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  6580. ;;
  6581. beos*)
  6582. library_names_spec='${libname}${shared_ext}'
  6583. dynamic_linker="$host_os ld.so"
  6584. shlibpath_var=LIBRARY_PATH
  6585. ;;
  6586. bsdi[45]*)
  6587. version_type=linux
  6588. need_version=no
  6589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6590. soname_spec='${libname}${release}${shared_ext}$major'
  6591. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  6592. shlibpath_var=LD_LIBRARY_PATH
  6593. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  6594. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  6595. # the default ld.so.conf also contains /usr/contrib/lib and
  6596. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  6597. # libtool to hard-code these into programs
  6598. ;;
  6599. cygwin* | mingw* | pw32*)
  6600. version_type=windows
  6601. shrext_cmds=".dll"
  6602. need_version=no
  6603. need_lib_prefix=no
  6604. case $GCC,$host_os in
  6605. yes,cygwin* | yes,mingw* | yes,pw32*)
  6606. library_names_spec='$libname.dll.a'
  6607. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  6608. postinstall_cmds='base_file=`basename \${file}`~
  6609. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  6610. dldir=$destdir/`dirname \$dlpath`~
  6611. test -d \$dldir || mkdir -p \$dldir~
  6612. $install_prog $dir/$dlname \$dldir/$dlname~
  6613. chmod a+x \$dldir/$dlname'
  6614. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  6615. dlpath=$dir/\$dldll~
  6616. $rm \$dlpath'
  6617. shlibpath_overrides_runpath=yes
  6618. case $host_os in
  6619. cygwin*)
  6620. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  6621. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6622. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  6623. ;;
  6624. mingw*)
  6625. # MinGW DLLs use traditional 'lib' prefix
  6626. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6627. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6628. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  6629. # It is most probably a Windows format PATH printed by
  6630. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  6631. # path with ; separators, and with drive letters. We can handle the
  6632. # drive letters (cygwin fileutils understands them), so leave them,
  6633. # especially as we might pass files found there to a mingw objdump,
  6634. # which wouldn't understand a cygwinified path. Ahh.
  6635. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6636. else
  6637. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6638. fi
  6639. ;;
  6640. pw32*)
  6641. # pw32 DLLs use 'pw' prefix rather than 'lib'
  6642. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6643. ;;
  6644. esac
  6645. ;;
  6646. *)
  6647. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  6648. ;;
  6649. esac
  6650. dynamic_linker='Win32 ld.exe'
  6651. # FIXME: first we should search . and the directory the executable is in
  6652. shlibpath_var=PATH
  6653. ;;
  6654. darwin* | rhapsody*)
  6655. dynamic_linker="$host_os dyld"
  6656. version_type=darwin
  6657. need_lib_prefix=no
  6658. need_version=no
  6659. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  6660. soname_spec='${libname}${release}${major}$shared_ext'
  6661. shlibpath_overrides_runpath=yes
  6662. shlibpath_var=DYLD_LIBRARY_PATH
  6663. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  6664. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  6665. if test "$GCC" = yes; then
  6666. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  6667. else
  6668. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  6669. fi
  6670. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  6671. ;;
  6672. dgux*)
  6673. version_type=linux
  6674. need_lib_prefix=no
  6675. need_version=no
  6676. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  6677. soname_spec='${libname}${release}${shared_ext}$major'
  6678. shlibpath_var=LD_LIBRARY_PATH
  6679. ;;
  6680. freebsd1*)
  6681. dynamic_linker=no
  6682. ;;
  6683. kfreebsd*-gnu)
  6684. version_type=linux
  6685. need_lib_prefix=no
  6686. need_version=no
  6687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6688. soname_spec='${libname}${release}${shared_ext}$major'
  6689. shlibpath_var=LD_LIBRARY_PATH
  6690. shlibpath_overrides_runpath=no
  6691. hardcode_into_libs=yes
  6692. dynamic_linker='GNU ld.so'
  6693. ;;
  6694. freebsd* | dragonfly*)
  6695. # DragonFly does not have aout. When/if they implement a new
  6696. # versioning mechanism, adjust this.
  6697. if test -x /usr/bin/objformat; then
  6698. objformat=`/usr/bin/objformat`
  6699. else
  6700. case $host_os in
  6701. freebsd[123]*) objformat=aout ;;
  6702. *) objformat=elf ;;
  6703. esac
  6704. fi
  6705. version_type=freebsd-$objformat
  6706. case $version_type in
  6707. freebsd-elf*)
  6708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  6709. need_version=no
  6710. need_lib_prefix=no
  6711. ;;
  6712. freebsd-*)
  6713. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  6714. need_version=yes
  6715. ;;
  6716. esac
  6717. shlibpath_var=LD_LIBRARY_PATH
  6718. case $host_os in
  6719. freebsd2*)
  6720. shlibpath_overrides_runpath=yes
  6721. ;;
  6722. freebsd3.[01]* | freebsdelf3.[01]*)
  6723. shlibpath_overrides_runpath=yes
  6724. hardcode_into_libs=yes
  6725. ;;
  6726. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  6727. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  6728. shlibpath_overrides_runpath=no
  6729. hardcode_into_libs=yes
  6730. ;;
  6731. freebsd*) # from 4.6 on
  6732. shlibpath_overrides_runpath=yes
  6733. hardcode_into_libs=yes
  6734. ;;
  6735. esac
  6736. ;;
  6737. gnu*)
  6738. version_type=linux
  6739. need_lib_prefix=no
  6740. need_version=no
  6741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  6742. soname_spec='${libname}${release}${shared_ext}$major'
  6743. shlibpath_var=LD_LIBRARY_PATH
  6744. hardcode_into_libs=yes
  6745. ;;
  6746. hpux9* | hpux10* | hpux11*)
  6747. # Give a soname corresponding to the major version so that dld.sl refuses to
  6748. # link against other versions.
  6749. version_type=sunos
  6750. need_lib_prefix=no
  6751. need_version=no
  6752. case $host_cpu in
  6753. ia64*)
  6754. shrext_cmds='.so'
  6755. hardcode_into_libs=yes
  6756. dynamic_linker="$host_os dld.so"
  6757. shlibpath_var=LD_LIBRARY_PATH
  6758. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6760. soname_spec='${libname}${release}${shared_ext}$major'
  6761. if test "X$HPUX_IA64_MODE" = X32; then
  6762. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  6763. else
  6764. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  6765. fi
  6766. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6767. ;;
  6768. hppa*64*)
  6769. shrext_cmds='.sl'
  6770. hardcode_into_libs=yes
  6771. dynamic_linker="$host_os dld.sl"
  6772. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  6773. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6774. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6775. soname_spec='${libname}${release}${shared_ext}$major'
  6776. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  6777. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6778. ;;
  6779. *)
  6780. shrext_cmds='.sl'
  6781. dynamic_linker="$host_os dld.sl"
  6782. shlibpath_var=SHLIB_PATH
  6783. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  6784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6785. soname_spec='${libname}${release}${shared_ext}$major'
  6786. ;;
  6787. esac
  6788. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  6789. postinstall_cmds='chmod 555 $lib'
  6790. ;;
  6791. interix3*)
  6792. version_type=linux
  6793. need_lib_prefix=no
  6794. need_version=no
  6795. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6796. soname_spec='${libname}${release}${shared_ext}$major'
  6797. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  6798. shlibpath_var=LD_LIBRARY_PATH
  6799. shlibpath_overrides_runpath=no
  6800. hardcode_into_libs=yes
  6801. ;;
  6802. irix5* | irix6* | nonstopux*)
  6803. case $host_os in
  6804. nonstopux*) version_type=nonstopux ;;
  6805. *)
  6806. if test "$lt_cv_prog_gnu_ld" = yes; then
  6807. version_type=linux
  6808. else
  6809. version_type=irix
  6810. fi ;;
  6811. esac
  6812. need_lib_prefix=no
  6813. need_version=no
  6814. soname_spec='${libname}${release}${shared_ext}$major'
  6815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  6816. case $host_os in
  6817. irix5* | nonstopux*)
  6818. libsuff= shlibsuff=
  6819. ;;
  6820. *)
  6821. case $LD in # libtool.m4 will add one of these switches to LD
  6822. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  6823. libsuff= shlibsuff= libmagic=32-bit;;
  6824. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  6825. libsuff=32 shlibsuff=N32 libmagic=N32;;
  6826. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  6827. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  6828. *) libsuff= shlibsuff= libmagic=never-match;;
  6829. esac
  6830. ;;
  6831. esac
  6832. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  6833. shlibpath_overrides_runpath=no
  6834. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  6835. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  6836. hardcode_into_libs=yes
  6837. ;;
  6838. # No shared lib support for Linux oldld, aout, or coff.
  6839. linux*oldld* | linux*aout* | linux*coff*)
  6840. dynamic_linker=no
  6841. ;;
  6842. # This must be Linux ELF.
  6843. linux*)
  6844. version_type=linux
  6845. need_lib_prefix=no
  6846. need_version=no
  6847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6848. soname_spec='${libname}${release}${shared_ext}$major'
  6849. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  6850. shlibpath_var=LD_LIBRARY_PATH
  6851. shlibpath_overrides_runpath=no
  6852. # This implies no fast_install, which is unacceptable.
  6853. # Some rework will be needed to allow for fast_install
  6854. # before this can be enabled.
  6855. hardcode_into_libs=yes
  6856. # Append ld.so.conf contents to the search path
  6857. if test -f /etc/ld.so.conf; then
  6858. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  6859. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  6860. fi
  6861. # We used to test for /lib/ld.so.1 and disable shared libraries on
  6862. # powerpc, because MkLinux only supported shared libraries with the
  6863. # GNU dynamic linker. Since this was broken with cross compilers,
  6864. # most powerpc-linux boxes support dynamic linking these days and
  6865. # people can always --disable-shared, the test was removed, and we
  6866. # assume the GNU/Linux dynamic linker is in use.
  6867. dynamic_linker='GNU/Linux ld.so'
  6868. ;;
  6869. knetbsd*-gnu)
  6870. version_type=linux
  6871. need_lib_prefix=no
  6872. need_version=no
  6873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6874. soname_spec='${libname}${release}${shared_ext}$major'
  6875. shlibpath_var=LD_LIBRARY_PATH
  6876. shlibpath_overrides_runpath=no
  6877. hardcode_into_libs=yes
  6878. dynamic_linker='GNU ld.so'
  6879. ;;
  6880. netbsd*)
  6881. version_type=sunos
  6882. need_lib_prefix=no
  6883. need_version=no
  6884. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6886. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6887. dynamic_linker='NetBSD (a.out) ld.so'
  6888. else
  6889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6890. soname_spec='${libname}${release}${shared_ext}$major'
  6891. dynamic_linker='NetBSD ld.elf_so'
  6892. fi
  6893. shlibpath_var=LD_LIBRARY_PATH
  6894. shlibpath_overrides_runpath=yes
  6895. hardcode_into_libs=yes
  6896. ;;
  6897. newsos6)
  6898. version_type=linux
  6899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6900. shlibpath_var=LD_LIBRARY_PATH
  6901. shlibpath_overrides_runpath=yes
  6902. ;;
  6903. nto-qnx*)
  6904. version_type=linux
  6905. need_lib_prefix=no
  6906. need_version=no
  6907. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6908. soname_spec='${libname}${release}${shared_ext}$major'
  6909. shlibpath_var=LD_LIBRARY_PATH
  6910. shlibpath_overrides_runpath=yes
  6911. ;;
  6912. openbsd*)
  6913. version_type=sunos
  6914. sys_lib_dlsearch_path_spec="/usr/lib"
  6915. need_lib_prefix=no
  6916. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  6917. case $host_os in
  6918. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  6919. *) need_version=no ;;
  6920. esac
  6921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6922. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6923. shlibpath_var=LD_LIBRARY_PATH
  6924. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6925. case $host_os in
  6926. openbsd2.[89] | openbsd2.[89].*)
  6927. shlibpath_overrides_runpath=no
  6928. ;;
  6929. *)
  6930. shlibpath_overrides_runpath=yes
  6931. ;;
  6932. esac
  6933. else
  6934. shlibpath_overrides_runpath=yes
  6935. fi
  6936. ;;
  6937. os2*)
  6938. libname_spec='$name'
  6939. shrext_cmds=".dll"
  6940. need_lib_prefix=no
  6941. library_names_spec='$libname${shared_ext} $libname.a'
  6942. dynamic_linker='OS/2 ld.exe'
  6943. shlibpath_var=LIBPATH
  6944. ;;
  6945. osf3* | osf4* | osf5*)
  6946. version_type=osf
  6947. need_lib_prefix=no
  6948. need_version=no
  6949. soname_spec='${libname}${release}${shared_ext}$major'
  6950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6951. shlibpath_var=LD_LIBRARY_PATH
  6952. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  6953. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  6954. ;;
  6955. solaris*)
  6956. version_type=linux
  6957. need_lib_prefix=no
  6958. need_version=no
  6959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6960. soname_spec='${libname}${release}${shared_ext}$major'
  6961. shlibpath_var=LD_LIBRARY_PATH
  6962. shlibpath_overrides_runpath=yes
  6963. hardcode_into_libs=yes
  6964. # ldd complains unless libraries are executable
  6965. postinstall_cmds='chmod +x $lib'
  6966. ;;
  6967. sunos4*)
  6968. version_type=sunos
  6969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6970. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  6971. shlibpath_var=LD_LIBRARY_PATH
  6972. shlibpath_overrides_runpath=yes
  6973. if test "$with_gnu_ld" = yes; then
  6974. need_lib_prefix=no
  6975. fi
  6976. need_version=yes
  6977. ;;
  6978. sysv4 | sysv4.3*)
  6979. version_type=linux
  6980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6981. soname_spec='${libname}${release}${shared_ext}$major'
  6982. shlibpath_var=LD_LIBRARY_PATH
  6983. case $host_vendor in
  6984. sni)
  6985. shlibpath_overrides_runpath=no
  6986. need_lib_prefix=no
  6987. export_dynamic_flag_spec='${wl}-Blargedynsym'
  6988. runpath_var=LD_RUN_PATH
  6989. ;;
  6990. siemens)
  6991. need_lib_prefix=no
  6992. ;;
  6993. motorola)
  6994. need_lib_prefix=no
  6995. need_version=no
  6996. shlibpath_overrides_runpath=no
  6997. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  6998. ;;
  6999. esac
  7000. ;;
  7001. sysv4*MP*)
  7002. if test -d /usr/nec ;then
  7003. version_type=linux
  7004. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7005. soname_spec='$libname${shared_ext}.$major'
  7006. shlibpath_var=LD_LIBRARY_PATH
  7007. fi
  7008. ;;
  7009. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7010. version_type=freebsd-elf
  7011. need_lib_prefix=no
  7012. need_version=no
  7013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7014. soname_spec='${libname}${release}${shared_ext}$major'
  7015. shlibpath_var=LD_LIBRARY_PATH
  7016. hardcode_into_libs=yes
  7017. if test "$with_gnu_ld" = yes; then
  7018. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7019. shlibpath_overrides_runpath=no
  7020. else
  7021. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7022. shlibpath_overrides_runpath=yes
  7023. case $host_os in
  7024. sco3.2v5*)
  7025. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7026. ;;
  7027. esac
  7028. fi
  7029. sys_lib_dlsearch_path_spec='/usr/lib'
  7030. ;;
  7031. uts4*)
  7032. version_type=linux
  7033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7034. soname_spec='${libname}${release}${shared_ext}$major'
  7035. shlibpath_var=LD_LIBRARY_PATH
  7036. ;;
  7037. *)
  7038. dynamic_linker=no
  7039. ;;
  7040. esac
  7041. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7042. echo "${ECHO_T}$dynamic_linker" >&6
  7043. test "$dynamic_linker" = no && can_build_shared=no
  7044. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7045. if test "$GCC" = yes; then
  7046. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7047. fi
  7048. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7049. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7050. hardcode_action=
  7051. if test -n "$hardcode_libdir_flag_spec" || \
  7052. test -n "$runpath_var" || \
  7053. test "X$hardcode_automatic" = "Xyes" ; then
  7054. # We can hardcode non-existant directories.
  7055. if test "$hardcode_direct" != no &&
  7056. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7057. # have to relink, otherwise we might link with an installed library
  7058. # when we should be linking with a yet-to-be-installed one
  7059. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7060. test "$hardcode_minus_L" != no; then
  7061. # Linking always hardcodes the temporary library directory.
  7062. hardcode_action=relink
  7063. else
  7064. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7065. hardcode_action=immediate
  7066. fi
  7067. else
  7068. # We cannot hardcode anything, or else we can only hardcode existing
  7069. # directories.
  7070. hardcode_action=unsupported
  7071. fi
  7072. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7073. echo "${ECHO_T}$hardcode_action" >&6
  7074. if test "$hardcode_action" = relink; then
  7075. # Fast installation is not supported
  7076. enable_fast_install=no
  7077. elif test "$shlibpath_overrides_runpath" = yes ||
  7078. test "$enable_shared" = no; then
  7079. # Fast installation is not necessary
  7080. enable_fast_install=needless
  7081. fi
  7082. striplib=
  7083. old_striplib=
  7084. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7085. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7086. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7087. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7088. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7089. echo "$as_me:$LINENO: result: yes" >&5
  7090. echo "${ECHO_T}yes" >&6
  7091. else
  7092. # FIXME - insert some real tests, host_os isn't really good enough
  7093. case $host_os in
  7094. darwin*)
  7095. if test -n "$STRIP" ; then
  7096. striplib="$STRIP -x"
  7097. echo "$as_me:$LINENO: result: yes" >&5
  7098. echo "${ECHO_T}yes" >&6
  7099. else
  7100. echo "$as_me:$LINENO: result: no" >&5
  7101. echo "${ECHO_T}no" >&6
  7102. fi
  7103. ;;
  7104. *)
  7105. echo "$as_me:$LINENO: result: no" >&5
  7106. echo "${ECHO_T}no" >&6
  7107. ;;
  7108. esac
  7109. fi
  7110. if test "x$enable_dlopen" != xyes; then
  7111. enable_dlopen=unknown
  7112. enable_dlopen_self=unknown
  7113. enable_dlopen_self_static=unknown
  7114. else
  7115. lt_cv_dlopen=no
  7116. lt_cv_dlopen_libs=
  7117. case $host_os in
  7118. beos*)
  7119. lt_cv_dlopen="load_add_on"
  7120. lt_cv_dlopen_libs=
  7121. lt_cv_dlopen_self=yes
  7122. ;;
  7123. mingw* | pw32*)
  7124. lt_cv_dlopen="LoadLibrary"
  7125. lt_cv_dlopen_libs=
  7126. ;;
  7127. cygwin*)
  7128. lt_cv_dlopen="dlopen"
  7129. lt_cv_dlopen_libs=
  7130. ;;
  7131. darwin*)
  7132. # if libdl is installed we need to link against it
  7133. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7134. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7135. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7136. echo $ECHO_N "(cached) $ECHO_C" >&6
  7137. else
  7138. ac_check_lib_save_LIBS=$LIBS
  7139. LIBS="-ldl $LIBS"
  7140. cat >conftest.$ac_ext <<_ACEOF
  7141. /* confdefs.h. */
  7142. _ACEOF
  7143. cat confdefs.h >>conftest.$ac_ext
  7144. cat >>conftest.$ac_ext <<_ACEOF
  7145. /* end confdefs.h. */
  7146. /* Override any gcc2 internal prototype to avoid an error. */
  7147. #ifdef __cplusplus
  7148. extern "C"
  7149. #endif
  7150. /* We use char because int might match the return type of a gcc2
  7151. builtin and then its argument prototype would still apply. */
  7152. char dlopen ();
  7153. int
  7154. main ()
  7155. {
  7156. dlopen ();
  7157. ;
  7158. return 0;
  7159. }
  7160. _ACEOF
  7161. rm -f conftest.$ac_objext conftest$ac_exeext
  7162. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7163. (eval $ac_link) 2>conftest.er1
  7164. ac_status=$?
  7165. grep -v '^ *+' conftest.er1 >conftest.err
  7166. rm -f conftest.er1
  7167. cat conftest.err >&5
  7168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7169. (exit $ac_status); } &&
  7170. { ac_try='test -z "$ac_c_werror_flag"
  7171. || test ! -s conftest.err'
  7172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7173. (eval $ac_try) 2>&5
  7174. ac_status=$?
  7175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7176. (exit $ac_status); }; } &&
  7177. { ac_try='test -s conftest$ac_exeext'
  7178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7179. (eval $ac_try) 2>&5
  7180. ac_status=$?
  7181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7182. (exit $ac_status); }; }; then
  7183. ac_cv_lib_dl_dlopen=yes
  7184. else
  7185. echo "$as_me: failed program was:" >&5
  7186. sed 's/^/| /' conftest.$ac_ext >&5
  7187. ac_cv_lib_dl_dlopen=no
  7188. fi
  7189. rm -f conftest.err conftest.$ac_objext \
  7190. conftest$ac_exeext conftest.$ac_ext
  7191. LIBS=$ac_check_lib_save_LIBS
  7192. fi
  7193. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7194. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7195. if test $ac_cv_lib_dl_dlopen = yes; then
  7196. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7197. else
  7198. lt_cv_dlopen="dyld"
  7199. lt_cv_dlopen_libs=
  7200. lt_cv_dlopen_self=yes
  7201. fi
  7202. ;;
  7203. *)
  7204. echo "$as_me:$LINENO: checking for shl_load" >&5
  7205. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7206. if test "${ac_cv_func_shl_load+set}" = set; then
  7207. echo $ECHO_N "(cached) $ECHO_C" >&6
  7208. else
  7209. cat >conftest.$ac_ext <<_ACEOF
  7210. /* confdefs.h. */
  7211. _ACEOF
  7212. cat confdefs.h >>conftest.$ac_ext
  7213. cat >>conftest.$ac_ext <<_ACEOF
  7214. /* end confdefs.h. */
  7215. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7216. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7217. #define shl_load innocuous_shl_load
  7218. /* System header to define __stub macros and hopefully few prototypes,
  7219. which can conflict with char shl_load (); below.
  7220. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7221. <limits.h> exists even on freestanding compilers. */
  7222. #ifdef __STDC__
  7223. # include <limits.h>
  7224. #else
  7225. # include <assert.h>
  7226. #endif
  7227. #undef shl_load
  7228. /* Override any gcc2 internal prototype to avoid an error. */
  7229. #ifdef __cplusplus
  7230. extern "C"
  7231. {
  7232. #endif
  7233. /* We use char because int might match the return type of a gcc2
  7234. builtin and then its argument prototype would still apply. */
  7235. char shl_load ();
  7236. /* The GNU C library defines this for functions which it implements
  7237. to always fail with ENOSYS. Some functions are actually named
  7238. something starting with __ and the normal name is an alias. */
  7239. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7240. choke me
  7241. #else
  7242. char (*f) () = shl_load;
  7243. #endif
  7244. #ifdef __cplusplus
  7245. }
  7246. #endif
  7247. int
  7248. main ()
  7249. {
  7250. return f != shl_load;
  7251. ;
  7252. return 0;
  7253. }
  7254. _ACEOF
  7255. rm -f conftest.$ac_objext conftest$ac_exeext
  7256. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7257. (eval $ac_link) 2>conftest.er1
  7258. ac_status=$?
  7259. grep -v '^ *+' conftest.er1 >conftest.err
  7260. rm -f conftest.er1
  7261. cat conftest.err >&5
  7262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7263. (exit $ac_status); } &&
  7264. { ac_try='test -z "$ac_c_werror_flag"
  7265. || test ! -s conftest.err'
  7266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7267. (eval $ac_try) 2>&5
  7268. ac_status=$?
  7269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7270. (exit $ac_status); }; } &&
  7271. { ac_try='test -s conftest$ac_exeext'
  7272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7273. (eval $ac_try) 2>&5
  7274. ac_status=$?
  7275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7276. (exit $ac_status); }; }; then
  7277. ac_cv_func_shl_load=yes
  7278. else
  7279. echo "$as_me: failed program was:" >&5
  7280. sed 's/^/| /' conftest.$ac_ext >&5
  7281. ac_cv_func_shl_load=no
  7282. fi
  7283. rm -f conftest.err conftest.$ac_objext \
  7284. conftest$ac_exeext conftest.$ac_ext
  7285. fi
  7286. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7287. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7288. if test $ac_cv_func_shl_load = yes; then
  7289. lt_cv_dlopen="shl_load"
  7290. else
  7291. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7292. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  7293. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7294. echo $ECHO_N "(cached) $ECHO_C" >&6
  7295. else
  7296. ac_check_lib_save_LIBS=$LIBS
  7297. LIBS="-ldld $LIBS"
  7298. cat >conftest.$ac_ext <<_ACEOF
  7299. /* confdefs.h. */
  7300. _ACEOF
  7301. cat confdefs.h >>conftest.$ac_ext
  7302. cat >>conftest.$ac_ext <<_ACEOF
  7303. /* end confdefs.h. */
  7304. /* Override any gcc2 internal prototype to avoid an error. */
  7305. #ifdef __cplusplus
  7306. extern "C"
  7307. #endif
  7308. /* We use char because int might match the return type of a gcc2
  7309. builtin and then its argument prototype would still apply. */
  7310. char shl_load ();
  7311. int
  7312. main ()
  7313. {
  7314. shl_load ();
  7315. ;
  7316. return 0;
  7317. }
  7318. _ACEOF
  7319. rm -f conftest.$ac_objext conftest$ac_exeext
  7320. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7321. (eval $ac_link) 2>conftest.er1
  7322. ac_status=$?
  7323. grep -v '^ *+' conftest.er1 >conftest.err
  7324. rm -f conftest.er1
  7325. cat conftest.err >&5
  7326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7327. (exit $ac_status); } &&
  7328. { ac_try='test -z "$ac_c_werror_flag"
  7329. || test ! -s conftest.err'
  7330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7331. (eval $ac_try) 2>&5
  7332. ac_status=$?
  7333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7334. (exit $ac_status); }; } &&
  7335. { ac_try='test -s conftest$ac_exeext'
  7336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7337. (eval $ac_try) 2>&5
  7338. ac_status=$?
  7339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7340. (exit $ac_status); }; }; then
  7341. ac_cv_lib_dld_shl_load=yes
  7342. else
  7343. echo "$as_me: failed program was:" >&5
  7344. sed 's/^/| /' conftest.$ac_ext >&5
  7345. ac_cv_lib_dld_shl_load=no
  7346. fi
  7347. rm -f conftest.err conftest.$ac_objext \
  7348. conftest$ac_exeext conftest.$ac_ext
  7349. LIBS=$ac_check_lib_save_LIBS
  7350. fi
  7351. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7352. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  7353. if test $ac_cv_lib_dld_shl_load = yes; then
  7354. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7355. else
  7356. echo "$as_me:$LINENO: checking for dlopen" >&5
  7357. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  7358. if test "${ac_cv_func_dlopen+set}" = set; then
  7359. echo $ECHO_N "(cached) $ECHO_C" >&6
  7360. else
  7361. cat >conftest.$ac_ext <<_ACEOF
  7362. /* confdefs.h. */
  7363. _ACEOF
  7364. cat confdefs.h >>conftest.$ac_ext
  7365. cat >>conftest.$ac_ext <<_ACEOF
  7366. /* end confdefs.h. */
  7367. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7368. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7369. #define dlopen innocuous_dlopen
  7370. /* System header to define __stub macros and hopefully few prototypes,
  7371. which can conflict with char dlopen (); below.
  7372. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7373. <limits.h> exists even on freestanding compilers. */
  7374. #ifdef __STDC__
  7375. # include <limits.h>
  7376. #else
  7377. # include <assert.h>
  7378. #endif
  7379. #undef dlopen
  7380. /* Override any gcc2 internal prototype to avoid an error. */
  7381. #ifdef __cplusplus
  7382. extern "C"
  7383. {
  7384. #endif
  7385. /* We use char because int might match the return type of a gcc2
  7386. builtin and then its argument prototype would still apply. */
  7387. char dlopen ();
  7388. /* The GNU C library defines this for functions which it implements
  7389. to always fail with ENOSYS. Some functions are actually named
  7390. something starting with __ and the normal name is an alias. */
  7391. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  7392. choke me
  7393. #else
  7394. char (*f) () = dlopen;
  7395. #endif
  7396. #ifdef __cplusplus
  7397. }
  7398. #endif
  7399. int
  7400. main ()
  7401. {
  7402. return f != dlopen;
  7403. ;
  7404. return 0;
  7405. }
  7406. _ACEOF
  7407. rm -f conftest.$ac_objext conftest$ac_exeext
  7408. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7409. (eval $ac_link) 2>conftest.er1
  7410. ac_status=$?
  7411. grep -v '^ *+' conftest.er1 >conftest.err
  7412. rm -f conftest.er1
  7413. cat conftest.err >&5
  7414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7415. (exit $ac_status); } &&
  7416. { ac_try='test -z "$ac_c_werror_flag"
  7417. || test ! -s conftest.err'
  7418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7419. (eval $ac_try) 2>&5
  7420. ac_status=$?
  7421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7422. (exit $ac_status); }; } &&
  7423. { ac_try='test -s conftest$ac_exeext'
  7424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7425. (eval $ac_try) 2>&5
  7426. ac_status=$?
  7427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7428. (exit $ac_status); }; }; then
  7429. ac_cv_func_dlopen=yes
  7430. else
  7431. echo "$as_me: failed program was:" >&5
  7432. sed 's/^/| /' conftest.$ac_ext >&5
  7433. ac_cv_func_dlopen=no
  7434. fi
  7435. rm -f conftest.err conftest.$ac_objext \
  7436. conftest$ac_exeext conftest.$ac_ext
  7437. fi
  7438. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  7439. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  7440. if test $ac_cv_func_dlopen = yes; then
  7441. lt_cv_dlopen="dlopen"
  7442. else
  7443. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7444. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7445. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7446. echo $ECHO_N "(cached) $ECHO_C" >&6
  7447. else
  7448. ac_check_lib_save_LIBS=$LIBS
  7449. LIBS="-ldl $LIBS"
  7450. cat >conftest.$ac_ext <<_ACEOF
  7451. /* confdefs.h. */
  7452. _ACEOF
  7453. cat confdefs.h >>conftest.$ac_ext
  7454. cat >>conftest.$ac_ext <<_ACEOF
  7455. /* end confdefs.h. */
  7456. /* Override any gcc2 internal prototype to avoid an error. */
  7457. #ifdef __cplusplus
  7458. extern "C"
  7459. #endif
  7460. /* We use char because int might match the return type of a gcc2
  7461. builtin and then its argument prototype would still apply. */
  7462. char dlopen ();
  7463. int
  7464. main ()
  7465. {
  7466. dlopen ();
  7467. ;
  7468. return 0;
  7469. }
  7470. _ACEOF
  7471. rm -f conftest.$ac_objext conftest$ac_exeext
  7472. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7473. (eval $ac_link) 2>conftest.er1
  7474. ac_status=$?
  7475. grep -v '^ *+' conftest.er1 >conftest.err
  7476. rm -f conftest.er1
  7477. cat conftest.err >&5
  7478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7479. (exit $ac_status); } &&
  7480. { ac_try='test -z "$ac_c_werror_flag"
  7481. || test ! -s conftest.err'
  7482. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7483. (eval $ac_try) 2>&5
  7484. ac_status=$?
  7485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7486. (exit $ac_status); }; } &&
  7487. { ac_try='test -s conftest$ac_exeext'
  7488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7489. (eval $ac_try) 2>&5
  7490. ac_status=$?
  7491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7492. (exit $ac_status); }; }; then
  7493. ac_cv_lib_dl_dlopen=yes
  7494. else
  7495. echo "$as_me: failed program was:" >&5
  7496. sed 's/^/| /' conftest.$ac_ext >&5
  7497. ac_cv_lib_dl_dlopen=no
  7498. fi
  7499. rm -f conftest.err conftest.$ac_objext \
  7500. conftest$ac_exeext conftest.$ac_ext
  7501. LIBS=$ac_check_lib_save_LIBS
  7502. fi
  7503. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7504. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7505. if test $ac_cv_lib_dl_dlopen = yes; then
  7506. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7507. else
  7508. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  7509. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  7510. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  7511. echo $ECHO_N "(cached) $ECHO_C" >&6
  7512. else
  7513. ac_check_lib_save_LIBS=$LIBS
  7514. LIBS="-lsvld $LIBS"
  7515. cat >conftest.$ac_ext <<_ACEOF
  7516. /* confdefs.h. */
  7517. _ACEOF
  7518. cat confdefs.h >>conftest.$ac_ext
  7519. cat >>conftest.$ac_ext <<_ACEOF
  7520. /* end confdefs.h. */
  7521. /* Override any gcc2 internal prototype to avoid an error. */
  7522. #ifdef __cplusplus
  7523. extern "C"
  7524. #endif
  7525. /* We use char because int might match the return type of a gcc2
  7526. builtin and then its argument prototype would still apply. */
  7527. char dlopen ();
  7528. int
  7529. main ()
  7530. {
  7531. dlopen ();
  7532. ;
  7533. return 0;
  7534. }
  7535. _ACEOF
  7536. rm -f conftest.$ac_objext conftest$ac_exeext
  7537. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7538. (eval $ac_link) 2>conftest.er1
  7539. ac_status=$?
  7540. grep -v '^ *+' conftest.er1 >conftest.err
  7541. rm -f conftest.er1
  7542. cat conftest.err >&5
  7543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7544. (exit $ac_status); } &&
  7545. { ac_try='test -z "$ac_c_werror_flag"
  7546. || test ! -s conftest.err'
  7547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7548. (eval $ac_try) 2>&5
  7549. ac_status=$?
  7550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7551. (exit $ac_status); }; } &&
  7552. { ac_try='test -s conftest$ac_exeext'
  7553. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7554. (eval $ac_try) 2>&5
  7555. ac_status=$?
  7556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7557. (exit $ac_status); }; }; then
  7558. ac_cv_lib_svld_dlopen=yes
  7559. else
  7560. echo "$as_me: failed program was:" >&5
  7561. sed 's/^/| /' conftest.$ac_ext >&5
  7562. ac_cv_lib_svld_dlopen=no
  7563. fi
  7564. rm -f conftest.err conftest.$ac_objext \
  7565. conftest$ac_exeext conftest.$ac_ext
  7566. LIBS=$ac_check_lib_save_LIBS
  7567. fi
  7568. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  7569. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  7570. if test $ac_cv_lib_svld_dlopen = yes; then
  7571. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  7572. else
  7573. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  7574. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  7575. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  7576. echo $ECHO_N "(cached) $ECHO_C" >&6
  7577. else
  7578. ac_check_lib_save_LIBS=$LIBS
  7579. LIBS="-ldld $LIBS"
  7580. cat >conftest.$ac_ext <<_ACEOF
  7581. /* confdefs.h. */
  7582. _ACEOF
  7583. cat confdefs.h >>conftest.$ac_ext
  7584. cat >>conftest.$ac_ext <<_ACEOF
  7585. /* end confdefs.h. */
  7586. /* Override any gcc2 internal prototype to avoid an error. */
  7587. #ifdef __cplusplus
  7588. extern "C"
  7589. #endif
  7590. /* We use char because int might match the return type of a gcc2
  7591. builtin and then its argument prototype would still apply. */
  7592. char dld_link ();
  7593. int
  7594. main ()
  7595. {
  7596. dld_link ();
  7597. ;
  7598. return 0;
  7599. }
  7600. _ACEOF
  7601. rm -f conftest.$ac_objext conftest$ac_exeext
  7602. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7603. (eval $ac_link) 2>conftest.er1
  7604. ac_status=$?
  7605. grep -v '^ *+' conftest.er1 >conftest.err
  7606. rm -f conftest.er1
  7607. cat conftest.err >&5
  7608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7609. (exit $ac_status); } &&
  7610. { ac_try='test -z "$ac_c_werror_flag"
  7611. || test ! -s conftest.err'
  7612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7613. (eval $ac_try) 2>&5
  7614. ac_status=$?
  7615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7616. (exit $ac_status); }; } &&
  7617. { ac_try='test -s conftest$ac_exeext'
  7618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7619. (eval $ac_try) 2>&5
  7620. ac_status=$?
  7621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7622. (exit $ac_status); }; }; then
  7623. ac_cv_lib_dld_dld_link=yes
  7624. else
  7625. echo "$as_me: failed program was:" >&5
  7626. sed 's/^/| /' conftest.$ac_ext >&5
  7627. ac_cv_lib_dld_dld_link=no
  7628. fi
  7629. rm -f conftest.err conftest.$ac_objext \
  7630. conftest$ac_exeext conftest.$ac_ext
  7631. LIBS=$ac_check_lib_save_LIBS
  7632. fi
  7633. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  7634. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  7635. if test $ac_cv_lib_dld_dld_link = yes; then
  7636. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  7637. fi
  7638. fi
  7639. fi
  7640. fi
  7641. fi
  7642. fi
  7643. ;;
  7644. esac
  7645. if test "x$lt_cv_dlopen" != xno; then
  7646. enable_dlopen=yes
  7647. else
  7648. enable_dlopen=no
  7649. fi
  7650. case $lt_cv_dlopen in
  7651. dlopen)
  7652. save_CPPFLAGS="$CPPFLAGS"
  7653. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  7654. save_LDFLAGS="$LDFLAGS"
  7655. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  7656. save_LIBS="$LIBS"
  7657. LIBS="$lt_cv_dlopen_libs $LIBS"
  7658. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  7659. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  7660. if test "${lt_cv_dlopen_self+set}" = set; then
  7661. echo $ECHO_N "(cached) $ECHO_C" >&6
  7662. else
  7663. if test "$cross_compiling" = yes; then :
  7664. lt_cv_dlopen_self=cross
  7665. else
  7666. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7667. lt_status=$lt_dlunknown
  7668. cat > conftest.$ac_ext <<EOF
  7669. #line 8423 "configure"
  7670. #include "confdefs.h"
  7671. #if HAVE_DLFCN_H
  7672. #include <dlfcn.h>
  7673. #endif
  7674. #include <stdio.h>
  7675. #ifdef RTLD_GLOBAL
  7676. # define LT_DLGLOBAL RTLD_GLOBAL
  7677. #else
  7678. # ifdef DL_GLOBAL
  7679. # define LT_DLGLOBAL DL_GLOBAL
  7680. # else
  7681. # define LT_DLGLOBAL 0
  7682. # endif
  7683. #endif
  7684. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7685. find out it does not work in some platform. */
  7686. #ifndef LT_DLLAZY_OR_NOW
  7687. # ifdef RTLD_LAZY
  7688. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7689. # else
  7690. # ifdef DL_LAZY
  7691. # define LT_DLLAZY_OR_NOW DL_LAZY
  7692. # else
  7693. # ifdef RTLD_NOW
  7694. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7695. # else
  7696. # ifdef DL_NOW
  7697. # define LT_DLLAZY_OR_NOW DL_NOW
  7698. # else
  7699. # define LT_DLLAZY_OR_NOW 0
  7700. # endif
  7701. # endif
  7702. # endif
  7703. # endif
  7704. #endif
  7705. #ifdef __cplusplus
  7706. extern "C" void exit (int);
  7707. #endif
  7708. void fnord() { int i=42;}
  7709. int main ()
  7710. {
  7711. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7712. int status = $lt_dlunknown;
  7713. if (self)
  7714. {
  7715. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7716. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7717. /* dlclose (self); */
  7718. }
  7719. else
  7720. puts (dlerror ());
  7721. exit (status);
  7722. }
  7723. EOF
  7724. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7725. (eval $ac_link) 2>&5
  7726. ac_status=$?
  7727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7728. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7729. (./conftest; exit; ) >&5 2>/dev/null
  7730. lt_status=$?
  7731. case x$lt_status in
  7732. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  7733. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  7734. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  7735. esac
  7736. else :
  7737. # compilation failed
  7738. lt_cv_dlopen_self=no
  7739. fi
  7740. fi
  7741. rm -fr conftest*
  7742. fi
  7743. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  7744. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  7745. if test "x$lt_cv_dlopen_self" = xyes; then
  7746. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  7747. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  7748. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  7749. if test "${lt_cv_dlopen_self_static+set}" = set; then
  7750. echo $ECHO_N "(cached) $ECHO_C" >&6
  7751. else
  7752. if test "$cross_compiling" = yes; then :
  7753. lt_cv_dlopen_self_static=cross
  7754. else
  7755. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7756. lt_status=$lt_dlunknown
  7757. cat > conftest.$ac_ext <<EOF
  7758. #line 8523 "configure"
  7759. #include "confdefs.h"
  7760. #if HAVE_DLFCN_H
  7761. #include <dlfcn.h>
  7762. #endif
  7763. #include <stdio.h>
  7764. #ifdef RTLD_GLOBAL
  7765. # define LT_DLGLOBAL RTLD_GLOBAL
  7766. #else
  7767. # ifdef DL_GLOBAL
  7768. # define LT_DLGLOBAL DL_GLOBAL
  7769. # else
  7770. # define LT_DLGLOBAL 0
  7771. # endif
  7772. #endif
  7773. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7774. find out it does not work in some platform. */
  7775. #ifndef LT_DLLAZY_OR_NOW
  7776. # ifdef RTLD_LAZY
  7777. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7778. # else
  7779. # ifdef DL_LAZY
  7780. # define LT_DLLAZY_OR_NOW DL_LAZY
  7781. # else
  7782. # ifdef RTLD_NOW
  7783. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7784. # else
  7785. # ifdef DL_NOW
  7786. # define LT_DLLAZY_OR_NOW DL_NOW
  7787. # else
  7788. # define LT_DLLAZY_OR_NOW 0
  7789. # endif
  7790. # endif
  7791. # endif
  7792. # endif
  7793. #endif
  7794. #ifdef __cplusplus
  7795. extern "C" void exit (int);
  7796. #endif
  7797. void fnord() { int i=42;}
  7798. int main ()
  7799. {
  7800. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7801. int status = $lt_dlunknown;
  7802. if (self)
  7803. {
  7804. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7805. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7806. /* dlclose (self); */
  7807. }
  7808. else
  7809. puts (dlerror ());
  7810. exit (status);
  7811. }
  7812. EOF
  7813. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7814. (eval $ac_link) 2>&5
  7815. ac_status=$?
  7816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7817. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  7818. (./conftest; exit; ) >&5 2>/dev/null
  7819. lt_status=$?
  7820. case x$lt_status in
  7821. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  7822. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  7823. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  7824. esac
  7825. else :
  7826. # compilation failed
  7827. lt_cv_dlopen_self_static=no
  7828. fi
  7829. fi
  7830. rm -fr conftest*
  7831. fi
  7832. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  7833. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  7834. fi
  7835. CPPFLAGS="$save_CPPFLAGS"
  7836. LDFLAGS="$save_LDFLAGS"
  7837. LIBS="$save_LIBS"
  7838. ;;
  7839. esac
  7840. case $lt_cv_dlopen_self in
  7841. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  7842. *) enable_dlopen_self=unknown ;;
  7843. esac
  7844. case $lt_cv_dlopen_self_static in
  7845. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  7846. *) enable_dlopen_self_static=unknown ;;
  7847. esac
  7848. fi
  7849. # Report which library types will actually be built
  7850. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  7851. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  7852. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  7853. echo "${ECHO_T}$can_build_shared" >&6
  7854. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  7855. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  7856. test "$can_build_shared" = "no" && enable_shared=no
  7857. # On AIX, shared libraries and static libraries use the same namespace, and
  7858. # are all built from PIC.
  7859. case $host_os in
  7860. aix3*)
  7861. test "$enable_shared" = yes && enable_static=no
  7862. if test -n "$RANLIB"; then
  7863. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7864. postinstall_cmds='$RANLIB $lib'
  7865. fi
  7866. ;;
  7867. aix4* | aix5*)
  7868. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7869. test "$enable_shared" = yes && enable_static=no
  7870. fi
  7871. ;;
  7872. esac
  7873. echo "$as_me:$LINENO: result: $enable_shared" >&5
  7874. echo "${ECHO_T}$enable_shared" >&6
  7875. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  7876. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  7877. # Make sure either enable_shared or enable_static is yes.
  7878. test "$enable_shared" = yes || enable_static=yes
  7879. echo "$as_me:$LINENO: result: $enable_static" >&5
  7880. echo "${ECHO_T}$enable_static" >&6
  7881. # The else clause should only fire when bootstrapping the
  7882. # libtool distribution, otherwise you forgot to ship ltmain.sh
  7883. # with your package, and you will get complaints that there are
  7884. # no rules to generate ltmain.sh.
  7885. if test -f "$ltmain"; then
  7886. # See if we are running on zsh, and set the options which allow our commands through
  7887. # without removal of \ escapes.
  7888. if test -n "${ZSH_VERSION+set}" ; then
  7889. setopt NO_GLOB_SUBST
  7890. fi
  7891. # Now quote all the things that may contain metacharacters while being
  7892. # careful not to overquote the AC_SUBSTed values. We take copies of the
  7893. # variables and quote the copies for generation of the libtool script.
  7894. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  7895. SED SHELL STRIP \
  7896. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  7897. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  7898. deplibs_check_method reload_flag reload_cmds need_locks \
  7899. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  7900. lt_cv_sys_global_symbol_to_c_name_address \
  7901. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  7902. old_postinstall_cmds old_postuninstall_cmds \
  7903. compiler \
  7904. CC \
  7905. LD \
  7906. lt_prog_compiler_wl \
  7907. lt_prog_compiler_pic \
  7908. lt_prog_compiler_static \
  7909. lt_prog_compiler_no_builtin_flag \
  7910. export_dynamic_flag_spec \
  7911. thread_safe_flag_spec \
  7912. whole_archive_flag_spec \
  7913. enable_shared_with_static_runtimes \
  7914. old_archive_cmds \
  7915. old_archive_from_new_cmds \
  7916. predep_objects \
  7917. postdep_objects \
  7918. predeps \
  7919. postdeps \
  7920. compiler_lib_search_path \
  7921. archive_cmds \
  7922. archive_expsym_cmds \
  7923. postinstall_cmds \
  7924. postuninstall_cmds \
  7925. old_archive_from_expsyms_cmds \
  7926. allow_undefined_flag \
  7927. no_undefined_flag \
  7928. export_symbols_cmds \
  7929. hardcode_libdir_flag_spec \
  7930. hardcode_libdir_flag_spec_ld \
  7931. hardcode_libdir_separator \
  7932. hardcode_automatic \
  7933. module_cmds \
  7934. module_expsym_cmds \
  7935. lt_cv_prog_compiler_c_o \
  7936. exclude_expsyms \
  7937. include_expsyms; do
  7938. case $var in
  7939. old_archive_cmds | \
  7940. old_archive_from_new_cmds | \
  7941. archive_cmds | \
  7942. archive_expsym_cmds | \
  7943. module_cmds | \
  7944. module_expsym_cmds | \
  7945. old_archive_from_expsyms_cmds | \
  7946. export_symbols_cmds | \
  7947. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7948. postinstall_cmds | postuninstall_cmds | \
  7949. old_postinstall_cmds | old_postuninstall_cmds | \
  7950. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7951. # Double-quote double-evaled strings.
  7952. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7953. ;;
  7954. *)
  7955. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7956. ;;
  7957. esac
  7958. done
  7959. case $lt_echo in
  7960. *'\$0 --fallback-echo"')
  7961. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  7962. ;;
  7963. esac
  7964. cfgfile="${ofile}T"
  7965. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7966. $rm -f "$cfgfile"
  7967. { echo "$as_me:$LINENO: creating $ofile" >&5
  7968. echo "$as_me: creating $ofile" >&6;}
  7969. cat <<__EOF__ >> "$cfgfile"
  7970. #! $SHELL
  7971. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7972. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7973. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7974. #
  7975. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7976. # Free Software Foundation, Inc.
  7977. #
  7978. # This file is part of GNU Libtool:
  7979. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7980. #
  7981. # This program is free software; you can redistribute it and/or modify
  7982. # it under the terms of the GNU General Public License as published by
  7983. # the Free Software Foundation; either version 2 of the License, or
  7984. # (at your option) any later version.
  7985. #
  7986. # This program is distributed in the hope that it will be useful, but
  7987. # WITHOUT ANY WARRANTY; without even the implied warranty of
  7988. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7989. # General Public License for more details.
  7990. #
  7991. # You should have received a copy of the GNU General Public License
  7992. # along with this program; if not, write to the Free Software
  7993. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7994. #
  7995. # As a special exception to the GNU General Public License, if you
  7996. # distribute this file as part of a program that contains a
  7997. # configuration script generated by Autoconf, you may include it under
  7998. # the same distribution terms that you use for the rest of that program.
  7999. # A sed program that does not truncate output.
  8000. SED=$lt_SED
  8001. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8002. Xsed="$SED -e 1s/^X//"
  8003. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8004. # if CDPATH is set.
  8005. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8006. # The names of the tagged configurations supported by this script.
  8007. available_tags=
  8008. # ### BEGIN LIBTOOL CONFIG
  8009. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8010. # Shell to use when invoking shell scripts.
  8011. SHELL=$lt_SHELL
  8012. # Whether or not to build shared libraries.
  8013. build_libtool_libs=$enable_shared
  8014. # Whether or not to build static libraries.
  8015. build_old_libs=$enable_static
  8016. # Whether or not to add -lc for building shared libraries.
  8017. build_libtool_need_lc=$archive_cmds_need_lc
  8018. # Whether or not to disallow shared libs when runtime libs are static
  8019. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8020. # Whether or not to optimize for fast installation.
  8021. fast_install=$enable_fast_install
  8022. # The host system.
  8023. host_alias=$host_alias
  8024. host=$host
  8025. host_os=$host_os
  8026. # The build system.
  8027. build_alias=$build_alias
  8028. build=$build
  8029. build_os=$build_os
  8030. # An echo program that does not interpret backslashes.
  8031. echo=$lt_echo
  8032. # The archiver.
  8033. AR=$lt_AR
  8034. AR_FLAGS=$lt_AR_FLAGS
  8035. # A C compiler.
  8036. LTCC=$lt_LTCC
  8037. # LTCC compiler flags.
  8038. LTCFLAGS=$lt_LTCFLAGS
  8039. # A language-specific compiler.
  8040. CC=$lt_compiler
  8041. # Is the compiler the GNU C compiler?
  8042. with_gcc=$GCC
  8043. # An ERE matcher.
  8044. EGREP=$lt_EGREP
  8045. # The linker used to build libraries.
  8046. LD=$lt_LD
  8047. # Whether we need hard or soft links.
  8048. LN_S=$lt_LN_S
  8049. # A BSD-compatible nm program.
  8050. NM=$lt_NM
  8051. # A symbol stripping program
  8052. STRIP=$lt_STRIP
  8053. # Used to examine libraries when file_magic_cmd begins "file"
  8054. MAGIC_CMD=$MAGIC_CMD
  8055. # Used on cygwin: DLL creation program.
  8056. DLLTOOL="$DLLTOOL"
  8057. # Used on cygwin: object dumper.
  8058. OBJDUMP="$OBJDUMP"
  8059. # Used on cygwin: assembler.
  8060. AS="$AS"
  8061. # The name of the directory that contains temporary libtool files.
  8062. objdir=$objdir
  8063. # How to create reloadable object files.
  8064. reload_flag=$lt_reload_flag
  8065. reload_cmds=$lt_reload_cmds
  8066. # How to pass a linker flag through the compiler.
  8067. wl=$lt_lt_prog_compiler_wl
  8068. # Object file suffix (normally "o").
  8069. objext="$ac_objext"
  8070. # Old archive suffix (normally "a").
  8071. libext="$libext"
  8072. # Shared library suffix (normally ".so").
  8073. shrext_cmds='$shrext_cmds'
  8074. # Executable file suffix (normally "").
  8075. exeext="$exeext"
  8076. # Additional compiler flags for building library objects.
  8077. pic_flag=$lt_lt_prog_compiler_pic
  8078. pic_mode=$pic_mode
  8079. # What is the maximum length of a command?
  8080. max_cmd_len=$lt_cv_sys_max_cmd_len
  8081. # Does compiler simultaneously support -c and -o options?
  8082. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8083. # Must we lock files when doing compilation?
  8084. need_locks=$lt_need_locks
  8085. # Do we need the lib prefix for modules?
  8086. need_lib_prefix=$need_lib_prefix
  8087. # Do we need a version for libraries?
  8088. need_version=$need_version
  8089. # Whether dlopen is supported.
  8090. dlopen_support=$enable_dlopen
  8091. # Whether dlopen of programs is supported.
  8092. dlopen_self=$enable_dlopen_self
  8093. # Whether dlopen of statically linked programs is supported.
  8094. dlopen_self_static=$enable_dlopen_self_static
  8095. # Compiler flag to prevent dynamic linking.
  8096. link_static_flag=$lt_lt_prog_compiler_static
  8097. # Compiler flag to turn off builtin functions.
  8098. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8099. # Compiler flag to allow reflexive dlopens.
  8100. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8101. # Compiler flag to generate shared objects directly from archives.
  8102. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8103. # Compiler flag to generate thread-safe objects.
  8104. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8105. # Library versioning type.
  8106. version_type=$version_type
  8107. # Format of library name prefix.
  8108. libname_spec=$lt_libname_spec
  8109. # List of archive names. First name is the real one, the rest are links.
  8110. # The last name is the one that the linker finds with -lNAME.
  8111. library_names_spec=$lt_library_names_spec
  8112. # The coded name of the library, if different from the real name.
  8113. soname_spec=$lt_soname_spec
  8114. # Commands used to build and install an old-style archive.
  8115. RANLIB=$lt_RANLIB
  8116. old_archive_cmds=$lt_old_archive_cmds
  8117. old_postinstall_cmds=$lt_old_postinstall_cmds
  8118. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8119. # Create an old-style archive from a shared archive.
  8120. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8121. # Create a temporary old-style archive to link instead of a shared archive.
  8122. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8123. # Commands used to build and install a shared archive.
  8124. archive_cmds=$lt_archive_cmds
  8125. archive_expsym_cmds=$lt_archive_expsym_cmds
  8126. postinstall_cmds=$lt_postinstall_cmds
  8127. postuninstall_cmds=$lt_postuninstall_cmds
  8128. # Commands used to build a loadable module (assumed same as above if empty)
  8129. module_cmds=$lt_module_cmds
  8130. module_expsym_cmds=$lt_module_expsym_cmds
  8131. # Commands to strip libraries.
  8132. old_striplib=$lt_old_striplib
  8133. striplib=$lt_striplib
  8134. # Dependencies to place before the objects being linked to create a
  8135. # shared library.
  8136. predep_objects=$lt_predep_objects
  8137. # Dependencies to place after the objects being linked to create a
  8138. # shared library.
  8139. postdep_objects=$lt_postdep_objects
  8140. # Dependencies to place before the objects being linked to create a
  8141. # shared library.
  8142. predeps=$lt_predeps
  8143. # Dependencies to place after the objects being linked to create a
  8144. # shared library.
  8145. postdeps=$lt_postdeps
  8146. # The library search path used internally by the compiler when linking
  8147. # a shared library.
  8148. compiler_lib_search_path=$lt_compiler_lib_search_path
  8149. # Method to check whether dependent libraries are shared objects.
  8150. deplibs_check_method=$lt_deplibs_check_method
  8151. # Command to use when deplibs_check_method == file_magic.
  8152. file_magic_cmd=$lt_file_magic_cmd
  8153. # Flag that allows shared libraries with undefined symbols to be built.
  8154. allow_undefined_flag=$lt_allow_undefined_flag
  8155. # Flag that forces no undefined symbols.
  8156. no_undefined_flag=$lt_no_undefined_flag
  8157. # Commands used to finish a libtool library installation in a directory.
  8158. finish_cmds=$lt_finish_cmds
  8159. # Same as above, but a single script fragment to be evaled but not shown.
  8160. finish_eval=$lt_finish_eval
  8161. # Take the output of nm and produce a listing of raw symbols and C names.
  8162. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8163. # Transform the output of nm in a proper C declaration
  8164. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8165. # Transform the output of nm in a C name address pair
  8166. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8167. # This is the shared library runtime path variable.
  8168. runpath_var=$runpath_var
  8169. # This is the shared library path variable.
  8170. shlibpath_var=$shlibpath_var
  8171. # Is shlibpath searched before the hard-coded library search path?
  8172. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8173. # How to hardcode a shared library path into an executable.
  8174. hardcode_action=$hardcode_action
  8175. # Whether we should hardcode library paths into libraries.
  8176. hardcode_into_libs=$hardcode_into_libs
  8177. # Flag to hardcode \$libdir into a binary during linking.
  8178. # This must work even if \$libdir does not exist.
  8179. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8180. # If ld is used when linking, flag to hardcode \$libdir into
  8181. # a binary during linking. This must work even if \$libdir does
  8182. # not exist.
  8183. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8184. # Whether we need a single -rpath flag with a separated argument.
  8185. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8186. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8187. # resulting binary.
  8188. hardcode_direct=$hardcode_direct
  8189. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8190. # resulting binary.
  8191. hardcode_minus_L=$hardcode_minus_L
  8192. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8193. # the resulting binary.
  8194. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8195. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8196. # and all subsequent libraries and executables linked against it.
  8197. hardcode_automatic=$hardcode_automatic
  8198. # Variables whose values should be saved in libtool wrapper scripts and
  8199. # restored at relink time.
  8200. variables_saved_for_relink="$variables_saved_for_relink"
  8201. # Whether libtool must link a program against all its dependency libraries.
  8202. link_all_deplibs=$link_all_deplibs
  8203. # Compile-time system search path for libraries
  8204. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8205. # Run-time system search path for libraries
  8206. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8207. # Fix the shell variable \$srcfile for the compiler.
  8208. fix_srcfile_path="$fix_srcfile_path"
  8209. # Set to yes if exported symbols are required.
  8210. always_export_symbols=$always_export_symbols
  8211. # The commands to list exported symbols.
  8212. export_symbols_cmds=$lt_export_symbols_cmds
  8213. # The commands to extract the exported symbol list from a shared archive.
  8214. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8215. # Symbols that should not be listed in the preloaded symbols.
  8216. exclude_expsyms=$lt_exclude_expsyms
  8217. # Symbols that must always be exported.
  8218. include_expsyms=$lt_include_expsyms
  8219. # ### END LIBTOOL CONFIG
  8220. __EOF__
  8221. case $host_os in
  8222. aix3*)
  8223. cat <<\EOF >> "$cfgfile"
  8224. # AIX sometimes has problems with the GCC collect2 program. For some
  8225. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8226. # vanish in a puff of smoke.
  8227. if test "X${COLLECT_NAMES+set}" != Xset; then
  8228. COLLECT_NAMES=
  8229. export COLLECT_NAMES
  8230. fi
  8231. EOF
  8232. ;;
  8233. esac
  8234. # We use sed instead of cat because bash on DJGPP gets confused if
  8235. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8236. # text mode, it properly converts lines to CR/LF. This bash problem
  8237. # is reportedly fixed, but why not run on old versions too?
  8238. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8239. mv -f "$cfgfile" "$ofile" || \
  8240. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8241. chmod +x "$ofile"
  8242. else
  8243. # If there is no Makefile yet, we rely on a make rule to execute
  8244. # `config.status --recheck' to rerun these tests and create the
  8245. # libtool script then.
  8246. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8247. if test -f "$ltmain_in"; then
  8248. test -f Makefile && make "$ltmain"
  8249. fi
  8250. fi
  8251. ac_ext=c
  8252. ac_cpp='$CPP $CPPFLAGS'
  8253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8256. CC="$lt_save_CC"
  8257. # Check whether --with-tags or --without-tags was given.
  8258. if test "${with_tags+set}" = set; then
  8259. withval="$with_tags"
  8260. tagnames="$withval"
  8261. fi;
  8262. if test -f "$ltmain" && test -n "$tagnames"; then
  8263. if test ! -f "${ofile}"; then
  8264. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8265. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8266. fi
  8267. if test -z "$LTCC"; then
  8268. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8269. if test -z "$LTCC"; then
  8270. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8271. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8272. else
  8273. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8274. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8275. fi
  8276. fi
  8277. if test -z "$LTCFLAGS"; then
  8278. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  8279. fi
  8280. # Extract list of available tagged configurations in $ofile.
  8281. # Note that this assumes the entire list is on one line.
  8282. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8283. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8284. for tagname in $tagnames; do
  8285. IFS="$lt_save_ifs"
  8286. # Check whether tagname contains only valid characters
  8287. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8288. "") ;;
  8289. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  8290. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  8291. { (exit 1); exit 1; }; }
  8292. ;;
  8293. esac
  8294. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8295. then
  8296. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  8297. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  8298. { (exit 1); exit 1; }; }
  8299. fi
  8300. # Update the list of available tags.
  8301. if test -n "$tagname"; then
  8302. echo appending configuration tag \"$tagname\" to $ofile
  8303. case $tagname in
  8304. CXX)
  8305. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8306. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8307. (test "X$CXX" != "Xg++"))) ; then
  8308. ac_ext=cc
  8309. ac_cpp='$CXXCPP $CPPFLAGS'
  8310. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8311. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8312. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8313. archive_cmds_need_lc_CXX=no
  8314. allow_undefined_flag_CXX=
  8315. always_export_symbols_CXX=no
  8316. archive_expsym_cmds_CXX=
  8317. export_dynamic_flag_spec_CXX=
  8318. hardcode_direct_CXX=no
  8319. hardcode_libdir_flag_spec_CXX=
  8320. hardcode_libdir_flag_spec_ld_CXX=
  8321. hardcode_libdir_separator_CXX=
  8322. hardcode_minus_L_CXX=no
  8323. hardcode_shlibpath_var_CXX=unsupported
  8324. hardcode_automatic_CXX=no
  8325. module_cmds_CXX=
  8326. module_expsym_cmds_CXX=
  8327. link_all_deplibs_CXX=unknown
  8328. old_archive_cmds_CXX=$old_archive_cmds
  8329. no_undefined_flag_CXX=
  8330. whole_archive_flag_spec_CXX=
  8331. enable_shared_with_static_runtimes_CXX=no
  8332. # Dependencies to place before and after the object being linked:
  8333. predep_objects_CXX=
  8334. postdep_objects_CXX=
  8335. predeps_CXX=
  8336. postdeps_CXX=
  8337. compiler_lib_search_path_CXX=
  8338. # Source file extension for C++ test sources.
  8339. ac_ext=cpp
  8340. # Object file extension for compiled C++ test sources.
  8341. objext=o
  8342. objext_CXX=$objext
  8343. # Code to be used in simple compile tests
  8344. lt_simple_compile_test_code="int some_variable = 0;\n"
  8345. # Code to be used in simple link tests
  8346. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  8347. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8348. # If no C compiler was specified, use CC.
  8349. LTCC=${LTCC-"$CC"}
  8350. # If no C compiler flags were specified, use CFLAGS.
  8351. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8352. # Allow CC to be a program name with arguments.
  8353. compiler=$CC
  8354. # save warnings/boilerplate of simple test code
  8355. ac_outfile=conftest.$ac_objext
  8356. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8357. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8358. _lt_compiler_boilerplate=`cat conftest.err`
  8359. $rm conftest*
  8360. ac_outfile=conftest.$ac_objext
  8361. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8362. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8363. _lt_linker_boilerplate=`cat conftest.err`
  8364. $rm conftest*
  8365. # Allow CC to be a program name with arguments.
  8366. lt_save_CC=$CC
  8367. lt_save_LD=$LD
  8368. lt_save_GCC=$GCC
  8369. GCC=$GXX
  8370. lt_save_with_gnu_ld=$with_gnu_ld
  8371. lt_save_path_LD=$lt_cv_path_LD
  8372. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8373. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8374. else
  8375. $as_unset lt_cv_prog_gnu_ld
  8376. fi
  8377. if test -n "${lt_cv_path_LDCXX+set}"; then
  8378. lt_cv_path_LD=$lt_cv_path_LDCXX
  8379. else
  8380. $as_unset lt_cv_path_LD
  8381. fi
  8382. test -z "${LDCXX+set}" || LD=$LDCXX
  8383. CC=${CXX-"c++"}
  8384. compiler=$CC
  8385. compiler_CXX=$CC
  8386. for cc_temp in $compiler""; do
  8387. case $cc_temp in
  8388. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8389. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8390. \-*) ;;
  8391. *) break;;
  8392. esac
  8393. done
  8394. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8395. # We don't want -fno-exception wen compiling C++ code, so set the
  8396. # no_builtin_flag separately
  8397. if test "$GXX" = yes; then
  8398. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8399. else
  8400. lt_prog_compiler_no_builtin_flag_CXX=
  8401. fi
  8402. if test "$GXX" = yes; then
  8403. # Set up default GNU C++ configuration
  8404. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  8405. if test "${with_gnu_ld+set}" = set; then
  8406. withval="$with_gnu_ld"
  8407. test "$withval" = no || with_gnu_ld=yes
  8408. else
  8409. with_gnu_ld=no
  8410. fi;
  8411. ac_prog=ld
  8412. if test "$GCC" = yes; then
  8413. # Check if gcc -print-prog-name=ld gives a path.
  8414. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  8415. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  8416. case $host in
  8417. *-*-mingw*)
  8418. # gcc leaves a trailing carriage return which upsets mingw
  8419. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8420. *)
  8421. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8422. esac
  8423. case $ac_prog in
  8424. # Accept absolute paths.
  8425. [\\/]* | ?:[\\/]*)
  8426. re_direlt='/[^/][^/]*/\.\./'
  8427. # Canonicalize the pathname of ld
  8428. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8429. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8430. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8431. done
  8432. test -z "$LD" && LD="$ac_prog"
  8433. ;;
  8434. "")
  8435. # If it fails, then pretend we aren't using GCC.
  8436. ac_prog=ld
  8437. ;;
  8438. *)
  8439. # If it is relative, then search for the first ld in PATH.
  8440. with_gnu_ld=unknown
  8441. ;;
  8442. esac
  8443. elif test "$with_gnu_ld" = yes; then
  8444. echo "$as_me:$LINENO: checking for GNU ld" >&5
  8445. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  8446. else
  8447. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8448. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  8449. fi
  8450. if test "${lt_cv_path_LD+set}" = set; then
  8451. echo $ECHO_N "(cached) $ECHO_C" >&6
  8452. else
  8453. if test -z "$LD"; then
  8454. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8455. for ac_dir in $PATH; do
  8456. IFS="$lt_save_ifs"
  8457. test -z "$ac_dir" && ac_dir=.
  8458. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8459. lt_cv_path_LD="$ac_dir/$ac_prog"
  8460. # Check to see if the program is GNU ld. I'd rather use --version,
  8461. # but apparently some variants of GNU ld only accept -v.
  8462. # Break only if it was the GNU/non-GNU ld that we prefer.
  8463. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8464. *GNU* | *'with BFD'*)
  8465. test "$with_gnu_ld" != no && break
  8466. ;;
  8467. *)
  8468. test "$with_gnu_ld" != yes && break
  8469. ;;
  8470. esac
  8471. fi
  8472. done
  8473. IFS="$lt_save_ifs"
  8474. else
  8475. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8476. fi
  8477. fi
  8478. LD="$lt_cv_path_LD"
  8479. if test -n "$LD"; then
  8480. echo "$as_me:$LINENO: result: $LD" >&5
  8481. echo "${ECHO_T}$LD" >&6
  8482. else
  8483. echo "$as_me:$LINENO: result: no" >&5
  8484. echo "${ECHO_T}no" >&6
  8485. fi
  8486. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8487. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8488. { (exit 1); exit 1; }; }
  8489. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8490. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  8491. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  8492. echo $ECHO_N "(cached) $ECHO_C" >&6
  8493. else
  8494. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  8495. case `$LD -v 2>&1 </dev/null` in
  8496. *GNU* | *'with BFD'*)
  8497. lt_cv_prog_gnu_ld=yes
  8498. ;;
  8499. *)
  8500. lt_cv_prog_gnu_ld=no
  8501. ;;
  8502. esac
  8503. fi
  8504. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  8505. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  8506. with_gnu_ld=$lt_cv_prog_gnu_ld
  8507. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  8508. # archiving commands below assume that GNU ld is being used.
  8509. if test "$with_gnu_ld" = yes; then
  8510. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8511. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8512. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8513. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8514. # If archive_cmds runs LD, not CC, wlarc should be empty
  8515. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  8516. # investigate it a little bit more. (MM)
  8517. wlarc='${wl}'
  8518. # ancient GNU ld didn't support --whole-archive et. al.
  8519. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  8520. grep 'no-whole-archive' > /dev/null; then
  8521. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8522. else
  8523. whole_archive_flag_spec_CXX=
  8524. fi
  8525. else
  8526. with_gnu_ld=no
  8527. wlarc=
  8528. # A generic and very simple default shared library creation
  8529. # command for GNU C++ for the case where it uses the native
  8530. # linker, instead of GNU ld. If possible, this setting should
  8531. # overridden to take advantage of the native linker features on
  8532. # the platform it is being used on.
  8533. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8534. fi
  8535. # Commands to make compiler produce verbose output that lists
  8536. # what "hidden" libraries, object files and flags are used when
  8537. # linking a shared library.
  8538. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  8539. else
  8540. GXX=no
  8541. with_gnu_ld=no
  8542. wlarc=
  8543. fi
  8544. # PORTME: fill in a description of your system's C++ link characteristics
  8545. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8546. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  8547. ld_shlibs_CXX=yes
  8548. case $host_os in
  8549. aix3*)
  8550. # FIXME: insert proper C++ library support
  8551. ld_shlibs_CXX=no
  8552. ;;
  8553. aix4* | aix5*)
  8554. if test "$host_cpu" = ia64; then
  8555. # On IA64, the linker does run time linking by default, so we don't
  8556. # have to do anything special.
  8557. aix_use_runtimelinking=no
  8558. exp_sym_flag='-Bexport'
  8559. no_entry_flag=""
  8560. else
  8561. aix_use_runtimelinking=no
  8562. # Test if we are trying to use run time linking or normal
  8563. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8564. # need to do runtime linking.
  8565. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8566. for ld_flag in $LDFLAGS; do
  8567. case $ld_flag in
  8568. *-brtl*)
  8569. aix_use_runtimelinking=yes
  8570. break
  8571. ;;
  8572. esac
  8573. done
  8574. ;;
  8575. esac
  8576. exp_sym_flag='-bexport'
  8577. no_entry_flag='-bnoentry'
  8578. fi
  8579. # When large executables or shared objects are built, AIX ld can
  8580. # have problems creating the table of contents. If linking a library
  8581. # or program results in "error TOC overflow" add -mminimal-toc to
  8582. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8583. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8584. archive_cmds_CXX=''
  8585. hardcode_direct_CXX=yes
  8586. hardcode_libdir_separator_CXX=':'
  8587. link_all_deplibs_CXX=yes
  8588. if test "$GXX" = yes; then
  8589. case $host_os in aix4.[012]|aix4.[012].*)
  8590. # We only want to do this on AIX 4.2 and lower, the check
  8591. # below for broken collect2 doesn't work under 4.3+
  8592. collect2name=`${CC} -print-prog-name=collect2`
  8593. if test -f "$collect2name" && \
  8594. strings "$collect2name" | grep resolve_lib_name >/dev/null
  8595. then
  8596. # We have reworked collect2
  8597. hardcode_direct_CXX=yes
  8598. else
  8599. # We have old collect2
  8600. hardcode_direct_CXX=unsupported
  8601. # It fails to find uninstalled libraries when the uninstalled
  8602. # path is not listed in the libpath. Setting hardcode_minus_L
  8603. # to unsupported forces relinking
  8604. hardcode_minus_L_CXX=yes
  8605. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8606. hardcode_libdir_separator_CXX=
  8607. fi
  8608. ;;
  8609. esac
  8610. shared_flag='-shared'
  8611. if test "$aix_use_runtimelinking" = yes; then
  8612. shared_flag="$shared_flag "'${wl}-G'
  8613. fi
  8614. else
  8615. # not using gcc
  8616. if test "$host_cpu" = ia64; then
  8617. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8618. # chokes on -Wl,-G. The following line is correct:
  8619. shared_flag='-G'
  8620. else
  8621. if test "$aix_use_runtimelinking" = yes; then
  8622. shared_flag='${wl}-G'
  8623. else
  8624. shared_flag='${wl}-bM:SRE'
  8625. fi
  8626. fi
  8627. fi
  8628. # It seems that -bexpall does not export symbols beginning with
  8629. # underscore (_), so it is better to generate a list of symbols to export.
  8630. always_export_symbols_CXX=yes
  8631. if test "$aix_use_runtimelinking" = yes; then
  8632. # Warning - without using the other runtime loading flags (-brtl),
  8633. # -berok will link without error, but may produce a broken library.
  8634. allow_undefined_flag_CXX='-berok'
  8635. # Determine the default libpath from the value encoded in an empty executable.
  8636. cat >conftest.$ac_ext <<_ACEOF
  8637. /* confdefs.h. */
  8638. _ACEOF
  8639. cat confdefs.h >>conftest.$ac_ext
  8640. cat >>conftest.$ac_ext <<_ACEOF
  8641. /* end confdefs.h. */
  8642. int
  8643. main ()
  8644. {
  8645. ;
  8646. return 0;
  8647. }
  8648. _ACEOF
  8649. rm -f conftest.$ac_objext conftest$ac_exeext
  8650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8651. (eval $ac_link) 2>conftest.er1
  8652. ac_status=$?
  8653. grep -v '^ *+' conftest.er1 >conftest.err
  8654. rm -f conftest.er1
  8655. cat conftest.err >&5
  8656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8657. (exit $ac_status); } &&
  8658. { ac_try='test -z "$ac_cxx_werror_flag"
  8659. || test ! -s conftest.err'
  8660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8661. (eval $ac_try) 2>&5
  8662. ac_status=$?
  8663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8664. (exit $ac_status); }; } &&
  8665. { ac_try='test -s conftest$ac_exeext'
  8666. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8667. (eval $ac_try) 2>&5
  8668. ac_status=$?
  8669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8670. (exit $ac_status); }; }; then
  8671. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8672. }'`
  8673. # Check for a 64-bit object if we didn't find anything.
  8674. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8675. }'`; fi
  8676. else
  8677. echo "$as_me: failed program was:" >&5
  8678. sed 's/^/| /' conftest.$ac_ext >&5
  8679. fi
  8680. rm -f conftest.err conftest.$ac_objext \
  8681. conftest$ac_exeext conftest.$ac_ext
  8682. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8683. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8684. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8685. else
  8686. if test "$host_cpu" = ia64; then
  8687. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  8688. allow_undefined_flag_CXX="-z nodefs"
  8689. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8690. else
  8691. # Determine the default libpath from the value encoded in an empty executable.
  8692. cat >conftest.$ac_ext <<_ACEOF
  8693. /* confdefs.h. */
  8694. _ACEOF
  8695. cat confdefs.h >>conftest.$ac_ext
  8696. cat >>conftest.$ac_ext <<_ACEOF
  8697. /* end confdefs.h. */
  8698. int
  8699. main ()
  8700. {
  8701. ;
  8702. return 0;
  8703. }
  8704. _ACEOF
  8705. rm -f conftest.$ac_objext conftest$ac_exeext
  8706. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8707. (eval $ac_link) 2>conftest.er1
  8708. ac_status=$?
  8709. grep -v '^ *+' conftest.er1 >conftest.err
  8710. rm -f conftest.er1
  8711. cat conftest.err >&5
  8712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8713. (exit $ac_status); } &&
  8714. { ac_try='test -z "$ac_cxx_werror_flag"
  8715. || test ! -s conftest.err'
  8716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8717. (eval $ac_try) 2>&5
  8718. ac_status=$?
  8719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8720. (exit $ac_status); }; } &&
  8721. { ac_try='test -s conftest$ac_exeext'
  8722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8723. (eval $ac_try) 2>&5
  8724. ac_status=$?
  8725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8726. (exit $ac_status); }; }; then
  8727. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8728. }'`
  8729. # Check for a 64-bit object if we didn't find anything.
  8730. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8731. }'`; fi
  8732. else
  8733. echo "$as_me: failed program was:" >&5
  8734. sed 's/^/| /' conftest.$ac_ext >&5
  8735. fi
  8736. rm -f conftest.err conftest.$ac_objext \
  8737. conftest$ac_exeext conftest.$ac_ext
  8738. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8739. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8740. # Warning - without using the other run time loading flags,
  8741. # -berok will link without error, but may produce a broken library.
  8742. no_undefined_flag_CXX=' ${wl}-bernotok'
  8743. allow_undefined_flag_CXX=' ${wl}-berok'
  8744. # Exported symbols can be pulled into shared objects from archives
  8745. whole_archive_flag_spec_CXX='$convenience'
  8746. archive_cmds_need_lc_CXX=yes
  8747. # This is similar to how AIX traditionally builds its shared libraries.
  8748. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8749. fi
  8750. fi
  8751. ;;
  8752. beos*)
  8753. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8754. allow_undefined_flag_CXX=unsupported
  8755. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8756. # support --undefined. This deserves some investigation. FIXME
  8757. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8758. else
  8759. ld_shlibs_CXX=no
  8760. fi
  8761. ;;
  8762. chorus*)
  8763. case $cc_basename in
  8764. *)
  8765. # FIXME: insert proper C++ library support
  8766. ld_shlibs_CXX=no
  8767. ;;
  8768. esac
  8769. ;;
  8770. cygwin* | mingw* | pw32*)
  8771. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  8772. # as there is no search path for DLLs.
  8773. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8774. allow_undefined_flag_CXX=unsupported
  8775. always_export_symbols_CXX=no
  8776. enable_shared_with_static_runtimes_CXX=yes
  8777. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8778. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8779. # If the export-symbols file already is a .def file (1st line
  8780. # is EXPORTS), use it as is; otherwise, prepend...
  8781. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8782. cp $export_symbols $output_objdir/$soname.def;
  8783. else
  8784. echo EXPORTS > $output_objdir/$soname.def;
  8785. cat $export_symbols >> $output_objdir/$soname.def;
  8786. fi~
  8787. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8788. else
  8789. ld_shlibs_CXX=no
  8790. fi
  8791. ;;
  8792. darwin* | rhapsody*)
  8793. case $host_os in
  8794. rhapsody* | darwin1.[012])
  8795. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  8796. ;;
  8797. *) # Darwin 1.3 on
  8798. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8799. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8800. else
  8801. case ${MACOSX_DEPLOYMENT_TARGET} in
  8802. 10.[012])
  8803. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8804. ;;
  8805. 10.*)
  8806. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  8807. ;;
  8808. esac
  8809. fi
  8810. ;;
  8811. esac
  8812. archive_cmds_need_lc_CXX=no
  8813. hardcode_direct_CXX=no
  8814. hardcode_automatic_CXX=yes
  8815. hardcode_shlibpath_var_CXX=unsupported
  8816. whole_archive_flag_spec_CXX=''
  8817. link_all_deplibs_CXX=yes
  8818. if test "$GXX" = yes ; then
  8819. lt_int_apple_cc_single_mod=no
  8820. output_verbose_link_cmd='echo'
  8821. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  8822. lt_int_apple_cc_single_mod=yes
  8823. fi
  8824. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8825. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8826. else
  8827. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8828. fi
  8829. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8830. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  8831. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8832. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8833. else
  8834. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8835. fi
  8836. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8837. else
  8838. case $cc_basename in
  8839. xlc*)
  8840. output_verbose_link_cmd='echo'
  8841. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  8842. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8843. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  8844. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8845. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8846. ;;
  8847. *)
  8848. ld_shlibs_CXX=no
  8849. ;;
  8850. esac
  8851. fi
  8852. ;;
  8853. dgux*)
  8854. case $cc_basename in
  8855. ec++*)
  8856. # FIXME: insert proper C++ library support
  8857. ld_shlibs_CXX=no
  8858. ;;
  8859. ghcx*)
  8860. # Green Hills C++ Compiler
  8861. # FIXME: insert proper C++ library support
  8862. ld_shlibs_CXX=no
  8863. ;;
  8864. *)
  8865. # FIXME: insert proper C++ library support
  8866. ld_shlibs_CXX=no
  8867. ;;
  8868. esac
  8869. ;;
  8870. freebsd[12]*)
  8871. # C++ shared libraries reported to be fairly broken before switch to ELF
  8872. ld_shlibs_CXX=no
  8873. ;;
  8874. freebsd-elf*)
  8875. archive_cmds_need_lc_CXX=no
  8876. ;;
  8877. freebsd* | kfreebsd*-gnu | dragonfly*)
  8878. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  8879. # conventions
  8880. ld_shlibs_CXX=yes
  8881. ;;
  8882. gnu*)
  8883. ;;
  8884. hpux9*)
  8885. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8886. hardcode_libdir_separator_CXX=:
  8887. export_dynamic_flag_spec_CXX='${wl}-E'
  8888. hardcode_direct_CXX=yes
  8889. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8890. # but as the default
  8891. # location of the library.
  8892. case $cc_basename in
  8893. CC*)
  8894. # FIXME: insert proper C++ library support
  8895. ld_shlibs_CXX=no
  8896. ;;
  8897. aCC*)
  8898. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8899. # Commands to make compiler produce verbose output that lists
  8900. # what "hidden" libraries, object files and flags are used when
  8901. # linking a shared library.
  8902. #
  8903. # There doesn't appear to be a way to prevent this compiler from
  8904. # explicitly linking system object files so we need to strip them
  8905. # from the output so that they don't get included in the library
  8906. # dependencies.
  8907. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  8908. ;;
  8909. *)
  8910. if test "$GXX" = yes; then
  8911. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8912. else
  8913. # FIXME: insert proper C++ library support
  8914. ld_shlibs_CXX=no
  8915. fi
  8916. ;;
  8917. esac
  8918. ;;
  8919. hpux10*|hpux11*)
  8920. if test $with_gnu_ld = no; then
  8921. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8922. hardcode_libdir_separator_CXX=:
  8923. case $host_cpu in
  8924. hppa*64*|ia64*)
  8925. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  8926. ;;
  8927. *)
  8928. export_dynamic_flag_spec_CXX='${wl}-E'
  8929. ;;
  8930. esac
  8931. fi
  8932. case $host_cpu in
  8933. hppa*64*|ia64*)
  8934. hardcode_direct_CXX=no
  8935. hardcode_shlibpath_var_CXX=no
  8936. ;;
  8937. *)
  8938. hardcode_direct_CXX=yes
  8939. hardcode_minus_L_CXX=yes # Not in the search PATH,
  8940. # but as the default
  8941. # location of the library.
  8942. ;;
  8943. esac
  8944. case $cc_basename in
  8945. CC*)
  8946. # FIXME: insert proper C++ library support
  8947. ld_shlibs_CXX=no
  8948. ;;
  8949. aCC*)
  8950. case $host_cpu in
  8951. hppa*64*)
  8952. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8953. ;;
  8954. ia64*)
  8955. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8956. ;;
  8957. *)
  8958. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8959. ;;
  8960. esac
  8961. # Commands to make compiler produce verbose output that lists
  8962. # what "hidden" libraries, object files and flags are used when
  8963. # linking a shared library.
  8964. #
  8965. # There doesn't appear to be a way to prevent this compiler from
  8966. # explicitly linking system object files so we need to strip them
  8967. # from the output so that they don't get included in the library
  8968. # dependencies.
  8969. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  8970. ;;
  8971. *)
  8972. if test "$GXX" = yes; then
  8973. if test $with_gnu_ld = no; then
  8974. case $host_cpu in
  8975. hppa*64*)
  8976. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8977. ;;
  8978. ia64*)
  8979. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8980. ;;
  8981. *)
  8982. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8983. ;;
  8984. esac
  8985. fi
  8986. else
  8987. # FIXME: insert proper C++ library support
  8988. ld_shlibs_CXX=no
  8989. fi
  8990. ;;
  8991. esac
  8992. ;;
  8993. interix3*)
  8994. hardcode_direct_CXX=no
  8995. hardcode_shlibpath_var_CXX=no
  8996. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8997. export_dynamic_flag_spec_CXX='${wl}-E'
  8998. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8999. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9000. # default) and relocated if they conflict, which is a slow very memory
  9001. # consuming and fragmenting process. To avoid this, we pick a random,
  9002. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9003. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9004. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9005. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9006. ;;
  9007. irix5* | irix6*)
  9008. case $cc_basename in
  9009. CC*)
  9010. # SGI C++
  9011. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9012. # Archives containing C++ object files must be created using
  9013. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9014. # necessary to make sure instantiated templates are included
  9015. # in the archive.
  9016. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9017. ;;
  9018. *)
  9019. if test "$GXX" = yes; then
  9020. if test "$with_gnu_ld" = no; then
  9021. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9022. else
  9023. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  9024. fi
  9025. fi
  9026. link_all_deplibs_CXX=yes
  9027. ;;
  9028. esac
  9029. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9030. hardcode_libdir_separator_CXX=:
  9031. ;;
  9032. linux*)
  9033. case $cc_basename in
  9034. KCC*)
  9035. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9036. # KCC will only create a shared library if the output file
  9037. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9038. # to its proper name (with version) after linking.
  9039. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9040. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  9041. # Commands to make compiler produce verbose output that lists
  9042. # what "hidden" libraries, object files and flags are used when
  9043. # linking a shared library.
  9044. #
  9045. # There doesn't appear to be a way to prevent this compiler from
  9046. # explicitly linking system object files so we need to strip them
  9047. # from the output so that they don't get included in the library
  9048. # dependencies.
  9049. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9050. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9051. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9052. # Archives containing C++ object files must be created using
  9053. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9054. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9055. ;;
  9056. icpc*)
  9057. # Intel C++
  9058. with_gnu_ld=yes
  9059. # version 8.0 and above of icpc choke on multiply defined symbols
  9060. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9061. # earlier do not add the objects themselves.
  9062. case `$CC -V 2>&1` in
  9063. *"Version 7."*)
  9064. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9065. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9066. ;;
  9067. *) # Version 8.0 or newer
  9068. tmp_idyn=
  9069. case $host_cpu in
  9070. ia64*) tmp_idyn=' -i_dynamic';;
  9071. esac
  9072. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9073. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9074. ;;
  9075. esac
  9076. archive_cmds_need_lc_CXX=no
  9077. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9078. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9079. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9080. ;;
  9081. pgCC*)
  9082. # Portland Group C++ compiler
  9083. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9084. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  9085. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9086. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9087. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9088. ;;
  9089. cxx*)
  9090. # Compaq C++
  9091. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9092. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  9093. runpath_var=LD_RUN_PATH
  9094. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9095. hardcode_libdir_separator_CXX=:
  9096. # Commands to make compiler produce verbose output that lists
  9097. # what "hidden" libraries, object files and flags are used when
  9098. # linking a shared library.
  9099. #
  9100. # There doesn't appear to be a way to prevent this compiler from
  9101. # explicitly linking system object files so we need to strip them
  9102. # from the output so that they don't get included in the library
  9103. # dependencies.
  9104. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9105. ;;
  9106. esac
  9107. ;;
  9108. lynxos*)
  9109. # FIXME: insert proper C++ library support
  9110. ld_shlibs_CXX=no
  9111. ;;
  9112. m88k*)
  9113. # FIXME: insert proper C++ library support
  9114. ld_shlibs_CXX=no
  9115. ;;
  9116. mvs*)
  9117. case $cc_basename in
  9118. cxx*)
  9119. # FIXME: insert proper C++ library support
  9120. ld_shlibs_CXX=no
  9121. ;;
  9122. *)
  9123. # FIXME: insert proper C++ library support
  9124. ld_shlibs_CXX=no
  9125. ;;
  9126. esac
  9127. ;;
  9128. netbsd*)
  9129. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9130. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9131. wlarc=
  9132. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9133. hardcode_direct_CXX=yes
  9134. hardcode_shlibpath_var_CXX=no
  9135. fi
  9136. # Workaround some broken pre-1.5 toolchains
  9137. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9138. ;;
  9139. openbsd2*)
  9140. # C++ shared libraries are fairly broken
  9141. ld_shlibs_CXX=no
  9142. ;;
  9143. openbsd*)
  9144. hardcode_direct_CXX=yes
  9145. hardcode_shlibpath_var_CXX=no
  9146. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9147. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9148. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9149. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9150. export_dynamic_flag_spec_CXX='${wl}-E'
  9151. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9152. fi
  9153. output_verbose_link_cmd='echo'
  9154. ;;
  9155. osf3*)
  9156. case $cc_basename in
  9157. KCC*)
  9158. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9159. # KCC will only create a shared library if the output file
  9160. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9161. # to its proper name (with version) after linking.
  9162. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9163. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9164. hardcode_libdir_separator_CXX=:
  9165. # Archives containing C++ object files must be created using
  9166. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9167. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9168. ;;
  9169. RCC*)
  9170. # Rational C++ 2.4.1
  9171. # FIXME: insert proper C++ library support
  9172. ld_shlibs_CXX=no
  9173. ;;
  9174. cxx*)
  9175. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9176. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9177. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9178. hardcode_libdir_separator_CXX=:
  9179. # Commands to make compiler produce verbose output that lists
  9180. # what "hidden" libraries, object files and flags are used when
  9181. # linking a shared library.
  9182. #
  9183. # There doesn't appear to be a way to prevent this compiler from
  9184. # explicitly linking system object files so we need to strip them
  9185. # from the output so that they don't get included in the library
  9186. # dependencies.
  9187. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9188. ;;
  9189. *)
  9190. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9191. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9192. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9193. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9194. hardcode_libdir_separator_CXX=:
  9195. # Commands to make compiler produce verbose output that lists
  9196. # what "hidden" libraries, object files and flags are used when
  9197. # linking a shared library.
  9198. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9199. else
  9200. # FIXME: insert proper C++ library support
  9201. ld_shlibs_CXX=no
  9202. fi
  9203. ;;
  9204. esac
  9205. ;;
  9206. osf4* | osf5*)
  9207. case $cc_basename in
  9208. KCC*)
  9209. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9210. # KCC will only create a shared library if the output file
  9211. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9212. # to its proper name (with version) after linking.
  9213. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9214. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9215. hardcode_libdir_separator_CXX=:
  9216. # Archives containing C++ object files must be created using
  9217. # the KAI C++ compiler.
  9218. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9219. ;;
  9220. RCC*)
  9221. # Rational C++ 2.4.1
  9222. # FIXME: insert proper C++ library support
  9223. ld_shlibs_CXX=no
  9224. ;;
  9225. cxx*)
  9226. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9227. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9228. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9229. echo "-hidden">> $lib.exp~
  9230. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  9231. $rm $lib.exp'
  9232. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9233. hardcode_libdir_separator_CXX=:
  9234. # Commands to make compiler produce verbose output that lists
  9235. # what "hidden" libraries, object files and flags are used when
  9236. # linking a shared library.
  9237. #
  9238. # There doesn't appear to be a way to prevent this compiler from
  9239. # explicitly linking system object files so we need to strip them
  9240. # from the output so that they don't get included in the library
  9241. # dependencies.
  9242. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9243. ;;
  9244. *)
  9245. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9246. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9247. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9248. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9249. hardcode_libdir_separator_CXX=:
  9250. # Commands to make compiler produce verbose output that lists
  9251. # what "hidden" libraries, object files and flags are used when
  9252. # linking a shared library.
  9253. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9254. else
  9255. # FIXME: insert proper C++ library support
  9256. ld_shlibs_CXX=no
  9257. fi
  9258. ;;
  9259. esac
  9260. ;;
  9261. psos*)
  9262. # FIXME: insert proper C++ library support
  9263. ld_shlibs_CXX=no
  9264. ;;
  9265. sunos4*)
  9266. case $cc_basename in
  9267. CC*)
  9268. # Sun C++ 4.x
  9269. # FIXME: insert proper C++ library support
  9270. ld_shlibs_CXX=no
  9271. ;;
  9272. lcc*)
  9273. # Lucid
  9274. # FIXME: insert proper C++ library support
  9275. ld_shlibs_CXX=no
  9276. ;;
  9277. *)
  9278. # FIXME: insert proper C++ library support
  9279. ld_shlibs_CXX=no
  9280. ;;
  9281. esac
  9282. ;;
  9283. solaris*)
  9284. case $cc_basename in
  9285. CC*)
  9286. # Sun C++ 4.2, 5.x and Centerline C++
  9287. archive_cmds_need_lc_CXX=yes
  9288. no_undefined_flag_CXX=' -zdefs'
  9289. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9290. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9291. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9292. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9293. hardcode_shlibpath_var_CXX=no
  9294. case $host_os in
  9295. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9296. *)
  9297. # The C++ compiler is used as linker so we must use $wl
  9298. # flag to pass the commands to the underlying system
  9299. # linker. We must also pass each convience library through
  9300. # to the system linker between allextract/defaultextract.
  9301. # The C++ compiler will combine linker options so we
  9302. # cannot just pass the convience library names through
  9303. # without $wl.
  9304. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9305. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  9306. ;;
  9307. esac
  9308. link_all_deplibs_CXX=yes
  9309. output_verbose_link_cmd='echo'
  9310. # Archives containing C++ object files must be created using
  9311. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9312. # necessary to make sure instantiated templates are included
  9313. # in the archive.
  9314. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9315. ;;
  9316. gcx*)
  9317. # Green Hills C++ Compiler
  9318. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9319. # The C++ compiler must be used to create the archive.
  9320. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9321. ;;
  9322. *)
  9323. # GNU C++ compiler with Solaris linker
  9324. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9325. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9326. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9327. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9328. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9329. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9330. # Commands to make compiler produce verbose output that lists
  9331. # what "hidden" libraries, object files and flags are used when
  9332. # linking a shared library.
  9333. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9334. else
  9335. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9336. # platform.
  9337. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9338. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9339. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9340. # Commands to make compiler produce verbose output that lists
  9341. # what "hidden" libraries, object files and flags are used when
  9342. # linking a shared library.
  9343. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9344. fi
  9345. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9346. fi
  9347. ;;
  9348. esac
  9349. ;;
  9350. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9351. no_undefined_flag_CXX='${wl}-z,text'
  9352. archive_cmds_need_lc_CXX=no
  9353. hardcode_shlibpath_var_CXX=no
  9354. runpath_var='LD_RUN_PATH'
  9355. case $cc_basename in
  9356. CC*)
  9357. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9358. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9359. ;;
  9360. *)
  9361. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9362. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9363. ;;
  9364. esac
  9365. ;;
  9366. sysv5* | sco3.2v5* | sco5v6*)
  9367. # Note: We can NOT use -z defs as we might desire, because we do not
  9368. # link with -lc, and that would cause any symbols used from libc to
  9369. # always be unresolved, which means just about no library would
  9370. # ever link correctly. If we're not using GNU ld we use -z text
  9371. # though, which does catch some bad symbols but isn't as heavy-handed
  9372. # as -z defs.
  9373. # For security reasons, it is highly recommended that you always
  9374. # use absolute paths for naming shared libraries, and exclude the
  9375. # DT_RUNPATH tag from executables and libraries. But doing so
  9376. # requires that you compile everything twice, which is a pain.
  9377. # So that behaviour is only enabled if SCOABSPATH is set to a
  9378. # non-empty value in the environment. Most likely only useful for
  9379. # creating official distributions of packages.
  9380. # This is a hack until libtool officially supports absolute path
  9381. # names for shared libraries.
  9382. no_undefined_flag_CXX='${wl}-z,text'
  9383. allow_undefined_flag_CXX='${wl}-z,nodefs'
  9384. archive_cmds_need_lc_CXX=no
  9385. hardcode_shlibpath_var_CXX=no
  9386. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  9387. hardcode_libdir_separator_CXX=':'
  9388. link_all_deplibs_CXX=yes
  9389. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  9390. runpath_var='LD_RUN_PATH'
  9391. case $cc_basename in
  9392. CC*)
  9393. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9394. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9395. ;;
  9396. *)
  9397. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9398. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9399. ;;
  9400. esac
  9401. ;;
  9402. tandem*)
  9403. case $cc_basename in
  9404. NCC*)
  9405. # NonStop-UX NCC 3.20
  9406. # FIXME: insert proper C++ library support
  9407. ld_shlibs_CXX=no
  9408. ;;
  9409. *)
  9410. # FIXME: insert proper C++ library support
  9411. ld_shlibs_CXX=no
  9412. ;;
  9413. esac
  9414. ;;
  9415. vxworks*)
  9416. # FIXME: insert proper C++ library support
  9417. ld_shlibs_CXX=no
  9418. ;;
  9419. *)
  9420. # FIXME: insert proper C++ library support
  9421. ld_shlibs_CXX=no
  9422. ;;
  9423. esac
  9424. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9425. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  9426. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9427. GCC_CXX="$GXX"
  9428. LD_CXX="$LD"
  9429. cat > conftest.$ac_ext <<EOF
  9430. class Foo
  9431. {
  9432. public:
  9433. Foo (void) { a = 0; }
  9434. private:
  9435. int a;
  9436. };
  9437. EOF
  9438. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9439. (eval $ac_compile) 2>&5
  9440. ac_status=$?
  9441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9442. (exit $ac_status); }; then
  9443. # Parse the compiler output and extract the necessary
  9444. # objects, libraries and library flags.
  9445. # Sentinel used to keep track of whether or not we are before
  9446. # the conftest object file.
  9447. pre_test_object_deps_done=no
  9448. # The `*' in the case matches for architectures that use `case' in
  9449. # $output_verbose_cmd can trigger glob expansion during the loop
  9450. # eval without this substitution.
  9451. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  9452. for p in `eval $output_verbose_link_cmd`; do
  9453. case $p in
  9454. -L* | -R* | -l*)
  9455. # Some compilers place space between "-{L,R}" and the path.
  9456. # Remove the space.
  9457. if test $p = "-L" \
  9458. || test $p = "-R"; then
  9459. prev=$p
  9460. continue
  9461. else
  9462. prev=
  9463. fi
  9464. if test "$pre_test_object_deps_done" = no; then
  9465. case $p in
  9466. -L* | -R*)
  9467. # Internal compiler library paths should come after those
  9468. # provided the user. The postdeps already come after the
  9469. # user supplied libs so there is no need to process them.
  9470. if test -z "$compiler_lib_search_path_CXX"; then
  9471. compiler_lib_search_path_CXX="${prev}${p}"
  9472. else
  9473. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  9474. fi
  9475. ;;
  9476. # The "-l" case would never come before the object being
  9477. # linked, so don't bother handling this case.
  9478. esac
  9479. else
  9480. if test -z "$postdeps_CXX"; then
  9481. postdeps_CXX="${prev}${p}"
  9482. else
  9483. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  9484. fi
  9485. fi
  9486. ;;
  9487. *.$objext)
  9488. # This assumes that the test object file only shows up
  9489. # once in the compiler output.
  9490. if test "$p" = "conftest.$objext"; then
  9491. pre_test_object_deps_done=yes
  9492. continue
  9493. fi
  9494. if test "$pre_test_object_deps_done" = no; then
  9495. if test -z "$predep_objects_CXX"; then
  9496. predep_objects_CXX="$p"
  9497. else
  9498. predep_objects_CXX="$predep_objects_CXX $p"
  9499. fi
  9500. else
  9501. if test -z "$postdep_objects_CXX"; then
  9502. postdep_objects_CXX="$p"
  9503. else
  9504. postdep_objects_CXX="$postdep_objects_CXX $p"
  9505. fi
  9506. fi
  9507. ;;
  9508. *) ;; # Ignore the rest.
  9509. esac
  9510. done
  9511. # Clean up.
  9512. rm -f a.out a.exe
  9513. else
  9514. echo "libtool.m4: error: problem compiling CXX test program"
  9515. fi
  9516. $rm -f confest.$objext
  9517. # PORTME: override above test on systems where it is broken
  9518. case $host_os in
  9519. interix3*)
  9520. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  9521. # hack all around it, let's just trust "g++" to DTRT.
  9522. predep_objects_CXX=
  9523. postdep_objects_CXX=
  9524. postdeps_CXX=
  9525. ;;
  9526. solaris*)
  9527. case $cc_basename in
  9528. CC*)
  9529. # Adding this requires a known-good setup of shared libraries for
  9530. # Sun compiler versions before 5.6, else PIC objects from an old
  9531. # archive will be linked into the output, leading to subtle bugs.
  9532. postdeps_CXX='-lCstd -lCrun'
  9533. ;;
  9534. esac
  9535. ;;
  9536. esac
  9537. case " $postdeps_CXX " in
  9538. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  9539. esac
  9540. lt_prog_compiler_wl_CXX=
  9541. lt_prog_compiler_pic_CXX=
  9542. lt_prog_compiler_static_CXX=
  9543. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  9544. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  9545. # C++ specific cases for pic, static, wl, etc.
  9546. if test "$GXX" = yes; then
  9547. lt_prog_compiler_wl_CXX='-Wl,'
  9548. lt_prog_compiler_static_CXX='-static'
  9549. case $host_os in
  9550. aix*)
  9551. # All AIX code is PIC.
  9552. if test "$host_cpu" = ia64; then
  9553. # AIX 5 now supports IA64 processor
  9554. lt_prog_compiler_static_CXX='-Bstatic'
  9555. fi
  9556. ;;
  9557. amigaos*)
  9558. # FIXME: we need at least 68020 code to build shared libraries, but
  9559. # adding the `-m68020' flag to GCC prevents building anything better,
  9560. # like `-m68040'.
  9561. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  9562. ;;
  9563. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9564. # PIC is the default for these OSes.
  9565. ;;
  9566. mingw* | os2* | pw32*)
  9567. # This hack is so that the source file can tell whether it is being
  9568. # built for inclusion in a dll (and should export symbols for example).
  9569. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  9570. ;;
  9571. darwin* | rhapsody*)
  9572. # PIC is the default on this platform
  9573. # Common symbols not allowed in MH_DYLIB files
  9574. lt_prog_compiler_pic_CXX='-fno-common'
  9575. ;;
  9576. *djgpp*)
  9577. # DJGPP does not support shared libraries at all
  9578. lt_prog_compiler_pic_CXX=
  9579. ;;
  9580. interix3*)
  9581. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9582. # Instead, we relocate shared libraries at runtime.
  9583. ;;
  9584. sysv4*MP*)
  9585. if test -d /usr/nec; then
  9586. lt_prog_compiler_pic_CXX=-Kconform_pic
  9587. fi
  9588. ;;
  9589. hpux*)
  9590. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9591. # not for PA HP-UX.
  9592. case $host_cpu in
  9593. hppa*64*|ia64*)
  9594. ;;
  9595. *)
  9596. lt_prog_compiler_pic_CXX='-fPIC'
  9597. ;;
  9598. esac
  9599. ;;
  9600. *)
  9601. lt_prog_compiler_pic_CXX='-fPIC'
  9602. ;;
  9603. esac
  9604. else
  9605. case $host_os in
  9606. aix4* | aix5*)
  9607. # All AIX code is PIC.
  9608. if test "$host_cpu" = ia64; then
  9609. # AIX 5 now supports IA64 processor
  9610. lt_prog_compiler_static_CXX='-Bstatic'
  9611. else
  9612. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  9613. fi
  9614. ;;
  9615. chorus*)
  9616. case $cc_basename in
  9617. cxch68*)
  9618. # Green Hills C++ Compiler
  9619. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  9620. ;;
  9621. esac
  9622. ;;
  9623. darwin*)
  9624. # PIC is the default on this platform
  9625. # Common symbols not allowed in MH_DYLIB files
  9626. case $cc_basename in
  9627. xlc*)
  9628. lt_prog_compiler_pic_CXX='-qnocommon'
  9629. lt_prog_compiler_wl_CXX='-Wl,'
  9630. ;;
  9631. esac
  9632. ;;
  9633. dgux*)
  9634. case $cc_basename in
  9635. ec++*)
  9636. lt_prog_compiler_pic_CXX='-KPIC'
  9637. ;;
  9638. ghcx*)
  9639. # Green Hills C++ Compiler
  9640. lt_prog_compiler_pic_CXX='-pic'
  9641. ;;
  9642. *)
  9643. ;;
  9644. esac
  9645. ;;
  9646. freebsd* | kfreebsd*-gnu | dragonfly*)
  9647. # FreeBSD uses GNU C++
  9648. ;;
  9649. hpux9* | hpux10* | hpux11*)
  9650. case $cc_basename in
  9651. CC*)
  9652. lt_prog_compiler_wl_CXX='-Wl,'
  9653. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  9654. if test "$host_cpu" != ia64; then
  9655. lt_prog_compiler_pic_CXX='+Z'
  9656. fi
  9657. ;;
  9658. aCC*)
  9659. lt_prog_compiler_wl_CXX='-Wl,'
  9660. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  9661. case $host_cpu in
  9662. hppa*64*|ia64*)
  9663. # +Z the default
  9664. ;;
  9665. *)
  9666. lt_prog_compiler_pic_CXX='+Z'
  9667. ;;
  9668. esac
  9669. ;;
  9670. *)
  9671. ;;
  9672. esac
  9673. ;;
  9674. interix*)
  9675. # This is c89, which is MS Visual C++ (no shared libs)
  9676. # Anyone wants to do a port?
  9677. ;;
  9678. irix5* | irix6* | nonstopux*)
  9679. case $cc_basename in
  9680. CC*)
  9681. lt_prog_compiler_wl_CXX='-Wl,'
  9682. lt_prog_compiler_static_CXX='-non_shared'
  9683. # CC pic flag -KPIC is the default.
  9684. ;;
  9685. *)
  9686. ;;
  9687. esac
  9688. ;;
  9689. linux*)
  9690. case $cc_basename in
  9691. KCC*)
  9692. # KAI C++ Compiler
  9693. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9694. lt_prog_compiler_pic_CXX='-fPIC'
  9695. ;;
  9696. icpc* | ecpc*)
  9697. # Intel C++
  9698. lt_prog_compiler_wl_CXX='-Wl,'
  9699. lt_prog_compiler_pic_CXX='-KPIC'
  9700. lt_prog_compiler_static_CXX='-static'
  9701. ;;
  9702. pgCC*)
  9703. # Portland Group C++ compiler.
  9704. lt_prog_compiler_wl_CXX='-Wl,'
  9705. lt_prog_compiler_pic_CXX='-fpic'
  9706. lt_prog_compiler_static_CXX='-Bstatic'
  9707. ;;
  9708. cxx*)
  9709. # Compaq C++
  9710. # Make sure the PIC flag is empty. It appears that all Alpha
  9711. # Linux and Compaq Tru64 Unix objects are PIC.
  9712. lt_prog_compiler_pic_CXX=
  9713. lt_prog_compiler_static_CXX='-non_shared'
  9714. ;;
  9715. *)
  9716. ;;
  9717. esac
  9718. ;;
  9719. lynxos*)
  9720. ;;
  9721. m88k*)
  9722. ;;
  9723. mvs*)
  9724. case $cc_basename in
  9725. cxx*)
  9726. lt_prog_compiler_pic_CXX='-W c,exportall'
  9727. ;;
  9728. *)
  9729. ;;
  9730. esac
  9731. ;;
  9732. netbsd*)
  9733. ;;
  9734. osf3* | osf4* | osf5*)
  9735. case $cc_basename in
  9736. KCC*)
  9737. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9738. ;;
  9739. RCC*)
  9740. # Rational C++ 2.4.1
  9741. lt_prog_compiler_pic_CXX='-pic'
  9742. ;;
  9743. cxx*)
  9744. # Digital/Compaq C++
  9745. lt_prog_compiler_wl_CXX='-Wl,'
  9746. # Make sure the PIC flag is empty. It appears that all Alpha
  9747. # Linux and Compaq Tru64 Unix objects are PIC.
  9748. lt_prog_compiler_pic_CXX=
  9749. lt_prog_compiler_static_CXX='-non_shared'
  9750. ;;
  9751. *)
  9752. ;;
  9753. esac
  9754. ;;
  9755. psos*)
  9756. ;;
  9757. solaris*)
  9758. case $cc_basename in
  9759. CC*)
  9760. # Sun C++ 4.2, 5.x and Centerline C++
  9761. lt_prog_compiler_pic_CXX='-KPIC'
  9762. lt_prog_compiler_static_CXX='-Bstatic'
  9763. lt_prog_compiler_wl_CXX='-Qoption ld '
  9764. ;;
  9765. gcx*)
  9766. # Green Hills C++ Compiler
  9767. lt_prog_compiler_pic_CXX='-PIC'
  9768. ;;
  9769. *)
  9770. ;;
  9771. esac
  9772. ;;
  9773. sunos4*)
  9774. case $cc_basename in
  9775. CC*)
  9776. # Sun C++ 4.x
  9777. lt_prog_compiler_pic_CXX='-pic'
  9778. lt_prog_compiler_static_CXX='-Bstatic'
  9779. ;;
  9780. lcc*)
  9781. # Lucid
  9782. lt_prog_compiler_pic_CXX='-pic'
  9783. ;;
  9784. *)
  9785. ;;
  9786. esac
  9787. ;;
  9788. tandem*)
  9789. case $cc_basename in
  9790. NCC*)
  9791. # NonStop-UX NCC 3.20
  9792. lt_prog_compiler_pic_CXX='-KPIC'
  9793. ;;
  9794. *)
  9795. ;;
  9796. esac
  9797. ;;
  9798. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9799. case $cc_basename in
  9800. CC*)
  9801. lt_prog_compiler_wl_CXX='-Wl,'
  9802. lt_prog_compiler_pic_CXX='-KPIC'
  9803. lt_prog_compiler_static_CXX='-Bstatic'
  9804. ;;
  9805. esac
  9806. ;;
  9807. vxworks*)
  9808. ;;
  9809. *)
  9810. lt_prog_compiler_can_build_shared_CXX=no
  9811. ;;
  9812. esac
  9813. fi
  9814. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  9815. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  9816. #
  9817. # Check to make sure the PIC flag actually works.
  9818. #
  9819. if test -n "$lt_prog_compiler_pic_CXX"; then
  9820. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  9821. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  9822. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  9823. echo $ECHO_N "(cached) $ECHO_C" >&6
  9824. else
  9825. lt_prog_compiler_pic_works_CXX=no
  9826. ac_outfile=conftest.$ac_objext
  9827. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9828. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  9829. # Insert the option either (1) after the last *FLAGS variable, or
  9830. # (2) before a word containing "conftest.", or (3) at the end.
  9831. # Note that $ac_compile itself does not contain backslashes and begins
  9832. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9833. # The option is referenced via a variable to avoid confusing sed.
  9834. lt_compile=`echo "$ac_compile" | $SED \
  9835. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9836. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9837. -e 's:$: $lt_compiler_flag:'`
  9838. (eval echo "\"\$as_me:10863: $lt_compile\"" >&5)
  9839. (eval "$lt_compile" 2>conftest.err)
  9840. ac_status=$?
  9841. cat conftest.err >&5
  9842. echo "$as_me:10867: \$? = $ac_status" >&5
  9843. if (exit $ac_status) && test -s "$ac_outfile"; then
  9844. # The compiler can only warn and ignore the option if not recognized
  9845. # So say no if there are warnings other than the usual output.
  9846. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  9847. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9848. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9849. lt_prog_compiler_pic_works_CXX=yes
  9850. fi
  9851. fi
  9852. $rm conftest*
  9853. fi
  9854. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  9855. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  9856. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  9857. case $lt_prog_compiler_pic_CXX in
  9858. "" | " "*) ;;
  9859. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  9860. esac
  9861. else
  9862. lt_prog_compiler_pic_CXX=
  9863. lt_prog_compiler_can_build_shared_CXX=no
  9864. fi
  9865. fi
  9866. case $host_os in
  9867. # For platforms which do not support PIC, -DPIC is meaningless:
  9868. *djgpp*)
  9869. lt_prog_compiler_pic_CXX=
  9870. ;;
  9871. *)
  9872. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  9873. ;;
  9874. esac
  9875. #
  9876. # Check to make sure the static flag actually works.
  9877. #
  9878. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  9879. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9880. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  9881. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  9882. echo $ECHO_N "(cached) $ECHO_C" >&6
  9883. else
  9884. lt_prog_compiler_static_works_CXX=no
  9885. save_LDFLAGS="$LDFLAGS"
  9886. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9887. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  9888. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9889. # The linker can only warn and ignore the option if not recognized
  9890. # So say no if there are warnings
  9891. if test -s conftest.err; then
  9892. # Append any errors to the config.log.
  9893. cat conftest.err 1>&5
  9894. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  9895. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9896. if diff conftest.exp conftest.er2 >/dev/null; then
  9897. lt_prog_compiler_static_works_CXX=yes
  9898. fi
  9899. else
  9900. lt_prog_compiler_static_works_CXX=yes
  9901. fi
  9902. fi
  9903. $rm conftest*
  9904. LDFLAGS="$save_LDFLAGS"
  9905. fi
  9906. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  9907. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  9908. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  9909. :
  9910. else
  9911. lt_prog_compiler_static_CXX=
  9912. fi
  9913. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  9914. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  9915. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  9916. echo $ECHO_N "(cached) $ECHO_C" >&6
  9917. else
  9918. lt_cv_prog_compiler_c_o_CXX=no
  9919. $rm -r conftest 2>/dev/null
  9920. mkdir conftest
  9921. cd conftest
  9922. mkdir out
  9923. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9924. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9925. # Insert the option either (1) after the last *FLAGS variable, or
  9926. # (2) before a word containing "conftest.", or (3) at the end.
  9927. # Note that $ac_compile itself does not contain backslashes and begins
  9928. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9929. lt_compile=`echo "$ac_compile" | $SED \
  9930. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9931. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9932. -e 's:$: $lt_compiler_flag:'`
  9933. (eval echo "\"\$as_me:10967: $lt_compile\"" >&5)
  9934. (eval "$lt_compile" 2>out/conftest.err)
  9935. ac_status=$?
  9936. cat out/conftest.err >&5
  9937. echo "$as_me:10971: \$? = $ac_status" >&5
  9938. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9939. then
  9940. # The compiler can only warn and ignore the option if not recognized
  9941. # So say no if there are warnings
  9942. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  9943. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9944. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9945. lt_cv_prog_compiler_c_o_CXX=yes
  9946. fi
  9947. fi
  9948. chmod u+w . 2>&5
  9949. $rm conftest*
  9950. # SGI C++ compiler will create directory out/ii_files/ for
  9951. # template instantiation
  9952. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  9953. $rm out/* && rmdir out
  9954. cd ..
  9955. rmdir conftest
  9956. $rm conftest*
  9957. fi
  9958. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  9959. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  9960. hard_links="nottested"
  9961. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  9962. # do not overwrite the value of need_locks provided by the user
  9963. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  9964. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  9965. hard_links=yes
  9966. $rm conftest*
  9967. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9968. touch conftest.a
  9969. ln conftest.a conftest.b 2>&5 || hard_links=no
  9970. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9971. echo "$as_me:$LINENO: result: $hard_links" >&5
  9972. echo "${ECHO_T}$hard_links" >&6
  9973. if test "$hard_links" = no; then
  9974. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9975. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9976. need_locks=warn
  9977. fi
  9978. else
  9979. need_locks=no
  9980. fi
  9981. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9982. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9983. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9984. case $host_os in
  9985. aix4* | aix5*)
  9986. # If we're using GNU nm, then we don't want the "-C" option.
  9987. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9988. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9989. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9990. else
  9991. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9992. fi
  9993. ;;
  9994. pw32*)
  9995. export_symbols_cmds_CXX="$ltdll_cmds"
  9996. ;;
  9997. cygwin* | mingw*)
  9998. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  9999. ;;
  10000. *)
  10001. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10002. ;;
  10003. esac
  10004. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10005. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10006. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10007. #
  10008. # Do we need to explicitly link libc?
  10009. #
  10010. case "x$archive_cmds_need_lc_CXX" in
  10011. x|xyes)
  10012. # Assume -lc should be added
  10013. archive_cmds_need_lc_CXX=yes
  10014. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10015. case $archive_cmds_CXX in
  10016. *'~'*)
  10017. # FIXME: we may have to deal with multi-command sequences.
  10018. ;;
  10019. '$CC '*)
  10020. # Test whether the compiler implicitly links with -lc since on some
  10021. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10022. # to ld, don't add -lc before -lgcc.
  10023. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10024. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10025. $rm conftest*
  10026. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10027. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10028. (eval $ac_compile) 2>&5
  10029. ac_status=$?
  10030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10031. (exit $ac_status); } 2>conftest.err; then
  10032. soname=conftest
  10033. lib=conftest
  10034. libobjs=conftest.$ac_objext
  10035. deplibs=
  10036. wl=$lt_prog_compiler_wl_CXX
  10037. pic_flag=$lt_prog_compiler_pic_CXX
  10038. compiler_flags=-v
  10039. linker_flags=-v
  10040. verstring=
  10041. output_objdir=.
  10042. libname=conftest
  10043. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10044. allow_undefined_flag_CXX=
  10045. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10046. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10047. ac_status=$?
  10048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10049. (exit $ac_status); }
  10050. then
  10051. archive_cmds_need_lc_CXX=no
  10052. else
  10053. archive_cmds_need_lc_CXX=yes
  10054. fi
  10055. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10056. else
  10057. cat conftest.err 1>&5
  10058. fi
  10059. $rm conftest*
  10060. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10061. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10062. ;;
  10063. esac
  10064. fi
  10065. ;;
  10066. esac
  10067. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10068. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10069. library_names_spec=
  10070. libname_spec='lib$name'
  10071. soname_spec=
  10072. shrext_cmds=".so"
  10073. postinstall_cmds=
  10074. postuninstall_cmds=
  10075. finish_cmds=
  10076. finish_eval=
  10077. shlibpath_var=
  10078. shlibpath_overrides_runpath=unknown
  10079. version_type=none
  10080. dynamic_linker="$host_os ld.so"
  10081. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10082. if test "$GCC" = yes; then
  10083. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10084. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10085. # if the path contains ";" then we assume it to be the separator
  10086. # otherwise default to the standard path separator (i.e. ":") - it is
  10087. # assumed that no part of a normal pathname contains ";" but that should
  10088. # okay in the real world where ";" in dirpaths is itself problematic.
  10089. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10090. else
  10091. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10092. fi
  10093. else
  10094. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10095. fi
  10096. need_lib_prefix=unknown
  10097. hardcode_into_libs=no
  10098. # when you set need_version to no, make sure it does not cause -set_version
  10099. # flags to be left without arguments
  10100. need_version=unknown
  10101. case $host_os in
  10102. aix3*)
  10103. version_type=linux
  10104. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10105. shlibpath_var=LIBPATH
  10106. # AIX 3 has no versioning support, so we append a major version to the name.
  10107. soname_spec='${libname}${release}${shared_ext}$major'
  10108. ;;
  10109. aix4* | aix5*)
  10110. version_type=linux
  10111. need_lib_prefix=no
  10112. need_version=no
  10113. hardcode_into_libs=yes
  10114. if test "$host_cpu" = ia64; then
  10115. # AIX 5 supports IA64
  10116. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10117. shlibpath_var=LD_LIBRARY_PATH
  10118. else
  10119. # With GCC up to 2.95.x, collect2 would create an import file
  10120. # for dependence libraries. The import file would start with
  10121. # the line `#! .'. This would cause the generated library to
  10122. # depend on `.', always an invalid library. This was fixed in
  10123. # development snapshots of GCC prior to 3.0.
  10124. case $host_os in
  10125. aix4 | aix4.[01] | aix4.[01].*)
  10126. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10127. echo ' yes '
  10128. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10129. :
  10130. else
  10131. can_build_shared=no
  10132. fi
  10133. ;;
  10134. esac
  10135. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10136. # soname into executable. Probably we can add versioning support to
  10137. # collect2, so additional links can be useful in future.
  10138. if test "$aix_use_runtimelinking" = yes; then
  10139. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10140. # instead of lib<name>.a to let people know that these are not
  10141. # typical AIX shared libraries.
  10142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10143. else
  10144. # We preserve .a as extension for shared libraries through AIX4.2
  10145. # and later when we are not doing run time linking.
  10146. library_names_spec='${libname}${release}.a $libname.a'
  10147. soname_spec='${libname}${release}${shared_ext}$major'
  10148. fi
  10149. shlibpath_var=LIBPATH
  10150. fi
  10151. ;;
  10152. amigaos*)
  10153. library_names_spec='$libname.ixlibrary $libname.a'
  10154. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10155. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10156. ;;
  10157. beos*)
  10158. library_names_spec='${libname}${shared_ext}'
  10159. dynamic_linker="$host_os ld.so"
  10160. shlibpath_var=LIBRARY_PATH
  10161. ;;
  10162. bsdi[45]*)
  10163. version_type=linux
  10164. need_version=no
  10165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10166. soname_spec='${libname}${release}${shared_ext}$major'
  10167. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10168. shlibpath_var=LD_LIBRARY_PATH
  10169. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10170. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10171. # the default ld.so.conf also contains /usr/contrib/lib and
  10172. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10173. # libtool to hard-code these into programs
  10174. ;;
  10175. cygwin* | mingw* | pw32*)
  10176. version_type=windows
  10177. shrext_cmds=".dll"
  10178. need_version=no
  10179. need_lib_prefix=no
  10180. case $GCC,$host_os in
  10181. yes,cygwin* | yes,mingw* | yes,pw32*)
  10182. library_names_spec='$libname.dll.a'
  10183. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10184. postinstall_cmds='base_file=`basename \${file}`~
  10185. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10186. dldir=$destdir/`dirname \$dlpath`~
  10187. test -d \$dldir || mkdir -p \$dldir~
  10188. $install_prog $dir/$dlname \$dldir/$dlname~
  10189. chmod a+x \$dldir/$dlname'
  10190. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10191. dlpath=$dir/\$dldll~
  10192. $rm \$dlpath'
  10193. shlibpath_overrides_runpath=yes
  10194. case $host_os in
  10195. cygwin*)
  10196. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10197. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10198. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10199. ;;
  10200. mingw*)
  10201. # MinGW DLLs use traditional 'lib' prefix
  10202. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10203. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10204. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10205. # It is most probably a Windows format PATH printed by
  10206. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10207. # path with ; separators, and with drive letters. We can handle the
  10208. # drive letters (cygwin fileutils understands them), so leave them,
  10209. # especially as we might pass files found there to a mingw objdump,
  10210. # which wouldn't understand a cygwinified path. Ahh.
  10211. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10212. else
  10213. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10214. fi
  10215. ;;
  10216. pw32*)
  10217. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10218. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10219. ;;
  10220. esac
  10221. ;;
  10222. *)
  10223. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10224. ;;
  10225. esac
  10226. dynamic_linker='Win32 ld.exe'
  10227. # FIXME: first we should search . and the directory the executable is in
  10228. shlibpath_var=PATH
  10229. ;;
  10230. darwin* | rhapsody*)
  10231. dynamic_linker="$host_os dyld"
  10232. version_type=darwin
  10233. need_lib_prefix=no
  10234. need_version=no
  10235. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10236. soname_spec='${libname}${release}${major}$shared_ext'
  10237. shlibpath_overrides_runpath=yes
  10238. shlibpath_var=DYLD_LIBRARY_PATH
  10239. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10240. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10241. if test "$GCC" = yes; then
  10242. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  10243. else
  10244. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10245. fi
  10246. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10247. ;;
  10248. dgux*)
  10249. version_type=linux
  10250. need_lib_prefix=no
  10251. need_version=no
  10252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10253. soname_spec='${libname}${release}${shared_ext}$major'
  10254. shlibpath_var=LD_LIBRARY_PATH
  10255. ;;
  10256. freebsd1*)
  10257. dynamic_linker=no
  10258. ;;
  10259. kfreebsd*-gnu)
  10260. version_type=linux
  10261. need_lib_prefix=no
  10262. need_version=no
  10263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10264. soname_spec='${libname}${release}${shared_ext}$major'
  10265. shlibpath_var=LD_LIBRARY_PATH
  10266. shlibpath_overrides_runpath=no
  10267. hardcode_into_libs=yes
  10268. dynamic_linker='GNU ld.so'
  10269. ;;
  10270. freebsd* | dragonfly*)
  10271. # DragonFly does not have aout. When/if they implement a new
  10272. # versioning mechanism, adjust this.
  10273. if test -x /usr/bin/objformat; then
  10274. objformat=`/usr/bin/objformat`
  10275. else
  10276. case $host_os in
  10277. freebsd[123]*) objformat=aout ;;
  10278. *) objformat=elf ;;
  10279. esac
  10280. fi
  10281. version_type=freebsd-$objformat
  10282. case $version_type in
  10283. freebsd-elf*)
  10284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10285. need_version=no
  10286. need_lib_prefix=no
  10287. ;;
  10288. freebsd-*)
  10289. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10290. need_version=yes
  10291. ;;
  10292. esac
  10293. shlibpath_var=LD_LIBRARY_PATH
  10294. case $host_os in
  10295. freebsd2*)
  10296. shlibpath_overrides_runpath=yes
  10297. ;;
  10298. freebsd3.[01]* | freebsdelf3.[01]*)
  10299. shlibpath_overrides_runpath=yes
  10300. hardcode_into_libs=yes
  10301. ;;
  10302. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10303. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10304. shlibpath_overrides_runpath=no
  10305. hardcode_into_libs=yes
  10306. ;;
  10307. freebsd*) # from 4.6 on
  10308. shlibpath_overrides_runpath=yes
  10309. hardcode_into_libs=yes
  10310. ;;
  10311. esac
  10312. ;;
  10313. gnu*)
  10314. version_type=linux
  10315. need_lib_prefix=no
  10316. need_version=no
  10317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10318. soname_spec='${libname}${release}${shared_ext}$major'
  10319. shlibpath_var=LD_LIBRARY_PATH
  10320. hardcode_into_libs=yes
  10321. ;;
  10322. hpux9* | hpux10* | hpux11*)
  10323. # Give a soname corresponding to the major version so that dld.sl refuses to
  10324. # link against other versions.
  10325. version_type=sunos
  10326. need_lib_prefix=no
  10327. need_version=no
  10328. case $host_cpu in
  10329. ia64*)
  10330. shrext_cmds='.so'
  10331. hardcode_into_libs=yes
  10332. dynamic_linker="$host_os dld.so"
  10333. shlibpath_var=LD_LIBRARY_PATH
  10334. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10336. soname_spec='${libname}${release}${shared_ext}$major'
  10337. if test "X$HPUX_IA64_MODE" = X32; then
  10338. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10339. else
  10340. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10341. fi
  10342. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10343. ;;
  10344. hppa*64*)
  10345. shrext_cmds='.sl'
  10346. hardcode_into_libs=yes
  10347. dynamic_linker="$host_os dld.sl"
  10348. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10349. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10351. soname_spec='${libname}${release}${shared_ext}$major'
  10352. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10353. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10354. ;;
  10355. *)
  10356. shrext_cmds='.sl'
  10357. dynamic_linker="$host_os dld.sl"
  10358. shlibpath_var=SHLIB_PATH
  10359. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10361. soname_spec='${libname}${release}${shared_ext}$major'
  10362. ;;
  10363. esac
  10364. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10365. postinstall_cmds='chmod 555 $lib'
  10366. ;;
  10367. interix3*)
  10368. version_type=linux
  10369. need_lib_prefix=no
  10370. need_version=no
  10371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10372. soname_spec='${libname}${release}${shared_ext}$major'
  10373. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10374. shlibpath_var=LD_LIBRARY_PATH
  10375. shlibpath_overrides_runpath=no
  10376. hardcode_into_libs=yes
  10377. ;;
  10378. irix5* | irix6* | nonstopux*)
  10379. case $host_os in
  10380. nonstopux*) version_type=nonstopux ;;
  10381. *)
  10382. if test "$lt_cv_prog_gnu_ld" = yes; then
  10383. version_type=linux
  10384. else
  10385. version_type=irix
  10386. fi ;;
  10387. esac
  10388. need_lib_prefix=no
  10389. need_version=no
  10390. soname_spec='${libname}${release}${shared_ext}$major'
  10391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10392. case $host_os in
  10393. irix5* | nonstopux*)
  10394. libsuff= shlibsuff=
  10395. ;;
  10396. *)
  10397. case $LD in # libtool.m4 will add one of these switches to LD
  10398. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10399. libsuff= shlibsuff= libmagic=32-bit;;
  10400. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10401. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10402. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10403. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10404. *) libsuff= shlibsuff= libmagic=never-match;;
  10405. esac
  10406. ;;
  10407. esac
  10408. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10409. shlibpath_overrides_runpath=no
  10410. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10411. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10412. hardcode_into_libs=yes
  10413. ;;
  10414. # No shared lib support for Linux oldld, aout, or coff.
  10415. linux*oldld* | linux*aout* | linux*coff*)
  10416. dynamic_linker=no
  10417. ;;
  10418. # This must be Linux ELF.
  10419. linux*)
  10420. version_type=linux
  10421. need_lib_prefix=no
  10422. need_version=no
  10423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10424. soname_spec='${libname}${release}${shared_ext}$major'
  10425. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10426. shlibpath_var=LD_LIBRARY_PATH
  10427. shlibpath_overrides_runpath=no
  10428. # This implies no fast_install, which is unacceptable.
  10429. # Some rework will be needed to allow for fast_install
  10430. # before this can be enabled.
  10431. hardcode_into_libs=yes
  10432. # Append ld.so.conf contents to the search path
  10433. if test -f /etc/ld.so.conf; then
  10434. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10435. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10436. fi
  10437. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10438. # powerpc, because MkLinux only supported shared libraries with the
  10439. # GNU dynamic linker. Since this was broken with cross compilers,
  10440. # most powerpc-linux boxes support dynamic linking these days and
  10441. # people can always --disable-shared, the test was removed, and we
  10442. # assume the GNU/Linux dynamic linker is in use.
  10443. dynamic_linker='GNU/Linux ld.so'
  10444. ;;
  10445. knetbsd*-gnu)
  10446. version_type=linux
  10447. need_lib_prefix=no
  10448. need_version=no
  10449. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10450. soname_spec='${libname}${release}${shared_ext}$major'
  10451. shlibpath_var=LD_LIBRARY_PATH
  10452. shlibpath_overrides_runpath=no
  10453. hardcode_into_libs=yes
  10454. dynamic_linker='GNU ld.so'
  10455. ;;
  10456. netbsd*)
  10457. version_type=sunos
  10458. need_lib_prefix=no
  10459. need_version=no
  10460. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10462. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10463. dynamic_linker='NetBSD (a.out) ld.so'
  10464. else
  10465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10466. soname_spec='${libname}${release}${shared_ext}$major'
  10467. dynamic_linker='NetBSD ld.elf_so'
  10468. fi
  10469. shlibpath_var=LD_LIBRARY_PATH
  10470. shlibpath_overrides_runpath=yes
  10471. hardcode_into_libs=yes
  10472. ;;
  10473. newsos6)
  10474. version_type=linux
  10475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10476. shlibpath_var=LD_LIBRARY_PATH
  10477. shlibpath_overrides_runpath=yes
  10478. ;;
  10479. nto-qnx*)
  10480. version_type=linux
  10481. need_lib_prefix=no
  10482. need_version=no
  10483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10484. soname_spec='${libname}${release}${shared_ext}$major'
  10485. shlibpath_var=LD_LIBRARY_PATH
  10486. shlibpath_overrides_runpath=yes
  10487. ;;
  10488. openbsd*)
  10489. version_type=sunos
  10490. sys_lib_dlsearch_path_spec="/usr/lib"
  10491. need_lib_prefix=no
  10492. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10493. case $host_os in
  10494. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10495. *) need_version=no ;;
  10496. esac
  10497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10498. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10499. shlibpath_var=LD_LIBRARY_PATH
  10500. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10501. case $host_os in
  10502. openbsd2.[89] | openbsd2.[89].*)
  10503. shlibpath_overrides_runpath=no
  10504. ;;
  10505. *)
  10506. shlibpath_overrides_runpath=yes
  10507. ;;
  10508. esac
  10509. else
  10510. shlibpath_overrides_runpath=yes
  10511. fi
  10512. ;;
  10513. os2*)
  10514. libname_spec='$name'
  10515. shrext_cmds=".dll"
  10516. need_lib_prefix=no
  10517. library_names_spec='$libname${shared_ext} $libname.a'
  10518. dynamic_linker='OS/2 ld.exe'
  10519. shlibpath_var=LIBPATH
  10520. ;;
  10521. osf3* | osf4* | osf5*)
  10522. version_type=osf
  10523. need_lib_prefix=no
  10524. need_version=no
  10525. soname_spec='${libname}${release}${shared_ext}$major'
  10526. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10527. shlibpath_var=LD_LIBRARY_PATH
  10528. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10529. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10530. ;;
  10531. solaris*)
  10532. version_type=linux
  10533. need_lib_prefix=no
  10534. need_version=no
  10535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10536. soname_spec='${libname}${release}${shared_ext}$major'
  10537. shlibpath_var=LD_LIBRARY_PATH
  10538. shlibpath_overrides_runpath=yes
  10539. hardcode_into_libs=yes
  10540. # ldd complains unless libraries are executable
  10541. postinstall_cmds='chmod +x $lib'
  10542. ;;
  10543. sunos4*)
  10544. version_type=sunos
  10545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10546. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10547. shlibpath_var=LD_LIBRARY_PATH
  10548. shlibpath_overrides_runpath=yes
  10549. if test "$with_gnu_ld" = yes; then
  10550. need_lib_prefix=no
  10551. fi
  10552. need_version=yes
  10553. ;;
  10554. sysv4 | sysv4.3*)
  10555. version_type=linux
  10556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10557. soname_spec='${libname}${release}${shared_ext}$major'
  10558. shlibpath_var=LD_LIBRARY_PATH
  10559. case $host_vendor in
  10560. sni)
  10561. shlibpath_overrides_runpath=no
  10562. need_lib_prefix=no
  10563. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10564. runpath_var=LD_RUN_PATH
  10565. ;;
  10566. siemens)
  10567. need_lib_prefix=no
  10568. ;;
  10569. motorola)
  10570. need_lib_prefix=no
  10571. need_version=no
  10572. shlibpath_overrides_runpath=no
  10573. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10574. ;;
  10575. esac
  10576. ;;
  10577. sysv4*MP*)
  10578. if test -d /usr/nec ;then
  10579. version_type=linux
  10580. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10581. soname_spec='$libname${shared_ext}.$major'
  10582. shlibpath_var=LD_LIBRARY_PATH
  10583. fi
  10584. ;;
  10585. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10586. version_type=freebsd-elf
  10587. need_lib_prefix=no
  10588. need_version=no
  10589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10590. soname_spec='${libname}${release}${shared_ext}$major'
  10591. shlibpath_var=LD_LIBRARY_PATH
  10592. hardcode_into_libs=yes
  10593. if test "$with_gnu_ld" = yes; then
  10594. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10595. shlibpath_overrides_runpath=no
  10596. else
  10597. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10598. shlibpath_overrides_runpath=yes
  10599. case $host_os in
  10600. sco3.2v5*)
  10601. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10602. ;;
  10603. esac
  10604. fi
  10605. sys_lib_dlsearch_path_spec='/usr/lib'
  10606. ;;
  10607. uts4*)
  10608. version_type=linux
  10609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10610. soname_spec='${libname}${release}${shared_ext}$major'
  10611. shlibpath_var=LD_LIBRARY_PATH
  10612. ;;
  10613. *)
  10614. dynamic_linker=no
  10615. ;;
  10616. esac
  10617. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10618. echo "${ECHO_T}$dynamic_linker" >&6
  10619. test "$dynamic_linker" = no && can_build_shared=no
  10620. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10621. if test "$GCC" = yes; then
  10622. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10623. fi
  10624. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10625. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  10626. hardcode_action_CXX=
  10627. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  10628. test -n "$runpath_var_CXX" || \
  10629. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  10630. # We can hardcode non-existant directories.
  10631. if test "$hardcode_direct_CXX" != no &&
  10632. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10633. # have to relink, otherwise we might link with an installed library
  10634. # when we should be linking with a yet-to-be-installed one
  10635. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  10636. test "$hardcode_minus_L_CXX" != no; then
  10637. # Linking always hardcodes the temporary library directory.
  10638. hardcode_action_CXX=relink
  10639. else
  10640. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10641. hardcode_action_CXX=immediate
  10642. fi
  10643. else
  10644. # We cannot hardcode anything, or else we can only hardcode existing
  10645. # directories.
  10646. hardcode_action_CXX=unsupported
  10647. fi
  10648. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  10649. echo "${ECHO_T}$hardcode_action_CXX" >&6
  10650. if test "$hardcode_action_CXX" = relink; then
  10651. # Fast installation is not supported
  10652. enable_fast_install=no
  10653. elif test "$shlibpath_overrides_runpath" = yes ||
  10654. test "$enable_shared" = no; then
  10655. # Fast installation is not necessary
  10656. enable_fast_install=needless
  10657. fi
  10658. # The else clause should only fire when bootstrapping the
  10659. # libtool distribution, otherwise you forgot to ship ltmain.sh
  10660. # with your package, and you will get complaints that there are
  10661. # no rules to generate ltmain.sh.
  10662. if test -f "$ltmain"; then
  10663. # See if we are running on zsh, and set the options which allow our commands through
  10664. # without removal of \ escapes.
  10665. if test -n "${ZSH_VERSION+set}" ; then
  10666. setopt NO_GLOB_SUBST
  10667. fi
  10668. # Now quote all the things that may contain metacharacters while being
  10669. # careful not to overquote the AC_SUBSTed values. We take copies of the
  10670. # variables and quote the copies for generation of the libtool script.
  10671. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  10672. SED SHELL STRIP \
  10673. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  10674. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  10675. deplibs_check_method reload_flag reload_cmds need_locks \
  10676. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  10677. lt_cv_sys_global_symbol_to_c_name_address \
  10678. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10679. old_postinstall_cmds old_postuninstall_cmds \
  10680. compiler_CXX \
  10681. CC_CXX \
  10682. LD_CXX \
  10683. lt_prog_compiler_wl_CXX \
  10684. lt_prog_compiler_pic_CXX \
  10685. lt_prog_compiler_static_CXX \
  10686. lt_prog_compiler_no_builtin_flag_CXX \
  10687. export_dynamic_flag_spec_CXX \
  10688. thread_safe_flag_spec_CXX \
  10689. whole_archive_flag_spec_CXX \
  10690. enable_shared_with_static_runtimes_CXX \
  10691. old_archive_cmds_CXX \
  10692. old_archive_from_new_cmds_CXX \
  10693. predep_objects_CXX \
  10694. postdep_objects_CXX \
  10695. predeps_CXX \
  10696. postdeps_CXX \
  10697. compiler_lib_search_path_CXX \
  10698. archive_cmds_CXX \
  10699. archive_expsym_cmds_CXX \
  10700. postinstall_cmds_CXX \
  10701. postuninstall_cmds_CXX \
  10702. old_archive_from_expsyms_cmds_CXX \
  10703. allow_undefined_flag_CXX \
  10704. no_undefined_flag_CXX \
  10705. export_symbols_cmds_CXX \
  10706. hardcode_libdir_flag_spec_CXX \
  10707. hardcode_libdir_flag_spec_ld_CXX \
  10708. hardcode_libdir_separator_CXX \
  10709. hardcode_automatic_CXX \
  10710. module_cmds_CXX \
  10711. module_expsym_cmds_CXX \
  10712. lt_cv_prog_compiler_c_o_CXX \
  10713. exclude_expsyms_CXX \
  10714. include_expsyms_CXX; do
  10715. case $var in
  10716. old_archive_cmds_CXX | \
  10717. old_archive_from_new_cmds_CXX | \
  10718. archive_cmds_CXX | \
  10719. archive_expsym_cmds_CXX | \
  10720. module_cmds_CXX | \
  10721. module_expsym_cmds_CXX | \
  10722. old_archive_from_expsyms_cmds_CXX | \
  10723. export_symbols_cmds_CXX | \
  10724. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  10725. postinstall_cmds | postuninstall_cmds | \
  10726. old_postinstall_cmds | old_postuninstall_cmds | \
  10727. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  10728. # Double-quote double-evaled strings.
  10729. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  10730. ;;
  10731. *)
  10732. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  10733. ;;
  10734. esac
  10735. done
  10736. case $lt_echo in
  10737. *'\$0 --fallback-echo"')
  10738. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  10739. ;;
  10740. esac
  10741. cfgfile="$ofile"
  10742. cat <<__EOF__ >> "$cfgfile"
  10743. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  10744. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10745. # Shell to use when invoking shell scripts.
  10746. SHELL=$lt_SHELL
  10747. # Whether or not to build shared libraries.
  10748. build_libtool_libs=$enable_shared
  10749. # Whether or not to build static libraries.
  10750. build_old_libs=$enable_static
  10751. # Whether or not to add -lc for building shared libraries.
  10752. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  10753. # Whether or not to disallow shared libs when runtime libs are static
  10754. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  10755. # Whether or not to optimize for fast installation.
  10756. fast_install=$enable_fast_install
  10757. # The host system.
  10758. host_alias=$host_alias
  10759. host=$host
  10760. host_os=$host_os
  10761. # The build system.
  10762. build_alias=$build_alias
  10763. build=$build
  10764. build_os=$build_os
  10765. # An echo program that does not interpret backslashes.
  10766. echo=$lt_echo
  10767. # The archiver.
  10768. AR=$lt_AR
  10769. AR_FLAGS=$lt_AR_FLAGS
  10770. # A C compiler.
  10771. LTCC=$lt_LTCC
  10772. # LTCC compiler flags.
  10773. LTCFLAGS=$lt_LTCFLAGS
  10774. # A language-specific compiler.
  10775. CC=$lt_compiler_CXX
  10776. # Is the compiler the GNU C compiler?
  10777. with_gcc=$GCC_CXX
  10778. # An ERE matcher.
  10779. EGREP=$lt_EGREP
  10780. # The linker used to build libraries.
  10781. LD=$lt_LD_CXX
  10782. # Whether we need hard or soft links.
  10783. LN_S=$lt_LN_S
  10784. # A BSD-compatible nm program.
  10785. NM=$lt_NM
  10786. # A symbol stripping program
  10787. STRIP=$lt_STRIP
  10788. # Used to examine libraries when file_magic_cmd begins "file"
  10789. MAGIC_CMD=$MAGIC_CMD
  10790. # Used on cygwin: DLL creation program.
  10791. DLLTOOL="$DLLTOOL"
  10792. # Used on cygwin: object dumper.
  10793. OBJDUMP="$OBJDUMP"
  10794. # Used on cygwin: assembler.
  10795. AS="$AS"
  10796. # The name of the directory that contains temporary libtool files.
  10797. objdir=$objdir
  10798. # How to create reloadable object files.
  10799. reload_flag=$lt_reload_flag
  10800. reload_cmds=$lt_reload_cmds
  10801. # How to pass a linker flag through the compiler.
  10802. wl=$lt_lt_prog_compiler_wl_CXX
  10803. # Object file suffix (normally "o").
  10804. objext="$ac_objext"
  10805. # Old archive suffix (normally "a").
  10806. libext="$libext"
  10807. # Shared library suffix (normally ".so").
  10808. shrext_cmds='$shrext_cmds'
  10809. # Executable file suffix (normally "").
  10810. exeext="$exeext"
  10811. # Additional compiler flags for building library objects.
  10812. pic_flag=$lt_lt_prog_compiler_pic_CXX
  10813. pic_mode=$pic_mode
  10814. # What is the maximum length of a command?
  10815. max_cmd_len=$lt_cv_sys_max_cmd_len
  10816. # Does compiler simultaneously support -c and -o options?
  10817. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  10818. # Must we lock files when doing compilation?
  10819. need_locks=$lt_need_locks
  10820. # Do we need the lib prefix for modules?
  10821. need_lib_prefix=$need_lib_prefix
  10822. # Do we need a version for libraries?
  10823. need_version=$need_version
  10824. # Whether dlopen is supported.
  10825. dlopen_support=$enable_dlopen
  10826. # Whether dlopen of programs is supported.
  10827. dlopen_self=$enable_dlopen_self
  10828. # Whether dlopen of statically linked programs is supported.
  10829. dlopen_self_static=$enable_dlopen_self_static
  10830. # Compiler flag to prevent dynamic linking.
  10831. link_static_flag=$lt_lt_prog_compiler_static_CXX
  10832. # Compiler flag to turn off builtin functions.
  10833. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  10834. # Compiler flag to allow reflexive dlopens.
  10835. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  10836. # Compiler flag to generate shared objects directly from archives.
  10837. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  10838. # Compiler flag to generate thread-safe objects.
  10839. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  10840. # Library versioning type.
  10841. version_type=$version_type
  10842. # Format of library name prefix.
  10843. libname_spec=$lt_libname_spec
  10844. # List of archive names. First name is the real one, the rest are links.
  10845. # The last name is the one that the linker finds with -lNAME.
  10846. library_names_spec=$lt_library_names_spec
  10847. # The coded name of the library, if different from the real name.
  10848. soname_spec=$lt_soname_spec
  10849. # Commands used to build and install an old-style archive.
  10850. RANLIB=$lt_RANLIB
  10851. old_archive_cmds=$lt_old_archive_cmds_CXX
  10852. old_postinstall_cmds=$lt_old_postinstall_cmds
  10853. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10854. # Create an old-style archive from a shared archive.
  10855. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  10856. # Create a temporary old-style archive to link instead of a shared archive.
  10857. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  10858. # Commands used to build and install a shared archive.
  10859. archive_cmds=$lt_archive_cmds_CXX
  10860. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  10861. postinstall_cmds=$lt_postinstall_cmds
  10862. postuninstall_cmds=$lt_postuninstall_cmds
  10863. # Commands used to build a loadable module (assumed same as above if empty)
  10864. module_cmds=$lt_module_cmds_CXX
  10865. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  10866. # Commands to strip libraries.
  10867. old_striplib=$lt_old_striplib
  10868. striplib=$lt_striplib
  10869. # Dependencies to place before the objects being linked to create a
  10870. # shared library.
  10871. predep_objects=$lt_predep_objects_CXX
  10872. # Dependencies to place after the objects being linked to create a
  10873. # shared library.
  10874. postdep_objects=$lt_postdep_objects_CXX
  10875. # Dependencies to place before the objects being linked to create a
  10876. # shared library.
  10877. predeps=$lt_predeps_CXX
  10878. # Dependencies to place after the objects being linked to create a
  10879. # shared library.
  10880. postdeps=$lt_postdeps_CXX
  10881. # The library search path used internally by the compiler when linking
  10882. # a shared library.
  10883. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  10884. # Method to check whether dependent libraries are shared objects.
  10885. deplibs_check_method=$lt_deplibs_check_method
  10886. # Command to use when deplibs_check_method == file_magic.
  10887. file_magic_cmd=$lt_file_magic_cmd
  10888. # Flag that allows shared libraries with undefined symbols to be built.
  10889. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  10890. # Flag that forces no undefined symbols.
  10891. no_undefined_flag=$lt_no_undefined_flag_CXX
  10892. # Commands used to finish a libtool library installation in a directory.
  10893. finish_cmds=$lt_finish_cmds
  10894. # Same as above, but a single script fragment to be evaled but not shown.
  10895. finish_eval=$lt_finish_eval
  10896. # Take the output of nm and produce a listing of raw symbols and C names.
  10897. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  10898. # Transform the output of nm in a proper C declaration
  10899. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  10900. # Transform the output of nm in a C name address pair
  10901. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  10902. # This is the shared library runtime path variable.
  10903. runpath_var=$runpath_var
  10904. # This is the shared library path variable.
  10905. shlibpath_var=$shlibpath_var
  10906. # Is shlibpath searched before the hard-coded library search path?
  10907. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  10908. # How to hardcode a shared library path into an executable.
  10909. hardcode_action=$hardcode_action_CXX
  10910. # Whether we should hardcode library paths into libraries.
  10911. hardcode_into_libs=$hardcode_into_libs
  10912. # Flag to hardcode \$libdir into a binary during linking.
  10913. # This must work even if \$libdir does not exist.
  10914. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  10915. # If ld is used when linking, flag to hardcode \$libdir into
  10916. # a binary during linking. This must work even if \$libdir does
  10917. # not exist.
  10918. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  10919. # Whether we need a single -rpath flag with a separated argument.
  10920. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  10921. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  10922. # resulting binary.
  10923. hardcode_direct=$hardcode_direct_CXX
  10924. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  10925. # resulting binary.
  10926. hardcode_minus_L=$hardcode_minus_L_CXX
  10927. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  10928. # the resulting binary.
  10929. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  10930. # Set to yes if building a shared library automatically hardcodes DIR into the library
  10931. # and all subsequent libraries and executables linked against it.
  10932. hardcode_automatic=$hardcode_automatic_CXX
  10933. # Variables whose values should be saved in libtool wrapper scripts and
  10934. # restored at relink time.
  10935. variables_saved_for_relink="$variables_saved_for_relink"
  10936. # Whether libtool must link a program against all its dependency libraries.
  10937. link_all_deplibs=$link_all_deplibs_CXX
  10938. # Compile-time system search path for libraries
  10939. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10940. # Run-time system search path for libraries
  10941. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10942. # Fix the shell variable \$srcfile for the compiler.
  10943. fix_srcfile_path="$fix_srcfile_path_CXX"
  10944. # Set to yes if exported symbols are required.
  10945. always_export_symbols=$always_export_symbols_CXX
  10946. # The commands to list exported symbols.
  10947. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  10948. # The commands to extract the exported symbol list from a shared archive.
  10949. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10950. # Symbols that should not be listed in the preloaded symbols.
  10951. exclude_expsyms=$lt_exclude_expsyms_CXX
  10952. # Symbols that must always be exported.
  10953. include_expsyms=$lt_include_expsyms_CXX
  10954. # ### END LIBTOOL TAG CONFIG: $tagname
  10955. __EOF__
  10956. else
  10957. # If there is no Makefile yet, we rely on a make rule to execute
  10958. # `config.status --recheck' to rerun these tests and create the
  10959. # libtool script then.
  10960. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  10961. if test -f "$ltmain_in"; then
  10962. test -f Makefile && make "$ltmain"
  10963. fi
  10964. fi
  10965. ac_ext=c
  10966. ac_cpp='$CPP $CPPFLAGS'
  10967. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10968. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10970. CC=$lt_save_CC
  10971. LDCXX=$LD
  10972. LD=$lt_save_LD
  10973. GCC=$lt_save_GCC
  10974. with_gnu_ldcxx=$with_gnu_ld
  10975. with_gnu_ld=$lt_save_with_gnu_ld
  10976. lt_cv_path_LDCXX=$lt_cv_path_LD
  10977. lt_cv_path_LD=$lt_save_path_LD
  10978. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10979. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10980. else
  10981. tagname=""
  10982. fi
  10983. ;;
  10984. F77)
  10985. if test -n "$F77" && test "X$F77" != "Xno"; then
  10986. ac_ext=f
  10987. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  10988. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10989. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  10990. archive_cmds_need_lc_F77=no
  10991. allow_undefined_flag_F77=
  10992. always_export_symbols_F77=no
  10993. archive_expsym_cmds_F77=
  10994. export_dynamic_flag_spec_F77=
  10995. hardcode_direct_F77=no
  10996. hardcode_libdir_flag_spec_F77=
  10997. hardcode_libdir_flag_spec_ld_F77=
  10998. hardcode_libdir_separator_F77=
  10999. hardcode_minus_L_F77=no
  11000. hardcode_automatic_F77=no
  11001. module_cmds_F77=
  11002. module_expsym_cmds_F77=
  11003. link_all_deplibs_F77=unknown
  11004. old_archive_cmds_F77=$old_archive_cmds
  11005. no_undefined_flag_F77=
  11006. whole_archive_flag_spec_F77=
  11007. enable_shared_with_static_runtimes_F77=no
  11008. # Source file extension for f77 test sources.
  11009. ac_ext=f
  11010. # Object file extension for compiled f77 test sources.
  11011. objext=o
  11012. objext_F77=$objext
  11013. # Code to be used in simple compile tests
  11014. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11015. # Code to be used in simple link tests
  11016. lt_simple_link_test_code=" program t\n end\n"
  11017. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11018. # If no C compiler was specified, use CC.
  11019. LTCC=${LTCC-"$CC"}
  11020. # If no C compiler flags were specified, use CFLAGS.
  11021. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11022. # Allow CC to be a program name with arguments.
  11023. compiler=$CC
  11024. # save warnings/boilerplate of simple test code
  11025. ac_outfile=conftest.$ac_objext
  11026. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11027. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11028. _lt_compiler_boilerplate=`cat conftest.err`
  11029. $rm conftest*
  11030. ac_outfile=conftest.$ac_objext
  11031. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11032. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11033. _lt_linker_boilerplate=`cat conftest.err`
  11034. $rm conftest*
  11035. # Allow CC to be a program name with arguments.
  11036. lt_save_CC="$CC"
  11037. CC=${F77-"f77"}
  11038. compiler=$CC
  11039. compiler_F77=$CC
  11040. for cc_temp in $compiler""; do
  11041. case $cc_temp in
  11042. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11043. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11044. \-*) ;;
  11045. *) break;;
  11046. esac
  11047. done
  11048. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11049. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11050. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11051. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11052. echo "${ECHO_T}$can_build_shared" >&6
  11053. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11054. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11055. test "$can_build_shared" = "no" && enable_shared=no
  11056. # On AIX, shared libraries and static libraries use the same namespace, and
  11057. # are all built from PIC.
  11058. case $host_os in
  11059. aix3*)
  11060. test "$enable_shared" = yes && enable_static=no
  11061. if test -n "$RANLIB"; then
  11062. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11063. postinstall_cmds='$RANLIB $lib'
  11064. fi
  11065. ;;
  11066. aix4* | aix5*)
  11067. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11068. test "$enable_shared" = yes && enable_static=no
  11069. fi
  11070. ;;
  11071. esac
  11072. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11073. echo "${ECHO_T}$enable_shared" >&6
  11074. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11075. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11076. # Make sure either enable_shared or enable_static is yes.
  11077. test "$enable_shared" = yes || enable_static=yes
  11078. echo "$as_me:$LINENO: result: $enable_static" >&5
  11079. echo "${ECHO_T}$enable_static" >&6
  11080. GCC_F77="$G77"
  11081. LD_F77="$LD"
  11082. lt_prog_compiler_wl_F77=
  11083. lt_prog_compiler_pic_F77=
  11084. lt_prog_compiler_static_F77=
  11085. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11086. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11087. if test "$GCC" = yes; then
  11088. lt_prog_compiler_wl_F77='-Wl,'
  11089. lt_prog_compiler_static_F77='-static'
  11090. case $host_os in
  11091. aix*)
  11092. # All AIX code is PIC.
  11093. if test "$host_cpu" = ia64; then
  11094. # AIX 5 now supports IA64 processor
  11095. lt_prog_compiler_static_F77='-Bstatic'
  11096. fi
  11097. ;;
  11098. amigaos*)
  11099. # FIXME: we need at least 68020 code to build shared libraries, but
  11100. # adding the `-m68020' flag to GCC prevents building anything better,
  11101. # like `-m68040'.
  11102. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11103. ;;
  11104. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11105. # PIC is the default for these OSes.
  11106. ;;
  11107. mingw* | pw32* | os2*)
  11108. # This hack is so that the source file can tell whether it is being
  11109. # built for inclusion in a dll (and should export symbols for example).
  11110. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11111. ;;
  11112. darwin* | rhapsody*)
  11113. # PIC is the default on this platform
  11114. # Common symbols not allowed in MH_DYLIB files
  11115. lt_prog_compiler_pic_F77='-fno-common'
  11116. ;;
  11117. interix3*)
  11118. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11119. # Instead, we relocate shared libraries at runtime.
  11120. ;;
  11121. msdosdjgpp*)
  11122. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11123. # on systems that don't support them.
  11124. lt_prog_compiler_can_build_shared_F77=no
  11125. enable_shared=no
  11126. ;;
  11127. sysv4*MP*)
  11128. if test -d /usr/nec; then
  11129. lt_prog_compiler_pic_F77=-Kconform_pic
  11130. fi
  11131. ;;
  11132. hpux*)
  11133. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11134. # not for PA HP-UX.
  11135. case $host_cpu in
  11136. hppa*64*|ia64*)
  11137. # +Z the default
  11138. ;;
  11139. *)
  11140. lt_prog_compiler_pic_F77='-fPIC'
  11141. ;;
  11142. esac
  11143. ;;
  11144. *)
  11145. lt_prog_compiler_pic_F77='-fPIC'
  11146. ;;
  11147. esac
  11148. else
  11149. # PORTME Check for flag to pass linker flags through the system compiler.
  11150. case $host_os in
  11151. aix*)
  11152. lt_prog_compiler_wl_F77='-Wl,'
  11153. if test "$host_cpu" = ia64; then
  11154. # AIX 5 now supports IA64 processor
  11155. lt_prog_compiler_static_F77='-Bstatic'
  11156. else
  11157. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11158. fi
  11159. ;;
  11160. darwin*)
  11161. # PIC is the default on this platform
  11162. # Common symbols not allowed in MH_DYLIB files
  11163. case $cc_basename in
  11164. xlc*)
  11165. lt_prog_compiler_pic_F77='-qnocommon'
  11166. lt_prog_compiler_wl_F77='-Wl,'
  11167. ;;
  11168. esac
  11169. ;;
  11170. mingw* | pw32* | os2*)
  11171. # This hack is so that the source file can tell whether it is being
  11172. # built for inclusion in a dll (and should export symbols for example).
  11173. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11174. ;;
  11175. hpux9* | hpux10* | hpux11*)
  11176. lt_prog_compiler_wl_F77='-Wl,'
  11177. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11178. # not for PA HP-UX.
  11179. case $host_cpu in
  11180. hppa*64*|ia64*)
  11181. # +Z the default
  11182. ;;
  11183. *)
  11184. lt_prog_compiler_pic_F77='+Z'
  11185. ;;
  11186. esac
  11187. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11188. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11189. ;;
  11190. irix5* | irix6* | nonstopux*)
  11191. lt_prog_compiler_wl_F77='-Wl,'
  11192. # PIC (with -KPIC) is the default.
  11193. lt_prog_compiler_static_F77='-non_shared'
  11194. ;;
  11195. newsos6)
  11196. lt_prog_compiler_pic_F77='-KPIC'
  11197. lt_prog_compiler_static_F77='-Bstatic'
  11198. ;;
  11199. linux*)
  11200. case $cc_basename in
  11201. icc* | ecc*)
  11202. lt_prog_compiler_wl_F77='-Wl,'
  11203. lt_prog_compiler_pic_F77='-KPIC'
  11204. lt_prog_compiler_static_F77='-static'
  11205. ;;
  11206. pgcc* | pgf77* | pgf90* | pgf95*)
  11207. # Portland Group compilers (*not* the Pentium gcc compiler,
  11208. # which looks to be a dead project)
  11209. lt_prog_compiler_wl_F77='-Wl,'
  11210. lt_prog_compiler_pic_F77='-fpic'
  11211. lt_prog_compiler_static_F77='-Bstatic'
  11212. ;;
  11213. ccc*)
  11214. lt_prog_compiler_wl_F77='-Wl,'
  11215. # All Alpha code is PIC.
  11216. lt_prog_compiler_static_F77='-non_shared'
  11217. ;;
  11218. esac
  11219. ;;
  11220. osf3* | osf4* | osf5*)
  11221. lt_prog_compiler_wl_F77='-Wl,'
  11222. # All OSF/1 code is PIC.
  11223. lt_prog_compiler_static_F77='-non_shared'
  11224. ;;
  11225. solaris*)
  11226. lt_prog_compiler_pic_F77='-KPIC'
  11227. lt_prog_compiler_static_F77='-Bstatic'
  11228. case $cc_basename in
  11229. f77* | f90* | f95*)
  11230. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11231. *)
  11232. lt_prog_compiler_wl_F77='-Wl,';;
  11233. esac
  11234. ;;
  11235. sunos4*)
  11236. lt_prog_compiler_wl_F77='-Qoption ld '
  11237. lt_prog_compiler_pic_F77='-PIC'
  11238. lt_prog_compiler_static_F77='-Bstatic'
  11239. ;;
  11240. sysv4 | sysv4.2uw2* | sysv4.3*)
  11241. lt_prog_compiler_wl_F77='-Wl,'
  11242. lt_prog_compiler_pic_F77='-KPIC'
  11243. lt_prog_compiler_static_F77='-Bstatic'
  11244. ;;
  11245. sysv4*MP*)
  11246. if test -d /usr/nec ;then
  11247. lt_prog_compiler_pic_F77='-Kconform_pic'
  11248. lt_prog_compiler_static_F77='-Bstatic'
  11249. fi
  11250. ;;
  11251. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11252. lt_prog_compiler_wl_F77='-Wl,'
  11253. lt_prog_compiler_pic_F77='-KPIC'
  11254. lt_prog_compiler_static_F77='-Bstatic'
  11255. ;;
  11256. unicos*)
  11257. lt_prog_compiler_wl_F77='-Wl,'
  11258. lt_prog_compiler_can_build_shared_F77=no
  11259. ;;
  11260. uts4*)
  11261. lt_prog_compiler_pic_F77='-pic'
  11262. lt_prog_compiler_static_F77='-Bstatic'
  11263. ;;
  11264. *)
  11265. lt_prog_compiler_can_build_shared_F77=no
  11266. ;;
  11267. esac
  11268. fi
  11269. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11270. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  11271. #
  11272. # Check to make sure the PIC flag actually works.
  11273. #
  11274. if test -n "$lt_prog_compiler_pic_F77"; then
  11275. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11276. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  11277. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11278. echo $ECHO_N "(cached) $ECHO_C" >&6
  11279. else
  11280. lt_prog_compiler_pic_works_F77=no
  11281. ac_outfile=conftest.$ac_objext
  11282. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11283. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11284. # Insert the option either (1) after the last *FLAGS variable, or
  11285. # (2) before a word containing "conftest.", or (3) at the end.
  11286. # Note that $ac_compile itself does not contain backslashes and begins
  11287. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11288. # The option is referenced via a variable to avoid confusing sed.
  11289. lt_compile=`echo "$ac_compile" | $SED \
  11290. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11291. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11292. -e 's:$: $lt_compiler_flag:'`
  11293. (eval echo "\"\$as_me:12537: $lt_compile\"" >&5)
  11294. (eval "$lt_compile" 2>conftest.err)
  11295. ac_status=$?
  11296. cat conftest.err >&5
  11297. echo "$as_me:12541: \$? = $ac_status" >&5
  11298. if (exit $ac_status) && test -s "$ac_outfile"; then
  11299. # The compiler can only warn and ignore the option if not recognized
  11300. # So say no if there are warnings other than the usual output.
  11301. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11302. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11303. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11304. lt_prog_compiler_pic_works_F77=yes
  11305. fi
  11306. fi
  11307. $rm conftest*
  11308. fi
  11309. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  11310. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  11311. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  11312. case $lt_prog_compiler_pic_F77 in
  11313. "" | " "*) ;;
  11314. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  11315. esac
  11316. else
  11317. lt_prog_compiler_pic_F77=
  11318. lt_prog_compiler_can_build_shared_F77=no
  11319. fi
  11320. fi
  11321. case $host_os in
  11322. # For platforms which do not support PIC, -DPIC is meaningless:
  11323. *djgpp*)
  11324. lt_prog_compiler_pic_F77=
  11325. ;;
  11326. *)
  11327. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  11328. ;;
  11329. esac
  11330. #
  11331. # Check to make sure the static flag actually works.
  11332. #
  11333. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  11334. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11335. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  11336. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  11337. echo $ECHO_N "(cached) $ECHO_C" >&6
  11338. else
  11339. lt_prog_compiler_static_works_F77=no
  11340. save_LDFLAGS="$LDFLAGS"
  11341. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11342. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  11343. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11344. # The linker can only warn and ignore the option if not recognized
  11345. # So say no if there are warnings
  11346. if test -s conftest.err; then
  11347. # Append any errors to the config.log.
  11348. cat conftest.err 1>&5
  11349. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11350. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11351. if diff conftest.exp conftest.er2 >/dev/null; then
  11352. lt_prog_compiler_static_works_F77=yes
  11353. fi
  11354. else
  11355. lt_prog_compiler_static_works_F77=yes
  11356. fi
  11357. fi
  11358. $rm conftest*
  11359. LDFLAGS="$save_LDFLAGS"
  11360. fi
  11361. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  11362. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  11363. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  11364. :
  11365. else
  11366. lt_prog_compiler_static_F77=
  11367. fi
  11368. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11369. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  11370. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  11371. echo $ECHO_N "(cached) $ECHO_C" >&6
  11372. else
  11373. lt_cv_prog_compiler_c_o_F77=no
  11374. $rm -r conftest 2>/dev/null
  11375. mkdir conftest
  11376. cd conftest
  11377. mkdir out
  11378. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11379. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11380. # Insert the option either (1) after the last *FLAGS variable, or
  11381. # (2) before a word containing "conftest.", or (3) at the end.
  11382. # Note that $ac_compile itself does not contain backslashes and begins
  11383. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11384. lt_compile=`echo "$ac_compile" | $SED \
  11385. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11386. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11387. -e 's:$: $lt_compiler_flag:'`
  11388. (eval echo "\"\$as_me:12641: $lt_compile\"" >&5)
  11389. (eval "$lt_compile" 2>out/conftest.err)
  11390. ac_status=$?
  11391. cat out/conftest.err >&5
  11392. echo "$as_me:12645: \$? = $ac_status" >&5
  11393. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11394. then
  11395. # The compiler can only warn and ignore the option if not recognized
  11396. # So say no if there are warnings
  11397. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11398. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11399. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11400. lt_cv_prog_compiler_c_o_F77=yes
  11401. fi
  11402. fi
  11403. chmod u+w . 2>&5
  11404. $rm conftest*
  11405. # SGI C++ compiler will create directory out/ii_files/ for
  11406. # template instantiation
  11407. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11408. $rm out/* && rmdir out
  11409. cd ..
  11410. rmdir conftest
  11411. $rm conftest*
  11412. fi
  11413. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  11414. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  11415. hard_links="nottested"
  11416. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  11417. # do not overwrite the value of need_locks provided by the user
  11418. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11419. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  11420. hard_links=yes
  11421. $rm conftest*
  11422. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11423. touch conftest.a
  11424. ln conftest.a conftest.b 2>&5 || hard_links=no
  11425. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11426. echo "$as_me:$LINENO: result: $hard_links" >&5
  11427. echo "${ECHO_T}$hard_links" >&6
  11428. if test "$hard_links" = no; then
  11429. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11430. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11431. need_locks=warn
  11432. fi
  11433. else
  11434. need_locks=no
  11435. fi
  11436. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11437. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  11438. runpath_var=
  11439. allow_undefined_flag_F77=
  11440. enable_shared_with_static_runtimes_F77=no
  11441. archive_cmds_F77=
  11442. archive_expsym_cmds_F77=
  11443. old_archive_From_new_cmds_F77=
  11444. old_archive_from_expsyms_cmds_F77=
  11445. export_dynamic_flag_spec_F77=
  11446. whole_archive_flag_spec_F77=
  11447. thread_safe_flag_spec_F77=
  11448. hardcode_libdir_flag_spec_F77=
  11449. hardcode_libdir_flag_spec_ld_F77=
  11450. hardcode_libdir_separator_F77=
  11451. hardcode_direct_F77=no
  11452. hardcode_minus_L_F77=no
  11453. hardcode_shlibpath_var_F77=unsupported
  11454. link_all_deplibs_F77=unknown
  11455. hardcode_automatic_F77=no
  11456. module_cmds_F77=
  11457. module_expsym_cmds_F77=
  11458. always_export_symbols_F77=no
  11459. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11460. # include_expsyms should be a list of space-separated symbols to be *always*
  11461. # included in the symbol list
  11462. include_expsyms_F77=
  11463. # exclude_expsyms can be an extended regexp of symbols to exclude
  11464. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11465. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11466. # as well as any symbol that contains `d'.
  11467. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  11468. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11469. # platforms (ab)use it in PIC code, but their linkers get confused if
  11470. # the symbol is explicitly referenced. Since portable code cannot
  11471. # rely on this symbol name, it's probably fine to never include it in
  11472. # preloaded symbol tables.
  11473. extract_expsyms_cmds=
  11474. # Just being paranoid about ensuring that cc_basename is set.
  11475. for cc_temp in $compiler""; do
  11476. case $cc_temp in
  11477. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11478. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11479. \-*) ;;
  11480. *) break;;
  11481. esac
  11482. done
  11483. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11484. case $host_os in
  11485. cygwin* | mingw* | pw32*)
  11486. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11487. # When not using gcc, we currently assume that we are using
  11488. # Microsoft Visual C++.
  11489. if test "$GCC" != yes; then
  11490. with_gnu_ld=no
  11491. fi
  11492. ;;
  11493. interix*)
  11494. # we just hope/assume this is gcc and not c89 (= MSVC++)
  11495. with_gnu_ld=yes
  11496. ;;
  11497. openbsd*)
  11498. with_gnu_ld=no
  11499. ;;
  11500. esac
  11501. ld_shlibs_F77=yes
  11502. if test "$with_gnu_ld" = yes; then
  11503. # If archive_cmds runs LD, not CC, wlarc should be empty
  11504. wlarc='${wl}'
  11505. # Set some defaults for GNU ld with shared library support. These
  11506. # are reset later if shared libraries are not supported. Putting them
  11507. # here allows them to be overridden if necessary.
  11508. runpath_var=LD_RUN_PATH
  11509. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  11510. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  11511. # ancient GNU ld didn't support --whole-archive et. al.
  11512. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11513. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11514. else
  11515. whole_archive_flag_spec_F77=
  11516. fi
  11517. supports_anon_versioning=no
  11518. case `$LD -v 2>/dev/null` in
  11519. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11520. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11521. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11522. *\ 2.11.*) ;; # other 2.11 versions
  11523. *) supports_anon_versioning=yes ;;
  11524. esac
  11525. # See if GNU ld supports shared libraries.
  11526. case $host_os in
  11527. aix3* | aix4* | aix5*)
  11528. # On AIX/PPC, the GNU linker is very broken
  11529. if test "$host_cpu" != ia64; then
  11530. ld_shlibs_F77=no
  11531. cat <<EOF 1>&2
  11532. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11533. *** to be unable to reliably create shared libraries on AIX.
  11534. *** Therefore, libtool is disabling shared libraries support. If you
  11535. *** really care for shared libraries, you may want to modify your PATH
  11536. *** so that a non-GNU linker is found, and then restart.
  11537. EOF
  11538. fi
  11539. ;;
  11540. amigaos*)
  11541. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11542. hardcode_libdir_flag_spec_F77='-L$libdir'
  11543. hardcode_minus_L_F77=yes
  11544. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11545. # that the semantics of dynamic libraries on AmigaOS, at least up
  11546. # to version 4, is to share data among multiple programs linked
  11547. # with the same dynamic library. Since this doesn't match the
  11548. # behavior of shared libraries on other platforms, we can't use
  11549. # them.
  11550. ld_shlibs_F77=no
  11551. ;;
  11552. beos*)
  11553. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11554. allow_undefined_flag_F77=unsupported
  11555. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11556. # support --undefined. This deserves some investigation. FIXME
  11557. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11558. else
  11559. ld_shlibs_F77=no
  11560. fi
  11561. ;;
  11562. cygwin* | mingw* | pw32*)
  11563. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  11564. # as there is no search path for DLLs.
  11565. hardcode_libdir_flag_spec_F77='-L$libdir'
  11566. allow_undefined_flag_F77=unsupported
  11567. always_export_symbols_F77=no
  11568. enable_shared_with_static_runtimes_F77=yes
  11569. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  11570. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11571. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11572. # If the export-symbols file already is a .def file (1st line
  11573. # is EXPORTS), use it as is; otherwise, prepend...
  11574. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11575. cp $export_symbols $output_objdir/$soname.def;
  11576. else
  11577. echo EXPORTS > $output_objdir/$soname.def;
  11578. cat $export_symbols >> $output_objdir/$soname.def;
  11579. fi~
  11580. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11581. else
  11582. ld_shlibs_F77=no
  11583. fi
  11584. ;;
  11585. interix3*)
  11586. hardcode_direct_F77=no
  11587. hardcode_shlibpath_var_F77=no
  11588. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  11589. export_dynamic_flag_spec_F77='${wl}-E'
  11590. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11591. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11592. # default) and relocated if they conflict, which is a slow very memory
  11593. # consuming and fragmenting process. To avoid this, we pick a random,
  11594. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11595. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11596. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11597. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11598. ;;
  11599. linux*)
  11600. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11601. tmp_addflag=
  11602. case $cc_basename,$host_cpu in
  11603. pgcc*) # Portland Group C compiler
  11604. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  11605. tmp_addflag=' $pic_flag'
  11606. ;;
  11607. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  11608. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  11609. tmp_addflag=' $pic_flag -Mnomain' ;;
  11610. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11611. tmp_addflag=' -i_dynamic' ;;
  11612. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11613. tmp_addflag=' -i_dynamic -nofor_main' ;;
  11614. ifc* | ifort*) # Intel Fortran compiler
  11615. tmp_addflag=' -nofor_main' ;;
  11616. esac
  11617. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11618. if test $supports_anon_versioning = yes; then
  11619. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  11620. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11621. $echo "local: *; };" >> $output_objdir/$libname.ver~
  11622. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11623. fi
  11624. else
  11625. ld_shlibs_F77=no
  11626. fi
  11627. ;;
  11628. netbsd*)
  11629. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11630. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11631. wlarc=
  11632. else
  11633. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11634. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11635. fi
  11636. ;;
  11637. solaris*)
  11638. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11639. ld_shlibs_F77=no
  11640. cat <<EOF 1>&2
  11641. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11642. *** create shared libraries on Solaris systems. Therefore, libtool
  11643. *** is disabling shared libraries support. We urge you to upgrade GNU
  11644. *** binutils to release 2.9.1 or newer. Another option is to modify
  11645. *** your PATH or compiler configuration so that the native linker is
  11646. *** used, and then restart.
  11647. EOF
  11648. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11649. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11650. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11651. else
  11652. ld_shlibs_F77=no
  11653. fi
  11654. ;;
  11655. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11656. case `$LD -v 2>&1` in
  11657. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11658. ld_shlibs_F77=no
  11659. cat <<_LT_EOF 1>&2
  11660. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11661. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11662. *** is disabling shared libraries support. We urge you to upgrade GNU
  11663. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11664. *** your PATH or compiler configuration so that the native linker is
  11665. *** used, and then restart.
  11666. _LT_EOF
  11667. ;;
  11668. *)
  11669. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11670. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  11671. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  11672. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  11673. else
  11674. ld_shlibs_F77=no
  11675. fi
  11676. ;;
  11677. esac
  11678. ;;
  11679. sunos4*)
  11680. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11681. wlarc=
  11682. hardcode_direct_F77=yes
  11683. hardcode_shlibpath_var_F77=no
  11684. ;;
  11685. *)
  11686. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11687. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11688. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11689. else
  11690. ld_shlibs_F77=no
  11691. fi
  11692. ;;
  11693. esac
  11694. if test "$ld_shlibs_F77" = no; then
  11695. runpath_var=
  11696. hardcode_libdir_flag_spec_F77=
  11697. export_dynamic_flag_spec_F77=
  11698. whole_archive_flag_spec_F77=
  11699. fi
  11700. else
  11701. # PORTME fill in a description of your system's linker (not GNU ld)
  11702. case $host_os in
  11703. aix3*)
  11704. allow_undefined_flag_F77=unsupported
  11705. always_export_symbols_F77=yes
  11706. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  11707. # Note: this linker hardcodes the directories in LIBPATH if there
  11708. # are no directories specified by -L.
  11709. hardcode_minus_L_F77=yes
  11710. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11711. # Neither direct hardcoding nor static linking is supported with a
  11712. # broken collect2.
  11713. hardcode_direct_F77=unsupported
  11714. fi
  11715. ;;
  11716. aix4* | aix5*)
  11717. if test "$host_cpu" = ia64; then
  11718. # On IA64, the linker does run time linking by default, so we don't
  11719. # have to do anything special.
  11720. aix_use_runtimelinking=no
  11721. exp_sym_flag='-Bexport'
  11722. no_entry_flag=""
  11723. else
  11724. # If we're using GNU nm, then we don't want the "-C" option.
  11725. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11726. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11727. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11728. else
  11729. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11730. fi
  11731. aix_use_runtimelinking=no
  11732. # Test if we are trying to use run time linking or normal
  11733. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11734. # need to do runtime linking.
  11735. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  11736. for ld_flag in $LDFLAGS; do
  11737. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11738. aix_use_runtimelinking=yes
  11739. break
  11740. fi
  11741. done
  11742. ;;
  11743. esac
  11744. exp_sym_flag='-bexport'
  11745. no_entry_flag='-bnoentry'
  11746. fi
  11747. # When large executables or shared objects are built, AIX ld can
  11748. # have problems creating the table of contents. If linking a library
  11749. # or program results in "error TOC overflow" add -mminimal-toc to
  11750. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11751. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11752. archive_cmds_F77=''
  11753. hardcode_direct_F77=yes
  11754. hardcode_libdir_separator_F77=':'
  11755. link_all_deplibs_F77=yes
  11756. if test "$GCC" = yes; then
  11757. case $host_os in aix4.[012]|aix4.[012].*)
  11758. # We only want to do this on AIX 4.2 and lower, the check
  11759. # below for broken collect2 doesn't work under 4.3+
  11760. collect2name=`${CC} -print-prog-name=collect2`
  11761. if test -f "$collect2name" && \
  11762. strings "$collect2name" | grep resolve_lib_name >/dev/null
  11763. then
  11764. # We have reworked collect2
  11765. hardcode_direct_F77=yes
  11766. else
  11767. # We have old collect2
  11768. hardcode_direct_F77=unsupported
  11769. # It fails to find uninstalled libraries when the uninstalled
  11770. # path is not listed in the libpath. Setting hardcode_minus_L
  11771. # to unsupported forces relinking
  11772. hardcode_minus_L_F77=yes
  11773. hardcode_libdir_flag_spec_F77='-L$libdir'
  11774. hardcode_libdir_separator_F77=
  11775. fi
  11776. ;;
  11777. esac
  11778. shared_flag='-shared'
  11779. if test "$aix_use_runtimelinking" = yes; then
  11780. shared_flag="$shared_flag "'${wl}-G'
  11781. fi
  11782. else
  11783. # not using gcc
  11784. if test "$host_cpu" = ia64; then
  11785. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11786. # chokes on -Wl,-G. The following line is correct:
  11787. shared_flag='-G'
  11788. else
  11789. if test "$aix_use_runtimelinking" = yes; then
  11790. shared_flag='${wl}-G'
  11791. else
  11792. shared_flag='${wl}-bM:SRE'
  11793. fi
  11794. fi
  11795. fi
  11796. # It seems that -bexpall does not export symbols beginning with
  11797. # underscore (_), so it is better to generate a list of symbols to export.
  11798. always_export_symbols_F77=yes
  11799. if test "$aix_use_runtimelinking" = yes; then
  11800. # Warning - without using the other runtime loading flags (-brtl),
  11801. # -berok will link without error, but may produce a broken library.
  11802. allow_undefined_flag_F77='-berok'
  11803. # Determine the default libpath from the value encoded in an empty executable.
  11804. cat >conftest.$ac_ext <<_ACEOF
  11805. program main
  11806. end
  11807. _ACEOF
  11808. rm -f conftest.$ac_objext conftest$ac_exeext
  11809. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11810. (eval $ac_link) 2>conftest.er1
  11811. ac_status=$?
  11812. grep -v '^ *+' conftest.er1 >conftest.err
  11813. rm -f conftest.er1
  11814. cat conftest.err >&5
  11815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11816. (exit $ac_status); } &&
  11817. { ac_try='test -z "$ac_f77_werror_flag"
  11818. || test ! -s conftest.err'
  11819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11820. (eval $ac_try) 2>&5
  11821. ac_status=$?
  11822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11823. (exit $ac_status); }; } &&
  11824. { ac_try='test -s conftest$ac_exeext'
  11825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11826. (eval $ac_try) 2>&5
  11827. ac_status=$?
  11828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11829. (exit $ac_status); }; }; then
  11830. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11831. }'`
  11832. # Check for a 64-bit object if we didn't find anything.
  11833. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11834. }'`; fi
  11835. else
  11836. echo "$as_me: failed program was:" >&5
  11837. sed 's/^/| /' conftest.$ac_ext >&5
  11838. fi
  11839. rm -f conftest.err conftest.$ac_objext \
  11840. conftest$ac_exeext conftest.$ac_ext
  11841. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11842. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  11843. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11844. else
  11845. if test "$host_cpu" = ia64; then
  11846. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  11847. allow_undefined_flag_F77="-z nodefs"
  11848. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  11849. else
  11850. # Determine the default libpath from the value encoded in an empty executable.
  11851. cat >conftest.$ac_ext <<_ACEOF
  11852. program main
  11853. end
  11854. _ACEOF
  11855. rm -f conftest.$ac_objext conftest$ac_exeext
  11856. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11857. (eval $ac_link) 2>conftest.er1
  11858. ac_status=$?
  11859. grep -v '^ *+' conftest.er1 >conftest.err
  11860. rm -f conftest.er1
  11861. cat conftest.err >&5
  11862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11863. (exit $ac_status); } &&
  11864. { ac_try='test -z "$ac_f77_werror_flag"
  11865. || test ! -s conftest.err'
  11866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11867. (eval $ac_try) 2>&5
  11868. ac_status=$?
  11869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11870. (exit $ac_status); }; } &&
  11871. { ac_try='test -s conftest$ac_exeext'
  11872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11873. (eval $ac_try) 2>&5
  11874. ac_status=$?
  11875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11876. (exit $ac_status); }; }; then
  11877. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11878. }'`
  11879. # Check for a 64-bit object if we didn't find anything.
  11880. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11881. }'`; fi
  11882. else
  11883. echo "$as_me: failed program was:" >&5
  11884. sed 's/^/| /' conftest.$ac_ext >&5
  11885. fi
  11886. rm -f conftest.err conftest.$ac_objext \
  11887. conftest$ac_exeext conftest.$ac_ext
  11888. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11889. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  11890. # Warning - without using the other run time loading flags,
  11891. # -berok will link without error, but may produce a broken library.
  11892. no_undefined_flag_F77=' ${wl}-bernotok'
  11893. allow_undefined_flag_F77=' ${wl}-berok'
  11894. # Exported symbols can be pulled into shared objects from archives
  11895. whole_archive_flag_spec_F77='$convenience'
  11896. archive_cmds_need_lc_F77=yes
  11897. # This is similar to how AIX traditionally builds its shared libraries.
  11898. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11899. fi
  11900. fi
  11901. ;;
  11902. amigaos*)
  11903. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11904. hardcode_libdir_flag_spec_F77='-L$libdir'
  11905. hardcode_minus_L_F77=yes
  11906. # see comment about different semantics on the GNU ld section
  11907. ld_shlibs_F77=no
  11908. ;;
  11909. bsdi[45]*)
  11910. export_dynamic_flag_spec_F77=-rdynamic
  11911. ;;
  11912. cygwin* | mingw* | pw32*)
  11913. # When not using gcc, we currently assume that we are using
  11914. # Microsoft Visual C++.
  11915. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11916. # no search path for DLLs.
  11917. hardcode_libdir_flag_spec_F77=' '
  11918. allow_undefined_flag_F77=unsupported
  11919. # Tell ltmain to make .lib files, not .a files.
  11920. libext=lib
  11921. # Tell ltmain to make .dll files, not .so files.
  11922. shrext_cmds=".dll"
  11923. # FIXME: Setting linknames here is a bad hack.
  11924. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  11925. # The linker will automatically build a .lib file if we build a DLL.
  11926. old_archive_From_new_cmds_F77='true'
  11927. # FIXME: Should let the user specify the lib program.
  11928. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  11929. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  11930. enable_shared_with_static_runtimes_F77=yes
  11931. ;;
  11932. darwin* | rhapsody*)
  11933. case $host_os in
  11934. rhapsody* | darwin1.[012])
  11935. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  11936. ;;
  11937. *) # Darwin 1.3 on
  11938. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  11939. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11940. else
  11941. case ${MACOSX_DEPLOYMENT_TARGET} in
  11942. 10.[012])
  11943. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11944. ;;
  11945. 10.*)
  11946. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  11947. ;;
  11948. esac
  11949. fi
  11950. ;;
  11951. esac
  11952. archive_cmds_need_lc_F77=no
  11953. hardcode_direct_F77=no
  11954. hardcode_automatic_F77=yes
  11955. hardcode_shlibpath_var_F77=unsupported
  11956. whole_archive_flag_spec_F77=''
  11957. link_all_deplibs_F77=yes
  11958. if test "$GCC" = yes ; then
  11959. output_verbose_link_cmd='echo'
  11960. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  11961. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11962. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11963. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11964. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11965. else
  11966. case $cc_basename in
  11967. xlc*)
  11968. output_verbose_link_cmd='echo'
  11969. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  11970. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11971. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11972. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11973. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11974. ;;
  11975. *)
  11976. ld_shlibs_F77=no
  11977. ;;
  11978. esac
  11979. fi
  11980. ;;
  11981. dgux*)
  11982. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11983. hardcode_libdir_flag_spec_F77='-L$libdir'
  11984. hardcode_shlibpath_var_F77=no
  11985. ;;
  11986. freebsd1*)
  11987. ld_shlibs_F77=no
  11988. ;;
  11989. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11990. # support. Future versions do this automatically, but an explicit c++rt0.o
  11991. # does not break anything, and helps significantly (at the cost of a little
  11992. # extra space).
  11993. freebsd2.2*)
  11994. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11995. hardcode_libdir_flag_spec_F77='-R$libdir'
  11996. hardcode_direct_F77=yes
  11997. hardcode_shlibpath_var_F77=no
  11998. ;;
  11999. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12000. freebsd2*)
  12001. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12002. hardcode_direct_F77=yes
  12003. hardcode_minus_L_F77=yes
  12004. hardcode_shlibpath_var_F77=no
  12005. ;;
  12006. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12007. freebsd* | kfreebsd*-gnu | dragonfly*)
  12008. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12009. hardcode_libdir_flag_spec_F77='-R$libdir'
  12010. hardcode_direct_F77=yes
  12011. hardcode_shlibpath_var_F77=no
  12012. ;;
  12013. hpux9*)
  12014. if test "$GCC" = yes; then
  12015. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12016. else
  12017. archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12018. fi
  12019. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12020. hardcode_libdir_separator_F77=:
  12021. hardcode_direct_F77=yes
  12022. # hardcode_minus_L: Not really in the search PATH,
  12023. # but as the default location of the library.
  12024. hardcode_minus_L_F77=yes
  12025. export_dynamic_flag_spec_F77='${wl}-E'
  12026. ;;
  12027. hpux10*)
  12028. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12029. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12030. else
  12031. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12032. fi
  12033. if test "$with_gnu_ld" = no; then
  12034. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12035. hardcode_libdir_separator_F77=:
  12036. hardcode_direct_F77=yes
  12037. export_dynamic_flag_spec_F77='${wl}-E'
  12038. # hardcode_minus_L: Not really in the search PATH,
  12039. # but as the default location of the library.
  12040. hardcode_minus_L_F77=yes
  12041. fi
  12042. ;;
  12043. hpux11*)
  12044. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12045. case $host_cpu in
  12046. hppa*64*)
  12047. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12048. ;;
  12049. ia64*)
  12050. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12051. ;;
  12052. *)
  12053. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12054. ;;
  12055. esac
  12056. else
  12057. case $host_cpu in
  12058. hppa*64*)
  12059. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12060. ;;
  12061. ia64*)
  12062. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12063. ;;
  12064. *)
  12065. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12066. ;;
  12067. esac
  12068. fi
  12069. if test "$with_gnu_ld" = no; then
  12070. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12071. hardcode_libdir_separator_F77=:
  12072. case $host_cpu in
  12073. hppa*64*|ia64*)
  12074. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12075. hardcode_direct_F77=no
  12076. hardcode_shlibpath_var_F77=no
  12077. ;;
  12078. *)
  12079. hardcode_direct_F77=yes
  12080. export_dynamic_flag_spec_F77='${wl}-E'
  12081. # hardcode_minus_L: Not really in the search PATH,
  12082. # but as the default location of the library.
  12083. hardcode_minus_L_F77=yes
  12084. ;;
  12085. esac
  12086. fi
  12087. ;;
  12088. irix5* | irix6* | nonstopux*)
  12089. if test "$GCC" = yes; then
  12090. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12091. else
  12092. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12093. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12094. fi
  12095. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12096. hardcode_libdir_separator_F77=:
  12097. link_all_deplibs_F77=yes
  12098. ;;
  12099. netbsd*)
  12100. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12101. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12102. else
  12103. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12104. fi
  12105. hardcode_libdir_flag_spec_F77='-R$libdir'
  12106. hardcode_direct_F77=yes
  12107. hardcode_shlibpath_var_F77=no
  12108. ;;
  12109. newsos6)
  12110. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12111. hardcode_direct_F77=yes
  12112. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12113. hardcode_libdir_separator_F77=:
  12114. hardcode_shlibpath_var_F77=no
  12115. ;;
  12116. openbsd*)
  12117. hardcode_direct_F77=yes
  12118. hardcode_shlibpath_var_F77=no
  12119. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12120. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12121. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12122. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12123. export_dynamic_flag_spec_F77='${wl}-E'
  12124. else
  12125. case $host_os in
  12126. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12127. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12128. hardcode_libdir_flag_spec_F77='-R$libdir'
  12129. ;;
  12130. *)
  12131. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12132. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12133. ;;
  12134. esac
  12135. fi
  12136. ;;
  12137. os2*)
  12138. hardcode_libdir_flag_spec_F77='-L$libdir'
  12139. hardcode_minus_L_F77=yes
  12140. allow_undefined_flag_F77=unsupported
  12141. archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  12142. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12143. ;;
  12144. osf3*)
  12145. if test "$GCC" = yes; then
  12146. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12147. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12148. else
  12149. allow_undefined_flag_F77=' -expect_unresolved \*'
  12150. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12151. fi
  12152. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12153. hardcode_libdir_separator_F77=:
  12154. ;;
  12155. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12156. if test "$GCC" = yes; then
  12157. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12158. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12159. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12160. else
  12161. allow_undefined_flag_F77=' -expect_unresolved \*'
  12162. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12163. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  12164. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  12165. # Both c and cxx compiler support -rpath directly
  12166. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12167. fi
  12168. hardcode_libdir_separator_F77=:
  12169. ;;
  12170. solaris*)
  12171. no_undefined_flag_F77=' -z text'
  12172. if test "$GCC" = yes; then
  12173. wlarc='${wl}'
  12174. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12175. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12176. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12177. else
  12178. wlarc=''
  12179. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12180. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12181. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12182. fi
  12183. hardcode_libdir_flag_spec_F77='-R$libdir'
  12184. hardcode_shlibpath_var_F77=no
  12185. case $host_os in
  12186. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12187. *)
  12188. # The compiler driver will combine linker options so we
  12189. # cannot just pass the convience library names through
  12190. # without $wl, iff we do not link with $LD.
  12191. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12192. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12193. case $wlarc in
  12194. '')
  12195. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12196. *)
  12197. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12198. esac ;;
  12199. esac
  12200. link_all_deplibs_F77=yes
  12201. ;;
  12202. sunos4*)
  12203. if test "x$host_vendor" = xsequent; then
  12204. # Use $CC to link under sequent, because it throws in some extra .o
  12205. # files that make .init and .fini sections work.
  12206. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12207. else
  12208. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12209. fi
  12210. hardcode_libdir_flag_spec_F77='-L$libdir'
  12211. hardcode_direct_F77=yes
  12212. hardcode_minus_L_F77=yes
  12213. hardcode_shlibpath_var_F77=no
  12214. ;;
  12215. sysv4)
  12216. case $host_vendor in
  12217. sni)
  12218. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12219. hardcode_direct_F77=yes # is this really true???
  12220. ;;
  12221. siemens)
  12222. ## LD is ld it makes a PLAMLIB
  12223. ## CC just makes a GrossModule.
  12224. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12225. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12226. hardcode_direct_F77=no
  12227. ;;
  12228. motorola)
  12229. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12230. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12231. ;;
  12232. esac
  12233. runpath_var='LD_RUN_PATH'
  12234. hardcode_shlibpath_var_F77=no
  12235. ;;
  12236. sysv4.3*)
  12237. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12238. hardcode_shlibpath_var_F77=no
  12239. export_dynamic_flag_spec_F77='-Bexport'
  12240. ;;
  12241. sysv4*MP*)
  12242. if test -d /usr/nec; then
  12243. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12244. hardcode_shlibpath_var_F77=no
  12245. runpath_var=LD_RUN_PATH
  12246. hardcode_runpath_var=yes
  12247. ld_shlibs_F77=yes
  12248. fi
  12249. ;;
  12250. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  12251. no_undefined_flag_F77='${wl}-z,text'
  12252. archive_cmds_need_lc_F77=no
  12253. hardcode_shlibpath_var_F77=no
  12254. runpath_var='LD_RUN_PATH'
  12255. if test "$GCC" = yes; then
  12256. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12257. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12258. else
  12259. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12260. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12261. fi
  12262. ;;
  12263. sysv5* | sco3.2v5* | sco5v6*)
  12264. # Note: We can NOT use -z defs as we might desire, because we do not
  12265. # link with -lc, and that would cause any symbols used from libc to
  12266. # always be unresolved, which means just about no library would
  12267. # ever link correctly. If we're not using GNU ld we use -z text
  12268. # though, which does catch some bad symbols but isn't as heavy-handed
  12269. # as -z defs.
  12270. no_undefined_flag_F77='${wl}-z,text'
  12271. allow_undefined_flag_F77='${wl}-z,nodefs'
  12272. archive_cmds_need_lc_F77=no
  12273. hardcode_shlibpath_var_F77=no
  12274. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12275. hardcode_libdir_separator_F77=':'
  12276. link_all_deplibs_F77=yes
  12277. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12278. runpath_var='LD_RUN_PATH'
  12279. if test "$GCC" = yes; then
  12280. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12281. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12282. else
  12283. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12284. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12285. fi
  12286. ;;
  12287. uts4*)
  12288. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12289. hardcode_libdir_flag_spec_F77='-L$libdir'
  12290. hardcode_shlibpath_var_F77=no
  12291. ;;
  12292. *)
  12293. ld_shlibs_F77=no
  12294. ;;
  12295. esac
  12296. fi
  12297. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  12298. echo "${ECHO_T}$ld_shlibs_F77" >&6
  12299. test "$ld_shlibs_F77" = no && can_build_shared=no
  12300. #
  12301. # Do we need to explicitly link libc?
  12302. #
  12303. case "x$archive_cmds_need_lc_F77" in
  12304. x|xyes)
  12305. # Assume -lc should be added
  12306. archive_cmds_need_lc_F77=yes
  12307. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12308. case $archive_cmds_F77 in
  12309. *'~'*)
  12310. # FIXME: we may have to deal with multi-command sequences.
  12311. ;;
  12312. '$CC '*)
  12313. # Test whether the compiler implicitly links with -lc since on some
  12314. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12315. # to ld, don't add -lc before -lgcc.
  12316. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12317. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  12318. $rm conftest*
  12319. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12320. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12321. (eval $ac_compile) 2>&5
  12322. ac_status=$?
  12323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12324. (exit $ac_status); } 2>conftest.err; then
  12325. soname=conftest
  12326. lib=conftest
  12327. libobjs=conftest.$ac_objext
  12328. deplibs=
  12329. wl=$lt_prog_compiler_wl_F77
  12330. pic_flag=$lt_prog_compiler_pic_F77
  12331. compiler_flags=-v
  12332. linker_flags=-v
  12333. verstring=
  12334. output_objdir=.
  12335. libname=conftest
  12336. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  12337. allow_undefined_flag_F77=
  12338. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12339. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12340. ac_status=$?
  12341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12342. (exit $ac_status); }
  12343. then
  12344. archive_cmds_need_lc_F77=no
  12345. else
  12346. archive_cmds_need_lc_F77=yes
  12347. fi
  12348. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  12349. else
  12350. cat conftest.err 1>&5
  12351. fi
  12352. $rm conftest*
  12353. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  12354. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  12355. ;;
  12356. esac
  12357. fi
  12358. ;;
  12359. esac
  12360. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12361. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  12362. library_names_spec=
  12363. libname_spec='lib$name'
  12364. soname_spec=
  12365. shrext_cmds=".so"
  12366. postinstall_cmds=
  12367. postuninstall_cmds=
  12368. finish_cmds=
  12369. finish_eval=
  12370. shlibpath_var=
  12371. shlibpath_overrides_runpath=unknown
  12372. version_type=none
  12373. dynamic_linker="$host_os ld.so"
  12374. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12375. if test "$GCC" = yes; then
  12376. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12377. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  12378. # if the path contains ";" then we assume it to be the separator
  12379. # otherwise default to the standard path separator (i.e. ":") - it is
  12380. # assumed that no part of a normal pathname contains ";" but that should
  12381. # okay in the real world where ";" in dirpaths is itself problematic.
  12382. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12383. else
  12384. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12385. fi
  12386. else
  12387. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12388. fi
  12389. need_lib_prefix=unknown
  12390. hardcode_into_libs=no
  12391. # when you set need_version to no, make sure it does not cause -set_version
  12392. # flags to be left without arguments
  12393. need_version=unknown
  12394. case $host_os in
  12395. aix3*)
  12396. version_type=linux
  12397. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12398. shlibpath_var=LIBPATH
  12399. # AIX 3 has no versioning support, so we append a major version to the name.
  12400. soname_spec='${libname}${release}${shared_ext}$major'
  12401. ;;
  12402. aix4* | aix5*)
  12403. version_type=linux
  12404. need_lib_prefix=no
  12405. need_version=no
  12406. hardcode_into_libs=yes
  12407. if test "$host_cpu" = ia64; then
  12408. # AIX 5 supports IA64
  12409. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12410. shlibpath_var=LD_LIBRARY_PATH
  12411. else
  12412. # With GCC up to 2.95.x, collect2 would create an import file
  12413. # for dependence libraries. The import file would start with
  12414. # the line `#! .'. This would cause the generated library to
  12415. # depend on `.', always an invalid library. This was fixed in
  12416. # development snapshots of GCC prior to 3.0.
  12417. case $host_os in
  12418. aix4 | aix4.[01] | aix4.[01].*)
  12419. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12420. echo ' yes '
  12421. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12422. :
  12423. else
  12424. can_build_shared=no
  12425. fi
  12426. ;;
  12427. esac
  12428. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12429. # soname into executable. Probably we can add versioning support to
  12430. # collect2, so additional links can be useful in future.
  12431. if test "$aix_use_runtimelinking" = yes; then
  12432. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12433. # instead of lib<name>.a to let people know that these are not
  12434. # typical AIX shared libraries.
  12435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12436. else
  12437. # We preserve .a as extension for shared libraries through AIX4.2
  12438. # and later when we are not doing run time linking.
  12439. library_names_spec='${libname}${release}.a $libname.a'
  12440. soname_spec='${libname}${release}${shared_ext}$major'
  12441. fi
  12442. shlibpath_var=LIBPATH
  12443. fi
  12444. ;;
  12445. amigaos*)
  12446. library_names_spec='$libname.ixlibrary $libname.a'
  12447. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12448. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12449. ;;
  12450. beos*)
  12451. library_names_spec='${libname}${shared_ext}'
  12452. dynamic_linker="$host_os ld.so"
  12453. shlibpath_var=LIBRARY_PATH
  12454. ;;
  12455. bsdi[45]*)
  12456. version_type=linux
  12457. need_version=no
  12458. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12459. soname_spec='${libname}${release}${shared_ext}$major'
  12460. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12461. shlibpath_var=LD_LIBRARY_PATH
  12462. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12463. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12464. # the default ld.so.conf also contains /usr/contrib/lib and
  12465. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12466. # libtool to hard-code these into programs
  12467. ;;
  12468. cygwin* | mingw* | pw32*)
  12469. version_type=windows
  12470. shrext_cmds=".dll"
  12471. need_version=no
  12472. need_lib_prefix=no
  12473. case $GCC,$host_os in
  12474. yes,cygwin* | yes,mingw* | yes,pw32*)
  12475. library_names_spec='$libname.dll.a'
  12476. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12477. postinstall_cmds='base_file=`basename \${file}`~
  12478. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12479. dldir=$destdir/`dirname \$dlpath`~
  12480. test -d \$dldir || mkdir -p \$dldir~
  12481. $install_prog $dir/$dlname \$dldir/$dlname~
  12482. chmod a+x \$dldir/$dlname'
  12483. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12484. dlpath=$dir/\$dldll~
  12485. $rm \$dlpath'
  12486. shlibpath_overrides_runpath=yes
  12487. case $host_os in
  12488. cygwin*)
  12489. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12490. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12491. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12492. ;;
  12493. mingw*)
  12494. # MinGW DLLs use traditional 'lib' prefix
  12495. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12496. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12497. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12498. # It is most probably a Windows format PATH printed by
  12499. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12500. # path with ; separators, and with drive letters. We can handle the
  12501. # drive letters (cygwin fileutils understands them), so leave them,
  12502. # especially as we might pass files found there to a mingw objdump,
  12503. # which wouldn't understand a cygwinified path. Ahh.
  12504. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12505. else
  12506. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12507. fi
  12508. ;;
  12509. pw32*)
  12510. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12511. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12512. ;;
  12513. esac
  12514. ;;
  12515. *)
  12516. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12517. ;;
  12518. esac
  12519. dynamic_linker='Win32 ld.exe'
  12520. # FIXME: first we should search . and the directory the executable is in
  12521. shlibpath_var=PATH
  12522. ;;
  12523. darwin* | rhapsody*)
  12524. dynamic_linker="$host_os dyld"
  12525. version_type=darwin
  12526. need_lib_prefix=no
  12527. need_version=no
  12528. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12529. soname_spec='${libname}${release}${major}$shared_ext'
  12530. shlibpath_overrides_runpath=yes
  12531. shlibpath_var=DYLD_LIBRARY_PATH
  12532. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12533. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  12534. if test "$GCC" = yes; then
  12535. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  12536. else
  12537. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  12538. fi
  12539. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12540. ;;
  12541. dgux*)
  12542. version_type=linux
  12543. need_lib_prefix=no
  12544. need_version=no
  12545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12546. soname_spec='${libname}${release}${shared_ext}$major'
  12547. shlibpath_var=LD_LIBRARY_PATH
  12548. ;;
  12549. freebsd1*)
  12550. dynamic_linker=no
  12551. ;;
  12552. kfreebsd*-gnu)
  12553. version_type=linux
  12554. need_lib_prefix=no
  12555. need_version=no
  12556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12557. soname_spec='${libname}${release}${shared_ext}$major'
  12558. shlibpath_var=LD_LIBRARY_PATH
  12559. shlibpath_overrides_runpath=no
  12560. hardcode_into_libs=yes
  12561. dynamic_linker='GNU ld.so'
  12562. ;;
  12563. freebsd* | dragonfly*)
  12564. # DragonFly does not have aout. When/if they implement a new
  12565. # versioning mechanism, adjust this.
  12566. if test -x /usr/bin/objformat; then
  12567. objformat=`/usr/bin/objformat`
  12568. else
  12569. case $host_os in
  12570. freebsd[123]*) objformat=aout ;;
  12571. *) objformat=elf ;;
  12572. esac
  12573. fi
  12574. version_type=freebsd-$objformat
  12575. case $version_type in
  12576. freebsd-elf*)
  12577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12578. need_version=no
  12579. need_lib_prefix=no
  12580. ;;
  12581. freebsd-*)
  12582. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12583. need_version=yes
  12584. ;;
  12585. esac
  12586. shlibpath_var=LD_LIBRARY_PATH
  12587. case $host_os in
  12588. freebsd2*)
  12589. shlibpath_overrides_runpath=yes
  12590. ;;
  12591. freebsd3.[01]* | freebsdelf3.[01]*)
  12592. shlibpath_overrides_runpath=yes
  12593. hardcode_into_libs=yes
  12594. ;;
  12595. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12596. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12597. shlibpath_overrides_runpath=no
  12598. hardcode_into_libs=yes
  12599. ;;
  12600. freebsd*) # from 4.6 on
  12601. shlibpath_overrides_runpath=yes
  12602. hardcode_into_libs=yes
  12603. ;;
  12604. esac
  12605. ;;
  12606. gnu*)
  12607. version_type=linux
  12608. need_lib_prefix=no
  12609. need_version=no
  12610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12611. soname_spec='${libname}${release}${shared_ext}$major'
  12612. shlibpath_var=LD_LIBRARY_PATH
  12613. hardcode_into_libs=yes
  12614. ;;
  12615. hpux9* | hpux10* | hpux11*)
  12616. # Give a soname corresponding to the major version so that dld.sl refuses to
  12617. # link against other versions.
  12618. version_type=sunos
  12619. need_lib_prefix=no
  12620. need_version=no
  12621. case $host_cpu in
  12622. ia64*)
  12623. shrext_cmds='.so'
  12624. hardcode_into_libs=yes
  12625. dynamic_linker="$host_os dld.so"
  12626. shlibpath_var=LD_LIBRARY_PATH
  12627. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12629. soname_spec='${libname}${release}${shared_ext}$major'
  12630. if test "X$HPUX_IA64_MODE" = X32; then
  12631. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12632. else
  12633. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12634. fi
  12635. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12636. ;;
  12637. hppa*64*)
  12638. shrext_cmds='.sl'
  12639. hardcode_into_libs=yes
  12640. dynamic_linker="$host_os dld.sl"
  12641. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12642. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12644. soname_spec='${libname}${release}${shared_ext}$major'
  12645. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12646. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12647. ;;
  12648. *)
  12649. shrext_cmds='.sl'
  12650. dynamic_linker="$host_os dld.sl"
  12651. shlibpath_var=SHLIB_PATH
  12652. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12653. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12654. soname_spec='${libname}${release}${shared_ext}$major'
  12655. ;;
  12656. esac
  12657. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12658. postinstall_cmds='chmod 555 $lib'
  12659. ;;
  12660. interix3*)
  12661. version_type=linux
  12662. need_lib_prefix=no
  12663. need_version=no
  12664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12665. soname_spec='${libname}${release}${shared_ext}$major'
  12666. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12667. shlibpath_var=LD_LIBRARY_PATH
  12668. shlibpath_overrides_runpath=no
  12669. hardcode_into_libs=yes
  12670. ;;
  12671. irix5* | irix6* | nonstopux*)
  12672. case $host_os in
  12673. nonstopux*) version_type=nonstopux ;;
  12674. *)
  12675. if test "$lt_cv_prog_gnu_ld" = yes; then
  12676. version_type=linux
  12677. else
  12678. version_type=irix
  12679. fi ;;
  12680. esac
  12681. need_lib_prefix=no
  12682. need_version=no
  12683. soname_spec='${libname}${release}${shared_ext}$major'
  12684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12685. case $host_os in
  12686. irix5* | nonstopux*)
  12687. libsuff= shlibsuff=
  12688. ;;
  12689. *)
  12690. case $LD in # libtool.m4 will add one of these switches to LD
  12691. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12692. libsuff= shlibsuff= libmagic=32-bit;;
  12693. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12694. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12695. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12696. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12697. *) libsuff= shlibsuff= libmagic=never-match;;
  12698. esac
  12699. ;;
  12700. esac
  12701. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12702. shlibpath_overrides_runpath=no
  12703. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12704. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12705. hardcode_into_libs=yes
  12706. ;;
  12707. # No shared lib support for Linux oldld, aout, or coff.
  12708. linux*oldld* | linux*aout* | linux*coff*)
  12709. dynamic_linker=no
  12710. ;;
  12711. # This must be Linux ELF.
  12712. linux*)
  12713. version_type=linux
  12714. need_lib_prefix=no
  12715. need_version=no
  12716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12717. soname_spec='${libname}${release}${shared_ext}$major'
  12718. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12719. shlibpath_var=LD_LIBRARY_PATH
  12720. shlibpath_overrides_runpath=no
  12721. # This implies no fast_install, which is unacceptable.
  12722. # Some rework will be needed to allow for fast_install
  12723. # before this can be enabled.
  12724. hardcode_into_libs=yes
  12725. # Append ld.so.conf contents to the search path
  12726. if test -f /etc/ld.so.conf; then
  12727. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12728. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12729. fi
  12730. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12731. # powerpc, because MkLinux only supported shared libraries with the
  12732. # GNU dynamic linker. Since this was broken with cross compilers,
  12733. # most powerpc-linux boxes support dynamic linking these days and
  12734. # people can always --disable-shared, the test was removed, and we
  12735. # assume the GNU/Linux dynamic linker is in use.
  12736. dynamic_linker='GNU/Linux ld.so'
  12737. ;;
  12738. knetbsd*-gnu)
  12739. version_type=linux
  12740. need_lib_prefix=no
  12741. need_version=no
  12742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12743. soname_spec='${libname}${release}${shared_ext}$major'
  12744. shlibpath_var=LD_LIBRARY_PATH
  12745. shlibpath_overrides_runpath=no
  12746. hardcode_into_libs=yes
  12747. dynamic_linker='GNU ld.so'
  12748. ;;
  12749. netbsd*)
  12750. version_type=sunos
  12751. need_lib_prefix=no
  12752. need_version=no
  12753. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12755. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12756. dynamic_linker='NetBSD (a.out) ld.so'
  12757. else
  12758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12759. soname_spec='${libname}${release}${shared_ext}$major'
  12760. dynamic_linker='NetBSD ld.elf_so'
  12761. fi
  12762. shlibpath_var=LD_LIBRARY_PATH
  12763. shlibpath_overrides_runpath=yes
  12764. hardcode_into_libs=yes
  12765. ;;
  12766. newsos6)
  12767. version_type=linux
  12768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12769. shlibpath_var=LD_LIBRARY_PATH
  12770. shlibpath_overrides_runpath=yes
  12771. ;;
  12772. nto-qnx*)
  12773. version_type=linux
  12774. need_lib_prefix=no
  12775. need_version=no
  12776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12777. soname_spec='${libname}${release}${shared_ext}$major'
  12778. shlibpath_var=LD_LIBRARY_PATH
  12779. shlibpath_overrides_runpath=yes
  12780. ;;
  12781. openbsd*)
  12782. version_type=sunos
  12783. sys_lib_dlsearch_path_spec="/usr/lib"
  12784. need_lib_prefix=no
  12785. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12786. case $host_os in
  12787. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12788. *) need_version=no ;;
  12789. esac
  12790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12791. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12792. shlibpath_var=LD_LIBRARY_PATH
  12793. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12794. case $host_os in
  12795. openbsd2.[89] | openbsd2.[89].*)
  12796. shlibpath_overrides_runpath=no
  12797. ;;
  12798. *)
  12799. shlibpath_overrides_runpath=yes
  12800. ;;
  12801. esac
  12802. else
  12803. shlibpath_overrides_runpath=yes
  12804. fi
  12805. ;;
  12806. os2*)
  12807. libname_spec='$name'
  12808. shrext_cmds=".dll"
  12809. need_lib_prefix=no
  12810. library_names_spec='$libname${shared_ext} $libname.a'
  12811. dynamic_linker='OS/2 ld.exe'
  12812. shlibpath_var=LIBPATH
  12813. ;;
  12814. osf3* | osf4* | osf5*)
  12815. version_type=osf
  12816. need_lib_prefix=no
  12817. need_version=no
  12818. soname_spec='${libname}${release}${shared_ext}$major'
  12819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12820. shlibpath_var=LD_LIBRARY_PATH
  12821. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12822. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12823. ;;
  12824. solaris*)
  12825. version_type=linux
  12826. need_lib_prefix=no
  12827. need_version=no
  12828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12829. soname_spec='${libname}${release}${shared_ext}$major'
  12830. shlibpath_var=LD_LIBRARY_PATH
  12831. shlibpath_overrides_runpath=yes
  12832. hardcode_into_libs=yes
  12833. # ldd complains unless libraries are executable
  12834. postinstall_cmds='chmod +x $lib'
  12835. ;;
  12836. sunos4*)
  12837. version_type=sunos
  12838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12839. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12840. shlibpath_var=LD_LIBRARY_PATH
  12841. shlibpath_overrides_runpath=yes
  12842. if test "$with_gnu_ld" = yes; then
  12843. need_lib_prefix=no
  12844. fi
  12845. need_version=yes
  12846. ;;
  12847. sysv4 | sysv4.3*)
  12848. version_type=linux
  12849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12850. soname_spec='${libname}${release}${shared_ext}$major'
  12851. shlibpath_var=LD_LIBRARY_PATH
  12852. case $host_vendor in
  12853. sni)
  12854. shlibpath_overrides_runpath=no
  12855. need_lib_prefix=no
  12856. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12857. runpath_var=LD_RUN_PATH
  12858. ;;
  12859. siemens)
  12860. need_lib_prefix=no
  12861. ;;
  12862. motorola)
  12863. need_lib_prefix=no
  12864. need_version=no
  12865. shlibpath_overrides_runpath=no
  12866. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12867. ;;
  12868. esac
  12869. ;;
  12870. sysv4*MP*)
  12871. if test -d /usr/nec ;then
  12872. version_type=linux
  12873. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12874. soname_spec='$libname${shared_ext}.$major'
  12875. shlibpath_var=LD_LIBRARY_PATH
  12876. fi
  12877. ;;
  12878. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12879. version_type=freebsd-elf
  12880. need_lib_prefix=no
  12881. need_version=no
  12882. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12883. soname_spec='${libname}${release}${shared_ext}$major'
  12884. shlibpath_var=LD_LIBRARY_PATH
  12885. hardcode_into_libs=yes
  12886. if test "$with_gnu_ld" = yes; then
  12887. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12888. shlibpath_overrides_runpath=no
  12889. else
  12890. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12891. shlibpath_overrides_runpath=yes
  12892. case $host_os in
  12893. sco3.2v5*)
  12894. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12895. ;;
  12896. esac
  12897. fi
  12898. sys_lib_dlsearch_path_spec='/usr/lib'
  12899. ;;
  12900. uts4*)
  12901. version_type=linux
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12903. soname_spec='${libname}${release}${shared_ext}$major'
  12904. shlibpath_var=LD_LIBRARY_PATH
  12905. ;;
  12906. *)
  12907. dynamic_linker=no
  12908. ;;
  12909. esac
  12910. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12911. echo "${ECHO_T}$dynamic_linker" >&6
  12912. test "$dynamic_linker" = no && can_build_shared=no
  12913. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12914. if test "$GCC" = yes; then
  12915. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12916. fi
  12917. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12918. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  12919. hardcode_action_F77=
  12920. if test -n "$hardcode_libdir_flag_spec_F77" || \
  12921. test -n "$runpath_var_F77" || \
  12922. test "X$hardcode_automatic_F77" = "Xyes" ; then
  12923. # We can hardcode non-existant directories.
  12924. if test "$hardcode_direct_F77" != no &&
  12925. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12926. # have to relink, otherwise we might link with an installed library
  12927. # when we should be linking with a yet-to-be-installed one
  12928. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  12929. test "$hardcode_minus_L_F77" != no; then
  12930. # Linking always hardcodes the temporary library directory.
  12931. hardcode_action_F77=relink
  12932. else
  12933. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12934. hardcode_action_F77=immediate
  12935. fi
  12936. else
  12937. # We cannot hardcode anything, or else we can only hardcode existing
  12938. # directories.
  12939. hardcode_action_F77=unsupported
  12940. fi
  12941. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  12942. echo "${ECHO_T}$hardcode_action_F77" >&6
  12943. if test "$hardcode_action_F77" = relink; then
  12944. # Fast installation is not supported
  12945. enable_fast_install=no
  12946. elif test "$shlibpath_overrides_runpath" = yes ||
  12947. test "$enable_shared" = no; then
  12948. # Fast installation is not necessary
  12949. enable_fast_install=needless
  12950. fi
  12951. # The else clause should only fire when bootstrapping the
  12952. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12953. # with your package, and you will get complaints that there are
  12954. # no rules to generate ltmain.sh.
  12955. if test -f "$ltmain"; then
  12956. # See if we are running on zsh, and set the options which allow our commands through
  12957. # without removal of \ escapes.
  12958. if test -n "${ZSH_VERSION+set}" ; then
  12959. setopt NO_GLOB_SUBST
  12960. fi
  12961. # Now quote all the things that may contain metacharacters while being
  12962. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12963. # variables and quote the copies for generation of the libtool script.
  12964. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12965. SED SHELL STRIP \
  12966. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12967. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12968. deplibs_check_method reload_flag reload_cmds need_locks \
  12969. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12970. lt_cv_sys_global_symbol_to_c_name_address \
  12971. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12972. old_postinstall_cmds old_postuninstall_cmds \
  12973. compiler_F77 \
  12974. CC_F77 \
  12975. LD_F77 \
  12976. lt_prog_compiler_wl_F77 \
  12977. lt_prog_compiler_pic_F77 \
  12978. lt_prog_compiler_static_F77 \
  12979. lt_prog_compiler_no_builtin_flag_F77 \
  12980. export_dynamic_flag_spec_F77 \
  12981. thread_safe_flag_spec_F77 \
  12982. whole_archive_flag_spec_F77 \
  12983. enable_shared_with_static_runtimes_F77 \
  12984. old_archive_cmds_F77 \
  12985. old_archive_from_new_cmds_F77 \
  12986. predep_objects_F77 \
  12987. postdep_objects_F77 \
  12988. predeps_F77 \
  12989. postdeps_F77 \
  12990. compiler_lib_search_path_F77 \
  12991. archive_cmds_F77 \
  12992. archive_expsym_cmds_F77 \
  12993. postinstall_cmds_F77 \
  12994. postuninstall_cmds_F77 \
  12995. old_archive_from_expsyms_cmds_F77 \
  12996. allow_undefined_flag_F77 \
  12997. no_undefined_flag_F77 \
  12998. export_symbols_cmds_F77 \
  12999. hardcode_libdir_flag_spec_F77 \
  13000. hardcode_libdir_flag_spec_ld_F77 \
  13001. hardcode_libdir_separator_F77 \
  13002. hardcode_automatic_F77 \
  13003. module_cmds_F77 \
  13004. module_expsym_cmds_F77 \
  13005. lt_cv_prog_compiler_c_o_F77 \
  13006. exclude_expsyms_F77 \
  13007. include_expsyms_F77; do
  13008. case $var in
  13009. old_archive_cmds_F77 | \
  13010. old_archive_from_new_cmds_F77 | \
  13011. archive_cmds_F77 | \
  13012. archive_expsym_cmds_F77 | \
  13013. module_cmds_F77 | \
  13014. module_expsym_cmds_F77 | \
  13015. old_archive_from_expsyms_cmds_F77 | \
  13016. export_symbols_cmds_F77 | \
  13017. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13018. postinstall_cmds | postuninstall_cmds | \
  13019. old_postinstall_cmds | old_postuninstall_cmds | \
  13020. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13021. # Double-quote double-evaled strings.
  13022. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13023. ;;
  13024. *)
  13025. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13026. ;;
  13027. esac
  13028. done
  13029. case $lt_echo in
  13030. *'\$0 --fallback-echo"')
  13031. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13032. ;;
  13033. esac
  13034. cfgfile="$ofile"
  13035. cat <<__EOF__ >> "$cfgfile"
  13036. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13037. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13038. # Shell to use when invoking shell scripts.
  13039. SHELL=$lt_SHELL
  13040. # Whether or not to build shared libraries.
  13041. build_libtool_libs=$enable_shared
  13042. # Whether or not to build static libraries.
  13043. build_old_libs=$enable_static
  13044. # Whether or not to add -lc for building shared libraries.
  13045. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13046. # Whether or not to disallow shared libs when runtime libs are static
  13047. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13048. # Whether or not to optimize for fast installation.
  13049. fast_install=$enable_fast_install
  13050. # The host system.
  13051. host_alias=$host_alias
  13052. host=$host
  13053. host_os=$host_os
  13054. # The build system.
  13055. build_alias=$build_alias
  13056. build=$build
  13057. build_os=$build_os
  13058. # An echo program that does not interpret backslashes.
  13059. echo=$lt_echo
  13060. # The archiver.
  13061. AR=$lt_AR
  13062. AR_FLAGS=$lt_AR_FLAGS
  13063. # A C compiler.
  13064. LTCC=$lt_LTCC
  13065. # LTCC compiler flags.
  13066. LTCFLAGS=$lt_LTCFLAGS
  13067. # A language-specific compiler.
  13068. CC=$lt_compiler_F77
  13069. # Is the compiler the GNU C compiler?
  13070. with_gcc=$GCC_F77
  13071. # An ERE matcher.
  13072. EGREP=$lt_EGREP
  13073. # The linker used to build libraries.
  13074. LD=$lt_LD_F77
  13075. # Whether we need hard or soft links.
  13076. LN_S=$lt_LN_S
  13077. # A BSD-compatible nm program.
  13078. NM=$lt_NM
  13079. # A symbol stripping program
  13080. STRIP=$lt_STRIP
  13081. # Used to examine libraries when file_magic_cmd begins "file"
  13082. MAGIC_CMD=$MAGIC_CMD
  13083. # Used on cygwin: DLL creation program.
  13084. DLLTOOL="$DLLTOOL"
  13085. # Used on cygwin: object dumper.
  13086. OBJDUMP="$OBJDUMP"
  13087. # Used on cygwin: assembler.
  13088. AS="$AS"
  13089. # The name of the directory that contains temporary libtool files.
  13090. objdir=$objdir
  13091. # How to create reloadable object files.
  13092. reload_flag=$lt_reload_flag
  13093. reload_cmds=$lt_reload_cmds
  13094. # How to pass a linker flag through the compiler.
  13095. wl=$lt_lt_prog_compiler_wl_F77
  13096. # Object file suffix (normally "o").
  13097. objext="$ac_objext"
  13098. # Old archive suffix (normally "a").
  13099. libext="$libext"
  13100. # Shared library suffix (normally ".so").
  13101. shrext_cmds='$shrext_cmds'
  13102. # Executable file suffix (normally "").
  13103. exeext="$exeext"
  13104. # Additional compiler flags for building library objects.
  13105. pic_flag=$lt_lt_prog_compiler_pic_F77
  13106. pic_mode=$pic_mode
  13107. # What is the maximum length of a command?
  13108. max_cmd_len=$lt_cv_sys_max_cmd_len
  13109. # Does compiler simultaneously support -c and -o options?
  13110. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13111. # Must we lock files when doing compilation?
  13112. need_locks=$lt_need_locks
  13113. # Do we need the lib prefix for modules?
  13114. need_lib_prefix=$need_lib_prefix
  13115. # Do we need a version for libraries?
  13116. need_version=$need_version
  13117. # Whether dlopen is supported.
  13118. dlopen_support=$enable_dlopen
  13119. # Whether dlopen of programs is supported.
  13120. dlopen_self=$enable_dlopen_self
  13121. # Whether dlopen of statically linked programs is supported.
  13122. dlopen_self_static=$enable_dlopen_self_static
  13123. # Compiler flag to prevent dynamic linking.
  13124. link_static_flag=$lt_lt_prog_compiler_static_F77
  13125. # Compiler flag to turn off builtin functions.
  13126. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13127. # Compiler flag to allow reflexive dlopens.
  13128. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13129. # Compiler flag to generate shared objects directly from archives.
  13130. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13131. # Compiler flag to generate thread-safe objects.
  13132. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13133. # Library versioning type.
  13134. version_type=$version_type
  13135. # Format of library name prefix.
  13136. libname_spec=$lt_libname_spec
  13137. # List of archive names. First name is the real one, the rest are links.
  13138. # The last name is the one that the linker finds with -lNAME.
  13139. library_names_spec=$lt_library_names_spec
  13140. # The coded name of the library, if different from the real name.
  13141. soname_spec=$lt_soname_spec
  13142. # Commands used to build and install an old-style archive.
  13143. RANLIB=$lt_RANLIB
  13144. old_archive_cmds=$lt_old_archive_cmds_F77
  13145. old_postinstall_cmds=$lt_old_postinstall_cmds
  13146. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13147. # Create an old-style archive from a shared archive.
  13148. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13149. # Create a temporary old-style archive to link instead of a shared archive.
  13150. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13151. # Commands used to build and install a shared archive.
  13152. archive_cmds=$lt_archive_cmds_F77
  13153. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13154. postinstall_cmds=$lt_postinstall_cmds
  13155. postuninstall_cmds=$lt_postuninstall_cmds
  13156. # Commands used to build a loadable module (assumed same as above if empty)
  13157. module_cmds=$lt_module_cmds_F77
  13158. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13159. # Commands to strip libraries.
  13160. old_striplib=$lt_old_striplib
  13161. striplib=$lt_striplib
  13162. # Dependencies to place before the objects being linked to create a
  13163. # shared library.
  13164. predep_objects=$lt_predep_objects_F77
  13165. # Dependencies to place after the objects being linked to create a
  13166. # shared library.
  13167. postdep_objects=$lt_postdep_objects_F77
  13168. # Dependencies to place before the objects being linked to create a
  13169. # shared library.
  13170. predeps=$lt_predeps_F77
  13171. # Dependencies to place after the objects being linked to create a
  13172. # shared library.
  13173. postdeps=$lt_postdeps_F77
  13174. # The library search path used internally by the compiler when linking
  13175. # a shared library.
  13176. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13177. # Method to check whether dependent libraries are shared objects.
  13178. deplibs_check_method=$lt_deplibs_check_method
  13179. # Command to use when deplibs_check_method == file_magic.
  13180. file_magic_cmd=$lt_file_magic_cmd
  13181. # Flag that allows shared libraries with undefined symbols to be built.
  13182. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13183. # Flag that forces no undefined symbols.
  13184. no_undefined_flag=$lt_no_undefined_flag_F77
  13185. # Commands used to finish a libtool library installation in a directory.
  13186. finish_cmds=$lt_finish_cmds
  13187. # Same as above, but a single script fragment to be evaled but not shown.
  13188. finish_eval=$lt_finish_eval
  13189. # Take the output of nm and produce a listing of raw symbols and C names.
  13190. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13191. # Transform the output of nm in a proper C declaration
  13192. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13193. # Transform the output of nm in a C name address pair
  13194. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13195. # This is the shared library runtime path variable.
  13196. runpath_var=$runpath_var
  13197. # This is the shared library path variable.
  13198. shlibpath_var=$shlibpath_var
  13199. # Is shlibpath searched before the hard-coded library search path?
  13200. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13201. # How to hardcode a shared library path into an executable.
  13202. hardcode_action=$hardcode_action_F77
  13203. # Whether we should hardcode library paths into libraries.
  13204. hardcode_into_libs=$hardcode_into_libs
  13205. # Flag to hardcode \$libdir into a binary during linking.
  13206. # This must work even if \$libdir does not exist.
  13207. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13208. # If ld is used when linking, flag to hardcode \$libdir into
  13209. # a binary during linking. This must work even if \$libdir does
  13210. # not exist.
  13211. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13212. # Whether we need a single -rpath flag with a separated argument.
  13213. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13214. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13215. # resulting binary.
  13216. hardcode_direct=$hardcode_direct_F77
  13217. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13218. # resulting binary.
  13219. hardcode_minus_L=$hardcode_minus_L_F77
  13220. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13221. # the resulting binary.
  13222. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13223. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13224. # and all subsequent libraries and executables linked against it.
  13225. hardcode_automatic=$hardcode_automatic_F77
  13226. # Variables whose values should be saved in libtool wrapper scripts and
  13227. # restored at relink time.
  13228. variables_saved_for_relink="$variables_saved_for_relink"
  13229. # Whether libtool must link a program against all its dependency libraries.
  13230. link_all_deplibs=$link_all_deplibs_F77
  13231. # Compile-time system search path for libraries
  13232. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13233. # Run-time system search path for libraries
  13234. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13235. # Fix the shell variable \$srcfile for the compiler.
  13236. fix_srcfile_path="$fix_srcfile_path_F77"
  13237. # Set to yes if exported symbols are required.
  13238. always_export_symbols=$always_export_symbols_F77
  13239. # The commands to list exported symbols.
  13240. export_symbols_cmds=$lt_export_symbols_cmds_F77
  13241. # The commands to extract the exported symbol list from a shared archive.
  13242. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13243. # Symbols that should not be listed in the preloaded symbols.
  13244. exclude_expsyms=$lt_exclude_expsyms_F77
  13245. # Symbols that must always be exported.
  13246. include_expsyms=$lt_include_expsyms_F77
  13247. # ### END LIBTOOL TAG CONFIG: $tagname
  13248. __EOF__
  13249. else
  13250. # If there is no Makefile yet, we rely on a make rule to execute
  13251. # `config.status --recheck' to rerun these tests and create the
  13252. # libtool script then.
  13253. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13254. if test -f "$ltmain_in"; then
  13255. test -f Makefile && make "$ltmain"
  13256. fi
  13257. fi
  13258. ac_ext=c
  13259. ac_cpp='$CPP $CPPFLAGS'
  13260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13263. CC="$lt_save_CC"
  13264. else
  13265. tagname=""
  13266. fi
  13267. ;;
  13268. GCJ)
  13269. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13270. # Source file extension for Java test sources.
  13271. ac_ext=java
  13272. # Object file extension for compiled Java test sources.
  13273. objext=o
  13274. objext_GCJ=$objext
  13275. # Code to be used in simple compile tests
  13276. lt_simple_compile_test_code="class foo {}\n"
  13277. # Code to be used in simple link tests
  13278. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  13279. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13280. # If no C compiler was specified, use CC.
  13281. LTCC=${LTCC-"$CC"}
  13282. # If no C compiler flags were specified, use CFLAGS.
  13283. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13284. # Allow CC to be a program name with arguments.
  13285. compiler=$CC
  13286. # save warnings/boilerplate of simple test code
  13287. ac_outfile=conftest.$ac_objext
  13288. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13289. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13290. _lt_compiler_boilerplate=`cat conftest.err`
  13291. $rm conftest*
  13292. ac_outfile=conftest.$ac_objext
  13293. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13294. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13295. _lt_linker_boilerplate=`cat conftest.err`
  13296. $rm conftest*
  13297. # Allow CC to be a program name with arguments.
  13298. lt_save_CC="$CC"
  13299. CC=${GCJ-"gcj"}
  13300. compiler=$CC
  13301. compiler_GCJ=$CC
  13302. for cc_temp in $compiler""; do
  13303. case $cc_temp in
  13304. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13305. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13306. \-*) ;;
  13307. *) break;;
  13308. esac
  13309. done
  13310. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13311. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  13312. archive_cmds_need_lc_GCJ=no
  13313. old_archive_cmds_GCJ=$old_archive_cmds
  13314. lt_prog_compiler_no_builtin_flag_GCJ=
  13315. if test "$GCC" = yes; then
  13316. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  13317. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  13318. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  13319. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  13320. echo $ECHO_N "(cached) $ECHO_C" >&6
  13321. else
  13322. lt_cv_prog_compiler_rtti_exceptions=no
  13323. ac_outfile=conftest.$ac_objext
  13324. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13325. lt_compiler_flag="-fno-rtti -fno-exceptions"
  13326. # Insert the option either (1) after the last *FLAGS variable, or
  13327. # (2) before a word containing "conftest.", or (3) at the end.
  13328. # Note that $ac_compile itself does not contain backslashes and begins
  13329. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13330. # The option is referenced via a variable to avoid confusing sed.
  13331. lt_compile=`echo "$ac_compile" | $SED \
  13332. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13333. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13334. -e 's:$: $lt_compiler_flag:'`
  13335. (eval echo "\"\$as_me:14844: $lt_compile\"" >&5)
  13336. (eval "$lt_compile" 2>conftest.err)
  13337. ac_status=$?
  13338. cat conftest.err >&5
  13339. echo "$as_me:14848: \$? = $ac_status" >&5
  13340. if (exit $ac_status) && test -s "$ac_outfile"; then
  13341. # The compiler can only warn and ignore the option if not recognized
  13342. # So say no if there are warnings other than the usual output.
  13343. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13344. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13345. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13346. lt_cv_prog_compiler_rtti_exceptions=yes
  13347. fi
  13348. fi
  13349. $rm conftest*
  13350. fi
  13351. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  13352. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  13353. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  13354. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  13355. else
  13356. :
  13357. fi
  13358. fi
  13359. lt_prog_compiler_wl_GCJ=
  13360. lt_prog_compiler_pic_GCJ=
  13361. lt_prog_compiler_static_GCJ=
  13362. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13363. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  13364. if test "$GCC" = yes; then
  13365. lt_prog_compiler_wl_GCJ='-Wl,'
  13366. lt_prog_compiler_static_GCJ='-static'
  13367. case $host_os in
  13368. aix*)
  13369. # All AIX code is PIC.
  13370. if test "$host_cpu" = ia64; then
  13371. # AIX 5 now supports IA64 processor
  13372. lt_prog_compiler_static_GCJ='-Bstatic'
  13373. fi
  13374. ;;
  13375. amigaos*)
  13376. # FIXME: we need at least 68020 code to build shared libraries, but
  13377. # adding the `-m68020' flag to GCC prevents building anything better,
  13378. # like `-m68040'.
  13379. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  13380. ;;
  13381. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13382. # PIC is the default for these OSes.
  13383. ;;
  13384. mingw* | pw32* | os2*)
  13385. # This hack is so that the source file can tell whether it is being
  13386. # built for inclusion in a dll (and should export symbols for example).
  13387. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13388. ;;
  13389. darwin* | rhapsody*)
  13390. # PIC is the default on this platform
  13391. # Common symbols not allowed in MH_DYLIB files
  13392. lt_prog_compiler_pic_GCJ='-fno-common'
  13393. ;;
  13394. interix3*)
  13395. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13396. # Instead, we relocate shared libraries at runtime.
  13397. ;;
  13398. msdosdjgpp*)
  13399. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13400. # on systems that don't support them.
  13401. lt_prog_compiler_can_build_shared_GCJ=no
  13402. enable_shared=no
  13403. ;;
  13404. sysv4*MP*)
  13405. if test -d /usr/nec; then
  13406. lt_prog_compiler_pic_GCJ=-Kconform_pic
  13407. fi
  13408. ;;
  13409. hpux*)
  13410. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13411. # not for PA HP-UX.
  13412. case $host_cpu in
  13413. hppa*64*|ia64*)
  13414. # +Z the default
  13415. ;;
  13416. *)
  13417. lt_prog_compiler_pic_GCJ='-fPIC'
  13418. ;;
  13419. esac
  13420. ;;
  13421. *)
  13422. lt_prog_compiler_pic_GCJ='-fPIC'
  13423. ;;
  13424. esac
  13425. else
  13426. # PORTME Check for flag to pass linker flags through the system compiler.
  13427. case $host_os in
  13428. aix*)
  13429. lt_prog_compiler_wl_GCJ='-Wl,'
  13430. if test "$host_cpu" = ia64; then
  13431. # AIX 5 now supports IA64 processor
  13432. lt_prog_compiler_static_GCJ='-Bstatic'
  13433. else
  13434. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  13435. fi
  13436. ;;
  13437. darwin*)
  13438. # PIC is the default on this platform
  13439. # Common symbols not allowed in MH_DYLIB files
  13440. case $cc_basename in
  13441. xlc*)
  13442. lt_prog_compiler_pic_GCJ='-qnocommon'
  13443. lt_prog_compiler_wl_GCJ='-Wl,'
  13444. ;;
  13445. esac
  13446. ;;
  13447. mingw* | pw32* | os2*)
  13448. # This hack is so that the source file can tell whether it is being
  13449. # built for inclusion in a dll (and should export symbols for example).
  13450. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  13451. ;;
  13452. hpux9* | hpux10* | hpux11*)
  13453. lt_prog_compiler_wl_GCJ='-Wl,'
  13454. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13455. # not for PA HP-UX.
  13456. case $host_cpu in
  13457. hppa*64*|ia64*)
  13458. # +Z the default
  13459. ;;
  13460. *)
  13461. lt_prog_compiler_pic_GCJ='+Z'
  13462. ;;
  13463. esac
  13464. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13465. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  13466. ;;
  13467. irix5* | irix6* | nonstopux*)
  13468. lt_prog_compiler_wl_GCJ='-Wl,'
  13469. # PIC (with -KPIC) is the default.
  13470. lt_prog_compiler_static_GCJ='-non_shared'
  13471. ;;
  13472. newsos6)
  13473. lt_prog_compiler_pic_GCJ='-KPIC'
  13474. lt_prog_compiler_static_GCJ='-Bstatic'
  13475. ;;
  13476. linux*)
  13477. case $cc_basename in
  13478. icc* | ecc*)
  13479. lt_prog_compiler_wl_GCJ='-Wl,'
  13480. lt_prog_compiler_pic_GCJ='-KPIC'
  13481. lt_prog_compiler_static_GCJ='-static'
  13482. ;;
  13483. pgcc* | pgf77* | pgf90* | pgf95*)
  13484. # Portland Group compilers (*not* the Pentium gcc compiler,
  13485. # which looks to be a dead project)
  13486. lt_prog_compiler_wl_GCJ='-Wl,'
  13487. lt_prog_compiler_pic_GCJ='-fpic'
  13488. lt_prog_compiler_static_GCJ='-Bstatic'
  13489. ;;
  13490. ccc*)
  13491. lt_prog_compiler_wl_GCJ='-Wl,'
  13492. # All Alpha code is PIC.
  13493. lt_prog_compiler_static_GCJ='-non_shared'
  13494. ;;
  13495. esac
  13496. ;;
  13497. osf3* | osf4* | osf5*)
  13498. lt_prog_compiler_wl_GCJ='-Wl,'
  13499. # All OSF/1 code is PIC.
  13500. lt_prog_compiler_static_GCJ='-non_shared'
  13501. ;;
  13502. solaris*)
  13503. lt_prog_compiler_pic_GCJ='-KPIC'
  13504. lt_prog_compiler_static_GCJ='-Bstatic'
  13505. case $cc_basename in
  13506. f77* | f90* | f95*)
  13507. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  13508. *)
  13509. lt_prog_compiler_wl_GCJ='-Wl,';;
  13510. esac
  13511. ;;
  13512. sunos4*)
  13513. lt_prog_compiler_wl_GCJ='-Qoption ld '
  13514. lt_prog_compiler_pic_GCJ='-PIC'
  13515. lt_prog_compiler_static_GCJ='-Bstatic'
  13516. ;;
  13517. sysv4 | sysv4.2uw2* | sysv4.3*)
  13518. lt_prog_compiler_wl_GCJ='-Wl,'
  13519. lt_prog_compiler_pic_GCJ='-KPIC'
  13520. lt_prog_compiler_static_GCJ='-Bstatic'
  13521. ;;
  13522. sysv4*MP*)
  13523. if test -d /usr/nec ;then
  13524. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  13525. lt_prog_compiler_static_GCJ='-Bstatic'
  13526. fi
  13527. ;;
  13528. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13529. lt_prog_compiler_wl_GCJ='-Wl,'
  13530. lt_prog_compiler_pic_GCJ='-KPIC'
  13531. lt_prog_compiler_static_GCJ='-Bstatic'
  13532. ;;
  13533. unicos*)
  13534. lt_prog_compiler_wl_GCJ='-Wl,'
  13535. lt_prog_compiler_can_build_shared_GCJ=no
  13536. ;;
  13537. uts4*)
  13538. lt_prog_compiler_pic_GCJ='-pic'
  13539. lt_prog_compiler_static_GCJ='-Bstatic'
  13540. ;;
  13541. *)
  13542. lt_prog_compiler_can_build_shared_GCJ=no
  13543. ;;
  13544. esac
  13545. fi
  13546. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  13547. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  13548. #
  13549. # Check to make sure the PIC flag actually works.
  13550. #
  13551. if test -n "$lt_prog_compiler_pic_GCJ"; then
  13552. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  13553. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  13554. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  13555. echo $ECHO_N "(cached) $ECHO_C" >&6
  13556. else
  13557. lt_prog_compiler_pic_works_GCJ=no
  13558. ac_outfile=conftest.$ac_objext
  13559. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13560. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  13561. # Insert the option either (1) after the last *FLAGS variable, or
  13562. # (2) before a word containing "conftest.", or (3) at the end.
  13563. # Note that $ac_compile itself does not contain backslashes and begins
  13564. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13565. # The option is referenced via a variable to avoid confusing sed.
  13566. lt_compile=`echo "$ac_compile" | $SED \
  13567. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13568. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13569. -e 's:$: $lt_compiler_flag:'`
  13570. (eval echo "\"\$as_me:15112: $lt_compile\"" >&5)
  13571. (eval "$lt_compile" 2>conftest.err)
  13572. ac_status=$?
  13573. cat conftest.err >&5
  13574. echo "$as_me:15116: \$? = $ac_status" >&5
  13575. if (exit $ac_status) && test -s "$ac_outfile"; then
  13576. # The compiler can only warn and ignore the option if not recognized
  13577. # So say no if there are warnings other than the usual output.
  13578. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13579. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13580. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13581. lt_prog_compiler_pic_works_GCJ=yes
  13582. fi
  13583. fi
  13584. $rm conftest*
  13585. fi
  13586. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  13587. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  13588. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  13589. case $lt_prog_compiler_pic_GCJ in
  13590. "" | " "*) ;;
  13591. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  13592. esac
  13593. else
  13594. lt_prog_compiler_pic_GCJ=
  13595. lt_prog_compiler_can_build_shared_GCJ=no
  13596. fi
  13597. fi
  13598. case $host_os in
  13599. # For platforms which do not support PIC, -DPIC is meaningless:
  13600. *djgpp*)
  13601. lt_prog_compiler_pic_GCJ=
  13602. ;;
  13603. *)
  13604. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  13605. ;;
  13606. esac
  13607. #
  13608. # Check to make sure the static flag actually works.
  13609. #
  13610. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  13611. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13612. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  13613. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  13614. echo $ECHO_N "(cached) $ECHO_C" >&6
  13615. else
  13616. lt_prog_compiler_static_works_GCJ=no
  13617. save_LDFLAGS="$LDFLAGS"
  13618. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13619. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  13620. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13621. # The linker can only warn and ignore the option if not recognized
  13622. # So say no if there are warnings
  13623. if test -s conftest.err; then
  13624. # Append any errors to the config.log.
  13625. cat conftest.err 1>&5
  13626. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  13627. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13628. if diff conftest.exp conftest.er2 >/dev/null; then
  13629. lt_prog_compiler_static_works_GCJ=yes
  13630. fi
  13631. else
  13632. lt_prog_compiler_static_works_GCJ=yes
  13633. fi
  13634. fi
  13635. $rm conftest*
  13636. LDFLAGS="$save_LDFLAGS"
  13637. fi
  13638. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  13639. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  13640. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  13641. :
  13642. else
  13643. lt_prog_compiler_static_GCJ=
  13644. fi
  13645. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13646. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  13647. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  13648. echo $ECHO_N "(cached) $ECHO_C" >&6
  13649. else
  13650. lt_cv_prog_compiler_c_o_GCJ=no
  13651. $rm -r conftest 2>/dev/null
  13652. mkdir conftest
  13653. cd conftest
  13654. mkdir out
  13655. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13656. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13657. # Insert the option either (1) after the last *FLAGS variable, or
  13658. # (2) before a word containing "conftest.", or (3) at the end.
  13659. # Note that $ac_compile itself does not contain backslashes and begins
  13660. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13661. lt_compile=`echo "$ac_compile" | $SED \
  13662. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13663. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13664. -e 's:$: $lt_compiler_flag:'`
  13665. (eval echo "\"\$as_me:15216: $lt_compile\"" >&5)
  13666. (eval "$lt_compile" 2>out/conftest.err)
  13667. ac_status=$?
  13668. cat out/conftest.err >&5
  13669. echo "$as_me:15220: \$? = $ac_status" >&5
  13670. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13671. then
  13672. # The compiler can only warn and ignore the option if not recognized
  13673. # So say no if there are warnings
  13674. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13675. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13676. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13677. lt_cv_prog_compiler_c_o_GCJ=yes
  13678. fi
  13679. fi
  13680. chmod u+w . 2>&5
  13681. $rm conftest*
  13682. # SGI C++ compiler will create directory out/ii_files/ for
  13683. # template instantiation
  13684. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13685. $rm out/* && rmdir out
  13686. cd ..
  13687. rmdir conftest
  13688. $rm conftest*
  13689. fi
  13690. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  13691. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  13692. hard_links="nottested"
  13693. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  13694. # do not overwrite the value of need_locks provided by the user
  13695. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13696. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  13697. hard_links=yes
  13698. $rm conftest*
  13699. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13700. touch conftest.a
  13701. ln conftest.a conftest.b 2>&5 || hard_links=no
  13702. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13703. echo "$as_me:$LINENO: result: $hard_links" >&5
  13704. echo "${ECHO_T}$hard_links" >&6
  13705. if test "$hard_links" = no; then
  13706. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13707. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13708. need_locks=warn
  13709. fi
  13710. else
  13711. need_locks=no
  13712. fi
  13713. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13714. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  13715. runpath_var=
  13716. allow_undefined_flag_GCJ=
  13717. enable_shared_with_static_runtimes_GCJ=no
  13718. archive_cmds_GCJ=
  13719. archive_expsym_cmds_GCJ=
  13720. old_archive_From_new_cmds_GCJ=
  13721. old_archive_from_expsyms_cmds_GCJ=
  13722. export_dynamic_flag_spec_GCJ=
  13723. whole_archive_flag_spec_GCJ=
  13724. thread_safe_flag_spec_GCJ=
  13725. hardcode_libdir_flag_spec_GCJ=
  13726. hardcode_libdir_flag_spec_ld_GCJ=
  13727. hardcode_libdir_separator_GCJ=
  13728. hardcode_direct_GCJ=no
  13729. hardcode_minus_L_GCJ=no
  13730. hardcode_shlibpath_var_GCJ=unsupported
  13731. link_all_deplibs_GCJ=unknown
  13732. hardcode_automatic_GCJ=no
  13733. module_cmds_GCJ=
  13734. module_expsym_cmds_GCJ=
  13735. always_export_symbols_GCJ=no
  13736. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13737. # include_expsyms should be a list of space-separated symbols to be *always*
  13738. # included in the symbol list
  13739. include_expsyms_GCJ=
  13740. # exclude_expsyms can be an extended regexp of symbols to exclude
  13741. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13742. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13743. # as well as any symbol that contains `d'.
  13744. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  13745. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13746. # platforms (ab)use it in PIC code, but their linkers get confused if
  13747. # the symbol is explicitly referenced. Since portable code cannot
  13748. # rely on this symbol name, it's probably fine to never include it in
  13749. # preloaded symbol tables.
  13750. extract_expsyms_cmds=
  13751. # Just being paranoid about ensuring that cc_basename is set.
  13752. for cc_temp in $compiler""; do
  13753. case $cc_temp in
  13754. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13755. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13756. \-*) ;;
  13757. *) break;;
  13758. esac
  13759. done
  13760. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13761. case $host_os in
  13762. cygwin* | mingw* | pw32*)
  13763. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13764. # When not using gcc, we currently assume that we are using
  13765. # Microsoft Visual C++.
  13766. if test "$GCC" != yes; then
  13767. with_gnu_ld=no
  13768. fi
  13769. ;;
  13770. interix*)
  13771. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13772. with_gnu_ld=yes
  13773. ;;
  13774. openbsd*)
  13775. with_gnu_ld=no
  13776. ;;
  13777. esac
  13778. ld_shlibs_GCJ=yes
  13779. if test "$with_gnu_ld" = yes; then
  13780. # If archive_cmds runs LD, not CC, wlarc should be empty
  13781. wlarc='${wl}'
  13782. # Set some defaults for GNU ld with shared library support. These
  13783. # are reset later if shared libraries are not supported. Putting them
  13784. # here allows them to be overridden if necessary.
  13785. runpath_var=LD_RUN_PATH
  13786. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  13787. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  13788. # ancient GNU ld didn't support --whole-archive et. al.
  13789. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13790. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13791. else
  13792. whole_archive_flag_spec_GCJ=
  13793. fi
  13794. supports_anon_versioning=no
  13795. case `$LD -v 2>/dev/null` in
  13796. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13797. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13798. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13799. *\ 2.11.*) ;; # other 2.11 versions
  13800. *) supports_anon_versioning=yes ;;
  13801. esac
  13802. # See if GNU ld supports shared libraries.
  13803. case $host_os in
  13804. aix3* | aix4* | aix5*)
  13805. # On AIX/PPC, the GNU linker is very broken
  13806. if test "$host_cpu" != ia64; then
  13807. ld_shlibs_GCJ=no
  13808. cat <<EOF 1>&2
  13809. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13810. *** to be unable to reliably create shared libraries on AIX.
  13811. *** Therefore, libtool is disabling shared libraries support. If you
  13812. *** really care for shared libraries, you may want to modify your PATH
  13813. *** so that a non-GNU linker is found, and then restart.
  13814. EOF
  13815. fi
  13816. ;;
  13817. amigaos*)
  13818. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13819. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13820. hardcode_minus_L_GCJ=yes
  13821. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13822. # that the semantics of dynamic libraries on AmigaOS, at least up
  13823. # to version 4, is to share data among multiple programs linked
  13824. # with the same dynamic library. Since this doesn't match the
  13825. # behavior of shared libraries on other platforms, we can't use
  13826. # them.
  13827. ld_shlibs_GCJ=no
  13828. ;;
  13829. beos*)
  13830. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13831. allow_undefined_flag_GCJ=unsupported
  13832. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13833. # support --undefined. This deserves some investigation. FIXME
  13834. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13835. else
  13836. ld_shlibs_GCJ=no
  13837. fi
  13838. ;;
  13839. cygwin* | mingw* | pw32*)
  13840. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  13841. # as there is no search path for DLLs.
  13842. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13843. allow_undefined_flag_GCJ=unsupported
  13844. always_export_symbols_GCJ=no
  13845. enable_shared_with_static_runtimes_GCJ=yes
  13846. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  13847. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13848. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13849. # If the export-symbols file already is a .def file (1st line
  13850. # is EXPORTS), use it as is; otherwise, prepend...
  13851. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13852. cp $export_symbols $output_objdir/$soname.def;
  13853. else
  13854. echo EXPORTS > $output_objdir/$soname.def;
  13855. cat $export_symbols >> $output_objdir/$soname.def;
  13856. fi~
  13857. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13858. else
  13859. ld_shlibs_GCJ=no
  13860. fi
  13861. ;;
  13862. interix3*)
  13863. hardcode_direct_GCJ=no
  13864. hardcode_shlibpath_var_GCJ=no
  13865. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  13866. export_dynamic_flag_spec_GCJ='${wl}-E'
  13867. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13868. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13869. # default) and relocated if they conflict, which is a slow very memory
  13870. # consuming and fragmenting process. To avoid this, we pick a random,
  13871. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13872. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13873. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13874. archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13875. ;;
  13876. linux*)
  13877. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13878. tmp_addflag=
  13879. case $cc_basename,$host_cpu in
  13880. pgcc*) # Portland Group C compiler
  13881. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13882. tmp_addflag=' $pic_flag'
  13883. ;;
  13884. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13885. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13886. tmp_addflag=' $pic_flag -Mnomain' ;;
  13887. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13888. tmp_addflag=' -i_dynamic' ;;
  13889. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13890. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13891. ifc* | ifort*) # Intel Fortran compiler
  13892. tmp_addflag=' -nofor_main' ;;
  13893. esac
  13894. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13895. if test $supports_anon_versioning = yes; then
  13896. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  13897. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13898. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13899. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13900. fi
  13901. else
  13902. ld_shlibs_GCJ=no
  13903. fi
  13904. ;;
  13905. netbsd*)
  13906. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13907. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13908. wlarc=
  13909. else
  13910. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13911. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13912. fi
  13913. ;;
  13914. solaris*)
  13915. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13916. ld_shlibs_GCJ=no
  13917. cat <<EOF 1>&2
  13918. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13919. *** create shared libraries on Solaris systems. Therefore, libtool
  13920. *** is disabling shared libraries support. We urge you to upgrade GNU
  13921. *** binutils to release 2.9.1 or newer. Another option is to modify
  13922. *** your PATH or compiler configuration so that the native linker is
  13923. *** used, and then restart.
  13924. EOF
  13925. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13926. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13927. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13928. else
  13929. ld_shlibs_GCJ=no
  13930. fi
  13931. ;;
  13932. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13933. case `$LD -v 2>&1` in
  13934. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13935. ld_shlibs_GCJ=no
  13936. cat <<_LT_EOF 1>&2
  13937. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13938. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13939. *** is disabling shared libraries support. We urge you to upgrade GNU
  13940. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13941. *** your PATH or compiler configuration so that the native linker is
  13942. *** used, and then restart.
  13943. _LT_EOF
  13944. ;;
  13945. *)
  13946. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13947. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13948. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13949. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13950. else
  13951. ld_shlibs_GCJ=no
  13952. fi
  13953. ;;
  13954. esac
  13955. ;;
  13956. sunos4*)
  13957. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13958. wlarc=
  13959. hardcode_direct_GCJ=yes
  13960. hardcode_shlibpath_var_GCJ=no
  13961. ;;
  13962. *)
  13963. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13964. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13965. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13966. else
  13967. ld_shlibs_GCJ=no
  13968. fi
  13969. ;;
  13970. esac
  13971. if test "$ld_shlibs_GCJ" = no; then
  13972. runpath_var=
  13973. hardcode_libdir_flag_spec_GCJ=
  13974. export_dynamic_flag_spec_GCJ=
  13975. whole_archive_flag_spec_GCJ=
  13976. fi
  13977. else
  13978. # PORTME fill in a description of your system's linker (not GNU ld)
  13979. case $host_os in
  13980. aix3*)
  13981. allow_undefined_flag_GCJ=unsupported
  13982. always_export_symbols_GCJ=yes
  13983. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13984. # Note: this linker hardcodes the directories in LIBPATH if there
  13985. # are no directories specified by -L.
  13986. hardcode_minus_L_GCJ=yes
  13987. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13988. # Neither direct hardcoding nor static linking is supported with a
  13989. # broken collect2.
  13990. hardcode_direct_GCJ=unsupported
  13991. fi
  13992. ;;
  13993. aix4* | aix5*)
  13994. if test "$host_cpu" = ia64; then
  13995. # On IA64, the linker does run time linking by default, so we don't
  13996. # have to do anything special.
  13997. aix_use_runtimelinking=no
  13998. exp_sym_flag='-Bexport'
  13999. no_entry_flag=""
  14000. else
  14001. # If we're using GNU nm, then we don't want the "-C" option.
  14002. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14003. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14004. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14005. else
  14006. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14007. fi
  14008. aix_use_runtimelinking=no
  14009. # Test if we are trying to use run time linking or normal
  14010. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14011. # need to do runtime linking.
  14012. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14013. for ld_flag in $LDFLAGS; do
  14014. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14015. aix_use_runtimelinking=yes
  14016. break
  14017. fi
  14018. done
  14019. ;;
  14020. esac
  14021. exp_sym_flag='-bexport'
  14022. no_entry_flag='-bnoentry'
  14023. fi
  14024. # When large executables or shared objects are built, AIX ld can
  14025. # have problems creating the table of contents. If linking a library
  14026. # or program results in "error TOC overflow" add -mminimal-toc to
  14027. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14028. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14029. archive_cmds_GCJ=''
  14030. hardcode_direct_GCJ=yes
  14031. hardcode_libdir_separator_GCJ=':'
  14032. link_all_deplibs_GCJ=yes
  14033. if test "$GCC" = yes; then
  14034. case $host_os in aix4.[012]|aix4.[012].*)
  14035. # We only want to do this on AIX 4.2 and lower, the check
  14036. # below for broken collect2 doesn't work under 4.3+
  14037. collect2name=`${CC} -print-prog-name=collect2`
  14038. if test -f "$collect2name" && \
  14039. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14040. then
  14041. # We have reworked collect2
  14042. hardcode_direct_GCJ=yes
  14043. else
  14044. # We have old collect2
  14045. hardcode_direct_GCJ=unsupported
  14046. # It fails to find uninstalled libraries when the uninstalled
  14047. # path is not listed in the libpath. Setting hardcode_minus_L
  14048. # to unsupported forces relinking
  14049. hardcode_minus_L_GCJ=yes
  14050. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14051. hardcode_libdir_separator_GCJ=
  14052. fi
  14053. ;;
  14054. esac
  14055. shared_flag='-shared'
  14056. if test "$aix_use_runtimelinking" = yes; then
  14057. shared_flag="$shared_flag "'${wl}-G'
  14058. fi
  14059. else
  14060. # not using gcc
  14061. if test "$host_cpu" = ia64; then
  14062. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14063. # chokes on -Wl,-G. The following line is correct:
  14064. shared_flag='-G'
  14065. else
  14066. if test "$aix_use_runtimelinking" = yes; then
  14067. shared_flag='${wl}-G'
  14068. else
  14069. shared_flag='${wl}-bM:SRE'
  14070. fi
  14071. fi
  14072. fi
  14073. # It seems that -bexpall does not export symbols beginning with
  14074. # underscore (_), so it is better to generate a list of symbols to export.
  14075. always_export_symbols_GCJ=yes
  14076. if test "$aix_use_runtimelinking" = yes; then
  14077. # Warning - without using the other runtime loading flags (-brtl),
  14078. # -berok will link without error, but may produce a broken library.
  14079. allow_undefined_flag_GCJ='-berok'
  14080. # Determine the default libpath from the value encoded in an empty executable.
  14081. cat >conftest.$ac_ext <<_ACEOF
  14082. /* confdefs.h. */
  14083. _ACEOF
  14084. cat confdefs.h >>conftest.$ac_ext
  14085. cat >>conftest.$ac_ext <<_ACEOF
  14086. /* end confdefs.h. */
  14087. int
  14088. main ()
  14089. {
  14090. ;
  14091. return 0;
  14092. }
  14093. _ACEOF
  14094. rm -f conftest.$ac_objext conftest$ac_exeext
  14095. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14096. (eval $ac_link) 2>conftest.er1
  14097. ac_status=$?
  14098. grep -v '^ *+' conftest.er1 >conftest.err
  14099. rm -f conftest.er1
  14100. cat conftest.err >&5
  14101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14102. (exit $ac_status); } &&
  14103. { ac_try='test -z "$ac_c_werror_flag"
  14104. || test ! -s conftest.err'
  14105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14106. (eval $ac_try) 2>&5
  14107. ac_status=$?
  14108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14109. (exit $ac_status); }; } &&
  14110. { ac_try='test -s conftest$ac_exeext'
  14111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14112. (eval $ac_try) 2>&5
  14113. ac_status=$?
  14114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14115. (exit $ac_status); }; }; then
  14116. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14117. }'`
  14118. # Check for a 64-bit object if we didn't find anything.
  14119. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14120. }'`; fi
  14121. else
  14122. echo "$as_me: failed program was:" >&5
  14123. sed 's/^/| /' conftest.$ac_ext >&5
  14124. fi
  14125. rm -f conftest.err conftest.$ac_objext \
  14126. conftest$ac_exeext conftest.$ac_ext
  14127. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14128. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14129. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14130. else
  14131. if test "$host_cpu" = ia64; then
  14132. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14133. allow_undefined_flag_GCJ="-z nodefs"
  14134. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  14135. else
  14136. # Determine the default libpath from the value encoded in an empty executable.
  14137. cat >conftest.$ac_ext <<_ACEOF
  14138. /* confdefs.h. */
  14139. _ACEOF
  14140. cat confdefs.h >>conftest.$ac_ext
  14141. cat >>conftest.$ac_ext <<_ACEOF
  14142. /* end confdefs.h. */
  14143. int
  14144. main ()
  14145. {
  14146. ;
  14147. return 0;
  14148. }
  14149. _ACEOF
  14150. rm -f conftest.$ac_objext conftest$ac_exeext
  14151. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14152. (eval $ac_link) 2>conftest.er1
  14153. ac_status=$?
  14154. grep -v '^ *+' conftest.er1 >conftest.err
  14155. rm -f conftest.er1
  14156. cat conftest.err >&5
  14157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14158. (exit $ac_status); } &&
  14159. { ac_try='test -z "$ac_c_werror_flag"
  14160. || test ! -s conftest.err'
  14161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14162. (eval $ac_try) 2>&5
  14163. ac_status=$?
  14164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14165. (exit $ac_status); }; } &&
  14166. { ac_try='test -s conftest$ac_exeext'
  14167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14168. (eval $ac_try) 2>&5
  14169. ac_status=$?
  14170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14171. (exit $ac_status); }; }; then
  14172. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14173. }'`
  14174. # Check for a 64-bit object if we didn't find anything.
  14175. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14176. }'`; fi
  14177. else
  14178. echo "$as_me: failed program was:" >&5
  14179. sed 's/^/| /' conftest.$ac_ext >&5
  14180. fi
  14181. rm -f conftest.err conftest.$ac_objext \
  14182. conftest$ac_exeext conftest.$ac_ext
  14183. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14184. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14185. # Warning - without using the other run time loading flags,
  14186. # -berok will link without error, but may produce a broken library.
  14187. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14188. allow_undefined_flag_GCJ=' ${wl}-berok'
  14189. # Exported symbols can be pulled into shared objects from archives
  14190. whole_archive_flag_spec_GCJ='$convenience'
  14191. archive_cmds_need_lc_GCJ=yes
  14192. # This is similar to how AIX traditionally builds its shared libraries.
  14193. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  14194. fi
  14195. fi
  14196. ;;
  14197. amigaos*)
  14198. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  14199. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14200. hardcode_minus_L_GCJ=yes
  14201. # see comment about different semantics on the GNU ld section
  14202. ld_shlibs_GCJ=no
  14203. ;;
  14204. bsdi[45]*)
  14205. export_dynamic_flag_spec_GCJ=-rdynamic
  14206. ;;
  14207. cygwin* | mingw* | pw32*)
  14208. # When not using gcc, we currently assume that we are using
  14209. # Microsoft Visual C++.
  14210. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14211. # no search path for DLLs.
  14212. hardcode_libdir_flag_spec_GCJ=' '
  14213. allow_undefined_flag_GCJ=unsupported
  14214. # Tell ltmain to make .lib files, not .a files.
  14215. libext=lib
  14216. # Tell ltmain to make .dll files, not .so files.
  14217. shrext_cmds=".dll"
  14218. # FIXME: Setting linknames here is a bad hack.
  14219. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14220. # The linker will automatically build a .lib file if we build a DLL.
  14221. old_archive_From_new_cmds_GCJ='true'
  14222. # FIXME: Should let the user specify the lib program.
  14223. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14224. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  14225. enable_shared_with_static_runtimes_GCJ=yes
  14226. ;;
  14227. darwin* | rhapsody*)
  14228. case $host_os in
  14229. rhapsody* | darwin1.[012])
  14230. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  14231. ;;
  14232. *) # Darwin 1.3 on
  14233. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14234. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14235. else
  14236. case ${MACOSX_DEPLOYMENT_TARGET} in
  14237. 10.[012])
  14238. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14239. ;;
  14240. 10.*)
  14241. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  14242. ;;
  14243. esac
  14244. fi
  14245. ;;
  14246. esac
  14247. archive_cmds_need_lc_GCJ=no
  14248. hardcode_direct_GCJ=no
  14249. hardcode_automatic_GCJ=yes
  14250. hardcode_shlibpath_var_GCJ=unsupported
  14251. whole_archive_flag_spec_GCJ=''
  14252. link_all_deplibs_GCJ=yes
  14253. if test "$GCC" = yes ; then
  14254. output_verbose_link_cmd='echo'
  14255. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14256. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14257. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14258. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14259. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14260. else
  14261. case $cc_basename in
  14262. xlc*)
  14263. output_verbose_link_cmd='echo'
  14264. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14265. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14266. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14267. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14268. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14269. ;;
  14270. *)
  14271. ld_shlibs_GCJ=no
  14272. ;;
  14273. esac
  14274. fi
  14275. ;;
  14276. dgux*)
  14277. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14278. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14279. hardcode_shlibpath_var_GCJ=no
  14280. ;;
  14281. freebsd1*)
  14282. ld_shlibs_GCJ=no
  14283. ;;
  14284. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14285. # support. Future versions do this automatically, but an explicit c++rt0.o
  14286. # does not break anything, and helps significantly (at the cost of a little
  14287. # extra space).
  14288. freebsd2.2*)
  14289. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14290. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14291. hardcode_direct_GCJ=yes
  14292. hardcode_shlibpath_var_GCJ=no
  14293. ;;
  14294. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14295. freebsd2*)
  14296. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14297. hardcode_direct_GCJ=yes
  14298. hardcode_minus_L_GCJ=yes
  14299. hardcode_shlibpath_var_GCJ=no
  14300. ;;
  14301. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14302. freebsd* | kfreebsd*-gnu | dragonfly*)
  14303. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14304. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14305. hardcode_direct_GCJ=yes
  14306. hardcode_shlibpath_var_GCJ=no
  14307. ;;
  14308. hpux9*)
  14309. if test "$GCC" = yes; then
  14310. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14311. else
  14312. archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14313. fi
  14314. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14315. hardcode_libdir_separator_GCJ=:
  14316. hardcode_direct_GCJ=yes
  14317. # hardcode_minus_L: Not really in the search PATH,
  14318. # but as the default location of the library.
  14319. hardcode_minus_L_GCJ=yes
  14320. export_dynamic_flag_spec_GCJ='${wl}-E'
  14321. ;;
  14322. hpux10*)
  14323. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14324. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14325. else
  14326. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14327. fi
  14328. if test "$with_gnu_ld" = no; then
  14329. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14330. hardcode_libdir_separator_GCJ=:
  14331. hardcode_direct_GCJ=yes
  14332. export_dynamic_flag_spec_GCJ='${wl}-E'
  14333. # hardcode_minus_L: Not really in the search PATH,
  14334. # but as the default location of the library.
  14335. hardcode_minus_L_GCJ=yes
  14336. fi
  14337. ;;
  14338. hpux11*)
  14339. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14340. case $host_cpu in
  14341. hppa*64*)
  14342. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14343. ;;
  14344. ia64*)
  14345. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14346. ;;
  14347. *)
  14348. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14349. ;;
  14350. esac
  14351. else
  14352. case $host_cpu in
  14353. hppa*64*)
  14354. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14355. ;;
  14356. ia64*)
  14357. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14358. ;;
  14359. *)
  14360. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14361. ;;
  14362. esac
  14363. fi
  14364. if test "$with_gnu_ld" = no; then
  14365. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14366. hardcode_libdir_separator_GCJ=:
  14367. case $host_cpu in
  14368. hppa*64*|ia64*)
  14369. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  14370. hardcode_direct_GCJ=no
  14371. hardcode_shlibpath_var_GCJ=no
  14372. ;;
  14373. *)
  14374. hardcode_direct_GCJ=yes
  14375. export_dynamic_flag_spec_GCJ='${wl}-E'
  14376. # hardcode_minus_L: Not really in the search PATH,
  14377. # but as the default location of the library.
  14378. hardcode_minus_L_GCJ=yes
  14379. ;;
  14380. esac
  14381. fi
  14382. ;;
  14383. irix5* | irix6* | nonstopux*)
  14384. if test "$GCC" = yes; then
  14385. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14386. else
  14387. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14388. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  14389. fi
  14390. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14391. hardcode_libdir_separator_GCJ=:
  14392. link_all_deplibs_GCJ=yes
  14393. ;;
  14394. netbsd*)
  14395. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14396. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14397. else
  14398. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14399. fi
  14400. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14401. hardcode_direct_GCJ=yes
  14402. hardcode_shlibpath_var_GCJ=no
  14403. ;;
  14404. newsos6)
  14405. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14406. hardcode_direct_GCJ=yes
  14407. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14408. hardcode_libdir_separator_GCJ=:
  14409. hardcode_shlibpath_var_GCJ=no
  14410. ;;
  14411. openbsd*)
  14412. hardcode_direct_GCJ=yes
  14413. hardcode_shlibpath_var_GCJ=no
  14414. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14415. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14416. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14417. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14418. export_dynamic_flag_spec_GCJ='${wl}-E'
  14419. else
  14420. case $host_os in
  14421. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14422. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14423. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14424. ;;
  14425. *)
  14426. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14427. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14428. ;;
  14429. esac
  14430. fi
  14431. ;;
  14432. os2*)
  14433. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14434. hardcode_minus_L_GCJ=yes
  14435. allow_undefined_flag_GCJ=unsupported
  14436. archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  14437. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14438. ;;
  14439. osf3*)
  14440. if test "$GCC" = yes; then
  14441. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14442. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14443. else
  14444. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14445. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14446. fi
  14447. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14448. hardcode_libdir_separator_GCJ=:
  14449. ;;
  14450. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14451. if test "$GCC" = yes; then
  14452. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14453. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14454. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14455. else
  14456. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14457. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14458. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  14459. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  14460. # Both c and cxx compiler support -rpath directly
  14461. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  14462. fi
  14463. hardcode_libdir_separator_GCJ=:
  14464. ;;
  14465. solaris*)
  14466. no_undefined_flag_GCJ=' -z text'
  14467. if test "$GCC" = yes; then
  14468. wlarc='${wl}'
  14469. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14470. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14471. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14472. else
  14473. wlarc=''
  14474. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14475. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14476. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14477. fi
  14478. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14479. hardcode_shlibpath_var_GCJ=no
  14480. case $host_os in
  14481. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14482. *)
  14483. # The compiler driver will combine linker options so we
  14484. # cannot just pass the convience library names through
  14485. # without $wl, iff we do not link with $LD.
  14486. # Luckily, gcc supports the same syntax we need for Sun Studio.
  14487. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14488. case $wlarc in
  14489. '')
  14490. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  14491. *)
  14492. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  14493. esac ;;
  14494. esac
  14495. link_all_deplibs_GCJ=yes
  14496. ;;
  14497. sunos4*)
  14498. if test "x$host_vendor" = xsequent; then
  14499. # Use $CC to link under sequent, because it throws in some extra .o
  14500. # files that make .init and .fini sections work.
  14501. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14502. else
  14503. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14504. fi
  14505. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14506. hardcode_direct_GCJ=yes
  14507. hardcode_minus_L_GCJ=yes
  14508. hardcode_shlibpath_var_GCJ=no
  14509. ;;
  14510. sysv4)
  14511. case $host_vendor in
  14512. sni)
  14513. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14514. hardcode_direct_GCJ=yes # is this really true???
  14515. ;;
  14516. siemens)
  14517. ## LD is ld it makes a PLAMLIB
  14518. ## CC just makes a GrossModule.
  14519. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14520. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  14521. hardcode_direct_GCJ=no
  14522. ;;
  14523. motorola)
  14524. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14525. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  14526. ;;
  14527. esac
  14528. runpath_var='LD_RUN_PATH'
  14529. hardcode_shlibpath_var_GCJ=no
  14530. ;;
  14531. sysv4.3*)
  14532. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14533. hardcode_shlibpath_var_GCJ=no
  14534. export_dynamic_flag_spec_GCJ='-Bexport'
  14535. ;;
  14536. sysv4*MP*)
  14537. if test -d /usr/nec; then
  14538. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14539. hardcode_shlibpath_var_GCJ=no
  14540. runpath_var=LD_RUN_PATH
  14541. hardcode_runpath_var=yes
  14542. ld_shlibs_GCJ=yes
  14543. fi
  14544. ;;
  14545. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  14546. no_undefined_flag_GCJ='${wl}-z,text'
  14547. archive_cmds_need_lc_GCJ=no
  14548. hardcode_shlibpath_var_GCJ=no
  14549. runpath_var='LD_RUN_PATH'
  14550. if test "$GCC" = yes; then
  14551. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14552. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14553. else
  14554. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14555. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14556. fi
  14557. ;;
  14558. sysv5* | sco3.2v5* | sco5v6*)
  14559. # Note: We can NOT use -z defs as we might desire, because we do not
  14560. # link with -lc, and that would cause any symbols used from libc to
  14561. # always be unresolved, which means just about no library would
  14562. # ever link correctly. If we're not using GNU ld we use -z text
  14563. # though, which does catch some bad symbols but isn't as heavy-handed
  14564. # as -z defs.
  14565. no_undefined_flag_GCJ='${wl}-z,text'
  14566. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  14567. archive_cmds_need_lc_GCJ=no
  14568. hardcode_shlibpath_var_GCJ=no
  14569. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  14570. hardcode_libdir_separator_GCJ=':'
  14571. link_all_deplibs_GCJ=yes
  14572. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  14573. runpath_var='LD_RUN_PATH'
  14574. if test "$GCC" = yes; then
  14575. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14576. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14577. else
  14578. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14579. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14580. fi
  14581. ;;
  14582. uts4*)
  14583. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14584. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14585. hardcode_shlibpath_var_GCJ=no
  14586. ;;
  14587. *)
  14588. ld_shlibs_GCJ=no
  14589. ;;
  14590. esac
  14591. fi
  14592. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  14593. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  14594. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  14595. #
  14596. # Do we need to explicitly link libc?
  14597. #
  14598. case "x$archive_cmds_need_lc_GCJ" in
  14599. x|xyes)
  14600. # Assume -lc should be added
  14601. archive_cmds_need_lc_GCJ=yes
  14602. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14603. case $archive_cmds_GCJ in
  14604. *'~'*)
  14605. # FIXME: we may have to deal with multi-command sequences.
  14606. ;;
  14607. '$CC '*)
  14608. # Test whether the compiler implicitly links with -lc since on some
  14609. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14610. # to ld, don't add -lc before -lgcc.
  14611. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14612. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  14613. $rm conftest*
  14614. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14615. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14616. (eval $ac_compile) 2>&5
  14617. ac_status=$?
  14618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14619. (exit $ac_status); } 2>conftest.err; then
  14620. soname=conftest
  14621. lib=conftest
  14622. libobjs=conftest.$ac_objext
  14623. deplibs=
  14624. wl=$lt_prog_compiler_wl_GCJ
  14625. pic_flag=$lt_prog_compiler_pic_GCJ
  14626. compiler_flags=-v
  14627. linker_flags=-v
  14628. verstring=
  14629. output_objdir=.
  14630. libname=conftest
  14631. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  14632. allow_undefined_flag_GCJ=
  14633. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14634. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14635. ac_status=$?
  14636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14637. (exit $ac_status); }
  14638. then
  14639. archive_cmds_need_lc_GCJ=no
  14640. else
  14641. archive_cmds_need_lc_GCJ=yes
  14642. fi
  14643. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  14644. else
  14645. cat conftest.err 1>&5
  14646. fi
  14647. $rm conftest*
  14648. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  14649. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  14650. ;;
  14651. esac
  14652. fi
  14653. ;;
  14654. esac
  14655. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14656. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  14657. library_names_spec=
  14658. libname_spec='lib$name'
  14659. soname_spec=
  14660. shrext_cmds=".so"
  14661. postinstall_cmds=
  14662. postuninstall_cmds=
  14663. finish_cmds=
  14664. finish_eval=
  14665. shlibpath_var=
  14666. shlibpath_overrides_runpath=unknown
  14667. version_type=none
  14668. dynamic_linker="$host_os ld.so"
  14669. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14670. if test "$GCC" = yes; then
  14671. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14672. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14673. # if the path contains ";" then we assume it to be the separator
  14674. # otherwise default to the standard path separator (i.e. ":") - it is
  14675. # assumed that no part of a normal pathname contains ";" but that should
  14676. # okay in the real world where ";" in dirpaths is itself problematic.
  14677. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14678. else
  14679. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14680. fi
  14681. else
  14682. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14683. fi
  14684. need_lib_prefix=unknown
  14685. hardcode_into_libs=no
  14686. # when you set need_version to no, make sure it does not cause -set_version
  14687. # flags to be left without arguments
  14688. need_version=unknown
  14689. case $host_os in
  14690. aix3*)
  14691. version_type=linux
  14692. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14693. shlibpath_var=LIBPATH
  14694. # AIX 3 has no versioning support, so we append a major version to the name.
  14695. soname_spec='${libname}${release}${shared_ext}$major'
  14696. ;;
  14697. aix4* | aix5*)
  14698. version_type=linux
  14699. need_lib_prefix=no
  14700. need_version=no
  14701. hardcode_into_libs=yes
  14702. if test "$host_cpu" = ia64; then
  14703. # AIX 5 supports IA64
  14704. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14705. shlibpath_var=LD_LIBRARY_PATH
  14706. else
  14707. # With GCC up to 2.95.x, collect2 would create an import file
  14708. # for dependence libraries. The import file would start with
  14709. # the line `#! .'. This would cause the generated library to
  14710. # depend on `.', always an invalid library. This was fixed in
  14711. # development snapshots of GCC prior to 3.0.
  14712. case $host_os in
  14713. aix4 | aix4.[01] | aix4.[01].*)
  14714. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14715. echo ' yes '
  14716. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14717. :
  14718. else
  14719. can_build_shared=no
  14720. fi
  14721. ;;
  14722. esac
  14723. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14724. # soname into executable. Probably we can add versioning support to
  14725. # collect2, so additional links can be useful in future.
  14726. if test "$aix_use_runtimelinking" = yes; then
  14727. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14728. # instead of lib<name>.a to let people know that these are not
  14729. # typical AIX shared libraries.
  14730. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14731. else
  14732. # We preserve .a as extension for shared libraries through AIX4.2
  14733. # and later when we are not doing run time linking.
  14734. library_names_spec='${libname}${release}.a $libname.a'
  14735. soname_spec='${libname}${release}${shared_ext}$major'
  14736. fi
  14737. shlibpath_var=LIBPATH
  14738. fi
  14739. ;;
  14740. amigaos*)
  14741. library_names_spec='$libname.ixlibrary $libname.a'
  14742. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14743. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14744. ;;
  14745. beos*)
  14746. library_names_spec='${libname}${shared_ext}'
  14747. dynamic_linker="$host_os ld.so"
  14748. shlibpath_var=LIBRARY_PATH
  14749. ;;
  14750. bsdi[45]*)
  14751. version_type=linux
  14752. need_version=no
  14753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14754. soname_spec='${libname}${release}${shared_ext}$major'
  14755. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14756. shlibpath_var=LD_LIBRARY_PATH
  14757. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14758. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14759. # the default ld.so.conf also contains /usr/contrib/lib and
  14760. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14761. # libtool to hard-code these into programs
  14762. ;;
  14763. cygwin* | mingw* | pw32*)
  14764. version_type=windows
  14765. shrext_cmds=".dll"
  14766. need_version=no
  14767. need_lib_prefix=no
  14768. case $GCC,$host_os in
  14769. yes,cygwin* | yes,mingw* | yes,pw32*)
  14770. library_names_spec='$libname.dll.a'
  14771. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14772. postinstall_cmds='base_file=`basename \${file}`~
  14773. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14774. dldir=$destdir/`dirname \$dlpath`~
  14775. test -d \$dldir || mkdir -p \$dldir~
  14776. $install_prog $dir/$dlname \$dldir/$dlname~
  14777. chmod a+x \$dldir/$dlname'
  14778. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14779. dlpath=$dir/\$dldll~
  14780. $rm \$dlpath'
  14781. shlibpath_overrides_runpath=yes
  14782. case $host_os in
  14783. cygwin*)
  14784. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14785. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14786. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14787. ;;
  14788. mingw*)
  14789. # MinGW DLLs use traditional 'lib' prefix
  14790. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14791. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14792. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14793. # It is most probably a Windows format PATH printed by
  14794. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14795. # path with ; separators, and with drive letters. We can handle the
  14796. # drive letters (cygwin fileutils understands them), so leave them,
  14797. # especially as we might pass files found there to a mingw objdump,
  14798. # which wouldn't understand a cygwinified path. Ahh.
  14799. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14800. else
  14801. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14802. fi
  14803. ;;
  14804. pw32*)
  14805. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14806. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14807. ;;
  14808. esac
  14809. ;;
  14810. *)
  14811. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14812. ;;
  14813. esac
  14814. dynamic_linker='Win32 ld.exe'
  14815. # FIXME: first we should search . and the directory the executable is in
  14816. shlibpath_var=PATH
  14817. ;;
  14818. darwin* | rhapsody*)
  14819. dynamic_linker="$host_os dyld"
  14820. version_type=darwin
  14821. need_lib_prefix=no
  14822. need_version=no
  14823. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14824. soname_spec='${libname}${release}${major}$shared_ext'
  14825. shlibpath_overrides_runpath=yes
  14826. shlibpath_var=DYLD_LIBRARY_PATH
  14827. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14828. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14829. if test "$GCC" = yes; then
  14830. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  14831. else
  14832. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14833. fi
  14834. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14835. ;;
  14836. dgux*)
  14837. version_type=linux
  14838. need_lib_prefix=no
  14839. need_version=no
  14840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14841. soname_spec='${libname}${release}${shared_ext}$major'
  14842. shlibpath_var=LD_LIBRARY_PATH
  14843. ;;
  14844. freebsd1*)
  14845. dynamic_linker=no
  14846. ;;
  14847. kfreebsd*-gnu)
  14848. version_type=linux
  14849. need_lib_prefix=no
  14850. need_version=no
  14851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14852. soname_spec='${libname}${release}${shared_ext}$major'
  14853. shlibpath_var=LD_LIBRARY_PATH
  14854. shlibpath_overrides_runpath=no
  14855. hardcode_into_libs=yes
  14856. dynamic_linker='GNU ld.so'
  14857. ;;
  14858. freebsd* | dragonfly*)
  14859. # DragonFly does not have aout. When/if they implement a new
  14860. # versioning mechanism, adjust this.
  14861. if test -x /usr/bin/objformat; then
  14862. objformat=`/usr/bin/objformat`
  14863. else
  14864. case $host_os in
  14865. freebsd[123]*) objformat=aout ;;
  14866. *) objformat=elf ;;
  14867. esac
  14868. fi
  14869. version_type=freebsd-$objformat
  14870. case $version_type in
  14871. freebsd-elf*)
  14872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14873. need_version=no
  14874. need_lib_prefix=no
  14875. ;;
  14876. freebsd-*)
  14877. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14878. need_version=yes
  14879. ;;
  14880. esac
  14881. shlibpath_var=LD_LIBRARY_PATH
  14882. case $host_os in
  14883. freebsd2*)
  14884. shlibpath_overrides_runpath=yes
  14885. ;;
  14886. freebsd3.[01]* | freebsdelf3.[01]*)
  14887. shlibpath_overrides_runpath=yes
  14888. hardcode_into_libs=yes
  14889. ;;
  14890. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14891. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14892. shlibpath_overrides_runpath=no
  14893. hardcode_into_libs=yes
  14894. ;;
  14895. freebsd*) # from 4.6 on
  14896. shlibpath_overrides_runpath=yes
  14897. hardcode_into_libs=yes
  14898. ;;
  14899. esac
  14900. ;;
  14901. gnu*)
  14902. version_type=linux
  14903. need_lib_prefix=no
  14904. need_version=no
  14905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14906. soname_spec='${libname}${release}${shared_ext}$major'
  14907. shlibpath_var=LD_LIBRARY_PATH
  14908. hardcode_into_libs=yes
  14909. ;;
  14910. hpux9* | hpux10* | hpux11*)
  14911. # Give a soname corresponding to the major version so that dld.sl refuses to
  14912. # link against other versions.
  14913. version_type=sunos
  14914. need_lib_prefix=no
  14915. need_version=no
  14916. case $host_cpu in
  14917. ia64*)
  14918. shrext_cmds='.so'
  14919. hardcode_into_libs=yes
  14920. dynamic_linker="$host_os dld.so"
  14921. shlibpath_var=LD_LIBRARY_PATH
  14922. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14924. soname_spec='${libname}${release}${shared_ext}$major'
  14925. if test "X$HPUX_IA64_MODE" = X32; then
  14926. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14927. else
  14928. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14929. fi
  14930. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14931. ;;
  14932. hppa*64*)
  14933. shrext_cmds='.sl'
  14934. hardcode_into_libs=yes
  14935. dynamic_linker="$host_os dld.sl"
  14936. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14937. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14939. soname_spec='${libname}${release}${shared_ext}$major'
  14940. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14941. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14942. ;;
  14943. *)
  14944. shrext_cmds='.sl'
  14945. dynamic_linker="$host_os dld.sl"
  14946. shlibpath_var=SHLIB_PATH
  14947. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14949. soname_spec='${libname}${release}${shared_ext}$major'
  14950. ;;
  14951. esac
  14952. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14953. postinstall_cmds='chmod 555 $lib'
  14954. ;;
  14955. interix3*)
  14956. version_type=linux
  14957. need_lib_prefix=no
  14958. need_version=no
  14959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14960. soname_spec='${libname}${release}${shared_ext}$major'
  14961. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14962. shlibpath_var=LD_LIBRARY_PATH
  14963. shlibpath_overrides_runpath=no
  14964. hardcode_into_libs=yes
  14965. ;;
  14966. irix5* | irix6* | nonstopux*)
  14967. case $host_os in
  14968. nonstopux*) version_type=nonstopux ;;
  14969. *)
  14970. if test "$lt_cv_prog_gnu_ld" = yes; then
  14971. version_type=linux
  14972. else
  14973. version_type=irix
  14974. fi ;;
  14975. esac
  14976. need_lib_prefix=no
  14977. need_version=no
  14978. soname_spec='${libname}${release}${shared_ext}$major'
  14979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14980. case $host_os in
  14981. irix5* | nonstopux*)
  14982. libsuff= shlibsuff=
  14983. ;;
  14984. *)
  14985. case $LD in # libtool.m4 will add one of these switches to LD
  14986. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14987. libsuff= shlibsuff= libmagic=32-bit;;
  14988. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14989. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14990. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14991. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14992. *) libsuff= shlibsuff= libmagic=never-match;;
  14993. esac
  14994. ;;
  14995. esac
  14996. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14997. shlibpath_overrides_runpath=no
  14998. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14999. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15000. hardcode_into_libs=yes
  15001. ;;
  15002. # No shared lib support for Linux oldld, aout, or coff.
  15003. linux*oldld* | linux*aout* | linux*coff*)
  15004. dynamic_linker=no
  15005. ;;
  15006. # This must be Linux ELF.
  15007. linux*)
  15008. version_type=linux
  15009. need_lib_prefix=no
  15010. need_version=no
  15011. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15012. soname_spec='${libname}${release}${shared_ext}$major'
  15013. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15014. shlibpath_var=LD_LIBRARY_PATH
  15015. shlibpath_overrides_runpath=no
  15016. # This implies no fast_install, which is unacceptable.
  15017. # Some rework will be needed to allow for fast_install
  15018. # before this can be enabled.
  15019. hardcode_into_libs=yes
  15020. # Append ld.so.conf contents to the search path
  15021. if test -f /etc/ld.so.conf; then
  15022. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15023. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15024. fi
  15025. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15026. # powerpc, because MkLinux only supported shared libraries with the
  15027. # GNU dynamic linker. Since this was broken with cross compilers,
  15028. # most powerpc-linux boxes support dynamic linking these days and
  15029. # people can always --disable-shared, the test was removed, and we
  15030. # assume the GNU/Linux dynamic linker is in use.
  15031. dynamic_linker='GNU/Linux ld.so'
  15032. ;;
  15033. knetbsd*-gnu)
  15034. version_type=linux
  15035. need_lib_prefix=no
  15036. need_version=no
  15037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15038. soname_spec='${libname}${release}${shared_ext}$major'
  15039. shlibpath_var=LD_LIBRARY_PATH
  15040. shlibpath_overrides_runpath=no
  15041. hardcode_into_libs=yes
  15042. dynamic_linker='GNU ld.so'
  15043. ;;
  15044. netbsd*)
  15045. version_type=sunos
  15046. need_lib_prefix=no
  15047. need_version=no
  15048. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15050. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15051. dynamic_linker='NetBSD (a.out) ld.so'
  15052. else
  15053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15054. soname_spec='${libname}${release}${shared_ext}$major'
  15055. dynamic_linker='NetBSD ld.elf_so'
  15056. fi
  15057. shlibpath_var=LD_LIBRARY_PATH
  15058. shlibpath_overrides_runpath=yes
  15059. hardcode_into_libs=yes
  15060. ;;
  15061. newsos6)
  15062. version_type=linux
  15063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15064. shlibpath_var=LD_LIBRARY_PATH
  15065. shlibpath_overrides_runpath=yes
  15066. ;;
  15067. nto-qnx*)
  15068. version_type=linux
  15069. need_lib_prefix=no
  15070. need_version=no
  15071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15072. soname_spec='${libname}${release}${shared_ext}$major'
  15073. shlibpath_var=LD_LIBRARY_PATH
  15074. shlibpath_overrides_runpath=yes
  15075. ;;
  15076. openbsd*)
  15077. version_type=sunos
  15078. sys_lib_dlsearch_path_spec="/usr/lib"
  15079. need_lib_prefix=no
  15080. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15081. case $host_os in
  15082. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15083. *) need_version=no ;;
  15084. esac
  15085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15086. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15087. shlibpath_var=LD_LIBRARY_PATH
  15088. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15089. case $host_os in
  15090. openbsd2.[89] | openbsd2.[89].*)
  15091. shlibpath_overrides_runpath=no
  15092. ;;
  15093. *)
  15094. shlibpath_overrides_runpath=yes
  15095. ;;
  15096. esac
  15097. else
  15098. shlibpath_overrides_runpath=yes
  15099. fi
  15100. ;;
  15101. os2*)
  15102. libname_spec='$name'
  15103. shrext_cmds=".dll"
  15104. need_lib_prefix=no
  15105. library_names_spec='$libname${shared_ext} $libname.a'
  15106. dynamic_linker='OS/2 ld.exe'
  15107. shlibpath_var=LIBPATH
  15108. ;;
  15109. osf3* | osf4* | osf5*)
  15110. version_type=osf
  15111. need_lib_prefix=no
  15112. need_version=no
  15113. soname_spec='${libname}${release}${shared_ext}$major'
  15114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15115. shlibpath_var=LD_LIBRARY_PATH
  15116. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15117. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15118. ;;
  15119. solaris*)
  15120. version_type=linux
  15121. need_lib_prefix=no
  15122. need_version=no
  15123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15124. soname_spec='${libname}${release}${shared_ext}$major'
  15125. shlibpath_var=LD_LIBRARY_PATH
  15126. shlibpath_overrides_runpath=yes
  15127. hardcode_into_libs=yes
  15128. # ldd complains unless libraries are executable
  15129. postinstall_cmds='chmod +x $lib'
  15130. ;;
  15131. sunos4*)
  15132. version_type=sunos
  15133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15134. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15135. shlibpath_var=LD_LIBRARY_PATH
  15136. shlibpath_overrides_runpath=yes
  15137. if test "$with_gnu_ld" = yes; then
  15138. need_lib_prefix=no
  15139. fi
  15140. need_version=yes
  15141. ;;
  15142. sysv4 | sysv4.3*)
  15143. version_type=linux
  15144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15145. soname_spec='${libname}${release}${shared_ext}$major'
  15146. shlibpath_var=LD_LIBRARY_PATH
  15147. case $host_vendor in
  15148. sni)
  15149. shlibpath_overrides_runpath=no
  15150. need_lib_prefix=no
  15151. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15152. runpath_var=LD_RUN_PATH
  15153. ;;
  15154. siemens)
  15155. need_lib_prefix=no
  15156. ;;
  15157. motorola)
  15158. need_lib_prefix=no
  15159. need_version=no
  15160. shlibpath_overrides_runpath=no
  15161. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15162. ;;
  15163. esac
  15164. ;;
  15165. sysv4*MP*)
  15166. if test -d /usr/nec ;then
  15167. version_type=linux
  15168. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15169. soname_spec='$libname${shared_ext}.$major'
  15170. shlibpath_var=LD_LIBRARY_PATH
  15171. fi
  15172. ;;
  15173. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15174. version_type=freebsd-elf
  15175. need_lib_prefix=no
  15176. need_version=no
  15177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15178. soname_spec='${libname}${release}${shared_ext}$major'
  15179. shlibpath_var=LD_LIBRARY_PATH
  15180. hardcode_into_libs=yes
  15181. if test "$with_gnu_ld" = yes; then
  15182. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15183. shlibpath_overrides_runpath=no
  15184. else
  15185. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15186. shlibpath_overrides_runpath=yes
  15187. case $host_os in
  15188. sco3.2v5*)
  15189. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15190. ;;
  15191. esac
  15192. fi
  15193. sys_lib_dlsearch_path_spec='/usr/lib'
  15194. ;;
  15195. uts4*)
  15196. version_type=linux
  15197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15198. soname_spec='${libname}${release}${shared_ext}$major'
  15199. shlibpath_var=LD_LIBRARY_PATH
  15200. ;;
  15201. *)
  15202. dynamic_linker=no
  15203. ;;
  15204. esac
  15205. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15206. echo "${ECHO_T}$dynamic_linker" >&6
  15207. test "$dynamic_linker" = no && can_build_shared=no
  15208. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15209. if test "$GCC" = yes; then
  15210. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15211. fi
  15212. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15213. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15214. hardcode_action_GCJ=
  15215. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15216. test -n "$runpath_var_GCJ" || \
  15217. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  15218. # We can hardcode non-existant directories.
  15219. if test "$hardcode_direct_GCJ" != no &&
  15220. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15221. # have to relink, otherwise we might link with an installed library
  15222. # when we should be linking with a yet-to-be-installed one
  15223. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15224. test "$hardcode_minus_L_GCJ" != no; then
  15225. # Linking always hardcodes the temporary library directory.
  15226. hardcode_action_GCJ=relink
  15227. else
  15228. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15229. hardcode_action_GCJ=immediate
  15230. fi
  15231. else
  15232. # We cannot hardcode anything, or else we can only hardcode existing
  15233. # directories.
  15234. hardcode_action_GCJ=unsupported
  15235. fi
  15236. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15237. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  15238. if test "$hardcode_action_GCJ" = relink; then
  15239. # Fast installation is not supported
  15240. enable_fast_install=no
  15241. elif test "$shlibpath_overrides_runpath" = yes ||
  15242. test "$enable_shared" = no; then
  15243. # Fast installation is not necessary
  15244. enable_fast_install=needless
  15245. fi
  15246. # The else clause should only fire when bootstrapping the
  15247. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15248. # with your package, and you will get complaints that there are
  15249. # no rules to generate ltmain.sh.
  15250. if test -f "$ltmain"; then
  15251. # See if we are running on zsh, and set the options which allow our commands through
  15252. # without removal of \ escapes.
  15253. if test -n "${ZSH_VERSION+set}" ; then
  15254. setopt NO_GLOB_SUBST
  15255. fi
  15256. # Now quote all the things that may contain metacharacters while being
  15257. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15258. # variables and quote the copies for generation of the libtool script.
  15259. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15260. SED SHELL STRIP \
  15261. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15262. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15263. deplibs_check_method reload_flag reload_cmds need_locks \
  15264. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15265. lt_cv_sys_global_symbol_to_c_name_address \
  15266. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15267. old_postinstall_cmds old_postuninstall_cmds \
  15268. compiler_GCJ \
  15269. CC_GCJ \
  15270. LD_GCJ \
  15271. lt_prog_compiler_wl_GCJ \
  15272. lt_prog_compiler_pic_GCJ \
  15273. lt_prog_compiler_static_GCJ \
  15274. lt_prog_compiler_no_builtin_flag_GCJ \
  15275. export_dynamic_flag_spec_GCJ \
  15276. thread_safe_flag_spec_GCJ \
  15277. whole_archive_flag_spec_GCJ \
  15278. enable_shared_with_static_runtimes_GCJ \
  15279. old_archive_cmds_GCJ \
  15280. old_archive_from_new_cmds_GCJ \
  15281. predep_objects_GCJ \
  15282. postdep_objects_GCJ \
  15283. predeps_GCJ \
  15284. postdeps_GCJ \
  15285. compiler_lib_search_path_GCJ \
  15286. archive_cmds_GCJ \
  15287. archive_expsym_cmds_GCJ \
  15288. postinstall_cmds_GCJ \
  15289. postuninstall_cmds_GCJ \
  15290. old_archive_from_expsyms_cmds_GCJ \
  15291. allow_undefined_flag_GCJ \
  15292. no_undefined_flag_GCJ \
  15293. export_symbols_cmds_GCJ \
  15294. hardcode_libdir_flag_spec_GCJ \
  15295. hardcode_libdir_flag_spec_ld_GCJ \
  15296. hardcode_libdir_separator_GCJ \
  15297. hardcode_automatic_GCJ \
  15298. module_cmds_GCJ \
  15299. module_expsym_cmds_GCJ \
  15300. lt_cv_prog_compiler_c_o_GCJ \
  15301. exclude_expsyms_GCJ \
  15302. include_expsyms_GCJ; do
  15303. case $var in
  15304. old_archive_cmds_GCJ | \
  15305. old_archive_from_new_cmds_GCJ | \
  15306. archive_cmds_GCJ | \
  15307. archive_expsym_cmds_GCJ | \
  15308. module_cmds_GCJ | \
  15309. module_expsym_cmds_GCJ | \
  15310. old_archive_from_expsyms_cmds_GCJ | \
  15311. export_symbols_cmds_GCJ | \
  15312. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15313. postinstall_cmds | postuninstall_cmds | \
  15314. old_postinstall_cmds | old_postuninstall_cmds | \
  15315. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15316. # Double-quote double-evaled strings.
  15317. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15318. ;;
  15319. *)
  15320. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15321. ;;
  15322. esac
  15323. done
  15324. case $lt_echo in
  15325. *'\$0 --fallback-echo"')
  15326. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15327. ;;
  15328. esac
  15329. cfgfile="$ofile"
  15330. cat <<__EOF__ >> "$cfgfile"
  15331. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15332. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15333. # Shell to use when invoking shell scripts.
  15334. SHELL=$lt_SHELL
  15335. # Whether or not to build shared libraries.
  15336. build_libtool_libs=$enable_shared
  15337. # Whether or not to build static libraries.
  15338. build_old_libs=$enable_static
  15339. # Whether or not to add -lc for building shared libraries.
  15340. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  15341. # Whether or not to disallow shared libs when runtime libs are static
  15342. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  15343. # Whether or not to optimize for fast installation.
  15344. fast_install=$enable_fast_install
  15345. # The host system.
  15346. host_alias=$host_alias
  15347. host=$host
  15348. host_os=$host_os
  15349. # The build system.
  15350. build_alias=$build_alias
  15351. build=$build
  15352. build_os=$build_os
  15353. # An echo program that does not interpret backslashes.
  15354. echo=$lt_echo
  15355. # The archiver.
  15356. AR=$lt_AR
  15357. AR_FLAGS=$lt_AR_FLAGS
  15358. # A C compiler.
  15359. LTCC=$lt_LTCC
  15360. # LTCC compiler flags.
  15361. LTCFLAGS=$lt_LTCFLAGS
  15362. # A language-specific compiler.
  15363. CC=$lt_compiler_GCJ
  15364. # Is the compiler the GNU C compiler?
  15365. with_gcc=$GCC_GCJ
  15366. # An ERE matcher.
  15367. EGREP=$lt_EGREP
  15368. # The linker used to build libraries.
  15369. LD=$lt_LD_GCJ
  15370. # Whether we need hard or soft links.
  15371. LN_S=$lt_LN_S
  15372. # A BSD-compatible nm program.
  15373. NM=$lt_NM
  15374. # A symbol stripping program
  15375. STRIP=$lt_STRIP
  15376. # Used to examine libraries when file_magic_cmd begins "file"
  15377. MAGIC_CMD=$MAGIC_CMD
  15378. # Used on cygwin: DLL creation program.
  15379. DLLTOOL="$DLLTOOL"
  15380. # Used on cygwin: object dumper.
  15381. OBJDUMP="$OBJDUMP"
  15382. # Used on cygwin: assembler.
  15383. AS="$AS"
  15384. # The name of the directory that contains temporary libtool files.
  15385. objdir=$objdir
  15386. # How to create reloadable object files.
  15387. reload_flag=$lt_reload_flag
  15388. reload_cmds=$lt_reload_cmds
  15389. # How to pass a linker flag through the compiler.
  15390. wl=$lt_lt_prog_compiler_wl_GCJ
  15391. # Object file suffix (normally "o").
  15392. objext="$ac_objext"
  15393. # Old archive suffix (normally "a").
  15394. libext="$libext"
  15395. # Shared library suffix (normally ".so").
  15396. shrext_cmds='$shrext_cmds'
  15397. # Executable file suffix (normally "").
  15398. exeext="$exeext"
  15399. # Additional compiler flags for building library objects.
  15400. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  15401. pic_mode=$pic_mode
  15402. # What is the maximum length of a command?
  15403. max_cmd_len=$lt_cv_sys_max_cmd_len
  15404. # Does compiler simultaneously support -c and -o options?
  15405. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  15406. # Must we lock files when doing compilation?
  15407. need_locks=$lt_need_locks
  15408. # Do we need the lib prefix for modules?
  15409. need_lib_prefix=$need_lib_prefix
  15410. # Do we need a version for libraries?
  15411. need_version=$need_version
  15412. # Whether dlopen is supported.
  15413. dlopen_support=$enable_dlopen
  15414. # Whether dlopen of programs is supported.
  15415. dlopen_self=$enable_dlopen_self
  15416. # Whether dlopen of statically linked programs is supported.
  15417. dlopen_self_static=$enable_dlopen_self_static
  15418. # Compiler flag to prevent dynamic linking.
  15419. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  15420. # Compiler flag to turn off builtin functions.
  15421. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  15422. # Compiler flag to allow reflexive dlopens.
  15423. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  15424. # Compiler flag to generate shared objects directly from archives.
  15425. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  15426. # Compiler flag to generate thread-safe objects.
  15427. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  15428. # Library versioning type.
  15429. version_type=$version_type
  15430. # Format of library name prefix.
  15431. libname_spec=$lt_libname_spec
  15432. # List of archive names. First name is the real one, the rest are links.
  15433. # The last name is the one that the linker finds with -lNAME.
  15434. library_names_spec=$lt_library_names_spec
  15435. # The coded name of the library, if different from the real name.
  15436. soname_spec=$lt_soname_spec
  15437. # Commands used to build and install an old-style archive.
  15438. RANLIB=$lt_RANLIB
  15439. old_archive_cmds=$lt_old_archive_cmds_GCJ
  15440. old_postinstall_cmds=$lt_old_postinstall_cmds
  15441. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15442. # Create an old-style archive from a shared archive.
  15443. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  15444. # Create a temporary old-style archive to link instead of a shared archive.
  15445. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  15446. # Commands used to build and install a shared archive.
  15447. archive_cmds=$lt_archive_cmds_GCJ
  15448. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  15449. postinstall_cmds=$lt_postinstall_cmds
  15450. postuninstall_cmds=$lt_postuninstall_cmds
  15451. # Commands used to build a loadable module (assumed same as above if empty)
  15452. module_cmds=$lt_module_cmds_GCJ
  15453. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  15454. # Commands to strip libraries.
  15455. old_striplib=$lt_old_striplib
  15456. striplib=$lt_striplib
  15457. # Dependencies to place before the objects being linked to create a
  15458. # shared library.
  15459. predep_objects=$lt_predep_objects_GCJ
  15460. # Dependencies to place after the objects being linked to create a
  15461. # shared library.
  15462. postdep_objects=$lt_postdep_objects_GCJ
  15463. # Dependencies to place before the objects being linked to create a
  15464. # shared library.
  15465. predeps=$lt_predeps_GCJ
  15466. # Dependencies to place after the objects being linked to create a
  15467. # shared library.
  15468. postdeps=$lt_postdeps_GCJ
  15469. # The library search path used internally by the compiler when linking
  15470. # a shared library.
  15471. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  15472. # Method to check whether dependent libraries are shared objects.
  15473. deplibs_check_method=$lt_deplibs_check_method
  15474. # Command to use when deplibs_check_method == file_magic.
  15475. file_magic_cmd=$lt_file_magic_cmd
  15476. # Flag that allows shared libraries with undefined symbols to be built.
  15477. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  15478. # Flag that forces no undefined symbols.
  15479. no_undefined_flag=$lt_no_undefined_flag_GCJ
  15480. # Commands used to finish a libtool library installation in a directory.
  15481. finish_cmds=$lt_finish_cmds
  15482. # Same as above, but a single script fragment to be evaled but not shown.
  15483. finish_eval=$lt_finish_eval
  15484. # Take the output of nm and produce a listing of raw symbols and C names.
  15485. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15486. # Transform the output of nm in a proper C declaration
  15487. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15488. # Transform the output of nm in a C name address pair
  15489. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15490. # This is the shared library runtime path variable.
  15491. runpath_var=$runpath_var
  15492. # This is the shared library path variable.
  15493. shlibpath_var=$shlibpath_var
  15494. # Is shlibpath searched before the hard-coded library search path?
  15495. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15496. # How to hardcode a shared library path into an executable.
  15497. hardcode_action=$hardcode_action_GCJ
  15498. # Whether we should hardcode library paths into libraries.
  15499. hardcode_into_libs=$hardcode_into_libs
  15500. # Flag to hardcode \$libdir into a binary during linking.
  15501. # This must work even if \$libdir does not exist.
  15502. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  15503. # If ld is used when linking, flag to hardcode \$libdir into
  15504. # a binary during linking. This must work even if \$libdir does
  15505. # not exist.
  15506. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  15507. # Whether we need a single -rpath flag with a separated argument.
  15508. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  15509. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15510. # resulting binary.
  15511. hardcode_direct=$hardcode_direct_GCJ
  15512. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15513. # resulting binary.
  15514. hardcode_minus_L=$hardcode_minus_L_GCJ
  15515. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15516. # the resulting binary.
  15517. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  15518. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15519. # and all subsequent libraries and executables linked against it.
  15520. hardcode_automatic=$hardcode_automatic_GCJ
  15521. # Variables whose values should be saved in libtool wrapper scripts and
  15522. # restored at relink time.
  15523. variables_saved_for_relink="$variables_saved_for_relink"
  15524. # Whether libtool must link a program against all its dependency libraries.
  15525. link_all_deplibs=$link_all_deplibs_GCJ
  15526. # Compile-time system search path for libraries
  15527. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15528. # Run-time system search path for libraries
  15529. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15530. # Fix the shell variable \$srcfile for the compiler.
  15531. fix_srcfile_path="$fix_srcfile_path_GCJ"
  15532. # Set to yes if exported symbols are required.
  15533. always_export_symbols=$always_export_symbols_GCJ
  15534. # The commands to list exported symbols.
  15535. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  15536. # The commands to extract the exported symbol list from a shared archive.
  15537. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15538. # Symbols that should not be listed in the preloaded symbols.
  15539. exclude_expsyms=$lt_exclude_expsyms_GCJ
  15540. # Symbols that must always be exported.
  15541. include_expsyms=$lt_include_expsyms_GCJ
  15542. # ### END LIBTOOL TAG CONFIG: $tagname
  15543. __EOF__
  15544. else
  15545. # If there is no Makefile yet, we rely on a make rule to execute
  15546. # `config.status --recheck' to rerun these tests and create the
  15547. # libtool script then.
  15548. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15549. if test -f "$ltmain_in"; then
  15550. test -f Makefile && make "$ltmain"
  15551. fi
  15552. fi
  15553. ac_ext=c
  15554. ac_cpp='$CPP $CPPFLAGS'
  15555. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15556. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15557. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15558. CC="$lt_save_CC"
  15559. else
  15560. tagname=""
  15561. fi
  15562. ;;
  15563. RC)
  15564. # Source file extension for RC test sources.
  15565. ac_ext=rc
  15566. # Object file extension for compiled RC test sources.
  15567. objext=o
  15568. objext_RC=$objext
  15569. # Code to be used in simple compile tests
  15570. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  15571. # Code to be used in simple link tests
  15572. lt_simple_link_test_code="$lt_simple_compile_test_code"
  15573. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15574. # If no C compiler was specified, use CC.
  15575. LTCC=${LTCC-"$CC"}
  15576. # If no C compiler flags were specified, use CFLAGS.
  15577. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15578. # Allow CC to be a program name with arguments.
  15579. compiler=$CC
  15580. # save warnings/boilerplate of simple test code
  15581. ac_outfile=conftest.$ac_objext
  15582. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  15583. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15584. _lt_compiler_boilerplate=`cat conftest.err`
  15585. $rm conftest*
  15586. ac_outfile=conftest.$ac_objext
  15587. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  15588. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15589. _lt_linker_boilerplate=`cat conftest.err`
  15590. $rm conftest*
  15591. # Allow CC to be a program name with arguments.
  15592. lt_save_CC="$CC"
  15593. CC=${RC-"windres"}
  15594. compiler=$CC
  15595. compiler_RC=$CC
  15596. for cc_temp in $compiler""; do
  15597. case $cc_temp in
  15598. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15599. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15600. \-*) ;;
  15601. *) break;;
  15602. esac
  15603. done
  15604. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15605. lt_cv_prog_compiler_c_o_RC=yes
  15606. # The else clause should only fire when bootstrapping the
  15607. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15608. # with your package, and you will get complaints that there are
  15609. # no rules to generate ltmain.sh.
  15610. if test -f "$ltmain"; then
  15611. # See if we are running on zsh, and set the options which allow our commands through
  15612. # without removal of \ escapes.
  15613. if test -n "${ZSH_VERSION+set}" ; then
  15614. setopt NO_GLOB_SUBST
  15615. fi
  15616. # Now quote all the things that may contain metacharacters while being
  15617. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15618. # variables and quote the copies for generation of the libtool script.
  15619. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15620. SED SHELL STRIP \
  15621. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15622. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15623. deplibs_check_method reload_flag reload_cmds need_locks \
  15624. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15625. lt_cv_sys_global_symbol_to_c_name_address \
  15626. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15627. old_postinstall_cmds old_postuninstall_cmds \
  15628. compiler_RC \
  15629. CC_RC \
  15630. LD_RC \
  15631. lt_prog_compiler_wl_RC \
  15632. lt_prog_compiler_pic_RC \
  15633. lt_prog_compiler_static_RC \
  15634. lt_prog_compiler_no_builtin_flag_RC \
  15635. export_dynamic_flag_spec_RC \
  15636. thread_safe_flag_spec_RC \
  15637. whole_archive_flag_spec_RC \
  15638. enable_shared_with_static_runtimes_RC \
  15639. old_archive_cmds_RC \
  15640. old_archive_from_new_cmds_RC \
  15641. predep_objects_RC \
  15642. postdep_objects_RC \
  15643. predeps_RC \
  15644. postdeps_RC \
  15645. compiler_lib_search_path_RC \
  15646. archive_cmds_RC \
  15647. archive_expsym_cmds_RC \
  15648. postinstall_cmds_RC \
  15649. postuninstall_cmds_RC \
  15650. old_archive_from_expsyms_cmds_RC \
  15651. allow_undefined_flag_RC \
  15652. no_undefined_flag_RC \
  15653. export_symbols_cmds_RC \
  15654. hardcode_libdir_flag_spec_RC \
  15655. hardcode_libdir_flag_spec_ld_RC \
  15656. hardcode_libdir_separator_RC \
  15657. hardcode_automatic_RC \
  15658. module_cmds_RC \
  15659. module_expsym_cmds_RC \
  15660. lt_cv_prog_compiler_c_o_RC \
  15661. exclude_expsyms_RC \
  15662. include_expsyms_RC; do
  15663. case $var in
  15664. old_archive_cmds_RC | \
  15665. old_archive_from_new_cmds_RC | \
  15666. archive_cmds_RC | \
  15667. archive_expsym_cmds_RC | \
  15668. module_cmds_RC | \
  15669. module_expsym_cmds_RC | \
  15670. old_archive_from_expsyms_cmds_RC | \
  15671. export_symbols_cmds_RC | \
  15672. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15673. postinstall_cmds | postuninstall_cmds | \
  15674. old_postinstall_cmds | old_postuninstall_cmds | \
  15675. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15676. # Double-quote double-evaled strings.
  15677. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15678. ;;
  15679. *)
  15680. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15681. ;;
  15682. esac
  15683. done
  15684. case $lt_echo in
  15685. *'\$0 --fallback-echo"')
  15686. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15687. ;;
  15688. esac
  15689. cfgfile="$ofile"
  15690. cat <<__EOF__ >> "$cfgfile"
  15691. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15692. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15693. # Shell to use when invoking shell scripts.
  15694. SHELL=$lt_SHELL
  15695. # Whether or not to build shared libraries.
  15696. build_libtool_libs=$enable_shared
  15697. # Whether or not to build static libraries.
  15698. build_old_libs=$enable_static
  15699. # Whether or not to add -lc for building shared libraries.
  15700. build_libtool_need_lc=$archive_cmds_need_lc_RC
  15701. # Whether or not to disallow shared libs when runtime libs are static
  15702. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  15703. # Whether or not to optimize for fast installation.
  15704. fast_install=$enable_fast_install
  15705. # The host system.
  15706. host_alias=$host_alias
  15707. host=$host
  15708. host_os=$host_os
  15709. # The build system.
  15710. build_alias=$build_alias
  15711. build=$build
  15712. build_os=$build_os
  15713. # An echo program that does not interpret backslashes.
  15714. echo=$lt_echo
  15715. # The archiver.
  15716. AR=$lt_AR
  15717. AR_FLAGS=$lt_AR_FLAGS
  15718. # A C compiler.
  15719. LTCC=$lt_LTCC
  15720. # LTCC compiler flags.
  15721. LTCFLAGS=$lt_LTCFLAGS
  15722. # A language-specific compiler.
  15723. CC=$lt_compiler_RC
  15724. # Is the compiler the GNU C compiler?
  15725. with_gcc=$GCC_RC
  15726. # An ERE matcher.
  15727. EGREP=$lt_EGREP
  15728. # The linker used to build libraries.
  15729. LD=$lt_LD_RC
  15730. # Whether we need hard or soft links.
  15731. LN_S=$lt_LN_S
  15732. # A BSD-compatible nm program.
  15733. NM=$lt_NM
  15734. # A symbol stripping program
  15735. STRIP=$lt_STRIP
  15736. # Used to examine libraries when file_magic_cmd begins "file"
  15737. MAGIC_CMD=$MAGIC_CMD
  15738. # Used on cygwin: DLL creation program.
  15739. DLLTOOL="$DLLTOOL"
  15740. # Used on cygwin: object dumper.
  15741. OBJDUMP="$OBJDUMP"
  15742. # Used on cygwin: assembler.
  15743. AS="$AS"
  15744. # The name of the directory that contains temporary libtool files.
  15745. objdir=$objdir
  15746. # How to create reloadable object files.
  15747. reload_flag=$lt_reload_flag
  15748. reload_cmds=$lt_reload_cmds
  15749. # How to pass a linker flag through the compiler.
  15750. wl=$lt_lt_prog_compiler_wl_RC
  15751. # Object file suffix (normally "o").
  15752. objext="$ac_objext"
  15753. # Old archive suffix (normally "a").
  15754. libext="$libext"
  15755. # Shared library suffix (normally ".so").
  15756. shrext_cmds='$shrext_cmds'
  15757. # Executable file suffix (normally "").
  15758. exeext="$exeext"
  15759. # Additional compiler flags for building library objects.
  15760. pic_flag=$lt_lt_prog_compiler_pic_RC
  15761. pic_mode=$pic_mode
  15762. # What is the maximum length of a command?
  15763. max_cmd_len=$lt_cv_sys_max_cmd_len
  15764. # Does compiler simultaneously support -c and -o options?
  15765. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  15766. # Must we lock files when doing compilation?
  15767. need_locks=$lt_need_locks
  15768. # Do we need the lib prefix for modules?
  15769. need_lib_prefix=$need_lib_prefix
  15770. # Do we need a version for libraries?
  15771. need_version=$need_version
  15772. # Whether dlopen is supported.
  15773. dlopen_support=$enable_dlopen
  15774. # Whether dlopen of programs is supported.
  15775. dlopen_self=$enable_dlopen_self
  15776. # Whether dlopen of statically linked programs is supported.
  15777. dlopen_self_static=$enable_dlopen_self_static
  15778. # Compiler flag to prevent dynamic linking.
  15779. link_static_flag=$lt_lt_prog_compiler_static_RC
  15780. # Compiler flag to turn off builtin functions.
  15781. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  15782. # Compiler flag to allow reflexive dlopens.
  15783. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  15784. # Compiler flag to generate shared objects directly from archives.
  15785. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  15786. # Compiler flag to generate thread-safe objects.
  15787. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  15788. # Library versioning type.
  15789. version_type=$version_type
  15790. # Format of library name prefix.
  15791. libname_spec=$lt_libname_spec
  15792. # List of archive names. First name is the real one, the rest are links.
  15793. # The last name is the one that the linker finds with -lNAME.
  15794. library_names_spec=$lt_library_names_spec
  15795. # The coded name of the library, if different from the real name.
  15796. soname_spec=$lt_soname_spec
  15797. # Commands used to build and install an old-style archive.
  15798. RANLIB=$lt_RANLIB
  15799. old_archive_cmds=$lt_old_archive_cmds_RC
  15800. old_postinstall_cmds=$lt_old_postinstall_cmds
  15801. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15802. # Create an old-style archive from a shared archive.
  15803. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  15804. # Create a temporary old-style archive to link instead of a shared archive.
  15805. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  15806. # Commands used to build and install a shared archive.
  15807. archive_cmds=$lt_archive_cmds_RC
  15808. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  15809. postinstall_cmds=$lt_postinstall_cmds
  15810. postuninstall_cmds=$lt_postuninstall_cmds
  15811. # Commands used to build a loadable module (assumed same as above if empty)
  15812. module_cmds=$lt_module_cmds_RC
  15813. module_expsym_cmds=$lt_module_expsym_cmds_RC
  15814. # Commands to strip libraries.
  15815. old_striplib=$lt_old_striplib
  15816. striplib=$lt_striplib
  15817. # Dependencies to place before the objects being linked to create a
  15818. # shared library.
  15819. predep_objects=$lt_predep_objects_RC
  15820. # Dependencies to place after the objects being linked to create a
  15821. # shared library.
  15822. postdep_objects=$lt_postdep_objects_RC
  15823. # Dependencies to place before the objects being linked to create a
  15824. # shared library.
  15825. predeps=$lt_predeps_RC
  15826. # Dependencies to place after the objects being linked to create a
  15827. # shared library.
  15828. postdeps=$lt_postdeps_RC
  15829. # The library search path used internally by the compiler when linking
  15830. # a shared library.
  15831. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  15832. # Method to check whether dependent libraries are shared objects.
  15833. deplibs_check_method=$lt_deplibs_check_method
  15834. # Command to use when deplibs_check_method == file_magic.
  15835. file_magic_cmd=$lt_file_magic_cmd
  15836. # Flag that allows shared libraries with undefined symbols to be built.
  15837. allow_undefined_flag=$lt_allow_undefined_flag_RC
  15838. # Flag that forces no undefined symbols.
  15839. no_undefined_flag=$lt_no_undefined_flag_RC
  15840. # Commands used to finish a libtool library installation in a directory.
  15841. finish_cmds=$lt_finish_cmds
  15842. # Same as above, but a single script fragment to be evaled but not shown.
  15843. finish_eval=$lt_finish_eval
  15844. # Take the output of nm and produce a listing of raw symbols and C names.
  15845. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15846. # Transform the output of nm in a proper C declaration
  15847. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15848. # Transform the output of nm in a C name address pair
  15849. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15850. # This is the shared library runtime path variable.
  15851. runpath_var=$runpath_var
  15852. # This is the shared library path variable.
  15853. shlibpath_var=$shlibpath_var
  15854. # Is shlibpath searched before the hard-coded library search path?
  15855. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15856. # How to hardcode a shared library path into an executable.
  15857. hardcode_action=$hardcode_action_RC
  15858. # Whether we should hardcode library paths into libraries.
  15859. hardcode_into_libs=$hardcode_into_libs
  15860. # Flag to hardcode \$libdir into a binary during linking.
  15861. # This must work even if \$libdir does not exist.
  15862. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  15863. # If ld is used when linking, flag to hardcode \$libdir into
  15864. # a binary during linking. This must work even if \$libdir does
  15865. # not exist.
  15866. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  15867. # Whether we need a single -rpath flag with a separated argument.
  15868. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  15869. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15870. # resulting binary.
  15871. hardcode_direct=$hardcode_direct_RC
  15872. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15873. # resulting binary.
  15874. hardcode_minus_L=$hardcode_minus_L_RC
  15875. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15876. # the resulting binary.
  15877. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  15878. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15879. # and all subsequent libraries and executables linked against it.
  15880. hardcode_automatic=$hardcode_automatic_RC
  15881. # Variables whose values should be saved in libtool wrapper scripts and
  15882. # restored at relink time.
  15883. variables_saved_for_relink="$variables_saved_for_relink"
  15884. # Whether libtool must link a program against all its dependency libraries.
  15885. link_all_deplibs=$link_all_deplibs_RC
  15886. # Compile-time system search path for libraries
  15887. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15888. # Run-time system search path for libraries
  15889. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15890. # Fix the shell variable \$srcfile for the compiler.
  15891. fix_srcfile_path="$fix_srcfile_path_RC"
  15892. # Set to yes if exported symbols are required.
  15893. always_export_symbols=$always_export_symbols_RC
  15894. # The commands to list exported symbols.
  15895. export_symbols_cmds=$lt_export_symbols_cmds_RC
  15896. # The commands to extract the exported symbol list from a shared archive.
  15897. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15898. # Symbols that should not be listed in the preloaded symbols.
  15899. exclude_expsyms=$lt_exclude_expsyms_RC
  15900. # Symbols that must always be exported.
  15901. include_expsyms=$lt_include_expsyms_RC
  15902. # ### END LIBTOOL TAG CONFIG: $tagname
  15903. __EOF__
  15904. else
  15905. # If there is no Makefile yet, we rely on a make rule to execute
  15906. # `config.status --recheck' to rerun these tests and create the
  15907. # libtool script then.
  15908. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15909. if test -f "$ltmain_in"; then
  15910. test -f Makefile && make "$ltmain"
  15911. fi
  15912. fi
  15913. ac_ext=c
  15914. ac_cpp='$CPP $CPPFLAGS'
  15915. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15916. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15917. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15918. CC="$lt_save_CC"
  15919. ;;
  15920. *)
  15921. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  15922. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  15923. { (exit 1); exit 1; }; }
  15924. ;;
  15925. esac
  15926. # Append the new tag name to the list of available tags.
  15927. if test -n "$tagname" ; then
  15928. available_tags="$available_tags $tagname"
  15929. fi
  15930. fi
  15931. done
  15932. IFS="$lt_save_ifs"
  15933. # Now substitute the updated list of available tags.
  15934. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  15935. mv "${ofile}T" "$ofile"
  15936. chmod +x "$ofile"
  15937. else
  15938. rm -f "${ofile}T"
  15939. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  15940. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  15941. { (exit 1); exit 1; }; }
  15942. fi
  15943. fi
  15944. # This can be used to rebuild libtool when needed
  15945. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  15946. # Always use our own libtool.
  15947. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  15948. # Prevent multiple expansion
  15949. MAJOR_VERSION=3
  15950. MINOR_VERSION=0
  15951. MICRO_VERSION=beta9
  15952. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  15953. TCPREPLAY_RELEASE=1
  15954. cat >>confdefs.h <<\_ACEOF
  15955. #define PACKAGE tcpreplay
  15956. _ACEOF
  15957. cat >>confdefs.h <<_ACEOF
  15958. #define VERSION "$TCPREPLAY_VERSION"
  15959. _ACEOF
  15960. CFLAGS="$CFLAGS -Wall -O2 -funroll-loops -std=gnu99" # -std=c99 -Wno-variadic-macros"
  15961. echo "$as_me:$LINENO: checking target system type" >&5
  15962. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  15963. if test "${ac_cv_target+set}" = set; then
  15964. echo $ECHO_N "(cached) $ECHO_C" >&6
  15965. else
  15966. ac_cv_target_alias=$target_alias
  15967. test "x$ac_cv_target_alias" = "x" &&
  15968. ac_cv_target_alias=$ac_cv_host_alias
  15969. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  15970. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  15971. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  15972. { (exit 1); exit 1; }; }
  15973. fi
  15974. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  15975. echo "${ECHO_T}$ac_cv_target" >&6
  15976. target=$ac_cv_target
  15977. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  15978. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  15979. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  15980. # The aliases save the names the user supplied, while $host etc.
  15981. # will get canonicalized.
  15982. test -n "$target_alias" &&
  15983. test "$program_prefix$program_suffix$program_transform_name" = \
  15984. NONENONEs,x,x, &&
  15985. program_prefix=${target_alias}-
  15986. am__api_version="1.9"
  15987. # Find a good install program. We prefer a C program (faster),
  15988. # so one script is as good as another. But avoid the broken or
  15989. # incompatible versions:
  15990. # SysV /etc/install, /usr/sbin/install
  15991. # SunOS /usr/etc/install
  15992. # IRIX /sbin/install
  15993. # AIX /bin/install
  15994. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15995. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15996. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15997. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15998. # OS/2's system install, which has a completely different semantic
  15999. # ./install, which can be erroneously created by make from ./install.sh.
  16000. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  16001. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  16002. if test -z "$INSTALL"; then
  16003. if test "${ac_cv_path_install+set}" = set; then
  16004. echo $ECHO_N "(cached) $ECHO_C" >&6
  16005. else
  16006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16007. for as_dir in $PATH
  16008. do
  16009. IFS=$as_save_IFS
  16010. test -z "$as_dir" && as_dir=.
  16011. # Account for people who put trailing slashes in PATH elements.
  16012. case $as_dir/ in
  16013. ./ | .// | /cC/* | \
  16014. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  16015. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  16016. /usr/ucb/* ) ;;
  16017. *)
  16018. # OSF1 and SCO ODT 3.0 have their own names for install.
  16019. # Don't use installbsd from OSF since it installs stuff as root
  16020. # by default.
  16021. for ac_prog in ginstall scoinst install; do
  16022. for ac_exec_ext in '' $ac_executable_extensions; do
  16023. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  16024. if test $ac_prog = install &&
  16025. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16026. # AIX install. It has an incompatible calling convention.
  16027. :
  16028. elif test $ac_prog = install &&
  16029. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16030. # program-specific install script used by HP pwplus--don't use.
  16031. :
  16032. else
  16033. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  16034. break 3
  16035. fi
  16036. fi
  16037. done
  16038. done
  16039. ;;
  16040. esac
  16041. done
  16042. fi
  16043. if test "${ac_cv_path_install+set}" = set; then
  16044. INSTALL=$ac_cv_path_install
  16045. else
  16046. # As a last resort, use the slow shell script. We don't cache a
  16047. # path for INSTALL within a source directory, because that will
  16048. # break other packages using the cache if that directory is
  16049. # removed, or if the path is relative.
  16050. INSTALL=$ac_install_sh
  16051. fi
  16052. fi
  16053. echo "$as_me:$LINENO: result: $INSTALL" >&5
  16054. echo "${ECHO_T}$INSTALL" >&6
  16055. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  16056. # It thinks the first close brace ends the variable substitution.
  16057. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  16058. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  16059. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  16060. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  16061. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  16062. # Just in case
  16063. sleep 1
  16064. echo timestamp > conftest.file
  16065. # Do `set' in a subshell so we don't clobber the current shell's
  16066. # arguments. Must try -L first in case configure is actually a
  16067. # symlink; some systems play weird games with the mod time of symlinks
  16068. # (eg FreeBSD returns the mod time of the symlink's containing
  16069. # directory).
  16070. if (
  16071. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  16072. if test "$*" = "X"; then
  16073. # -L didn't work.
  16074. set X `ls -t $srcdir/configure conftest.file`
  16075. fi
  16076. rm -f conftest.file
  16077. if test "$*" != "X $srcdir/configure conftest.file" \
  16078. && test "$*" != "X conftest.file $srcdir/configure"; then
  16079. # If neither matched, then we have a broken ls. This can happen
  16080. # if, for instance, CONFIG_SHELL is bash and it inherits a
  16081. # broken ls alias from the environment. This has actually
  16082. # happened. Such a system could not be considered "sane".
  16083. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  16084. alias in your environment" >&5
  16085. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  16086. alias in your environment" >&2;}
  16087. { (exit 1); exit 1; }; }
  16088. fi
  16089. test "$2" = conftest.file
  16090. )
  16091. then
  16092. # Ok.
  16093. :
  16094. else
  16095. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  16096. Check your system clock" >&5
  16097. echo "$as_me: error: newly created file is older than distributed files!
  16098. Check your system clock" >&2;}
  16099. { (exit 1); exit 1; }; }
  16100. fi
  16101. echo "$as_me:$LINENO: result: yes" >&5
  16102. echo "${ECHO_T}yes" >&6
  16103. test "$program_prefix" != NONE &&
  16104. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  16105. # Use a double $ so make ignores it.
  16106. test "$program_suffix" != NONE &&
  16107. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  16108. # Double any \ or $. echo might interpret backslashes.
  16109. # By default was `s,x,x', remove it if useless.
  16110. cat <<\_ACEOF >conftest.sed
  16111. s/[\\$]/&&/g;s/;s,x,x,$//
  16112. _ACEOF
  16113. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  16114. rm conftest.sed
  16115. # expand $ac_aux_dir to an absolute path
  16116. am_aux_dir=`cd $ac_aux_dir && pwd`
  16117. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  16118. # Use eval to expand $SHELL
  16119. if eval "$MISSING --run true"; then
  16120. am_missing_run="$MISSING --run "
  16121. else
  16122. am_missing_run=
  16123. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  16124. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  16125. fi
  16126. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  16127. # We used to keeping the `.' as first argument, in order to
  16128. # allow $(mkdir_p) to be used without argument. As in
  16129. # $(mkdir_p) $(somedir)
  16130. # where $(somedir) is conditionally defined. However this is wrong
  16131. # for two reasons:
  16132. # 1. if the package is installed by a user who cannot write `.'
  16133. # make install will fail,
  16134. # 2. the above comment should most certainly read
  16135. # $(mkdir_p) $(DESTDIR)$(somedir)
  16136. # so it does not work when $(somedir) is undefined and
  16137. # $(DESTDIR) is not.
  16138. # To support the latter case, we have to write
  16139. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  16140. # so the `.' trick is pointless.
  16141. mkdir_p='mkdir -p --'
  16142. else
  16143. # On NextStep and OpenStep, the `mkdir' command does not
  16144. # recognize any option. It will interpret all options as
  16145. # directories to create, and then abort because `.' already
  16146. # exists.
  16147. for d in ./-p ./--version;
  16148. do
  16149. test -d $d && rmdir $d
  16150. done
  16151. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  16152. if test -f "$ac_aux_dir/mkinstalldirs"; then
  16153. mkdir_p='$(mkinstalldirs)'
  16154. else
  16155. mkdir_p='$(install_sh) -d'
  16156. fi
  16157. fi
  16158. for ac_prog in gawk mawk nawk awk
  16159. do
  16160. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16161. set dummy $ac_prog; ac_word=$2
  16162. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16163. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16164. if test "${ac_cv_prog_AWK+set}" = set; then
  16165. echo $ECHO_N "(cached) $ECHO_C" >&6
  16166. else
  16167. if test -n "$AWK"; then
  16168. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  16169. else
  16170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16171. for as_dir in $PATH
  16172. do
  16173. IFS=$as_save_IFS
  16174. test -z "$as_dir" && as_dir=.
  16175. for ac_exec_ext in '' $ac_executable_extensions; do
  16176. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16177. ac_cv_prog_AWK="$ac_prog"
  16178. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16179. break 2
  16180. fi
  16181. done
  16182. done
  16183. fi
  16184. fi
  16185. AWK=$ac_cv_prog_AWK
  16186. if test -n "$AWK"; then
  16187. echo "$as_me:$LINENO: result: $AWK" >&5
  16188. echo "${ECHO_T}$AWK" >&6
  16189. else
  16190. echo "$as_me:$LINENO: result: no" >&5
  16191. echo "${ECHO_T}no" >&6
  16192. fi
  16193. test -n "$AWK" && break
  16194. done
  16195. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  16196. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  16197. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  16198. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  16199. echo $ECHO_N "(cached) $ECHO_C" >&6
  16200. else
  16201. cat >conftest.make <<\_ACEOF
  16202. all:
  16203. @echo 'ac_maketemp="$(MAKE)"'
  16204. _ACEOF
  16205. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  16206. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  16207. if test -n "$ac_maketemp"; then
  16208. eval ac_cv_prog_make_${ac_make}_set=yes
  16209. else
  16210. eval ac_cv_prog_make_${ac_make}_set=no
  16211. fi
  16212. rm -f conftest.make
  16213. fi
  16214. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  16215. echo "$as_me:$LINENO: result: yes" >&5
  16216. echo "${ECHO_T}yes" >&6
  16217. SET_MAKE=
  16218. else
  16219. echo "$as_me:$LINENO: result: no" >&5
  16220. echo "${ECHO_T}no" >&6
  16221. SET_MAKE="MAKE=${MAKE-make}"
  16222. fi
  16223. rm -rf .tst 2>/dev/null
  16224. mkdir .tst 2>/dev/null
  16225. if test -d .tst; then
  16226. am__leading_dot=.
  16227. else
  16228. am__leading_dot=_
  16229. fi
  16230. rmdir .tst 2>/dev/null
  16231. DEPDIR="${am__leading_dot}deps"
  16232. ac_config_commands="$ac_config_commands depfiles"
  16233. am_make=${MAKE-make}
  16234. cat > confinc << 'END'
  16235. am__doit:
  16236. @echo done
  16237. .PHONY: am__doit
  16238. END
  16239. # If we don't find an include directive, just comment out the code.
  16240. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  16241. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  16242. am__include="#"
  16243. am__quote=
  16244. _am_result=none
  16245. # First try GNU make style include.
  16246. echo "include confinc" > confmf
  16247. # We grep out `Entering directory' and `Leaving directory'
  16248. # messages which can occur if `w' ends up in MAKEFLAGS.
  16249. # In particular we don't look at `^make:' because GNU make might
  16250. # be invoked under some other name (usually "gmake"), in which
  16251. # case it prints its new name instead of `make'.
  16252. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  16253. am__include=include
  16254. am__quote=
  16255. _am_result=GNU
  16256. fi
  16257. # Now try BSD make style include.
  16258. if test "$am__include" = "#"; then
  16259. echo '.include "confinc"' > confmf
  16260. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  16261. am__include=.include
  16262. am__quote="\""
  16263. _am_result=BSD
  16264. fi
  16265. fi
  16266. echo "$as_me:$LINENO: result: $_am_result" >&5
  16267. echo "${ECHO_T}$_am_result" >&6
  16268. rm -f confinc confmf
  16269. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  16270. if test "${enable_dependency_tracking+set}" = set; then
  16271. enableval="$enable_dependency_tracking"
  16272. fi;
  16273. if test "x$enable_dependency_tracking" != xno; then
  16274. am_depcomp="$ac_aux_dir/depcomp"
  16275. AMDEPBACKSLASH='\'
  16276. fi
  16277. if test "x$enable_dependency_tracking" != xno; then
  16278. AMDEP_TRUE=
  16279. AMDEP_FALSE='#'
  16280. else
  16281. AMDEP_TRUE='#'
  16282. AMDEP_FALSE=
  16283. fi
  16284. # test to see if srcdir already configured
  16285. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  16286. test -f $srcdir/config.status; then
  16287. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  16288. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  16289. { (exit 1); exit 1; }; }
  16290. fi
  16291. # test whether we have cygpath
  16292. if test -z "$CYGPATH_W"; then
  16293. if (cygpath --version) >/dev/null 2>/dev/null; then
  16294. CYGPATH_W='cygpath -w'
  16295. else
  16296. CYGPATH_W=echo
  16297. fi
  16298. fi
  16299. # Define the identity of the package.
  16300. PACKAGE=tcpreplay
  16301. VERSION=$TCPREPLAY_VERSION
  16302. # Some tools Automake needs.
  16303. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  16304. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  16305. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  16306. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  16307. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  16308. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  16309. # Installed binaries are usually stripped using `strip' when the user
  16310. # run `make install-strip'. However `strip' might not be the right
  16311. # tool to use in cross-compilation environments, therefore Automake
  16312. # will honor the `STRIP' environment variable to overrule this program.
  16313. if test "$cross_compiling" != no; then
  16314. if test -n "$ac_tool_prefix"; then
  16315. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  16316. set dummy ${ac_tool_prefix}strip; ac_word=$2
  16317. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16318. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16319. if test "${ac_cv_prog_STRIP+set}" = set; then
  16320. echo $ECHO_N "(cached) $ECHO_C" >&6
  16321. else
  16322. if test -n "$STRIP"; then
  16323. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  16324. else
  16325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16326. for as_dir in $PATH
  16327. do
  16328. IFS=$as_save_IFS
  16329. test -z "$as_dir" && as_dir=.
  16330. for ac_exec_ext in '' $ac_executable_extensions; do
  16331. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16332. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  16333. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16334. break 2
  16335. fi
  16336. done
  16337. done
  16338. fi
  16339. fi
  16340. STRIP=$ac_cv_prog_STRIP
  16341. if test -n "$STRIP"; then
  16342. echo "$as_me:$LINENO: result: $STRIP" >&5
  16343. echo "${ECHO_T}$STRIP" >&6
  16344. else
  16345. echo "$as_me:$LINENO: result: no" >&5
  16346. echo "${ECHO_T}no" >&6
  16347. fi
  16348. fi
  16349. if test -z "$ac_cv_prog_STRIP"; then
  16350. ac_ct_STRIP=$STRIP
  16351. # Extract the first word of "strip", so it can be a program name with args.
  16352. set dummy strip; ac_word=$2
  16353. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16354. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16355. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  16356. echo $ECHO_N "(cached) $ECHO_C" >&6
  16357. else
  16358. if test -n "$ac_ct_STRIP"; then
  16359. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  16360. else
  16361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16362. for as_dir in $PATH
  16363. do
  16364. IFS=$as_save_IFS
  16365. test -z "$as_dir" && as_dir=.
  16366. for ac_exec_ext in '' $ac_executable_extensions; do
  16367. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16368. ac_cv_prog_ac_ct_STRIP="strip"
  16369. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16370. break 2
  16371. fi
  16372. done
  16373. done
  16374. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  16375. fi
  16376. fi
  16377. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  16378. if test -n "$ac_ct_STRIP"; then
  16379. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  16380. echo "${ECHO_T}$ac_ct_STRIP" >&6
  16381. else
  16382. echo "$as_me:$LINENO: result: no" >&5
  16383. echo "${ECHO_T}no" >&6
  16384. fi
  16385. STRIP=$ac_ct_STRIP
  16386. else
  16387. STRIP="$ac_cv_prog_STRIP"
  16388. fi
  16389. fi
  16390. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  16391. # We need awk for the "check" target. The system "awk" is bad on
  16392. # some platforms.
  16393. # Always define AMTAR for backward compatibility.
  16394. AMTAR=${AMTAR-"${am_missing_run}tar"}
  16395. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  16396. depcc="$CC" am_compiler_list=
  16397. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  16398. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  16399. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  16400. echo $ECHO_N "(cached) $ECHO_C" >&6
  16401. else
  16402. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16403. # We make a subdir and do the tests there. Otherwise we can end up
  16404. # making bogus files that we don't know about and never remove. For
  16405. # instance it was reported that on HP-UX the gcc test will end up
  16406. # making a dummy file named `D' -- because `-MD' means `put the output
  16407. # in D'.
  16408. mkdir conftest.dir
  16409. # Copy depcomp to subdir because otherwise we won't find it if we're
  16410. # using a relative directory.
  16411. cp "$am_depcomp" conftest.dir
  16412. cd conftest.dir
  16413. # We will build objects and dependencies in a subdirectory because
  16414. # it helps to detect inapplicable dependency modes. For instance
  16415. # both Tru64's cc and ICC support -MD to output dependencies as a
  16416. # side effect of compilation, but ICC will put the dependencies in
  16417. # the current directory while Tru64 will put them in the object
  16418. # directory.
  16419. mkdir sub
  16420. am_cv_CC_dependencies_compiler_type=none
  16421. if test "$am_compiler_list" = ""; then
  16422. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  16423. fi
  16424. for depmode in $am_compiler_list; do
  16425. # Setup a source with many dependencies, because some compilers
  16426. # like to wrap large dependency lists on column 80 (with \), and
  16427. # we should not choose a depcomp mode which is confused by this.
  16428. #
  16429. # We need to recreate these files for each test, as the compiler may
  16430. # overwrite some of them when testing with obscure command lines.
  16431. # This happens at least with the AIX C compiler.
  16432. : > sub/conftest.c
  16433. for i in 1 2 3 4 5 6; do
  16434. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  16435. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  16436. # Solaris 8's {/usr,}/bin/sh.
  16437. touch sub/conftst$i.h
  16438. done
  16439. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  16440. case $depmode in
  16441. nosideeffect)
  16442. # after this tag, mechanisms are not by side-effect, so they'll
  16443. # only be used when explicitly requested
  16444. if test "x$enable_dependency_tracking" = xyes; then
  16445. continue
  16446. else
  16447. break
  16448. fi
  16449. ;;
  16450. none) break ;;
  16451. esac
  16452. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16453. # mode. It turns out that the SunPro C++ compiler does not properly
  16454. # handle `-M -o', and we need to detect this.
  16455. if depmode=$depmode \
  16456. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  16457. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  16458. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  16459. >/dev/null 2>conftest.err &&
  16460. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  16461. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  16462. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  16463. # icc doesn't choke on unknown options, it will just issue warnings
  16464. # or remarks (even with -Werror). So we grep stderr for any message
  16465. # that says an option was ignored or not supported.
  16466. # When given -MP, icc 7.0 and 7.1 complain thusly:
  16467. # icc: Command line warning: ignoring option '-M'; no argument required
  16468. # The diagnosis changed in icc 8.0:
  16469. # icc: Command line remark: option '-MP' not supported
  16470. if (grep 'ignoring option' conftest.err ||
  16471. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  16472. am_cv_CC_dependencies_compiler_type=$depmode
  16473. break
  16474. fi
  16475. fi
  16476. done
  16477. cd ..
  16478. rm -rf conftest.dir
  16479. else
  16480. am_cv_CC_dependencies_compiler_type=none
  16481. fi
  16482. fi
  16483. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  16484. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  16485. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  16486. if
  16487. test "x$enable_dependency_tracking" != xno \
  16488. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  16489. am__fastdepCC_TRUE=
  16490. am__fastdepCC_FALSE='#'
  16491. else
  16492. am__fastdepCC_TRUE='#'
  16493. am__fastdepCC_FALSE=
  16494. fi
  16495. depcc="$CXX" am_compiler_list=
  16496. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  16497. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  16498. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  16499. echo $ECHO_N "(cached) $ECHO_C" >&6
  16500. else
  16501. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16502. # We make a subdir and do the tests there. Otherwise we can end up
  16503. # making bogus files that we don't know about and never remove. For
  16504. # instance it was reported that on HP-UX the gcc test will end up
  16505. # making a dummy file named `D' -- because `-MD' means `put the output
  16506. # in D'.
  16507. mkdir conftest.dir
  16508. # Copy depcomp to subdir because otherwise we won't find it if we're
  16509. # using a relative directory.
  16510. cp "$am_depcomp" conftest.dir
  16511. cd conftest.dir
  16512. # We will build objects and dependencies in a subdirectory because
  16513. # it helps to detect inapplicable dependency modes. For instance
  16514. # both Tru64's cc and ICC support -MD to output dependencies as a
  16515. # side effect of compilation, but ICC will put the dependencies in
  16516. # the current directory while Tru64 will put them in the object
  16517. # directory.
  16518. mkdir sub
  16519. am_cv_CXX_dependencies_compiler_type=none
  16520. if test "$am_compiler_list" = ""; then
  16521. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  16522. fi
  16523. for depmode in $am_compiler_list; do
  16524. # Setup a source with many dependencies, because some compilers
  16525. # like to wrap large dependency lists on column 80 (with \), and
  16526. # we should not choose a depcomp mode which is confused by this.
  16527. #
  16528. # We need to recreate these files for each test, as the compiler may
  16529. # overwrite some of them when testing with obscure command lines.
  16530. # This happens at least with the AIX C compiler.
  16531. : > sub/conftest.c
  16532. for i in 1 2 3 4 5 6; do
  16533. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  16534. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  16535. # Solaris 8's {/usr,}/bin/sh.
  16536. touch sub/conftst$i.h
  16537. done
  16538. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  16539. case $depmode in
  16540. nosideeffect)
  16541. # after this tag, mechanisms are not by side-effect, so they'll
  16542. # only be used when explicitly requested
  16543. if test "x$enable_dependency_tracking" = xyes; then
  16544. continue
  16545. else
  16546. break
  16547. fi
  16548. ;;
  16549. none) break ;;
  16550. esac
  16551. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16552. # mode. It turns out that the SunPro C++ compiler does not properly
  16553. # handle `-M -o', and we need to detect this.
  16554. if depmode=$depmode \
  16555. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  16556. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  16557. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  16558. >/dev/null 2>conftest.err &&
  16559. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  16560. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  16561. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  16562. # icc doesn't choke on unknown options, it will just issue warnings
  16563. # or remarks (even with -Werror). So we grep stderr for any message
  16564. # that says an option was ignored or not supported.
  16565. # When given -MP, icc 7.0 and 7.1 complain thusly:
  16566. # icc: Command line warning: ignoring option '-M'; no argument required
  16567. # The diagnosis changed in icc 8.0:
  16568. # icc: Command line remark: option '-MP' not supported
  16569. if (grep 'ignoring option' conftest.err ||
  16570. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  16571. am_cv_CXX_dependencies_compiler_type=$depmode
  16572. break
  16573. fi
  16574. fi
  16575. done
  16576. cd ..
  16577. rm -rf conftest.dir
  16578. else
  16579. am_cv_CXX_dependencies_compiler_type=none
  16580. fi
  16581. fi
  16582. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  16583. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  16584. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  16585. if
  16586. test "x$enable_dependency_tracking" != xno \
  16587. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  16588. am__fastdepCXX_TRUE=
  16589. am__fastdepCXX_FALSE='#'
  16590. else
  16591. am__fastdepCXX_TRUE='#'
  16592. am__fastdepCXX_FALSE=
  16593. fi
  16594. # Find a good install program. We prefer a C program (faster),
  16595. # so one script is as good as another. But avoid the broken or
  16596. # incompatible versions:
  16597. # SysV /etc/install, /usr/sbin/install
  16598. # SunOS /usr/etc/install
  16599. # IRIX /sbin/install
  16600. # AIX /bin/install
  16601. # AmigaOS /C/install, which installs bootblocks on floppy discs
  16602. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  16603. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  16604. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  16605. # OS/2's system install, which has a completely different semantic
  16606. # ./install, which can be erroneously created by make from ./install.sh.
  16607. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  16608. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  16609. if test -z "$INSTALL"; then
  16610. if test "${ac_cv_path_install+set}" = set; then
  16611. echo $ECHO_N "(cached) $ECHO_C" >&6
  16612. else
  16613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16614. for as_dir in $PATH
  16615. do
  16616. IFS=$as_save_IFS
  16617. test -z "$as_dir" && as_dir=.
  16618. # Account for people who put trailing slashes in PATH elements.
  16619. case $as_dir/ in
  16620. ./ | .// | /cC/* | \
  16621. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  16622. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  16623. /usr/ucb/* ) ;;
  16624. *)
  16625. # OSF1 and SCO ODT 3.0 have their own names for install.
  16626. # Don't use installbsd from OSF since it installs stuff as root
  16627. # by default.
  16628. for ac_prog in ginstall scoinst install; do
  16629. for ac_exec_ext in '' $ac_executable_extensions; do
  16630. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  16631. if test $ac_prog = install &&
  16632. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16633. # AIX install. It has an incompatible calling convention.
  16634. :
  16635. elif test $ac_prog = install &&
  16636. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16637. # program-specific install script used by HP pwplus--don't use.
  16638. :
  16639. else
  16640. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  16641. break 3
  16642. fi
  16643. fi
  16644. done
  16645. done
  16646. ;;
  16647. esac
  16648. done
  16649. fi
  16650. if test "${ac_cv_path_install+set}" = set; then
  16651. INSTALL=$ac_cv_path_install
  16652. else
  16653. # As a last resort, use the slow shell script. We don't cache a
  16654. # path for INSTALL within a source directory, because that will
  16655. # break other packages using the cache if that directory is
  16656. # removed, or if the path is relative.
  16657. INSTALL=$ac_install_sh
  16658. fi
  16659. fi
  16660. echo "$as_me:$LINENO: result: $INSTALL" >&5
  16661. echo "${ECHO_T}$INSTALL" >&6
  16662. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  16663. # It thinks the first close brace ends the variable substitution.
  16664. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  16665. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  16666. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  16667. ac_ext=c
  16668. ac_cpp='$CPP $CPPFLAGS'
  16669. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16670. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16671. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16672. if test -n "$ac_tool_prefix"; then
  16673. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  16674. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  16675. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16676. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16677. if test "${ac_cv_prog_CC+set}" = set; then
  16678. echo $ECHO_N "(cached) $ECHO_C" >&6
  16679. else
  16680. if test -n "$CC"; then
  16681. ac_cv_prog_CC="$CC" # Let the user override the test.
  16682. else
  16683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16684. for as_dir in $PATH
  16685. do
  16686. IFS=$as_save_IFS
  16687. test -z "$as_dir" && as_dir=.
  16688. for ac_exec_ext in '' $ac_executable_extensions; do
  16689. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16690. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  16691. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16692. break 2
  16693. fi
  16694. done
  16695. done
  16696. fi
  16697. fi
  16698. CC=$ac_cv_prog_CC
  16699. if test -n "$CC"; then
  16700. echo "$as_me:$LINENO: result: $CC" >&5
  16701. echo "${ECHO_T}$CC" >&6
  16702. else
  16703. echo "$as_me:$LINENO: result: no" >&5
  16704. echo "${ECHO_T}no" >&6
  16705. fi
  16706. fi
  16707. if test -z "$ac_cv_prog_CC"; then
  16708. ac_ct_CC=$CC
  16709. # Extract the first word of "gcc", so it can be a program name with args.
  16710. set dummy gcc; ac_word=$2
  16711. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16712. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16713. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  16714. echo $ECHO_N "(cached) $ECHO_C" >&6
  16715. else
  16716. if test -n "$ac_ct_CC"; then
  16717. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  16718. else
  16719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16720. for as_dir in $PATH
  16721. do
  16722. IFS=$as_save_IFS
  16723. test -z "$as_dir" && as_dir=.
  16724. for ac_exec_ext in '' $ac_executable_extensions; do
  16725. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16726. ac_cv_prog_ac_ct_CC="gcc"
  16727. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16728. break 2
  16729. fi
  16730. done
  16731. done
  16732. fi
  16733. fi
  16734. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16735. if test -n "$ac_ct_CC"; then
  16736. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16737. echo "${ECHO_T}$ac_ct_CC" >&6
  16738. else
  16739. echo "$as_me:$LINENO: result: no" >&5
  16740. echo "${ECHO_T}no" >&6
  16741. fi
  16742. CC=$ac_ct_CC
  16743. else
  16744. CC="$ac_cv_prog_CC"
  16745. fi
  16746. if test -z "$CC"; then
  16747. if test -n "$ac_tool_prefix"; then
  16748. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  16749. set dummy ${ac_tool_prefix}cc; ac_word=$2
  16750. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16751. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16752. if test "${ac_cv_prog_CC+set}" = set; then
  16753. echo $ECHO_N "(cached) $ECHO_C" >&6
  16754. else
  16755. if test -n "$CC"; then
  16756. ac_cv_prog_CC="$CC" # Let the user override the test.
  16757. else
  16758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16759. for as_dir in $PATH
  16760. do
  16761. IFS=$as_save_IFS
  16762. test -z "$as_dir" && as_dir=.
  16763. for ac_exec_ext in '' $ac_executable_extensions; do
  16764. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16765. ac_cv_prog_CC="${ac_tool_prefix}cc"
  16766. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16767. break 2
  16768. fi
  16769. done
  16770. done
  16771. fi
  16772. fi
  16773. CC=$ac_cv_prog_CC
  16774. if test -n "$CC"; then
  16775. echo "$as_me:$LINENO: result: $CC" >&5
  16776. echo "${ECHO_T}$CC" >&6
  16777. else
  16778. echo "$as_me:$LINENO: result: no" >&5
  16779. echo "${ECHO_T}no" >&6
  16780. fi
  16781. fi
  16782. if test -z "$ac_cv_prog_CC"; then
  16783. ac_ct_CC=$CC
  16784. # Extract the first word of "cc", so it can be a program name with args.
  16785. set dummy cc; ac_word=$2
  16786. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16787. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16788. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  16789. echo $ECHO_N "(cached) $ECHO_C" >&6
  16790. else
  16791. if test -n "$ac_ct_CC"; then
  16792. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  16793. else
  16794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16795. for as_dir in $PATH
  16796. do
  16797. IFS=$as_save_IFS
  16798. test -z "$as_dir" && as_dir=.
  16799. for ac_exec_ext in '' $ac_executable_extensions; do
  16800. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16801. ac_cv_prog_ac_ct_CC="cc"
  16802. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16803. break 2
  16804. fi
  16805. done
  16806. done
  16807. fi
  16808. fi
  16809. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16810. if test -n "$ac_ct_CC"; then
  16811. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16812. echo "${ECHO_T}$ac_ct_CC" >&6
  16813. else
  16814. echo "$as_me:$LINENO: result: no" >&5
  16815. echo "${ECHO_T}no" >&6
  16816. fi
  16817. CC=$ac_ct_CC
  16818. else
  16819. CC="$ac_cv_prog_CC"
  16820. fi
  16821. fi
  16822. if test -z "$CC"; then
  16823. # Extract the first word of "cc", so it can be a program name with args.
  16824. set dummy cc; ac_word=$2
  16825. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16826. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16827. if test "${ac_cv_prog_CC+set}" = set; then
  16828. echo $ECHO_N "(cached) $ECHO_C" >&6
  16829. else
  16830. if test -n "$CC"; then
  16831. ac_cv_prog_CC="$CC" # Let the user override the test.
  16832. else
  16833. ac_prog_rejected=no
  16834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16835. for as_dir in $PATH
  16836. do
  16837. IFS=$as_save_IFS
  16838. test -z "$as_dir" && as_dir=.
  16839. for ac_exec_ext in '' $ac_executable_extensions; do
  16840. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16841. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  16842. ac_prog_rejected=yes
  16843. continue
  16844. fi
  16845. ac_cv_prog_CC="cc"
  16846. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16847. break 2
  16848. fi
  16849. done
  16850. done
  16851. if test $ac_prog_rejected = yes; then
  16852. # We found a bogon in the path, so make sure we never use it.
  16853. set dummy $ac_cv_prog_CC
  16854. shift
  16855. if test $# != 0; then
  16856. # We chose a different compiler from the bogus one.
  16857. # However, it has the same basename, so the bogon will be chosen
  16858. # first if we set CC to just the basename; use the full file name.
  16859. shift
  16860. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  16861. fi
  16862. fi
  16863. fi
  16864. fi
  16865. CC=$ac_cv_prog_CC
  16866. if test -n "$CC"; then
  16867. echo "$as_me:$LINENO: result: $CC" >&5
  16868. echo "${ECHO_T}$CC" >&6
  16869. else
  16870. echo "$as_me:$LINENO: result: no" >&5
  16871. echo "${ECHO_T}no" >&6
  16872. fi
  16873. fi
  16874. if test -z "$CC"; then
  16875. if test -n "$ac_tool_prefix"; then
  16876. for ac_prog in cl
  16877. do
  16878. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  16879. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  16880. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16881. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16882. if test "${ac_cv_prog_CC+set}" = set; then
  16883. echo $ECHO_N "(cached) $ECHO_C" >&6
  16884. else
  16885. if test -n "$CC"; then
  16886. ac_cv_prog_CC="$CC" # Let the user override the test.
  16887. else
  16888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16889. for as_dir in $PATH
  16890. do
  16891. IFS=$as_save_IFS
  16892. test -z "$as_dir" && as_dir=.
  16893. for ac_exec_ext in '' $ac_executable_extensions; do
  16894. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16895. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  16896. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16897. break 2
  16898. fi
  16899. done
  16900. done
  16901. fi
  16902. fi
  16903. CC=$ac_cv_prog_CC
  16904. if test -n "$CC"; then
  16905. echo "$as_me:$LINENO: result: $CC" >&5
  16906. echo "${ECHO_T}$CC" >&6
  16907. else
  16908. echo "$as_me:$LINENO: result: no" >&5
  16909. echo "${ECHO_T}no" >&6
  16910. fi
  16911. test -n "$CC" && break
  16912. done
  16913. fi
  16914. if test -z "$CC"; then
  16915. ac_ct_CC=$CC
  16916. for ac_prog in cl
  16917. do
  16918. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16919. set dummy $ac_prog; ac_word=$2
  16920. echo "$as_me:$LINENO: checking for $ac_word" >&5
  16921. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16922. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  16923. echo $ECHO_N "(cached) $ECHO_C" >&6
  16924. else
  16925. if test -n "$ac_ct_CC"; then
  16926. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  16927. else
  16928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16929. for as_dir in $PATH
  16930. do
  16931. IFS=$as_save_IFS
  16932. test -z "$as_dir" && as_dir=.
  16933. for ac_exec_ext in '' $ac_executable_extensions; do
  16934. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16935. ac_cv_prog_ac_ct_CC="$ac_prog"
  16936. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16937. break 2
  16938. fi
  16939. done
  16940. done
  16941. fi
  16942. fi
  16943. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  16944. if test -n "$ac_ct_CC"; then
  16945. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  16946. echo "${ECHO_T}$ac_ct_CC" >&6
  16947. else
  16948. echo "$as_me:$LINENO: result: no" >&5
  16949. echo "${ECHO_T}no" >&6
  16950. fi
  16951. test -n "$ac_ct_CC" && break
  16952. done
  16953. CC=$ac_ct_CC
  16954. fi
  16955. fi
  16956. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  16957. See \`config.log' for more details." >&5
  16958. echo "$as_me: error: no acceptable C compiler found in \$PATH
  16959. See \`config.log' for more details." >&2;}
  16960. { (exit 1); exit 1; }; }
  16961. # Provide some information about the compiler.
  16962. echo "$as_me:$LINENO:" \
  16963. "checking for C compiler version" >&5
  16964. ac_compiler=`set X $ac_compile; echo $2`
  16965. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  16966. (eval $ac_compiler --version </dev/null >&5) 2>&5
  16967. ac_status=$?
  16968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16969. (exit $ac_status); }
  16970. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  16971. (eval $ac_compiler -v </dev/null >&5) 2>&5
  16972. ac_status=$?
  16973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16974. (exit $ac_status); }
  16975. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  16976. (eval $ac_compiler -V </dev/null >&5) 2>&5
  16977. ac_status=$?
  16978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16979. (exit $ac_status); }
  16980. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  16981. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  16982. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  16983. echo $ECHO_N "(cached) $ECHO_C" >&6
  16984. else
  16985. cat >conftest.$ac_ext <<_ACEOF
  16986. /* confdefs.h. */
  16987. _ACEOF
  16988. cat confdefs.h >>conftest.$ac_ext
  16989. cat >>conftest.$ac_ext <<_ACEOF
  16990. /* end confdefs.h. */
  16991. int
  16992. main ()
  16993. {
  16994. #ifndef __GNUC__
  16995. choke me
  16996. #endif
  16997. ;
  16998. return 0;
  16999. }
  17000. _ACEOF
  17001. rm -f conftest.$ac_objext
  17002. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17003. (eval $ac_compile) 2>conftest.er1
  17004. ac_status=$?
  17005. grep -v '^ *+' conftest.er1 >conftest.err
  17006. rm -f conftest.er1
  17007. cat conftest.err >&5
  17008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17009. (exit $ac_status); } &&
  17010. { ac_try='test -z "$ac_c_werror_flag"
  17011. || test ! -s conftest.err'
  17012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17013. (eval $ac_try) 2>&5
  17014. ac_status=$?
  17015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17016. (exit $ac_status); }; } &&
  17017. { ac_try='test -s conftest.$ac_objext'
  17018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17019. (eval $ac_try) 2>&5
  17020. ac_status=$?
  17021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17022. (exit $ac_status); }; }; then
  17023. ac_compiler_gnu=yes
  17024. else
  17025. echo "$as_me: failed program was:" >&5
  17026. sed 's/^/| /' conftest.$ac_ext >&5
  17027. ac_compiler_gnu=no
  17028. fi
  17029. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17030. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  17031. fi
  17032. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  17033. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  17034. GCC=`test $ac_compiler_gnu = yes && echo yes`
  17035. ac_test_CFLAGS=${CFLAGS+set}
  17036. ac_save_CFLAGS=$CFLAGS
  17037. CFLAGS="-g"
  17038. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  17039. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  17040. if test "${ac_cv_prog_cc_g+set}" = set; then
  17041. echo $ECHO_N "(cached) $ECHO_C" >&6
  17042. else
  17043. cat >conftest.$ac_ext <<_ACEOF
  17044. /* confdefs.h. */
  17045. _ACEOF
  17046. cat confdefs.h >>conftest.$ac_ext
  17047. cat >>conftest.$ac_ext <<_ACEOF
  17048. /* end confdefs.h. */
  17049. int
  17050. main ()
  17051. {
  17052. ;
  17053. return 0;
  17054. }
  17055. _ACEOF
  17056. rm -f conftest.$ac_objext
  17057. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17058. (eval $ac_compile) 2>conftest.er1
  17059. ac_status=$?
  17060. grep -v '^ *+' conftest.er1 >conftest.err
  17061. rm -f conftest.er1
  17062. cat conftest.err >&5
  17063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17064. (exit $ac_status); } &&
  17065. { ac_try='test -z "$ac_c_werror_flag"
  17066. || test ! -s conftest.err'
  17067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17068. (eval $ac_try) 2>&5
  17069. ac_status=$?
  17070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17071. (exit $ac_status); }; } &&
  17072. { ac_try='test -s conftest.$ac_objext'
  17073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17074. (eval $ac_try) 2>&5
  17075. ac_status=$?
  17076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17077. (exit $ac_status); }; }; then
  17078. ac_cv_prog_cc_g=yes
  17079. else
  17080. echo "$as_me: failed program was:" >&5
  17081. sed 's/^/| /' conftest.$ac_ext >&5
  17082. ac_cv_prog_cc_g=no
  17083. fi
  17084. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17085. fi
  17086. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  17087. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  17088. if test "$ac_test_CFLAGS" = set; then
  17089. CFLAGS=$ac_save_CFLAGS
  17090. elif test $ac_cv_prog_cc_g = yes; then
  17091. if test "$GCC" = yes; then
  17092. CFLAGS="-g -O2"
  17093. else
  17094. CFLAGS="-g"
  17095. fi
  17096. else
  17097. if test "$GCC" = yes; then
  17098. CFLAGS="-O2"
  17099. else
  17100. CFLAGS=
  17101. fi
  17102. fi
  17103. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  17104. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  17105. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  17106. echo $ECHO_N "(cached) $ECHO_C" >&6
  17107. else
  17108. ac_cv_prog_cc_stdc=no
  17109. ac_save_CC=$CC
  17110. cat >conftest.$ac_ext <<_ACEOF
  17111. /* confdefs.h. */
  17112. _ACEOF
  17113. cat confdefs.h >>conftest.$ac_ext
  17114. cat >>conftest.$ac_ext <<_ACEOF
  17115. /* end confdefs.h. */
  17116. #include <stdarg.h>
  17117. #include <stdio.h>
  17118. #include <sys/types.h>
  17119. #include <sys/stat.h>
  17120. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  17121. struct buf { int x; };
  17122. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  17123. static char *e (p, i)
  17124. char **p;
  17125. int i;
  17126. {
  17127. return p[i];
  17128. }
  17129. static char *f (char * (*g) (char **, int), char **p, ...)
  17130. {
  17131. char *s;
  17132. va_list v;
  17133. va_start (v,p);
  17134. s = g (p, va_arg (v,int));
  17135. va_end (v);
  17136. return s;
  17137. }
  17138. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  17139. function prototypes and stuff, but not '\xHH' hex character constants.
  17140. These don't provoke an error unfortunately, instead are silently treated
  17141. as 'x'. The following induces an error, until -std1 is added to get
  17142. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  17143. array size at least. It's necessary to write '\x00'==0 to get something
  17144. that's true only with -std1. */
  17145. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  17146. int test (int i, double x);
  17147. struct s1 {int (*f) (int a);};
  17148. struct s2 {int (*f) (double a);};
  17149. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  17150. int argc;
  17151. char **argv;
  17152. int
  17153. main ()
  17154. {
  17155. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  17156. ;
  17157. return 0;
  17158. }
  17159. _ACEOF
  17160. # Don't try gcc -ansi; that turns off useful extensions and
  17161. # breaks some systems' header files.
  17162. # AIX -qlanglvl=ansi
  17163. # Ultrix and OSF/1 -std1
  17164. # HP-UX 10.20 and later -Ae
  17165. # HP-UX older versions -Aa -D_HPUX_SOURCE
  17166. # SVR4 -Xc -D__EXTENSIONS__
  17167. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  17168. do
  17169. CC="$ac_save_CC $ac_arg"
  17170. rm -f conftest.$ac_objext
  17171. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17172. (eval $ac_compile) 2>conftest.er1
  17173. ac_status=$?
  17174. grep -v '^ *+' conftest.er1 >conftest.err
  17175. rm -f conftest.er1
  17176. cat conftest.err >&5
  17177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17178. (exit $ac_status); } &&
  17179. { ac_try='test -z "$ac_c_werror_flag"
  17180. || test ! -s conftest.err'
  17181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17182. (eval $ac_try) 2>&5
  17183. ac_status=$?
  17184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17185. (exit $ac_status); }; } &&
  17186. { ac_try='test -s conftest.$ac_objext'
  17187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17188. (eval $ac_try) 2>&5
  17189. ac_status=$?
  17190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17191. (exit $ac_status); }; }; then
  17192. ac_cv_prog_cc_stdc=$ac_arg
  17193. break
  17194. else
  17195. echo "$as_me: failed program was:" >&5
  17196. sed 's/^/| /' conftest.$ac_ext >&5
  17197. fi
  17198. rm -f conftest.err conftest.$ac_objext
  17199. done
  17200. rm -f conftest.$ac_ext conftest.$ac_objext
  17201. CC=$ac_save_CC
  17202. fi
  17203. case "x$ac_cv_prog_cc_stdc" in
  17204. x|xno)
  17205. echo "$as_me:$LINENO: result: none needed" >&5
  17206. echo "${ECHO_T}none needed" >&6 ;;
  17207. *)
  17208. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  17209. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  17210. CC="$CC $ac_cv_prog_cc_stdc" ;;
  17211. esac
  17212. # Some people use a C++ compiler to compile C. Since we use `exit',
  17213. # in C++ we need to declare it. In case someone uses the same compiler
  17214. # for both compiling C and C++ we need to have the C++ compiler decide
  17215. # the declaration of exit, since it's the most demanding environment.
  17216. cat >conftest.$ac_ext <<_ACEOF
  17217. #ifndef __cplusplus
  17218. choke me
  17219. #endif
  17220. _ACEOF
  17221. rm -f conftest.$ac_objext
  17222. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17223. (eval $ac_compile) 2>conftest.er1
  17224. ac_status=$?
  17225. grep -v '^ *+' conftest.er1 >conftest.err
  17226. rm -f conftest.er1
  17227. cat conftest.err >&5
  17228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17229. (exit $ac_status); } &&
  17230. { ac_try='test -z "$ac_c_werror_flag"
  17231. || test ! -s conftest.err'
  17232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17233. (eval $ac_try) 2>&5
  17234. ac_status=$?
  17235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17236. (exit $ac_status); }; } &&
  17237. { ac_try='test -s conftest.$ac_objext'
  17238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17239. (eval $ac_try) 2>&5
  17240. ac_status=$?
  17241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17242. (exit $ac_status); }; }; then
  17243. for ac_declaration in \
  17244. '' \
  17245. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  17246. 'extern "C" void std::exit (int); using std::exit;' \
  17247. 'extern "C" void exit (int) throw ();' \
  17248. 'extern "C" void exit (int);' \
  17249. 'void exit (int);'
  17250. do
  17251. cat >conftest.$ac_ext <<_ACEOF
  17252. /* confdefs.h. */
  17253. _ACEOF
  17254. cat confdefs.h >>conftest.$ac_ext
  17255. cat >>conftest.$ac_ext <<_ACEOF
  17256. /* end confdefs.h. */
  17257. $ac_declaration
  17258. #include <stdlib.h>
  17259. int
  17260. main ()
  17261. {
  17262. exit (42);
  17263. ;
  17264. return 0;
  17265. }
  17266. _ACEOF
  17267. rm -f conftest.$ac_objext
  17268. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17269. (eval $ac_compile) 2>conftest.er1
  17270. ac_status=$?
  17271. grep -v '^ *+' conftest.er1 >conftest.err
  17272. rm -f conftest.er1
  17273. cat conftest.err >&5
  17274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17275. (exit $ac_status); } &&
  17276. { ac_try='test -z "$ac_c_werror_flag"
  17277. || test ! -s conftest.err'
  17278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17279. (eval $ac_try) 2>&5
  17280. ac_status=$?
  17281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17282. (exit $ac_status); }; } &&
  17283. { ac_try='test -s conftest.$ac_objext'
  17284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17285. (eval $ac_try) 2>&5
  17286. ac_status=$?
  17287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17288. (exit $ac_status); }; }; then
  17289. :
  17290. else
  17291. echo "$as_me: failed program was:" >&5
  17292. sed 's/^/| /' conftest.$ac_ext >&5
  17293. continue
  17294. fi
  17295. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17296. cat >conftest.$ac_ext <<_ACEOF
  17297. /* confdefs.h. */
  17298. _ACEOF
  17299. cat confdefs.h >>conftest.$ac_ext
  17300. cat >>conftest.$ac_ext <<_ACEOF
  17301. /* end confdefs.h. */
  17302. $ac_declaration
  17303. int
  17304. main ()
  17305. {
  17306. exit (42);
  17307. ;
  17308. return 0;
  17309. }
  17310. _ACEOF
  17311. rm -f conftest.$ac_objext
  17312. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17313. (eval $ac_compile) 2>conftest.er1
  17314. ac_status=$?
  17315. grep -v '^ *+' conftest.er1 >conftest.err
  17316. rm -f conftest.er1
  17317. cat conftest.err >&5
  17318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17319. (exit $ac_status); } &&
  17320. { ac_try='test -z "$ac_c_werror_flag"
  17321. || test ! -s conftest.err'
  17322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17323. (eval $ac_try) 2>&5
  17324. ac_status=$?
  17325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17326. (exit $ac_status); }; } &&
  17327. { ac_try='test -s conftest.$ac_objext'
  17328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17329. (eval $ac_try) 2>&5
  17330. ac_status=$?
  17331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17332. (exit $ac_status); }; }; then
  17333. break
  17334. else
  17335. echo "$as_me: failed program was:" >&5
  17336. sed 's/^/| /' conftest.$ac_ext >&5
  17337. fi
  17338. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17339. done
  17340. rm -f conftest*
  17341. if test -n "$ac_declaration"; then
  17342. echo '#ifdef __cplusplus' >>confdefs.h
  17343. echo $ac_declaration >>confdefs.h
  17344. echo '#endif' >>confdefs.h
  17345. fi
  17346. else
  17347. echo "$as_me: failed program was:" >&5
  17348. sed 's/^/| /' conftest.$ac_ext >&5
  17349. fi
  17350. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17351. ac_ext=c
  17352. ac_cpp='$CPP $CPPFLAGS'
  17353. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17354. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17355. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17356. ac_ext=cc
  17357. ac_cpp='$CXXCPP $CPPFLAGS'
  17358. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17359. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17360. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17361. if test -n "$ac_tool_prefix"; then
  17362. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  17363. do
  17364. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17365. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17366. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17367. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17368. if test "${ac_cv_prog_CXX+set}" = set; then
  17369. echo $ECHO_N "(cached) $ECHO_C" >&6
  17370. else
  17371. if test -n "$CXX"; then
  17372. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  17373. else
  17374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17375. for as_dir in $PATH
  17376. do
  17377. IFS=$as_save_IFS
  17378. test -z "$as_dir" && as_dir=.
  17379. for ac_exec_ext in '' $ac_executable_extensions; do
  17380. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17381. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  17382. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17383. break 2
  17384. fi
  17385. done
  17386. done
  17387. fi
  17388. fi
  17389. CXX=$ac_cv_prog_CXX
  17390. if test -n "$CXX"; then
  17391. echo "$as_me:$LINENO: result: $CXX" >&5
  17392. echo "${ECHO_T}$CXX" >&6
  17393. else
  17394. echo "$as_me:$LINENO: result: no" >&5
  17395. echo "${ECHO_T}no" >&6
  17396. fi
  17397. test -n "$CXX" && break
  17398. done
  17399. fi
  17400. if test -z "$CXX"; then
  17401. ac_ct_CXX=$CXX
  17402. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  17403. do
  17404. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17405. set dummy $ac_prog; ac_word=$2
  17406. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17407. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17408. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  17409. echo $ECHO_N "(cached) $ECHO_C" >&6
  17410. else
  17411. if test -n "$ac_ct_CXX"; then
  17412. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  17413. else
  17414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17415. for as_dir in $PATH
  17416. do
  17417. IFS=$as_save_IFS
  17418. test -z "$as_dir" && as_dir=.
  17419. for ac_exec_ext in '' $ac_executable_extensions; do
  17420. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17421. ac_cv_prog_ac_ct_CXX="$ac_prog"
  17422. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17423. break 2
  17424. fi
  17425. done
  17426. done
  17427. fi
  17428. fi
  17429. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  17430. if test -n "$ac_ct_CXX"; then
  17431. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  17432. echo "${ECHO_T}$ac_ct_CXX" >&6
  17433. else
  17434. echo "$as_me:$LINENO: result: no" >&5
  17435. echo "${ECHO_T}no" >&6
  17436. fi
  17437. test -n "$ac_ct_CXX" && break
  17438. done
  17439. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  17440. CXX=$ac_ct_CXX
  17441. fi
  17442. # Provide some information about the compiler.
  17443. echo "$as_me:$LINENO:" \
  17444. "checking for C++ compiler version" >&5
  17445. ac_compiler=`set X $ac_compile; echo $2`
  17446. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  17447. (eval $ac_compiler --version </dev/null >&5) 2>&5
  17448. ac_status=$?
  17449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17450. (exit $ac_status); }
  17451. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  17452. (eval $ac_compiler -v </dev/null >&5) 2>&5
  17453. ac_status=$?
  17454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17455. (exit $ac_status); }
  17456. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  17457. (eval $ac_compiler -V </dev/null >&5) 2>&5
  17458. ac_status=$?
  17459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17460. (exit $ac_status); }
  17461. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  17462. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  17463. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  17464. echo $ECHO_N "(cached) $ECHO_C" >&6
  17465. else
  17466. cat >conftest.$ac_ext <<_ACEOF
  17467. /* confdefs.h. */
  17468. _ACEOF
  17469. cat confdefs.h >>conftest.$ac_ext
  17470. cat >>conftest.$ac_ext <<_ACEOF
  17471. /* end confdefs.h. */
  17472. int
  17473. main ()
  17474. {
  17475. #ifndef __GNUC__
  17476. choke me
  17477. #endif
  17478. ;
  17479. return 0;
  17480. }
  17481. _ACEOF
  17482. rm -f conftest.$ac_objext
  17483. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17484. (eval $ac_compile) 2>conftest.er1
  17485. ac_status=$?
  17486. grep -v '^ *+' conftest.er1 >conftest.err
  17487. rm -f conftest.er1
  17488. cat conftest.err >&5
  17489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17490. (exit $ac_status); } &&
  17491. { ac_try='test -z "$ac_cxx_werror_flag"
  17492. || test ! -s conftest.err'
  17493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17494. (eval $ac_try) 2>&5
  17495. ac_status=$?
  17496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17497. (exit $ac_status); }; } &&
  17498. { ac_try='test -s conftest.$ac_objext'
  17499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17500. (eval $ac_try) 2>&5
  17501. ac_status=$?
  17502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17503. (exit $ac_status); }; }; then
  17504. ac_compiler_gnu=yes
  17505. else
  17506. echo "$as_me: failed program was:" >&5
  17507. sed 's/^/| /' conftest.$ac_ext >&5
  17508. ac_compiler_gnu=no
  17509. fi
  17510. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17511. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  17512. fi
  17513. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  17514. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  17515. GXX=`test $ac_compiler_gnu = yes && echo yes`
  17516. ac_test_CXXFLAGS=${CXXFLAGS+set}
  17517. ac_save_CXXFLAGS=$CXXFLAGS
  17518. CXXFLAGS="-g"
  17519. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  17520. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  17521. if test "${ac_cv_prog_cxx_g+set}" = set; then
  17522. echo $ECHO_N "(cached) $ECHO_C" >&6
  17523. else
  17524. cat >conftest.$ac_ext <<_ACEOF
  17525. /* confdefs.h. */
  17526. _ACEOF
  17527. cat confdefs.h >>conftest.$ac_ext
  17528. cat >>conftest.$ac_ext <<_ACEOF
  17529. /* end confdefs.h. */
  17530. int
  17531. main ()
  17532. {
  17533. ;
  17534. return 0;
  17535. }
  17536. _ACEOF
  17537. rm -f conftest.$ac_objext
  17538. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17539. (eval $ac_compile) 2>conftest.er1
  17540. ac_status=$?
  17541. grep -v '^ *+' conftest.er1 >conftest.err
  17542. rm -f conftest.er1
  17543. cat conftest.err >&5
  17544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17545. (exit $ac_status); } &&
  17546. { ac_try='test -z "$ac_cxx_werror_flag"
  17547. || test ! -s conftest.err'
  17548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17549. (eval $ac_try) 2>&5
  17550. ac_status=$?
  17551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17552. (exit $ac_status); }; } &&
  17553. { ac_try='test -s conftest.$ac_objext'
  17554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17555. (eval $ac_try) 2>&5
  17556. ac_status=$?
  17557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17558. (exit $ac_status); }; }; then
  17559. ac_cv_prog_cxx_g=yes
  17560. else
  17561. echo "$as_me: failed program was:" >&5
  17562. sed 's/^/| /' conftest.$ac_ext >&5
  17563. ac_cv_prog_cxx_g=no
  17564. fi
  17565. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17566. fi
  17567. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  17568. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  17569. if test "$ac_test_CXXFLAGS" = set; then
  17570. CXXFLAGS=$ac_save_CXXFLAGS
  17571. elif test $ac_cv_prog_cxx_g = yes; then
  17572. if test "$GXX" = yes; then
  17573. CXXFLAGS="-g -O2"
  17574. else
  17575. CXXFLAGS="-g"
  17576. fi
  17577. else
  17578. if test "$GXX" = yes; then
  17579. CXXFLAGS="-O2"
  17580. else
  17581. CXXFLAGS=
  17582. fi
  17583. fi
  17584. for ac_declaration in \
  17585. '' \
  17586. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  17587. 'extern "C" void std::exit (int); using std::exit;' \
  17588. 'extern "C" void exit (int) throw ();' \
  17589. 'extern "C" void exit (int);' \
  17590. 'void exit (int);'
  17591. do
  17592. cat >conftest.$ac_ext <<_ACEOF
  17593. /* confdefs.h. */
  17594. _ACEOF
  17595. cat confdefs.h >>conftest.$ac_ext
  17596. cat >>conftest.$ac_ext <<_ACEOF
  17597. /* end confdefs.h. */
  17598. $ac_declaration
  17599. #include <stdlib.h>
  17600. int
  17601. main ()
  17602. {
  17603. exit (42);
  17604. ;
  17605. return 0;
  17606. }
  17607. _ACEOF
  17608. rm -f conftest.$ac_objext
  17609. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17610. (eval $ac_compile) 2>conftest.er1
  17611. ac_status=$?
  17612. grep -v '^ *+' conftest.er1 >conftest.err
  17613. rm -f conftest.er1
  17614. cat conftest.err >&5
  17615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17616. (exit $ac_status); } &&
  17617. { ac_try='test -z "$ac_cxx_werror_flag"
  17618. || test ! -s conftest.err'
  17619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17620. (eval $ac_try) 2>&5
  17621. ac_status=$?
  17622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17623. (exit $ac_status); }; } &&
  17624. { ac_try='test -s conftest.$ac_objext'
  17625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17626. (eval $ac_try) 2>&5
  17627. ac_status=$?
  17628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17629. (exit $ac_status); }; }; then
  17630. :
  17631. else
  17632. echo "$as_me: failed program was:" >&5
  17633. sed 's/^/| /' conftest.$ac_ext >&5
  17634. continue
  17635. fi
  17636. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17637. cat >conftest.$ac_ext <<_ACEOF
  17638. /* confdefs.h. */
  17639. _ACEOF
  17640. cat confdefs.h >>conftest.$ac_ext
  17641. cat >>conftest.$ac_ext <<_ACEOF
  17642. /* end confdefs.h. */
  17643. $ac_declaration
  17644. int
  17645. main ()
  17646. {
  17647. exit (42);
  17648. ;
  17649. return 0;
  17650. }
  17651. _ACEOF
  17652. rm -f conftest.$ac_objext
  17653. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17654. (eval $ac_compile) 2>conftest.er1
  17655. ac_status=$?
  17656. grep -v '^ *+' conftest.er1 >conftest.err
  17657. rm -f conftest.er1
  17658. cat conftest.err >&5
  17659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17660. (exit $ac_status); } &&
  17661. { ac_try='test -z "$ac_cxx_werror_flag"
  17662. || test ! -s conftest.err'
  17663. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17664. (eval $ac_try) 2>&5
  17665. ac_status=$?
  17666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17667. (exit $ac_status); }; } &&
  17668. { ac_try='test -s conftest.$ac_objext'
  17669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17670. (eval $ac_try) 2>&5
  17671. ac_status=$?
  17672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17673. (exit $ac_status); }; }; then
  17674. break
  17675. else
  17676. echo "$as_me: failed program was:" >&5
  17677. sed 's/^/| /' conftest.$ac_ext >&5
  17678. fi
  17679. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17680. done
  17681. rm -f conftest*
  17682. if test -n "$ac_declaration"; then
  17683. echo '#ifdef __cplusplus' >>confdefs.h
  17684. echo $ac_declaration >>confdefs.h
  17685. echo '#endif' >>confdefs.h
  17686. fi
  17687. ac_ext=c
  17688. ac_cpp='$CPP $CPPFLAGS'
  17689. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17690. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17691. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17692. ac_ext=c
  17693. ac_cpp='$CPP $CPPFLAGS'
  17694. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17695. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17696. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17697. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  17698. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  17699. # On Suns, sometimes $CPP names a directory.
  17700. if test -n "$CPP" && test -d "$CPP"; then
  17701. CPP=
  17702. fi
  17703. if test -z "$CPP"; then
  17704. if test "${ac_cv_prog_CPP+set}" = set; then
  17705. echo $ECHO_N "(cached) $ECHO_C" >&6
  17706. else
  17707. # Double quotes because CPP needs to be expanded
  17708. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  17709. do
  17710. ac_preproc_ok=false
  17711. for ac_c_preproc_warn_flag in '' yes
  17712. do
  17713. # Use a header file that comes with gcc, so configuring glibc
  17714. # with a fresh cross-compiler works.
  17715. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17716. # <limits.h> exists even on freestanding compilers.
  17717. # On the NeXT, cc -E runs the code through the compiler's parser,
  17718. # not just through cpp. "Syntax error" is here to catch this case.
  17719. cat >conftest.$ac_ext <<_ACEOF
  17720. /* confdefs.h. */
  17721. _ACEOF
  17722. cat confdefs.h >>conftest.$ac_ext
  17723. cat >>conftest.$ac_ext <<_ACEOF
  17724. /* end confdefs.h. */
  17725. #ifdef __STDC__
  17726. # include <limits.h>
  17727. #else
  17728. # include <assert.h>
  17729. #endif
  17730. Syntax error
  17731. _ACEOF
  17732. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17733. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17734. ac_status=$?
  17735. grep -v '^ *+' conftest.er1 >conftest.err
  17736. rm -f conftest.er1
  17737. cat conftest.err >&5
  17738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17739. (exit $ac_status); } >/dev/null; then
  17740. if test -s conftest.err; then
  17741. ac_cpp_err=$ac_c_preproc_warn_flag
  17742. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17743. else
  17744. ac_cpp_err=
  17745. fi
  17746. else
  17747. ac_cpp_err=yes
  17748. fi
  17749. if test -z "$ac_cpp_err"; then
  17750. :
  17751. else
  17752. echo "$as_me: failed program was:" >&5
  17753. sed 's/^/| /' conftest.$ac_ext >&5
  17754. # Broken: fails on valid input.
  17755. continue
  17756. fi
  17757. rm -f conftest.err conftest.$ac_ext
  17758. # OK, works on sane cases. Now check whether non-existent headers
  17759. # can be detected and how.
  17760. cat >conftest.$ac_ext <<_ACEOF
  17761. /* confdefs.h. */
  17762. _ACEOF
  17763. cat confdefs.h >>conftest.$ac_ext
  17764. cat >>conftest.$ac_ext <<_ACEOF
  17765. /* end confdefs.h. */
  17766. #include <ac_nonexistent.h>
  17767. _ACEOF
  17768. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17769. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17770. ac_status=$?
  17771. grep -v '^ *+' conftest.er1 >conftest.err
  17772. rm -f conftest.er1
  17773. cat conftest.err >&5
  17774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17775. (exit $ac_status); } >/dev/null; then
  17776. if test -s conftest.err; then
  17777. ac_cpp_err=$ac_c_preproc_warn_flag
  17778. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17779. else
  17780. ac_cpp_err=
  17781. fi
  17782. else
  17783. ac_cpp_err=yes
  17784. fi
  17785. if test -z "$ac_cpp_err"; then
  17786. # Broken: success on invalid input.
  17787. continue
  17788. else
  17789. echo "$as_me: failed program was:" >&5
  17790. sed 's/^/| /' conftest.$ac_ext >&5
  17791. # Passes both tests.
  17792. ac_preproc_ok=:
  17793. break
  17794. fi
  17795. rm -f conftest.err conftest.$ac_ext
  17796. done
  17797. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17798. rm -f conftest.err conftest.$ac_ext
  17799. if $ac_preproc_ok; then
  17800. break
  17801. fi
  17802. done
  17803. ac_cv_prog_CPP=$CPP
  17804. fi
  17805. CPP=$ac_cv_prog_CPP
  17806. else
  17807. ac_cv_prog_CPP=$CPP
  17808. fi
  17809. echo "$as_me:$LINENO: result: $CPP" >&5
  17810. echo "${ECHO_T}$CPP" >&6
  17811. ac_preproc_ok=false
  17812. for ac_c_preproc_warn_flag in '' yes
  17813. do
  17814. # Use a header file that comes with gcc, so configuring glibc
  17815. # with a fresh cross-compiler works.
  17816. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17817. # <limits.h> exists even on freestanding compilers.
  17818. # On the NeXT, cc -E runs the code through the compiler's parser,
  17819. # not just through cpp. "Syntax error" is here to catch this case.
  17820. cat >conftest.$ac_ext <<_ACEOF
  17821. /* confdefs.h. */
  17822. _ACEOF
  17823. cat confdefs.h >>conftest.$ac_ext
  17824. cat >>conftest.$ac_ext <<_ACEOF
  17825. /* end confdefs.h. */
  17826. #ifdef __STDC__
  17827. # include <limits.h>
  17828. #else
  17829. # include <assert.h>
  17830. #endif
  17831. Syntax error
  17832. _ACEOF
  17833. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17834. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17835. ac_status=$?
  17836. grep -v '^ *+' conftest.er1 >conftest.err
  17837. rm -f conftest.er1
  17838. cat conftest.err >&5
  17839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17840. (exit $ac_status); } >/dev/null; then
  17841. if test -s conftest.err; then
  17842. ac_cpp_err=$ac_c_preproc_warn_flag
  17843. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17844. else
  17845. ac_cpp_err=
  17846. fi
  17847. else
  17848. ac_cpp_err=yes
  17849. fi
  17850. if test -z "$ac_cpp_err"; then
  17851. :
  17852. else
  17853. echo "$as_me: failed program was:" >&5
  17854. sed 's/^/| /' conftest.$ac_ext >&5
  17855. # Broken: fails on valid input.
  17856. continue
  17857. fi
  17858. rm -f conftest.err conftest.$ac_ext
  17859. # OK, works on sane cases. Now check whether non-existent headers
  17860. # can be detected and how.
  17861. cat >conftest.$ac_ext <<_ACEOF
  17862. /* confdefs.h. */
  17863. _ACEOF
  17864. cat confdefs.h >>conftest.$ac_ext
  17865. cat >>conftest.$ac_ext <<_ACEOF
  17866. /* end confdefs.h. */
  17867. #include <ac_nonexistent.h>
  17868. _ACEOF
  17869. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17870. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17871. ac_status=$?
  17872. grep -v '^ *+' conftest.er1 >conftest.err
  17873. rm -f conftest.er1
  17874. cat conftest.err >&5
  17875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17876. (exit $ac_status); } >/dev/null; then
  17877. if test -s conftest.err; then
  17878. ac_cpp_err=$ac_c_preproc_warn_flag
  17879. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17880. else
  17881. ac_cpp_err=
  17882. fi
  17883. else
  17884. ac_cpp_err=yes
  17885. fi
  17886. if test -z "$ac_cpp_err"; then
  17887. # Broken: success on invalid input.
  17888. continue
  17889. else
  17890. echo "$as_me: failed program was:" >&5
  17891. sed 's/^/| /' conftest.$ac_ext >&5
  17892. # Passes both tests.
  17893. ac_preproc_ok=:
  17894. break
  17895. fi
  17896. rm -f conftest.err conftest.$ac_ext
  17897. done
  17898. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17899. rm -f conftest.err conftest.$ac_ext
  17900. if $ac_preproc_ok; then
  17901. :
  17902. else
  17903. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  17904. See \`config.log' for more details." >&5
  17905. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  17906. See \`config.log' for more details." >&2;}
  17907. { (exit 1); exit 1; }; }
  17908. fi
  17909. ac_ext=c
  17910. ac_cpp='$CPP $CPPFLAGS'
  17911. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17912. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17913. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17914. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  17915. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  17916. LN_S=$as_ln_s
  17917. if test "$LN_S" = "ln -s"; then
  17918. echo "$as_me:$LINENO: result: yes" >&5
  17919. echo "${ECHO_T}yes" >&6
  17920. else
  17921. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  17922. echo "${ECHO_T}no, using $LN_S" >&6
  17923. fi
  17924. if test -n "$ac_tool_prefix"; then
  17925. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  17926. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  17927. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17928. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17929. if test "${ac_cv_prog_RANLIB+set}" = set; then
  17930. echo $ECHO_N "(cached) $ECHO_C" >&6
  17931. else
  17932. if test -n "$RANLIB"; then
  17933. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  17934. else
  17935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17936. for as_dir in $PATH
  17937. do
  17938. IFS=$as_save_IFS
  17939. test -z "$as_dir" && as_dir=.
  17940. for ac_exec_ext in '' $ac_executable_extensions; do
  17941. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17942. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  17943. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17944. break 2
  17945. fi
  17946. done
  17947. done
  17948. fi
  17949. fi
  17950. RANLIB=$ac_cv_prog_RANLIB
  17951. if test -n "$RANLIB"; then
  17952. echo "$as_me:$LINENO: result: $RANLIB" >&5
  17953. echo "${ECHO_T}$RANLIB" >&6
  17954. else
  17955. echo "$as_me:$LINENO: result: no" >&5
  17956. echo "${ECHO_T}no" >&6
  17957. fi
  17958. fi
  17959. if test -z "$ac_cv_prog_RANLIB"; then
  17960. ac_ct_RANLIB=$RANLIB
  17961. # Extract the first word of "ranlib", so it can be a program name with args.
  17962. set dummy ranlib; ac_word=$2
  17963. echo "$as_me:$LINENO: checking for $ac_word" >&5
  17964. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17965. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  17966. echo $ECHO_N "(cached) $ECHO_C" >&6
  17967. else
  17968. if test -n "$ac_ct_RANLIB"; then
  17969. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  17970. else
  17971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17972. for as_dir in $PATH
  17973. do
  17974. IFS=$as_save_IFS
  17975. test -z "$as_dir" && as_dir=.
  17976. for ac_exec_ext in '' $ac_executable_extensions; do
  17977. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17978. ac_cv_prog_ac_ct_RANLIB="ranlib"
  17979. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17980. break 2
  17981. fi
  17982. done
  17983. done
  17984. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  17985. fi
  17986. fi
  17987. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  17988. if test -n "$ac_ct_RANLIB"; then
  17989. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  17990. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  17991. else
  17992. echo "$as_me:$LINENO: result: no" >&5
  17993. echo "${ECHO_T}no" >&6
  17994. fi
  17995. RANLIB=$ac_ct_RANLIB
  17996. else
  17997. RANLIB="$ac_cv_prog_RANLIB"
  17998. fi
  17999. for ac_prog in gawk mawk nawk awk
  18000. do
  18001. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18002. set dummy $ac_prog; ac_word=$2
  18003. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18004. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18005. if test "${ac_cv_prog_AWK+set}" = set; then
  18006. echo $ECHO_N "(cached) $ECHO_C" >&6
  18007. else
  18008. if test -n "$AWK"; then
  18009. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  18010. else
  18011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18012. for as_dir in $PATH
  18013. do
  18014. IFS=$as_save_IFS
  18015. test -z "$as_dir" && as_dir=.
  18016. for ac_exec_ext in '' $ac_executable_extensions; do
  18017. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18018. ac_cv_prog_AWK="$ac_prog"
  18019. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18020. break 2
  18021. fi
  18022. done
  18023. done
  18024. fi
  18025. fi
  18026. AWK=$ac_cv_prog_AWK
  18027. if test -n "$AWK"; then
  18028. echo "$as_me:$LINENO: result: $AWK" >&5
  18029. echo "${ECHO_T}$AWK" >&6
  18030. else
  18031. echo "$as_me:$LINENO: result: no" >&5
  18032. echo "${ECHO_T}no" >&6
  18033. fi
  18034. test -n "$AWK" && break
  18035. done
  18036. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  18037. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  18038. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  18039. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  18040. echo $ECHO_N "(cached) $ECHO_C" >&6
  18041. else
  18042. cat >conftest.make <<\_ACEOF
  18043. all:
  18044. @echo 'ac_maketemp="$(MAKE)"'
  18045. _ACEOF
  18046. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  18047. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  18048. if test -n "$ac_maketemp"; then
  18049. eval ac_cv_prog_make_${ac_make}_set=yes
  18050. else
  18051. eval ac_cv_prog_make_${ac_make}_set=no
  18052. fi
  18053. rm -f conftest.make
  18054. fi
  18055. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  18056. echo "$as_me:$LINENO: result: yes" >&5
  18057. echo "${ECHO_T}yes" >&6
  18058. SET_MAKE=
  18059. else
  18060. echo "$as_me:$LINENO: result: no" >&5
  18061. echo "${ECHO_T}no" >&6
  18062. SET_MAKE="MAKE=${MAKE-make}"
  18063. fi
  18064. # Extract the first word of "printf", so it can be a program name with args.
  18065. set dummy printf; ac_word=$2
  18066. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18067. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18068. if test "${ac_cv_path_PRINTF+set}" = set; then
  18069. echo $ECHO_N "(cached) $ECHO_C" >&6
  18070. else
  18071. case $PRINTF in
  18072. [\\/]* | ?:[\\/]*)
  18073. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  18074. ;;
  18075. *)
  18076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18077. for as_dir in $PATH
  18078. do
  18079. IFS=$as_save_IFS
  18080. test -z "$as_dir" && as_dir=.
  18081. for ac_exec_ext in '' $ac_executable_extensions; do
  18082. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18083. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  18084. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18085. break 2
  18086. fi
  18087. done
  18088. done
  18089. ;;
  18090. esac
  18091. fi
  18092. PRINTF=$ac_cv_path_PRINTF
  18093. if test -n "$PRINTF"; then
  18094. echo "$as_me:$LINENO: result: $PRINTF" >&5
  18095. echo "${ECHO_T}$PRINTF" >&6
  18096. else
  18097. echo "$as_me:$LINENO: result: no" >&5
  18098. echo "${ECHO_T}no" >&6
  18099. fi
  18100. # Extract the first word of "fig2dev", so it can be a program name with args.
  18101. set dummy fig2dev; ac_word=$2
  18102. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18103. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18104. if test "${ac_cv_path_FIG2DEV+set}" = set; then
  18105. echo $ECHO_N "(cached) $ECHO_C" >&6
  18106. else
  18107. case $FIG2DEV in
  18108. [\\/]* | ?:[\\/]*)
  18109. ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
  18110. ;;
  18111. *)
  18112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18113. for as_dir in $PATH
  18114. do
  18115. IFS=$as_save_IFS
  18116. test -z "$as_dir" && as_dir=.
  18117. for ac_exec_ext in '' $ac_executable_extensions; do
  18118. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18119. ac_cv_path_FIG2DEV="$as_dir/$ac_word$ac_exec_ext"
  18120. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18121. break 2
  18122. fi
  18123. done
  18124. done
  18125. ;;
  18126. esac
  18127. fi
  18128. FIG2DEV=$ac_cv_path_FIG2DEV
  18129. if test -n "$FIG2DEV"; then
  18130. echo "$as_me:$LINENO: result: $FIG2DEV" >&5
  18131. echo "${ECHO_T}$FIG2DEV" >&6
  18132. else
  18133. echo "$as_me:$LINENO: result: no" >&5
  18134. echo "${ECHO_T}no" >&6
  18135. fi
  18136. # Check whether --with-lyx or --without-lyx was given.
  18137. if test "${with_lyx+set}" = set; then
  18138. withval="$with_lyx"
  18139. echo "$as_me:$LINENO: checking for lyx" >&5
  18140. echo $ECHO_N "checking for lyx... $ECHO_C" >&6
  18141. if test -x $withval ; then
  18142. td=$withval
  18143. echo "$as_me:$LINENO: result: $td" >&5
  18144. echo "${ECHO_T}$td" >&6
  18145. else
  18146. echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  18147. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6
  18148. fi
  18149. else
  18150. case $host in
  18151. powerpc-apple-darwin*)
  18152. lyx=/Applications/Lyx.app/Contents/MacOS/LyX
  18153. if test -x $lyx ; then
  18154. echo "$as_me:$LINENO: checking for lyx" >&5
  18155. echo $ECHO_N "checking for lyx... $ECHO_C" >&6
  18156. LYX=$lyx
  18157. echo "$as_me:$LINENO: result: $lyx" >&5
  18158. echo "${ECHO_T}$lyx" >&6
  18159. else
  18160. # Extract the first word of "lyx", so it can be a program name with args.
  18161. set dummy lyx; ac_word=$2
  18162. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18163. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18164. if test "${ac_cv_path_LYX+set}" = set; then
  18165. echo $ECHO_N "(cached) $ECHO_C" >&6
  18166. else
  18167. case $LYX in
  18168. [\\/]* | ?:[\\/]*)
  18169. ac_cv_path_LYX="$LYX" # Let the user override the test with a path.
  18170. ;;
  18171. *)
  18172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18173. for as_dir in $PATH
  18174. do
  18175. IFS=$as_save_IFS
  18176. test -z "$as_dir" && as_dir=.
  18177. for ac_exec_ext in '' $ac_executable_extensions; do
  18178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18179. ac_cv_path_LYX="$as_dir/$ac_word$ac_exec_ext"
  18180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18181. break 2
  18182. fi
  18183. done
  18184. done
  18185. ;;
  18186. esac
  18187. fi
  18188. LYX=$ac_cv_path_LYX
  18189. if test -n "$LYX"; then
  18190. echo "$as_me:$LINENO: result: $LYX" >&5
  18191. echo "${ECHO_T}$LYX" >&6
  18192. else
  18193. echo "$as_me:$LINENO: result: no" >&5
  18194. echo "${ECHO_T}no" >&6
  18195. fi
  18196. fi
  18197. ;;
  18198. *)
  18199. # Extract the first word of "lyx", so it can be a program name with args.
  18200. set dummy lyx; ac_word=$2
  18201. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18202. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18203. if test "${ac_cv_path_LYX+set}" = set; then
  18204. echo $ECHO_N "(cached) $ECHO_C" >&6
  18205. else
  18206. case $LYX in
  18207. [\\/]* | ?:[\\/]*)
  18208. ac_cv_path_LYX="$LYX" # Let the user override the test with a path.
  18209. ;;
  18210. *)
  18211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18212. for as_dir in $PATH
  18213. do
  18214. IFS=$as_save_IFS
  18215. test -z "$as_dir" && as_dir=.
  18216. for ac_exec_ext in '' $ac_executable_extensions; do
  18217. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18218. ac_cv_path_LYX="$as_dir/$ac_word$ac_exec_ext"
  18219. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18220. break 2
  18221. fi
  18222. done
  18223. done
  18224. ;;
  18225. esac
  18226. fi
  18227. LYX=$ac_cv_path_LYX
  18228. if test -n "$LYX"; then
  18229. echo "$as_me:$LINENO: result: $LYX" >&5
  18230. echo "${ECHO_T}$LYX" >&6
  18231. else
  18232. echo "$as_me:$LINENO: result: no" >&5
  18233. echo "${ECHO_T}no" >&6
  18234. fi
  18235. ;;
  18236. esac
  18237. fi;
  18238. # Extract the first word of "dvips", so it can be a program name with args.
  18239. set dummy dvips; ac_word=$2
  18240. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18241. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18242. if test "${ac_cv_path_DVIPS+set}" = set; then
  18243. echo $ECHO_N "(cached) $ECHO_C" >&6
  18244. else
  18245. case $DVIPS in
  18246. [\\/]* | ?:[\\/]*)
  18247. ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
  18248. ;;
  18249. *)
  18250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18251. for as_dir in $PATH
  18252. do
  18253. IFS=$as_save_IFS
  18254. test -z "$as_dir" && as_dir=.
  18255. for ac_exec_ext in '' $ac_executable_extensions; do
  18256. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18257. ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
  18258. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18259. break 2
  18260. fi
  18261. done
  18262. done
  18263. ;;
  18264. esac
  18265. fi
  18266. DVIPS=$ac_cv_path_DVIPS
  18267. if test -n "$DVIPS"; then
  18268. echo "$as_me:$LINENO: result: $DVIPS" >&5
  18269. echo "${ECHO_T}$DVIPS" >&6
  18270. else
  18271. echo "$as_me:$LINENO: result: no" >&5
  18272. echo "${ECHO_T}no" >&6
  18273. fi
  18274. # Extract the first word of "texi2dvi", so it can be a program name with args.
  18275. set dummy texi2dvi; ac_word=$2
  18276. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18277. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18278. if test "${ac_cv_path_TEXI2DVI+set}" = set; then
  18279. echo $ECHO_N "(cached) $ECHO_C" >&6
  18280. else
  18281. case $TEXI2DVI in
  18282. [\\/]* | ?:[\\/]*)
  18283. ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
  18284. ;;
  18285. *)
  18286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18287. for as_dir in $PATH
  18288. do
  18289. IFS=$as_save_IFS
  18290. test -z "$as_dir" && as_dir=.
  18291. for ac_exec_ext in '' $ac_executable_extensions; do
  18292. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18293. ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
  18294. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18295. break 2
  18296. fi
  18297. done
  18298. done
  18299. ;;
  18300. esac
  18301. fi
  18302. TEXI2DVI=$ac_cv_path_TEXI2DVI
  18303. if test -n "$TEXI2DVI"; then
  18304. echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
  18305. echo "${ECHO_T}$TEXI2DVI" >&6
  18306. else
  18307. echo "$as_me:$LINENO: result: no" >&5
  18308. echo "${ECHO_T}no" >&6
  18309. fi
  18310. # Extract the first word of "latex2html", so it can be a program name with args.
  18311. set dummy latex2html; ac_word=$2
  18312. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18313. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18314. if test "${ac_cv_path_LATEX2HTML+set}" = set; then
  18315. echo $ECHO_N "(cached) $ECHO_C" >&6
  18316. else
  18317. case $LATEX2HTML in
  18318. [\\/]* | ?:[\\/]*)
  18319. ac_cv_path_LATEX2HTML="$LATEX2HTML" # Let the user override the test with a path.
  18320. ;;
  18321. *)
  18322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18323. for as_dir in $PATH
  18324. do
  18325. IFS=$as_save_IFS
  18326. test -z "$as_dir" && as_dir=.
  18327. for ac_exec_ext in '' $ac_executable_extensions; do
  18328. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18329. ac_cv_path_LATEX2HTML="$as_dir/$ac_word$ac_exec_ext"
  18330. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18331. break 2
  18332. fi
  18333. done
  18334. done
  18335. ;;
  18336. esac
  18337. fi
  18338. LATEX2HTML=$ac_cv_path_LATEX2HTML
  18339. if test -n "$LATEX2HTML"; then
  18340. echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
  18341. echo "${ECHO_T}$LATEX2HTML" >&6
  18342. else
  18343. echo "$as_me:$LINENO: result: no" >&5
  18344. echo "${ECHO_T}no" >&6
  18345. fi
  18346. # Extract the first word of "dvipdfm", so it can be a program name with args.
  18347. set dummy dvipdfm; ac_word=$2
  18348. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18349. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18350. if test "${ac_cv_path_DVIPDFM+set}" = set; then
  18351. echo $ECHO_N "(cached) $ECHO_C" >&6
  18352. else
  18353. case $DVIPDFM in
  18354. [\\/]* | ?:[\\/]*)
  18355. ac_cv_path_DVIPDFM="$DVIPDFM" # Let the user override the test with a path.
  18356. ;;
  18357. *)
  18358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18359. for as_dir in $PATH
  18360. do
  18361. IFS=$as_save_IFS
  18362. test -z "$as_dir" && as_dir=.
  18363. for ac_exec_ext in '' $ac_executable_extensions; do
  18364. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18365. ac_cv_path_DVIPDFM="$as_dir/$ac_word$ac_exec_ext"
  18366. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18367. break 2
  18368. fi
  18369. done
  18370. done
  18371. ;;
  18372. esac
  18373. fi
  18374. DVIPDFM=$ac_cv_path_DVIPDFM
  18375. if test -n "$DVIPDFM"; then
  18376. echo "$as_me:$LINENO: result: $DVIPDFM" >&5
  18377. echo "${ECHO_T}$DVIPDFM" >&6
  18378. else
  18379. echo "$as_me:$LINENO: result: no" >&5
  18380. echo "${ECHO_T}no" >&6
  18381. fi
  18382. # Extract the first word of "autogen", so it can be a program name with args.
  18383. set dummy autogen; ac_word=$2
  18384. echo "$as_me:$LINENO: checking for $ac_word" >&5
  18385. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18386. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  18387. echo $ECHO_N "(cached) $ECHO_C" >&6
  18388. else
  18389. case $AUTOGEN in
  18390. [\\/]* | ?:[\\/]*)
  18391. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  18392. ;;
  18393. *)
  18394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18395. for as_dir in $PATH
  18396. do
  18397. IFS=$as_save_IFS
  18398. test -z "$as_dir" && as_dir=.
  18399. for ac_exec_ext in '' $ac_executable_extensions; do
  18400. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18401. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  18402. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18403. break 2
  18404. fi
  18405. done
  18406. done
  18407. ;;
  18408. esac
  18409. fi
  18410. AUTOGEN=$ac_cv_path_AUTOGEN
  18411. if test -n "$AUTOGEN"; then
  18412. echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  18413. echo "${ECHO_T}$AUTOGEN" >&6
  18414. else
  18415. echo "$as_me:$LINENO: result: no" >&5
  18416. echo "${ECHO_T}no" >&6
  18417. fi
  18418. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  18419. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  18420. if test "${ac_cv_header_stdc+set}" = set; then
  18421. echo $ECHO_N "(cached) $ECHO_C" >&6
  18422. else
  18423. cat >conftest.$ac_ext <<_ACEOF
  18424. /* confdefs.h. */
  18425. _ACEOF
  18426. cat confdefs.h >>conftest.$ac_ext
  18427. cat >>conftest.$ac_ext <<_ACEOF
  18428. /* end confdefs.h. */
  18429. #include <stdlib.h>
  18430. #include <stdarg.h>
  18431. #include <string.h>
  18432. #include <float.h>
  18433. int
  18434. main ()
  18435. {
  18436. ;
  18437. return 0;
  18438. }
  18439. _ACEOF
  18440. rm -f conftest.$ac_objext
  18441. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18442. (eval $ac_compile) 2>conftest.er1
  18443. ac_status=$?
  18444. grep -v '^ *+' conftest.er1 >conftest.err
  18445. rm -f conftest.er1
  18446. cat conftest.err >&5
  18447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18448. (exit $ac_status); } &&
  18449. { ac_try='test -z "$ac_c_werror_flag"
  18450. || test ! -s conftest.err'
  18451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18452. (eval $ac_try) 2>&5
  18453. ac_status=$?
  18454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18455. (exit $ac_status); }; } &&
  18456. { ac_try='test -s conftest.$ac_objext'
  18457. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18458. (eval $ac_try) 2>&5
  18459. ac_status=$?
  18460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18461. (exit $ac_status); }; }; then
  18462. ac_cv_header_stdc=yes
  18463. else
  18464. echo "$as_me: failed program was:" >&5
  18465. sed 's/^/| /' conftest.$ac_ext >&5
  18466. ac_cv_header_stdc=no
  18467. fi
  18468. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18469. if test $ac_cv_header_stdc = yes; then
  18470. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18471. cat >conftest.$ac_ext <<_ACEOF
  18472. /* confdefs.h. */
  18473. _ACEOF
  18474. cat confdefs.h >>conftest.$ac_ext
  18475. cat >>conftest.$ac_ext <<_ACEOF
  18476. /* end confdefs.h. */
  18477. #include <string.h>
  18478. _ACEOF
  18479. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18480. $EGREP "memchr" >/dev/null 2>&1; then
  18481. :
  18482. else
  18483. ac_cv_header_stdc=no
  18484. fi
  18485. rm -f conftest*
  18486. fi
  18487. if test $ac_cv_header_stdc = yes; then
  18488. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18489. cat >conftest.$ac_ext <<_ACEOF
  18490. /* confdefs.h. */
  18491. _ACEOF
  18492. cat confdefs.h >>conftest.$ac_ext
  18493. cat >>conftest.$ac_ext <<_ACEOF
  18494. /* end confdefs.h. */
  18495. #include <stdlib.h>
  18496. _ACEOF
  18497. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18498. $EGREP "free" >/dev/null 2>&1; then
  18499. :
  18500. else
  18501. ac_cv_header_stdc=no
  18502. fi
  18503. rm -f conftest*
  18504. fi
  18505. if test $ac_cv_header_stdc = yes; then
  18506. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18507. if test "$cross_compiling" = yes; then
  18508. :
  18509. else
  18510. cat >conftest.$ac_ext <<_ACEOF
  18511. /* confdefs.h. */
  18512. _ACEOF
  18513. cat confdefs.h >>conftest.$ac_ext
  18514. cat >>conftest.$ac_ext <<_ACEOF
  18515. /* end confdefs.h. */
  18516. #include <ctype.h>
  18517. #if ((' ' & 0x0FF) == 0x020)
  18518. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18519. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18520. #else
  18521. # define ISLOWER(c) \
  18522. (('a' <= (c) && (c) <= 'i') \
  18523. || ('j' <= (c) && (c) <= 'r') \
  18524. || ('s' <= (c) && (c) <= 'z'))
  18525. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18526. #endif
  18527. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18528. int
  18529. main ()
  18530. {
  18531. int i;
  18532. for (i = 0; i < 256; i++)
  18533. if (XOR (islower (i), ISLOWER (i))
  18534. || toupper (i) != TOUPPER (i))
  18535. exit(2);
  18536. exit (0);
  18537. }
  18538. _ACEOF
  18539. rm -f conftest$ac_exeext
  18540. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18541. (eval $ac_link) 2>&5
  18542. ac_status=$?
  18543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18544. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18546. (eval $ac_try) 2>&5
  18547. ac_status=$?
  18548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18549. (exit $ac_status); }; }; then
  18550. :
  18551. else
  18552. echo "$as_me: program exited with status $ac_status" >&5
  18553. echo "$as_me: failed program was:" >&5
  18554. sed 's/^/| /' conftest.$ac_ext >&5
  18555. ( exit $ac_status )
  18556. ac_cv_header_stdc=no
  18557. fi
  18558. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18559. fi
  18560. fi
  18561. fi
  18562. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18563. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  18564. if test $ac_cv_header_stdc = yes; then
  18565. cat >>confdefs.h <<\_ACEOF
  18566. #define STDC_HEADERS 1
  18567. _ACEOF
  18568. fi
  18569. echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  18570. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
  18571. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  18572. echo $ECHO_N "(cached) $ECHO_C" >&6
  18573. else
  18574. cat >conftest.$ac_ext <<_ACEOF
  18575. /* confdefs.h. */
  18576. _ACEOF
  18577. cat confdefs.h >>conftest.$ac_ext
  18578. cat >>conftest.$ac_ext <<_ACEOF
  18579. /* end confdefs.h. */
  18580. #include <sys/types.h>
  18581. int
  18582. main ()
  18583. {
  18584. return makedev(0, 0);
  18585. ;
  18586. return 0;
  18587. }
  18588. _ACEOF
  18589. rm -f conftest.$ac_objext conftest$ac_exeext
  18590. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18591. (eval $ac_link) 2>conftest.er1
  18592. ac_status=$?
  18593. grep -v '^ *+' conftest.er1 >conftest.err
  18594. rm -f conftest.er1
  18595. cat conftest.err >&5
  18596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18597. (exit $ac_status); } &&
  18598. { ac_try='test -z "$ac_c_werror_flag"
  18599. || test ! -s conftest.err'
  18600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18601. (eval $ac_try) 2>&5
  18602. ac_status=$?
  18603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18604. (exit $ac_status); }; } &&
  18605. { ac_try='test -s conftest$ac_exeext'
  18606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18607. (eval $ac_try) 2>&5
  18608. ac_status=$?
  18609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18610. (exit $ac_status); }; }; then
  18611. ac_cv_header_sys_types_h_makedev=yes
  18612. else
  18613. echo "$as_me: failed program was:" >&5
  18614. sed 's/^/| /' conftest.$ac_ext >&5
  18615. ac_cv_header_sys_types_h_makedev=no
  18616. fi
  18617. rm -f conftest.err conftest.$ac_objext \
  18618. conftest$ac_exeext conftest.$ac_ext
  18619. fi
  18620. echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  18621. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
  18622. if test $ac_cv_header_sys_types_h_makedev = no; then
  18623. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18624. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18625. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  18626. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18627. echo $ECHO_N "(cached) $ECHO_C" >&6
  18628. fi
  18629. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18630. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  18631. else
  18632. # Is the header compilable?
  18633. echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  18634. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
  18635. cat >conftest.$ac_ext <<_ACEOF
  18636. /* confdefs.h. */
  18637. _ACEOF
  18638. cat confdefs.h >>conftest.$ac_ext
  18639. cat >>conftest.$ac_ext <<_ACEOF
  18640. /* end confdefs.h. */
  18641. $ac_includes_default
  18642. #include <sys/mkdev.h>
  18643. _ACEOF
  18644. rm -f conftest.$ac_objext
  18645. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18646. (eval $ac_compile) 2>conftest.er1
  18647. ac_status=$?
  18648. grep -v '^ *+' conftest.er1 >conftest.err
  18649. rm -f conftest.er1
  18650. cat conftest.err >&5
  18651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18652. (exit $ac_status); } &&
  18653. { ac_try='test -z "$ac_c_werror_flag"
  18654. || test ! -s conftest.err'
  18655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18656. (eval $ac_try) 2>&5
  18657. ac_status=$?
  18658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18659. (exit $ac_status); }; } &&
  18660. { ac_try='test -s conftest.$ac_objext'
  18661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18662. (eval $ac_try) 2>&5
  18663. ac_status=$?
  18664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18665. (exit $ac_status); }; }; then
  18666. ac_header_compiler=yes
  18667. else
  18668. echo "$as_me: failed program was:" >&5
  18669. sed 's/^/| /' conftest.$ac_ext >&5
  18670. ac_header_compiler=no
  18671. fi
  18672. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18673. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18674. echo "${ECHO_T}$ac_header_compiler" >&6
  18675. # Is the header present?
  18676. echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  18677. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
  18678. cat >conftest.$ac_ext <<_ACEOF
  18679. /* confdefs.h. */
  18680. _ACEOF
  18681. cat confdefs.h >>conftest.$ac_ext
  18682. cat >>conftest.$ac_ext <<_ACEOF
  18683. /* end confdefs.h. */
  18684. #include <sys/mkdev.h>
  18685. _ACEOF
  18686. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18687. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18688. ac_status=$?
  18689. grep -v '^ *+' conftest.er1 >conftest.err
  18690. rm -f conftest.er1
  18691. cat conftest.err >&5
  18692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18693. (exit $ac_status); } >/dev/null; then
  18694. if test -s conftest.err; then
  18695. ac_cpp_err=$ac_c_preproc_warn_flag
  18696. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18697. else
  18698. ac_cpp_err=
  18699. fi
  18700. else
  18701. ac_cpp_err=yes
  18702. fi
  18703. if test -z "$ac_cpp_err"; then
  18704. ac_header_preproc=yes
  18705. else
  18706. echo "$as_me: failed program was:" >&5
  18707. sed 's/^/| /' conftest.$ac_ext >&5
  18708. ac_header_preproc=no
  18709. fi
  18710. rm -f conftest.err conftest.$ac_ext
  18711. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18712. echo "${ECHO_T}$ac_header_preproc" >&6
  18713. # So? What about this header?
  18714. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18715. yes:no: )
  18716. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18717. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18718. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  18719. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  18720. ac_header_preproc=yes
  18721. ;;
  18722. no:yes:* )
  18723. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  18724. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  18725. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  18726. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  18727. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  18728. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  18729. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  18730. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18731. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  18732. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  18733. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  18734. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  18735. (
  18736. cat <<\_ASBOX
  18737. ## ------------------------------------------ ##
  18738. ## Report this to the AC_PACKAGE_NAME lists. ##
  18739. ## ------------------------------------------ ##
  18740. _ASBOX
  18741. ) |
  18742. sed "s/^/$as_me: WARNING: /" >&2
  18743. ;;
  18744. esac
  18745. echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  18746. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
  18747. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  18748. echo $ECHO_N "(cached) $ECHO_C" >&6
  18749. else
  18750. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  18751. fi
  18752. echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  18753. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
  18754. fi
  18755. if test $ac_cv_header_sys_mkdev_h = yes; then
  18756. cat >>confdefs.h <<\_ACEOF
  18757. #define MAJOR_IN_MKDEV 1
  18758. _ACEOF
  18759. fi
  18760. if test $ac_cv_header_sys_mkdev_h = no; then
  18761. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18762. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18763. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  18764. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18765. echo $ECHO_N "(cached) $ECHO_C" >&6
  18766. fi
  18767. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18768. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  18769. else
  18770. # Is the header compilable?
  18771. echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  18772. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
  18773. cat >conftest.$ac_ext <<_ACEOF
  18774. /* confdefs.h. */
  18775. _ACEOF
  18776. cat confdefs.h >>conftest.$ac_ext
  18777. cat >>conftest.$ac_ext <<_ACEOF
  18778. /* end confdefs.h. */
  18779. $ac_includes_default
  18780. #include <sys/sysmacros.h>
  18781. _ACEOF
  18782. rm -f conftest.$ac_objext
  18783. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18784. (eval $ac_compile) 2>conftest.er1
  18785. ac_status=$?
  18786. grep -v '^ *+' conftest.er1 >conftest.err
  18787. rm -f conftest.er1
  18788. cat conftest.err >&5
  18789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18790. (exit $ac_status); } &&
  18791. { ac_try='test -z "$ac_c_werror_flag"
  18792. || test ! -s conftest.err'
  18793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18794. (eval $ac_try) 2>&5
  18795. ac_status=$?
  18796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18797. (exit $ac_status); }; } &&
  18798. { ac_try='test -s conftest.$ac_objext'
  18799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18800. (eval $ac_try) 2>&5
  18801. ac_status=$?
  18802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18803. (exit $ac_status); }; }; then
  18804. ac_header_compiler=yes
  18805. else
  18806. echo "$as_me: failed program was:" >&5
  18807. sed 's/^/| /' conftest.$ac_ext >&5
  18808. ac_header_compiler=no
  18809. fi
  18810. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18811. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18812. echo "${ECHO_T}$ac_header_compiler" >&6
  18813. # Is the header present?
  18814. echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  18815. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
  18816. cat >conftest.$ac_ext <<_ACEOF
  18817. /* confdefs.h. */
  18818. _ACEOF
  18819. cat confdefs.h >>conftest.$ac_ext
  18820. cat >>conftest.$ac_ext <<_ACEOF
  18821. /* end confdefs.h. */
  18822. #include <sys/sysmacros.h>
  18823. _ACEOF
  18824. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18825. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18826. ac_status=$?
  18827. grep -v '^ *+' conftest.er1 >conftest.err
  18828. rm -f conftest.er1
  18829. cat conftest.err >&5
  18830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18831. (exit $ac_status); } >/dev/null; then
  18832. if test -s conftest.err; then
  18833. ac_cpp_err=$ac_c_preproc_warn_flag
  18834. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18835. else
  18836. ac_cpp_err=
  18837. fi
  18838. else
  18839. ac_cpp_err=yes
  18840. fi
  18841. if test -z "$ac_cpp_err"; then
  18842. ac_header_preproc=yes
  18843. else
  18844. echo "$as_me: failed program was:" >&5
  18845. sed 's/^/| /' conftest.$ac_ext >&5
  18846. ac_header_preproc=no
  18847. fi
  18848. rm -f conftest.err conftest.$ac_ext
  18849. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18850. echo "${ECHO_T}$ac_header_preproc" >&6
  18851. # So? What about this header?
  18852. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18853. yes:no: )
  18854. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18855. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18856. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  18857. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  18858. ac_header_preproc=yes
  18859. ;;
  18860. no:yes:* )
  18861. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  18862. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  18863. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  18864. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  18865. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  18866. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  18867. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  18868. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18869. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  18870. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  18871. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  18872. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  18873. (
  18874. cat <<\_ASBOX
  18875. ## ------------------------------------------ ##
  18876. ## Report this to the AC_PACKAGE_NAME lists. ##
  18877. ## ------------------------------------------ ##
  18878. _ASBOX
  18879. ) |
  18880. sed "s/^/$as_me: WARNING: /" >&2
  18881. ;;
  18882. esac
  18883. echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  18884. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
  18885. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  18886. echo $ECHO_N "(cached) $ECHO_C" >&6
  18887. else
  18888. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  18889. fi
  18890. echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  18891. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
  18892. fi
  18893. if test $ac_cv_header_sys_sysmacros_h = yes; then
  18894. cat >>confdefs.h <<\_ACEOF
  18895. #define MAJOR_IN_SYSMACROS 1
  18896. _ACEOF
  18897. fi
  18898. fi
  18899. fi
  18900. echo "$as_me:$LINENO: checking for size_t" >&5
  18901. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  18902. if test "${ac_cv_type_size_t+set}" = set; then
  18903. echo $ECHO_N "(cached) $ECHO_C" >&6
  18904. else
  18905. cat >conftest.$ac_ext <<_ACEOF
  18906. /* confdefs.h. */
  18907. _ACEOF
  18908. cat confdefs.h >>conftest.$ac_ext
  18909. cat >>conftest.$ac_ext <<_ACEOF
  18910. /* end confdefs.h. */
  18911. $ac_includes_default
  18912. int
  18913. main ()
  18914. {
  18915. if ((size_t *) 0)
  18916. return 0;
  18917. if (sizeof (size_t))
  18918. return 0;
  18919. ;
  18920. return 0;
  18921. }
  18922. _ACEOF
  18923. rm -f conftest.$ac_objext
  18924. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18925. (eval $ac_compile) 2>conftest.er1
  18926. ac_status=$?
  18927. grep -v '^ *+' conftest.er1 >conftest.err
  18928. rm -f conftest.er1
  18929. cat conftest.err >&5
  18930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18931. (exit $ac_status); } &&
  18932. { ac_try='test -z "$ac_c_werror_flag"
  18933. || test ! -s conftest.err'
  18934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18935. (eval $ac_try) 2>&5
  18936. ac_status=$?
  18937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18938. (exit $ac_status); }; } &&
  18939. { ac_try='test -s conftest.$ac_objext'
  18940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18941. (eval $ac_try) 2>&5
  18942. ac_status=$?
  18943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18944. (exit $ac_status); }; }; then
  18945. ac_cv_type_size_t=yes
  18946. else
  18947. echo "$as_me: failed program was:" >&5
  18948. sed 's/^/| /' conftest.$ac_ext >&5
  18949. ac_cv_type_size_t=no
  18950. fi
  18951. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18952. fi
  18953. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  18954. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  18955. if test $ac_cv_type_size_t = yes; then
  18956. :
  18957. else
  18958. cat >>confdefs.h <<_ACEOF
  18959. #define size_t unsigned
  18960. _ACEOF
  18961. fi
  18962. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  18963. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  18964. if test "${ac_cv_header_time+set}" = set; then
  18965. echo $ECHO_N "(cached) $ECHO_C" >&6
  18966. else
  18967. cat >conftest.$ac_ext <<_ACEOF
  18968. /* confdefs.h. */
  18969. _ACEOF
  18970. cat confdefs.h >>conftest.$ac_ext
  18971. cat >>conftest.$ac_ext <<_ACEOF
  18972. /* end confdefs.h. */
  18973. #include <sys/types.h>
  18974. #include <sys/time.h>
  18975. #include <time.h>
  18976. int
  18977. main ()
  18978. {
  18979. if ((struct tm *) 0)
  18980. return 0;
  18981. ;
  18982. return 0;
  18983. }
  18984. _ACEOF
  18985. rm -f conftest.$ac_objext
  18986. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18987. (eval $ac_compile) 2>conftest.er1
  18988. ac_status=$?
  18989. grep -v '^ *+' conftest.er1 >conftest.err
  18990. rm -f conftest.er1
  18991. cat conftest.err >&5
  18992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18993. (exit $ac_status); } &&
  18994. { ac_try='test -z "$ac_c_werror_flag"
  18995. || test ! -s conftest.err'
  18996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18997. (eval $ac_try) 2>&5
  18998. ac_status=$?
  18999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19000. (exit $ac_status); }; } &&
  19001. { ac_try='test -s conftest.$ac_objext'
  19002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19003. (eval $ac_try) 2>&5
  19004. ac_status=$?
  19005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19006. (exit $ac_status); }; }; then
  19007. ac_cv_header_time=yes
  19008. else
  19009. echo "$as_me: failed program was:" >&5
  19010. sed 's/^/| /' conftest.$ac_ext >&5
  19011. ac_cv_header_time=no
  19012. fi
  19013. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19014. fi
  19015. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  19016. echo "${ECHO_T}$ac_cv_header_time" >&6
  19017. if test $ac_cv_header_time = yes; then
  19018. cat >>confdefs.h <<\_ACEOF
  19019. #define TIME_WITH_SYS_TIME 1
  19020. _ACEOF
  19021. fi
  19022. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19023. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  19024. if test "${ac_cv_c_const+set}" = set; then
  19025. echo $ECHO_N "(cached) $ECHO_C" >&6
  19026. else
  19027. cat >conftest.$ac_ext <<_ACEOF
  19028. /* confdefs.h. */
  19029. _ACEOF
  19030. cat confdefs.h >>conftest.$ac_ext
  19031. cat >>conftest.$ac_ext <<_ACEOF
  19032. /* end confdefs.h. */
  19033. int
  19034. main ()
  19035. {
  19036. /* FIXME: Include the comments suggested by Paul. */
  19037. #ifndef __cplusplus
  19038. /* Ultrix mips cc rejects this. */
  19039. typedef int charset[2];
  19040. const charset x;
  19041. /* SunOS 4.1.1 cc rejects this. */
  19042. char const *const *ccp;
  19043. char **p;
  19044. /* NEC SVR4.0.2 mips cc rejects this. */
  19045. struct point {int x, y;};
  19046. static struct point const zero = {0,0};
  19047. /* AIX XL C 1.02.0.0 rejects this.
  19048. It does not let you subtract one const X* pointer from another in
  19049. an arm of an if-expression whose if-part is not a constant
  19050. expression */
  19051. const char *g = "string";
  19052. ccp = &g + (g ? g-g : 0);
  19053. /* HPUX 7.0 cc rejects these. */
  19054. ++ccp;
  19055. p = (char**) ccp;
  19056. ccp = (char const *const *) p;
  19057. { /* SCO 3.2v4 cc rejects this. */
  19058. char *t;
  19059. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19060. *t++ = 0;
  19061. }
  19062. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19063. int x[] = {25, 17};
  19064. const int *foo = &x[0];
  19065. ++foo;
  19066. }
  19067. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19068. typedef const int *iptr;
  19069. iptr p = 0;
  19070. ++p;
  19071. }
  19072. { /* AIX XL C 1.02.0.0 rejects this saying
  19073. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19074. struct s { int j; const int *ap[3]; };
  19075. struct s *b; b->j = 5;
  19076. }
  19077. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19078. const int foo = 10;
  19079. }
  19080. #endif
  19081. ;
  19082. return 0;
  19083. }
  19084. _ACEOF
  19085. rm -f conftest.$ac_objext
  19086. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19087. (eval $ac_compile) 2>conftest.er1
  19088. ac_status=$?
  19089. grep -v '^ *+' conftest.er1 >conftest.err
  19090. rm -f conftest.er1
  19091. cat conftest.err >&5
  19092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19093. (exit $ac_status); } &&
  19094. { ac_try='test -z "$ac_c_werror_flag"
  19095. || test ! -s conftest.err'
  19096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19097. (eval $ac_try) 2>&5
  19098. ac_status=$?
  19099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19100. (exit $ac_status); }; } &&
  19101. { ac_try='test -s conftest.$ac_objext'
  19102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19103. (eval $ac_try) 2>&5
  19104. ac_status=$?
  19105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19106. (exit $ac_status); }; }; then
  19107. ac_cv_c_const=yes
  19108. else
  19109. echo "$as_me: failed program was:" >&5
  19110. sed 's/^/| /' conftest.$ac_ext >&5
  19111. ac_cv_c_const=no
  19112. fi
  19113. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19114. fi
  19115. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  19116. echo "${ECHO_T}$ac_cv_c_const" >&6
  19117. if test $ac_cv_c_const = no; then
  19118. cat >>confdefs.h <<\_ACEOF
  19119. #define const
  19120. _ACEOF
  19121. fi
  19122. echo "$as_me:$LINENO: checking for inline" >&5
  19123. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  19124. if test "${ac_cv_c_inline+set}" = set; then
  19125. echo $ECHO_N "(cached) $ECHO_C" >&6
  19126. else
  19127. ac_cv_c_inline=no
  19128. for ac_kw in inline __inline__ __inline; do
  19129. cat >conftest.$ac_ext <<_ACEOF
  19130. /* confdefs.h. */
  19131. _ACEOF
  19132. cat confdefs.h >>conftest.$ac_ext
  19133. cat >>conftest.$ac_ext <<_ACEOF
  19134. /* end confdefs.h. */
  19135. #ifndef __cplusplus
  19136. typedef int foo_t;
  19137. static $ac_kw foo_t static_foo () {return 0; }
  19138. $ac_kw foo_t foo () {return 0; }
  19139. #endif
  19140. _ACEOF
  19141. rm -f conftest.$ac_objext
  19142. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19143. (eval $ac_compile) 2>conftest.er1
  19144. ac_status=$?
  19145. grep -v '^ *+' conftest.er1 >conftest.err
  19146. rm -f conftest.er1
  19147. cat conftest.err >&5
  19148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19149. (exit $ac_status); } &&
  19150. { ac_try='test -z "$ac_c_werror_flag"
  19151. || test ! -s conftest.err'
  19152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19153. (eval $ac_try) 2>&5
  19154. ac_status=$?
  19155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19156. (exit $ac_status); }; } &&
  19157. { ac_try='test -s conftest.$ac_objext'
  19158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19159. (eval $ac_try) 2>&5
  19160. ac_status=$?
  19161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19162. (exit $ac_status); }; }; then
  19163. ac_cv_c_inline=$ac_kw; break
  19164. else
  19165. echo "$as_me: failed program was:" >&5
  19166. sed 's/^/| /' conftest.$ac_ext >&5
  19167. fi
  19168. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19169. done
  19170. fi
  19171. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  19172. echo "${ECHO_T}$ac_cv_c_inline" >&6
  19173. case $ac_cv_c_inline in
  19174. inline | yes) ;;
  19175. *)
  19176. case $ac_cv_c_inline in
  19177. no) ac_val=;;
  19178. *) ac_val=$ac_cv_c_inline;;
  19179. esac
  19180. cat >>confdefs.h <<_ACEOF
  19181. #ifndef __cplusplus
  19182. #define inline $ac_val
  19183. #endif
  19184. _ACEOF
  19185. ;;
  19186. esac
  19187. # Check whether --enable-largefile or --disable-largefile was given.
  19188. if test "${enable_largefile+set}" = set; then
  19189. enableval="$enable_largefile"
  19190. fi;
  19191. if test "$enable_largefile" != no; then
  19192. echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  19193. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  19194. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  19195. echo $ECHO_N "(cached) $ECHO_C" >&6
  19196. else
  19197. ac_cv_sys_largefile_CC=no
  19198. if test "$GCC" != yes; then
  19199. ac_save_CC=$CC
  19200. while :; do
  19201. # IRIX 6.2 and later do not support large files by default,
  19202. # so use the C compiler's -n32 option if that helps.
  19203. cat >conftest.$ac_ext <<_ACEOF
  19204. /* confdefs.h. */
  19205. _ACEOF
  19206. cat confdefs.h >>conftest.$ac_ext
  19207. cat >>conftest.$ac_ext <<_ACEOF
  19208. /* end confdefs.h. */
  19209. #include <sys/types.h>
  19210. /* Check that off_t can represent 2**63 - 1 correctly.
  19211. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19212. since some C++ compilers masquerading as C compilers
  19213. incorrectly reject 9223372036854775807. */
  19214. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19215. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19216. && LARGE_OFF_T % 2147483647 == 1)
  19217. ? 1 : -1];
  19218. int
  19219. main ()
  19220. {
  19221. ;
  19222. return 0;
  19223. }
  19224. _ACEOF
  19225. rm -f conftest.$ac_objext
  19226. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19227. (eval $ac_compile) 2>conftest.er1
  19228. ac_status=$?
  19229. grep -v '^ *+' conftest.er1 >conftest.err
  19230. rm -f conftest.er1
  19231. cat conftest.err >&5
  19232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19233. (exit $ac_status); } &&
  19234. { ac_try='test -z "$ac_c_werror_flag"
  19235. || test ! -s conftest.err'
  19236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19237. (eval $ac_try) 2>&5
  19238. ac_status=$?
  19239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19240. (exit $ac_status); }; } &&
  19241. { ac_try='test -s conftest.$ac_objext'
  19242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19243. (eval $ac_try) 2>&5
  19244. ac_status=$?
  19245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19246. (exit $ac_status); }; }; then
  19247. break
  19248. else
  19249. echo "$as_me: failed program was:" >&5
  19250. sed 's/^/| /' conftest.$ac_ext >&5
  19251. fi
  19252. rm -f conftest.err conftest.$ac_objext
  19253. CC="$CC -n32"
  19254. rm -f conftest.$ac_objext
  19255. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19256. (eval $ac_compile) 2>conftest.er1
  19257. ac_status=$?
  19258. grep -v '^ *+' conftest.er1 >conftest.err
  19259. rm -f conftest.er1
  19260. cat conftest.err >&5
  19261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19262. (exit $ac_status); } &&
  19263. { ac_try='test -z "$ac_c_werror_flag"
  19264. || test ! -s conftest.err'
  19265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19266. (eval $ac_try) 2>&5
  19267. ac_status=$?
  19268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19269. (exit $ac_status); }; } &&
  19270. { ac_try='test -s conftest.$ac_objext'
  19271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19272. (eval $ac_try) 2>&5
  19273. ac_status=$?
  19274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19275. (exit $ac_status); }; }; then
  19276. ac_cv_sys_largefile_CC=' -n32'; break
  19277. else
  19278. echo "$as_me: failed program was:" >&5
  19279. sed 's/^/| /' conftest.$ac_ext >&5
  19280. fi
  19281. rm -f conftest.err conftest.$ac_objext
  19282. break
  19283. done
  19284. CC=$ac_save_CC
  19285. rm -f conftest.$ac_ext
  19286. fi
  19287. fi
  19288. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  19289. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  19290. if test "$ac_cv_sys_largefile_CC" != no; then
  19291. CC=$CC$ac_cv_sys_largefile_CC
  19292. fi
  19293. echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  19294. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  19295. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  19296. echo $ECHO_N "(cached) $ECHO_C" >&6
  19297. else
  19298. while :; do
  19299. ac_cv_sys_file_offset_bits=no
  19300. cat >conftest.$ac_ext <<_ACEOF
  19301. /* confdefs.h. */
  19302. _ACEOF
  19303. cat confdefs.h >>conftest.$ac_ext
  19304. cat >>conftest.$ac_ext <<_ACEOF
  19305. /* end confdefs.h. */
  19306. #include <sys/types.h>
  19307. /* Check that off_t can represent 2**63 - 1 correctly.
  19308. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19309. since some C++ compilers masquerading as C compilers
  19310. incorrectly reject 9223372036854775807. */
  19311. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19312. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19313. && LARGE_OFF_T % 2147483647 == 1)
  19314. ? 1 : -1];
  19315. int
  19316. main ()
  19317. {
  19318. ;
  19319. return 0;
  19320. }
  19321. _ACEOF
  19322. rm -f conftest.$ac_objext
  19323. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19324. (eval $ac_compile) 2>conftest.er1
  19325. ac_status=$?
  19326. grep -v '^ *+' conftest.er1 >conftest.err
  19327. rm -f conftest.er1
  19328. cat conftest.err >&5
  19329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19330. (exit $ac_status); } &&
  19331. { ac_try='test -z "$ac_c_werror_flag"
  19332. || test ! -s conftest.err'
  19333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19334. (eval $ac_try) 2>&5
  19335. ac_status=$?
  19336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19337. (exit $ac_status); }; } &&
  19338. { ac_try='test -s conftest.$ac_objext'
  19339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19340. (eval $ac_try) 2>&5
  19341. ac_status=$?
  19342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19343. (exit $ac_status); }; }; then
  19344. break
  19345. else
  19346. echo "$as_me: failed program was:" >&5
  19347. sed 's/^/| /' conftest.$ac_ext >&5
  19348. fi
  19349. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19350. cat >conftest.$ac_ext <<_ACEOF
  19351. /* confdefs.h. */
  19352. _ACEOF
  19353. cat confdefs.h >>conftest.$ac_ext
  19354. cat >>conftest.$ac_ext <<_ACEOF
  19355. /* end confdefs.h. */
  19356. #define _FILE_OFFSET_BITS 64
  19357. #include <sys/types.h>
  19358. /* Check that off_t can represent 2**63 - 1 correctly.
  19359. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19360. since some C++ compilers masquerading as C compilers
  19361. incorrectly reject 9223372036854775807. */
  19362. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19363. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19364. && LARGE_OFF_T % 2147483647 == 1)
  19365. ? 1 : -1];
  19366. int
  19367. main ()
  19368. {
  19369. ;
  19370. return 0;
  19371. }
  19372. _ACEOF
  19373. rm -f conftest.$ac_objext
  19374. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19375. (eval $ac_compile) 2>conftest.er1
  19376. ac_status=$?
  19377. grep -v '^ *+' conftest.er1 >conftest.err
  19378. rm -f conftest.er1
  19379. cat conftest.err >&5
  19380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19381. (exit $ac_status); } &&
  19382. { ac_try='test -z "$ac_c_werror_flag"
  19383. || test ! -s conftest.err'
  19384. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19385. (eval $ac_try) 2>&5
  19386. ac_status=$?
  19387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19388. (exit $ac_status); }; } &&
  19389. { ac_try='test -s conftest.$ac_objext'
  19390. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19391. (eval $ac_try) 2>&5
  19392. ac_status=$?
  19393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19394. (exit $ac_status); }; }; then
  19395. ac_cv_sys_file_offset_bits=64; break
  19396. else
  19397. echo "$as_me: failed program was:" >&5
  19398. sed 's/^/| /' conftest.$ac_ext >&5
  19399. fi
  19400. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19401. break
  19402. done
  19403. fi
  19404. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  19405. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  19406. if test "$ac_cv_sys_file_offset_bits" != no; then
  19407. cat >>confdefs.h <<_ACEOF
  19408. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  19409. _ACEOF
  19410. fi
  19411. rm -f conftest*
  19412. echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  19413. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  19414. if test "${ac_cv_sys_large_files+set}" = set; then
  19415. echo $ECHO_N "(cached) $ECHO_C" >&6
  19416. else
  19417. while :; do
  19418. ac_cv_sys_large_files=no
  19419. cat >conftest.$ac_ext <<_ACEOF
  19420. /* confdefs.h. */
  19421. _ACEOF
  19422. cat confdefs.h >>conftest.$ac_ext
  19423. cat >>conftest.$ac_ext <<_ACEOF
  19424. /* end confdefs.h. */
  19425. #include <sys/types.h>
  19426. /* Check that off_t can represent 2**63 - 1 correctly.
  19427. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19428. since some C++ compilers masquerading as C compilers
  19429. incorrectly reject 9223372036854775807. */
  19430. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19431. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19432. && LARGE_OFF_T % 2147483647 == 1)
  19433. ? 1 : -1];
  19434. int
  19435. main ()
  19436. {
  19437. ;
  19438. return 0;
  19439. }
  19440. _ACEOF
  19441. rm -f conftest.$ac_objext
  19442. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19443. (eval $ac_compile) 2>conftest.er1
  19444. ac_status=$?
  19445. grep -v '^ *+' conftest.er1 >conftest.err
  19446. rm -f conftest.er1
  19447. cat conftest.err >&5
  19448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19449. (exit $ac_status); } &&
  19450. { ac_try='test -z "$ac_c_werror_flag"
  19451. || test ! -s conftest.err'
  19452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19453. (eval $ac_try) 2>&5
  19454. ac_status=$?
  19455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19456. (exit $ac_status); }; } &&
  19457. { ac_try='test -s conftest.$ac_objext'
  19458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19459. (eval $ac_try) 2>&5
  19460. ac_status=$?
  19461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19462. (exit $ac_status); }; }; then
  19463. break
  19464. else
  19465. echo "$as_me: failed program was:" >&5
  19466. sed 's/^/| /' conftest.$ac_ext >&5
  19467. fi
  19468. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19469. cat >conftest.$ac_ext <<_ACEOF
  19470. /* confdefs.h. */
  19471. _ACEOF
  19472. cat confdefs.h >>conftest.$ac_ext
  19473. cat >>conftest.$ac_ext <<_ACEOF
  19474. /* end confdefs.h. */
  19475. #define _LARGE_FILES 1
  19476. #include <sys/types.h>
  19477. /* Check that off_t can represent 2**63 - 1 correctly.
  19478. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  19479. since some C++ compilers masquerading as C compilers
  19480. incorrectly reject 9223372036854775807. */
  19481. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  19482. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  19483. && LARGE_OFF_T % 2147483647 == 1)
  19484. ? 1 : -1];
  19485. int
  19486. main ()
  19487. {
  19488. ;
  19489. return 0;
  19490. }
  19491. _ACEOF
  19492. rm -f conftest.$ac_objext
  19493. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19494. (eval $ac_compile) 2>conftest.er1
  19495. ac_status=$?
  19496. grep -v '^ *+' conftest.er1 >conftest.err
  19497. rm -f conftest.er1
  19498. cat conftest.err >&5
  19499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19500. (exit $ac_status); } &&
  19501. { ac_try='test -z "$ac_c_werror_flag"
  19502. || test ! -s conftest.err'
  19503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19504. (eval $ac_try) 2>&5
  19505. ac_status=$?
  19506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19507. (exit $ac_status); }; } &&
  19508. { ac_try='test -s conftest.$ac_objext'
  19509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19510. (eval $ac_try) 2>&5
  19511. ac_status=$?
  19512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19513. (exit $ac_status); }; }; then
  19514. ac_cv_sys_large_files=1; break
  19515. else
  19516. echo "$as_me: failed program was:" >&5
  19517. sed 's/^/| /' conftest.$ac_ext >&5
  19518. fi
  19519. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19520. break
  19521. done
  19522. fi
  19523. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  19524. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  19525. if test "$ac_cv_sys_large_files" != no; then
  19526. cat >>confdefs.h <<_ACEOF
  19527. #define _LARGE_FILES $ac_cv_sys_large_files
  19528. _ACEOF
  19529. fi
  19530. rm -f conftest*
  19531. fi
  19532. echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  19533. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
  19534. if test "${ac_cv_sys_largefile_source+set}" = set; then
  19535. echo $ECHO_N "(cached) $ECHO_C" >&6
  19536. else
  19537. while :; do
  19538. ac_cv_sys_largefile_source=no
  19539. cat >conftest.$ac_ext <<_ACEOF
  19540. /* confdefs.h. */
  19541. _ACEOF
  19542. cat confdefs.h >>conftest.$ac_ext
  19543. cat >>conftest.$ac_ext <<_ACEOF
  19544. /* end confdefs.h. */
  19545. #include <stdio.h>
  19546. int
  19547. main ()
  19548. {
  19549. return !fseeko;
  19550. ;
  19551. return 0;
  19552. }
  19553. _ACEOF
  19554. rm -f conftest.$ac_objext
  19555. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19556. (eval $ac_compile) 2>conftest.er1
  19557. ac_status=$?
  19558. grep -v '^ *+' conftest.er1 >conftest.err
  19559. rm -f conftest.er1
  19560. cat conftest.err >&5
  19561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19562. (exit $ac_status); } &&
  19563. { ac_try='test -z "$ac_c_werror_flag"
  19564. || test ! -s conftest.err'
  19565. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19566. (eval $ac_try) 2>&5
  19567. ac_status=$?
  19568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19569. (exit $ac_status); }; } &&
  19570. { ac_try='test -s conftest.$ac_objext'
  19571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19572. (eval $ac_try) 2>&5
  19573. ac_status=$?
  19574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19575. (exit $ac_status); }; }; then
  19576. break
  19577. else
  19578. echo "$as_me: failed program was:" >&5
  19579. sed 's/^/| /' conftest.$ac_ext >&5
  19580. fi
  19581. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19582. cat >conftest.$ac_ext <<_ACEOF
  19583. /* confdefs.h. */
  19584. _ACEOF
  19585. cat confdefs.h >>conftest.$ac_ext
  19586. cat >>conftest.$ac_ext <<_ACEOF
  19587. /* end confdefs.h. */
  19588. #define _LARGEFILE_SOURCE 1
  19589. #include <stdio.h>
  19590. int
  19591. main ()
  19592. {
  19593. return !fseeko;
  19594. ;
  19595. return 0;
  19596. }
  19597. _ACEOF
  19598. rm -f conftest.$ac_objext
  19599. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19600. (eval $ac_compile) 2>conftest.er1
  19601. ac_status=$?
  19602. grep -v '^ *+' conftest.er1 >conftest.err
  19603. rm -f conftest.er1
  19604. cat conftest.err >&5
  19605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19606. (exit $ac_status); } &&
  19607. { ac_try='test -z "$ac_c_werror_flag"
  19608. || test ! -s conftest.err'
  19609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19610. (eval $ac_try) 2>&5
  19611. ac_status=$?
  19612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19613. (exit $ac_status); }; } &&
  19614. { ac_try='test -s conftest.$ac_objext'
  19615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19616. (eval $ac_try) 2>&5
  19617. ac_status=$?
  19618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19619. (exit $ac_status); }; }; then
  19620. ac_cv_sys_largefile_source=1; break
  19621. else
  19622. echo "$as_me: failed program was:" >&5
  19623. sed 's/^/| /' conftest.$ac_ext >&5
  19624. fi
  19625. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19626. break
  19627. done
  19628. fi
  19629. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  19630. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
  19631. if test "$ac_cv_sys_largefile_source" != no; then
  19632. cat >>confdefs.h <<_ACEOF
  19633. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  19634. _ACEOF
  19635. fi
  19636. rm -f conftest*
  19637. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  19638. # in glibc 2.1.3, but that breaks too many other things.
  19639. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  19640. echo "$as_me:$LINENO: checking for fseeko" >&5
  19641. echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
  19642. if test "${ac_cv_func_fseeko+set}" = set; then
  19643. echo $ECHO_N "(cached) $ECHO_C" >&6
  19644. else
  19645. cat >conftest.$ac_ext <<_ACEOF
  19646. /* confdefs.h. */
  19647. _ACEOF
  19648. cat confdefs.h >>conftest.$ac_ext
  19649. cat >>conftest.$ac_ext <<_ACEOF
  19650. /* end confdefs.h. */
  19651. #include <stdio.h>
  19652. int
  19653. main ()
  19654. {
  19655. return fseeko && fseeko (stdin, 0, 0);
  19656. ;
  19657. return 0;
  19658. }
  19659. _ACEOF
  19660. rm -f conftest.$ac_objext conftest$ac_exeext
  19661. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19662. (eval $ac_link) 2>conftest.er1
  19663. ac_status=$?
  19664. grep -v '^ *+' conftest.er1 >conftest.err
  19665. rm -f conftest.er1
  19666. cat conftest.err >&5
  19667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19668. (exit $ac_status); } &&
  19669. { ac_try='test -z "$ac_c_werror_flag"
  19670. || test ! -s conftest.err'
  19671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19672. (eval $ac_try) 2>&5
  19673. ac_status=$?
  19674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19675. (exit $ac_status); }; } &&
  19676. { ac_try='test -s conftest$ac_exeext'
  19677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19678. (eval $ac_try) 2>&5
  19679. ac_status=$?
  19680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19681. (exit $ac_status); }; }; then
  19682. ac_cv_func_fseeko=yes
  19683. else
  19684. echo "$as_me: failed program was:" >&5
  19685. sed 's/^/| /' conftest.$ac_ext >&5
  19686. ac_cv_func_fseeko=no
  19687. fi
  19688. rm -f conftest.err conftest.$ac_objext \
  19689. conftest$ac_exeext conftest.$ac_ext
  19690. fi
  19691. echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
  19692. echo "${ECHO_T}$ac_cv_func_fseeko" >&6
  19693. if test $ac_cv_func_fseeko = yes; then
  19694. cat >>confdefs.h <<\_ACEOF
  19695. #define HAVE_FSEEKO 1
  19696. _ACEOF
  19697. fi
  19698. echo "$as_me:$LINENO: checking for u_int8_t" >&5
  19699. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
  19700. if test "${ac_cv_type_u_int8_t+set}" = set; then
  19701. echo $ECHO_N "(cached) $ECHO_C" >&6
  19702. else
  19703. cat >conftest.$ac_ext <<_ACEOF
  19704. /* confdefs.h. */
  19705. _ACEOF
  19706. cat confdefs.h >>conftest.$ac_ext
  19707. cat >>conftest.$ac_ext <<_ACEOF
  19708. /* end confdefs.h. */
  19709. $ac_includes_default
  19710. int
  19711. main ()
  19712. {
  19713. if ((u_int8_t *) 0)
  19714. return 0;
  19715. if (sizeof (u_int8_t))
  19716. return 0;
  19717. ;
  19718. return 0;
  19719. }
  19720. _ACEOF
  19721. rm -f conftest.$ac_objext
  19722. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19723. (eval $ac_compile) 2>conftest.er1
  19724. ac_status=$?
  19725. grep -v '^ *+' conftest.er1 >conftest.err
  19726. rm -f conftest.er1
  19727. cat conftest.err >&5
  19728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19729. (exit $ac_status); } &&
  19730. { ac_try='test -z "$ac_c_werror_flag"
  19731. || test ! -s conftest.err'
  19732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19733. (eval $ac_try) 2>&5
  19734. ac_status=$?
  19735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19736. (exit $ac_status); }; } &&
  19737. { ac_try='test -s conftest.$ac_objext'
  19738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19739. (eval $ac_try) 2>&5
  19740. ac_status=$?
  19741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19742. (exit $ac_status); }; }; then
  19743. ac_cv_type_u_int8_t=yes
  19744. else
  19745. echo "$as_me: failed program was:" >&5
  19746. sed 's/^/| /' conftest.$ac_ext >&5
  19747. ac_cv_type_u_int8_t=no
  19748. fi
  19749. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19750. fi
  19751. echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  19752. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
  19753. if test $ac_cv_type_u_int8_t = yes; then
  19754. :
  19755. else
  19756. cat >>confdefs.h <<_ACEOF
  19757. #define u_int8_t uint8_t
  19758. _ACEOF
  19759. fi
  19760. echo "$as_me:$LINENO: checking for u_int16_t" >&5
  19761. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
  19762. if test "${ac_cv_type_u_int16_t+set}" = set; then
  19763. echo $ECHO_N "(cached) $ECHO_C" >&6
  19764. else
  19765. cat >conftest.$ac_ext <<_ACEOF
  19766. /* confdefs.h. */
  19767. _ACEOF
  19768. cat confdefs.h >>conftest.$ac_ext
  19769. cat >>conftest.$ac_ext <<_ACEOF
  19770. /* end confdefs.h. */
  19771. $ac_includes_default
  19772. int
  19773. main ()
  19774. {
  19775. if ((u_int16_t *) 0)
  19776. return 0;
  19777. if (sizeof (u_int16_t))
  19778. return 0;
  19779. ;
  19780. return 0;
  19781. }
  19782. _ACEOF
  19783. rm -f conftest.$ac_objext
  19784. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19785. (eval $ac_compile) 2>conftest.er1
  19786. ac_status=$?
  19787. grep -v '^ *+' conftest.er1 >conftest.err
  19788. rm -f conftest.er1
  19789. cat conftest.err >&5
  19790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19791. (exit $ac_status); } &&
  19792. { ac_try='test -z "$ac_c_werror_flag"
  19793. || test ! -s conftest.err'
  19794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19795. (eval $ac_try) 2>&5
  19796. ac_status=$?
  19797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19798. (exit $ac_status); }; } &&
  19799. { ac_try='test -s conftest.$ac_objext'
  19800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19801. (eval $ac_try) 2>&5
  19802. ac_status=$?
  19803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19804. (exit $ac_status); }; }; then
  19805. ac_cv_type_u_int16_t=yes
  19806. else
  19807. echo "$as_me: failed program was:" >&5
  19808. sed 's/^/| /' conftest.$ac_ext >&5
  19809. ac_cv_type_u_int16_t=no
  19810. fi
  19811. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19812. fi
  19813. echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  19814. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
  19815. if test $ac_cv_type_u_int16_t = yes; then
  19816. :
  19817. else
  19818. cat >>confdefs.h <<_ACEOF
  19819. #define u_int16_t uint16_t
  19820. _ACEOF
  19821. fi
  19822. echo "$as_me:$LINENO: checking for u_int32_t" >&5
  19823. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
  19824. if test "${ac_cv_type_u_int32_t+set}" = set; then
  19825. echo $ECHO_N "(cached) $ECHO_C" >&6
  19826. else
  19827. cat >conftest.$ac_ext <<_ACEOF
  19828. /* confdefs.h. */
  19829. _ACEOF
  19830. cat confdefs.h >>conftest.$ac_ext
  19831. cat >>conftest.$ac_ext <<_ACEOF
  19832. /* end confdefs.h. */
  19833. $ac_includes_default
  19834. int
  19835. main ()
  19836. {
  19837. if ((u_int32_t *) 0)
  19838. return 0;
  19839. if (sizeof (u_int32_t))
  19840. return 0;
  19841. ;
  19842. return 0;
  19843. }
  19844. _ACEOF
  19845. rm -f conftest.$ac_objext
  19846. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19847. (eval $ac_compile) 2>conftest.er1
  19848. ac_status=$?
  19849. grep -v '^ *+' conftest.er1 >conftest.err
  19850. rm -f conftest.er1
  19851. cat conftest.err >&5
  19852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19853. (exit $ac_status); } &&
  19854. { ac_try='test -z "$ac_c_werror_flag"
  19855. || test ! -s conftest.err'
  19856. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19857. (eval $ac_try) 2>&5
  19858. ac_status=$?
  19859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19860. (exit $ac_status); }; } &&
  19861. { ac_try='test -s conftest.$ac_objext'
  19862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19863. (eval $ac_try) 2>&5
  19864. ac_status=$?
  19865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19866. (exit $ac_status); }; }; then
  19867. ac_cv_type_u_int32_t=yes
  19868. else
  19869. echo "$as_me: failed program was:" >&5
  19870. sed 's/^/| /' conftest.$ac_ext >&5
  19871. ac_cv_type_u_int32_t=no
  19872. fi
  19873. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19874. fi
  19875. echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  19876. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
  19877. if test $ac_cv_type_u_int32_t = yes; then
  19878. :
  19879. else
  19880. cat >>confdefs.h <<_ACEOF
  19881. #define u_int32_t uint32_t
  19882. _ACEOF
  19883. fi
  19884. echo "$as_me:$LINENO: checking for u_int64_t" >&5
  19885. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
  19886. if test "${ac_cv_type_u_int64_t+set}" = set; then
  19887. echo $ECHO_N "(cached) $ECHO_C" >&6
  19888. else
  19889. cat >conftest.$ac_ext <<_ACEOF
  19890. /* confdefs.h. */
  19891. _ACEOF
  19892. cat confdefs.h >>conftest.$ac_ext
  19893. cat >>conftest.$ac_ext <<_ACEOF
  19894. /* end confdefs.h. */
  19895. $ac_includes_default
  19896. int
  19897. main ()
  19898. {
  19899. if ((u_int64_t *) 0)
  19900. return 0;
  19901. if (sizeof (u_int64_t))
  19902. return 0;
  19903. ;
  19904. return 0;
  19905. }
  19906. _ACEOF
  19907. rm -f conftest.$ac_objext
  19908. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19909. (eval $ac_compile) 2>conftest.er1
  19910. ac_status=$?
  19911. grep -v '^ *+' conftest.er1 >conftest.err
  19912. rm -f conftest.er1
  19913. cat conftest.err >&5
  19914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19915. (exit $ac_status); } &&
  19916. { ac_try='test -z "$ac_c_werror_flag"
  19917. || test ! -s conftest.err'
  19918. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19919. (eval $ac_try) 2>&5
  19920. ac_status=$?
  19921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19922. (exit $ac_status); }; } &&
  19923. { ac_try='test -s conftest.$ac_objext'
  19924. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19925. (eval $ac_try) 2>&5
  19926. ac_status=$?
  19927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19928. (exit $ac_status); }; }; then
  19929. ac_cv_type_u_int64_t=yes
  19930. else
  19931. echo "$as_me: failed program was:" >&5
  19932. sed 's/^/| /' conftest.$ac_ext >&5
  19933. ac_cv_type_u_int64_t=no
  19934. fi
  19935. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19936. fi
  19937. echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  19938. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
  19939. if test $ac_cv_type_u_int64_t = yes; then
  19940. :
  19941. else
  19942. cat >>confdefs.h <<_ACEOF
  19943. #define u_int64_t uint64_t
  19944. _ACEOF
  19945. fi
  19946. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h signal.h string.h strings.h sys/types.h sys/select.h netinet/in.h poll.h sys/poll.h unistd.h
  19947. do
  19948. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19949. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19950. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19951. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19952. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19953. echo $ECHO_N "(cached) $ECHO_C" >&6
  19954. fi
  19955. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19956. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19957. else
  19958. # Is the header compilable?
  19959. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19960. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19961. cat >conftest.$ac_ext <<_ACEOF
  19962. /* confdefs.h. */
  19963. _ACEOF
  19964. cat confdefs.h >>conftest.$ac_ext
  19965. cat >>conftest.$ac_ext <<_ACEOF
  19966. /* end confdefs.h. */
  19967. $ac_includes_default
  19968. #include <$ac_header>
  19969. _ACEOF
  19970. rm -f conftest.$ac_objext
  19971. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19972. (eval $ac_compile) 2>conftest.er1
  19973. ac_status=$?
  19974. grep -v '^ *+' conftest.er1 >conftest.err
  19975. rm -f conftest.er1
  19976. cat conftest.err >&5
  19977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19978. (exit $ac_status); } &&
  19979. { ac_try='test -z "$ac_c_werror_flag"
  19980. || test ! -s conftest.err'
  19981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19982. (eval $ac_try) 2>&5
  19983. ac_status=$?
  19984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19985. (exit $ac_status); }; } &&
  19986. { ac_try='test -s conftest.$ac_objext'
  19987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19988. (eval $ac_try) 2>&5
  19989. ac_status=$?
  19990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19991. (exit $ac_status); }; }; then
  19992. ac_header_compiler=yes
  19993. else
  19994. echo "$as_me: failed program was:" >&5
  19995. sed 's/^/| /' conftest.$ac_ext >&5
  19996. ac_header_compiler=no
  19997. fi
  19998. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19999. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20000. echo "${ECHO_T}$ac_header_compiler" >&6
  20001. # Is the header present?
  20002. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20003. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20004. cat >conftest.$ac_ext <<_ACEOF
  20005. /* confdefs.h. */
  20006. _ACEOF
  20007. cat confdefs.h >>conftest.$ac_ext
  20008. cat >>conftest.$ac_ext <<_ACEOF
  20009. /* end confdefs.h. */
  20010. #include <$ac_header>
  20011. _ACEOF
  20012. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20013. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20014. ac_status=$?
  20015. grep -v '^ *+' conftest.er1 >conftest.err
  20016. rm -f conftest.er1
  20017. cat conftest.err >&5
  20018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20019. (exit $ac_status); } >/dev/null; then
  20020. if test -s conftest.err; then
  20021. ac_cpp_err=$ac_c_preproc_warn_flag
  20022. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20023. else
  20024. ac_cpp_err=
  20025. fi
  20026. else
  20027. ac_cpp_err=yes
  20028. fi
  20029. if test -z "$ac_cpp_err"; then
  20030. ac_header_preproc=yes
  20031. else
  20032. echo "$as_me: failed program was:" >&5
  20033. sed 's/^/| /' conftest.$ac_ext >&5
  20034. ac_header_preproc=no
  20035. fi
  20036. rm -f conftest.err conftest.$ac_ext
  20037. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20038. echo "${ECHO_T}$ac_header_preproc" >&6
  20039. # So? What about this header?
  20040. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20041. yes:no: )
  20042. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20043. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20044. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20045. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20046. ac_header_preproc=yes
  20047. ;;
  20048. no:yes:* )
  20049. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20050. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20051. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20052. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20053. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20054. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20055. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20056. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20057. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20058. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20059. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20060. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20061. (
  20062. cat <<\_ASBOX
  20063. ## ------------------------------------------ ##
  20064. ## Report this to the AC_PACKAGE_NAME lists. ##
  20065. ## ------------------------------------------ ##
  20066. _ASBOX
  20067. ) |
  20068. sed "s/^/$as_me: WARNING: /" >&2
  20069. ;;
  20070. esac
  20071. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20072. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20073. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20074. echo $ECHO_N "(cached) $ECHO_C" >&6
  20075. else
  20076. eval "$as_ac_Header=\$ac_header_preproc"
  20077. fi
  20078. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20079. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20080. fi
  20081. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20082. cat >>confdefs.h <<_ACEOF
  20083. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20084. _ACEOF
  20085. fi
  20086. done
  20087. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  20088. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  20089. if test "${ac_cv_lib_socket_socket+set}" = set; then
  20090. echo $ECHO_N "(cached) $ECHO_C" >&6
  20091. else
  20092. ac_check_lib_save_LIBS=$LIBS
  20093. LIBS="-lsocket $LIBS"
  20094. cat >conftest.$ac_ext <<_ACEOF
  20095. /* confdefs.h. */
  20096. _ACEOF
  20097. cat confdefs.h >>conftest.$ac_ext
  20098. cat >>conftest.$ac_ext <<_ACEOF
  20099. /* end confdefs.h. */
  20100. /* Override any gcc2 internal prototype to avoid an error. */
  20101. #ifdef __cplusplus
  20102. extern "C"
  20103. #endif
  20104. /* We use char because int might match the return type of a gcc2
  20105. builtin and then its argument prototype would still apply. */
  20106. char socket ();
  20107. int
  20108. main ()
  20109. {
  20110. socket ();
  20111. ;
  20112. return 0;
  20113. }
  20114. _ACEOF
  20115. rm -f conftest.$ac_objext conftest$ac_exeext
  20116. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20117. (eval $ac_link) 2>conftest.er1
  20118. ac_status=$?
  20119. grep -v '^ *+' conftest.er1 >conftest.err
  20120. rm -f conftest.er1
  20121. cat conftest.err >&5
  20122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20123. (exit $ac_status); } &&
  20124. { ac_try='test -z "$ac_c_werror_flag"
  20125. || test ! -s conftest.err'
  20126. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20127. (eval $ac_try) 2>&5
  20128. ac_status=$?
  20129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20130. (exit $ac_status); }; } &&
  20131. { ac_try='test -s conftest$ac_exeext'
  20132. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20133. (eval $ac_try) 2>&5
  20134. ac_status=$?
  20135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20136. (exit $ac_status); }; }; then
  20137. ac_cv_lib_socket_socket=yes
  20138. else
  20139. echo "$as_me: failed program was:" >&5
  20140. sed 's/^/| /' conftest.$ac_ext >&5
  20141. ac_cv_lib_socket_socket=no
  20142. fi
  20143. rm -f conftest.err conftest.$ac_objext \
  20144. conftest$ac_exeext conftest.$ac_ext
  20145. LIBS=$ac_check_lib_save_LIBS
  20146. fi
  20147. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  20148. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  20149. if test $ac_cv_lib_socket_socket = yes; then
  20150. cat >>confdefs.h <<_ACEOF
  20151. #define HAVE_LIBSOCKET 1
  20152. _ACEOF
  20153. LIBS="-lsocket $LIBS"
  20154. fi
  20155. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  20156. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  20157. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  20158. echo $ECHO_N "(cached) $ECHO_C" >&6
  20159. else
  20160. ac_check_lib_save_LIBS=$LIBS
  20161. LIBS="-lnsl $LIBS"
  20162. cat >conftest.$ac_ext <<_ACEOF
  20163. /* confdefs.h. */
  20164. _ACEOF
  20165. cat confdefs.h >>conftest.$ac_ext
  20166. cat >>conftest.$ac_ext <<_ACEOF
  20167. /* end confdefs.h. */
  20168. /* Override any gcc2 internal prototype to avoid an error. */
  20169. #ifdef __cplusplus
  20170. extern "C"
  20171. #endif
  20172. /* We use char because int might match the return type of a gcc2
  20173. builtin and then its argument prototype would still apply. */
  20174. char gethostbyname ();
  20175. int
  20176. main ()
  20177. {
  20178. gethostbyname ();
  20179. ;
  20180. return 0;
  20181. }
  20182. _ACEOF
  20183. rm -f conftest.$ac_objext conftest$ac_exeext
  20184. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20185. (eval $ac_link) 2>conftest.er1
  20186. ac_status=$?
  20187. grep -v '^ *+' conftest.er1 >conftest.err
  20188. rm -f conftest.er1
  20189. cat conftest.err >&5
  20190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20191. (exit $ac_status); } &&
  20192. { ac_try='test -z "$ac_c_werror_flag"
  20193. || test ! -s conftest.err'
  20194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20195. (eval $ac_try) 2>&5
  20196. ac_status=$?
  20197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20198. (exit $ac_status); }; } &&
  20199. { ac_try='test -s conftest$ac_exeext'
  20200. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20201. (eval $ac_try) 2>&5
  20202. ac_status=$?
  20203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20204. (exit $ac_status); }; }; then
  20205. ac_cv_lib_nsl_gethostbyname=yes
  20206. else
  20207. echo "$as_me: failed program was:" >&5
  20208. sed 's/^/| /' conftest.$ac_ext >&5
  20209. ac_cv_lib_nsl_gethostbyname=no
  20210. fi
  20211. rm -f conftest.err conftest.$ac_objext \
  20212. conftest$ac_exeext conftest.$ac_ext
  20213. LIBS=$ac_check_lib_save_LIBS
  20214. fi
  20215. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20216. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  20217. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  20218. cat >>confdefs.h <<_ACEOF
  20219. #define HAVE_LIBNSL 1
  20220. _ACEOF
  20221. LIBS="-lnsl $LIBS"
  20222. fi
  20223. echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  20224. echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
  20225. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  20226. echo $ECHO_N "(cached) $ECHO_C" >&6
  20227. else
  20228. ac_check_lib_save_LIBS=$LIBS
  20229. LIBS="-lrt $LIBS"
  20230. cat >conftest.$ac_ext <<_ACEOF
  20231. /* confdefs.h. */
  20232. _ACEOF
  20233. cat confdefs.h >>conftest.$ac_ext
  20234. cat >>conftest.$ac_ext <<_ACEOF
  20235. /* end confdefs.h. */
  20236. /* Override any gcc2 internal prototype to avoid an error. */
  20237. #ifdef __cplusplus
  20238. extern "C"
  20239. #endif
  20240. /* We use char because int might match the return type of a gcc2
  20241. builtin and then its argument prototype would still apply. */
  20242. char nanosleep ();
  20243. int
  20244. main ()
  20245. {
  20246. nanosleep ();
  20247. ;
  20248. return 0;
  20249. }
  20250. _ACEOF
  20251. rm -f conftest.$ac_objext conftest$ac_exeext
  20252. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20253. (eval $ac_link) 2>conftest.er1
  20254. ac_status=$?
  20255. grep -v '^ *+' conftest.er1 >conftest.err
  20256. rm -f conftest.er1
  20257. cat conftest.err >&5
  20258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20259. (exit $ac_status); } &&
  20260. { ac_try='test -z "$ac_c_werror_flag"
  20261. || test ! -s conftest.err'
  20262. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20263. (eval $ac_try) 2>&5
  20264. ac_status=$?
  20265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20266. (exit $ac_status); }; } &&
  20267. { ac_try='test -s conftest$ac_exeext'
  20268. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20269. (eval $ac_try) 2>&5
  20270. ac_status=$?
  20271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20272. (exit $ac_status); }; }; then
  20273. ac_cv_lib_rt_nanosleep=yes
  20274. else
  20275. echo "$as_me: failed program was:" >&5
  20276. sed 's/^/| /' conftest.$ac_ext >&5
  20277. ac_cv_lib_rt_nanosleep=no
  20278. fi
  20279. rm -f conftest.err conftest.$ac_objext \
  20280. conftest$ac_exeext conftest.$ac_ext
  20281. LIBS=$ac_check_lib_save_LIBS
  20282. fi
  20283. echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  20284. echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
  20285. if test $ac_cv_lib_rt_nanosleep = yes; then
  20286. cat >>confdefs.h <<_ACEOF
  20287. #define HAVE_LIBRT 1
  20288. _ACEOF
  20289. LIBS="-lrt $LIBS"
  20290. fi
  20291. for ac_header in stdlib.h
  20292. do
  20293. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20294. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20295. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20296. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20297. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20298. echo $ECHO_N "(cached) $ECHO_C" >&6
  20299. fi
  20300. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20301. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20302. else
  20303. # Is the header compilable?
  20304. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20305. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20306. cat >conftest.$ac_ext <<_ACEOF
  20307. /* confdefs.h. */
  20308. _ACEOF
  20309. cat confdefs.h >>conftest.$ac_ext
  20310. cat >>conftest.$ac_ext <<_ACEOF
  20311. /* end confdefs.h. */
  20312. $ac_includes_default
  20313. #include <$ac_header>
  20314. _ACEOF
  20315. rm -f conftest.$ac_objext
  20316. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20317. (eval $ac_compile) 2>conftest.er1
  20318. ac_status=$?
  20319. grep -v '^ *+' conftest.er1 >conftest.err
  20320. rm -f conftest.er1
  20321. cat conftest.err >&5
  20322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20323. (exit $ac_status); } &&
  20324. { ac_try='test -z "$ac_c_werror_flag"
  20325. || test ! -s conftest.err'
  20326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20327. (eval $ac_try) 2>&5
  20328. ac_status=$?
  20329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20330. (exit $ac_status); }; } &&
  20331. { ac_try='test -s conftest.$ac_objext'
  20332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20333. (eval $ac_try) 2>&5
  20334. ac_status=$?
  20335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20336. (exit $ac_status); }; }; then
  20337. ac_header_compiler=yes
  20338. else
  20339. echo "$as_me: failed program was:" >&5
  20340. sed 's/^/| /' conftest.$ac_ext >&5
  20341. ac_header_compiler=no
  20342. fi
  20343. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20344. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20345. echo "${ECHO_T}$ac_header_compiler" >&6
  20346. # Is the header present?
  20347. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20348. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20349. cat >conftest.$ac_ext <<_ACEOF
  20350. /* confdefs.h. */
  20351. _ACEOF
  20352. cat confdefs.h >>conftest.$ac_ext
  20353. cat >>conftest.$ac_ext <<_ACEOF
  20354. /* end confdefs.h. */
  20355. #include <$ac_header>
  20356. _ACEOF
  20357. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20358. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20359. ac_status=$?
  20360. grep -v '^ *+' conftest.er1 >conftest.err
  20361. rm -f conftest.er1
  20362. cat conftest.err >&5
  20363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20364. (exit $ac_status); } >/dev/null; then
  20365. if test -s conftest.err; then
  20366. ac_cpp_err=$ac_c_preproc_warn_flag
  20367. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20368. else
  20369. ac_cpp_err=
  20370. fi
  20371. else
  20372. ac_cpp_err=yes
  20373. fi
  20374. if test -z "$ac_cpp_err"; then
  20375. ac_header_preproc=yes
  20376. else
  20377. echo "$as_me: failed program was:" >&5
  20378. sed 's/^/| /' conftest.$ac_ext >&5
  20379. ac_header_preproc=no
  20380. fi
  20381. rm -f conftest.err conftest.$ac_ext
  20382. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20383. echo "${ECHO_T}$ac_header_preproc" >&6
  20384. # So? What about this header?
  20385. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20386. yes:no: )
  20387. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20388. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20389. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20390. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20391. ac_header_preproc=yes
  20392. ;;
  20393. no:yes:* )
  20394. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20395. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20396. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20397. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20398. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20399. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20400. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20401. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20402. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20403. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20404. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20405. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20406. (
  20407. cat <<\_ASBOX
  20408. ## ------------------------------------------ ##
  20409. ## Report this to the AC_PACKAGE_NAME lists. ##
  20410. ## ------------------------------------------ ##
  20411. _ASBOX
  20412. ) |
  20413. sed "s/^/$as_me: WARNING: /" >&2
  20414. ;;
  20415. esac
  20416. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20417. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20418. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20419. echo $ECHO_N "(cached) $ECHO_C" >&6
  20420. else
  20421. eval "$as_ac_Header=\$ac_header_preproc"
  20422. fi
  20423. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20424. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20425. fi
  20426. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20427. cat >>confdefs.h <<_ACEOF
  20428. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20429. _ACEOF
  20430. fi
  20431. done
  20432. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  20433. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  20434. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  20435. echo $ECHO_N "(cached) $ECHO_C" >&6
  20436. else
  20437. if test "$cross_compiling" = yes; then
  20438. ac_cv_func_malloc_0_nonnull=no
  20439. else
  20440. cat >conftest.$ac_ext <<_ACEOF
  20441. /* confdefs.h. */
  20442. _ACEOF
  20443. cat confdefs.h >>conftest.$ac_ext
  20444. cat >>conftest.$ac_ext <<_ACEOF
  20445. /* end confdefs.h. */
  20446. #if STDC_HEADERS || HAVE_STDLIB_H
  20447. # include <stdlib.h>
  20448. #else
  20449. char *malloc ();
  20450. #endif
  20451. int
  20452. main ()
  20453. {
  20454. exit (malloc (0) ? 0 : 1);
  20455. ;
  20456. return 0;
  20457. }
  20458. _ACEOF
  20459. rm -f conftest$ac_exeext
  20460. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20461. (eval $ac_link) 2>&5
  20462. ac_status=$?
  20463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20464. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20466. (eval $ac_try) 2>&5
  20467. ac_status=$?
  20468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20469. (exit $ac_status); }; }; then
  20470. ac_cv_func_malloc_0_nonnull=yes
  20471. else
  20472. echo "$as_me: program exited with status $ac_status" >&5
  20473. echo "$as_me: failed program was:" >&5
  20474. sed 's/^/| /' conftest.$ac_ext >&5
  20475. ( exit $ac_status )
  20476. ac_cv_func_malloc_0_nonnull=no
  20477. fi
  20478. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20479. fi
  20480. fi
  20481. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  20482. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  20483. if test $ac_cv_func_malloc_0_nonnull = yes; then
  20484. cat >>confdefs.h <<\_ACEOF
  20485. #define HAVE_MALLOC 1
  20486. _ACEOF
  20487. else
  20488. cat >>confdefs.h <<\_ACEOF
  20489. #define HAVE_MALLOC 0
  20490. _ACEOF
  20491. case $LIBOBJS in
  20492. "malloc.$ac_objext" | \
  20493. *" malloc.$ac_objext" | \
  20494. "malloc.$ac_objext "* | \
  20495. *" malloc.$ac_objext "* ) ;;
  20496. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  20497. esac
  20498. cat >>confdefs.h <<\_ACEOF
  20499. #define malloc rpl_malloc
  20500. _ACEOF
  20501. fi
  20502. echo "$as_me:$LINENO: checking for working memcmp" >&5
  20503. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  20504. if test "${ac_cv_func_memcmp_working+set}" = set; then
  20505. echo $ECHO_N "(cached) $ECHO_C" >&6
  20506. else
  20507. if test "$cross_compiling" = yes; then
  20508. ac_cv_func_memcmp_working=no
  20509. else
  20510. cat >conftest.$ac_ext <<_ACEOF
  20511. /* confdefs.h. */
  20512. _ACEOF
  20513. cat confdefs.h >>conftest.$ac_ext
  20514. cat >>conftest.$ac_ext <<_ACEOF
  20515. /* end confdefs.h. */
  20516. $ac_includes_default
  20517. int
  20518. main ()
  20519. {
  20520. /* Some versions of memcmp are not 8-bit clean. */
  20521. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  20522. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  20523. exit (1);
  20524. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  20525. or more and with at least one buffer not starting on a 4-byte boundary.
  20526. William Lewis provided this test program. */
  20527. {
  20528. char foo[21];
  20529. char bar[21];
  20530. int i;
  20531. for (i = 0; i < 4; i++)
  20532. {
  20533. char *a = foo + i;
  20534. char *b = bar + i;
  20535. strcpy (a, "--------01111111");
  20536. strcpy (b, "--------10000000");
  20537. if (memcmp (a, b, 16) >= 0)
  20538. exit (1);
  20539. }
  20540. exit (0);
  20541. }
  20542. ;
  20543. return 0;
  20544. }
  20545. _ACEOF
  20546. rm -f conftest$ac_exeext
  20547. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20548. (eval $ac_link) 2>&5
  20549. ac_status=$?
  20550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20551. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20553. (eval $ac_try) 2>&5
  20554. ac_status=$?
  20555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20556. (exit $ac_status); }; }; then
  20557. ac_cv_func_memcmp_working=yes
  20558. else
  20559. echo "$as_me: program exited with status $ac_status" >&5
  20560. echo "$as_me: failed program was:" >&5
  20561. sed 's/^/| /' conftest.$ac_ext >&5
  20562. ( exit $ac_status )
  20563. ac_cv_func_memcmp_working=no
  20564. fi
  20565. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20566. fi
  20567. fi
  20568. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  20569. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  20570. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  20571. "memcmp.$ac_objext" | \
  20572. *" memcmp.$ac_objext" | \
  20573. "memcmp.$ac_objext "* | \
  20574. *" memcmp.$ac_objext "* ) ;;
  20575. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  20576. esac
  20577. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  20578. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  20579. if test "${ac_cv_type_signal+set}" = set; then
  20580. echo $ECHO_N "(cached) $ECHO_C" >&6
  20581. else
  20582. cat >conftest.$ac_ext <<_ACEOF
  20583. /* confdefs.h. */
  20584. _ACEOF
  20585. cat confdefs.h >>conftest.$ac_ext
  20586. cat >>conftest.$ac_ext <<_ACEOF
  20587. /* end confdefs.h. */
  20588. #include <sys/types.h>
  20589. #include <signal.h>
  20590. #ifdef signal
  20591. # undef signal
  20592. #endif
  20593. #ifdef __cplusplus
  20594. extern "C" void (*signal (int, void (*)(int)))(int);
  20595. #else
  20596. void (*signal ()) ();
  20597. #endif
  20598. int
  20599. main ()
  20600. {
  20601. int i;
  20602. ;
  20603. return 0;
  20604. }
  20605. _ACEOF
  20606. rm -f conftest.$ac_objext
  20607. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20608. (eval $ac_compile) 2>conftest.er1
  20609. ac_status=$?
  20610. grep -v '^ *+' conftest.er1 >conftest.err
  20611. rm -f conftest.er1
  20612. cat conftest.err >&5
  20613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20614. (exit $ac_status); } &&
  20615. { ac_try='test -z "$ac_c_werror_flag"
  20616. || test ! -s conftest.err'
  20617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20618. (eval $ac_try) 2>&5
  20619. ac_status=$?
  20620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20621. (exit $ac_status); }; } &&
  20622. { ac_try='test -s conftest.$ac_objext'
  20623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20624. (eval $ac_try) 2>&5
  20625. ac_status=$?
  20626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20627. (exit $ac_status); }; }; then
  20628. ac_cv_type_signal=void
  20629. else
  20630. echo "$as_me: failed program was:" >&5
  20631. sed 's/^/| /' conftest.$ac_ext >&5
  20632. ac_cv_type_signal=int
  20633. fi
  20634. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20635. fi
  20636. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  20637. echo "${ECHO_T}$ac_cv_type_signal" >&6
  20638. cat >>confdefs.h <<_ACEOF
  20639. #define RETSIGTYPE $ac_cv_type_signal
  20640. _ACEOF
  20641. for ac_func in vprintf
  20642. do
  20643. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20644. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20645. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20646. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20647. echo $ECHO_N "(cached) $ECHO_C" >&6
  20648. else
  20649. cat >conftest.$ac_ext <<_ACEOF
  20650. /* confdefs.h. */
  20651. _ACEOF
  20652. cat confdefs.h >>conftest.$ac_ext
  20653. cat >>conftest.$ac_ext <<_ACEOF
  20654. /* end confdefs.h. */
  20655. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20656. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20657. #define $ac_func innocuous_$ac_func
  20658. /* System header to define __stub macros and hopefully few prototypes,
  20659. which can conflict with char $ac_func (); below.
  20660. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20661. <limits.h> exists even on freestanding compilers. */
  20662. #ifdef __STDC__
  20663. # include <limits.h>
  20664. #else
  20665. # include <assert.h>
  20666. #endif
  20667. #undef $ac_func
  20668. /* Override any gcc2 internal prototype to avoid an error. */
  20669. #ifdef __cplusplus
  20670. extern "C"
  20671. {
  20672. #endif
  20673. /* We use char because int might match the return type of a gcc2
  20674. builtin and then its argument prototype would still apply. */
  20675. char $ac_func ();
  20676. /* The GNU C library defines this for functions which it implements
  20677. to always fail with ENOSYS. Some functions are actually named
  20678. something starting with __ and the normal name is an alias. */
  20679. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20680. choke me
  20681. #else
  20682. char (*f) () = $ac_func;
  20683. #endif
  20684. #ifdef __cplusplus
  20685. }
  20686. #endif
  20687. int
  20688. main ()
  20689. {
  20690. return f != $ac_func;
  20691. ;
  20692. return 0;
  20693. }
  20694. _ACEOF
  20695. rm -f conftest.$ac_objext conftest$ac_exeext
  20696. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20697. (eval $ac_link) 2>conftest.er1
  20698. ac_status=$?
  20699. grep -v '^ *+' conftest.er1 >conftest.err
  20700. rm -f conftest.er1
  20701. cat conftest.err >&5
  20702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20703. (exit $ac_status); } &&
  20704. { ac_try='test -z "$ac_c_werror_flag"
  20705. || test ! -s conftest.err'
  20706. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20707. (eval $ac_try) 2>&5
  20708. ac_status=$?
  20709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20710. (exit $ac_status); }; } &&
  20711. { ac_try='test -s conftest$ac_exeext'
  20712. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20713. (eval $ac_try) 2>&5
  20714. ac_status=$?
  20715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20716. (exit $ac_status); }; }; then
  20717. eval "$as_ac_var=yes"
  20718. else
  20719. echo "$as_me: failed program was:" >&5
  20720. sed 's/^/| /' conftest.$ac_ext >&5
  20721. eval "$as_ac_var=no"
  20722. fi
  20723. rm -f conftest.err conftest.$ac_objext \
  20724. conftest$ac_exeext conftest.$ac_ext
  20725. fi
  20726. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20727. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20728. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20729. cat >>confdefs.h <<_ACEOF
  20730. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20731. _ACEOF
  20732. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20733. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20734. if test "${ac_cv_func__doprnt+set}" = set; then
  20735. echo $ECHO_N "(cached) $ECHO_C" >&6
  20736. else
  20737. cat >conftest.$ac_ext <<_ACEOF
  20738. /* confdefs.h. */
  20739. _ACEOF
  20740. cat confdefs.h >>conftest.$ac_ext
  20741. cat >>conftest.$ac_ext <<_ACEOF
  20742. /* end confdefs.h. */
  20743. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20744. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20745. #define _doprnt innocuous__doprnt
  20746. /* System header to define __stub macros and hopefully few prototypes,
  20747. which can conflict with char _doprnt (); below.
  20748. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20749. <limits.h> exists even on freestanding compilers. */
  20750. #ifdef __STDC__
  20751. # include <limits.h>
  20752. #else
  20753. # include <assert.h>
  20754. #endif
  20755. #undef _doprnt
  20756. /* Override any gcc2 internal prototype to avoid an error. */
  20757. #ifdef __cplusplus
  20758. extern "C"
  20759. {
  20760. #endif
  20761. /* We use char because int might match the return type of a gcc2
  20762. builtin and then its argument prototype would still apply. */
  20763. char _doprnt ();
  20764. /* The GNU C library defines this for functions which it implements
  20765. to always fail with ENOSYS. Some functions are actually named
  20766. something starting with __ and the normal name is an alias. */
  20767. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20768. choke me
  20769. #else
  20770. char (*f) () = _doprnt;
  20771. #endif
  20772. #ifdef __cplusplus
  20773. }
  20774. #endif
  20775. int
  20776. main ()
  20777. {
  20778. return f != _doprnt;
  20779. ;
  20780. return 0;
  20781. }
  20782. _ACEOF
  20783. rm -f conftest.$ac_objext conftest$ac_exeext
  20784. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20785. (eval $ac_link) 2>conftest.er1
  20786. ac_status=$?
  20787. grep -v '^ *+' conftest.er1 >conftest.err
  20788. rm -f conftest.er1
  20789. cat conftest.err >&5
  20790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20791. (exit $ac_status); } &&
  20792. { ac_try='test -z "$ac_c_werror_flag"
  20793. || test ! -s conftest.err'
  20794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20795. (eval $ac_try) 2>&5
  20796. ac_status=$?
  20797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20798. (exit $ac_status); }; } &&
  20799. { ac_try='test -s conftest$ac_exeext'
  20800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20801. (eval $ac_try) 2>&5
  20802. ac_status=$?
  20803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20804. (exit $ac_status); }; }; then
  20805. ac_cv_func__doprnt=yes
  20806. else
  20807. echo "$as_me: failed program was:" >&5
  20808. sed 's/^/| /' conftest.$ac_ext >&5
  20809. ac_cv_func__doprnt=no
  20810. fi
  20811. rm -f conftest.err conftest.$ac_objext \
  20812. conftest$ac_exeext conftest.$ac_ext
  20813. fi
  20814. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20815. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20816. if test $ac_cv_func__doprnt = yes; then
  20817. cat >>confdefs.h <<\_ACEOF
  20818. #define HAVE_DOPRNT 1
  20819. _ACEOF
  20820. fi
  20821. fi
  20822. done
  20823. for ac_func in gettimeofday ctime memset regcomp strdup strerror strtol strncpy strtoull poll ntohll mmap
  20824. do
  20825. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20826. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20827. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20828. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20829. echo $ECHO_N "(cached) $ECHO_C" >&6
  20830. else
  20831. cat >conftest.$ac_ext <<_ACEOF
  20832. /* confdefs.h. */
  20833. _ACEOF
  20834. cat confdefs.h >>conftest.$ac_ext
  20835. cat >>conftest.$ac_ext <<_ACEOF
  20836. /* end confdefs.h. */
  20837. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20838. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20839. #define $ac_func innocuous_$ac_func
  20840. /* System header to define __stub macros and hopefully few prototypes,
  20841. which can conflict with char $ac_func (); below.
  20842. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20843. <limits.h> exists even on freestanding compilers. */
  20844. #ifdef __STDC__
  20845. # include <limits.h>
  20846. #else
  20847. # include <assert.h>
  20848. #endif
  20849. #undef $ac_func
  20850. /* Override any gcc2 internal prototype to avoid an error. */
  20851. #ifdef __cplusplus
  20852. extern "C"
  20853. {
  20854. #endif
  20855. /* We use char because int might match the return type of a gcc2
  20856. builtin and then its argument prototype would still apply. */
  20857. char $ac_func ();
  20858. /* The GNU C library defines this for functions which it implements
  20859. to always fail with ENOSYS. Some functions are actually named
  20860. something starting with __ and the normal name is an alias. */
  20861. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20862. choke me
  20863. #else
  20864. char (*f) () = $ac_func;
  20865. #endif
  20866. #ifdef __cplusplus
  20867. }
  20868. #endif
  20869. int
  20870. main ()
  20871. {
  20872. return f != $ac_func;
  20873. ;
  20874. return 0;
  20875. }
  20876. _ACEOF
  20877. rm -f conftest.$ac_objext conftest$ac_exeext
  20878. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20879. (eval $ac_link) 2>conftest.er1
  20880. ac_status=$?
  20881. grep -v '^ *+' conftest.er1 >conftest.err
  20882. rm -f conftest.er1
  20883. cat conftest.err >&5
  20884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20885. (exit $ac_status); } &&
  20886. { ac_try='test -z "$ac_c_werror_flag"
  20887. || test ! -s conftest.err'
  20888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20889. (eval $ac_try) 2>&5
  20890. ac_status=$?
  20891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20892. (exit $ac_status); }; } &&
  20893. { ac_try='test -s conftest$ac_exeext'
  20894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20895. (eval $ac_try) 2>&5
  20896. ac_status=$?
  20897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20898. (exit $ac_status); }; }; then
  20899. eval "$as_ac_var=yes"
  20900. else
  20901. echo "$as_me: failed program was:" >&5
  20902. sed 's/^/| /' conftest.$ac_ext >&5
  20903. eval "$as_ac_var=no"
  20904. fi
  20905. rm -f conftest.err conftest.$ac_objext \
  20906. conftest$ac_exeext conftest.$ac_ext
  20907. fi
  20908. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20909. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20910. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20911. cat >>confdefs.h <<_ACEOF
  20912. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20913. _ACEOF
  20914. fi
  20915. done
  20916. for ac_func in strlcpy
  20917. do
  20918. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20919. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20920. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20921. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20922. echo $ECHO_N "(cached) $ECHO_C" >&6
  20923. else
  20924. cat >conftest.$ac_ext <<_ACEOF
  20925. /* confdefs.h. */
  20926. _ACEOF
  20927. cat confdefs.h >>conftest.$ac_ext
  20928. cat >>conftest.$ac_ext <<_ACEOF
  20929. /* end confdefs.h. */
  20930. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20931. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20932. #define $ac_func innocuous_$ac_func
  20933. /* System header to define __stub macros and hopefully few prototypes,
  20934. which can conflict with char $ac_func (); below.
  20935. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20936. <limits.h> exists even on freestanding compilers. */
  20937. #ifdef __STDC__
  20938. # include <limits.h>
  20939. #else
  20940. # include <assert.h>
  20941. #endif
  20942. #undef $ac_func
  20943. /* Override any gcc2 internal prototype to avoid an error. */
  20944. #ifdef __cplusplus
  20945. extern "C"
  20946. {
  20947. #endif
  20948. /* We use char because int might match the return type of a gcc2
  20949. builtin and then its argument prototype would still apply. */
  20950. char $ac_func ();
  20951. /* The GNU C library defines this for functions which it implements
  20952. to always fail with ENOSYS. Some functions are actually named
  20953. something starting with __ and the normal name is an alias. */
  20954. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20955. choke me
  20956. #else
  20957. char (*f) () = $ac_func;
  20958. #endif
  20959. #ifdef __cplusplus
  20960. }
  20961. #endif
  20962. int
  20963. main ()
  20964. {
  20965. return f != $ac_func;
  20966. ;
  20967. return 0;
  20968. }
  20969. _ACEOF
  20970. rm -f conftest.$ac_objext conftest$ac_exeext
  20971. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20972. (eval $ac_link) 2>conftest.er1
  20973. ac_status=$?
  20974. grep -v '^ *+' conftest.er1 >conftest.err
  20975. rm -f conftest.er1
  20976. cat conftest.err >&5
  20977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20978. (exit $ac_status); } &&
  20979. { ac_try='test -z "$ac_c_werror_flag"
  20980. || test ! -s conftest.err'
  20981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20982. (eval $ac_try) 2>&5
  20983. ac_status=$?
  20984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20985. (exit $ac_status); }; } &&
  20986. { ac_try='test -s conftest$ac_exeext'
  20987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20988. (eval $ac_try) 2>&5
  20989. ac_status=$?
  20990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20991. (exit $ac_status); }; }; then
  20992. eval "$as_ac_var=yes"
  20993. else
  20994. echo "$as_me: failed program was:" >&5
  20995. sed 's/^/| /' conftest.$ac_ext >&5
  20996. eval "$as_ac_var=no"
  20997. fi
  20998. rm -f conftest.err conftest.$ac_objext \
  20999. conftest$ac_exeext conftest.$ac_ext
  21000. fi
  21001. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  21002. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  21003. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21004. cat >>confdefs.h <<_ACEOF
  21005. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21006. _ACEOF
  21007. have_strlcpy=true
  21008. else
  21009. have_strlcpy=false
  21010. fi
  21011. done
  21012. if test x$have_strlcpy = xtrue; then
  21013. SYSTEM_STRLCPY_TRUE=
  21014. SYSTEM_STRLCPY_FALSE='#'
  21015. else
  21016. SYSTEM_STRLCPY_TRUE='#'
  21017. SYSTEM_STRLCPY_FALSE=
  21018. fi
  21019. echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  21020. echo $ECHO_N "checking for struct timeval.tv_sec... $ECHO_C" >&6
  21021. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  21022. echo $ECHO_N "(cached) $ECHO_C" >&6
  21023. else
  21024. cat >conftest.$ac_ext <<_ACEOF
  21025. /* confdefs.h. */
  21026. _ACEOF
  21027. cat confdefs.h >>conftest.$ac_ext
  21028. cat >>conftest.$ac_ext <<_ACEOF
  21029. /* end confdefs.h. */
  21030. $ac_includes_default
  21031. int
  21032. main ()
  21033. {
  21034. static struct timeval ac_aggr;
  21035. if (ac_aggr.tv_sec)
  21036. return 0;
  21037. ;
  21038. return 0;
  21039. }
  21040. _ACEOF
  21041. rm -f conftest.$ac_objext
  21042. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21043. (eval $ac_compile) 2>conftest.er1
  21044. ac_status=$?
  21045. grep -v '^ *+' conftest.er1 >conftest.err
  21046. rm -f conftest.er1
  21047. cat conftest.err >&5
  21048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21049. (exit $ac_status); } &&
  21050. { ac_try='test -z "$ac_c_werror_flag"
  21051. || test ! -s conftest.err'
  21052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21053. (eval $ac_try) 2>&5
  21054. ac_status=$?
  21055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21056. (exit $ac_status); }; } &&
  21057. { ac_try='test -s conftest.$ac_objext'
  21058. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21059. (eval $ac_try) 2>&5
  21060. ac_status=$?
  21061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21062. (exit $ac_status); }; }; then
  21063. ac_cv_member_struct_timeval_tv_sec=yes
  21064. else
  21065. echo "$as_me: failed program was:" >&5
  21066. sed 's/^/| /' conftest.$ac_ext >&5
  21067. cat >conftest.$ac_ext <<_ACEOF
  21068. /* confdefs.h. */
  21069. _ACEOF
  21070. cat confdefs.h >>conftest.$ac_ext
  21071. cat >>conftest.$ac_ext <<_ACEOF
  21072. /* end confdefs.h. */
  21073. $ac_includes_default
  21074. int
  21075. main ()
  21076. {
  21077. static struct timeval ac_aggr;
  21078. if (sizeof ac_aggr.tv_sec)
  21079. return 0;
  21080. ;
  21081. return 0;
  21082. }
  21083. _ACEOF
  21084. rm -f conftest.$ac_objext
  21085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21086. (eval $ac_compile) 2>conftest.er1
  21087. ac_status=$?
  21088. grep -v '^ *+' conftest.er1 >conftest.err
  21089. rm -f conftest.er1
  21090. cat conftest.err >&5
  21091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21092. (exit $ac_status); } &&
  21093. { ac_try='test -z "$ac_c_werror_flag"
  21094. || test ! -s conftest.err'
  21095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21096. (eval $ac_try) 2>&5
  21097. ac_status=$?
  21098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21099. (exit $ac_status); }; } &&
  21100. { ac_try='test -s conftest.$ac_objext'
  21101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21102. (eval $ac_try) 2>&5
  21103. ac_status=$?
  21104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21105. (exit $ac_status); }; }; then
  21106. ac_cv_member_struct_timeval_tv_sec=yes
  21107. else
  21108. echo "$as_me: failed program was:" >&5
  21109. sed 's/^/| /' conftest.$ac_ext >&5
  21110. ac_cv_member_struct_timeval_tv_sec=no
  21111. fi
  21112. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21113. fi
  21114. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21115. fi
  21116. echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  21117. echo "${ECHO_T}$ac_cv_member_struct_timeval_tv_sec" >&6
  21118. if test $ac_cv_member_struct_timeval_tv_sec = yes; then
  21119. cat >>confdefs.h <<_ACEOF
  21120. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  21121. _ACEOF
  21122. fi
  21123. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  21124. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  21125. if test "${ac_cv_c_bigendian+set}" = set; then
  21126. echo $ECHO_N "(cached) $ECHO_C" >&6
  21127. else
  21128. # See if sys/param.h defines the BYTE_ORDER macro.
  21129. cat >conftest.$ac_ext <<_ACEOF
  21130. /* confdefs.h. */
  21131. _ACEOF
  21132. cat confdefs.h >>conftest.$ac_ext
  21133. cat >>conftest.$ac_ext <<_ACEOF
  21134. /* end confdefs.h. */
  21135. #include <sys/types.h>
  21136. #include <sys/param.h>
  21137. int
  21138. main ()
  21139. {
  21140. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  21141. bogus endian macros
  21142. #endif
  21143. ;
  21144. return 0;
  21145. }
  21146. _ACEOF
  21147. rm -f conftest.$ac_objext
  21148. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21149. (eval $ac_compile) 2>conftest.er1
  21150. ac_status=$?
  21151. grep -v '^ *+' conftest.er1 >conftest.err
  21152. rm -f conftest.er1
  21153. cat conftest.err >&5
  21154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21155. (exit $ac_status); } &&
  21156. { ac_try='test -z "$ac_c_werror_flag"
  21157. || test ! -s conftest.err'
  21158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21159. (eval $ac_try) 2>&5
  21160. ac_status=$?
  21161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21162. (exit $ac_status); }; } &&
  21163. { ac_try='test -s conftest.$ac_objext'
  21164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21165. (eval $ac_try) 2>&5
  21166. ac_status=$?
  21167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21168. (exit $ac_status); }; }; then
  21169. # It does; now see whether it defined to BIG_ENDIAN or not.
  21170. cat >conftest.$ac_ext <<_ACEOF
  21171. /* confdefs.h. */
  21172. _ACEOF
  21173. cat confdefs.h >>conftest.$ac_ext
  21174. cat >>conftest.$ac_ext <<_ACEOF
  21175. /* end confdefs.h. */
  21176. #include <sys/types.h>
  21177. #include <sys/param.h>
  21178. int
  21179. main ()
  21180. {
  21181. #if BYTE_ORDER != BIG_ENDIAN
  21182. not big endian
  21183. #endif
  21184. ;
  21185. return 0;
  21186. }
  21187. _ACEOF
  21188. rm -f conftest.$ac_objext
  21189. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21190. (eval $ac_compile) 2>conftest.er1
  21191. ac_status=$?
  21192. grep -v '^ *+' conftest.er1 >conftest.err
  21193. rm -f conftest.er1
  21194. cat conftest.err >&5
  21195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21196. (exit $ac_status); } &&
  21197. { ac_try='test -z "$ac_c_werror_flag"
  21198. || test ! -s conftest.err'
  21199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21200. (eval $ac_try) 2>&5
  21201. ac_status=$?
  21202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21203. (exit $ac_status); }; } &&
  21204. { ac_try='test -s conftest.$ac_objext'
  21205. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21206. (eval $ac_try) 2>&5
  21207. ac_status=$?
  21208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21209. (exit $ac_status); }; }; then
  21210. ac_cv_c_bigendian=yes
  21211. else
  21212. echo "$as_me: failed program was:" >&5
  21213. sed 's/^/| /' conftest.$ac_ext >&5
  21214. ac_cv_c_bigendian=no
  21215. fi
  21216. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21217. else
  21218. echo "$as_me: failed program was:" >&5
  21219. sed 's/^/| /' conftest.$ac_ext >&5
  21220. # It does not; compile a test program.
  21221. if test "$cross_compiling" = yes; then
  21222. # try to guess the endianness by grepping values into an object file
  21223. ac_cv_c_bigendian=unknown
  21224. cat >conftest.$ac_ext <<_ACEOF
  21225. /* confdefs.h. */
  21226. _ACEOF
  21227. cat confdefs.h >>conftest.$ac_ext
  21228. cat >>conftest.$ac_ext <<_ACEOF
  21229. /* end confdefs.h. */
  21230. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  21231. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  21232. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  21233. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  21234. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  21235. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  21236. int
  21237. main ()
  21238. {
  21239. _ascii (); _ebcdic ();
  21240. ;
  21241. return 0;
  21242. }
  21243. _ACEOF
  21244. rm -f conftest.$ac_objext
  21245. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21246. (eval $ac_compile) 2>conftest.er1
  21247. ac_status=$?
  21248. grep -v '^ *+' conftest.er1 >conftest.err
  21249. rm -f conftest.er1
  21250. cat conftest.err >&5
  21251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21252. (exit $ac_status); } &&
  21253. { ac_try='test -z "$ac_c_werror_flag"
  21254. || test ! -s conftest.err'
  21255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21256. (eval $ac_try) 2>&5
  21257. ac_status=$?
  21258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21259. (exit $ac_status); }; } &&
  21260. { ac_try='test -s conftest.$ac_objext'
  21261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21262. (eval $ac_try) 2>&5
  21263. ac_status=$?
  21264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21265. (exit $ac_status); }; }; then
  21266. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  21267. ac_cv_c_bigendian=yes
  21268. fi
  21269. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  21270. if test "$ac_cv_c_bigendian" = unknown; then
  21271. ac_cv_c_bigendian=no
  21272. else
  21273. # finding both strings is unlikely to happen, but who knows?
  21274. ac_cv_c_bigendian=unknown
  21275. fi
  21276. fi
  21277. else
  21278. echo "$as_me: failed program was:" >&5
  21279. sed 's/^/| /' conftest.$ac_ext >&5
  21280. fi
  21281. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21282. else
  21283. cat >conftest.$ac_ext <<_ACEOF
  21284. /* confdefs.h. */
  21285. _ACEOF
  21286. cat confdefs.h >>conftest.$ac_ext
  21287. cat >>conftest.$ac_ext <<_ACEOF
  21288. /* end confdefs.h. */
  21289. int
  21290. main ()
  21291. {
  21292. /* Are we little or big endian? From Harbison&Steele. */
  21293. union
  21294. {
  21295. long l;
  21296. char c[sizeof (long)];
  21297. } u;
  21298. u.l = 1;
  21299. exit (u.c[sizeof (long) - 1] == 1);
  21300. }
  21301. _ACEOF
  21302. rm -f conftest$ac_exeext
  21303. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21304. (eval $ac_link) 2>&5
  21305. ac_status=$?
  21306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21307. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21308. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21309. (eval $ac_try) 2>&5
  21310. ac_status=$?
  21311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21312. (exit $ac_status); }; }; then
  21313. ac_cv_c_bigendian=no
  21314. else
  21315. echo "$as_me: program exited with status $ac_status" >&5
  21316. echo "$as_me: failed program was:" >&5
  21317. sed 's/^/| /' conftest.$ac_ext >&5
  21318. ( exit $ac_status )
  21319. ac_cv_c_bigendian=yes
  21320. fi
  21321. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21322. fi
  21323. fi
  21324. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21325. fi
  21326. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  21327. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  21328. case $ac_cv_c_bigendian in
  21329. yes)
  21330. cat >>confdefs.h <<\_ACEOF
  21331. #define WORDS_BIGENDIAN 1
  21332. _ACEOF
  21333. ;;
  21334. no)
  21335. ;;
  21336. *)
  21337. { { echo "$as_me:$LINENO: error: unknown endianness
  21338. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  21339. echo "$as_me: error: unknown endianness
  21340. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  21341. { (exit 1); exit 1; }; } ;;
  21342. esac
  21343. doctools=no
  21344. if test -n "$FIG2DEV" -a -n "$LYX" -a -n "$DVIPS" -a -n "$TEXI2DVI" \
  21345. -a -n "$LATEX2HTML" -a -n "$DVIPDFM" ; then
  21346. doctools=yes
  21347. fi
  21348. if test $doctools = yes; then
  21349. HAVE_DOCTOOLS_TRUE=
  21350. HAVE_DOCTOOLS_FALSE='#'
  21351. else
  21352. HAVE_DOCTOOLS_TRUE='#'
  21353. HAVE_DOCTOOLS_FALSE=
  21354. fi
  21355. debug=no
  21356. # Check whether --enable-debug or --disable-debug was given.
  21357. if test "${enable_debug+set}" = set; then
  21358. enableval="$enable_debug"
  21359. if test x$enableval = xyes; then
  21360. debug=yes
  21361. CFLAGS="-ggdb -std=gnu99 -Wall -Wextra -Wfatal-errors -Wno-variadic-macros"
  21362. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  21363. cat >>confdefs.h <<\_ACEOF
  21364. #define DEBUG
  21365. _ACEOF
  21366. fi
  21367. fi;
  21368. # Check whether --enable-pedantic or --disable-pedantic was given.
  21369. if test "${enable_pedantic+set}" = set; then
  21370. enableval="$enable_pedantic"
  21371. if test x$enableval = xyes; then
  21372. CFLAGS="$CFLAGS -pedantic"
  21373. fi
  21374. fi;
  21375. # Check whether --enable-efence or --disable-efence was given.
  21376. if test "${enable_efence+set}" = set; then
  21377. enableval="$enable_efence"
  21378. if test x$enableval = xyes; then
  21379. CFLAGS="$CFLAGS -lefence"
  21380. cat >>confdefs.h <<\_ACEOF
  21381. #define EFENCE
  21382. _ACEOF
  21383. fi
  21384. fi;
  21385. # Check whether --enable-gprof or --disable-gprof was given.
  21386. if test "${enable_gprof+set}" = set; then
  21387. enableval="$enable_gprof"
  21388. if test x$enableval = xyes; then
  21389. if test $debug = yes; then
  21390. CFLAGS="$CFLAGS -pg"
  21391. else
  21392. # GPROF requires gdb
  21393. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  21394. fi
  21395. cat >>confdefs.h <<\_ACEOF
  21396. #define GPROF
  21397. _ACEOF
  21398. fi
  21399. fi;
  21400. # Check whether --enable-64bits or --disable-64bits was given.
  21401. if test "${enable_64bits+set}" = set; then
  21402. enableval="$enable_64bits"
  21403. if test x$enableval = xyes; then
  21404. cat >>confdefs.h <<\_ACEOF
  21405. #define ENABLE_64BITS
  21406. _ACEOF
  21407. { echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  21408. echo "$as_me: Using u_int64_t for packet counters" >&6;}
  21409. else
  21410. { echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  21411. echo "$as_me: Using u_int32_t for packet counters" >&6;}
  21412. fi
  21413. fi;
  21414. dynamic_link=no
  21415. # Check whether --enable-dynamic-link or --disable-dynamic-link was given.
  21416. if test "${enable_dynamic_link+set}" = set; then
  21417. enableval="$enable_dynamic_link"
  21418. if test x$enableval = xyes; then
  21419. cat >>confdefs.h <<\_ACEOF
  21420. #define ENABLE_DYNAMIC_LINK
  21421. _ACEOF
  21422. dynamic_link=yes
  21423. fi
  21424. fi;
  21425. echo "$as_me:$LINENO: checking for inet_aton" >&5
  21426. echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
  21427. if test "${ac_cv_func_inet_aton+set}" = set; then
  21428. echo $ECHO_N "(cached) $ECHO_C" >&6
  21429. else
  21430. cat >conftest.$ac_ext <<_ACEOF
  21431. /* confdefs.h. */
  21432. _ACEOF
  21433. cat confdefs.h >>conftest.$ac_ext
  21434. cat >>conftest.$ac_ext <<_ACEOF
  21435. /* end confdefs.h. */
  21436. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  21437. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21438. #define inet_aton innocuous_inet_aton
  21439. /* System header to define __stub macros and hopefully few prototypes,
  21440. which can conflict with char inet_aton (); below.
  21441. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21442. <limits.h> exists even on freestanding compilers. */
  21443. #ifdef __STDC__
  21444. # include <limits.h>
  21445. #else
  21446. # include <assert.h>
  21447. #endif
  21448. #undef inet_aton
  21449. /* Override any gcc2 internal prototype to avoid an error. */
  21450. #ifdef __cplusplus
  21451. extern "C"
  21452. {
  21453. #endif
  21454. /* We use char because int might match the return type of a gcc2
  21455. builtin and then its argument prototype would still apply. */
  21456. char inet_aton ();
  21457. /* The GNU C library defines this for functions which it implements
  21458. to always fail with ENOSYS. Some functions are actually named
  21459. something starting with __ and the normal name is an alias. */
  21460. #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
  21461. choke me
  21462. #else
  21463. char (*f) () = inet_aton;
  21464. #endif
  21465. #ifdef __cplusplus
  21466. }
  21467. #endif
  21468. int
  21469. main ()
  21470. {
  21471. return f != inet_aton;
  21472. ;
  21473. return 0;
  21474. }
  21475. _ACEOF
  21476. rm -f conftest.$ac_objext conftest$ac_exeext
  21477. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21478. (eval $ac_link) 2>conftest.er1
  21479. ac_status=$?
  21480. grep -v '^ *+' conftest.er1 >conftest.err
  21481. rm -f conftest.er1
  21482. cat conftest.err >&5
  21483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21484. (exit $ac_status); } &&
  21485. { ac_try='test -z "$ac_c_werror_flag"
  21486. || test ! -s conftest.err'
  21487. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21488. (eval $ac_try) 2>&5
  21489. ac_status=$?
  21490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21491. (exit $ac_status); }; } &&
  21492. { ac_try='test -s conftest$ac_exeext'
  21493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21494. (eval $ac_try) 2>&5
  21495. ac_status=$?
  21496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21497. (exit $ac_status); }; }; then
  21498. ac_cv_func_inet_aton=yes
  21499. else
  21500. echo "$as_me: failed program was:" >&5
  21501. sed 's/^/| /' conftest.$ac_ext >&5
  21502. ac_cv_func_inet_aton=no
  21503. fi
  21504. rm -f conftest.err conftest.$ac_objext \
  21505. conftest$ac_exeext conftest.$ac_ext
  21506. fi
  21507. echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  21508. echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
  21509. if test $ac_cv_func_inet_aton = yes; then
  21510. cat >>confdefs.h <<\_ACEOF
  21511. #define HAVE_INET_ATON
  21512. _ACEOF
  21513. inet_aton=yes
  21514. else
  21515. inet_aton=no
  21516. fi
  21517. echo "$as_me:$LINENO: checking for inet_pton" >&5
  21518. echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
  21519. if test "${ac_cv_func_inet_pton+set}" = set; then
  21520. echo $ECHO_N "(cached) $ECHO_C" >&6
  21521. else
  21522. cat >conftest.$ac_ext <<_ACEOF
  21523. /* confdefs.h. */
  21524. _ACEOF
  21525. cat confdefs.h >>conftest.$ac_ext
  21526. cat >>conftest.$ac_ext <<_ACEOF
  21527. /* end confdefs.h. */
  21528. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  21529. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21530. #define inet_pton innocuous_inet_pton
  21531. /* System header to define __stub macros and hopefully few prototypes,
  21532. which can conflict with char inet_pton (); below.
  21533. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21534. <limits.h> exists even on freestanding compilers. */
  21535. #ifdef __STDC__
  21536. # include <limits.h>
  21537. #else
  21538. # include <assert.h>
  21539. #endif
  21540. #undef inet_pton
  21541. /* Override any gcc2 internal prototype to avoid an error. */
  21542. #ifdef __cplusplus
  21543. extern "C"
  21544. {
  21545. #endif
  21546. /* We use char because int might match the return type of a gcc2
  21547. builtin and then its argument prototype would still apply. */
  21548. char inet_pton ();
  21549. /* The GNU C library defines this for functions which it implements
  21550. to always fail with ENOSYS. Some functions are actually named
  21551. something starting with __ and the normal name is an alias. */
  21552. #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
  21553. choke me
  21554. #else
  21555. char (*f) () = inet_pton;
  21556. #endif
  21557. #ifdef __cplusplus
  21558. }
  21559. #endif
  21560. int
  21561. main ()
  21562. {
  21563. return f != inet_pton;
  21564. ;
  21565. return 0;
  21566. }
  21567. _ACEOF
  21568. rm -f conftest.$ac_objext conftest$ac_exeext
  21569. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21570. (eval $ac_link) 2>conftest.er1
  21571. ac_status=$?
  21572. grep -v '^ *+' conftest.er1 >conftest.err
  21573. rm -f conftest.er1
  21574. cat conftest.err >&5
  21575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21576. (exit $ac_status); } &&
  21577. { ac_try='test -z "$ac_c_werror_flag"
  21578. || test ! -s conftest.err'
  21579. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21580. (eval $ac_try) 2>&5
  21581. ac_status=$?
  21582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21583. (exit $ac_status); }; } &&
  21584. { ac_try='test -s conftest$ac_exeext'
  21585. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21586. (eval $ac_try) 2>&5
  21587. ac_status=$?
  21588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21589. (exit $ac_status); }; }; then
  21590. ac_cv_func_inet_pton=yes
  21591. else
  21592. echo "$as_me: failed program was:" >&5
  21593. sed 's/^/| /' conftest.$ac_ext >&5
  21594. ac_cv_func_inet_pton=no
  21595. fi
  21596. rm -f conftest.err conftest.$ac_objext \
  21597. conftest$ac_exeext conftest.$ac_ext
  21598. fi
  21599. echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  21600. echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
  21601. if test $ac_cv_func_inet_pton = yes; then
  21602. cat >>confdefs.h <<\_ACEOF
  21603. #define HAVE_INET_PTON
  21604. _ACEOF
  21605. inet_pton=yes
  21606. else
  21607. inet_pton=no
  21608. fi
  21609. echo "$as_me:$LINENO: checking for inet_ntop" >&5
  21610. echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
  21611. if test "${ac_cv_func_inet_ntop+set}" = set; then
  21612. echo $ECHO_N "(cached) $ECHO_C" >&6
  21613. else
  21614. cat >conftest.$ac_ext <<_ACEOF
  21615. /* confdefs.h. */
  21616. _ACEOF
  21617. cat confdefs.h >>conftest.$ac_ext
  21618. cat >>conftest.$ac_ext <<_ACEOF
  21619. /* end confdefs.h. */
  21620. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  21621. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21622. #define inet_ntop innocuous_inet_ntop
  21623. /* System header to define __stub macros and hopefully few prototypes,
  21624. which can conflict with char inet_ntop (); below.
  21625. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21626. <limits.h> exists even on freestanding compilers. */
  21627. #ifdef __STDC__
  21628. # include <limits.h>
  21629. #else
  21630. # include <assert.h>
  21631. #endif
  21632. #undef inet_ntop
  21633. /* Override any gcc2 internal prototype to avoid an error. */
  21634. #ifdef __cplusplus
  21635. extern "C"
  21636. {
  21637. #endif
  21638. /* We use char because int might match the return type of a gcc2
  21639. builtin and then its argument prototype would still apply. */
  21640. char inet_ntop ();
  21641. /* The GNU C library defines this for functions which it implements
  21642. to always fail with ENOSYS. Some functions are actually named
  21643. something starting with __ and the normal name is an alias. */
  21644. #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
  21645. choke me
  21646. #else
  21647. char (*f) () = inet_ntop;
  21648. #endif
  21649. #ifdef __cplusplus
  21650. }
  21651. #endif
  21652. int
  21653. main ()
  21654. {
  21655. return f != inet_ntop;
  21656. ;
  21657. return 0;
  21658. }
  21659. _ACEOF
  21660. rm -f conftest.$ac_objext conftest$ac_exeext
  21661. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21662. (eval $ac_link) 2>conftest.er1
  21663. ac_status=$?
  21664. grep -v '^ *+' conftest.er1 >conftest.err
  21665. rm -f conftest.er1
  21666. cat conftest.err >&5
  21667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21668. (exit $ac_status); } &&
  21669. { ac_try='test -z "$ac_c_werror_flag"
  21670. || test ! -s conftest.err'
  21671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21672. (eval $ac_try) 2>&5
  21673. ac_status=$?
  21674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21675. (exit $ac_status); }; } &&
  21676. { ac_try='test -s conftest$ac_exeext'
  21677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21678. (eval $ac_try) 2>&5
  21679. ac_status=$?
  21680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21681. (exit $ac_status); }; }; then
  21682. ac_cv_func_inet_ntop=yes
  21683. else
  21684. echo "$as_me: failed program was:" >&5
  21685. sed 's/^/| /' conftest.$ac_ext >&5
  21686. ac_cv_func_inet_ntop=no
  21687. fi
  21688. rm -f conftest.err conftest.$ac_objext \
  21689. conftest$ac_exeext conftest.$ac_ext
  21690. fi
  21691. echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  21692. echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
  21693. if test $ac_cv_func_inet_ntop = yes; then
  21694. cat >>confdefs.h <<\_ACEOF
  21695. #define HAVE_INET_NTOP
  21696. _ACEOF
  21697. inet_ntop=yes
  21698. else
  21699. inet_ntop=no
  21700. fi
  21701. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  21702. { { echo "$as_me:$LINENO: error: We need either inet_ntop or inet_pton" >&5
  21703. echo "$as_me: error: We need either inet_ntop or inet_pton" >&2;}
  21704. { (exit 1); exit 1; }; }
  21705. fi
  21706. if test "$inet_aton" = "no" ; then
  21707. { { echo "$as_me:$LINENO: error: We need inet_aton" >&5
  21708. echo "$as_me: error: We need inet_aton" >&2;}
  21709. { (exit 1); exit 1; }; }
  21710. fi
  21711. echo "$as_me:$LINENO: checking for inet_addr" >&5
  21712. echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
  21713. if test "${ac_cv_func_inet_addr+set}" = set; then
  21714. echo $ECHO_N "(cached) $ECHO_C" >&6
  21715. else
  21716. cat >conftest.$ac_ext <<_ACEOF
  21717. /* confdefs.h. */
  21718. _ACEOF
  21719. cat confdefs.h >>conftest.$ac_ext
  21720. cat >>conftest.$ac_ext <<_ACEOF
  21721. /* end confdefs.h. */
  21722. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  21723. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21724. #define inet_addr innocuous_inet_addr
  21725. /* System header to define __stub macros and hopefully few prototypes,
  21726. which can conflict with char inet_addr (); below.
  21727. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21728. <limits.h> exists even on freestanding compilers. */
  21729. #ifdef __STDC__
  21730. # include <limits.h>
  21731. #else
  21732. # include <assert.h>
  21733. #endif
  21734. #undef inet_addr
  21735. /* Override any gcc2 internal prototype to avoid an error. */
  21736. #ifdef __cplusplus
  21737. extern "C"
  21738. {
  21739. #endif
  21740. /* We use char because int might match the return type of a gcc2
  21741. builtin and then its argument prototype would still apply. */
  21742. char inet_addr ();
  21743. /* The GNU C library defines this for functions which it implements
  21744. to always fail with ENOSYS. Some functions are actually named
  21745. something starting with __ and the normal name is an alias. */
  21746. #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
  21747. choke me
  21748. #else
  21749. char (*f) () = inet_addr;
  21750. #endif
  21751. #ifdef __cplusplus
  21752. }
  21753. #endif
  21754. int
  21755. main ()
  21756. {
  21757. return f != inet_addr;
  21758. ;
  21759. return 0;
  21760. }
  21761. _ACEOF
  21762. rm -f conftest.$ac_objext conftest$ac_exeext
  21763. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21764. (eval $ac_link) 2>conftest.er1
  21765. ac_status=$?
  21766. grep -v '^ *+' conftest.er1 >conftest.err
  21767. rm -f conftest.er1
  21768. cat conftest.err >&5
  21769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21770. (exit $ac_status); } &&
  21771. { ac_try='test -z "$ac_c_werror_flag"
  21772. || test ! -s conftest.err'
  21773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21774. (eval $ac_try) 2>&5
  21775. ac_status=$?
  21776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21777. (exit $ac_status); }; } &&
  21778. { ac_try='test -s conftest$ac_exeext'
  21779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21780. (eval $ac_try) 2>&5
  21781. ac_status=$?
  21782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21783. (exit $ac_status); }; }; then
  21784. ac_cv_func_inet_addr=yes
  21785. else
  21786. echo "$as_me: failed program was:" >&5
  21787. sed 's/^/| /' conftest.$ac_ext >&5
  21788. ac_cv_func_inet_addr=no
  21789. fi
  21790. rm -f conftest.err conftest.$ac_objext \
  21791. conftest$ac_exeext conftest.$ac_ext
  21792. fi
  21793. echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  21794. echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
  21795. if test $ac_cv_func_inet_addr = yes; then
  21796. cat >>confdefs.h <<\_ACEOF
  21797. #define HAVE_INET_ADDR
  21798. _ACEOF
  21799. inet_addr=yes
  21800. else
  21801. inet_addr=no
  21802. fi
  21803. if test x$inet_addr = no ; then
  21804. { { echo "$as_me:$LINENO: error: We need inet_addr. See bug 26" >&5
  21805. echo "$as_me: error: We need inet_addr. See bug 26" >&2;}
  21806. { (exit 1); exit 1; }; }
  21807. fi
  21808. foundnet=no
  21809. trynetdir=/usr/local
  21810. echo "$as_me:$LINENO: checking for libnet" >&5
  21811. echo $ECHO_N "checking for libnet... $ECHO_C" >&6
  21812. # Check whether --with-libnet or --without-libnet was given.
  21813. if test "${with_libnet+set}" = set; then
  21814. withval="$with_libnet"
  21815. trynetdir=$withval
  21816. fi;
  21817. for testdir in $trynetdir /usr/local /usr ; do
  21818. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  21819. LNETINC="${testdir}/include/libnet.h"
  21820. LNETINCDIR="$testdir/include"
  21821. if test $dynamic_link = yes; then
  21822. LNETLIB="-L${testdir}/lib -lnet"
  21823. elif test -f "${testdir}/lib64/libnet.a" ; then
  21824. LNETLIB="${testdir}/lib64/libnet.a"
  21825. else
  21826. LNETLIB="${testdir}/lib/libnet.a"
  21827. fi
  21828. foundnet=$testdir
  21829. fi
  21830. done
  21831. if test $foundnet = no ; then
  21832. echo "$as_me:$LINENO: result: no" >&5
  21833. echo "${ECHO_T}no" >&6
  21834. { { echo "$as_me:$LINENO: error: libnet not found" >&5
  21835. echo "$as_me: error: libnet not found" >&2;}
  21836. { (exit 1); exit 1; }; }
  21837. else
  21838. echo "$as_me:$LINENO: result: $foundnet" >&5
  21839. echo "${ECHO_T}$foundnet" >&6
  21840. fi
  21841. OLDLIBS="$LIBS"
  21842. OLDCFLAGS="$CFLAGS"
  21843. LIBS="$LNETLIB"
  21844. CFLAGS="$CFLAGS -I$LNETINCDIR"
  21845. echo "$as_me:$LINENO: checking for libnet version" >&5
  21846. echo $ECHO_N "checking for libnet version... $ECHO_C" >&6
  21847. if test "$cross_compiling" = yes; then
  21848. libnet_ver_10=no
  21849. else
  21850. cat >conftest.$ac_ext <<_ACEOF
  21851. /* confdefs.h. */
  21852. _ACEOF
  21853. cat confdefs.h >>conftest.$ac_ext
  21854. cat >>conftest.$ac_ext <<_ACEOF
  21855. /* end confdefs.h. */
  21856. #include <string.h>
  21857. #define LIBNET_LIL_ENDIAN 1
  21858. #include "$LNETINC"
  21859. #define LIB_TEST "1.0"
  21860. /*
  21861. * simple proggy to test the version of libnet
  21862. * returns zero if it's 1.0.x
  21863. * or one otherwise
  21864. */
  21865. int
  21866. main (int argc, char *argv[])
  21867. {
  21868. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  21869. exit(0);
  21870. exit(1);
  21871. }
  21872. _ACEOF
  21873. rm -f conftest$ac_exeext
  21874. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21875. (eval $ac_link) 2>&5
  21876. ac_status=$?
  21877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21878. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21880. (eval $ac_try) 2>&5
  21881. ac_status=$?
  21882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21883. (exit $ac_status); }; }; then
  21884. libnet_ver_10=yes
  21885. echo "$as_me:$LINENO: result: 1.0.x" >&5
  21886. echo "${ECHO_T}1.0.x" >&6
  21887. else
  21888. echo "$as_me: program exited with status $ac_status" >&5
  21889. echo "$as_me: failed program was:" >&5
  21890. sed 's/^/| /' conftest.$ac_ext >&5
  21891. ( exit $ac_status )
  21892. libnet_ver_10=no
  21893. fi
  21894. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21895. fi
  21896. if test "$cross_compiling" = yes; then
  21897. libnet_ver_11=no
  21898. else
  21899. cat >conftest.$ac_ext <<_ACEOF
  21900. /* confdefs.h. */
  21901. _ACEOF
  21902. cat confdefs.h >>conftest.$ac_ext
  21903. cat >>conftest.$ac_ext <<_ACEOF
  21904. /* end confdefs.h. */
  21905. #include <string.h>
  21906. #include "$LNETINC"
  21907. #define LIB_TEST "1.1"
  21908. /*
  21909. * simple proggy to test the version of libnet
  21910. * returns zero if it's 1.0.x
  21911. * or one otherwise
  21912. */
  21913. int
  21914. main (int argc, char *argv[])
  21915. {
  21916. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  21917. exit(0);
  21918. exit(1);
  21919. }
  21920. _ACEOF
  21921. rm -f conftest$ac_exeext
  21922. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21923. (eval $ac_link) 2>&5
  21924. ac_status=$?
  21925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21926. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21928. (eval $ac_try) 2>&5
  21929. ac_status=$?
  21930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21931. (exit $ac_status); }; }; then
  21932. libnet_ver_11=yes
  21933. echo "$as_me:$LINENO: result: 1.1.x" >&5
  21934. echo "${ECHO_T}1.1.x" >&6
  21935. else
  21936. echo "$as_me: program exited with status $ac_status" >&5
  21937. echo "$as_me: failed program was:" >&5
  21938. sed 's/^/| /' conftest.$ac_ext >&5
  21939. ( exit $ac_status )
  21940. libnet_ver_11=no
  21941. fi
  21942. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21943. fi
  21944. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  21945. echo "$as_me:$LINENO: result: unknown" >&5
  21946. echo "${ECHO_T}unknown" >&6
  21947. { { echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  21948. echo "$as_me: error: Unable to determine version of libnet" >&2;}
  21949. { (exit 1); exit 1; }; }
  21950. fi
  21951. if test $libnet_ver_10 = yes ; then
  21952. { { echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  21953. Please upgrade to 1.1.0 or better" >&5
  21954. echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  21955. Please upgrade to 1.1.0 or better" >&2;}
  21956. { (exit 1); exit 1; }; }
  21957. fi
  21958. echo "$as_me:$LINENO: checking for working libnet_checksum()" >&5
  21959. echo $ECHO_N "checking for working libnet_checksum()... $ECHO_C" >&6
  21960. if test "$cross_compiling" = yes; then
  21961. libnet_ver_113=no
  21962. else
  21963. cat >conftest.$ac_ext <<_ACEOF
  21964. /* confdefs.h. */
  21965. _ACEOF
  21966. cat confdefs.h >>conftest.$ac_ext
  21967. cat >>conftest.$ac_ext <<_ACEOF
  21968. /* end confdefs.h. */
  21969. #include <string.h>
  21970. #include "$LNETINC"
  21971. #define LIB_TEST "1.1.3"
  21972. /*
  21973. * simple proggy to test the version of libnet
  21974. * returns zero if it's < 1.1.3 which has the checksum fix
  21975. * or one otherwise
  21976. */
  21977. int
  21978. main (int argc, char *argv[])
  21979. {
  21980. if (strncmp(LIB_TEST, LIBNET_VERSION, 5) <= 0)
  21981. exit(0);
  21982. exit(1);
  21983. }
  21984. _ACEOF
  21985. rm -f conftest$ac_exeext
  21986. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21987. (eval $ac_link) 2>&5
  21988. ac_status=$?
  21989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21990. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21992. (eval $ac_try) 2>&5
  21993. ac_status=$?
  21994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21995. (exit $ac_status); }; }; then
  21996. libnet_ver_113=yes
  21997. else
  21998. echo "$as_me: program exited with status $ac_status" >&5
  21999. echo "$as_me: failed program was:" >&5
  22000. sed 's/^/| /' conftest.$ac_ext >&5
  22001. ( exit $ac_status )
  22002. libnet_ver_113=no
  22003. fi
  22004. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22005. fi
  22006. if test $libnet_ver_113 = no ; then
  22007. echo "$as_me:$LINENO: result: no" >&5
  22008. echo "${ECHO_T}no" >&6
  22009. { echo "$as_me:$LINENO: WARNING: You should upgrade to libnet 1.1.3 or better if you
  22010. want to modify packets" >&5
  22011. echo "$as_me: WARNING: You should upgrade to libnet 1.1.3 or better if you
  22012. want to modify packets" >&2;}
  22013. else
  22014. echo "$as_me:$LINENO: result: yes" >&5
  22015. echo "${ECHO_T}yes" >&6
  22016. fi
  22017. LIBS="$OLDLIBS"
  22018. CFLAGS="$OLDCFLAGS"
  22019. foundpcap=no
  22020. trypcapdir=/usr/local
  22021. echo "$as_me:$LINENO: checking for libpcap" >&5
  22022. echo $ECHO_N "checking for libpcap... $ECHO_C" >&6
  22023. # Check whether --with-libpcap or --without-libpcap was given.
  22024. if test "${with_libpcap+set}" = set; then
  22025. withval="$with_libpcap"
  22026. trypcapdir=$withval
  22027. fi;
  22028. for testdir in $trypcapdir /usr/local /usr ; do
  22029. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  22030. LPCAPINC="${testdir}/include/pcap.h"
  22031. LPCAPINCDIR="${testdir}/include"
  22032. if test $dynamic_link = yes; then
  22033. LPCAPLIB="-L${testdir}/lib -lpcap"
  22034. elif test -f "${testdir}/lib64/libpcap.a" ; then
  22035. LPCAPLIB="${testdir}/lib64/libpcap.a"
  22036. else
  22037. LPCAPLIB="${testdir}/lib/libpcap.a"
  22038. fi
  22039. foundpcap=$testdir
  22040. fi
  22041. done
  22042. if test $foundpcap = no ; then
  22043. echo "$as_me:$LINENO: result: no" >&5
  22044. echo "${ECHO_T}no" >&6
  22045. { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  22046. echo "$as_me: error: libpcap not found" >&2;}
  22047. { (exit 1); exit 1; }; }
  22048. else
  22049. echo "$as_me:$LINENO: result: $foundpcap" >&5
  22050. echo "${ECHO_T}$foundpcap" >&6
  22051. fi
  22052. OLDLIBS="$LIBS"
  22053. OLDCFLAGS="$CFLAGS"
  22054. LIBS="$LPCAPLIB"
  22055. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  22056. echo "$as_me:$LINENO: checking for libpcap version" >&5
  22057. echo $ECHO_N "checking for libpcap version... $ECHO_C" >&6
  22058. if test "$cross_compiling" = yes; then
  22059. libpcap_ver=no
  22060. else
  22061. cat >conftest.$ac_ext <<_ACEOF
  22062. /* confdefs.h. */
  22063. _ACEOF
  22064. cat confdefs.h >>conftest.$ac_ext
  22065. cat >>conftest.$ac_ext <<_ACEOF
  22066. /* end confdefs.h. */
  22067. #include <string.h>
  22068. #include <stdlib.h>
  22069. #include <stdio.h>
  22070. #include "$LPCAPINC"
  22071. #define PCAP_TEST "0.5"
  22072. /*
  22073. * simple proggy to test the version of libpcap
  22074. * returns zero if version >= 0.5
  22075. * or one otherwise
  22076. */
  22077. extern char pcap_version[];
  22078. int
  22079. main (int argc, char *argv[])
  22080. {
  22081. if (strncmp(pcap_version, PCAP_TEST, 3) >= 0)
  22082. exit(0);
  22083. exit(1);
  22084. }
  22085. _ACEOF
  22086. rm -f conftest$ac_exeext
  22087. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22088. (eval $ac_link) 2>&5
  22089. ac_status=$?
  22090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22091. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22093. (eval $ac_try) 2>&5
  22094. ac_status=$?
  22095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22096. (exit $ac_status); }; }; then
  22097. libpcap_ver=yes
  22098. echo "$as_me:$LINENO: result: >= 0.5" >&5
  22099. echo "${ECHO_T}>= 0.5" >&6
  22100. else
  22101. echo "$as_me: program exited with status $ac_status" >&5
  22102. echo "$as_me: failed program was:" >&5
  22103. sed 's/^/| /' conftest.$ac_ext >&5
  22104. ( exit $ac_status )
  22105. libpcap_ver=no
  22106. echo "$as_me:$LINENO: result: < 0.5" >&5
  22107. echo "${ECHO_T}< 0.5" >&6
  22108. fi
  22109. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22110. fi
  22111. if test $libpcap_ver = no ; then
  22112. { { echo "$as_me:$LINENO: error: Libpcap versions < 0.5 are not supported.
  22113. Please upgrade to version 0.5 or better" >&5
  22114. echo "$as_me: error: Libpcap versions < 0.5 are not supported.
  22115. Please upgrade to version 0.5 or better" >&2;}
  22116. { (exit 1); exit 1; }; }
  22117. fi
  22118. echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  22119. echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
  22120. if test "$cross_compiling" = yes; then
  22121. have_dlt_to_desc=no
  22122. else
  22123. cat >conftest.$ac_ext <<_ACEOF
  22124. /* confdefs.h. */
  22125. _ACEOF
  22126. cat confdefs.h >>conftest.$ac_ext
  22127. cat >>conftest.$ac_ext <<_ACEOF
  22128. /* end confdefs.h. */
  22129. #include <stdio.h>
  22130. #include <stdlib.h>
  22131. #include <string.h>
  22132. #include "$LPCAPINC"
  22133. int
  22134. main(int argc, char *argv[]) {
  22135. pcap_datalink_val_to_description(1);
  22136. exit(0);
  22137. }
  22138. _ACEOF
  22139. rm -f conftest$ac_exeext
  22140. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22141. (eval $ac_link) 2>&5
  22142. ac_status=$?
  22143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22144. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22146. (eval $ac_try) 2>&5
  22147. ac_status=$?
  22148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22149. (exit $ac_status); }; }; then
  22150. have_dlt_to_desc=yes
  22151. echo "$as_me:$LINENO: result: yes" >&5
  22152. echo "${ECHO_T}yes" >&6
  22153. else
  22154. echo "$as_me: program exited with status $ac_status" >&5
  22155. echo "$as_me: failed program was:" >&5
  22156. sed 's/^/| /' conftest.$ac_ext >&5
  22157. ( exit $ac_status )
  22158. have_dlt_to_desc=no
  22159. echo "$as_me:$LINENO: result: no" >&5
  22160. echo "${ECHO_T}no" >&6
  22161. fi
  22162. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22163. fi
  22164. if test $have_dlt_to_desc = yes ; then
  22165. cat >>confdefs.h <<\_ACEOF
  22166. #define HAVE_DLT_VAL_TO_DESC
  22167. _ACEOF
  22168. fi
  22169. echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  22170. echo $ECHO_N "checking for DLT_LINUX_SLL in libpcap... $ECHO_C" >&6
  22171. cat >conftest.$ac_ext <<_ACEOF
  22172. /* confdefs.h. */
  22173. _ACEOF
  22174. cat confdefs.h >>conftest.$ac_ext
  22175. cat >>conftest.$ac_ext <<_ACEOF
  22176. /* end confdefs.h. */
  22177. #include "$LPCAPINC"
  22178. int
  22179. main ()
  22180. {
  22181. int foo;
  22182. foo = DLT_LINUX_SLL
  22183. ;
  22184. return 0;
  22185. }
  22186. _ACEOF
  22187. rm -f conftest.$ac_objext
  22188. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22189. (eval $ac_compile) 2>conftest.er1
  22190. ac_status=$?
  22191. grep -v '^ *+' conftest.er1 >conftest.err
  22192. rm -f conftest.er1
  22193. cat conftest.err >&5
  22194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22195. (exit $ac_status); } &&
  22196. { ac_try='test -z "$ac_c_werror_flag"
  22197. || test ! -s conftest.err'
  22198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22199. (eval $ac_try) 2>&5
  22200. ac_status=$?
  22201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22202. (exit $ac_status); }; } &&
  22203. { ac_try='test -s conftest.$ac_objext'
  22204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22205. (eval $ac_try) 2>&5
  22206. ac_status=$?
  22207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22208. (exit $ac_status); }; }; then
  22209. cat >>confdefs.h <<\_ACEOF
  22210. #define HAVE_DLT_LINUX_SLL
  22211. _ACEOF
  22212. echo "$as_me:$LINENO: result: yes" >&5
  22213. echo "${ECHO_T}yes" >&6
  22214. else
  22215. echo "$as_me: failed program was:" >&5
  22216. sed 's/^/| /' conftest.$ac_ext >&5
  22217. echo "$as_me:$LINENO: result: no" >&5
  22218. echo "${ECHO_T}no" >&6
  22219. fi
  22220. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22221. echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  22222. echo $ECHO_N "checking for DLT_C_HDLC in libpcap... $ECHO_C" >&6
  22223. cat >conftest.$ac_ext <<_ACEOF
  22224. /* confdefs.h. */
  22225. _ACEOF
  22226. cat confdefs.h >>conftest.$ac_ext
  22227. cat >>conftest.$ac_ext <<_ACEOF
  22228. /* end confdefs.h. */
  22229. #include "$LPCAPINC"
  22230. int
  22231. main ()
  22232. {
  22233. int foo;
  22234. foo = DLT_C_HDLC
  22235. ;
  22236. return 0;
  22237. }
  22238. _ACEOF
  22239. rm -f conftest.$ac_objext
  22240. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22241. (eval $ac_compile) 2>conftest.er1
  22242. ac_status=$?
  22243. grep -v '^ *+' conftest.er1 >conftest.err
  22244. rm -f conftest.er1
  22245. cat conftest.err >&5
  22246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22247. (exit $ac_status); } &&
  22248. { ac_try='test -z "$ac_c_werror_flag"
  22249. || test ! -s conftest.err'
  22250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22251. (eval $ac_try) 2>&5
  22252. ac_status=$?
  22253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22254. (exit $ac_status); }; } &&
  22255. { ac_try='test -s conftest.$ac_objext'
  22256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22257. (eval $ac_try) 2>&5
  22258. ac_status=$?
  22259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22260. (exit $ac_status); }; }; then
  22261. cat >>confdefs.h <<\_ACEOF
  22262. #define HAVE_DLT_C_HDLC
  22263. _ACEOF
  22264. echo "$as_me:$LINENO: result: yes" >&5
  22265. echo "${ECHO_T}yes" >&6
  22266. else
  22267. echo "$as_me: failed program was:" >&5
  22268. sed 's/^/| /' conftest.$ac_ext >&5
  22269. echo "$as_me:$LINENO: result: no" >&5
  22270. echo "${ECHO_T}no" >&6
  22271. fi
  22272. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22273. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  22274. echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  22275. echo $ECHO_N "checking for $PCAP_BPF_H_FILE... $ECHO_C" >&6
  22276. cat >conftest.$ac_ext <<_ACEOF
  22277. /* confdefs.h. */
  22278. _ACEOF
  22279. cat confdefs.h >>conftest.$ac_ext
  22280. cat >>conftest.$ac_ext <<_ACEOF
  22281. /* end confdefs.h. */
  22282. #include <sys/types.h>
  22283. #include <sys/time.h>
  22284. #include "$PCAP_BPF_H_FILE"
  22285. int
  22286. main ()
  22287. {
  22288. int foo;
  22289. foo = BPF_MAJOR_VERSION;
  22290. ;
  22291. return 0;
  22292. }
  22293. _ACEOF
  22294. rm -f conftest.$ac_objext
  22295. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22296. (eval $ac_compile) 2>conftest.er1
  22297. ac_status=$?
  22298. grep -v '^ *+' conftest.er1 >conftest.err
  22299. rm -f conftest.er1
  22300. cat conftest.err >&5
  22301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22302. (exit $ac_status); } &&
  22303. { ac_try='test -z "$ac_c_werror_flag"
  22304. || test ! -s conftest.err'
  22305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22306. (eval $ac_try) 2>&5
  22307. ac_status=$?
  22308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22309. (exit $ac_status); }; } &&
  22310. { ac_try='test -s conftest.$ac_objext'
  22311. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22312. (eval $ac_try) 2>&5
  22313. ac_status=$?
  22314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22315. (exit $ac_status); }; }; then
  22316. cat >>confdefs.h <<\_ACEOF
  22317. #define INCLUDE_PCAP_BPF_HEADER
  22318. _ACEOF
  22319. echo "$as_me:$LINENO: result: yes" >&5
  22320. echo "${ECHO_T}yes" >&6
  22321. else
  22322. echo "$as_me: failed program was:" >&5
  22323. sed 's/^/| /' conftest.$ac_ext >&5
  22324. echo "$as_me:$LINENO: result: no" >&5
  22325. echo "${ECHO_T}no" >&6
  22326. fi
  22327. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22328. LIBS="$OLDLIBS"
  22329. CFLAGS="$OLDCFLAGS"
  22330. pcapnav_ver=no
  22331. pcncfg=no
  22332. # Check whether --with-pcapnav-config or --without-pcapnav-config was given.
  22333. if test "${with_pcapnav_config+set}" = set; then
  22334. withval="$with_pcapnav_config"
  22335. echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  22336. echo $ECHO_N "checking for pcapnav-config... $ECHO_C" >&6
  22337. if test -x $withval ; then
  22338. pcncfg=$withval
  22339. echo "$as_me:$LINENO: result: $pcncfg" >&5
  22340. echo "${ECHO_T}$pcncfg" >&6
  22341. else
  22342. echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  22343. echo "${ECHO_T}Can't find pcapnav-config: disabling offset jump feature" >&6
  22344. fi
  22345. else
  22346. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  22347. set dummy pcapnav-config; ac_word=$2
  22348. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22349. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22350. if test "${ac_cv_path_pcncfg+set}" = set; then
  22351. echo $ECHO_N "(cached) $ECHO_C" >&6
  22352. else
  22353. case $pcncfg in
  22354. [\\/]* | ?:[\\/]*)
  22355. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  22356. ;;
  22357. *)
  22358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22359. for as_dir in $PATH
  22360. do
  22361. IFS=$as_save_IFS
  22362. test -z "$as_dir" && as_dir=.
  22363. for ac_exec_ext in '' $ac_executable_extensions; do
  22364. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22365. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  22366. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22367. break 2
  22368. fi
  22369. done
  22370. done
  22371. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  22372. ;;
  22373. esac
  22374. fi
  22375. pcncfg=$ac_cv_path_pcncfg
  22376. if test -n "$pcncfg"; then
  22377. echo "$as_me:$LINENO: result: $pcncfg" >&5
  22378. echo "${ECHO_T}$pcncfg" >&6
  22379. else
  22380. echo "$as_me:$LINENO: result: no" >&5
  22381. echo "${ECHO_T}no" >&6
  22382. fi
  22383. fi;
  22384. if test $pcncfg != no ; then
  22385. LNAVLIB=`$pcncfg --libs`
  22386. LNAV_CFLAGS=`$pcncfg --cflags`
  22387. PCAPNAV_VERSION=`$pcncfg --version`
  22388. cat >>confdefs.h <<_ACEOF
  22389. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  22390. _ACEOF
  22391. echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  22392. echo $ECHO_N "checking for libpcapnav version... $ECHO_C" >&6
  22393. if test "$cross_compiling" = yes; then
  22394. libpcapnav_ver=no
  22395. else
  22396. cat >conftest.$ac_ext <<_ACEOF
  22397. /* confdefs.h. */
  22398. _ACEOF
  22399. cat confdefs.h >>conftest.$ac_ext
  22400. cat >>conftest.$ac_ext <<_ACEOF
  22401. /* end confdefs.h. */
  22402. #include <string.h>
  22403. #define PCAPNAV_TEST "0.4"
  22404. /*
  22405. * simple proggy to test the version of libpcapnav
  22406. * returns zero if version >= 0.4
  22407. * or one otherwise
  22408. */
  22409. int
  22410. main (int argc, char *argv[])
  22411. {
  22412. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  22413. exit(0);
  22414. exit(1);
  22415. }
  22416. _ACEOF
  22417. rm -f conftest$ac_exeext
  22418. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22419. (eval $ac_link) 2>&5
  22420. ac_status=$?
  22421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22422. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22424. (eval $ac_try) 2>&5
  22425. ac_status=$?
  22426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22427. (exit $ac_status); }; }; then
  22428. libpcapnav_ver=yes
  22429. echo "$as_me:$LINENO: result: >= 0.4" >&5
  22430. echo "${ECHO_T}>= 0.4" >&6
  22431. else
  22432. echo "$as_me: program exited with status $ac_status" >&5
  22433. echo "$as_me: failed program was:" >&5
  22434. sed 's/^/| /' conftest.$ac_ext >&5
  22435. ( exit $ac_status )
  22436. libpcapnav_ver=no
  22437. echo "$as_me:$LINENO: result: < 0.4" >&5
  22438. echo "${ECHO_T}< 0.4" >&6
  22439. fi
  22440. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22441. fi
  22442. if test x$libpcapnav_ver = xno ; then
  22443. { echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  22444. Please upgrade to version 0.4 or better.
  22445. Disabling offset jump feature." >&5
  22446. echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  22447. Please upgrade to version 0.4 or better.
  22448. Disabling offset jump feature." >&2;}
  22449. else
  22450. cat >>confdefs.h <<\_ACEOF
  22451. #define HAVE_PCAPNAV
  22452. _ACEOF
  22453. fi
  22454. fi # checking pcapnav version
  22455. foundnids=no
  22456. trynidsdir=/usr/local
  22457. echo "$as_me:$LINENO: checking for libnids" >&5
  22458. echo $ECHO_N "checking for libnids... $ECHO_C" >&6
  22459. # Check whether --with-libnids or --without-libnids was given.
  22460. if test "${with_libnids+set}" = set; then
  22461. withval="$with_libnids"
  22462. trynidsdir=$withval
  22463. fi;
  22464. for testdir in $trynidsdir /usr/local /usr ; do
  22465. if test -f "${testdir}/include/nids.h" -a $foundnids = no ; then
  22466. LNIDSINC="${testdir}/include/nids.h"
  22467. LNIDSINCDIR="${testdir}/include"
  22468. LNIDSLIB="${testdir}/lib/libnids.a"
  22469. foundnids=$testdir
  22470. fi
  22471. done
  22472. if test $foundnids = no ; then
  22473. echo "$as_me:$LINENO: result: no" >&5
  22474. echo "${ECHO_T}no" >&6
  22475. { echo "$as_me:$LINENO: WARNING: libnids not found. We won't build flowreplay." >&5
  22476. echo "$as_me: WARNING: libnids not found. We won't build flowreplay." >&2;}
  22477. else
  22478. echo "$as_me:$LINENO: result: $foundnids" >&5
  22479. echo "${ECHO_T}$foundnids" >&6
  22480. cat >>confdefs.h <<\_ACEOF
  22481. #define HAVE_LIBNIDS
  22482. _ACEOF
  22483. fi
  22484. if test ${foundnids} != no ; then
  22485. HAVE_LIBNIDS_TRUE=
  22486. HAVE_LIBNIDS_FALSE='#'
  22487. else
  22488. HAVE_LIBNIDS_TRUE='#'
  22489. HAVE_LIBNIDS_FALSE=
  22490. fi
  22491. echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  22492. echo $ECHO_N "checking for requires strict byte alignment... $ECHO_C" >&6
  22493. if test "${unaligned_fail+set}" = set; then
  22494. echo $ECHO_N "(cached) $ECHO_C" >&6
  22495. else
  22496. case "$host_cpu" in
  22497. # XXX: should also check that they don't do weird things (like on arm)
  22498. alpha*|arm*|hp*|mips*|sparc*|ia64)
  22499. unaligned_fail=yes
  22500. ;;
  22501. *)
  22502. cat >conftest.c <<EOF
  22503. #include <sys/types.h>
  22504. #include <sys/wait.h>
  22505. #include <stdio.h>
  22506. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  22507. main() {
  22508. unsigned int i;
  22509. pid_t pid;
  22510. int status;
  22511. /* avoid "core dumped" message */
  22512. pid = fork();
  22513. if (pid < 0)
  22514. exit(2);
  22515. if (pid > 0) {
  22516. /* parent */
  22517. pid = waitpid(pid, &status, 0);
  22518. if (pid < 0)
  22519. exit(3);
  22520. exit(!WIFEXITED(status));
  22521. }
  22522. /* child */
  22523. i = *(unsigned int *)&a[1];
  22524. printf("%d\n", i);
  22525. exit(0);
  22526. }
  22527. EOF
  22528. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  22529. conftest.c $LIBS >/dev/null 2>&1
  22530. if test ! -x conftest ; then
  22531. unaligned_fail=yes
  22532. else
  22533. ./conftest >conftest.out
  22534. if test ! -s conftest.out ; then
  22535. unaligned_fail=yes
  22536. else
  22537. unaligned_fail=no
  22538. fi
  22539. fi
  22540. rm -f conftest* core core.conftest
  22541. ;;
  22542. esac
  22543. fi
  22544. echo "$as_me:$LINENO: result: $unaligned_fail" >&5
  22545. echo "${ECHO_T}$unaligned_fail" >&6
  22546. if test $unaligned_fail = yes ; then
  22547. cat >>confdefs.h <<\_ACEOF
  22548. #define FORCE_ALIGN 1
  22549. _ACEOF
  22550. fi
  22551. td=no
  22552. # Check whether --with-tcpdump or --without-tcpdump was given.
  22553. if test "${with_tcpdump+set}" = set; then
  22554. withval="$with_tcpdump"
  22555. if test -x $withval ; then
  22556. td=$withval
  22557. echo "$as_me:$LINENO: result: Using tcpdump in $td" >&5
  22558. echo "${ECHO_T}Using tcpdump in $td" >&6
  22559. else
  22560. echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  22561. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6
  22562. fi
  22563. else
  22564. # Extract the first word of "tcpdump", so it can be a program name with args.
  22565. set dummy tcpdump; ac_word=$2
  22566. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22567. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22568. if test "${ac_cv_path_td+set}" = set; then
  22569. echo $ECHO_N "(cached) $ECHO_C" >&6
  22570. else
  22571. case $td in
  22572. [\\/]* | ?:[\\/]*)
  22573. ac_cv_path_td="$td" # Let the user override the test with a path.
  22574. ;;
  22575. *)
  22576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22577. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  22578. for as_dir in $as_dummy
  22579. do
  22580. IFS=$as_save_IFS
  22581. test -z "$as_dir" && as_dir=.
  22582. for ac_exec_ext in '' $ac_executable_extensions; do
  22583. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22584. ac_cv_path_td="$as_dir/$ac_word$ac_exec_ext"
  22585. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22586. break 2
  22587. fi
  22588. done
  22589. done
  22590. test -z "$ac_cv_path_td" && ac_cv_path_td=""no""
  22591. ;;
  22592. esac
  22593. fi
  22594. td=$ac_cv_path_td
  22595. if test -n "$td"; then
  22596. echo "$as_me:$LINENO: result: $td" >&5
  22597. echo "${ECHO_T}$td" >&6
  22598. else
  22599. echo "$as_me:$LINENO: result: no" >&5
  22600. echo "${ECHO_T}no" >&6
  22601. fi
  22602. fi;
  22603. if test "$td" = "no"; then
  22604. { echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  22605. Disabling verbose reporting." >&5
  22606. echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  22607. Disabling verbose reporting." >&2;}
  22608. else
  22609. cat >>confdefs.h <<\_ACEOF
  22610. #define HAVE_TCPDUMP
  22611. _ACEOF
  22612. cat >>confdefs.h <<_ACEOF
  22613. #define TCPDUMP_BINARY "$td"
  22614. _ACEOF
  22615. fi
  22616. echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  22617. echo $ECHO_N "checking for 'make test' profile... $ECHO_C" >&6
  22618. if test "$host" != "$build" ; then
  22619. { echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  22620. echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  22621. fi
  22622. # Check whether --with-testnic or --without-testnic was given.
  22623. if test "${with_testnic+set}" = set; then
  22624. withval="$with_testnic"
  22625. nic1=$withval
  22626. nic2=$withval
  22627. echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  22628. echo "${ECHO_T}Using --with-testnic=$withval" >&6
  22629. else
  22630. case $host in
  22631. *-*-linux*)
  22632. nic1=eth0
  22633. nic2=eth0
  22634. echo "$as_me:$LINENO: result: Linux" >&5
  22635. echo "${ECHO_T}Linux" >&6
  22636. ;;
  22637. *-*-solaris*)
  22638. nic1=hme0
  22639. nic2=hme0
  22640. echo "$as_me:$LINENO: result: Solaris" >&5
  22641. echo "${ECHO_T}Solaris" >&6
  22642. ;;
  22643. *-*-sunos*)
  22644. nic1=hme0
  22645. nic2=hme0
  22646. echo "$as_me:$LINENO: result: SunOS" >&5
  22647. echo "${ECHO_T}SunOS" >&6
  22648. ;;
  22649. powerpc-apple-darwin*)
  22650. nic1=en0
  22651. nic2=en0
  22652. echo "$as_me:$LINENO: result: Apple OS X" >&5
  22653. echo "${ECHO_T}Apple OS X" >&6
  22654. ;;
  22655. *-*-openbsd*)
  22656. nic1=xl0
  22657. nic2=xl0
  22658. echo "$as_me:$LINENO: result: OpenBSD" >&5
  22659. echo "${ECHO_T}OpenBSD" >&6
  22660. ;;
  22661. *)
  22662. echo "$as_me:$LINENO: result: $host is unknown!
  22663. Please use --with-nictest to select an interface for 'make test'" >&5
  22664. echo "${ECHO_T}$host is unknown!
  22665. Please use --with-nictest to select an interface for 'make test'" >&6
  22666. ;;
  22667. esac
  22668. fi;
  22669. # Check whether --with-testnic2 or --without-testnic2 was given.
  22670. if test "${with_testnic2+set}" = set; then
  22671. withval="$with_testnic2"
  22672. nic2=$withval
  22673. fi;
  22674. { echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  22675. echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  22676. { echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  22677. echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  22678. NEED_LIBOPTS_DIR=''
  22679. LIBOPTS_DIR=libopts
  22680. # Check whether --enable-local-libopts or --disable-local-libopts was given.
  22681. if test "${enable_local_libopts+set}" = set; then
  22682. enableval="$enable_local_libopts"
  22683. if test x$enableval = xyes ; then
  22684. { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  22685. echo "$as_me: Using supplied libopts tearoff" >&6;}
  22686. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  22687. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  22688. NEED_LIBOPTS_DIR=true
  22689. fi
  22690. fi;
  22691. if test -z "${NEED_LIBOPTS_DIR}" ; then
  22692. echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  22693. echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6
  22694. # Check whether --with-autoopts-config or --without-autoopts-config was given.
  22695. if test "${with_autoopts_config+set}" = set; then
  22696. withval="$with_autoopts_config"
  22697. lo_cv_with_autoopts_config=${with_autoopts_config}
  22698. else
  22699. echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  22700. echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6
  22701. if test "${lo_cv_with_autoopts_config+set}" = set; then
  22702. echo $ECHO_N "(cached) $ECHO_C" >&6
  22703. else
  22704. if autoopts-config --help 2>/dev/null 1>&2
  22705. then lo_cv_with_autoopts_config=autoopts-config
  22706. elif libopts-config --help 2>/dev/null 1>&2
  22707. then lo_cv_with_autoopts_config=libopts-config
  22708. else lo_cv_with_autoopts_config=no ; fi
  22709. fi
  22710. echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  22711. echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6
  22712. fi; # end of AC_ARG_WITH
  22713. if test "${lo_cv_test_autoopts+set}" = set; then
  22714. echo $ECHO_N "(cached) $ECHO_C" >&6
  22715. else
  22716. if test -z "${lo_cv_with_autoopts_config}" \
  22717. -o X"${lo_cv_with_autoopts_config}" = Xno
  22718. then
  22719. if autoopts-config --help 2>/dev/null 1>&2
  22720. then lo_cv_with_autoopts_config=autoopts-config
  22721. elif libopts-config --help 2>/dev/null 1>&2
  22722. then lo_cv_with_autoopts_config=libopts-config
  22723. else lo_cv_with_autoopts_config=false ; fi
  22724. fi
  22725. lo_cv_test_autoopts=`
  22726. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  22727. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  22728. then lo_cv_test_autoopts=no ; fi
  22729. fi
  22730. # end of CACHE_VAL
  22731. echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  22732. echo "${ECHO_T}${lo_cv_test_autoopts}" >&6
  22733. if test "X${lo_cv_test_autoopts}" != Xno
  22734. then
  22735. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  22736. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  22737. else
  22738. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  22739. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  22740. NEED_LIBOPTS_DIR=true
  22741. fi
  22742. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  22743. if test -n "${NEED_LIBOPTS_DIR}"; then
  22744. NEED_LIBOPTS_TRUE=
  22745. NEED_LIBOPTS_FALSE='#'
  22746. else
  22747. NEED_LIBOPTS_TRUE='#'
  22748. NEED_LIBOPTS_FALSE=
  22749. fi
  22750. LIBOPTS_DIR=libopts
  22751. ac_config_files="$ac_config_files libopts/Makefile"
  22752. if test -n "${NEED_LIBOPTS_DIR}" ; then
  22753. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  22754. # =================
  22755. # AC_HEADER_STDC
  22756. # =================
  22757. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  22758. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  22759. if test "${ac_cv_header_stdc+set}" = set; then
  22760. echo $ECHO_N "(cached) $ECHO_C" >&6
  22761. else
  22762. cat >conftest.$ac_ext <<_ACEOF
  22763. /* confdefs.h. */
  22764. _ACEOF
  22765. cat confdefs.h >>conftest.$ac_ext
  22766. cat >>conftest.$ac_ext <<_ACEOF
  22767. /* end confdefs.h. */
  22768. #include <stdlib.h>
  22769. #include <stdarg.h>
  22770. #include <string.h>
  22771. #include <float.h>
  22772. int
  22773. main ()
  22774. {
  22775. ;
  22776. return 0;
  22777. }
  22778. _ACEOF
  22779. rm -f conftest.$ac_objext
  22780. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22781. (eval $ac_compile) 2>conftest.er1
  22782. ac_status=$?
  22783. grep -v '^ *+' conftest.er1 >conftest.err
  22784. rm -f conftest.er1
  22785. cat conftest.err >&5
  22786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22787. (exit $ac_status); } &&
  22788. { ac_try='test -z "$ac_c_werror_flag"
  22789. || test ! -s conftest.err'
  22790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22791. (eval $ac_try) 2>&5
  22792. ac_status=$?
  22793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22794. (exit $ac_status); }; } &&
  22795. { ac_try='test -s conftest.$ac_objext'
  22796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22797. (eval $ac_try) 2>&5
  22798. ac_status=$?
  22799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22800. (exit $ac_status); }; }; then
  22801. ac_cv_header_stdc=yes
  22802. else
  22803. echo "$as_me: failed program was:" >&5
  22804. sed 's/^/| /' conftest.$ac_ext >&5
  22805. ac_cv_header_stdc=no
  22806. fi
  22807. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22808. if test $ac_cv_header_stdc = yes; then
  22809. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  22810. cat >conftest.$ac_ext <<_ACEOF
  22811. /* confdefs.h. */
  22812. _ACEOF
  22813. cat confdefs.h >>conftest.$ac_ext
  22814. cat >>conftest.$ac_ext <<_ACEOF
  22815. /* end confdefs.h. */
  22816. #include <string.h>
  22817. _ACEOF
  22818. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22819. $EGREP "memchr" >/dev/null 2>&1; then
  22820. :
  22821. else
  22822. ac_cv_header_stdc=no
  22823. fi
  22824. rm -f conftest*
  22825. fi
  22826. if test $ac_cv_header_stdc = yes; then
  22827. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  22828. cat >conftest.$ac_ext <<_ACEOF
  22829. /* confdefs.h. */
  22830. _ACEOF
  22831. cat confdefs.h >>conftest.$ac_ext
  22832. cat >>conftest.$ac_ext <<_ACEOF
  22833. /* end confdefs.h. */
  22834. #include <stdlib.h>
  22835. _ACEOF
  22836. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22837. $EGREP "free" >/dev/null 2>&1; then
  22838. :
  22839. else
  22840. ac_cv_header_stdc=no
  22841. fi
  22842. rm -f conftest*
  22843. fi
  22844. if test $ac_cv_header_stdc = yes; then
  22845. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  22846. if test "$cross_compiling" = yes; then
  22847. :
  22848. else
  22849. cat >conftest.$ac_ext <<_ACEOF
  22850. /* confdefs.h. */
  22851. _ACEOF
  22852. cat confdefs.h >>conftest.$ac_ext
  22853. cat >>conftest.$ac_ext <<_ACEOF
  22854. /* end confdefs.h. */
  22855. #include <ctype.h>
  22856. #if ((' ' & 0x0FF) == 0x020)
  22857. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  22858. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  22859. #else
  22860. # define ISLOWER(c) \
  22861. (('a' <= (c) && (c) <= 'i') \
  22862. || ('j' <= (c) && (c) <= 'r') \
  22863. || ('s' <= (c) && (c) <= 'z'))
  22864. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  22865. #endif
  22866. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  22867. int
  22868. main ()
  22869. {
  22870. int i;
  22871. for (i = 0; i < 256; i++)
  22872. if (XOR (islower (i), ISLOWER (i))
  22873. || toupper (i) != TOUPPER (i))
  22874. exit(2);
  22875. exit (0);
  22876. }
  22877. _ACEOF
  22878. rm -f conftest$ac_exeext
  22879. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22880. (eval $ac_link) 2>&5
  22881. ac_status=$?
  22882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22883. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22885. (eval $ac_try) 2>&5
  22886. ac_status=$?
  22887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22888. (exit $ac_status); }; }; then
  22889. :
  22890. else
  22891. echo "$as_me: program exited with status $ac_status" >&5
  22892. echo "$as_me: failed program was:" >&5
  22893. sed 's/^/| /' conftest.$ac_ext >&5
  22894. ( exit $ac_status )
  22895. ac_cv_header_stdc=no
  22896. fi
  22897. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22898. fi
  22899. fi
  22900. fi
  22901. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  22902. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  22903. if test $ac_cv_header_stdc = yes; then
  22904. cat >>confdefs.h <<\_ACEOF
  22905. #define STDC_HEADERS 1
  22906. _ACEOF
  22907. fi
  22908. # =================
  22909. # AC_HEADER_DIRENT
  22910. # =================
  22911. ac_header_dirent=no
  22912. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  22913. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  22914. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  22915. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  22916. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22917. echo $ECHO_N "(cached) $ECHO_C" >&6
  22918. else
  22919. cat >conftest.$ac_ext <<_ACEOF
  22920. /* confdefs.h. */
  22921. _ACEOF
  22922. cat confdefs.h >>conftest.$ac_ext
  22923. cat >>conftest.$ac_ext <<_ACEOF
  22924. /* end confdefs.h. */
  22925. #include <sys/types.h>
  22926. #include <$ac_hdr>
  22927. int
  22928. main ()
  22929. {
  22930. if ((DIR *) 0)
  22931. return 0;
  22932. ;
  22933. return 0;
  22934. }
  22935. _ACEOF
  22936. rm -f conftest.$ac_objext
  22937. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22938. (eval $ac_compile) 2>conftest.er1
  22939. ac_status=$?
  22940. grep -v '^ *+' conftest.er1 >conftest.err
  22941. rm -f conftest.er1
  22942. cat conftest.err >&5
  22943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22944. (exit $ac_status); } &&
  22945. { ac_try='test -z "$ac_c_werror_flag"
  22946. || test ! -s conftest.err'
  22947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22948. (eval $ac_try) 2>&5
  22949. ac_status=$?
  22950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22951. (exit $ac_status); }; } &&
  22952. { ac_try='test -s conftest.$ac_objext'
  22953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22954. (eval $ac_try) 2>&5
  22955. ac_status=$?
  22956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22957. (exit $ac_status); }; }; then
  22958. eval "$as_ac_Header=yes"
  22959. else
  22960. echo "$as_me: failed program was:" >&5
  22961. sed 's/^/| /' conftest.$ac_ext >&5
  22962. eval "$as_ac_Header=no"
  22963. fi
  22964. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22965. fi
  22966. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22967. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22968. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22969. cat >>confdefs.h <<_ACEOF
  22970. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  22971. _ACEOF
  22972. ac_header_dirent=$ac_hdr; break
  22973. fi
  22974. done
  22975. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  22976. if test $ac_header_dirent = dirent.h; then
  22977. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  22978. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  22979. if test "${ac_cv_search_opendir+set}" = set; then
  22980. echo $ECHO_N "(cached) $ECHO_C" >&6
  22981. else
  22982. ac_func_search_save_LIBS=$LIBS
  22983. ac_cv_search_opendir=no
  22984. cat >conftest.$ac_ext <<_ACEOF
  22985. /* confdefs.h. */
  22986. _ACEOF
  22987. cat confdefs.h >>conftest.$ac_ext
  22988. cat >>conftest.$ac_ext <<_ACEOF
  22989. /* end confdefs.h. */
  22990. /* Override any gcc2 internal prototype to avoid an error. */
  22991. #ifdef __cplusplus
  22992. extern "C"
  22993. #endif
  22994. /* We use char because int might match the return type of a gcc2
  22995. builtin and then its argument prototype would still apply. */
  22996. char opendir ();
  22997. int
  22998. main ()
  22999. {
  23000. opendir ();
  23001. ;
  23002. return 0;
  23003. }
  23004. _ACEOF
  23005. rm -f conftest.$ac_objext conftest$ac_exeext
  23006. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23007. (eval $ac_link) 2>conftest.er1
  23008. ac_status=$?
  23009. grep -v '^ *+' conftest.er1 >conftest.err
  23010. rm -f conftest.er1
  23011. cat conftest.err >&5
  23012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23013. (exit $ac_status); } &&
  23014. { ac_try='test -z "$ac_c_werror_flag"
  23015. || test ! -s conftest.err'
  23016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23017. (eval $ac_try) 2>&5
  23018. ac_status=$?
  23019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23020. (exit $ac_status); }; } &&
  23021. { ac_try='test -s conftest$ac_exeext'
  23022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23023. (eval $ac_try) 2>&5
  23024. ac_status=$?
  23025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23026. (exit $ac_status); }; }; then
  23027. ac_cv_search_opendir="none required"
  23028. else
  23029. echo "$as_me: failed program was:" >&5
  23030. sed 's/^/| /' conftest.$ac_ext >&5
  23031. fi
  23032. rm -f conftest.err conftest.$ac_objext \
  23033. conftest$ac_exeext conftest.$ac_ext
  23034. if test "$ac_cv_search_opendir" = no; then
  23035. for ac_lib in dir; do
  23036. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  23037. cat >conftest.$ac_ext <<_ACEOF
  23038. /* confdefs.h. */
  23039. _ACEOF
  23040. cat confdefs.h >>conftest.$ac_ext
  23041. cat >>conftest.$ac_ext <<_ACEOF
  23042. /* end confdefs.h. */
  23043. /* Override any gcc2 internal prototype to avoid an error. */
  23044. #ifdef __cplusplus
  23045. extern "C"
  23046. #endif
  23047. /* We use char because int might match the return type of a gcc2
  23048. builtin and then its argument prototype would still apply. */
  23049. char opendir ();
  23050. int
  23051. main ()
  23052. {
  23053. opendir ();
  23054. ;
  23055. return 0;
  23056. }
  23057. _ACEOF
  23058. rm -f conftest.$ac_objext conftest$ac_exeext
  23059. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23060. (eval $ac_link) 2>conftest.er1
  23061. ac_status=$?
  23062. grep -v '^ *+' conftest.er1 >conftest.err
  23063. rm -f conftest.er1
  23064. cat conftest.err >&5
  23065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23066. (exit $ac_status); } &&
  23067. { ac_try='test -z "$ac_c_werror_flag"
  23068. || test ! -s conftest.err'
  23069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23070. (eval $ac_try) 2>&5
  23071. ac_status=$?
  23072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23073. (exit $ac_status); }; } &&
  23074. { ac_try='test -s conftest$ac_exeext'
  23075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23076. (eval $ac_try) 2>&5
  23077. ac_status=$?
  23078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23079. (exit $ac_status); }; }; then
  23080. ac_cv_search_opendir="-l$ac_lib"
  23081. break
  23082. else
  23083. echo "$as_me: failed program was:" >&5
  23084. sed 's/^/| /' conftest.$ac_ext >&5
  23085. fi
  23086. rm -f conftest.err conftest.$ac_objext \
  23087. conftest$ac_exeext conftest.$ac_ext
  23088. done
  23089. fi
  23090. LIBS=$ac_func_search_save_LIBS
  23091. fi
  23092. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  23093. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  23094. if test "$ac_cv_search_opendir" != no; then
  23095. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  23096. fi
  23097. else
  23098. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  23099. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  23100. if test "${ac_cv_search_opendir+set}" = set; then
  23101. echo $ECHO_N "(cached) $ECHO_C" >&6
  23102. else
  23103. ac_func_search_save_LIBS=$LIBS
  23104. ac_cv_search_opendir=no
  23105. cat >conftest.$ac_ext <<_ACEOF
  23106. /* confdefs.h. */
  23107. _ACEOF
  23108. cat confdefs.h >>conftest.$ac_ext
  23109. cat >>conftest.$ac_ext <<_ACEOF
  23110. /* end confdefs.h. */
  23111. /* Override any gcc2 internal prototype to avoid an error. */
  23112. #ifdef __cplusplus
  23113. extern "C"
  23114. #endif
  23115. /* We use char because int might match the return type of a gcc2
  23116. builtin and then its argument prototype would still apply. */
  23117. char opendir ();
  23118. int
  23119. main ()
  23120. {
  23121. opendir ();
  23122. ;
  23123. return 0;
  23124. }
  23125. _ACEOF
  23126. rm -f conftest.$ac_objext conftest$ac_exeext
  23127. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23128. (eval $ac_link) 2>conftest.er1
  23129. ac_status=$?
  23130. grep -v '^ *+' conftest.er1 >conftest.err
  23131. rm -f conftest.er1
  23132. cat conftest.err >&5
  23133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23134. (exit $ac_status); } &&
  23135. { ac_try='test -z "$ac_c_werror_flag"
  23136. || test ! -s conftest.err'
  23137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23138. (eval $ac_try) 2>&5
  23139. ac_status=$?
  23140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23141. (exit $ac_status); }; } &&
  23142. { ac_try='test -s conftest$ac_exeext'
  23143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23144. (eval $ac_try) 2>&5
  23145. ac_status=$?
  23146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23147. (exit $ac_status); }; }; then
  23148. ac_cv_search_opendir="none required"
  23149. else
  23150. echo "$as_me: failed program was:" >&5
  23151. sed 's/^/| /' conftest.$ac_ext >&5
  23152. fi
  23153. rm -f conftest.err conftest.$ac_objext \
  23154. conftest$ac_exeext conftest.$ac_ext
  23155. if test "$ac_cv_search_opendir" = no; then
  23156. for ac_lib in x; do
  23157. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  23158. cat >conftest.$ac_ext <<_ACEOF
  23159. /* confdefs.h. */
  23160. _ACEOF
  23161. cat confdefs.h >>conftest.$ac_ext
  23162. cat >>conftest.$ac_ext <<_ACEOF
  23163. /* end confdefs.h. */
  23164. /* Override any gcc2 internal prototype to avoid an error. */
  23165. #ifdef __cplusplus
  23166. extern "C"
  23167. #endif
  23168. /* We use char because int might match the return type of a gcc2
  23169. builtin and then its argument prototype would still apply. */
  23170. char opendir ();
  23171. int
  23172. main ()
  23173. {
  23174. opendir ();
  23175. ;
  23176. return 0;
  23177. }
  23178. _ACEOF
  23179. rm -f conftest.$ac_objext conftest$ac_exeext
  23180. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23181. (eval $ac_link) 2>conftest.er1
  23182. ac_status=$?
  23183. grep -v '^ *+' conftest.er1 >conftest.err
  23184. rm -f conftest.er1
  23185. cat conftest.err >&5
  23186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23187. (exit $ac_status); } &&
  23188. { ac_try='test -z "$ac_c_werror_flag"
  23189. || test ! -s conftest.err'
  23190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23191. (eval $ac_try) 2>&5
  23192. ac_status=$?
  23193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23194. (exit $ac_status); }; } &&
  23195. { ac_try='test -s conftest$ac_exeext'
  23196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23197. (eval $ac_try) 2>&5
  23198. ac_status=$?
  23199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23200. (exit $ac_status); }; }; then
  23201. ac_cv_search_opendir="-l$ac_lib"
  23202. break
  23203. else
  23204. echo "$as_me: failed program was:" >&5
  23205. sed 's/^/| /' conftest.$ac_ext >&5
  23206. fi
  23207. rm -f conftest.err conftest.$ac_objext \
  23208. conftest$ac_exeext conftest.$ac_ext
  23209. done
  23210. fi
  23211. LIBS=$ac_func_search_save_LIBS
  23212. fi
  23213. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  23214. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  23215. if test "$ac_cv_search_opendir" != no; then
  23216. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  23217. fi
  23218. fi
  23219. # =================
  23220. # AC_CHECK_HEADERS
  23221. # =================
  23222. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  23223. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  23224. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h
  23225. do
  23226. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23227. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23228. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23229. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23230. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23231. echo $ECHO_N "(cached) $ECHO_C" >&6
  23232. fi
  23233. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23234. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23235. else
  23236. # Is the header compilable?
  23237. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23238. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23239. cat >conftest.$ac_ext <<_ACEOF
  23240. /* confdefs.h. */
  23241. _ACEOF
  23242. cat confdefs.h >>conftest.$ac_ext
  23243. cat >>conftest.$ac_ext <<_ACEOF
  23244. /* end confdefs.h. */
  23245. $ac_includes_default
  23246. #include <$ac_header>
  23247. _ACEOF
  23248. rm -f conftest.$ac_objext
  23249. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23250. (eval $ac_compile) 2>conftest.er1
  23251. ac_status=$?
  23252. grep -v '^ *+' conftest.er1 >conftest.err
  23253. rm -f conftest.er1
  23254. cat conftest.err >&5
  23255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23256. (exit $ac_status); } &&
  23257. { ac_try='test -z "$ac_c_werror_flag"
  23258. || test ! -s conftest.err'
  23259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23260. (eval $ac_try) 2>&5
  23261. ac_status=$?
  23262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23263. (exit $ac_status); }; } &&
  23264. { ac_try='test -s conftest.$ac_objext'
  23265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23266. (eval $ac_try) 2>&5
  23267. ac_status=$?
  23268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23269. (exit $ac_status); }; }; then
  23270. ac_header_compiler=yes
  23271. else
  23272. echo "$as_me: failed program was:" >&5
  23273. sed 's/^/| /' conftest.$ac_ext >&5
  23274. ac_header_compiler=no
  23275. fi
  23276. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23277. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23278. echo "${ECHO_T}$ac_header_compiler" >&6
  23279. # Is the header present?
  23280. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23281. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23282. cat >conftest.$ac_ext <<_ACEOF
  23283. /* confdefs.h. */
  23284. _ACEOF
  23285. cat confdefs.h >>conftest.$ac_ext
  23286. cat >>conftest.$ac_ext <<_ACEOF
  23287. /* end confdefs.h. */
  23288. #include <$ac_header>
  23289. _ACEOF
  23290. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23291. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23292. ac_status=$?
  23293. grep -v '^ *+' conftest.er1 >conftest.err
  23294. rm -f conftest.er1
  23295. cat conftest.err >&5
  23296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23297. (exit $ac_status); } >/dev/null; then
  23298. if test -s conftest.err; then
  23299. ac_cpp_err=$ac_c_preproc_warn_flag
  23300. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23301. else
  23302. ac_cpp_err=
  23303. fi
  23304. else
  23305. ac_cpp_err=yes
  23306. fi
  23307. if test -z "$ac_cpp_err"; then
  23308. ac_header_preproc=yes
  23309. else
  23310. echo "$as_me: failed program was:" >&5
  23311. sed 's/^/| /' conftest.$ac_ext >&5
  23312. ac_header_preproc=no
  23313. fi
  23314. rm -f conftest.err conftest.$ac_ext
  23315. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23316. echo "${ECHO_T}$ac_header_preproc" >&6
  23317. # So? What about this header?
  23318. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23319. yes:no: )
  23320. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23321. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23322. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23323. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23324. ac_header_preproc=yes
  23325. ;;
  23326. no:yes:* )
  23327. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23328. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23329. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23330. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23331. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23332. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23333. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23334. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23335. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23336. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23337. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23338. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23339. (
  23340. cat <<\_ASBOX
  23341. ## ------------------------------------------ ##
  23342. ## Report this to the AC_PACKAGE_NAME lists. ##
  23343. ## ------------------------------------------ ##
  23344. _ASBOX
  23345. ) |
  23346. sed "s/^/$as_me: WARNING: /" >&2
  23347. ;;
  23348. esac
  23349. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23350. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23351. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23352. echo $ECHO_N "(cached) $ECHO_C" >&6
  23353. else
  23354. eval "$as_ac_Header=\$ac_header_preproc"
  23355. fi
  23356. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23357. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23358. fi
  23359. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23360. cat >>confdefs.h <<_ACEOF
  23361. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23362. _ACEOF
  23363. fi
  23364. done
  23365. # --------------------------------------------
  23366. # Verify certain entries from AC_CHECK_HEADERS
  23367. # --------------------------------------------
  23368. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  23369. string errno stdlib memory setjmp
  23370. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  23371. test "${as_ac_var}" = set || \
  23372. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  23373. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  23374. { (exit 1); exit 1; }; }
  23375. done
  23376. # ================================================
  23377. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  23378. # if varargs.h is present define HAVE_VARARGS_H.
  23379. # ================================================
  23380. for ac_header in stdarg.h varargs.h
  23381. do
  23382. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23383. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23384. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23385. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23386. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23387. echo $ECHO_N "(cached) $ECHO_C" >&6
  23388. fi
  23389. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23390. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23391. else
  23392. # Is the header compilable?
  23393. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23394. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23395. cat >conftest.$ac_ext <<_ACEOF
  23396. /* confdefs.h. */
  23397. _ACEOF
  23398. cat confdefs.h >>conftest.$ac_ext
  23399. cat >>conftest.$ac_ext <<_ACEOF
  23400. /* end confdefs.h. */
  23401. $ac_includes_default
  23402. #include <$ac_header>
  23403. _ACEOF
  23404. rm -f conftest.$ac_objext
  23405. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23406. (eval $ac_compile) 2>conftest.er1
  23407. ac_status=$?
  23408. grep -v '^ *+' conftest.er1 >conftest.err
  23409. rm -f conftest.er1
  23410. cat conftest.err >&5
  23411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23412. (exit $ac_status); } &&
  23413. { ac_try='test -z "$ac_c_werror_flag"
  23414. || test ! -s conftest.err'
  23415. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23416. (eval $ac_try) 2>&5
  23417. ac_status=$?
  23418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23419. (exit $ac_status); }; } &&
  23420. { ac_try='test -s conftest.$ac_objext'
  23421. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23422. (eval $ac_try) 2>&5
  23423. ac_status=$?
  23424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23425. (exit $ac_status); }; }; then
  23426. ac_header_compiler=yes
  23427. else
  23428. echo "$as_me: failed program was:" >&5
  23429. sed 's/^/| /' conftest.$ac_ext >&5
  23430. ac_header_compiler=no
  23431. fi
  23432. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23433. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23434. echo "${ECHO_T}$ac_header_compiler" >&6
  23435. # Is the header present?
  23436. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23437. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23438. cat >conftest.$ac_ext <<_ACEOF
  23439. /* confdefs.h. */
  23440. _ACEOF
  23441. cat confdefs.h >>conftest.$ac_ext
  23442. cat >>conftest.$ac_ext <<_ACEOF
  23443. /* end confdefs.h. */
  23444. #include <$ac_header>
  23445. _ACEOF
  23446. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23447. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23448. ac_status=$?
  23449. grep -v '^ *+' conftest.er1 >conftest.err
  23450. rm -f conftest.er1
  23451. cat conftest.err >&5
  23452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23453. (exit $ac_status); } >/dev/null; then
  23454. if test -s conftest.err; then
  23455. ac_cpp_err=$ac_c_preproc_warn_flag
  23456. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23457. else
  23458. ac_cpp_err=
  23459. fi
  23460. else
  23461. ac_cpp_err=yes
  23462. fi
  23463. if test -z "$ac_cpp_err"; then
  23464. ac_header_preproc=yes
  23465. else
  23466. echo "$as_me: failed program was:" >&5
  23467. sed 's/^/| /' conftest.$ac_ext >&5
  23468. ac_header_preproc=no
  23469. fi
  23470. rm -f conftest.err conftest.$ac_ext
  23471. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23472. echo "${ECHO_T}$ac_header_preproc" >&6
  23473. # So? What about this header?
  23474. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23475. yes:no: )
  23476. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23477. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23478. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23479. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23480. ac_header_preproc=yes
  23481. ;;
  23482. no:yes:* )
  23483. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23484. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23485. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23486. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23487. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23488. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23489. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23490. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23491. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23492. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23493. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23494. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23495. (
  23496. cat <<\_ASBOX
  23497. ## ------------------------------------------ ##
  23498. ## Report this to the AC_PACKAGE_NAME lists. ##
  23499. ## ------------------------------------------ ##
  23500. _ASBOX
  23501. ) |
  23502. sed "s/^/$as_me: WARNING: /" >&2
  23503. ;;
  23504. esac
  23505. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23506. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23507. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23508. echo $ECHO_N "(cached) $ECHO_C" >&6
  23509. else
  23510. eval "$as_ac_Header=\$ac_header_preproc"
  23511. fi
  23512. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23513. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23514. fi
  23515. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23516. cat >>confdefs.h <<_ACEOF
  23517. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23518. _ACEOF
  23519. break
  23520. fi
  23521. done
  23522. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  23523. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  23524. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  23525. { (exit 1); exit 1; }; }
  23526. fi
  23527. # ================================================
  23528. # Similarly for the string.h and strings.h headers
  23529. # ================================================
  23530. for ac_header in string.h strings.h
  23531. do
  23532. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23533. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23534. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23535. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23536. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23537. echo $ECHO_N "(cached) $ECHO_C" >&6
  23538. fi
  23539. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23540. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23541. else
  23542. # Is the header compilable?
  23543. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23544. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23545. cat >conftest.$ac_ext <<_ACEOF
  23546. /* confdefs.h. */
  23547. _ACEOF
  23548. cat confdefs.h >>conftest.$ac_ext
  23549. cat >>conftest.$ac_ext <<_ACEOF
  23550. /* end confdefs.h. */
  23551. $ac_includes_default
  23552. #include <$ac_header>
  23553. _ACEOF
  23554. rm -f conftest.$ac_objext
  23555. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23556. (eval $ac_compile) 2>conftest.er1
  23557. ac_status=$?
  23558. grep -v '^ *+' conftest.er1 >conftest.err
  23559. rm -f conftest.er1
  23560. cat conftest.err >&5
  23561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23562. (exit $ac_status); } &&
  23563. { ac_try='test -z "$ac_c_werror_flag"
  23564. || test ! -s conftest.err'
  23565. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23566. (eval $ac_try) 2>&5
  23567. ac_status=$?
  23568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23569. (exit $ac_status); }; } &&
  23570. { ac_try='test -s conftest.$ac_objext'
  23571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23572. (eval $ac_try) 2>&5
  23573. ac_status=$?
  23574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23575. (exit $ac_status); }; }; then
  23576. ac_header_compiler=yes
  23577. else
  23578. echo "$as_me: failed program was:" >&5
  23579. sed 's/^/| /' conftest.$ac_ext >&5
  23580. ac_header_compiler=no
  23581. fi
  23582. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23583. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23584. echo "${ECHO_T}$ac_header_compiler" >&6
  23585. # Is the header present?
  23586. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23587. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23588. cat >conftest.$ac_ext <<_ACEOF
  23589. /* confdefs.h. */
  23590. _ACEOF
  23591. cat confdefs.h >>conftest.$ac_ext
  23592. cat >>conftest.$ac_ext <<_ACEOF
  23593. /* end confdefs.h. */
  23594. #include <$ac_header>
  23595. _ACEOF
  23596. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23597. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23598. ac_status=$?
  23599. grep -v '^ *+' conftest.er1 >conftest.err
  23600. rm -f conftest.er1
  23601. cat conftest.err >&5
  23602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23603. (exit $ac_status); } >/dev/null; then
  23604. if test -s conftest.err; then
  23605. ac_cpp_err=$ac_c_preproc_warn_flag
  23606. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23607. else
  23608. ac_cpp_err=
  23609. fi
  23610. else
  23611. ac_cpp_err=yes
  23612. fi
  23613. if test -z "$ac_cpp_err"; then
  23614. ac_header_preproc=yes
  23615. else
  23616. echo "$as_me: failed program was:" >&5
  23617. sed 's/^/| /' conftest.$ac_ext >&5
  23618. ac_header_preproc=no
  23619. fi
  23620. rm -f conftest.err conftest.$ac_ext
  23621. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23622. echo "${ECHO_T}$ac_header_preproc" >&6
  23623. # So? What about this header?
  23624. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23625. yes:no: )
  23626. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23627. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23628. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23629. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23630. ac_header_preproc=yes
  23631. ;;
  23632. no:yes:* )
  23633. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23634. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23635. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23636. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23637. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23638. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23639. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23640. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23641. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23642. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23643. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23644. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23645. (
  23646. cat <<\_ASBOX
  23647. ## ------------------------------------------ ##
  23648. ## Report this to the AC_PACKAGE_NAME lists. ##
  23649. ## ------------------------------------------ ##
  23650. _ASBOX
  23651. ) |
  23652. sed "s/^/$as_me: WARNING: /" >&2
  23653. ;;
  23654. esac
  23655. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23656. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23657. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23658. echo $ECHO_N "(cached) $ECHO_C" >&6
  23659. else
  23660. eval "$as_ac_Header=\$ac_header_preproc"
  23661. fi
  23662. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23663. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23664. fi
  23665. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23666. cat >>confdefs.h <<_ACEOF
  23667. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23668. _ACEOF
  23669. break
  23670. fi
  23671. done
  23672. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  23673. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  23674. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  23675. { (exit 1); exit 1; }; }
  23676. fi
  23677. # =====================
  23678. # ...and limits headers
  23679. # =====================
  23680. for ac_header in limits.h sys/limits.h values.h
  23681. do
  23682. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23683. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23684. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23685. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23686. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23687. echo $ECHO_N "(cached) $ECHO_C" >&6
  23688. fi
  23689. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23690. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23691. else
  23692. # Is the header compilable?
  23693. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23694. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23695. cat >conftest.$ac_ext <<_ACEOF
  23696. /* confdefs.h. */
  23697. _ACEOF
  23698. cat confdefs.h >>conftest.$ac_ext
  23699. cat >>conftest.$ac_ext <<_ACEOF
  23700. /* end confdefs.h. */
  23701. $ac_includes_default
  23702. #include <$ac_header>
  23703. _ACEOF
  23704. rm -f conftest.$ac_objext
  23705. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23706. (eval $ac_compile) 2>conftest.er1
  23707. ac_status=$?
  23708. grep -v '^ *+' conftest.er1 >conftest.err
  23709. rm -f conftest.er1
  23710. cat conftest.err >&5
  23711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23712. (exit $ac_status); } &&
  23713. { ac_try='test -z "$ac_c_werror_flag"
  23714. || test ! -s conftest.err'
  23715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23716. (eval $ac_try) 2>&5
  23717. ac_status=$?
  23718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23719. (exit $ac_status); }; } &&
  23720. { ac_try='test -s conftest.$ac_objext'
  23721. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23722. (eval $ac_try) 2>&5
  23723. ac_status=$?
  23724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23725. (exit $ac_status); }; }; then
  23726. ac_header_compiler=yes
  23727. else
  23728. echo "$as_me: failed program was:" >&5
  23729. sed 's/^/| /' conftest.$ac_ext >&5
  23730. ac_header_compiler=no
  23731. fi
  23732. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23733. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23734. echo "${ECHO_T}$ac_header_compiler" >&6
  23735. # Is the header present?
  23736. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23737. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23738. cat >conftest.$ac_ext <<_ACEOF
  23739. /* confdefs.h. */
  23740. _ACEOF
  23741. cat confdefs.h >>conftest.$ac_ext
  23742. cat >>conftest.$ac_ext <<_ACEOF
  23743. /* end confdefs.h. */
  23744. #include <$ac_header>
  23745. _ACEOF
  23746. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23747. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23748. ac_status=$?
  23749. grep -v '^ *+' conftest.er1 >conftest.err
  23750. rm -f conftest.er1
  23751. cat conftest.err >&5
  23752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23753. (exit $ac_status); } >/dev/null; then
  23754. if test -s conftest.err; then
  23755. ac_cpp_err=$ac_c_preproc_warn_flag
  23756. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23757. else
  23758. ac_cpp_err=
  23759. fi
  23760. else
  23761. ac_cpp_err=yes
  23762. fi
  23763. if test -z "$ac_cpp_err"; then
  23764. ac_header_preproc=yes
  23765. else
  23766. echo "$as_me: failed program was:" >&5
  23767. sed 's/^/| /' conftest.$ac_ext >&5
  23768. ac_header_preproc=no
  23769. fi
  23770. rm -f conftest.err conftest.$ac_ext
  23771. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23772. echo "${ECHO_T}$ac_header_preproc" >&6
  23773. # So? What about this header?
  23774. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23775. yes:no: )
  23776. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23777. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23778. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23779. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23780. ac_header_preproc=yes
  23781. ;;
  23782. no:yes:* )
  23783. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23784. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23785. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23786. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23787. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23788. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23789. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23790. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23791. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23792. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23793. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23794. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23795. (
  23796. cat <<\_ASBOX
  23797. ## ------------------------------------------ ##
  23798. ## Report this to the AC_PACKAGE_NAME lists. ##
  23799. ## ------------------------------------------ ##
  23800. _ASBOX
  23801. ) |
  23802. sed "s/^/$as_me: WARNING: /" >&2
  23803. ;;
  23804. esac
  23805. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23806. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23807. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23808. echo $ECHO_N "(cached) $ECHO_C" >&6
  23809. else
  23810. eval "$as_ac_Header=\$ac_header_preproc"
  23811. fi
  23812. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23813. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23814. fi
  23815. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23816. cat >>confdefs.h <<_ACEOF
  23817. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23818. _ACEOF
  23819. break
  23820. fi
  23821. done
  23822. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  23823. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  23824. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  23825. { (exit 1); exit 1; }; }
  23826. fi
  23827. # ========================
  23828. # ...and int types headers
  23829. # ========================
  23830. for ac_header in stdint.h inttypes.h
  23831. do
  23832. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23833. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23834. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23835. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23836. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23837. echo $ECHO_N "(cached) $ECHO_C" >&6
  23838. fi
  23839. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23840. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23841. else
  23842. # Is the header compilable?
  23843. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23844. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23845. cat >conftest.$ac_ext <<_ACEOF
  23846. /* confdefs.h. */
  23847. _ACEOF
  23848. cat confdefs.h >>conftest.$ac_ext
  23849. cat >>conftest.$ac_ext <<_ACEOF
  23850. /* end confdefs.h. */
  23851. $ac_includes_default
  23852. #include <$ac_header>
  23853. _ACEOF
  23854. rm -f conftest.$ac_objext
  23855. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23856. (eval $ac_compile) 2>conftest.er1
  23857. ac_status=$?
  23858. grep -v '^ *+' conftest.er1 >conftest.err
  23859. rm -f conftest.er1
  23860. cat conftest.err >&5
  23861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23862. (exit $ac_status); } &&
  23863. { ac_try='test -z "$ac_c_werror_flag"
  23864. || test ! -s conftest.err'
  23865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23866. (eval $ac_try) 2>&5
  23867. ac_status=$?
  23868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23869. (exit $ac_status); }; } &&
  23870. { ac_try='test -s conftest.$ac_objext'
  23871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23872. (eval $ac_try) 2>&5
  23873. ac_status=$?
  23874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23875. (exit $ac_status); }; }; then
  23876. ac_header_compiler=yes
  23877. else
  23878. echo "$as_me: failed program was:" >&5
  23879. sed 's/^/| /' conftest.$ac_ext >&5
  23880. ac_header_compiler=no
  23881. fi
  23882. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23883. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23884. echo "${ECHO_T}$ac_header_compiler" >&6
  23885. # Is the header present?
  23886. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23887. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23888. cat >conftest.$ac_ext <<_ACEOF
  23889. /* confdefs.h. */
  23890. _ACEOF
  23891. cat confdefs.h >>conftest.$ac_ext
  23892. cat >>conftest.$ac_ext <<_ACEOF
  23893. /* end confdefs.h. */
  23894. #include <$ac_header>
  23895. _ACEOF
  23896. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23897. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23898. ac_status=$?
  23899. grep -v '^ *+' conftest.er1 >conftest.err
  23900. rm -f conftest.er1
  23901. cat conftest.err >&5
  23902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23903. (exit $ac_status); } >/dev/null; then
  23904. if test -s conftest.err; then
  23905. ac_cpp_err=$ac_c_preproc_warn_flag
  23906. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23907. else
  23908. ac_cpp_err=
  23909. fi
  23910. else
  23911. ac_cpp_err=yes
  23912. fi
  23913. if test -z "$ac_cpp_err"; then
  23914. ac_header_preproc=yes
  23915. else
  23916. echo "$as_me: failed program was:" >&5
  23917. sed 's/^/| /' conftest.$ac_ext >&5
  23918. ac_header_preproc=no
  23919. fi
  23920. rm -f conftest.err conftest.$ac_ext
  23921. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23922. echo "${ECHO_T}$ac_header_preproc" >&6
  23923. # So? What about this header?
  23924. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23925. yes:no: )
  23926. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23927. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23928. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23929. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23930. ac_header_preproc=yes
  23931. ;;
  23932. no:yes:* )
  23933. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23934. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23935. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23936. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23937. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23938. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23939. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23940. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23941. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23942. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23943. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23944. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23945. (
  23946. cat <<\_ASBOX
  23947. ## ------------------------------------------ ##
  23948. ## Report this to the AC_PACKAGE_NAME lists. ##
  23949. ## ------------------------------------------ ##
  23950. _ASBOX
  23951. ) |
  23952. sed "s/^/$as_me: WARNING: /" >&2
  23953. ;;
  23954. esac
  23955. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23956. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23957. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23958. echo $ECHO_N "(cached) $ECHO_C" >&6
  23959. else
  23960. eval "$as_ac_Header=\$ac_header_preproc"
  23961. fi
  23962. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23963. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23964. fi
  23965. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23966. cat >>confdefs.h <<_ACEOF
  23967. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23968. _ACEOF
  23969. break
  23970. fi
  23971. done
  23972. echo "$as_me:$LINENO: checking for int8_t" >&5
  23973. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
  23974. if test "${ac_cv_type_int8_t+set}" = set; then
  23975. echo $ECHO_N "(cached) $ECHO_C" >&6
  23976. else
  23977. cat >conftest.$ac_ext <<_ACEOF
  23978. /* confdefs.h. */
  23979. _ACEOF
  23980. cat confdefs.h >>conftest.$ac_ext
  23981. cat >>conftest.$ac_ext <<_ACEOF
  23982. /* end confdefs.h. */
  23983. $ac_includes_default
  23984. int
  23985. main ()
  23986. {
  23987. if ((int8_t *) 0)
  23988. return 0;
  23989. if (sizeof (int8_t))
  23990. return 0;
  23991. ;
  23992. return 0;
  23993. }
  23994. _ACEOF
  23995. rm -f conftest.$ac_objext
  23996. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23997. (eval $ac_compile) 2>conftest.er1
  23998. ac_status=$?
  23999. grep -v '^ *+' conftest.er1 >conftest.err
  24000. rm -f conftest.er1
  24001. cat conftest.err >&5
  24002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24003. (exit $ac_status); } &&
  24004. { ac_try='test -z "$ac_c_werror_flag"
  24005. || test ! -s conftest.err'
  24006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24007. (eval $ac_try) 2>&5
  24008. ac_status=$?
  24009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24010. (exit $ac_status); }; } &&
  24011. { ac_try='test -s conftest.$ac_objext'
  24012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24013. (eval $ac_try) 2>&5
  24014. ac_status=$?
  24015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24016. (exit $ac_status); }; }; then
  24017. ac_cv_type_int8_t=yes
  24018. else
  24019. echo "$as_me: failed program was:" >&5
  24020. sed 's/^/| /' conftest.$ac_ext >&5
  24021. ac_cv_type_int8_t=no
  24022. fi
  24023. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24024. fi
  24025. echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  24026. echo "${ECHO_T}$ac_cv_type_int8_t" >&6
  24027. if test $ac_cv_type_int8_t = yes; then
  24028. cat >>confdefs.h <<_ACEOF
  24029. #define HAVE_INT8_T 1
  24030. _ACEOF
  24031. fi
  24032. echo "$as_me:$LINENO: checking for uint8_t" >&5
  24033. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
  24034. if test "${ac_cv_type_uint8_t+set}" = set; then
  24035. echo $ECHO_N "(cached) $ECHO_C" >&6
  24036. else
  24037. cat >conftest.$ac_ext <<_ACEOF
  24038. /* confdefs.h. */
  24039. _ACEOF
  24040. cat confdefs.h >>conftest.$ac_ext
  24041. cat >>conftest.$ac_ext <<_ACEOF
  24042. /* end confdefs.h. */
  24043. $ac_includes_default
  24044. int
  24045. main ()
  24046. {
  24047. if ((uint8_t *) 0)
  24048. return 0;
  24049. if (sizeof (uint8_t))
  24050. return 0;
  24051. ;
  24052. return 0;
  24053. }
  24054. _ACEOF
  24055. rm -f conftest.$ac_objext
  24056. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24057. (eval $ac_compile) 2>conftest.er1
  24058. ac_status=$?
  24059. grep -v '^ *+' conftest.er1 >conftest.err
  24060. rm -f conftest.er1
  24061. cat conftest.err >&5
  24062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24063. (exit $ac_status); } &&
  24064. { ac_try='test -z "$ac_c_werror_flag"
  24065. || test ! -s conftest.err'
  24066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24067. (eval $ac_try) 2>&5
  24068. ac_status=$?
  24069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24070. (exit $ac_status); }; } &&
  24071. { ac_try='test -s conftest.$ac_objext'
  24072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24073. (eval $ac_try) 2>&5
  24074. ac_status=$?
  24075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24076. (exit $ac_status); }; }; then
  24077. ac_cv_type_uint8_t=yes
  24078. else
  24079. echo "$as_me: failed program was:" >&5
  24080. sed 's/^/| /' conftest.$ac_ext >&5
  24081. ac_cv_type_uint8_t=no
  24082. fi
  24083. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24084. fi
  24085. echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  24086. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
  24087. if test $ac_cv_type_uint8_t = yes; then
  24088. cat >>confdefs.h <<_ACEOF
  24089. #define HAVE_UINT8_T 1
  24090. _ACEOF
  24091. fi
  24092. echo "$as_me:$LINENO: checking for int16_t" >&5
  24093. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
  24094. if test "${ac_cv_type_int16_t+set}" = set; then
  24095. echo $ECHO_N "(cached) $ECHO_C" >&6
  24096. else
  24097. cat >conftest.$ac_ext <<_ACEOF
  24098. /* confdefs.h. */
  24099. _ACEOF
  24100. cat confdefs.h >>conftest.$ac_ext
  24101. cat >>conftest.$ac_ext <<_ACEOF
  24102. /* end confdefs.h. */
  24103. $ac_includes_default
  24104. int
  24105. main ()
  24106. {
  24107. if ((int16_t *) 0)
  24108. return 0;
  24109. if (sizeof (int16_t))
  24110. return 0;
  24111. ;
  24112. return 0;
  24113. }
  24114. _ACEOF
  24115. rm -f conftest.$ac_objext
  24116. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24117. (eval $ac_compile) 2>conftest.er1
  24118. ac_status=$?
  24119. grep -v '^ *+' conftest.er1 >conftest.err
  24120. rm -f conftest.er1
  24121. cat conftest.err >&5
  24122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24123. (exit $ac_status); } &&
  24124. { ac_try='test -z "$ac_c_werror_flag"
  24125. || test ! -s conftest.err'
  24126. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24127. (eval $ac_try) 2>&5
  24128. ac_status=$?
  24129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24130. (exit $ac_status); }; } &&
  24131. { ac_try='test -s conftest.$ac_objext'
  24132. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24133. (eval $ac_try) 2>&5
  24134. ac_status=$?
  24135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24136. (exit $ac_status); }; }; then
  24137. ac_cv_type_int16_t=yes
  24138. else
  24139. echo "$as_me: failed program was:" >&5
  24140. sed 's/^/| /' conftest.$ac_ext >&5
  24141. ac_cv_type_int16_t=no
  24142. fi
  24143. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24144. fi
  24145. echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  24146. echo "${ECHO_T}$ac_cv_type_int16_t" >&6
  24147. if test $ac_cv_type_int16_t = yes; then
  24148. cat >>confdefs.h <<_ACEOF
  24149. #define HAVE_INT16_T 1
  24150. _ACEOF
  24151. fi
  24152. echo "$as_me:$LINENO: checking for uint16_t" >&5
  24153. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
  24154. if test "${ac_cv_type_uint16_t+set}" = set; then
  24155. echo $ECHO_N "(cached) $ECHO_C" >&6
  24156. else
  24157. cat >conftest.$ac_ext <<_ACEOF
  24158. /* confdefs.h. */
  24159. _ACEOF
  24160. cat confdefs.h >>conftest.$ac_ext
  24161. cat >>conftest.$ac_ext <<_ACEOF
  24162. /* end confdefs.h. */
  24163. $ac_includes_default
  24164. int
  24165. main ()
  24166. {
  24167. if ((uint16_t *) 0)
  24168. return 0;
  24169. if (sizeof (uint16_t))
  24170. return 0;
  24171. ;
  24172. return 0;
  24173. }
  24174. _ACEOF
  24175. rm -f conftest.$ac_objext
  24176. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24177. (eval $ac_compile) 2>conftest.er1
  24178. ac_status=$?
  24179. grep -v '^ *+' conftest.er1 >conftest.err
  24180. rm -f conftest.er1
  24181. cat conftest.err >&5
  24182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24183. (exit $ac_status); } &&
  24184. { ac_try='test -z "$ac_c_werror_flag"
  24185. || test ! -s conftest.err'
  24186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24187. (eval $ac_try) 2>&5
  24188. ac_status=$?
  24189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24190. (exit $ac_status); }; } &&
  24191. { ac_try='test -s conftest.$ac_objext'
  24192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24193. (eval $ac_try) 2>&5
  24194. ac_status=$?
  24195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24196. (exit $ac_status); }; }; then
  24197. ac_cv_type_uint16_t=yes
  24198. else
  24199. echo "$as_me: failed program was:" >&5
  24200. sed 's/^/| /' conftest.$ac_ext >&5
  24201. ac_cv_type_uint16_t=no
  24202. fi
  24203. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24204. fi
  24205. echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  24206. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
  24207. if test $ac_cv_type_uint16_t = yes; then
  24208. cat >>confdefs.h <<_ACEOF
  24209. #define HAVE_UINT16_T 1
  24210. _ACEOF
  24211. fi
  24212. echo "$as_me:$LINENO: checking for int32_t" >&5
  24213. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
  24214. if test "${ac_cv_type_int32_t+set}" = set; then
  24215. echo $ECHO_N "(cached) $ECHO_C" >&6
  24216. else
  24217. cat >conftest.$ac_ext <<_ACEOF
  24218. /* confdefs.h. */
  24219. _ACEOF
  24220. cat confdefs.h >>conftest.$ac_ext
  24221. cat >>conftest.$ac_ext <<_ACEOF
  24222. /* end confdefs.h. */
  24223. $ac_includes_default
  24224. int
  24225. main ()
  24226. {
  24227. if ((int32_t *) 0)
  24228. return 0;
  24229. if (sizeof (int32_t))
  24230. return 0;
  24231. ;
  24232. return 0;
  24233. }
  24234. _ACEOF
  24235. rm -f conftest.$ac_objext
  24236. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24237. (eval $ac_compile) 2>conftest.er1
  24238. ac_status=$?
  24239. grep -v '^ *+' conftest.er1 >conftest.err
  24240. rm -f conftest.er1
  24241. cat conftest.err >&5
  24242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24243. (exit $ac_status); } &&
  24244. { ac_try='test -z "$ac_c_werror_flag"
  24245. || test ! -s conftest.err'
  24246. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24247. (eval $ac_try) 2>&5
  24248. ac_status=$?
  24249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24250. (exit $ac_status); }; } &&
  24251. { ac_try='test -s conftest.$ac_objext'
  24252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24253. (eval $ac_try) 2>&5
  24254. ac_status=$?
  24255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24256. (exit $ac_status); }; }; then
  24257. ac_cv_type_int32_t=yes
  24258. else
  24259. echo "$as_me: failed program was:" >&5
  24260. sed 's/^/| /' conftest.$ac_ext >&5
  24261. ac_cv_type_int32_t=no
  24262. fi
  24263. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24264. fi
  24265. echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  24266. echo "${ECHO_T}$ac_cv_type_int32_t" >&6
  24267. if test $ac_cv_type_int32_t = yes; then
  24268. cat >>confdefs.h <<_ACEOF
  24269. #define HAVE_INT32_T 1
  24270. _ACEOF
  24271. fi
  24272. echo "$as_me:$LINENO: checking for uint32_t" >&5
  24273. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
  24274. if test "${ac_cv_type_uint32_t+set}" = set; then
  24275. echo $ECHO_N "(cached) $ECHO_C" >&6
  24276. else
  24277. cat >conftest.$ac_ext <<_ACEOF
  24278. /* confdefs.h. */
  24279. _ACEOF
  24280. cat confdefs.h >>conftest.$ac_ext
  24281. cat >>conftest.$ac_ext <<_ACEOF
  24282. /* end confdefs.h. */
  24283. $ac_includes_default
  24284. int
  24285. main ()
  24286. {
  24287. if ((uint32_t *) 0)
  24288. return 0;
  24289. if (sizeof (uint32_t))
  24290. return 0;
  24291. ;
  24292. return 0;
  24293. }
  24294. _ACEOF
  24295. rm -f conftest.$ac_objext
  24296. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24297. (eval $ac_compile) 2>conftest.er1
  24298. ac_status=$?
  24299. grep -v '^ *+' conftest.er1 >conftest.err
  24300. rm -f conftest.er1
  24301. cat conftest.err >&5
  24302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24303. (exit $ac_status); } &&
  24304. { ac_try='test -z "$ac_c_werror_flag"
  24305. || test ! -s conftest.err'
  24306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24307. (eval $ac_try) 2>&5
  24308. ac_status=$?
  24309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24310. (exit $ac_status); }; } &&
  24311. { ac_try='test -s conftest.$ac_objext'
  24312. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24313. (eval $ac_try) 2>&5
  24314. ac_status=$?
  24315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24316. (exit $ac_status); }; }; then
  24317. ac_cv_type_uint32_t=yes
  24318. else
  24319. echo "$as_me: failed program was:" >&5
  24320. sed 's/^/| /' conftest.$ac_ext >&5
  24321. ac_cv_type_uint32_t=no
  24322. fi
  24323. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24324. fi
  24325. echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  24326. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
  24327. if test $ac_cv_type_uint32_t = yes; then
  24328. cat >>confdefs.h <<_ACEOF
  24329. #define HAVE_UINT32_T 1
  24330. _ACEOF
  24331. fi
  24332. echo "$as_me:$LINENO: checking for intptr_t" >&5
  24333. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
  24334. if test "${ac_cv_type_intptr_t+set}" = set; then
  24335. echo $ECHO_N "(cached) $ECHO_C" >&6
  24336. else
  24337. cat >conftest.$ac_ext <<_ACEOF
  24338. /* confdefs.h. */
  24339. _ACEOF
  24340. cat confdefs.h >>conftest.$ac_ext
  24341. cat >>conftest.$ac_ext <<_ACEOF
  24342. /* end confdefs.h. */
  24343. $ac_includes_default
  24344. int
  24345. main ()
  24346. {
  24347. if ((intptr_t *) 0)
  24348. return 0;
  24349. if (sizeof (intptr_t))
  24350. return 0;
  24351. ;
  24352. return 0;
  24353. }
  24354. _ACEOF
  24355. rm -f conftest.$ac_objext
  24356. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24357. (eval $ac_compile) 2>conftest.er1
  24358. ac_status=$?
  24359. grep -v '^ *+' conftest.er1 >conftest.err
  24360. rm -f conftest.er1
  24361. cat conftest.err >&5
  24362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24363. (exit $ac_status); } &&
  24364. { ac_try='test -z "$ac_c_werror_flag"
  24365. || test ! -s conftest.err'
  24366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24367. (eval $ac_try) 2>&5
  24368. ac_status=$?
  24369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24370. (exit $ac_status); }; } &&
  24371. { ac_try='test -s conftest.$ac_objext'
  24372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24373. (eval $ac_try) 2>&5
  24374. ac_status=$?
  24375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24376. (exit $ac_status); }; }; then
  24377. ac_cv_type_intptr_t=yes
  24378. else
  24379. echo "$as_me: failed program was:" >&5
  24380. sed 's/^/| /' conftest.$ac_ext >&5
  24381. ac_cv_type_intptr_t=no
  24382. fi
  24383. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24384. fi
  24385. echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  24386. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
  24387. if test $ac_cv_type_intptr_t = yes; then
  24388. cat >>confdefs.h <<_ACEOF
  24389. #define HAVE_INTPTR_T 1
  24390. _ACEOF
  24391. fi
  24392. # ====================
  24393. # uintptr type & sizes
  24394. # ====================
  24395. echo "$as_me:$LINENO: checking for uintptr_t" >&5
  24396. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
  24397. if test "${ac_cv_type_uintptr_t+set}" = set; then
  24398. echo $ECHO_N "(cached) $ECHO_C" >&6
  24399. else
  24400. cat >conftest.$ac_ext <<_ACEOF
  24401. /* confdefs.h. */
  24402. _ACEOF
  24403. cat confdefs.h >>conftest.$ac_ext
  24404. cat >>conftest.$ac_ext <<_ACEOF
  24405. /* end confdefs.h. */
  24406. $ac_includes_default
  24407. int
  24408. main ()
  24409. {
  24410. if ((uintptr_t *) 0)
  24411. return 0;
  24412. if (sizeof (uintptr_t))
  24413. return 0;
  24414. ;
  24415. return 0;
  24416. }
  24417. _ACEOF
  24418. rm -f conftest.$ac_objext
  24419. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24420. (eval $ac_compile) 2>conftest.er1
  24421. ac_status=$?
  24422. grep -v '^ *+' conftest.er1 >conftest.err
  24423. rm -f conftest.er1
  24424. cat conftest.err >&5
  24425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24426. (exit $ac_status); } &&
  24427. { ac_try='test -z "$ac_c_werror_flag"
  24428. || test ! -s conftest.err'
  24429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24430. (eval $ac_try) 2>&5
  24431. ac_status=$?
  24432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24433. (exit $ac_status); }; } &&
  24434. { ac_try='test -s conftest.$ac_objext'
  24435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24436. (eval $ac_try) 2>&5
  24437. ac_status=$?
  24438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24439. (exit $ac_status); }; }; then
  24440. ac_cv_type_uintptr_t=yes
  24441. else
  24442. echo "$as_me: failed program was:" >&5
  24443. sed 's/^/| /' conftest.$ac_ext >&5
  24444. ac_cv_type_uintptr_t=no
  24445. fi
  24446. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24447. fi
  24448. echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  24449. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
  24450. if test $ac_cv_type_uintptr_t = yes; then
  24451. cat >>confdefs.h <<_ACEOF
  24452. #define HAVE_UINTPTR_T 1
  24453. _ACEOF
  24454. else
  24455. cat >>confdefs.h <<\_ACEOF
  24456. #define uintptr_t unsigned long
  24457. _ACEOF
  24458. fi
  24459. echo "$as_me:$LINENO: checking for char*" >&5
  24460. echo $ECHO_N "checking for char*... $ECHO_C" >&6
  24461. if test "${ac_cv_type_charp+set}" = set; then
  24462. echo $ECHO_N "(cached) $ECHO_C" >&6
  24463. else
  24464. cat >conftest.$ac_ext <<_ACEOF
  24465. /* confdefs.h. */
  24466. _ACEOF
  24467. cat confdefs.h >>conftest.$ac_ext
  24468. cat >>conftest.$ac_ext <<_ACEOF
  24469. /* end confdefs.h. */
  24470. $ac_includes_default
  24471. int
  24472. main ()
  24473. {
  24474. if ((char* *) 0)
  24475. return 0;
  24476. if (sizeof (char*))
  24477. return 0;
  24478. ;
  24479. return 0;
  24480. }
  24481. _ACEOF
  24482. rm -f conftest.$ac_objext
  24483. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24484. (eval $ac_compile) 2>conftest.er1
  24485. ac_status=$?
  24486. grep -v '^ *+' conftest.er1 >conftest.err
  24487. rm -f conftest.er1
  24488. cat conftest.err >&5
  24489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24490. (exit $ac_status); } &&
  24491. { ac_try='test -z "$ac_c_werror_flag"
  24492. || test ! -s conftest.err'
  24493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24494. (eval $ac_try) 2>&5
  24495. ac_status=$?
  24496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24497. (exit $ac_status); }; } &&
  24498. { ac_try='test -s conftest.$ac_objext'
  24499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24500. (eval $ac_try) 2>&5
  24501. ac_status=$?
  24502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24503. (exit $ac_status); }; }; then
  24504. ac_cv_type_charp=yes
  24505. else
  24506. echo "$as_me: failed program was:" >&5
  24507. sed 's/^/| /' conftest.$ac_ext >&5
  24508. ac_cv_type_charp=no
  24509. fi
  24510. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24511. fi
  24512. echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  24513. echo "${ECHO_T}$ac_cv_type_charp" >&6
  24514. echo "$as_me:$LINENO: checking size of char*" >&5
  24515. echo $ECHO_N "checking size of char*... $ECHO_C" >&6
  24516. if test "${ac_cv_sizeof_charp+set}" = set; then
  24517. echo $ECHO_N "(cached) $ECHO_C" >&6
  24518. else
  24519. if test "$ac_cv_type_charp" = yes; then
  24520. # The cast to unsigned long works around a bug in the HP C Compiler
  24521. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24522. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24523. # This bug is HP SR number 8606223364.
  24524. if test "$cross_compiling" = yes; then
  24525. # Depending upon the size, compute the lo and hi bounds.
  24526. cat >conftest.$ac_ext <<_ACEOF
  24527. /* confdefs.h. */
  24528. _ACEOF
  24529. cat confdefs.h >>conftest.$ac_ext
  24530. cat >>conftest.$ac_ext <<_ACEOF
  24531. /* end confdefs.h. */
  24532. $ac_includes_default
  24533. int
  24534. main ()
  24535. {
  24536. static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
  24537. test_array [0] = 0
  24538. ;
  24539. return 0;
  24540. }
  24541. _ACEOF
  24542. rm -f conftest.$ac_objext
  24543. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24544. (eval $ac_compile) 2>conftest.er1
  24545. ac_status=$?
  24546. grep -v '^ *+' conftest.er1 >conftest.err
  24547. rm -f conftest.er1
  24548. cat conftest.err >&5
  24549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24550. (exit $ac_status); } &&
  24551. { ac_try='test -z "$ac_c_werror_flag"
  24552. || test ! -s conftest.err'
  24553. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24554. (eval $ac_try) 2>&5
  24555. ac_status=$?
  24556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24557. (exit $ac_status); }; } &&
  24558. { ac_try='test -s conftest.$ac_objext'
  24559. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24560. (eval $ac_try) 2>&5
  24561. ac_status=$?
  24562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24563. (exit $ac_status); }; }; then
  24564. ac_lo=0 ac_mid=0
  24565. while :; do
  24566. cat >conftest.$ac_ext <<_ACEOF
  24567. /* confdefs.h. */
  24568. _ACEOF
  24569. cat confdefs.h >>conftest.$ac_ext
  24570. cat >>conftest.$ac_ext <<_ACEOF
  24571. /* end confdefs.h. */
  24572. $ac_includes_default
  24573. int
  24574. main ()
  24575. {
  24576. static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
  24577. test_array [0] = 0
  24578. ;
  24579. return 0;
  24580. }
  24581. _ACEOF
  24582. rm -f conftest.$ac_objext
  24583. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24584. (eval $ac_compile) 2>conftest.er1
  24585. ac_status=$?
  24586. grep -v '^ *+' conftest.er1 >conftest.err
  24587. rm -f conftest.er1
  24588. cat conftest.err >&5
  24589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24590. (exit $ac_status); } &&
  24591. { ac_try='test -z "$ac_c_werror_flag"
  24592. || test ! -s conftest.err'
  24593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24594. (eval $ac_try) 2>&5
  24595. ac_status=$?
  24596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24597. (exit $ac_status); }; } &&
  24598. { ac_try='test -s conftest.$ac_objext'
  24599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24600. (eval $ac_try) 2>&5
  24601. ac_status=$?
  24602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24603. (exit $ac_status); }; }; then
  24604. ac_hi=$ac_mid; break
  24605. else
  24606. echo "$as_me: failed program was:" >&5
  24607. sed 's/^/| /' conftest.$ac_ext >&5
  24608. ac_lo=`expr $ac_mid + 1`
  24609. if test $ac_lo -le $ac_mid; then
  24610. ac_lo= ac_hi=
  24611. break
  24612. fi
  24613. ac_mid=`expr 2 '*' $ac_mid + 1`
  24614. fi
  24615. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24616. done
  24617. else
  24618. echo "$as_me: failed program was:" >&5
  24619. sed 's/^/| /' conftest.$ac_ext >&5
  24620. cat >conftest.$ac_ext <<_ACEOF
  24621. /* confdefs.h. */
  24622. _ACEOF
  24623. cat confdefs.h >>conftest.$ac_ext
  24624. cat >>conftest.$ac_ext <<_ACEOF
  24625. /* end confdefs.h. */
  24626. $ac_includes_default
  24627. int
  24628. main ()
  24629. {
  24630. static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
  24631. test_array [0] = 0
  24632. ;
  24633. return 0;
  24634. }
  24635. _ACEOF
  24636. rm -f conftest.$ac_objext
  24637. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24638. (eval $ac_compile) 2>conftest.er1
  24639. ac_status=$?
  24640. grep -v '^ *+' conftest.er1 >conftest.err
  24641. rm -f conftest.er1
  24642. cat conftest.err >&5
  24643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24644. (exit $ac_status); } &&
  24645. { ac_try='test -z "$ac_c_werror_flag"
  24646. || test ! -s conftest.err'
  24647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24648. (eval $ac_try) 2>&5
  24649. ac_status=$?
  24650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24651. (exit $ac_status); }; } &&
  24652. { ac_try='test -s conftest.$ac_objext'
  24653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24654. (eval $ac_try) 2>&5
  24655. ac_status=$?
  24656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24657. (exit $ac_status); }; }; then
  24658. ac_hi=-1 ac_mid=-1
  24659. while :; do
  24660. cat >conftest.$ac_ext <<_ACEOF
  24661. /* confdefs.h. */
  24662. _ACEOF
  24663. cat confdefs.h >>conftest.$ac_ext
  24664. cat >>conftest.$ac_ext <<_ACEOF
  24665. /* end confdefs.h. */
  24666. $ac_includes_default
  24667. int
  24668. main ()
  24669. {
  24670. static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
  24671. test_array [0] = 0
  24672. ;
  24673. return 0;
  24674. }
  24675. _ACEOF
  24676. rm -f conftest.$ac_objext
  24677. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24678. (eval $ac_compile) 2>conftest.er1
  24679. ac_status=$?
  24680. grep -v '^ *+' conftest.er1 >conftest.err
  24681. rm -f conftest.er1
  24682. cat conftest.err >&5
  24683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24684. (exit $ac_status); } &&
  24685. { ac_try='test -z "$ac_c_werror_flag"
  24686. || test ! -s conftest.err'
  24687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24688. (eval $ac_try) 2>&5
  24689. ac_status=$?
  24690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24691. (exit $ac_status); }; } &&
  24692. { ac_try='test -s conftest.$ac_objext'
  24693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24694. (eval $ac_try) 2>&5
  24695. ac_status=$?
  24696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24697. (exit $ac_status); }; }; then
  24698. ac_lo=$ac_mid; break
  24699. else
  24700. echo "$as_me: failed program was:" >&5
  24701. sed 's/^/| /' conftest.$ac_ext >&5
  24702. ac_hi=`expr '(' $ac_mid ')' - 1`
  24703. if test $ac_mid -le $ac_hi; then
  24704. ac_lo= ac_hi=
  24705. break
  24706. fi
  24707. ac_mid=`expr 2 '*' $ac_mid`
  24708. fi
  24709. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24710. done
  24711. else
  24712. echo "$as_me: failed program was:" >&5
  24713. sed 's/^/| /' conftest.$ac_ext >&5
  24714. ac_lo= ac_hi=
  24715. fi
  24716. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24717. fi
  24718. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24719. # Binary search between lo and hi bounds.
  24720. while test "x$ac_lo" != "x$ac_hi"; do
  24721. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  24722. cat >conftest.$ac_ext <<_ACEOF
  24723. /* confdefs.h. */
  24724. _ACEOF
  24725. cat confdefs.h >>conftest.$ac_ext
  24726. cat >>conftest.$ac_ext <<_ACEOF
  24727. /* end confdefs.h. */
  24728. $ac_includes_default
  24729. int
  24730. main ()
  24731. {
  24732. static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
  24733. test_array [0] = 0
  24734. ;
  24735. return 0;
  24736. }
  24737. _ACEOF
  24738. rm -f conftest.$ac_objext
  24739. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24740. (eval $ac_compile) 2>conftest.er1
  24741. ac_status=$?
  24742. grep -v '^ *+' conftest.er1 >conftest.err
  24743. rm -f conftest.er1
  24744. cat conftest.err >&5
  24745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24746. (exit $ac_status); } &&
  24747. { ac_try='test -z "$ac_c_werror_flag"
  24748. || test ! -s conftest.err'
  24749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24750. (eval $ac_try) 2>&5
  24751. ac_status=$?
  24752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24753. (exit $ac_status); }; } &&
  24754. { ac_try='test -s conftest.$ac_objext'
  24755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24756. (eval $ac_try) 2>&5
  24757. ac_status=$?
  24758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24759. (exit $ac_status); }; }; then
  24760. ac_hi=$ac_mid
  24761. else
  24762. echo "$as_me: failed program was:" >&5
  24763. sed 's/^/| /' conftest.$ac_ext >&5
  24764. ac_lo=`expr '(' $ac_mid ')' + 1`
  24765. fi
  24766. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24767. done
  24768. case $ac_lo in
  24769. ?*) ac_cv_sizeof_charp=$ac_lo;;
  24770. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
  24771. See \`config.log' for more details." >&5
  24772. echo "$as_me: error: cannot compute sizeof (char*), 77
  24773. See \`config.log' for more details." >&2;}
  24774. { (exit 1); exit 1; }; } ;;
  24775. esac
  24776. else
  24777. if test "$cross_compiling" = yes; then
  24778. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  24779. See \`config.log' for more details." >&5
  24780. echo "$as_me: error: cannot run test program while cross compiling
  24781. See \`config.log' for more details." >&2;}
  24782. { (exit 1); exit 1; }; }
  24783. else
  24784. cat >conftest.$ac_ext <<_ACEOF
  24785. /* confdefs.h. */
  24786. _ACEOF
  24787. cat confdefs.h >>conftest.$ac_ext
  24788. cat >>conftest.$ac_ext <<_ACEOF
  24789. /* end confdefs.h. */
  24790. $ac_includes_default
  24791. long longval () { return (long) (sizeof (char*)); }
  24792. unsigned long ulongval () { return (long) (sizeof (char*)); }
  24793. #include <stdio.h>
  24794. #include <stdlib.h>
  24795. int
  24796. main ()
  24797. {
  24798. FILE *f = fopen ("conftest.val", "w");
  24799. if (! f)
  24800. exit (1);
  24801. if (((long) (sizeof (char*))) < 0)
  24802. {
  24803. long i = longval ();
  24804. if (i != ((long) (sizeof (char*))))
  24805. exit (1);
  24806. fprintf (f, "%ld\n", i);
  24807. }
  24808. else
  24809. {
  24810. unsigned long i = ulongval ();
  24811. if (i != ((long) (sizeof (char*))))
  24812. exit (1);
  24813. fprintf (f, "%lu\n", i);
  24814. }
  24815. exit (ferror (f) || fclose (f) != 0);
  24816. ;
  24817. return 0;
  24818. }
  24819. _ACEOF
  24820. rm -f conftest$ac_exeext
  24821. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24822. (eval $ac_link) 2>&5
  24823. ac_status=$?
  24824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24825. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24827. (eval $ac_try) 2>&5
  24828. ac_status=$?
  24829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24830. (exit $ac_status); }; }; then
  24831. ac_cv_sizeof_charp=`cat conftest.val`
  24832. else
  24833. echo "$as_me: program exited with status $ac_status" >&5
  24834. echo "$as_me: failed program was:" >&5
  24835. sed 's/^/| /' conftest.$ac_ext >&5
  24836. ( exit $ac_status )
  24837. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
  24838. See \`config.log' for more details." >&5
  24839. echo "$as_me: error: cannot compute sizeof (char*), 77
  24840. See \`config.log' for more details." >&2;}
  24841. { (exit 1); exit 1; }; }
  24842. fi
  24843. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24844. fi
  24845. fi
  24846. rm -f conftest.val
  24847. else
  24848. ac_cv_sizeof_charp=0
  24849. fi
  24850. fi
  24851. echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  24852. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
  24853. cat >>confdefs.h <<_ACEOF
  24854. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  24855. _ACEOF
  24856. echo "$as_me:$LINENO: checking for int" >&5
  24857. echo $ECHO_N "checking for int... $ECHO_C" >&6
  24858. if test "${ac_cv_type_int+set}" = set; then
  24859. echo $ECHO_N "(cached) $ECHO_C" >&6
  24860. else
  24861. cat >conftest.$ac_ext <<_ACEOF
  24862. /* confdefs.h. */
  24863. _ACEOF
  24864. cat confdefs.h >>conftest.$ac_ext
  24865. cat >>conftest.$ac_ext <<_ACEOF
  24866. /* end confdefs.h. */
  24867. $ac_includes_default
  24868. int
  24869. main ()
  24870. {
  24871. if ((int *) 0)
  24872. return 0;
  24873. if (sizeof (int))
  24874. return 0;
  24875. ;
  24876. return 0;
  24877. }
  24878. _ACEOF
  24879. rm -f conftest.$ac_objext
  24880. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24881. (eval $ac_compile) 2>conftest.er1
  24882. ac_status=$?
  24883. grep -v '^ *+' conftest.er1 >conftest.err
  24884. rm -f conftest.er1
  24885. cat conftest.err >&5
  24886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24887. (exit $ac_status); } &&
  24888. { ac_try='test -z "$ac_c_werror_flag"
  24889. || test ! -s conftest.err'
  24890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24891. (eval $ac_try) 2>&5
  24892. ac_status=$?
  24893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24894. (exit $ac_status); }; } &&
  24895. { ac_try='test -s conftest.$ac_objext'
  24896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24897. (eval $ac_try) 2>&5
  24898. ac_status=$?
  24899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24900. (exit $ac_status); }; }; then
  24901. ac_cv_type_int=yes
  24902. else
  24903. echo "$as_me: failed program was:" >&5
  24904. sed 's/^/| /' conftest.$ac_ext >&5
  24905. ac_cv_type_int=no
  24906. fi
  24907. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24908. fi
  24909. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  24910. echo "${ECHO_T}$ac_cv_type_int" >&6
  24911. echo "$as_me:$LINENO: checking size of int" >&5
  24912. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  24913. if test "${ac_cv_sizeof_int+set}" = set; then
  24914. echo $ECHO_N "(cached) $ECHO_C" >&6
  24915. else
  24916. if test "$ac_cv_type_int" = yes; then
  24917. # The cast to unsigned long works around a bug in the HP C Compiler
  24918. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  24919. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  24920. # This bug is HP SR number 8606223364.
  24921. if test "$cross_compiling" = yes; then
  24922. # Depending upon the size, compute the lo and hi bounds.
  24923. cat >conftest.$ac_ext <<_ACEOF
  24924. /* confdefs.h. */
  24925. _ACEOF
  24926. cat confdefs.h >>conftest.$ac_ext
  24927. cat >>conftest.$ac_ext <<_ACEOF
  24928. /* end confdefs.h. */
  24929. $ac_includes_default
  24930. int
  24931. main ()
  24932. {
  24933. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  24934. test_array [0] = 0
  24935. ;
  24936. return 0;
  24937. }
  24938. _ACEOF
  24939. rm -f conftest.$ac_objext
  24940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24941. (eval $ac_compile) 2>conftest.er1
  24942. ac_status=$?
  24943. grep -v '^ *+' conftest.er1 >conftest.err
  24944. rm -f conftest.er1
  24945. cat conftest.err >&5
  24946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24947. (exit $ac_status); } &&
  24948. { ac_try='test -z "$ac_c_werror_flag"
  24949. || test ! -s conftest.err'
  24950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24951. (eval $ac_try) 2>&5
  24952. ac_status=$?
  24953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24954. (exit $ac_status); }; } &&
  24955. { ac_try='test -s conftest.$ac_objext'
  24956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24957. (eval $ac_try) 2>&5
  24958. ac_status=$?
  24959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24960. (exit $ac_status); }; }; then
  24961. ac_lo=0 ac_mid=0
  24962. while :; do
  24963. cat >conftest.$ac_ext <<_ACEOF
  24964. /* confdefs.h. */
  24965. _ACEOF
  24966. cat confdefs.h >>conftest.$ac_ext
  24967. cat >>conftest.$ac_ext <<_ACEOF
  24968. /* end confdefs.h. */
  24969. $ac_includes_default
  24970. int
  24971. main ()
  24972. {
  24973. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  24974. test_array [0] = 0
  24975. ;
  24976. return 0;
  24977. }
  24978. _ACEOF
  24979. rm -f conftest.$ac_objext
  24980. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24981. (eval $ac_compile) 2>conftest.er1
  24982. ac_status=$?
  24983. grep -v '^ *+' conftest.er1 >conftest.err
  24984. rm -f conftest.er1
  24985. cat conftest.err >&5
  24986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24987. (exit $ac_status); } &&
  24988. { ac_try='test -z "$ac_c_werror_flag"
  24989. || test ! -s conftest.err'
  24990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24991. (eval $ac_try) 2>&5
  24992. ac_status=$?
  24993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24994. (exit $ac_status); }; } &&
  24995. { ac_try='test -s conftest.$ac_objext'
  24996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24997. (eval $ac_try) 2>&5
  24998. ac_status=$?
  24999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25000. (exit $ac_status); }; }; then
  25001. ac_hi=$ac_mid; break
  25002. else
  25003. echo "$as_me: failed program was:" >&5
  25004. sed 's/^/| /' conftest.$ac_ext >&5
  25005. ac_lo=`expr $ac_mid + 1`
  25006. if test $ac_lo -le $ac_mid; then
  25007. ac_lo= ac_hi=
  25008. break
  25009. fi
  25010. ac_mid=`expr 2 '*' $ac_mid + 1`
  25011. fi
  25012. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25013. done
  25014. else
  25015. echo "$as_me: failed program was:" >&5
  25016. sed 's/^/| /' conftest.$ac_ext >&5
  25017. cat >conftest.$ac_ext <<_ACEOF
  25018. /* confdefs.h. */
  25019. _ACEOF
  25020. cat confdefs.h >>conftest.$ac_ext
  25021. cat >>conftest.$ac_ext <<_ACEOF
  25022. /* end confdefs.h. */
  25023. $ac_includes_default
  25024. int
  25025. main ()
  25026. {
  25027. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  25028. test_array [0] = 0
  25029. ;
  25030. return 0;
  25031. }
  25032. _ACEOF
  25033. rm -f conftest.$ac_objext
  25034. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25035. (eval $ac_compile) 2>conftest.er1
  25036. ac_status=$?
  25037. grep -v '^ *+' conftest.er1 >conftest.err
  25038. rm -f conftest.er1
  25039. cat conftest.err >&5
  25040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25041. (exit $ac_status); } &&
  25042. { ac_try='test -z "$ac_c_werror_flag"
  25043. || test ! -s conftest.err'
  25044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25045. (eval $ac_try) 2>&5
  25046. ac_status=$?
  25047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25048. (exit $ac_status); }; } &&
  25049. { ac_try='test -s conftest.$ac_objext'
  25050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25051. (eval $ac_try) 2>&5
  25052. ac_status=$?
  25053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25054. (exit $ac_status); }; }; then
  25055. ac_hi=-1 ac_mid=-1
  25056. while :; do
  25057. cat >conftest.$ac_ext <<_ACEOF
  25058. /* confdefs.h. */
  25059. _ACEOF
  25060. cat confdefs.h >>conftest.$ac_ext
  25061. cat >>conftest.$ac_ext <<_ACEOF
  25062. /* end confdefs.h. */
  25063. $ac_includes_default
  25064. int
  25065. main ()
  25066. {
  25067. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  25068. test_array [0] = 0
  25069. ;
  25070. return 0;
  25071. }
  25072. _ACEOF
  25073. rm -f conftest.$ac_objext
  25074. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25075. (eval $ac_compile) 2>conftest.er1
  25076. ac_status=$?
  25077. grep -v '^ *+' conftest.er1 >conftest.err
  25078. rm -f conftest.er1
  25079. cat conftest.err >&5
  25080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25081. (exit $ac_status); } &&
  25082. { ac_try='test -z "$ac_c_werror_flag"
  25083. || test ! -s conftest.err'
  25084. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25085. (eval $ac_try) 2>&5
  25086. ac_status=$?
  25087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25088. (exit $ac_status); }; } &&
  25089. { ac_try='test -s conftest.$ac_objext'
  25090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25091. (eval $ac_try) 2>&5
  25092. ac_status=$?
  25093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25094. (exit $ac_status); }; }; then
  25095. ac_lo=$ac_mid; break
  25096. else
  25097. echo "$as_me: failed program was:" >&5
  25098. sed 's/^/| /' conftest.$ac_ext >&5
  25099. ac_hi=`expr '(' $ac_mid ')' - 1`
  25100. if test $ac_mid -le $ac_hi; then
  25101. ac_lo= ac_hi=
  25102. break
  25103. fi
  25104. ac_mid=`expr 2 '*' $ac_mid`
  25105. fi
  25106. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25107. done
  25108. else
  25109. echo "$as_me: failed program was:" >&5
  25110. sed 's/^/| /' conftest.$ac_ext >&5
  25111. ac_lo= ac_hi=
  25112. fi
  25113. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25114. fi
  25115. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25116. # Binary search between lo and hi bounds.
  25117. while test "x$ac_lo" != "x$ac_hi"; do
  25118. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  25119. cat >conftest.$ac_ext <<_ACEOF
  25120. /* confdefs.h. */
  25121. _ACEOF
  25122. cat confdefs.h >>conftest.$ac_ext
  25123. cat >>conftest.$ac_ext <<_ACEOF
  25124. /* end confdefs.h. */
  25125. $ac_includes_default
  25126. int
  25127. main ()
  25128. {
  25129. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  25130. test_array [0] = 0
  25131. ;
  25132. return 0;
  25133. }
  25134. _ACEOF
  25135. rm -f conftest.$ac_objext
  25136. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25137. (eval $ac_compile) 2>conftest.er1
  25138. ac_status=$?
  25139. grep -v '^ *+' conftest.er1 >conftest.err
  25140. rm -f conftest.er1
  25141. cat conftest.err >&5
  25142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25143. (exit $ac_status); } &&
  25144. { ac_try='test -z "$ac_c_werror_flag"
  25145. || test ! -s conftest.err'
  25146. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25147. (eval $ac_try) 2>&5
  25148. ac_status=$?
  25149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25150. (exit $ac_status); }; } &&
  25151. { ac_try='test -s conftest.$ac_objext'
  25152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25153. (eval $ac_try) 2>&5
  25154. ac_status=$?
  25155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25156. (exit $ac_status); }; }; then
  25157. ac_hi=$ac_mid
  25158. else
  25159. echo "$as_me: failed program was:" >&5
  25160. sed 's/^/| /' conftest.$ac_ext >&5
  25161. ac_lo=`expr '(' $ac_mid ')' + 1`
  25162. fi
  25163. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25164. done
  25165. case $ac_lo in
  25166. ?*) ac_cv_sizeof_int=$ac_lo;;
  25167. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  25168. See \`config.log' for more details." >&5
  25169. echo "$as_me: error: cannot compute sizeof (int), 77
  25170. See \`config.log' for more details." >&2;}
  25171. { (exit 1); exit 1; }; } ;;
  25172. esac
  25173. else
  25174. if test "$cross_compiling" = yes; then
  25175. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  25176. See \`config.log' for more details." >&5
  25177. echo "$as_me: error: cannot run test program while cross compiling
  25178. See \`config.log' for more details." >&2;}
  25179. { (exit 1); exit 1; }; }
  25180. else
  25181. cat >conftest.$ac_ext <<_ACEOF
  25182. /* confdefs.h. */
  25183. _ACEOF
  25184. cat confdefs.h >>conftest.$ac_ext
  25185. cat >>conftest.$ac_ext <<_ACEOF
  25186. /* end confdefs.h. */
  25187. $ac_includes_default
  25188. long longval () { return (long) (sizeof (int)); }
  25189. unsigned long ulongval () { return (long) (sizeof (int)); }
  25190. #include <stdio.h>
  25191. #include <stdlib.h>
  25192. int
  25193. main ()
  25194. {
  25195. FILE *f = fopen ("conftest.val", "w");
  25196. if (! f)
  25197. exit (1);
  25198. if (((long) (sizeof (int))) < 0)
  25199. {
  25200. long i = longval ();
  25201. if (i != ((long) (sizeof (int))))
  25202. exit (1);
  25203. fprintf (f, "%ld\n", i);
  25204. }
  25205. else
  25206. {
  25207. unsigned long i = ulongval ();
  25208. if (i != ((long) (sizeof (int))))
  25209. exit (1);
  25210. fprintf (f, "%lu\n", i);
  25211. }
  25212. exit (ferror (f) || fclose (f) != 0);
  25213. ;
  25214. return 0;
  25215. }
  25216. _ACEOF
  25217. rm -f conftest$ac_exeext
  25218. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25219. (eval $ac_link) 2>&5
  25220. ac_status=$?
  25221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25222. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25224. (eval $ac_try) 2>&5
  25225. ac_status=$?
  25226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25227. (exit $ac_status); }; }; then
  25228. ac_cv_sizeof_int=`cat conftest.val`
  25229. else
  25230. echo "$as_me: program exited with status $ac_status" >&5
  25231. echo "$as_me: failed program was:" >&5
  25232. sed 's/^/| /' conftest.$ac_ext >&5
  25233. ( exit $ac_status )
  25234. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  25235. See \`config.log' for more details." >&5
  25236. echo "$as_me: error: cannot compute sizeof (int), 77
  25237. See \`config.log' for more details." >&2;}
  25238. { (exit 1); exit 1; }; }
  25239. fi
  25240. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25241. fi
  25242. fi
  25243. rm -f conftest.val
  25244. else
  25245. ac_cv_sizeof_int=0
  25246. fi
  25247. fi
  25248. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  25249. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  25250. cat >>confdefs.h <<_ACEOF
  25251. #define SIZEOF_INT $ac_cv_sizeof_int
  25252. _ACEOF
  25253. echo "$as_me:$LINENO: checking for long" >&5
  25254. echo $ECHO_N "checking for long... $ECHO_C" >&6
  25255. if test "${ac_cv_type_long+set}" = set; then
  25256. echo $ECHO_N "(cached) $ECHO_C" >&6
  25257. else
  25258. cat >conftest.$ac_ext <<_ACEOF
  25259. /* confdefs.h. */
  25260. _ACEOF
  25261. cat confdefs.h >>conftest.$ac_ext
  25262. cat >>conftest.$ac_ext <<_ACEOF
  25263. /* end confdefs.h. */
  25264. $ac_includes_default
  25265. int
  25266. main ()
  25267. {
  25268. if ((long *) 0)
  25269. return 0;
  25270. if (sizeof (long))
  25271. return 0;
  25272. ;
  25273. return 0;
  25274. }
  25275. _ACEOF
  25276. rm -f conftest.$ac_objext
  25277. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25278. (eval $ac_compile) 2>conftest.er1
  25279. ac_status=$?
  25280. grep -v '^ *+' conftest.er1 >conftest.err
  25281. rm -f conftest.er1
  25282. cat conftest.err >&5
  25283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25284. (exit $ac_status); } &&
  25285. { ac_try='test -z "$ac_c_werror_flag"
  25286. || test ! -s conftest.err'
  25287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25288. (eval $ac_try) 2>&5
  25289. ac_status=$?
  25290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25291. (exit $ac_status); }; } &&
  25292. { ac_try='test -s conftest.$ac_objext'
  25293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25294. (eval $ac_try) 2>&5
  25295. ac_status=$?
  25296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25297. (exit $ac_status); }; }; then
  25298. ac_cv_type_long=yes
  25299. else
  25300. echo "$as_me: failed program was:" >&5
  25301. sed 's/^/| /' conftest.$ac_ext >&5
  25302. ac_cv_type_long=no
  25303. fi
  25304. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25305. fi
  25306. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  25307. echo "${ECHO_T}$ac_cv_type_long" >&6
  25308. echo "$as_me:$LINENO: checking size of long" >&5
  25309. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  25310. if test "${ac_cv_sizeof_long+set}" = set; then
  25311. echo $ECHO_N "(cached) $ECHO_C" >&6
  25312. else
  25313. if test "$ac_cv_type_long" = yes; then
  25314. # The cast to unsigned long works around a bug in the HP C Compiler
  25315. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25316. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25317. # This bug is HP SR number 8606223364.
  25318. if test "$cross_compiling" = yes; then
  25319. # Depending upon the size, compute the lo and hi bounds.
  25320. cat >conftest.$ac_ext <<_ACEOF
  25321. /* confdefs.h. */
  25322. _ACEOF
  25323. cat confdefs.h >>conftest.$ac_ext
  25324. cat >>conftest.$ac_ext <<_ACEOF
  25325. /* end confdefs.h. */
  25326. $ac_includes_default
  25327. int
  25328. main ()
  25329. {
  25330. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  25331. test_array [0] = 0
  25332. ;
  25333. return 0;
  25334. }
  25335. _ACEOF
  25336. rm -f conftest.$ac_objext
  25337. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25338. (eval $ac_compile) 2>conftest.er1
  25339. ac_status=$?
  25340. grep -v '^ *+' conftest.er1 >conftest.err
  25341. rm -f conftest.er1
  25342. cat conftest.err >&5
  25343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25344. (exit $ac_status); } &&
  25345. { ac_try='test -z "$ac_c_werror_flag"
  25346. || test ! -s conftest.err'
  25347. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25348. (eval $ac_try) 2>&5
  25349. ac_status=$?
  25350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25351. (exit $ac_status); }; } &&
  25352. { ac_try='test -s conftest.$ac_objext'
  25353. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25354. (eval $ac_try) 2>&5
  25355. ac_status=$?
  25356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25357. (exit $ac_status); }; }; then
  25358. ac_lo=0 ac_mid=0
  25359. while :; do
  25360. cat >conftest.$ac_ext <<_ACEOF
  25361. /* confdefs.h. */
  25362. _ACEOF
  25363. cat confdefs.h >>conftest.$ac_ext
  25364. cat >>conftest.$ac_ext <<_ACEOF
  25365. /* end confdefs.h. */
  25366. $ac_includes_default
  25367. int
  25368. main ()
  25369. {
  25370. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  25371. test_array [0] = 0
  25372. ;
  25373. return 0;
  25374. }
  25375. _ACEOF
  25376. rm -f conftest.$ac_objext
  25377. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25378. (eval $ac_compile) 2>conftest.er1
  25379. ac_status=$?
  25380. grep -v '^ *+' conftest.er1 >conftest.err
  25381. rm -f conftest.er1
  25382. cat conftest.err >&5
  25383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25384. (exit $ac_status); } &&
  25385. { ac_try='test -z "$ac_c_werror_flag"
  25386. || test ! -s conftest.err'
  25387. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25388. (eval $ac_try) 2>&5
  25389. ac_status=$?
  25390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25391. (exit $ac_status); }; } &&
  25392. { ac_try='test -s conftest.$ac_objext'
  25393. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25394. (eval $ac_try) 2>&5
  25395. ac_status=$?
  25396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25397. (exit $ac_status); }; }; then
  25398. ac_hi=$ac_mid; break
  25399. else
  25400. echo "$as_me: failed program was:" >&5
  25401. sed 's/^/| /' conftest.$ac_ext >&5
  25402. ac_lo=`expr $ac_mid + 1`
  25403. if test $ac_lo -le $ac_mid; then
  25404. ac_lo= ac_hi=
  25405. break
  25406. fi
  25407. ac_mid=`expr 2 '*' $ac_mid + 1`
  25408. fi
  25409. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25410. done
  25411. else
  25412. echo "$as_me: failed program was:" >&5
  25413. sed 's/^/| /' conftest.$ac_ext >&5
  25414. cat >conftest.$ac_ext <<_ACEOF
  25415. /* confdefs.h. */
  25416. _ACEOF
  25417. cat confdefs.h >>conftest.$ac_ext
  25418. cat >>conftest.$ac_ext <<_ACEOF
  25419. /* end confdefs.h. */
  25420. $ac_includes_default
  25421. int
  25422. main ()
  25423. {
  25424. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  25425. test_array [0] = 0
  25426. ;
  25427. return 0;
  25428. }
  25429. _ACEOF
  25430. rm -f conftest.$ac_objext
  25431. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25432. (eval $ac_compile) 2>conftest.er1
  25433. ac_status=$?
  25434. grep -v '^ *+' conftest.er1 >conftest.err
  25435. rm -f conftest.er1
  25436. cat conftest.err >&5
  25437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25438. (exit $ac_status); } &&
  25439. { ac_try='test -z "$ac_c_werror_flag"
  25440. || test ! -s conftest.err'
  25441. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25442. (eval $ac_try) 2>&5
  25443. ac_status=$?
  25444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25445. (exit $ac_status); }; } &&
  25446. { ac_try='test -s conftest.$ac_objext'
  25447. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25448. (eval $ac_try) 2>&5
  25449. ac_status=$?
  25450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25451. (exit $ac_status); }; }; then
  25452. ac_hi=-1 ac_mid=-1
  25453. while :; do
  25454. cat >conftest.$ac_ext <<_ACEOF
  25455. /* confdefs.h. */
  25456. _ACEOF
  25457. cat confdefs.h >>conftest.$ac_ext
  25458. cat >>conftest.$ac_ext <<_ACEOF
  25459. /* end confdefs.h. */
  25460. $ac_includes_default
  25461. int
  25462. main ()
  25463. {
  25464. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  25465. test_array [0] = 0
  25466. ;
  25467. return 0;
  25468. }
  25469. _ACEOF
  25470. rm -f conftest.$ac_objext
  25471. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25472. (eval $ac_compile) 2>conftest.er1
  25473. ac_status=$?
  25474. grep -v '^ *+' conftest.er1 >conftest.err
  25475. rm -f conftest.er1
  25476. cat conftest.err >&5
  25477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25478. (exit $ac_status); } &&
  25479. { ac_try='test -z "$ac_c_werror_flag"
  25480. || test ! -s conftest.err'
  25481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25482. (eval $ac_try) 2>&5
  25483. ac_status=$?
  25484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25485. (exit $ac_status); }; } &&
  25486. { ac_try='test -s conftest.$ac_objext'
  25487. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25488. (eval $ac_try) 2>&5
  25489. ac_status=$?
  25490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25491. (exit $ac_status); }; }; then
  25492. ac_lo=$ac_mid; break
  25493. else
  25494. echo "$as_me: failed program was:" >&5
  25495. sed 's/^/| /' conftest.$ac_ext >&5
  25496. ac_hi=`expr '(' $ac_mid ')' - 1`
  25497. if test $ac_mid -le $ac_hi; then
  25498. ac_lo= ac_hi=
  25499. break
  25500. fi
  25501. ac_mid=`expr 2 '*' $ac_mid`
  25502. fi
  25503. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25504. done
  25505. else
  25506. echo "$as_me: failed program was:" >&5
  25507. sed 's/^/| /' conftest.$ac_ext >&5
  25508. ac_lo= ac_hi=
  25509. fi
  25510. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25511. fi
  25512. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25513. # Binary search between lo and hi bounds.
  25514. while test "x$ac_lo" != "x$ac_hi"; do
  25515. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  25516. cat >conftest.$ac_ext <<_ACEOF
  25517. /* confdefs.h. */
  25518. _ACEOF
  25519. cat confdefs.h >>conftest.$ac_ext
  25520. cat >>conftest.$ac_ext <<_ACEOF
  25521. /* end confdefs.h. */
  25522. $ac_includes_default
  25523. int
  25524. main ()
  25525. {
  25526. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  25527. test_array [0] = 0
  25528. ;
  25529. return 0;
  25530. }
  25531. _ACEOF
  25532. rm -f conftest.$ac_objext
  25533. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25534. (eval $ac_compile) 2>conftest.er1
  25535. ac_status=$?
  25536. grep -v '^ *+' conftest.er1 >conftest.err
  25537. rm -f conftest.er1
  25538. cat conftest.err >&5
  25539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25540. (exit $ac_status); } &&
  25541. { ac_try='test -z "$ac_c_werror_flag"
  25542. || test ! -s conftest.err'
  25543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25544. (eval $ac_try) 2>&5
  25545. ac_status=$?
  25546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25547. (exit $ac_status); }; } &&
  25548. { ac_try='test -s conftest.$ac_objext'
  25549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25550. (eval $ac_try) 2>&5
  25551. ac_status=$?
  25552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25553. (exit $ac_status); }; }; then
  25554. ac_hi=$ac_mid
  25555. else
  25556. echo "$as_me: failed program was:" >&5
  25557. sed 's/^/| /' conftest.$ac_ext >&5
  25558. ac_lo=`expr '(' $ac_mid ')' + 1`
  25559. fi
  25560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25561. done
  25562. case $ac_lo in
  25563. ?*) ac_cv_sizeof_long=$ac_lo;;
  25564. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  25565. See \`config.log' for more details." >&5
  25566. echo "$as_me: error: cannot compute sizeof (long), 77
  25567. See \`config.log' for more details." >&2;}
  25568. { (exit 1); exit 1; }; } ;;
  25569. esac
  25570. else
  25571. if test "$cross_compiling" = yes; then
  25572. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  25573. See \`config.log' for more details." >&5
  25574. echo "$as_me: error: cannot run test program while cross compiling
  25575. See \`config.log' for more details." >&2;}
  25576. { (exit 1); exit 1; }; }
  25577. else
  25578. cat >conftest.$ac_ext <<_ACEOF
  25579. /* confdefs.h. */
  25580. _ACEOF
  25581. cat confdefs.h >>conftest.$ac_ext
  25582. cat >>conftest.$ac_ext <<_ACEOF
  25583. /* end confdefs.h. */
  25584. $ac_includes_default
  25585. long longval () { return (long) (sizeof (long)); }
  25586. unsigned long ulongval () { return (long) (sizeof (long)); }
  25587. #include <stdio.h>
  25588. #include <stdlib.h>
  25589. int
  25590. main ()
  25591. {
  25592. FILE *f = fopen ("conftest.val", "w");
  25593. if (! f)
  25594. exit (1);
  25595. if (((long) (sizeof (long))) < 0)
  25596. {
  25597. long i = longval ();
  25598. if (i != ((long) (sizeof (long))))
  25599. exit (1);
  25600. fprintf (f, "%ld\n", i);
  25601. }
  25602. else
  25603. {
  25604. unsigned long i = ulongval ();
  25605. if (i != ((long) (sizeof (long))))
  25606. exit (1);
  25607. fprintf (f, "%lu\n", i);
  25608. }
  25609. exit (ferror (f) || fclose (f) != 0);
  25610. ;
  25611. return 0;
  25612. }
  25613. _ACEOF
  25614. rm -f conftest$ac_exeext
  25615. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25616. (eval $ac_link) 2>&5
  25617. ac_status=$?
  25618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25619. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25620. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25621. (eval $ac_try) 2>&5
  25622. ac_status=$?
  25623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25624. (exit $ac_status); }; }; then
  25625. ac_cv_sizeof_long=`cat conftest.val`
  25626. else
  25627. echo "$as_me: program exited with status $ac_status" >&5
  25628. echo "$as_me: failed program was:" >&5
  25629. sed 's/^/| /' conftest.$ac_ext >&5
  25630. ( exit $ac_status )
  25631. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  25632. See \`config.log' for more details." >&5
  25633. echo "$as_me: error: cannot compute sizeof (long), 77
  25634. See \`config.log' for more details." >&2;}
  25635. { (exit 1); exit 1; }; }
  25636. fi
  25637. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  25638. fi
  25639. fi
  25640. rm -f conftest.val
  25641. else
  25642. ac_cv_sizeof_long=0
  25643. fi
  25644. fi
  25645. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  25646. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  25647. cat >>confdefs.h <<_ACEOF
  25648. #define SIZEOF_LONG $ac_cv_sizeof_long
  25649. _ACEOF
  25650. echo "$as_me:$LINENO: checking for short" >&5
  25651. echo $ECHO_N "checking for short... $ECHO_C" >&6
  25652. if test "${ac_cv_type_short+set}" = set; then
  25653. echo $ECHO_N "(cached) $ECHO_C" >&6
  25654. else
  25655. cat >conftest.$ac_ext <<_ACEOF
  25656. /* confdefs.h. */
  25657. _ACEOF
  25658. cat confdefs.h >>conftest.$ac_ext
  25659. cat >>conftest.$ac_ext <<_ACEOF
  25660. /* end confdefs.h. */
  25661. $ac_includes_default
  25662. int
  25663. main ()
  25664. {
  25665. if ((short *) 0)
  25666. return 0;
  25667. if (sizeof (short))
  25668. return 0;
  25669. ;
  25670. return 0;
  25671. }
  25672. _ACEOF
  25673. rm -f conftest.$ac_objext
  25674. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25675. (eval $ac_compile) 2>conftest.er1
  25676. ac_status=$?
  25677. grep -v '^ *+' conftest.er1 >conftest.err
  25678. rm -f conftest.er1
  25679. cat conftest.err >&5
  25680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25681. (exit $ac_status); } &&
  25682. { ac_try='test -z "$ac_c_werror_flag"
  25683. || test ! -s conftest.err'
  25684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25685. (eval $ac_try) 2>&5
  25686. ac_status=$?
  25687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25688. (exit $ac_status); }; } &&
  25689. { ac_try='test -s conftest.$ac_objext'
  25690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25691. (eval $ac_try) 2>&5
  25692. ac_status=$?
  25693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25694. (exit $ac_status); }; }; then
  25695. ac_cv_type_short=yes
  25696. else
  25697. echo "$as_me: failed program was:" >&5
  25698. sed 's/^/| /' conftest.$ac_ext >&5
  25699. ac_cv_type_short=no
  25700. fi
  25701. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25702. fi
  25703. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  25704. echo "${ECHO_T}$ac_cv_type_short" >&6
  25705. echo "$as_me:$LINENO: checking size of short" >&5
  25706. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  25707. if test "${ac_cv_sizeof_short+set}" = set; then
  25708. echo $ECHO_N "(cached) $ECHO_C" >&6
  25709. else
  25710. if test "$ac_cv_type_short" = yes; then
  25711. # The cast to unsigned long works around a bug in the HP C Compiler
  25712. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25713. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25714. # This bug is HP SR number 8606223364.
  25715. if test "$cross_compiling" = yes; then
  25716. # Depending upon the size, compute the lo and hi bounds.
  25717. cat >conftest.$ac_ext <<_ACEOF
  25718. /* confdefs.h. */
  25719. _ACEOF
  25720. cat confdefs.h >>conftest.$ac_ext
  25721. cat >>conftest.$ac_ext <<_ACEOF
  25722. /* end confdefs.h. */
  25723. $ac_includes_default
  25724. int
  25725. main ()
  25726. {
  25727. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  25728. test_array [0] = 0
  25729. ;
  25730. return 0;
  25731. }
  25732. _ACEOF
  25733. rm -f conftest.$ac_objext
  25734. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25735. (eval $ac_compile) 2>conftest.er1
  25736. ac_status=$?
  25737. grep -v '^ *+' conftest.er1 >conftest.err
  25738. rm -f conftest.er1
  25739. cat conftest.err >&5
  25740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25741. (exit $ac_status); } &&
  25742. { ac_try='test -z "$ac_c_werror_flag"
  25743. || test ! -s conftest.err'
  25744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25745. (eval $ac_try) 2>&5
  25746. ac_status=$?
  25747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25748. (exit $ac_status); }; } &&
  25749. { ac_try='test -s conftest.$ac_objext'
  25750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25751. (eval $ac_try) 2>&5
  25752. ac_status=$?
  25753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25754. (exit $ac_status); }; }; then
  25755. ac_lo=0 ac_mid=0
  25756. while :; do
  25757. cat >conftest.$ac_ext <<_ACEOF
  25758. /* confdefs.h. */
  25759. _ACEOF
  25760. cat confdefs.h >>conftest.$ac_ext
  25761. cat >>conftest.$ac_ext <<_ACEOF
  25762. /* end confdefs.h. */
  25763. $ac_includes_default
  25764. int
  25765. main ()
  25766. {
  25767. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  25768. test_array [0] = 0
  25769. ;
  25770. return 0;
  25771. }
  25772. _ACEOF
  25773. rm -f conftest.$ac_objext
  25774. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25775. (eval $ac_compile) 2>conftest.er1
  25776. ac_status=$?
  25777. grep -v '^ *+' conftest.er1 >conftest.err
  25778. rm -f conftest.er1
  25779. cat conftest.err >&5
  25780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25781. (exit $ac_status); } &&
  25782. { ac_try='test -z "$ac_c_werror_flag"
  25783. || test ! -s conftest.err'
  25784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25785. (eval $ac_try) 2>&5
  25786. ac_status=$?
  25787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25788. (exit $ac_status); }; } &&
  25789. { ac_try='test -s conftest.$ac_objext'
  25790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25791. (eval $ac_try) 2>&5
  25792. ac_status=$?
  25793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25794. (exit $ac_status); }; }; then
  25795. ac_hi=$ac_mid; break
  25796. else
  25797. echo "$as_me: failed program was:" >&5
  25798. sed 's/^/| /' conftest.$ac_ext >&5
  25799. ac_lo=`expr $ac_mid + 1`
  25800. if test $ac_lo -le $ac_mid; then
  25801. ac_lo= ac_hi=
  25802. break
  25803. fi
  25804. ac_mid=`expr 2 '*' $ac_mid + 1`
  25805. fi
  25806. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25807. done
  25808. else
  25809. echo "$as_me: failed program was:" >&5
  25810. sed 's/^/| /' conftest.$ac_ext >&5
  25811. cat >conftest.$ac_ext <<_ACEOF
  25812. /* confdefs.h. */
  25813. _ACEOF
  25814. cat confdefs.h >>conftest.$ac_ext
  25815. cat >>conftest.$ac_ext <<_ACEOF
  25816. /* end confdefs.h. */
  25817. $ac_includes_default
  25818. int
  25819. main ()
  25820. {
  25821. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  25822. test_array [0] = 0
  25823. ;
  25824. return 0;
  25825. }
  25826. _ACEOF
  25827. rm -f conftest.$ac_objext
  25828. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25829. (eval $ac_compile) 2>conftest.er1
  25830. ac_status=$?
  25831. grep -v '^ *+' conftest.er1 >conftest.err
  25832. rm -f conftest.er1
  25833. cat conftest.err >&5
  25834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25835. (exit $ac_status); } &&
  25836. { ac_try='test -z "$ac_c_werror_flag"
  25837. || test ! -s conftest.err'
  25838. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25839. (eval $ac_try) 2>&5
  25840. ac_status=$?
  25841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25842. (exit $ac_status); }; } &&
  25843. { ac_try='test -s conftest.$ac_objext'
  25844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25845. (eval $ac_try) 2>&5
  25846. ac_status=$?
  25847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25848. (exit $ac_status); }; }; then
  25849. ac_hi=-1 ac_mid=-1
  25850. while :; do
  25851. cat >conftest.$ac_ext <<_ACEOF
  25852. /* confdefs.h. */
  25853. _ACEOF
  25854. cat confdefs.h >>conftest.$ac_ext
  25855. cat >>conftest.$ac_ext <<_ACEOF
  25856. /* end confdefs.h. */
  25857. $ac_includes_default
  25858. int
  25859. main ()
  25860. {
  25861. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  25862. test_array [0] = 0
  25863. ;
  25864. return 0;
  25865. }
  25866. _ACEOF
  25867. rm -f conftest.$ac_objext
  25868. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25869. (eval $ac_compile) 2>conftest.er1
  25870. ac_status=$?
  25871. grep -v '^ *+' conftest.er1 >conftest.err
  25872. rm -f conftest.er1
  25873. cat conftest.err >&5
  25874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25875. (exit $ac_status); } &&
  25876. { ac_try='test -z "$ac_c_werror_flag"
  25877. || test ! -s conftest.err'
  25878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25879. (eval $ac_try) 2>&5
  25880. ac_status=$?
  25881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25882. (exit $ac_status); }; } &&
  25883. { ac_try='test -s conftest.$ac_objext'
  25884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25885. (eval $ac_try) 2>&5
  25886. ac_status=$?
  25887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25888. (exit $ac_status); }; }; then
  25889. ac_lo=$ac_mid; break
  25890. else
  25891. echo "$as_me: failed program was:" >&5
  25892. sed 's/^/| /' conftest.$ac_ext >&5
  25893. ac_hi=`expr '(' $ac_mid ')' - 1`
  25894. if test $ac_mid -le $ac_hi; then
  25895. ac_lo= ac_hi=
  25896. break
  25897. fi
  25898. ac_mid=`expr 2 '*' $ac_mid`
  25899. fi
  25900. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25901. done
  25902. else
  25903. echo "$as_me: failed program was:" >&5
  25904. sed 's/^/| /' conftest.$ac_ext >&5
  25905. ac_lo= ac_hi=
  25906. fi
  25907. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25908. fi
  25909. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25910. # Binary search between lo and hi bounds.
  25911. while test "x$ac_lo" != "x$ac_hi"; do
  25912. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  25913. cat >conftest.$ac_ext <<_ACEOF
  25914. /* confdefs.h. */
  25915. _ACEOF
  25916. cat confdefs.h >>conftest.$ac_ext
  25917. cat >>conftest.$ac_ext <<_ACEOF
  25918. /* end confdefs.h. */
  25919. $ac_includes_default
  25920. int
  25921. main ()
  25922. {
  25923. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  25924. test_array [0] = 0
  25925. ;
  25926. return 0;
  25927. }
  25928. _ACEOF
  25929. rm -f conftest.$ac_objext
  25930. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25931. (eval $ac_compile) 2>conftest.er1
  25932. ac_status=$?
  25933. grep -v '^ *+' conftest.er1 >conftest.err
  25934. rm -f conftest.er1
  25935. cat conftest.err >&5
  25936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25937. (exit $ac_status); } &&
  25938. { ac_try='test -z "$ac_c_werror_flag"
  25939. || test ! -s conftest.err'
  25940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25941. (eval $ac_try) 2>&5
  25942. ac_status=$?
  25943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25944. (exit $ac_status); }; } &&
  25945. { ac_try='test -s conftest.$ac_objext'
  25946. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25947. (eval $ac_try) 2>&5
  25948. ac_status=$?
  25949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25950. (exit $ac_status); }; }; then
  25951. ac_hi=$ac_mid
  25952. else
  25953. echo "$as_me: failed program was:" >&5
  25954. sed 's/^/| /' conftest.$ac_ext >&5
  25955. ac_lo=`expr '(' $ac_mid ')' + 1`
  25956. fi
  25957. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25958. done
  25959. case $ac_lo in
  25960. ?*) ac_cv_sizeof_short=$ac_lo;;
  25961. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  25962. See \`config.log' for more details." >&5
  25963. echo "$as_me: error: cannot compute sizeof (short), 77
  25964. See \`config.log' for more details." >&2;}
  25965. { (exit 1); exit 1; }; } ;;
  25966. esac
  25967. else
  25968. if test "$cross_compiling" = yes; then
  25969. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  25970. See \`config.log' for more details." >&5
  25971. echo "$as_me: error: cannot run test program while cross compiling
  25972. See \`config.log' for more details." >&2;}
  25973. { (exit 1); exit 1; }; }
  25974. else
  25975. cat >conftest.$ac_ext <<_ACEOF
  25976. /* confdefs.h. */
  25977. _ACEOF
  25978. cat confdefs.h >>conftest.$ac_ext
  25979. cat >>conftest.$ac_ext <<_ACEOF
  25980. /* end confdefs.h. */
  25981. $ac_includes_default
  25982. long longval () { return (long) (sizeof (short)); }
  25983. unsigned long ulongval () { return (long) (sizeof (short)); }
  25984. #include <stdio.h>
  25985. #include <stdlib.h>
  25986. int
  25987. main ()
  25988. {
  25989. FILE *f = fopen ("conftest.val", "w");
  25990. if (! f)
  25991. exit (1);
  25992. if (((long) (sizeof (short))) < 0)
  25993. {
  25994. long i = longval ();
  25995. if (i != ((long) (sizeof (short))))
  25996. exit (1);
  25997. fprintf (f, "%ld\n", i);
  25998. }
  25999. else
  26000. {
  26001. unsigned long i = ulongval ();
  26002. if (i != ((long) (sizeof (short))))
  26003. exit (1);
  26004. fprintf (f, "%lu\n", i);
  26005. }
  26006. exit (ferror (f) || fclose (f) != 0);
  26007. ;
  26008. return 0;
  26009. }
  26010. _ACEOF
  26011. rm -f conftest$ac_exeext
  26012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26013. (eval $ac_link) 2>&5
  26014. ac_status=$?
  26015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26016. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26018. (eval $ac_try) 2>&5
  26019. ac_status=$?
  26020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26021. (exit $ac_status); }; }; then
  26022. ac_cv_sizeof_short=`cat conftest.val`
  26023. else
  26024. echo "$as_me: program exited with status $ac_status" >&5
  26025. echo "$as_me: failed program was:" >&5
  26026. sed 's/^/| /' conftest.$ac_ext >&5
  26027. ( exit $ac_status )
  26028. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  26029. See \`config.log' for more details." >&5
  26030. echo "$as_me: error: cannot compute sizeof (short), 77
  26031. See \`config.log' for more details." >&2;}
  26032. { (exit 1); exit 1; }; }
  26033. fi
  26034. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26035. fi
  26036. fi
  26037. rm -f conftest.val
  26038. else
  26039. ac_cv_sizeof_short=0
  26040. fi
  26041. fi
  26042. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  26043. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  26044. cat >>confdefs.h <<_ACEOF
  26045. #define SIZEOF_SHORT $ac_cv_sizeof_short
  26046. _ACEOF
  26047. # ----------------------------------------------------------------------
  26048. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  26049. # ----------------------------------------------------------------------
  26050. echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  26051. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
  26052. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  26053. echo $ECHO_N "(cached) $ECHO_C" >&6
  26054. else
  26055. ac_check_lib_save_LIBS=$LIBS
  26056. LIBS="-lgen $LIBS"
  26057. cat >conftest.$ac_ext <<_ACEOF
  26058. /* confdefs.h. */
  26059. _ACEOF
  26060. cat confdefs.h >>conftest.$ac_ext
  26061. cat >>conftest.$ac_ext <<_ACEOF
  26062. /* end confdefs.h. */
  26063. /* Override any gcc2 internal prototype to avoid an error. */
  26064. #ifdef __cplusplus
  26065. extern "C"
  26066. #endif
  26067. /* We use char because int might match the return type of a gcc2
  26068. builtin and then its argument prototype would still apply. */
  26069. char pathfind ();
  26070. int
  26071. main ()
  26072. {
  26073. pathfind ();
  26074. ;
  26075. return 0;
  26076. }
  26077. _ACEOF
  26078. rm -f conftest.$ac_objext conftest$ac_exeext
  26079. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26080. (eval $ac_link) 2>conftest.er1
  26081. ac_status=$?
  26082. grep -v '^ *+' conftest.er1 >conftest.err
  26083. rm -f conftest.er1
  26084. cat conftest.err >&5
  26085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26086. (exit $ac_status); } &&
  26087. { ac_try='test -z "$ac_c_werror_flag"
  26088. || test ! -s conftest.err'
  26089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26090. (eval $ac_try) 2>&5
  26091. ac_status=$?
  26092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26093. (exit $ac_status); }; } &&
  26094. { ac_try='test -s conftest$ac_exeext'
  26095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26096. (eval $ac_try) 2>&5
  26097. ac_status=$?
  26098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26099. (exit $ac_status); }; }; then
  26100. ac_cv_lib_gen_pathfind=yes
  26101. else
  26102. echo "$as_me: failed program was:" >&5
  26103. sed 's/^/| /' conftest.$ac_ext >&5
  26104. ac_cv_lib_gen_pathfind=no
  26105. fi
  26106. rm -f conftest.err conftest.$ac_objext \
  26107. conftest$ac_exeext conftest.$ac_ext
  26108. LIBS=$ac_check_lib_save_LIBS
  26109. fi
  26110. echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  26111. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
  26112. if test $ac_cv_lib_gen_pathfind = yes; then
  26113. cat >>confdefs.h <<_ACEOF
  26114. #define HAVE_LIBGEN 1
  26115. _ACEOF
  26116. LIBS="-lgen $LIBS"
  26117. fi
  26118. for ac_func in vprintf
  26119. do
  26120. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  26121. echo "$as_me:$LINENO: checking for $ac_func" >&5
  26122. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  26123. if eval "test \"\${$as_ac_var+set}\" = set"; then
  26124. echo $ECHO_N "(cached) $ECHO_C" >&6
  26125. else
  26126. cat >conftest.$ac_ext <<_ACEOF
  26127. /* confdefs.h. */
  26128. _ACEOF
  26129. cat confdefs.h >>conftest.$ac_ext
  26130. cat >>conftest.$ac_ext <<_ACEOF
  26131. /* end confdefs.h. */
  26132. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  26133. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26134. #define $ac_func innocuous_$ac_func
  26135. /* System header to define __stub macros and hopefully few prototypes,
  26136. which can conflict with char $ac_func (); below.
  26137. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26138. <limits.h> exists even on freestanding compilers. */
  26139. #ifdef __STDC__
  26140. # include <limits.h>
  26141. #else
  26142. # include <assert.h>
  26143. #endif
  26144. #undef $ac_func
  26145. /* Override any gcc2 internal prototype to avoid an error. */
  26146. #ifdef __cplusplus
  26147. extern "C"
  26148. {
  26149. #endif
  26150. /* We use char because int might match the return type of a gcc2
  26151. builtin and then its argument prototype would still apply. */
  26152. char $ac_func ();
  26153. /* The GNU C library defines this for functions which it implements
  26154. to always fail with ENOSYS. Some functions are actually named
  26155. something starting with __ and the normal name is an alias. */
  26156. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  26157. choke me
  26158. #else
  26159. char (*f) () = $ac_func;
  26160. #endif
  26161. #ifdef __cplusplus
  26162. }
  26163. #endif
  26164. int
  26165. main ()
  26166. {
  26167. return f != $ac_func;
  26168. ;
  26169. return 0;
  26170. }
  26171. _ACEOF
  26172. rm -f conftest.$ac_objext conftest$ac_exeext
  26173. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26174. (eval $ac_link) 2>conftest.er1
  26175. ac_status=$?
  26176. grep -v '^ *+' conftest.er1 >conftest.err
  26177. rm -f conftest.er1
  26178. cat conftest.err >&5
  26179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26180. (exit $ac_status); } &&
  26181. { ac_try='test -z "$ac_c_werror_flag"
  26182. || test ! -s conftest.err'
  26183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26184. (eval $ac_try) 2>&5
  26185. ac_status=$?
  26186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26187. (exit $ac_status); }; } &&
  26188. { ac_try='test -s conftest$ac_exeext'
  26189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26190. (eval $ac_try) 2>&5
  26191. ac_status=$?
  26192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26193. (exit $ac_status); }; }; then
  26194. eval "$as_ac_var=yes"
  26195. else
  26196. echo "$as_me: failed program was:" >&5
  26197. sed 's/^/| /' conftest.$ac_ext >&5
  26198. eval "$as_ac_var=no"
  26199. fi
  26200. rm -f conftest.err conftest.$ac_objext \
  26201. conftest$ac_exeext conftest.$ac_ext
  26202. fi
  26203. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  26204. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  26205. if test `eval echo '${'$as_ac_var'}'` = yes; then
  26206. cat >>confdefs.h <<_ACEOF
  26207. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  26208. _ACEOF
  26209. echo "$as_me:$LINENO: checking for _doprnt" >&5
  26210. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  26211. if test "${ac_cv_func__doprnt+set}" = set; then
  26212. echo $ECHO_N "(cached) $ECHO_C" >&6
  26213. else
  26214. cat >conftest.$ac_ext <<_ACEOF
  26215. /* confdefs.h. */
  26216. _ACEOF
  26217. cat confdefs.h >>conftest.$ac_ext
  26218. cat >>conftest.$ac_ext <<_ACEOF
  26219. /* end confdefs.h. */
  26220. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  26221. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26222. #define _doprnt innocuous__doprnt
  26223. /* System header to define __stub macros and hopefully few prototypes,
  26224. which can conflict with char _doprnt (); below.
  26225. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26226. <limits.h> exists even on freestanding compilers. */
  26227. #ifdef __STDC__
  26228. # include <limits.h>
  26229. #else
  26230. # include <assert.h>
  26231. #endif
  26232. #undef _doprnt
  26233. /* Override any gcc2 internal prototype to avoid an error. */
  26234. #ifdef __cplusplus
  26235. extern "C"
  26236. {
  26237. #endif
  26238. /* We use char because int might match the return type of a gcc2
  26239. builtin and then its argument prototype would still apply. */
  26240. char _doprnt ();
  26241. /* The GNU C library defines this for functions which it implements
  26242. to always fail with ENOSYS. Some functions are actually named
  26243. something starting with __ and the normal name is an alias. */
  26244. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  26245. choke me
  26246. #else
  26247. char (*f) () = _doprnt;
  26248. #endif
  26249. #ifdef __cplusplus
  26250. }
  26251. #endif
  26252. int
  26253. main ()
  26254. {
  26255. return f != _doprnt;
  26256. ;
  26257. return 0;
  26258. }
  26259. _ACEOF
  26260. rm -f conftest.$ac_objext conftest$ac_exeext
  26261. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26262. (eval $ac_link) 2>conftest.er1
  26263. ac_status=$?
  26264. grep -v '^ *+' conftest.er1 >conftest.err
  26265. rm -f conftest.er1
  26266. cat conftest.err >&5
  26267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26268. (exit $ac_status); } &&
  26269. { ac_try='test -z "$ac_c_werror_flag"
  26270. || test ! -s conftest.err'
  26271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26272. (eval $ac_try) 2>&5
  26273. ac_status=$?
  26274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26275. (exit $ac_status); }; } &&
  26276. { ac_try='test -s conftest$ac_exeext'
  26277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26278. (eval $ac_try) 2>&5
  26279. ac_status=$?
  26280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26281. (exit $ac_status); }; }; then
  26282. ac_cv_func__doprnt=yes
  26283. else
  26284. echo "$as_me: failed program was:" >&5
  26285. sed 's/^/| /' conftest.$ac_ext >&5
  26286. ac_cv_func__doprnt=no
  26287. fi
  26288. rm -f conftest.err conftest.$ac_objext \
  26289. conftest$ac_exeext conftest.$ac_ext
  26290. fi
  26291. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  26292. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  26293. if test $ac_cv_func__doprnt = yes; then
  26294. cat >>confdefs.h <<\_ACEOF
  26295. #define HAVE_DOPRNT 1
  26296. _ACEOF
  26297. fi
  26298. fi
  26299. done
  26300. for ac_func in mmap canonicalize_file_name snprintf strdup
  26301. do
  26302. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  26303. echo "$as_me:$LINENO: checking for $ac_func" >&5
  26304. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  26305. if eval "test \"\${$as_ac_var+set}\" = set"; then
  26306. echo $ECHO_N "(cached) $ECHO_C" >&6
  26307. else
  26308. cat >conftest.$ac_ext <<_ACEOF
  26309. /* confdefs.h. */
  26310. _ACEOF
  26311. cat confdefs.h >>conftest.$ac_ext
  26312. cat >>conftest.$ac_ext <<_ACEOF
  26313. /* end confdefs.h. */
  26314. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  26315. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26316. #define $ac_func innocuous_$ac_func
  26317. /* System header to define __stub macros and hopefully few prototypes,
  26318. which can conflict with char $ac_func (); below.
  26319. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26320. <limits.h> exists even on freestanding compilers. */
  26321. #ifdef __STDC__
  26322. # include <limits.h>
  26323. #else
  26324. # include <assert.h>
  26325. #endif
  26326. #undef $ac_func
  26327. /* Override any gcc2 internal prototype to avoid an error. */
  26328. #ifdef __cplusplus
  26329. extern "C"
  26330. {
  26331. #endif
  26332. /* We use char because int might match the return type of a gcc2
  26333. builtin and then its argument prototype would still apply. */
  26334. char $ac_func ();
  26335. /* The GNU C library defines this for functions which it implements
  26336. to always fail with ENOSYS. Some functions are actually named
  26337. something starting with __ and the normal name is an alias. */
  26338. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  26339. choke me
  26340. #else
  26341. char (*f) () = $ac_func;
  26342. #endif
  26343. #ifdef __cplusplus
  26344. }
  26345. #endif
  26346. int
  26347. main ()
  26348. {
  26349. return f != $ac_func;
  26350. ;
  26351. return 0;
  26352. }
  26353. _ACEOF
  26354. rm -f conftest.$ac_objext conftest$ac_exeext
  26355. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26356. (eval $ac_link) 2>conftest.er1
  26357. ac_status=$?
  26358. grep -v '^ *+' conftest.er1 >conftest.err
  26359. rm -f conftest.er1
  26360. cat conftest.err >&5
  26361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26362. (exit $ac_status); } &&
  26363. { ac_try='test -z "$ac_c_werror_flag"
  26364. || test ! -s conftest.err'
  26365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26366. (eval $ac_try) 2>&5
  26367. ac_status=$?
  26368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26369. (exit $ac_status); }; } &&
  26370. { ac_try='test -s conftest$ac_exeext'
  26371. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26372. (eval $ac_try) 2>&5
  26373. ac_status=$?
  26374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26375. (exit $ac_status); }; }; then
  26376. eval "$as_ac_var=yes"
  26377. else
  26378. echo "$as_me: failed program was:" >&5
  26379. sed 's/^/| /' conftest.$ac_ext >&5
  26380. eval "$as_ac_var=no"
  26381. fi
  26382. rm -f conftest.err conftest.$ac_objext \
  26383. conftest$ac_exeext conftest.$ac_ext
  26384. fi
  26385. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  26386. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  26387. if test `eval echo '${'$as_ac_var'}'` = yes; then
  26388. cat >>confdefs.h <<_ACEOF
  26389. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  26390. _ACEOF
  26391. fi
  26392. done
  26393. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  26394. fi
  26395. # Check to see if a reg expr header is specified.
  26396. # Check whether --with-regex-header or --without-regex-header was given.
  26397. if test "${with_regex_header+set}" = set; then
  26398. withval="$with_regex_header"
  26399. libopts_cv_with_regex_header=${with_regex_header}
  26400. else
  26401. echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  26402. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
  26403. if test "${libopts_cv_with_regex_header+set}" = set; then
  26404. echo $ECHO_N "(cached) $ECHO_C" >&6
  26405. else
  26406. libopts_cv_with_regex_header=no
  26407. fi
  26408. echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  26409. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
  26410. fi; # end of AC_ARG_WITH
  26411. if test "X${libopts_cv_with_regex_header}" != Xno
  26412. then
  26413. cat >>confdefs.h <<_ACEOF
  26414. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  26415. _ACEOF
  26416. else
  26417. cat >>confdefs.h <<\_ACEOF
  26418. #define REGEX_HEADER <regex.h>
  26419. _ACEOF
  26420. fi
  26421. # Check to see if a working libregex can be found.
  26422. # Check whether --with-libregex or --without-libregex was given.
  26423. if test "${with_libregex+set}" = set; then
  26424. withval="$with_libregex"
  26425. libopts_cv_with_libregex_root=${with_libregex}
  26426. else
  26427. echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  26428. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
  26429. if test "${libopts_cv_with_libregex_root+set}" = set; then
  26430. echo $ECHO_N "(cached) $ECHO_C" >&6
  26431. else
  26432. libopts_cv_with_libregex_root=no
  26433. fi
  26434. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  26435. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
  26436. fi; # end of AC_ARG_WITH libregex
  26437. if test "${with_libguile+set}" = set && \
  26438. test "${withval}" = no
  26439. then ## disabled by request
  26440. libopts_cv_with_libregex_root=no
  26441. libopts_cv_with_libregex_cflags=no
  26442. libopts_cv_with_libregex_libs=no
  26443. else
  26444. # Check whether --with-libregex-cflags or --without-libregex-cflags was given.
  26445. if test "${with_libregex_cflags+set}" = set; then
  26446. withval="$with_libregex_cflags"
  26447. libopts_cv_with_libregex_cflags=${with_regex_cflags}
  26448. else
  26449. echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  26450. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
  26451. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  26452. echo $ECHO_N "(cached) $ECHO_C" >&6
  26453. else
  26454. libopts_cv_with_libregex_cflags=no
  26455. fi
  26456. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  26457. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
  26458. fi; # end of AC_ARG_WITH libregex-cflags
  26459. # Check whether --with-libregex-libs or --without-libregex-libs was given.
  26460. if test "${with_libregex_libs+set}" = set; then
  26461. withval="$with_libregex_libs"
  26462. libopts_cv_with_libregex_libs=${with_regex_libs}
  26463. else
  26464. echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  26465. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
  26466. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  26467. echo $ECHO_N "(cached) $ECHO_C" >&6
  26468. else
  26469. libopts_cv_with_libregex_libs=no
  26470. fi
  26471. echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  26472. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
  26473. fi; # end of AC_ARG_WITH libregex-libs
  26474. case "X${libopts_cv_with_libregex_cflags}" in
  26475. Xyes|Xno|X )
  26476. case "X${libopts_cv_with_libregex_root}" in
  26477. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  26478. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  26479. esac
  26480. esac
  26481. case "X${libopts_cv_with_libregex_libs}" in
  26482. Xyes|Xno|X )
  26483. case "X${libopts_cv_with_libregex_root}" in
  26484. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  26485. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  26486. esac
  26487. esac
  26488. libopts_save_CPPFLAGS="${CPPFLAGS}"
  26489. libopts_save_LIBS="${LIBS}"
  26490. fi ## disabled by request
  26491. case "X${libopts_cv_with_libregex_cflags}" in
  26492. Xyes|Xno|X )
  26493. libopts_cv_with_libregex_cflags="" ;;
  26494. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  26495. esac
  26496. case "X${libopts_cv_with_libregex_libs}" in
  26497. Xyes|Xno|X )
  26498. libopts_cv_with_libregex_libs="" ;;
  26499. * )
  26500. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  26501. esac
  26502. LIBREGEX_CFLAGS=""
  26503. LIBREGEX_LIBS=""
  26504. echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  26505. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
  26506. if test "${libopts_cv_with_libregex+set}" = set; then
  26507. echo $ECHO_N "(cached) $ECHO_C" >&6
  26508. else
  26509. if test "$cross_compiling" = yes; then
  26510. libopts_cv_with_libregex=no
  26511. else
  26512. cat >conftest.$ac_ext <<_ACEOF
  26513. /* confdefs.h. */
  26514. _ACEOF
  26515. cat confdefs.h >>conftest.$ac_ext
  26516. cat >>conftest.$ac_ext <<_ACEOF
  26517. /* end confdefs.h. */
  26518. #include <stdio.h>
  26519. #include <stdlib.h>
  26520. #include <sys/types.h>
  26521. #include REGEX_HEADER
  26522. static regex_t re;
  26523. void comp_re( const char* pzPat ) {
  26524. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  26525. if (res == 0) return;
  26526. exit( res ); }
  26527. int main() {
  26528. regmatch_t m[2];
  26529. comp_re( "^.*\$" );
  26530. comp_re( "()|no.*" );
  26531. comp_re( "." );
  26532. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  26533. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  26534. fputs( "error: regex -->.<-- did not match\n", stderr );
  26535. return 1;
  26536. }
  26537. return 0; }
  26538. _ACEOF
  26539. rm -f conftest$ac_exeext
  26540. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26541. (eval $ac_link) 2>&5
  26542. ac_status=$?
  26543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26544. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26546. (eval $ac_try) 2>&5
  26547. ac_status=$?
  26548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26549. (exit $ac_status); }; }; then
  26550. libopts_cv_with_libregex=yes
  26551. else
  26552. echo "$as_me: program exited with status $ac_status" >&5
  26553. echo "$as_me: failed program was:" >&5
  26554. sed 's/^/| /' conftest.$ac_ext >&5
  26555. ( exit $ac_status )
  26556. libopts_cv_with_libregex=no
  26557. fi
  26558. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26559. fi # end of AC_TRY_RUN
  26560. fi
  26561. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  26562. echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  26563. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
  26564. if test "X${libopts_cv_with_libregex}" = Xno
  26565. then
  26566. CPPFLAGS="${libopts_save_CPPFLAGS}"
  26567. LIBS="${libopts_save_LIBS}"
  26568. cat >&2 <<'_EOF_'
  26569. I cannot detect POSIX compliant regcomp/regexec routines.
  26570. These are required for AutoGen to work correctly. If you have
  26571. such a library present on your system, you must specify it by
  26572. setting the LIBS environment variable, e.g., "LIBS='-lregex'".
  26573. If you do not have such a library on your system, then you should
  26574. download and install, for example, the one from:
  26575. ftp://ftp.gnu.org/gnu/rx/
  26576. _EOF_
  26577. { { echo "$as_me:$LINENO: error: Cannot find working POSIX regex library" >&5
  26578. echo "$as_me: error: Cannot find working POSIX regex library" >&2;}
  26579. { (exit 1); exit 1; }; }
  26580. fi
  26581. # Check to see if pathfind(3) works.
  26582. echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  26583. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
  26584. if test "${libopts_cv_run_pathfind+set}" = set; then
  26585. echo $ECHO_N "(cached) $ECHO_C" >&6
  26586. else
  26587. if test "$cross_compiling" = yes; then
  26588. libopts_cv_run_pathfind=no
  26589. else
  26590. cat >conftest.$ac_ext <<_ACEOF
  26591. /* confdefs.h. */
  26592. _ACEOF
  26593. cat confdefs.h >>conftest.$ac_ext
  26594. cat >>conftest.$ac_ext <<_ACEOF
  26595. /* end confdefs.h. */
  26596. #include <string.h>
  26597. #include <stdlib.h>
  26598. int main (int argc, char** argv) {
  26599. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  26600. return (pz == 0) ? 1 : 0;
  26601. }
  26602. _ACEOF
  26603. rm -f conftest$ac_exeext
  26604. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26605. (eval $ac_link) 2>&5
  26606. ac_status=$?
  26607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26608. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26610. (eval $ac_try) 2>&5
  26611. ac_status=$?
  26612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26613. (exit $ac_status); }; }; then
  26614. libopts_cv_run_pathfind=yes
  26615. else
  26616. echo "$as_me: program exited with status $ac_status" >&5
  26617. echo "$as_me: failed program was:" >&5
  26618. sed 's/^/| /' conftest.$ac_ext >&5
  26619. ( exit $ac_status )
  26620. libopts_cv_run_pathfind=no
  26621. fi
  26622. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26623. fi # end of TRY_RUN
  26624. fi
  26625. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  26626. echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  26627. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
  26628. if test "X${libopts_cv_run_pathfind}" != Xno
  26629. then
  26630. cat >>confdefs.h <<\_ACEOF
  26631. #define HAVE_PATHFIND 1
  26632. _ACEOF
  26633. fi
  26634. # Check to see if /dev/zero is readable device.
  26635. echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
  26636. echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6
  26637. if test "${libopts_cv_test_dev_zero+set}" = set; then
  26638. echo $ECHO_N "(cached) $ECHO_C" >&6
  26639. else
  26640. libopts_cv_test_dev_zero=`exec 2> /dev/null
  26641. dzero=\`ls -l /dev/zero | egrep ^c......r\`
  26642. test -z "${dzero}" && exit 1
  26643. echo ${dzero}`
  26644. if test $? -ne 0
  26645. then libopts_cv_test_dev_zero=no
  26646. elif test -z "$libopts_cv_test_dev_zero"
  26647. then libopts_cv_test_dev_zero=no
  26648. fi
  26649. fi
  26650. # end of CACHE_VAL of libopts_cv_test_dev_zero
  26651. echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
  26652. echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6
  26653. if test "X${libopts_cv_test_dev_zero}" != Xno
  26654. then
  26655. cat >>confdefs.h <<\_ACEOF
  26656. #define HAVE_DEV_ZERO 1
  26657. _ACEOF
  26658. fi
  26659. # Check to see if we have a functional realpath(3C).
  26660. echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
  26661. echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6
  26662. if test "${libopts_cv_run_realpath+set}" = set; then
  26663. echo $ECHO_N "(cached) $ECHO_C" >&6
  26664. else
  26665. if test "$cross_compiling" = yes; then
  26666. libopts_cv_run_realpath=no
  26667. else
  26668. cat >conftest.$ac_ext <<_ACEOF
  26669. /* confdefs.h. */
  26670. _ACEOF
  26671. cat confdefs.h >>conftest.$ac_ext
  26672. cat >>conftest.$ac_ext <<_ACEOF
  26673. /* end confdefs.h. */
  26674. #include <limits.h>
  26675. #include <stdlib.h>
  26676. int main (int argc, char** argv) {
  26677. #ifndef PATH_MAX
  26678. choke me!!
  26679. #else
  26680. char zPath[PATH_MAX+1];
  26681. #endif
  26682. char *pz = realpath(argv[0], zPath);
  26683. return (pz == zPath) ? 0 : 1;
  26684. }
  26685. _ACEOF
  26686. rm -f conftest$ac_exeext
  26687. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26688. (eval $ac_link) 2>&5
  26689. ac_status=$?
  26690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26691. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26693. (eval $ac_try) 2>&5
  26694. ac_status=$?
  26695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26696. (exit $ac_status); }; }; then
  26697. libopts_cv_run_realpath=yes
  26698. else
  26699. echo "$as_me: program exited with status $ac_status" >&5
  26700. echo "$as_me: failed program was:" >&5
  26701. sed 's/^/| /' conftest.$ac_ext >&5
  26702. ( exit $ac_status )
  26703. libopts_cv_run_realpath=no
  26704. fi
  26705. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26706. fi # end of TRY_RUN
  26707. fi
  26708. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  26709. echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
  26710. echo "${ECHO_T}${libopts_cv_run_realpath}" >&6
  26711. if test "X${libopts_cv_run_realpath}" != Xno
  26712. then
  26713. cat >>confdefs.h <<\_ACEOF
  26714. #define HAVE_REALPATH 1
  26715. _ACEOF
  26716. fi
  26717. # Check to see if strftime() works.
  26718. echo "$as_me:$LINENO: checking whether strftime() works" >&5
  26719. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
  26720. if test "${libopts_cv_run_strftime+set}" = set; then
  26721. echo $ECHO_N "(cached) $ECHO_C" >&6
  26722. else
  26723. if test "$cross_compiling" = yes; then
  26724. libopts_cv_run_strftime=no
  26725. else
  26726. cat >conftest.$ac_ext <<_ACEOF
  26727. /* confdefs.h. */
  26728. _ACEOF
  26729. cat confdefs.h >>conftest.$ac_ext
  26730. cat >>conftest.$ac_ext <<_ACEOF
  26731. /* end confdefs.h. */
  26732. #include <time.h>
  26733. #include <string.h>
  26734. char t_buf[ 64 ];
  26735. int main() {
  26736. static const char z[] = "Thursday Aug 28 240";
  26737. struct tm tm;
  26738. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  26739. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  26740. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  26741. tm.tm_mday = 28; /* day of the month [1, 31] */
  26742. tm.tm_mon = 7; /* months since January [0, 11] */
  26743. tm.tm_year = 86; /* years since 1900 */
  26744. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  26745. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  26746. tm.tm_isdst = 1; /* flag for daylight savings time */
  26747. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  26748. return (strcmp( t_buf, z ) != 0); }
  26749. _ACEOF
  26750. rm -f conftest$ac_exeext
  26751. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26752. (eval $ac_link) 2>&5
  26753. ac_status=$?
  26754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26755. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26757. (eval $ac_try) 2>&5
  26758. ac_status=$?
  26759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26760. (exit $ac_status); }; }; then
  26761. libopts_cv_run_strftime=yes
  26762. else
  26763. echo "$as_me: program exited with status $ac_status" >&5
  26764. echo "$as_me: failed program was:" >&5
  26765. sed 's/^/| /' conftest.$ac_ext >&5
  26766. ( exit $ac_status )
  26767. libopts_cv_run_strftime=no
  26768. fi
  26769. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26770. fi # end of TRY_RUN
  26771. fi
  26772. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  26773. echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  26774. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
  26775. if test "X${libopts_cv_run_strftime}" != Xno
  26776. then
  26777. cat >>confdefs.h <<\_ACEOF
  26778. #define HAVE_STRFTIME 1
  26779. _ACEOF
  26780. fi
  26781. # Check to see if fopen accepts "b" mode.
  26782. echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  26783. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
  26784. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  26785. echo $ECHO_N "(cached) $ECHO_C" >&6
  26786. else
  26787. if test "$cross_compiling" = yes; then
  26788. libopts_cv_run_fopen_binary=no
  26789. else
  26790. cat >conftest.$ac_ext <<_ACEOF
  26791. /* confdefs.h. */
  26792. _ACEOF
  26793. cat confdefs.h >>conftest.$ac_ext
  26794. cat >>conftest.$ac_ext <<_ACEOF
  26795. /* end confdefs.h. */
  26796. #include <stdio.h>
  26797. int main (int argc, char** argv) {
  26798. FILE* fp = fopen("conftest.$ac_ext", "rb");
  26799. return (fp == NULL) ? 1 : fclose(fp); }
  26800. _ACEOF
  26801. rm -f conftest$ac_exeext
  26802. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26803. (eval $ac_link) 2>&5
  26804. ac_status=$?
  26805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26806. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26808. (eval $ac_try) 2>&5
  26809. ac_status=$?
  26810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26811. (exit $ac_status); }; }; then
  26812. libopts_cv_run_fopen_binary=yes
  26813. else
  26814. echo "$as_me: program exited with status $ac_status" >&5
  26815. echo "$as_me: failed program was:" >&5
  26816. sed 's/^/| /' conftest.$ac_ext >&5
  26817. ( exit $ac_status )
  26818. libopts_cv_run_fopen_binary=no
  26819. fi
  26820. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26821. fi # end of TRY_RUN
  26822. fi
  26823. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  26824. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  26825. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
  26826. if test "X${libopts_cv_run_fopen_binary}" != Xno
  26827. then
  26828. cat >>confdefs.h <<\_ACEOF
  26829. #define FOPEN_BINARY_FLAG "b"
  26830. _ACEOF
  26831. else
  26832. cat >>confdefs.h <<\_ACEOF
  26833. #define FOPEN_BINARY_FLAG ""
  26834. _ACEOF
  26835. fi
  26836. # Check to see if fopen accepts "t" mode.
  26837. echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  26838. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
  26839. if test "${libopts_cv_run_fopen_text+set}" = set; then
  26840. echo $ECHO_N "(cached) $ECHO_C" >&6
  26841. else
  26842. if test "$cross_compiling" = yes; then
  26843. libopts_cv_run_fopen_text=no
  26844. else
  26845. cat >conftest.$ac_ext <<_ACEOF
  26846. /* confdefs.h. */
  26847. _ACEOF
  26848. cat confdefs.h >>conftest.$ac_ext
  26849. cat >>conftest.$ac_ext <<_ACEOF
  26850. /* end confdefs.h. */
  26851. #include <stdio.h>
  26852. int main (int argc, char** argv) {
  26853. FILE* fp = fopen("conftest.$ac_ext", "rt");
  26854. return (fp == NULL) ? 1 : fclose(fp); }
  26855. _ACEOF
  26856. rm -f conftest$ac_exeext
  26857. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26858. (eval $ac_link) 2>&5
  26859. ac_status=$?
  26860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26861. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26863. (eval $ac_try) 2>&5
  26864. ac_status=$?
  26865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26866. (exit $ac_status); }; }; then
  26867. libopts_cv_run_fopen_text=yes
  26868. else
  26869. echo "$as_me: program exited with status $ac_status" >&5
  26870. echo "$as_me: failed program was:" >&5
  26871. sed 's/^/| /' conftest.$ac_ext >&5
  26872. ( exit $ac_status )
  26873. libopts_cv_run_fopen_text=no
  26874. fi
  26875. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26876. fi # end of TRY_RUN
  26877. fi
  26878. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  26879. echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  26880. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
  26881. if test "X${libopts_cv_run_fopen_text}" != Xno
  26882. then
  26883. cat >>confdefs.h <<\_ACEOF
  26884. #define FOPEN_TEXT_FLAG "t"
  26885. _ACEOF
  26886. else
  26887. cat >>confdefs.h <<\_ACEOF
  26888. #define FOPEN_TEXT_FLAG ""
  26889. _ACEOF
  26890. fi
  26891. else
  26892. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  26893. # =================
  26894. # AC_HEADER_STDC
  26895. # =================
  26896. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  26897. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  26898. if test "${ac_cv_header_stdc+set}" = set; then
  26899. echo $ECHO_N "(cached) $ECHO_C" >&6
  26900. else
  26901. cat >conftest.$ac_ext <<_ACEOF
  26902. /* confdefs.h. */
  26903. _ACEOF
  26904. cat confdefs.h >>conftest.$ac_ext
  26905. cat >>conftest.$ac_ext <<_ACEOF
  26906. /* end confdefs.h. */
  26907. #include <stdlib.h>
  26908. #include <stdarg.h>
  26909. #include <string.h>
  26910. #include <float.h>
  26911. int
  26912. main ()
  26913. {
  26914. ;
  26915. return 0;
  26916. }
  26917. _ACEOF
  26918. rm -f conftest.$ac_objext
  26919. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  26920. (eval $ac_compile) 2>conftest.er1
  26921. ac_status=$?
  26922. grep -v '^ *+' conftest.er1 >conftest.err
  26923. rm -f conftest.er1
  26924. cat conftest.err >&5
  26925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26926. (exit $ac_status); } &&
  26927. { ac_try='test -z "$ac_c_werror_flag"
  26928. || test ! -s conftest.err'
  26929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26930. (eval $ac_try) 2>&5
  26931. ac_status=$?
  26932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26933. (exit $ac_status); }; } &&
  26934. { ac_try='test -s conftest.$ac_objext'
  26935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26936. (eval $ac_try) 2>&5
  26937. ac_status=$?
  26938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26939. (exit $ac_status); }; }; then
  26940. ac_cv_header_stdc=yes
  26941. else
  26942. echo "$as_me: failed program was:" >&5
  26943. sed 's/^/| /' conftest.$ac_ext >&5
  26944. ac_cv_header_stdc=no
  26945. fi
  26946. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  26947. if test $ac_cv_header_stdc = yes; then
  26948. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  26949. cat >conftest.$ac_ext <<_ACEOF
  26950. /* confdefs.h. */
  26951. _ACEOF
  26952. cat confdefs.h >>conftest.$ac_ext
  26953. cat >>conftest.$ac_ext <<_ACEOF
  26954. /* end confdefs.h. */
  26955. #include <string.h>
  26956. _ACEOF
  26957. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26958. $EGREP "memchr" >/dev/null 2>&1; then
  26959. :
  26960. else
  26961. ac_cv_header_stdc=no
  26962. fi
  26963. rm -f conftest*
  26964. fi
  26965. if test $ac_cv_header_stdc = yes; then
  26966. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  26967. cat >conftest.$ac_ext <<_ACEOF
  26968. /* confdefs.h. */
  26969. _ACEOF
  26970. cat confdefs.h >>conftest.$ac_ext
  26971. cat >>conftest.$ac_ext <<_ACEOF
  26972. /* end confdefs.h. */
  26973. #include <stdlib.h>
  26974. _ACEOF
  26975. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26976. $EGREP "free" >/dev/null 2>&1; then
  26977. :
  26978. else
  26979. ac_cv_header_stdc=no
  26980. fi
  26981. rm -f conftest*
  26982. fi
  26983. if test $ac_cv_header_stdc = yes; then
  26984. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  26985. if test "$cross_compiling" = yes; then
  26986. :
  26987. else
  26988. cat >conftest.$ac_ext <<_ACEOF
  26989. /* confdefs.h. */
  26990. _ACEOF
  26991. cat confdefs.h >>conftest.$ac_ext
  26992. cat >>conftest.$ac_ext <<_ACEOF
  26993. /* end confdefs.h. */
  26994. #include <ctype.h>
  26995. #if ((' ' & 0x0FF) == 0x020)
  26996. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  26997. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  26998. #else
  26999. # define ISLOWER(c) \
  27000. (('a' <= (c) && (c) <= 'i') \
  27001. || ('j' <= (c) && (c) <= 'r') \
  27002. || ('s' <= (c) && (c) <= 'z'))
  27003. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  27004. #endif
  27005. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  27006. int
  27007. main ()
  27008. {
  27009. int i;
  27010. for (i = 0; i < 256; i++)
  27011. if (XOR (islower (i), ISLOWER (i))
  27012. || toupper (i) != TOUPPER (i))
  27013. exit(2);
  27014. exit (0);
  27015. }
  27016. _ACEOF
  27017. rm -f conftest$ac_exeext
  27018. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27019. (eval $ac_link) 2>&5
  27020. ac_status=$?
  27021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27022. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27024. (eval $ac_try) 2>&5
  27025. ac_status=$?
  27026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27027. (exit $ac_status); }; }; then
  27028. :
  27029. else
  27030. echo "$as_me: program exited with status $ac_status" >&5
  27031. echo "$as_me: failed program was:" >&5
  27032. sed 's/^/| /' conftest.$ac_ext >&5
  27033. ( exit $ac_status )
  27034. ac_cv_header_stdc=no
  27035. fi
  27036. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27037. fi
  27038. fi
  27039. fi
  27040. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  27041. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  27042. if test $ac_cv_header_stdc = yes; then
  27043. cat >>confdefs.h <<\_ACEOF
  27044. #define STDC_HEADERS 1
  27045. _ACEOF
  27046. fi
  27047. # =================
  27048. # AC_HEADER_DIRENT
  27049. # =================
  27050. ac_header_dirent=no
  27051. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  27052. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  27053. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  27054. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  27055. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27056. echo $ECHO_N "(cached) $ECHO_C" >&6
  27057. else
  27058. cat >conftest.$ac_ext <<_ACEOF
  27059. /* confdefs.h. */
  27060. _ACEOF
  27061. cat confdefs.h >>conftest.$ac_ext
  27062. cat >>conftest.$ac_ext <<_ACEOF
  27063. /* end confdefs.h. */
  27064. #include <sys/types.h>
  27065. #include <$ac_hdr>
  27066. int
  27067. main ()
  27068. {
  27069. if ((DIR *) 0)
  27070. return 0;
  27071. ;
  27072. return 0;
  27073. }
  27074. _ACEOF
  27075. rm -f conftest.$ac_objext
  27076. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27077. (eval $ac_compile) 2>conftest.er1
  27078. ac_status=$?
  27079. grep -v '^ *+' conftest.er1 >conftest.err
  27080. rm -f conftest.er1
  27081. cat conftest.err >&5
  27082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27083. (exit $ac_status); } &&
  27084. { ac_try='test -z "$ac_c_werror_flag"
  27085. || test ! -s conftest.err'
  27086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27087. (eval $ac_try) 2>&5
  27088. ac_status=$?
  27089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27090. (exit $ac_status); }; } &&
  27091. { ac_try='test -s conftest.$ac_objext'
  27092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27093. (eval $ac_try) 2>&5
  27094. ac_status=$?
  27095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27096. (exit $ac_status); }; }; then
  27097. eval "$as_ac_Header=yes"
  27098. else
  27099. echo "$as_me: failed program was:" >&5
  27100. sed 's/^/| /' conftest.$ac_ext >&5
  27101. eval "$as_ac_Header=no"
  27102. fi
  27103. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27104. fi
  27105. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27106. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27107. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27108. cat >>confdefs.h <<_ACEOF
  27109. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  27110. _ACEOF
  27111. ac_header_dirent=$ac_hdr; break
  27112. fi
  27113. done
  27114. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  27115. if test $ac_header_dirent = dirent.h; then
  27116. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  27117. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  27118. if test "${ac_cv_search_opendir+set}" = set; then
  27119. echo $ECHO_N "(cached) $ECHO_C" >&6
  27120. else
  27121. ac_func_search_save_LIBS=$LIBS
  27122. ac_cv_search_opendir=no
  27123. cat >conftest.$ac_ext <<_ACEOF
  27124. /* confdefs.h. */
  27125. _ACEOF
  27126. cat confdefs.h >>conftest.$ac_ext
  27127. cat >>conftest.$ac_ext <<_ACEOF
  27128. /* end confdefs.h. */
  27129. /* Override any gcc2 internal prototype to avoid an error. */
  27130. #ifdef __cplusplus
  27131. extern "C"
  27132. #endif
  27133. /* We use char because int might match the return type of a gcc2
  27134. builtin and then its argument prototype would still apply. */
  27135. char opendir ();
  27136. int
  27137. main ()
  27138. {
  27139. opendir ();
  27140. ;
  27141. return 0;
  27142. }
  27143. _ACEOF
  27144. rm -f conftest.$ac_objext conftest$ac_exeext
  27145. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27146. (eval $ac_link) 2>conftest.er1
  27147. ac_status=$?
  27148. grep -v '^ *+' conftest.er1 >conftest.err
  27149. rm -f conftest.er1
  27150. cat conftest.err >&5
  27151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27152. (exit $ac_status); } &&
  27153. { ac_try='test -z "$ac_c_werror_flag"
  27154. || test ! -s conftest.err'
  27155. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27156. (eval $ac_try) 2>&5
  27157. ac_status=$?
  27158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27159. (exit $ac_status); }; } &&
  27160. { ac_try='test -s conftest$ac_exeext'
  27161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27162. (eval $ac_try) 2>&5
  27163. ac_status=$?
  27164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27165. (exit $ac_status); }; }; then
  27166. ac_cv_search_opendir="none required"
  27167. else
  27168. echo "$as_me: failed program was:" >&5
  27169. sed 's/^/| /' conftest.$ac_ext >&5
  27170. fi
  27171. rm -f conftest.err conftest.$ac_objext \
  27172. conftest$ac_exeext conftest.$ac_ext
  27173. if test "$ac_cv_search_opendir" = no; then
  27174. for ac_lib in dir; do
  27175. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  27176. cat >conftest.$ac_ext <<_ACEOF
  27177. /* confdefs.h. */
  27178. _ACEOF
  27179. cat confdefs.h >>conftest.$ac_ext
  27180. cat >>conftest.$ac_ext <<_ACEOF
  27181. /* end confdefs.h. */
  27182. /* Override any gcc2 internal prototype to avoid an error. */
  27183. #ifdef __cplusplus
  27184. extern "C"
  27185. #endif
  27186. /* We use char because int might match the return type of a gcc2
  27187. builtin and then its argument prototype would still apply. */
  27188. char opendir ();
  27189. int
  27190. main ()
  27191. {
  27192. opendir ();
  27193. ;
  27194. return 0;
  27195. }
  27196. _ACEOF
  27197. rm -f conftest.$ac_objext conftest$ac_exeext
  27198. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27199. (eval $ac_link) 2>conftest.er1
  27200. ac_status=$?
  27201. grep -v '^ *+' conftest.er1 >conftest.err
  27202. rm -f conftest.er1
  27203. cat conftest.err >&5
  27204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27205. (exit $ac_status); } &&
  27206. { ac_try='test -z "$ac_c_werror_flag"
  27207. || test ! -s conftest.err'
  27208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27209. (eval $ac_try) 2>&5
  27210. ac_status=$?
  27211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27212. (exit $ac_status); }; } &&
  27213. { ac_try='test -s conftest$ac_exeext'
  27214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27215. (eval $ac_try) 2>&5
  27216. ac_status=$?
  27217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27218. (exit $ac_status); }; }; then
  27219. ac_cv_search_opendir="-l$ac_lib"
  27220. break
  27221. else
  27222. echo "$as_me: failed program was:" >&5
  27223. sed 's/^/| /' conftest.$ac_ext >&5
  27224. fi
  27225. rm -f conftest.err conftest.$ac_objext \
  27226. conftest$ac_exeext conftest.$ac_ext
  27227. done
  27228. fi
  27229. LIBS=$ac_func_search_save_LIBS
  27230. fi
  27231. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  27232. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  27233. if test "$ac_cv_search_opendir" != no; then
  27234. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  27235. fi
  27236. else
  27237. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  27238. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  27239. if test "${ac_cv_search_opendir+set}" = set; then
  27240. echo $ECHO_N "(cached) $ECHO_C" >&6
  27241. else
  27242. ac_func_search_save_LIBS=$LIBS
  27243. ac_cv_search_opendir=no
  27244. cat >conftest.$ac_ext <<_ACEOF
  27245. /* confdefs.h. */
  27246. _ACEOF
  27247. cat confdefs.h >>conftest.$ac_ext
  27248. cat >>conftest.$ac_ext <<_ACEOF
  27249. /* end confdefs.h. */
  27250. /* Override any gcc2 internal prototype to avoid an error. */
  27251. #ifdef __cplusplus
  27252. extern "C"
  27253. #endif
  27254. /* We use char because int might match the return type of a gcc2
  27255. builtin and then its argument prototype would still apply. */
  27256. char opendir ();
  27257. int
  27258. main ()
  27259. {
  27260. opendir ();
  27261. ;
  27262. return 0;
  27263. }
  27264. _ACEOF
  27265. rm -f conftest.$ac_objext conftest$ac_exeext
  27266. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27267. (eval $ac_link) 2>conftest.er1
  27268. ac_status=$?
  27269. grep -v '^ *+' conftest.er1 >conftest.err
  27270. rm -f conftest.er1
  27271. cat conftest.err >&5
  27272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27273. (exit $ac_status); } &&
  27274. { ac_try='test -z "$ac_c_werror_flag"
  27275. || test ! -s conftest.err'
  27276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27277. (eval $ac_try) 2>&5
  27278. ac_status=$?
  27279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27280. (exit $ac_status); }; } &&
  27281. { ac_try='test -s conftest$ac_exeext'
  27282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27283. (eval $ac_try) 2>&5
  27284. ac_status=$?
  27285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27286. (exit $ac_status); }; }; then
  27287. ac_cv_search_opendir="none required"
  27288. else
  27289. echo "$as_me: failed program was:" >&5
  27290. sed 's/^/| /' conftest.$ac_ext >&5
  27291. fi
  27292. rm -f conftest.err conftest.$ac_objext \
  27293. conftest$ac_exeext conftest.$ac_ext
  27294. if test "$ac_cv_search_opendir" = no; then
  27295. for ac_lib in x; do
  27296. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  27297. cat >conftest.$ac_ext <<_ACEOF
  27298. /* confdefs.h. */
  27299. _ACEOF
  27300. cat confdefs.h >>conftest.$ac_ext
  27301. cat >>conftest.$ac_ext <<_ACEOF
  27302. /* end confdefs.h. */
  27303. /* Override any gcc2 internal prototype to avoid an error. */
  27304. #ifdef __cplusplus
  27305. extern "C"
  27306. #endif
  27307. /* We use char because int might match the return type of a gcc2
  27308. builtin and then its argument prototype would still apply. */
  27309. char opendir ();
  27310. int
  27311. main ()
  27312. {
  27313. opendir ();
  27314. ;
  27315. return 0;
  27316. }
  27317. _ACEOF
  27318. rm -f conftest.$ac_objext conftest$ac_exeext
  27319. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27320. (eval $ac_link) 2>conftest.er1
  27321. ac_status=$?
  27322. grep -v '^ *+' conftest.er1 >conftest.err
  27323. rm -f conftest.er1
  27324. cat conftest.err >&5
  27325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27326. (exit $ac_status); } &&
  27327. { ac_try='test -z "$ac_c_werror_flag"
  27328. || test ! -s conftest.err'
  27329. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27330. (eval $ac_try) 2>&5
  27331. ac_status=$?
  27332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27333. (exit $ac_status); }; } &&
  27334. { ac_try='test -s conftest$ac_exeext'
  27335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27336. (eval $ac_try) 2>&5
  27337. ac_status=$?
  27338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27339. (exit $ac_status); }; }; then
  27340. ac_cv_search_opendir="-l$ac_lib"
  27341. break
  27342. else
  27343. echo "$as_me: failed program was:" >&5
  27344. sed 's/^/| /' conftest.$ac_ext >&5
  27345. fi
  27346. rm -f conftest.err conftest.$ac_objext \
  27347. conftest$ac_exeext conftest.$ac_ext
  27348. done
  27349. fi
  27350. LIBS=$ac_func_search_save_LIBS
  27351. fi
  27352. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  27353. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  27354. if test "$ac_cv_search_opendir" != no; then
  27355. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  27356. fi
  27357. fi
  27358. # =================
  27359. # AC_CHECK_HEADERS
  27360. # =================
  27361. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  27362. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  27363. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h
  27364. do
  27365. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27366. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27367. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27368. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27369. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27370. echo $ECHO_N "(cached) $ECHO_C" >&6
  27371. fi
  27372. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27373. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27374. else
  27375. # Is the header compilable?
  27376. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27377. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  27378. cat >conftest.$ac_ext <<_ACEOF
  27379. /* confdefs.h. */
  27380. _ACEOF
  27381. cat confdefs.h >>conftest.$ac_ext
  27382. cat >>conftest.$ac_ext <<_ACEOF
  27383. /* end confdefs.h. */
  27384. $ac_includes_default
  27385. #include <$ac_header>
  27386. _ACEOF
  27387. rm -f conftest.$ac_objext
  27388. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27389. (eval $ac_compile) 2>conftest.er1
  27390. ac_status=$?
  27391. grep -v '^ *+' conftest.er1 >conftest.err
  27392. rm -f conftest.er1
  27393. cat conftest.err >&5
  27394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27395. (exit $ac_status); } &&
  27396. { ac_try='test -z "$ac_c_werror_flag"
  27397. || test ! -s conftest.err'
  27398. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27399. (eval $ac_try) 2>&5
  27400. ac_status=$?
  27401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27402. (exit $ac_status); }; } &&
  27403. { ac_try='test -s conftest.$ac_objext'
  27404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27405. (eval $ac_try) 2>&5
  27406. ac_status=$?
  27407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27408. (exit $ac_status); }; }; then
  27409. ac_header_compiler=yes
  27410. else
  27411. echo "$as_me: failed program was:" >&5
  27412. sed 's/^/| /' conftest.$ac_ext >&5
  27413. ac_header_compiler=no
  27414. fi
  27415. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27416. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27417. echo "${ECHO_T}$ac_header_compiler" >&6
  27418. # Is the header present?
  27419. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27420. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  27421. cat >conftest.$ac_ext <<_ACEOF
  27422. /* confdefs.h. */
  27423. _ACEOF
  27424. cat confdefs.h >>conftest.$ac_ext
  27425. cat >>conftest.$ac_ext <<_ACEOF
  27426. /* end confdefs.h. */
  27427. #include <$ac_header>
  27428. _ACEOF
  27429. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27430. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27431. ac_status=$?
  27432. grep -v '^ *+' conftest.er1 >conftest.err
  27433. rm -f conftest.er1
  27434. cat conftest.err >&5
  27435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27436. (exit $ac_status); } >/dev/null; then
  27437. if test -s conftest.err; then
  27438. ac_cpp_err=$ac_c_preproc_warn_flag
  27439. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27440. else
  27441. ac_cpp_err=
  27442. fi
  27443. else
  27444. ac_cpp_err=yes
  27445. fi
  27446. if test -z "$ac_cpp_err"; then
  27447. ac_header_preproc=yes
  27448. else
  27449. echo "$as_me: failed program was:" >&5
  27450. sed 's/^/| /' conftest.$ac_ext >&5
  27451. ac_header_preproc=no
  27452. fi
  27453. rm -f conftest.err conftest.$ac_ext
  27454. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27455. echo "${ECHO_T}$ac_header_preproc" >&6
  27456. # So? What about this header?
  27457. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27458. yes:no: )
  27459. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27460. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27461. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27462. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27463. ac_header_preproc=yes
  27464. ;;
  27465. no:yes:* )
  27466. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27467. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27468. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27469. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27470. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27471. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27472. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27473. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27474. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27475. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27476. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27477. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27478. (
  27479. cat <<\_ASBOX
  27480. ## ------------------------------------------ ##
  27481. ## Report this to the AC_PACKAGE_NAME lists. ##
  27482. ## ------------------------------------------ ##
  27483. _ASBOX
  27484. ) |
  27485. sed "s/^/$as_me: WARNING: /" >&2
  27486. ;;
  27487. esac
  27488. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27489. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27490. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27491. echo $ECHO_N "(cached) $ECHO_C" >&6
  27492. else
  27493. eval "$as_ac_Header=\$ac_header_preproc"
  27494. fi
  27495. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27496. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27497. fi
  27498. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27499. cat >>confdefs.h <<_ACEOF
  27500. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27501. _ACEOF
  27502. fi
  27503. done
  27504. # --------------------------------------------
  27505. # Verify certain entries from AC_CHECK_HEADERS
  27506. # --------------------------------------------
  27507. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  27508. string errno stdlib memory setjmp
  27509. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  27510. test "${as_ac_var}" = set || \
  27511. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  27512. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  27513. { (exit 1); exit 1; }; }
  27514. done
  27515. # ================================================
  27516. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  27517. # if varargs.h is present define HAVE_VARARGS_H.
  27518. # ================================================
  27519. for ac_header in stdarg.h varargs.h
  27520. do
  27521. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27522. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27523. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27524. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27525. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27526. echo $ECHO_N "(cached) $ECHO_C" >&6
  27527. fi
  27528. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27529. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27530. else
  27531. # Is the header compilable?
  27532. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27533. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  27534. cat >conftest.$ac_ext <<_ACEOF
  27535. /* confdefs.h. */
  27536. _ACEOF
  27537. cat confdefs.h >>conftest.$ac_ext
  27538. cat >>conftest.$ac_ext <<_ACEOF
  27539. /* end confdefs.h. */
  27540. $ac_includes_default
  27541. #include <$ac_header>
  27542. _ACEOF
  27543. rm -f conftest.$ac_objext
  27544. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27545. (eval $ac_compile) 2>conftest.er1
  27546. ac_status=$?
  27547. grep -v '^ *+' conftest.er1 >conftest.err
  27548. rm -f conftest.er1
  27549. cat conftest.err >&5
  27550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27551. (exit $ac_status); } &&
  27552. { ac_try='test -z "$ac_c_werror_flag"
  27553. || test ! -s conftest.err'
  27554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27555. (eval $ac_try) 2>&5
  27556. ac_status=$?
  27557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27558. (exit $ac_status); }; } &&
  27559. { ac_try='test -s conftest.$ac_objext'
  27560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27561. (eval $ac_try) 2>&5
  27562. ac_status=$?
  27563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27564. (exit $ac_status); }; }; then
  27565. ac_header_compiler=yes
  27566. else
  27567. echo "$as_me: failed program was:" >&5
  27568. sed 's/^/| /' conftest.$ac_ext >&5
  27569. ac_header_compiler=no
  27570. fi
  27571. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27572. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27573. echo "${ECHO_T}$ac_header_compiler" >&6
  27574. # Is the header present?
  27575. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27576. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  27577. cat >conftest.$ac_ext <<_ACEOF
  27578. /* confdefs.h. */
  27579. _ACEOF
  27580. cat confdefs.h >>conftest.$ac_ext
  27581. cat >>conftest.$ac_ext <<_ACEOF
  27582. /* end confdefs.h. */
  27583. #include <$ac_header>
  27584. _ACEOF
  27585. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27586. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27587. ac_status=$?
  27588. grep -v '^ *+' conftest.er1 >conftest.err
  27589. rm -f conftest.er1
  27590. cat conftest.err >&5
  27591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27592. (exit $ac_status); } >/dev/null; then
  27593. if test -s conftest.err; then
  27594. ac_cpp_err=$ac_c_preproc_warn_flag
  27595. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27596. else
  27597. ac_cpp_err=
  27598. fi
  27599. else
  27600. ac_cpp_err=yes
  27601. fi
  27602. if test -z "$ac_cpp_err"; then
  27603. ac_header_preproc=yes
  27604. else
  27605. echo "$as_me: failed program was:" >&5
  27606. sed 's/^/| /' conftest.$ac_ext >&5
  27607. ac_header_preproc=no
  27608. fi
  27609. rm -f conftest.err conftest.$ac_ext
  27610. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27611. echo "${ECHO_T}$ac_header_preproc" >&6
  27612. # So? What about this header?
  27613. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27614. yes:no: )
  27615. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27616. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27617. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27618. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27619. ac_header_preproc=yes
  27620. ;;
  27621. no:yes:* )
  27622. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27623. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27624. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27625. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27626. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27627. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27628. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27629. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27630. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27631. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27632. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27633. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27634. (
  27635. cat <<\_ASBOX
  27636. ## ------------------------------------------ ##
  27637. ## Report this to the AC_PACKAGE_NAME lists. ##
  27638. ## ------------------------------------------ ##
  27639. _ASBOX
  27640. ) |
  27641. sed "s/^/$as_me: WARNING: /" >&2
  27642. ;;
  27643. esac
  27644. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27645. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27646. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27647. echo $ECHO_N "(cached) $ECHO_C" >&6
  27648. else
  27649. eval "$as_ac_Header=\$ac_header_preproc"
  27650. fi
  27651. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27652. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27653. fi
  27654. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27655. cat >>confdefs.h <<_ACEOF
  27656. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27657. _ACEOF
  27658. break
  27659. fi
  27660. done
  27661. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  27662. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  27663. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  27664. { (exit 1); exit 1; }; }
  27665. fi
  27666. # ================================================
  27667. # Similarly for the string.h and strings.h headers
  27668. # ================================================
  27669. for ac_header in string.h strings.h
  27670. do
  27671. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27672. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27673. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27674. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27675. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27676. echo $ECHO_N "(cached) $ECHO_C" >&6
  27677. fi
  27678. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27679. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27680. else
  27681. # Is the header compilable?
  27682. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27683. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  27684. cat >conftest.$ac_ext <<_ACEOF
  27685. /* confdefs.h. */
  27686. _ACEOF
  27687. cat confdefs.h >>conftest.$ac_ext
  27688. cat >>conftest.$ac_ext <<_ACEOF
  27689. /* end confdefs.h. */
  27690. $ac_includes_default
  27691. #include <$ac_header>
  27692. _ACEOF
  27693. rm -f conftest.$ac_objext
  27694. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27695. (eval $ac_compile) 2>conftest.er1
  27696. ac_status=$?
  27697. grep -v '^ *+' conftest.er1 >conftest.err
  27698. rm -f conftest.er1
  27699. cat conftest.err >&5
  27700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27701. (exit $ac_status); } &&
  27702. { ac_try='test -z "$ac_c_werror_flag"
  27703. || test ! -s conftest.err'
  27704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27705. (eval $ac_try) 2>&5
  27706. ac_status=$?
  27707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27708. (exit $ac_status); }; } &&
  27709. { ac_try='test -s conftest.$ac_objext'
  27710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27711. (eval $ac_try) 2>&5
  27712. ac_status=$?
  27713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27714. (exit $ac_status); }; }; then
  27715. ac_header_compiler=yes
  27716. else
  27717. echo "$as_me: failed program was:" >&5
  27718. sed 's/^/| /' conftest.$ac_ext >&5
  27719. ac_header_compiler=no
  27720. fi
  27721. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27722. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27723. echo "${ECHO_T}$ac_header_compiler" >&6
  27724. # Is the header present?
  27725. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27726. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  27727. cat >conftest.$ac_ext <<_ACEOF
  27728. /* confdefs.h. */
  27729. _ACEOF
  27730. cat confdefs.h >>conftest.$ac_ext
  27731. cat >>conftest.$ac_ext <<_ACEOF
  27732. /* end confdefs.h. */
  27733. #include <$ac_header>
  27734. _ACEOF
  27735. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27736. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27737. ac_status=$?
  27738. grep -v '^ *+' conftest.er1 >conftest.err
  27739. rm -f conftest.er1
  27740. cat conftest.err >&5
  27741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27742. (exit $ac_status); } >/dev/null; then
  27743. if test -s conftest.err; then
  27744. ac_cpp_err=$ac_c_preproc_warn_flag
  27745. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27746. else
  27747. ac_cpp_err=
  27748. fi
  27749. else
  27750. ac_cpp_err=yes
  27751. fi
  27752. if test -z "$ac_cpp_err"; then
  27753. ac_header_preproc=yes
  27754. else
  27755. echo "$as_me: failed program was:" >&5
  27756. sed 's/^/| /' conftest.$ac_ext >&5
  27757. ac_header_preproc=no
  27758. fi
  27759. rm -f conftest.err conftest.$ac_ext
  27760. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27761. echo "${ECHO_T}$ac_header_preproc" >&6
  27762. # So? What about this header?
  27763. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27764. yes:no: )
  27765. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27766. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27767. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27768. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27769. ac_header_preproc=yes
  27770. ;;
  27771. no:yes:* )
  27772. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27773. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27774. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27775. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27776. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27777. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27778. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27779. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27780. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27781. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27782. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27783. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27784. (
  27785. cat <<\_ASBOX
  27786. ## ------------------------------------------ ##
  27787. ## Report this to the AC_PACKAGE_NAME lists. ##
  27788. ## ------------------------------------------ ##
  27789. _ASBOX
  27790. ) |
  27791. sed "s/^/$as_me: WARNING: /" >&2
  27792. ;;
  27793. esac
  27794. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27795. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27796. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27797. echo $ECHO_N "(cached) $ECHO_C" >&6
  27798. else
  27799. eval "$as_ac_Header=\$ac_header_preproc"
  27800. fi
  27801. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27802. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27803. fi
  27804. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27805. cat >>confdefs.h <<_ACEOF
  27806. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27807. _ACEOF
  27808. break
  27809. fi
  27810. done
  27811. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  27812. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  27813. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  27814. { (exit 1); exit 1; }; }
  27815. fi
  27816. # =====================
  27817. # ...and limits headers
  27818. # =====================
  27819. for ac_header in limits.h sys/limits.h values.h
  27820. do
  27821. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27822. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27823. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27824. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27825. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27826. echo $ECHO_N "(cached) $ECHO_C" >&6
  27827. fi
  27828. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27829. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27830. else
  27831. # Is the header compilable?
  27832. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27833. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  27834. cat >conftest.$ac_ext <<_ACEOF
  27835. /* confdefs.h. */
  27836. _ACEOF
  27837. cat confdefs.h >>conftest.$ac_ext
  27838. cat >>conftest.$ac_ext <<_ACEOF
  27839. /* end confdefs.h. */
  27840. $ac_includes_default
  27841. #include <$ac_header>
  27842. _ACEOF
  27843. rm -f conftest.$ac_objext
  27844. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27845. (eval $ac_compile) 2>conftest.er1
  27846. ac_status=$?
  27847. grep -v '^ *+' conftest.er1 >conftest.err
  27848. rm -f conftest.er1
  27849. cat conftest.err >&5
  27850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27851. (exit $ac_status); } &&
  27852. { ac_try='test -z "$ac_c_werror_flag"
  27853. || test ! -s conftest.err'
  27854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27855. (eval $ac_try) 2>&5
  27856. ac_status=$?
  27857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27858. (exit $ac_status); }; } &&
  27859. { ac_try='test -s conftest.$ac_objext'
  27860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27861. (eval $ac_try) 2>&5
  27862. ac_status=$?
  27863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27864. (exit $ac_status); }; }; then
  27865. ac_header_compiler=yes
  27866. else
  27867. echo "$as_me: failed program was:" >&5
  27868. sed 's/^/| /' conftest.$ac_ext >&5
  27869. ac_header_compiler=no
  27870. fi
  27871. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  27872. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  27873. echo "${ECHO_T}$ac_header_compiler" >&6
  27874. # Is the header present?
  27875. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  27876. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  27877. cat >conftest.$ac_ext <<_ACEOF
  27878. /* confdefs.h. */
  27879. _ACEOF
  27880. cat confdefs.h >>conftest.$ac_ext
  27881. cat >>conftest.$ac_ext <<_ACEOF
  27882. /* end confdefs.h. */
  27883. #include <$ac_header>
  27884. _ACEOF
  27885. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  27886. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  27887. ac_status=$?
  27888. grep -v '^ *+' conftest.er1 >conftest.err
  27889. rm -f conftest.er1
  27890. cat conftest.err >&5
  27891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27892. (exit $ac_status); } >/dev/null; then
  27893. if test -s conftest.err; then
  27894. ac_cpp_err=$ac_c_preproc_warn_flag
  27895. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  27896. else
  27897. ac_cpp_err=
  27898. fi
  27899. else
  27900. ac_cpp_err=yes
  27901. fi
  27902. if test -z "$ac_cpp_err"; then
  27903. ac_header_preproc=yes
  27904. else
  27905. echo "$as_me: failed program was:" >&5
  27906. sed 's/^/| /' conftest.$ac_ext >&5
  27907. ac_header_preproc=no
  27908. fi
  27909. rm -f conftest.err conftest.$ac_ext
  27910. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  27911. echo "${ECHO_T}$ac_header_preproc" >&6
  27912. # So? What about this header?
  27913. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  27914. yes:no: )
  27915. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  27916. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  27917. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  27918. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  27919. ac_header_preproc=yes
  27920. ;;
  27921. no:yes:* )
  27922. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  27923. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  27924. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  27925. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  27926. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  27927. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  27928. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  27929. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  27930. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  27931. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  27932. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  27933. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  27934. (
  27935. cat <<\_ASBOX
  27936. ## ------------------------------------------ ##
  27937. ## Report this to the AC_PACKAGE_NAME lists. ##
  27938. ## ------------------------------------------ ##
  27939. _ASBOX
  27940. ) |
  27941. sed "s/^/$as_me: WARNING: /" >&2
  27942. ;;
  27943. esac
  27944. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27945. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27946. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27947. echo $ECHO_N "(cached) $ECHO_C" >&6
  27948. else
  27949. eval "$as_ac_Header=\$ac_header_preproc"
  27950. fi
  27951. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27952. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27953. fi
  27954. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  27955. cat >>confdefs.h <<_ACEOF
  27956. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27957. _ACEOF
  27958. break
  27959. fi
  27960. done
  27961. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  27962. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  27963. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  27964. { (exit 1); exit 1; }; }
  27965. fi
  27966. # ========================
  27967. # ...and int types headers
  27968. # ========================
  27969. for ac_header in stdint.h inttypes.h
  27970. do
  27971. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27972. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27973. echo "$as_me:$LINENO: checking for $ac_header" >&5
  27974. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  27975. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  27976. echo $ECHO_N "(cached) $ECHO_C" >&6
  27977. fi
  27978. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  27979. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  27980. else
  27981. # Is the header compilable?
  27982. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  27983. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  27984. cat >conftest.$ac_ext <<_ACEOF
  27985. /* confdefs.h. */
  27986. _ACEOF
  27987. cat confdefs.h >>conftest.$ac_ext
  27988. cat >>conftest.$ac_ext <<_ACEOF
  27989. /* end confdefs.h. */
  27990. $ac_includes_default
  27991. #include <$ac_header>
  27992. _ACEOF
  27993. rm -f conftest.$ac_objext
  27994. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27995. (eval $ac_compile) 2>conftest.er1
  27996. ac_status=$?
  27997. grep -v '^ *+' conftest.er1 >conftest.err
  27998. rm -f conftest.er1
  27999. cat conftest.err >&5
  28000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28001. (exit $ac_status); } &&
  28002. { ac_try='test -z "$ac_c_werror_flag"
  28003. || test ! -s conftest.err'
  28004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28005. (eval $ac_try) 2>&5
  28006. ac_status=$?
  28007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28008. (exit $ac_status); }; } &&
  28009. { ac_try='test -s conftest.$ac_objext'
  28010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28011. (eval $ac_try) 2>&5
  28012. ac_status=$?
  28013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28014. (exit $ac_status); }; }; then
  28015. ac_header_compiler=yes
  28016. else
  28017. echo "$as_me: failed program was:" >&5
  28018. sed 's/^/| /' conftest.$ac_ext >&5
  28019. ac_header_compiler=no
  28020. fi
  28021. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28022. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28023. echo "${ECHO_T}$ac_header_compiler" >&6
  28024. # Is the header present?
  28025. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28026. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  28027. cat >conftest.$ac_ext <<_ACEOF
  28028. /* confdefs.h. */
  28029. _ACEOF
  28030. cat confdefs.h >>conftest.$ac_ext
  28031. cat >>conftest.$ac_ext <<_ACEOF
  28032. /* end confdefs.h. */
  28033. #include <$ac_header>
  28034. _ACEOF
  28035. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  28036. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  28037. ac_status=$?
  28038. grep -v '^ *+' conftest.er1 >conftest.err
  28039. rm -f conftest.er1
  28040. cat conftest.err >&5
  28041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28042. (exit $ac_status); } >/dev/null; then
  28043. if test -s conftest.err; then
  28044. ac_cpp_err=$ac_c_preproc_warn_flag
  28045. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  28046. else
  28047. ac_cpp_err=
  28048. fi
  28049. else
  28050. ac_cpp_err=yes
  28051. fi
  28052. if test -z "$ac_cpp_err"; then
  28053. ac_header_preproc=yes
  28054. else
  28055. echo "$as_me: failed program was:" >&5
  28056. sed 's/^/| /' conftest.$ac_ext >&5
  28057. ac_header_preproc=no
  28058. fi
  28059. rm -f conftest.err conftest.$ac_ext
  28060. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28061. echo "${ECHO_T}$ac_header_preproc" >&6
  28062. # So? What about this header?
  28063. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28064. yes:no: )
  28065. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28066. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28067. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28068. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28069. ac_header_preproc=yes
  28070. ;;
  28071. no:yes:* )
  28072. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28073. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28074. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28075. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28076. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28077. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28078. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28079. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28080. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28081. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28082. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28083. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28084. (
  28085. cat <<\_ASBOX
  28086. ## ------------------------------------------ ##
  28087. ## Report this to the AC_PACKAGE_NAME lists. ##
  28088. ## ------------------------------------------ ##
  28089. _ASBOX
  28090. ) |
  28091. sed "s/^/$as_me: WARNING: /" >&2
  28092. ;;
  28093. esac
  28094. echo "$as_me:$LINENO: checking for $ac_header" >&5
  28095. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  28096. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  28097. echo $ECHO_N "(cached) $ECHO_C" >&6
  28098. else
  28099. eval "$as_ac_Header=\$ac_header_preproc"
  28100. fi
  28101. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  28102. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  28103. fi
  28104. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28105. cat >>confdefs.h <<_ACEOF
  28106. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28107. _ACEOF
  28108. break
  28109. fi
  28110. done
  28111. echo "$as_me:$LINENO: checking for int8_t" >&5
  28112. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
  28113. if test "${ac_cv_type_int8_t+set}" = set; then
  28114. echo $ECHO_N "(cached) $ECHO_C" >&6
  28115. else
  28116. cat >conftest.$ac_ext <<_ACEOF
  28117. /* confdefs.h. */
  28118. _ACEOF
  28119. cat confdefs.h >>conftest.$ac_ext
  28120. cat >>conftest.$ac_ext <<_ACEOF
  28121. /* end confdefs.h. */
  28122. $ac_includes_default
  28123. int
  28124. main ()
  28125. {
  28126. if ((int8_t *) 0)
  28127. return 0;
  28128. if (sizeof (int8_t))
  28129. return 0;
  28130. ;
  28131. return 0;
  28132. }
  28133. _ACEOF
  28134. rm -f conftest.$ac_objext
  28135. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28136. (eval $ac_compile) 2>conftest.er1
  28137. ac_status=$?
  28138. grep -v '^ *+' conftest.er1 >conftest.err
  28139. rm -f conftest.er1
  28140. cat conftest.err >&5
  28141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28142. (exit $ac_status); } &&
  28143. { ac_try='test -z "$ac_c_werror_flag"
  28144. || test ! -s conftest.err'
  28145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28146. (eval $ac_try) 2>&5
  28147. ac_status=$?
  28148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28149. (exit $ac_status); }; } &&
  28150. { ac_try='test -s conftest.$ac_objext'
  28151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28152. (eval $ac_try) 2>&5
  28153. ac_status=$?
  28154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28155. (exit $ac_status); }; }; then
  28156. ac_cv_type_int8_t=yes
  28157. else
  28158. echo "$as_me: failed program was:" >&5
  28159. sed 's/^/| /' conftest.$ac_ext >&5
  28160. ac_cv_type_int8_t=no
  28161. fi
  28162. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28163. fi
  28164. echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  28165. echo "${ECHO_T}$ac_cv_type_int8_t" >&6
  28166. if test $ac_cv_type_int8_t = yes; then
  28167. cat >>confdefs.h <<_ACEOF
  28168. #define HAVE_INT8_T 1
  28169. _ACEOF
  28170. fi
  28171. echo "$as_me:$LINENO: checking for uint8_t" >&5
  28172. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
  28173. if test "${ac_cv_type_uint8_t+set}" = set; then
  28174. echo $ECHO_N "(cached) $ECHO_C" >&6
  28175. else
  28176. cat >conftest.$ac_ext <<_ACEOF
  28177. /* confdefs.h. */
  28178. _ACEOF
  28179. cat confdefs.h >>conftest.$ac_ext
  28180. cat >>conftest.$ac_ext <<_ACEOF
  28181. /* end confdefs.h. */
  28182. $ac_includes_default
  28183. int
  28184. main ()
  28185. {
  28186. if ((uint8_t *) 0)
  28187. return 0;
  28188. if (sizeof (uint8_t))
  28189. return 0;
  28190. ;
  28191. return 0;
  28192. }
  28193. _ACEOF
  28194. rm -f conftest.$ac_objext
  28195. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28196. (eval $ac_compile) 2>conftest.er1
  28197. ac_status=$?
  28198. grep -v '^ *+' conftest.er1 >conftest.err
  28199. rm -f conftest.er1
  28200. cat conftest.err >&5
  28201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28202. (exit $ac_status); } &&
  28203. { ac_try='test -z "$ac_c_werror_flag"
  28204. || test ! -s conftest.err'
  28205. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28206. (eval $ac_try) 2>&5
  28207. ac_status=$?
  28208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28209. (exit $ac_status); }; } &&
  28210. { ac_try='test -s conftest.$ac_objext'
  28211. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28212. (eval $ac_try) 2>&5
  28213. ac_status=$?
  28214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28215. (exit $ac_status); }; }; then
  28216. ac_cv_type_uint8_t=yes
  28217. else
  28218. echo "$as_me: failed program was:" >&5
  28219. sed 's/^/| /' conftest.$ac_ext >&5
  28220. ac_cv_type_uint8_t=no
  28221. fi
  28222. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28223. fi
  28224. echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  28225. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
  28226. if test $ac_cv_type_uint8_t = yes; then
  28227. cat >>confdefs.h <<_ACEOF
  28228. #define HAVE_UINT8_T 1
  28229. _ACEOF
  28230. fi
  28231. echo "$as_me:$LINENO: checking for int16_t" >&5
  28232. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
  28233. if test "${ac_cv_type_int16_t+set}" = set; then
  28234. echo $ECHO_N "(cached) $ECHO_C" >&6
  28235. else
  28236. cat >conftest.$ac_ext <<_ACEOF
  28237. /* confdefs.h. */
  28238. _ACEOF
  28239. cat confdefs.h >>conftest.$ac_ext
  28240. cat >>conftest.$ac_ext <<_ACEOF
  28241. /* end confdefs.h. */
  28242. $ac_includes_default
  28243. int
  28244. main ()
  28245. {
  28246. if ((int16_t *) 0)
  28247. return 0;
  28248. if (sizeof (int16_t))
  28249. return 0;
  28250. ;
  28251. return 0;
  28252. }
  28253. _ACEOF
  28254. rm -f conftest.$ac_objext
  28255. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28256. (eval $ac_compile) 2>conftest.er1
  28257. ac_status=$?
  28258. grep -v '^ *+' conftest.er1 >conftest.err
  28259. rm -f conftest.er1
  28260. cat conftest.err >&5
  28261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28262. (exit $ac_status); } &&
  28263. { ac_try='test -z "$ac_c_werror_flag"
  28264. || test ! -s conftest.err'
  28265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28266. (eval $ac_try) 2>&5
  28267. ac_status=$?
  28268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28269. (exit $ac_status); }; } &&
  28270. { ac_try='test -s conftest.$ac_objext'
  28271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28272. (eval $ac_try) 2>&5
  28273. ac_status=$?
  28274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28275. (exit $ac_status); }; }; then
  28276. ac_cv_type_int16_t=yes
  28277. else
  28278. echo "$as_me: failed program was:" >&5
  28279. sed 's/^/| /' conftest.$ac_ext >&5
  28280. ac_cv_type_int16_t=no
  28281. fi
  28282. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28283. fi
  28284. echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  28285. echo "${ECHO_T}$ac_cv_type_int16_t" >&6
  28286. if test $ac_cv_type_int16_t = yes; then
  28287. cat >>confdefs.h <<_ACEOF
  28288. #define HAVE_INT16_T 1
  28289. _ACEOF
  28290. fi
  28291. echo "$as_me:$LINENO: checking for uint16_t" >&5
  28292. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
  28293. if test "${ac_cv_type_uint16_t+set}" = set; then
  28294. echo $ECHO_N "(cached) $ECHO_C" >&6
  28295. else
  28296. cat >conftest.$ac_ext <<_ACEOF
  28297. /* confdefs.h. */
  28298. _ACEOF
  28299. cat confdefs.h >>conftest.$ac_ext
  28300. cat >>conftest.$ac_ext <<_ACEOF
  28301. /* end confdefs.h. */
  28302. $ac_includes_default
  28303. int
  28304. main ()
  28305. {
  28306. if ((uint16_t *) 0)
  28307. return 0;
  28308. if (sizeof (uint16_t))
  28309. return 0;
  28310. ;
  28311. return 0;
  28312. }
  28313. _ACEOF
  28314. rm -f conftest.$ac_objext
  28315. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28316. (eval $ac_compile) 2>conftest.er1
  28317. ac_status=$?
  28318. grep -v '^ *+' conftest.er1 >conftest.err
  28319. rm -f conftest.er1
  28320. cat conftest.err >&5
  28321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28322. (exit $ac_status); } &&
  28323. { ac_try='test -z "$ac_c_werror_flag"
  28324. || test ! -s conftest.err'
  28325. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28326. (eval $ac_try) 2>&5
  28327. ac_status=$?
  28328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28329. (exit $ac_status); }; } &&
  28330. { ac_try='test -s conftest.$ac_objext'
  28331. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28332. (eval $ac_try) 2>&5
  28333. ac_status=$?
  28334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28335. (exit $ac_status); }; }; then
  28336. ac_cv_type_uint16_t=yes
  28337. else
  28338. echo "$as_me: failed program was:" >&5
  28339. sed 's/^/| /' conftest.$ac_ext >&5
  28340. ac_cv_type_uint16_t=no
  28341. fi
  28342. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28343. fi
  28344. echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  28345. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
  28346. if test $ac_cv_type_uint16_t = yes; then
  28347. cat >>confdefs.h <<_ACEOF
  28348. #define HAVE_UINT16_T 1
  28349. _ACEOF
  28350. fi
  28351. echo "$as_me:$LINENO: checking for int32_t" >&5
  28352. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
  28353. if test "${ac_cv_type_int32_t+set}" = set; then
  28354. echo $ECHO_N "(cached) $ECHO_C" >&6
  28355. else
  28356. cat >conftest.$ac_ext <<_ACEOF
  28357. /* confdefs.h. */
  28358. _ACEOF
  28359. cat confdefs.h >>conftest.$ac_ext
  28360. cat >>conftest.$ac_ext <<_ACEOF
  28361. /* end confdefs.h. */
  28362. $ac_includes_default
  28363. int
  28364. main ()
  28365. {
  28366. if ((int32_t *) 0)
  28367. return 0;
  28368. if (sizeof (int32_t))
  28369. return 0;
  28370. ;
  28371. return 0;
  28372. }
  28373. _ACEOF
  28374. rm -f conftest.$ac_objext
  28375. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28376. (eval $ac_compile) 2>conftest.er1
  28377. ac_status=$?
  28378. grep -v '^ *+' conftest.er1 >conftest.err
  28379. rm -f conftest.er1
  28380. cat conftest.err >&5
  28381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28382. (exit $ac_status); } &&
  28383. { ac_try='test -z "$ac_c_werror_flag"
  28384. || test ! -s conftest.err'
  28385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28386. (eval $ac_try) 2>&5
  28387. ac_status=$?
  28388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28389. (exit $ac_status); }; } &&
  28390. { ac_try='test -s conftest.$ac_objext'
  28391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28392. (eval $ac_try) 2>&5
  28393. ac_status=$?
  28394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28395. (exit $ac_status); }; }; then
  28396. ac_cv_type_int32_t=yes
  28397. else
  28398. echo "$as_me: failed program was:" >&5
  28399. sed 's/^/| /' conftest.$ac_ext >&5
  28400. ac_cv_type_int32_t=no
  28401. fi
  28402. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28403. fi
  28404. echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  28405. echo "${ECHO_T}$ac_cv_type_int32_t" >&6
  28406. if test $ac_cv_type_int32_t = yes; then
  28407. cat >>confdefs.h <<_ACEOF
  28408. #define HAVE_INT32_T 1
  28409. _ACEOF
  28410. fi
  28411. echo "$as_me:$LINENO: checking for uint32_t" >&5
  28412. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
  28413. if test "${ac_cv_type_uint32_t+set}" = set; then
  28414. echo $ECHO_N "(cached) $ECHO_C" >&6
  28415. else
  28416. cat >conftest.$ac_ext <<_ACEOF
  28417. /* confdefs.h. */
  28418. _ACEOF
  28419. cat confdefs.h >>conftest.$ac_ext
  28420. cat >>conftest.$ac_ext <<_ACEOF
  28421. /* end confdefs.h. */
  28422. $ac_includes_default
  28423. int
  28424. main ()
  28425. {
  28426. if ((uint32_t *) 0)
  28427. return 0;
  28428. if (sizeof (uint32_t))
  28429. return 0;
  28430. ;
  28431. return 0;
  28432. }
  28433. _ACEOF
  28434. rm -f conftest.$ac_objext
  28435. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28436. (eval $ac_compile) 2>conftest.er1
  28437. ac_status=$?
  28438. grep -v '^ *+' conftest.er1 >conftest.err
  28439. rm -f conftest.er1
  28440. cat conftest.err >&5
  28441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28442. (exit $ac_status); } &&
  28443. { ac_try='test -z "$ac_c_werror_flag"
  28444. || test ! -s conftest.err'
  28445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28446. (eval $ac_try) 2>&5
  28447. ac_status=$?
  28448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28449. (exit $ac_status); }; } &&
  28450. { ac_try='test -s conftest.$ac_objext'
  28451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28452. (eval $ac_try) 2>&5
  28453. ac_status=$?
  28454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28455. (exit $ac_status); }; }; then
  28456. ac_cv_type_uint32_t=yes
  28457. else
  28458. echo "$as_me: failed program was:" >&5
  28459. sed 's/^/| /' conftest.$ac_ext >&5
  28460. ac_cv_type_uint32_t=no
  28461. fi
  28462. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28463. fi
  28464. echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  28465. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
  28466. if test $ac_cv_type_uint32_t = yes; then
  28467. cat >>confdefs.h <<_ACEOF
  28468. #define HAVE_UINT32_T 1
  28469. _ACEOF
  28470. fi
  28471. echo "$as_me:$LINENO: checking for intptr_t" >&5
  28472. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
  28473. if test "${ac_cv_type_intptr_t+set}" = set; then
  28474. echo $ECHO_N "(cached) $ECHO_C" >&6
  28475. else
  28476. cat >conftest.$ac_ext <<_ACEOF
  28477. /* confdefs.h. */
  28478. _ACEOF
  28479. cat confdefs.h >>conftest.$ac_ext
  28480. cat >>conftest.$ac_ext <<_ACEOF
  28481. /* end confdefs.h. */
  28482. $ac_includes_default
  28483. int
  28484. main ()
  28485. {
  28486. if ((intptr_t *) 0)
  28487. return 0;
  28488. if (sizeof (intptr_t))
  28489. return 0;
  28490. ;
  28491. return 0;
  28492. }
  28493. _ACEOF
  28494. rm -f conftest.$ac_objext
  28495. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28496. (eval $ac_compile) 2>conftest.er1
  28497. ac_status=$?
  28498. grep -v '^ *+' conftest.er1 >conftest.err
  28499. rm -f conftest.er1
  28500. cat conftest.err >&5
  28501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28502. (exit $ac_status); } &&
  28503. { ac_try='test -z "$ac_c_werror_flag"
  28504. || test ! -s conftest.err'
  28505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28506. (eval $ac_try) 2>&5
  28507. ac_status=$?
  28508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28509. (exit $ac_status); }; } &&
  28510. { ac_try='test -s conftest.$ac_objext'
  28511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28512. (eval $ac_try) 2>&5
  28513. ac_status=$?
  28514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28515. (exit $ac_status); }; }; then
  28516. ac_cv_type_intptr_t=yes
  28517. else
  28518. echo "$as_me: failed program was:" >&5
  28519. sed 's/^/| /' conftest.$ac_ext >&5
  28520. ac_cv_type_intptr_t=no
  28521. fi
  28522. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28523. fi
  28524. echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  28525. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
  28526. if test $ac_cv_type_intptr_t = yes; then
  28527. cat >>confdefs.h <<_ACEOF
  28528. #define HAVE_INTPTR_T 1
  28529. _ACEOF
  28530. fi
  28531. # ====================
  28532. # uintptr type & sizes
  28533. # ====================
  28534. echo "$as_me:$LINENO: checking for uintptr_t" >&5
  28535. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
  28536. if test "${ac_cv_type_uintptr_t+set}" = set; then
  28537. echo $ECHO_N "(cached) $ECHO_C" >&6
  28538. else
  28539. cat >conftest.$ac_ext <<_ACEOF
  28540. /* confdefs.h. */
  28541. _ACEOF
  28542. cat confdefs.h >>conftest.$ac_ext
  28543. cat >>conftest.$ac_ext <<_ACEOF
  28544. /* end confdefs.h. */
  28545. $ac_includes_default
  28546. int
  28547. main ()
  28548. {
  28549. if ((uintptr_t *) 0)
  28550. return 0;
  28551. if (sizeof (uintptr_t))
  28552. return 0;
  28553. ;
  28554. return 0;
  28555. }
  28556. _ACEOF
  28557. rm -f conftest.$ac_objext
  28558. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28559. (eval $ac_compile) 2>conftest.er1
  28560. ac_status=$?
  28561. grep -v '^ *+' conftest.er1 >conftest.err
  28562. rm -f conftest.er1
  28563. cat conftest.err >&5
  28564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28565. (exit $ac_status); } &&
  28566. { ac_try='test -z "$ac_c_werror_flag"
  28567. || test ! -s conftest.err'
  28568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28569. (eval $ac_try) 2>&5
  28570. ac_status=$?
  28571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28572. (exit $ac_status); }; } &&
  28573. { ac_try='test -s conftest.$ac_objext'
  28574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28575. (eval $ac_try) 2>&5
  28576. ac_status=$?
  28577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28578. (exit $ac_status); }; }; then
  28579. ac_cv_type_uintptr_t=yes
  28580. else
  28581. echo "$as_me: failed program was:" >&5
  28582. sed 's/^/| /' conftest.$ac_ext >&5
  28583. ac_cv_type_uintptr_t=no
  28584. fi
  28585. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28586. fi
  28587. echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  28588. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
  28589. if test $ac_cv_type_uintptr_t = yes; then
  28590. cat >>confdefs.h <<_ACEOF
  28591. #define HAVE_UINTPTR_T 1
  28592. _ACEOF
  28593. else
  28594. cat >>confdefs.h <<\_ACEOF
  28595. #define uintptr_t unsigned long
  28596. _ACEOF
  28597. fi
  28598. echo "$as_me:$LINENO: checking for char*" >&5
  28599. echo $ECHO_N "checking for char*... $ECHO_C" >&6
  28600. if test "${ac_cv_type_charp+set}" = set; then
  28601. echo $ECHO_N "(cached) $ECHO_C" >&6
  28602. else
  28603. cat >conftest.$ac_ext <<_ACEOF
  28604. /* confdefs.h. */
  28605. _ACEOF
  28606. cat confdefs.h >>conftest.$ac_ext
  28607. cat >>conftest.$ac_ext <<_ACEOF
  28608. /* end confdefs.h. */
  28609. $ac_includes_default
  28610. int
  28611. main ()
  28612. {
  28613. if ((char* *) 0)
  28614. return 0;
  28615. if (sizeof (char*))
  28616. return 0;
  28617. ;
  28618. return 0;
  28619. }
  28620. _ACEOF
  28621. rm -f conftest.$ac_objext
  28622. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28623. (eval $ac_compile) 2>conftest.er1
  28624. ac_status=$?
  28625. grep -v '^ *+' conftest.er1 >conftest.err
  28626. rm -f conftest.er1
  28627. cat conftest.err >&5
  28628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28629. (exit $ac_status); } &&
  28630. { ac_try='test -z "$ac_c_werror_flag"
  28631. || test ! -s conftest.err'
  28632. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28633. (eval $ac_try) 2>&5
  28634. ac_status=$?
  28635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28636. (exit $ac_status); }; } &&
  28637. { ac_try='test -s conftest.$ac_objext'
  28638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28639. (eval $ac_try) 2>&5
  28640. ac_status=$?
  28641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28642. (exit $ac_status); }; }; then
  28643. ac_cv_type_charp=yes
  28644. else
  28645. echo "$as_me: failed program was:" >&5
  28646. sed 's/^/| /' conftest.$ac_ext >&5
  28647. ac_cv_type_charp=no
  28648. fi
  28649. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28650. fi
  28651. echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  28652. echo "${ECHO_T}$ac_cv_type_charp" >&6
  28653. echo "$as_me:$LINENO: checking size of char*" >&5
  28654. echo $ECHO_N "checking size of char*... $ECHO_C" >&6
  28655. if test "${ac_cv_sizeof_charp+set}" = set; then
  28656. echo $ECHO_N "(cached) $ECHO_C" >&6
  28657. else
  28658. if test "$ac_cv_type_charp" = yes; then
  28659. # The cast to unsigned long works around a bug in the HP C Compiler
  28660. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  28661. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  28662. # This bug is HP SR number 8606223364.
  28663. if test "$cross_compiling" = yes; then
  28664. # Depending upon the size, compute the lo and hi bounds.
  28665. cat >conftest.$ac_ext <<_ACEOF
  28666. /* confdefs.h. */
  28667. _ACEOF
  28668. cat confdefs.h >>conftest.$ac_ext
  28669. cat >>conftest.$ac_ext <<_ACEOF
  28670. /* end confdefs.h. */
  28671. $ac_includes_default
  28672. int
  28673. main ()
  28674. {
  28675. static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
  28676. test_array [0] = 0
  28677. ;
  28678. return 0;
  28679. }
  28680. _ACEOF
  28681. rm -f conftest.$ac_objext
  28682. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28683. (eval $ac_compile) 2>conftest.er1
  28684. ac_status=$?
  28685. grep -v '^ *+' conftest.er1 >conftest.err
  28686. rm -f conftest.er1
  28687. cat conftest.err >&5
  28688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28689. (exit $ac_status); } &&
  28690. { ac_try='test -z "$ac_c_werror_flag"
  28691. || test ! -s conftest.err'
  28692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28693. (eval $ac_try) 2>&5
  28694. ac_status=$?
  28695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28696. (exit $ac_status); }; } &&
  28697. { ac_try='test -s conftest.$ac_objext'
  28698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28699. (eval $ac_try) 2>&5
  28700. ac_status=$?
  28701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28702. (exit $ac_status); }; }; then
  28703. ac_lo=0 ac_mid=0
  28704. while :; do
  28705. cat >conftest.$ac_ext <<_ACEOF
  28706. /* confdefs.h. */
  28707. _ACEOF
  28708. cat confdefs.h >>conftest.$ac_ext
  28709. cat >>conftest.$ac_ext <<_ACEOF
  28710. /* end confdefs.h. */
  28711. $ac_includes_default
  28712. int
  28713. main ()
  28714. {
  28715. static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
  28716. test_array [0] = 0
  28717. ;
  28718. return 0;
  28719. }
  28720. _ACEOF
  28721. rm -f conftest.$ac_objext
  28722. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28723. (eval $ac_compile) 2>conftest.er1
  28724. ac_status=$?
  28725. grep -v '^ *+' conftest.er1 >conftest.err
  28726. rm -f conftest.er1
  28727. cat conftest.err >&5
  28728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28729. (exit $ac_status); } &&
  28730. { ac_try='test -z "$ac_c_werror_flag"
  28731. || test ! -s conftest.err'
  28732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28733. (eval $ac_try) 2>&5
  28734. ac_status=$?
  28735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28736. (exit $ac_status); }; } &&
  28737. { ac_try='test -s conftest.$ac_objext'
  28738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28739. (eval $ac_try) 2>&5
  28740. ac_status=$?
  28741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28742. (exit $ac_status); }; }; then
  28743. ac_hi=$ac_mid; break
  28744. else
  28745. echo "$as_me: failed program was:" >&5
  28746. sed 's/^/| /' conftest.$ac_ext >&5
  28747. ac_lo=`expr $ac_mid + 1`
  28748. if test $ac_lo -le $ac_mid; then
  28749. ac_lo= ac_hi=
  28750. break
  28751. fi
  28752. ac_mid=`expr 2 '*' $ac_mid + 1`
  28753. fi
  28754. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28755. done
  28756. else
  28757. echo "$as_me: failed program was:" >&5
  28758. sed 's/^/| /' conftest.$ac_ext >&5
  28759. cat >conftest.$ac_ext <<_ACEOF
  28760. /* confdefs.h. */
  28761. _ACEOF
  28762. cat confdefs.h >>conftest.$ac_ext
  28763. cat >>conftest.$ac_ext <<_ACEOF
  28764. /* end confdefs.h. */
  28765. $ac_includes_default
  28766. int
  28767. main ()
  28768. {
  28769. static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
  28770. test_array [0] = 0
  28771. ;
  28772. return 0;
  28773. }
  28774. _ACEOF
  28775. rm -f conftest.$ac_objext
  28776. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28777. (eval $ac_compile) 2>conftest.er1
  28778. ac_status=$?
  28779. grep -v '^ *+' conftest.er1 >conftest.err
  28780. rm -f conftest.er1
  28781. cat conftest.err >&5
  28782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28783. (exit $ac_status); } &&
  28784. { ac_try='test -z "$ac_c_werror_flag"
  28785. || test ! -s conftest.err'
  28786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28787. (eval $ac_try) 2>&5
  28788. ac_status=$?
  28789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28790. (exit $ac_status); }; } &&
  28791. { ac_try='test -s conftest.$ac_objext'
  28792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28793. (eval $ac_try) 2>&5
  28794. ac_status=$?
  28795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28796. (exit $ac_status); }; }; then
  28797. ac_hi=-1 ac_mid=-1
  28798. while :; do
  28799. cat >conftest.$ac_ext <<_ACEOF
  28800. /* confdefs.h. */
  28801. _ACEOF
  28802. cat confdefs.h >>conftest.$ac_ext
  28803. cat >>conftest.$ac_ext <<_ACEOF
  28804. /* end confdefs.h. */
  28805. $ac_includes_default
  28806. int
  28807. main ()
  28808. {
  28809. static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
  28810. test_array [0] = 0
  28811. ;
  28812. return 0;
  28813. }
  28814. _ACEOF
  28815. rm -f conftest.$ac_objext
  28816. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28817. (eval $ac_compile) 2>conftest.er1
  28818. ac_status=$?
  28819. grep -v '^ *+' conftest.er1 >conftest.err
  28820. rm -f conftest.er1
  28821. cat conftest.err >&5
  28822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28823. (exit $ac_status); } &&
  28824. { ac_try='test -z "$ac_c_werror_flag"
  28825. || test ! -s conftest.err'
  28826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28827. (eval $ac_try) 2>&5
  28828. ac_status=$?
  28829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28830. (exit $ac_status); }; } &&
  28831. { ac_try='test -s conftest.$ac_objext'
  28832. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28833. (eval $ac_try) 2>&5
  28834. ac_status=$?
  28835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28836. (exit $ac_status); }; }; then
  28837. ac_lo=$ac_mid; break
  28838. else
  28839. echo "$as_me: failed program was:" >&5
  28840. sed 's/^/| /' conftest.$ac_ext >&5
  28841. ac_hi=`expr '(' $ac_mid ')' - 1`
  28842. if test $ac_mid -le $ac_hi; then
  28843. ac_lo= ac_hi=
  28844. break
  28845. fi
  28846. ac_mid=`expr 2 '*' $ac_mid`
  28847. fi
  28848. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28849. done
  28850. else
  28851. echo "$as_me: failed program was:" >&5
  28852. sed 's/^/| /' conftest.$ac_ext >&5
  28853. ac_lo= ac_hi=
  28854. fi
  28855. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28856. fi
  28857. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28858. # Binary search between lo and hi bounds.
  28859. while test "x$ac_lo" != "x$ac_hi"; do
  28860. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  28861. cat >conftest.$ac_ext <<_ACEOF
  28862. /* confdefs.h. */
  28863. _ACEOF
  28864. cat confdefs.h >>conftest.$ac_ext
  28865. cat >>conftest.$ac_ext <<_ACEOF
  28866. /* end confdefs.h. */
  28867. $ac_includes_default
  28868. int
  28869. main ()
  28870. {
  28871. static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
  28872. test_array [0] = 0
  28873. ;
  28874. return 0;
  28875. }
  28876. _ACEOF
  28877. rm -f conftest.$ac_objext
  28878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28879. (eval $ac_compile) 2>conftest.er1
  28880. ac_status=$?
  28881. grep -v '^ *+' conftest.er1 >conftest.err
  28882. rm -f conftest.er1
  28883. cat conftest.err >&5
  28884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28885. (exit $ac_status); } &&
  28886. { ac_try='test -z "$ac_c_werror_flag"
  28887. || test ! -s conftest.err'
  28888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28889. (eval $ac_try) 2>&5
  28890. ac_status=$?
  28891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28892. (exit $ac_status); }; } &&
  28893. { ac_try='test -s conftest.$ac_objext'
  28894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28895. (eval $ac_try) 2>&5
  28896. ac_status=$?
  28897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28898. (exit $ac_status); }; }; then
  28899. ac_hi=$ac_mid
  28900. else
  28901. echo "$as_me: failed program was:" >&5
  28902. sed 's/^/| /' conftest.$ac_ext >&5
  28903. ac_lo=`expr '(' $ac_mid ')' + 1`
  28904. fi
  28905. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  28906. done
  28907. case $ac_lo in
  28908. ?*) ac_cv_sizeof_charp=$ac_lo;;
  28909. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
  28910. See \`config.log' for more details." >&5
  28911. echo "$as_me: error: cannot compute sizeof (char*), 77
  28912. See \`config.log' for more details." >&2;}
  28913. { (exit 1); exit 1; }; } ;;
  28914. esac
  28915. else
  28916. if test "$cross_compiling" = yes; then
  28917. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  28918. See \`config.log' for more details." >&5
  28919. echo "$as_me: error: cannot run test program while cross compiling
  28920. See \`config.log' for more details." >&2;}
  28921. { (exit 1); exit 1; }; }
  28922. else
  28923. cat >conftest.$ac_ext <<_ACEOF
  28924. /* confdefs.h. */
  28925. _ACEOF
  28926. cat confdefs.h >>conftest.$ac_ext
  28927. cat >>conftest.$ac_ext <<_ACEOF
  28928. /* end confdefs.h. */
  28929. $ac_includes_default
  28930. long longval () { return (long) (sizeof (char*)); }
  28931. unsigned long ulongval () { return (long) (sizeof (char*)); }
  28932. #include <stdio.h>
  28933. #include <stdlib.h>
  28934. int
  28935. main ()
  28936. {
  28937. FILE *f = fopen ("conftest.val", "w");
  28938. if (! f)
  28939. exit (1);
  28940. if (((long) (sizeof (char*))) < 0)
  28941. {
  28942. long i = longval ();
  28943. if (i != ((long) (sizeof (char*))))
  28944. exit (1);
  28945. fprintf (f, "%ld\n", i);
  28946. }
  28947. else
  28948. {
  28949. unsigned long i = ulongval ();
  28950. if (i != ((long) (sizeof (char*))))
  28951. exit (1);
  28952. fprintf (f, "%lu\n", i);
  28953. }
  28954. exit (ferror (f) || fclose (f) != 0);
  28955. ;
  28956. return 0;
  28957. }
  28958. _ACEOF
  28959. rm -f conftest$ac_exeext
  28960. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28961. (eval $ac_link) 2>&5
  28962. ac_status=$?
  28963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28964. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28966. (eval $ac_try) 2>&5
  28967. ac_status=$?
  28968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28969. (exit $ac_status); }; }; then
  28970. ac_cv_sizeof_charp=`cat conftest.val`
  28971. else
  28972. echo "$as_me: program exited with status $ac_status" >&5
  28973. echo "$as_me: failed program was:" >&5
  28974. sed 's/^/| /' conftest.$ac_ext >&5
  28975. ( exit $ac_status )
  28976. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
  28977. See \`config.log' for more details." >&5
  28978. echo "$as_me: error: cannot compute sizeof (char*), 77
  28979. See \`config.log' for more details." >&2;}
  28980. { (exit 1); exit 1; }; }
  28981. fi
  28982. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28983. fi
  28984. fi
  28985. rm -f conftest.val
  28986. else
  28987. ac_cv_sizeof_charp=0
  28988. fi
  28989. fi
  28990. echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  28991. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
  28992. cat >>confdefs.h <<_ACEOF
  28993. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  28994. _ACEOF
  28995. echo "$as_me:$LINENO: checking for int" >&5
  28996. echo $ECHO_N "checking for int... $ECHO_C" >&6
  28997. if test "${ac_cv_type_int+set}" = set; then
  28998. echo $ECHO_N "(cached) $ECHO_C" >&6
  28999. else
  29000. cat >conftest.$ac_ext <<_ACEOF
  29001. /* confdefs.h. */
  29002. _ACEOF
  29003. cat confdefs.h >>conftest.$ac_ext
  29004. cat >>conftest.$ac_ext <<_ACEOF
  29005. /* end confdefs.h. */
  29006. $ac_includes_default
  29007. int
  29008. main ()
  29009. {
  29010. if ((int *) 0)
  29011. return 0;
  29012. if (sizeof (int))
  29013. return 0;
  29014. ;
  29015. return 0;
  29016. }
  29017. _ACEOF
  29018. rm -f conftest.$ac_objext
  29019. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29020. (eval $ac_compile) 2>conftest.er1
  29021. ac_status=$?
  29022. grep -v '^ *+' conftest.er1 >conftest.err
  29023. rm -f conftest.er1
  29024. cat conftest.err >&5
  29025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29026. (exit $ac_status); } &&
  29027. { ac_try='test -z "$ac_c_werror_flag"
  29028. || test ! -s conftest.err'
  29029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29030. (eval $ac_try) 2>&5
  29031. ac_status=$?
  29032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29033. (exit $ac_status); }; } &&
  29034. { ac_try='test -s conftest.$ac_objext'
  29035. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29036. (eval $ac_try) 2>&5
  29037. ac_status=$?
  29038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29039. (exit $ac_status); }; }; then
  29040. ac_cv_type_int=yes
  29041. else
  29042. echo "$as_me: failed program was:" >&5
  29043. sed 's/^/| /' conftest.$ac_ext >&5
  29044. ac_cv_type_int=no
  29045. fi
  29046. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29047. fi
  29048. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  29049. echo "${ECHO_T}$ac_cv_type_int" >&6
  29050. echo "$as_me:$LINENO: checking size of int" >&5
  29051. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  29052. if test "${ac_cv_sizeof_int+set}" = set; then
  29053. echo $ECHO_N "(cached) $ECHO_C" >&6
  29054. else
  29055. if test "$ac_cv_type_int" = yes; then
  29056. # The cast to unsigned long works around a bug in the HP C Compiler
  29057. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29058. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29059. # This bug is HP SR number 8606223364.
  29060. if test "$cross_compiling" = yes; then
  29061. # Depending upon the size, compute the lo and hi bounds.
  29062. cat >conftest.$ac_ext <<_ACEOF
  29063. /* confdefs.h. */
  29064. _ACEOF
  29065. cat confdefs.h >>conftest.$ac_ext
  29066. cat >>conftest.$ac_ext <<_ACEOF
  29067. /* end confdefs.h. */
  29068. $ac_includes_default
  29069. int
  29070. main ()
  29071. {
  29072. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  29073. test_array [0] = 0
  29074. ;
  29075. return 0;
  29076. }
  29077. _ACEOF
  29078. rm -f conftest.$ac_objext
  29079. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29080. (eval $ac_compile) 2>conftest.er1
  29081. ac_status=$?
  29082. grep -v '^ *+' conftest.er1 >conftest.err
  29083. rm -f conftest.er1
  29084. cat conftest.err >&5
  29085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29086. (exit $ac_status); } &&
  29087. { ac_try='test -z "$ac_c_werror_flag"
  29088. || test ! -s conftest.err'
  29089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29090. (eval $ac_try) 2>&5
  29091. ac_status=$?
  29092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29093. (exit $ac_status); }; } &&
  29094. { ac_try='test -s conftest.$ac_objext'
  29095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29096. (eval $ac_try) 2>&5
  29097. ac_status=$?
  29098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29099. (exit $ac_status); }; }; then
  29100. ac_lo=0 ac_mid=0
  29101. while :; do
  29102. cat >conftest.$ac_ext <<_ACEOF
  29103. /* confdefs.h. */
  29104. _ACEOF
  29105. cat confdefs.h >>conftest.$ac_ext
  29106. cat >>conftest.$ac_ext <<_ACEOF
  29107. /* end confdefs.h. */
  29108. $ac_includes_default
  29109. int
  29110. main ()
  29111. {
  29112. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  29113. test_array [0] = 0
  29114. ;
  29115. return 0;
  29116. }
  29117. _ACEOF
  29118. rm -f conftest.$ac_objext
  29119. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29120. (eval $ac_compile) 2>conftest.er1
  29121. ac_status=$?
  29122. grep -v '^ *+' conftest.er1 >conftest.err
  29123. rm -f conftest.er1
  29124. cat conftest.err >&5
  29125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29126. (exit $ac_status); } &&
  29127. { ac_try='test -z "$ac_c_werror_flag"
  29128. || test ! -s conftest.err'
  29129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29130. (eval $ac_try) 2>&5
  29131. ac_status=$?
  29132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29133. (exit $ac_status); }; } &&
  29134. { ac_try='test -s conftest.$ac_objext'
  29135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29136. (eval $ac_try) 2>&5
  29137. ac_status=$?
  29138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29139. (exit $ac_status); }; }; then
  29140. ac_hi=$ac_mid; break
  29141. else
  29142. echo "$as_me: failed program was:" >&5
  29143. sed 's/^/| /' conftest.$ac_ext >&5
  29144. ac_lo=`expr $ac_mid + 1`
  29145. if test $ac_lo -le $ac_mid; then
  29146. ac_lo= ac_hi=
  29147. break
  29148. fi
  29149. ac_mid=`expr 2 '*' $ac_mid + 1`
  29150. fi
  29151. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29152. done
  29153. else
  29154. echo "$as_me: failed program was:" >&5
  29155. sed 's/^/| /' conftest.$ac_ext >&5
  29156. cat >conftest.$ac_ext <<_ACEOF
  29157. /* confdefs.h. */
  29158. _ACEOF
  29159. cat confdefs.h >>conftest.$ac_ext
  29160. cat >>conftest.$ac_ext <<_ACEOF
  29161. /* end confdefs.h. */
  29162. $ac_includes_default
  29163. int
  29164. main ()
  29165. {
  29166. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  29167. test_array [0] = 0
  29168. ;
  29169. return 0;
  29170. }
  29171. _ACEOF
  29172. rm -f conftest.$ac_objext
  29173. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29174. (eval $ac_compile) 2>conftest.er1
  29175. ac_status=$?
  29176. grep -v '^ *+' conftest.er1 >conftest.err
  29177. rm -f conftest.er1
  29178. cat conftest.err >&5
  29179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29180. (exit $ac_status); } &&
  29181. { ac_try='test -z "$ac_c_werror_flag"
  29182. || test ! -s conftest.err'
  29183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29184. (eval $ac_try) 2>&5
  29185. ac_status=$?
  29186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29187. (exit $ac_status); }; } &&
  29188. { ac_try='test -s conftest.$ac_objext'
  29189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29190. (eval $ac_try) 2>&5
  29191. ac_status=$?
  29192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29193. (exit $ac_status); }; }; then
  29194. ac_hi=-1 ac_mid=-1
  29195. while :; do
  29196. cat >conftest.$ac_ext <<_ACEOF
  29197. /* confdefs.h. */
  29198. _ACEOF
  29199. cat confdefs.h >>conftest.$ac_ext
  29200. cat >>conftest.$ac_ext <<_ACEOF
  29201. /* end confdefs.h. */
  29202. $ac_includes_default
  29203. int
  29204. main ()
  29205. {
  29206. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  29207. test_array [0] = 0
  29208. ;
  29209. return 0;
  29210. }
  29211. _ACEOF
  29212. rm -f conftest.$ac_objext
  29213. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29214. (eval $ac_compile) 2>conftest.er1
  29215. ac_status=$?
  29216. grep -v '^ *+' conftest.er1 >conftest.err
  29217. rm -f conftest.er1
  29218. cat conftest.err >&5
  29219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29220. (exit $ac_status); } &&
  29221. { ac_try='test -z "$ac_c_werror_flag"
  29222. || test ! -s conftest.err'
  29223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29224. (eval $ac_try) 2>&5
  29225. ac_status=$?
  29226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29227. (exit $ac_status); }; } &&
  29228. { ac_try='test -s conftest.$ac_objext'
  29229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29230. (eval $ac_try) 2>&5
  29231. ac_status=$?
  29232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29233. (exit $ac_status); }; }; then
  29234. ac_lo=$ac_mid; break
  29235. else
  29236. echo "$as_me: failed program was:" >&5
  29237. sed 's/^/| /' conftest.$ac_ext >&5
  29238. ac_hi=`expr '(' $ac_mid ')' - 1`
  29239. if test $ac_mid -le $ac_hi; then
  29240. ac_lo= ac_hi=
  29241. break
  29242. fi
  29243. ac_mid=`expr 2 '*' $ac_mid`
  29244. fi
  29245. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29246. done
  29247. else
  29248. echo "$as_me: failed program was:" >&5
  29249. sed 's/^/| /' conftest.$ac_ext >&5
  29250. ac_lo= ac_hi=
  29251. fi
  29252. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29253. fi
  29254. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29255. # Binary search between lo and hi bounds.
  29256. while test "x$ac_lo" != "x$ac_hi"; do
  29257. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  29258. cat >conftest.$ac_ext <<_ACEOF
  29259. /* confdefs.h. */
  29260. _ACEOF
  29261. cat confdefs.h >>conftest.$ac_ext
  29262. cat >>conftest.$ac_ext <<_ACEOF
  29263. /* end confdefs.h. */
  29264. $ac_includes_default
  29265. int
  29266. main ()
  29267. {
  29268. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  29269. test_array [0] = 0
  29270. ;
  29271. return 0;
  29272. }
  29273. _ACEOF
  29274. rm -f conftest.$ac_objext
  29275. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29276. (eval $ac_compile) 2>conftest.er1
  29277. ac_status=$?
  29278. grep -v '^ *+' conftest.er1 >conftest.err
  29279. rm -f conftest.er1
  29280. cat conftest.err >&5
  29281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29282. (exit $ac_status); } &&
  29283. { ac_try='test -z "$ac_c_werror_flag"
  29284. || test ! -s conftest.err'
  29285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29286. (eval $ac_try) 2>&5
  29287. ac_status=$?
  29288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29289. (exit $ac_status); }; } &&
  29290. { ac_try='test -s conftest.$ac_objext'
  29291. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29292. (eval $ac_try) 2>&5
  29293. ac_status=$?
  29294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29295. (exit $ac_status); }; }; then
  29296. ac_hi=$ac_mid
  29297. else
  29298. echo "$as_me: failed program was:" >&5
  29299. sed 's/^/| /' conftest.$ac_ext >&5
  29300. ac_lo=`expr '(' $ac_mid ')' + 1`
  29301. fi
  29302. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29303. done
  29304. case $ac_lo in
  29305. ?*) ac_cv_sizeof_int=$ac_lo;;
  29306. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  29307. See \`config.log' for more details." >&5
  29308. echo "$as_me: error: cannot compute sizeof (int), 77
  29309. See \`config.log' for more details." >&2;}
  29310. { (exit 1); exit 1; }; } ;;
  29311. esac
  29312. else
  29313. if test "$cross_compiling" = yes; then
  29314. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  29315. See \`config.log' for more details." >&5
  29316. echo "$as_me: error: cannot run test program while cross compiling
  29317. See \`config.log' for more details." >&2;}
  29318. { (exit 1); exit 1; }; }
  29319. else
  29320. cat >conftest.$ac_ext <<_ACEOF
  29321. /* confdefs.h. */
  29322. _ACEOF
  29323. cat confdefs.h >>conftest.$ac_ext
  29324. cat >>conftest.$ac_ext <<_ACEOF
  29325. /* end confdefs.h. */
  29326. $ac_includes_default
  29327. long longval () { return (long) (sizeof (int)); }
  29328. unsigned long ulongval () { return (long) (sizeof (int)); }
  29329. #include <stdio.h>
  29330. #include <stdlib.h>
  29331. int
  29332. main ()
  29333. {
  29334. FILE *f = fopen ("conftest.val", "w");
  29335. if (! f)
  29336. exit (1);
  29337. if (((long) (sizeof (int))) < 0)
  29338. {
  29339. long i = longval ();
  29340. if (i != ((long) (sizeof (int))))
  29341. exit (1);
  29342. fprintf (f, "%ld\n", i);
  29343. }
  29344. else
  29345. {
  29346. unsigned long i = ulongval ();
  29347. if (i != ((long) (sizeof (int))))
  29348. exit (1);
  29349. fprintf (f, "%lu\n", i);
  29350. }
  29351. exit (ferror (f) || fclose (f) != 0);
  29352. ;
  29353. return 0;
  29354. }
  29355. _ACEOF
  29356. rm -f conftest$ac_exeext
  29357. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29358. (eval $ac_link) 2>&5
  29359. ac_status=$?
  29360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29361. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29363. (eval $ac_try) 2>&5
  29364. ac_status=$?
  29365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29366. (exit $ac_status); }; }; then
  29367. ac_cv_sizeof_int=`cat conftest.val`
  29368. else
  29369. echo "$as_me: program exited with status $ac_status" >&5
  29370. echo "$as_me: failed program was:" >&5
  29371. sed 's/^/| /' conftest.$ac_ext >&5
  29372. ( exit $ac_status )
  29373. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  29374. See \`config.log' for more details." >&5
  29375. echo "$as_me: error: cannot compute sizeof (int), 77
  29376. See \`config.log' for more details." >&2;}
  29377. { (exit 1); exit 1; }; }
  29378. fi
  29379. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29380. fi
  29381. fi
  29382. rm -f conftest.val
  29383. else
  29384. ac_cv_sizeof_int=0
  29385. fi
  29386. fi
  29387. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  29388. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  29389. cat >>confdefs.h <<_ACEOF
  29390. #define SIZEOF_INT $ac_cv_sizeof_int
  29391. _ACEOF
  29392. echo "$as_me:$LINENO: checking for long" >&5
  29393. echo $ECHO_N "checking for long... $ECHO_C" >&6
  29394. if test "${ac_cv_type_long+set}" = set; then
  29395. echo $ECHO_N "(cached) $ECHO_C" >&6
  29396. else
  29397. cat >conftest.$ac_ext <<_ACEOF
  29398. /* confdefs.h. */
  29399. _ACEOF
  29400. cat confdefs.h >>conftest.$ac_ext
  29401. cat >>conftest.$ac_ext <<_ACEOF
  29402. /* end confdefs.h. */
  29403. $ac_includes_default
  29404. int
  29405. main ()
  29406. {
  29407. if ((long *) 0)
  29408. return 0;
  29409. if (sizeof (long))
  29410. return 0;
  29411. ;
  29412. return 0;
  29413. }
  29414. _ACEOF
  29415. rm -f conftest.$ac_objext
  29416. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29417. (eval $ac_compile) 2>conftest.er1
  29418. ac_status=$?
  29419. grep -v '^ *+' conftest.er1 >conftest.err
  29420. rm -f conftest.er1
  29421. cat conftest.err >&5
  29422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29423. (exit $ac_status); } &&
  29424. { ac_try='test -z "$ac_c_werror_flag"
  29425. || test ! -s conftest.err'
  29426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29427. (eval $ac_try) 2>&5
  29428. ac_status=$?
  29429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29430. (exit $ac_status); }; } &&
  29431. { ac_try='test -s conftest.$ac_objext'
  29432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29433. (eval $ac_try) 2>&5
  29434. ac_status=$?
  29435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29436. (exit $ac_status); }; }; then
  29437. ac_cv_type_long=yes
  29438. else
  29439. echo "$as_me: failed program was:" >&5
  29440. sed 's/^/| /' conftest.$ac_ext >&5
  29441. ac_cv_type_long=no
  29442. fi
  29443. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29444. fi
  29445. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  29446. echo "${ECHO_T}$ac_cv_type_long" >&6
  29447. echo "$as_me:$LINENO: checking size of long" >&5
  29448. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  29449. if test "${ac_cv_sizeof_long+set}" = set; then
  29450. echo $ECHO_N "(cached) $ECHO_C" >&6
  29451. else
  29452. if test "$ac_cv_type_long" = yes; then
  29453. # The cast to unsigned long works around a bug in the HP C Compiler
  29454. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29455. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29456. # This bug is HP SR number 8606223364.
  29457. if test "$cross_compiling" = yes; then
  29458. # Depending upon the size, compute the lo and hi bounds.
  29459. cat >conftest.$ac_ext <<_ACEOF
  29460. /* confdefs.h. */
  29461. _ACEOF
  29462. cat confdefs.h >>conftest.$ac_ext
  29463. cat >>conftest.$ac_ext <<_ACEOF
  29464. /* end confdefs.h. */
  29465. $ac_includes_default
  29466. int
  29467. main ()
  29468. {
  29469. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  29470. test_array [0] = 0
  29471. ;
  29472. return 0;
  29473. }
  29474. _ACEOF
  29475. rm -f conftest.$ac_objext
  29476. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29477. (eval $ac_compile) 2>conftest.er1
  29478. ac_status=$?
  29479. grep -v '^ *+' conftest.er1 >conftest.err
  29480. rm -f conftest.er1
  29481. cat conftest.err >&5
  29482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29483. (exit $ac_status); } &&
  29484. { ac_try='test -z "$ac_c_werror_flag"
  29485. || test ! -s conftest.err'
  29486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29487. (eval $ac_try) 2>&5
  29488. ac_status=$?
  29489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29490. (exit $ac_status); }; } &&
  29491. { ac_try='test -s conftest.$ac_objext'
  29492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29493. (eval $ac_try) 2>&5
  29494. ac_status=$?
  29495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29496. (exit $ac_status); }; }; then
  29497. ac_lo=0 ac_mid=0
  29498. while :; do
  29499. cat >conftest.$ac_ext <<_ACEOF
  29500. /* confdefs.h. */
  29501. _ACEOF
  29502. cat confdefs.h >>conftest.$ac_ext
  29503. cat >>conftest.$ac_ext <<_ACEOF
  29504. /* end confdefs.h. */
  29505. $ac_includes_default
  29506. int
  29507. main ()
  29508. {
  29509. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  29510. test_array [0] = 0
  29511. ;
  29512. return 0;
  29513. }
  29514. _ACEOF
  29515. rm -f conftest.$ac_objext
  29516. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29517. (eval $ac_compile) 2>conftest.er1
  29518. ac_status=$?
  29519. grep -v '^ *+' conftest.er1 >conftest.err
  29520. rm -f conftest.er1
  29521. cat conftest.err >&5
  29522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29523. (exit $ac_status); } &&
  29524. { ac_try='test -z "$ac_c_werror_flag"
  29525. || test ! -s conftest.err'
  29526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29527. (eval $ac_try) 2>&5
  29528. ac_status=$?
  29529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29530. (exit $ac_status); }; } &&
  29531. { ac_try='test -s conftest.$ac_objext'
  29532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29533. (eval $ac_try) 2>&5
  29534. ac_status=$?
  29535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29536. (exit $ac_status); }; }; then
  29537. ac_hi=$ac_mid; break
  29538. else
  29539. echo "$as_me: failed program was:" >&5
  29540. sed 's/^/| /' conftest.$ac_ext >&5
  29541. ac_lo=`expr $ac_mid + 1`
  29542. if test $ac_lo -le $ac_mid; then
  29543. ac_lo= ac_hi=
  29544. break
  29545. fi
  29546. ac_mid=`expr 2 '*' $ac_mid + 1`
  29547. fi
  29548. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29549. done
  29550. else
  29551. echo "$as_me: failed program was:" >&5
  29552. sed 's/^/| /' conftest.$ac_ext >&5
  29553. cat >conftest.$ac_ext <<_ACEOF
  29554. /* confdefs.h. */
  29555. _ACEOF
  29556. cat confdefs.h >>conftest.$ac_ext
  29557. cat >>conftest.$ac_ext <<_ACEOF
  29558. /* end confdefs.h. */
  29559. $ac_includes_default
  29560. int
  29561. main ()
  29562. {
  29563. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  29564. test_array [0] = 0
  29565. ;
  29566. return 0;
  29567. }
  29568. _ACEOF
  29569. rm -f conftest.$ac_objext
  29570. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29571. (eval $ac_compile) 2>conftest.er1
  29572. ac_status=$?
  29573. grep -v '^ *+' conftest.er1 >conftest.err
  29574. rm -f conftest.er1
  29575. cat conftest.err >&5
  29576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29577. (exit $ac_status); } &&
  29578. { ac_try='test -z "$ac_c_werror_flag"
  29579. || test ! -s conftest.err'
  29580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29581. (eval $ac_try) 2>&5
  29582. ac_status=$?
  29583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29584. (exit $ac_status); }; } &&
  29585. { ac_try='test -s conftest.$ac_objext'
  29586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29587. (eval $ac_try) 2>&5
  29588. ac_status=$?
  29589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29590. (exit $ac_status); }; }; then
  29591. ac_hi=-1 ac_mid=-1
  29592. while :; do
  29593. cat >conftest.$ac_ext <<_ACEOF
  29594. /* confdefs.h. */
  29595. _ACEOF
  29596. cat confdefs.h >>conftest.$ac_ext
  29597. cat >>conftest.$ac_ext <<_ACEOF
  29598. /* end confdefs.h. */
  29599. $ac_includes_default
  29600. int
  29601. main ()
  29602. {
  29603. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  29604. test_array [0] = 0
  29605. ;
  29606. return 0;
  29607. }
  29608. _ACEOF
  29609. rm -f conftest.$ac_objext
  29610. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29611. (eval $ac_compile) 2>conftest.er1
  29612. ac_status=$?
  29613. grep -v '^ *+' conftest.er1 >conftest.err
  29614. rm -f conftest.er1
  29615. cat conftest.err >&5
  29616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29617. (exit $ac_status); } &&
  29618. { ac_try='test -z "$ac_c_werror_flag"
  29619. || test ! -s conftest.err'
  29620. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29621. (eval $ac_try) 2>&5
  29622. ac_status=$?
  29623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29624. (exit $ac_status); }; } &&
  29625. { ac_try='test -s conftest.$ac_objext'
  29626. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29627. (eval $ac_try) 2>&5
  29628. ac_status=$?
  29629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29630. (exit $ac_status); }; }; then
  29631. ac_lo=$ac_mid; break
  29632. else
  29633. echo "$as_me: failed program was:" >&5
  29634. sed 's/^/| /' conftest.$ac_ext >&5
  29635. ac_hi=`expr '(' $ac_mid ')' - 1`
  29636. if test $ac_mid -le $ac_hi; then
  29637. ac_lo= ac_hi=
  29638. break
  29639. fi
  29640. ac_mid=`expr 2 '*' $ac_mid`
  29641. fi
  29642. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29643. done
  29644. else
  29645. echo "$as_me: failed program was:" >&5
  29646. sed 's/^/| /' conftest.$ac_ext >&5
  29647. ac_lo= ac_hi=
  29648. fi
  29649. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29650. fi
  29651. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29652. # Binary search between lo and hi bounds.
  29653. while test "x$ac_lo" != "x$ac_hi"; do
  29654. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  29655. cat >conftest.$ac_ext <<_ACEOF
  29656. /* confdefs.h. */
  29657. _ACEOF
  29658. cat confdefs.h >>conftest.$ac_ext
  29659. cat >>conftest.$ac_ext <<_ACEOF
  29660. /* end confdefs.h. */
  29661. $ac_includes_default
  29662. int
  29663. main ()
  29664. {
  29665. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  29666. test_array [0] = 0
  29667. ;
  29668. return 0;
  29669. }
  29670. _ACEOF
  29671. rm -f conftest.$ac_objext
  29672. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29673. (eval $ac_compile) 2>conftest.er1
  29674. ac_status=$?
  29675. grep -v '^ *+' conftest.er1 >conftest.err
  29676. rm -f conftest.er1
  29677. cat conftest.err >&5
  29678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29679. (exit $ac_status); } &&
  29680. { ac_try='test -z "$ac_c_werror_flag"
  29681. || test ! -s conftest.err'
  29682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29683. (eval $ac_try) 2>&5
  29684. ac_status=$?
  29685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29686. (exit $ac_status); }; } &&
  29687. { ac_try='test -s conftest.$ac_objext'
  29688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29689. (eval $ac_try) 2>&5
  29690. ac_status=$?
  29691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29692. (exit $ac_status); }; }; then
  29693. ac_hi=$ac_mid
  29694. else
  29695. echo "$as_me: failed program was:" >&5
  29696. sed 's/^/| /' conftest.$ac_ext >&5
  29697. ac_lo=`expr '(' $ac_mid ')' + 1`
  29698. fi
  29699. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29700. done
  29701. case $ac_lo in
  29702. ?*) ac_cv_sizeof_long=$ac_lo;;
  29703. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  29704. See \`config.log' for more details." >&5
  29705. echo "$as_me: error: cannot compute sizeof (long), 77
  29706. See \`config.log' for more details." >&2;}
  29707. { (exit 1); exit 1; }; } ;;
  29708. esac
  29709. else
  29710. if test "$cross_compiling" = yes; then
  29711. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  29712. See \`config.log' for more details." >&5
  29713. echo "$as_me: error: cannot run test program while cross compiling
  29714. See \`config.log' for more details." >&2;}
  29715. { (exit 1); exit 1; }; }
  29716. else
  29717. cat >conftest.$ac_ext <<_ACEOF
  29718. /* confdefs.h. */
  29719. _ACEOF
  29720. cat confdefs.h >>conftest.$ac_ext
  29721. cat >>conftest.$ac_ext <<_ACEOF
  29722. /* end confdefs.h. */
  29723. $ac_includes_default
  29724. long longval () { return (long) (sizeof (long)); }
  29725. unsigned long ulongval () { return (long) (sizeof (long)); }
  29726. #include <stdio.h>
  29727. #include <stdlib.h>
  29728. int
  29729. main ()
  29730. {
  29731. FILE *f = fopen ("conftest.val", "w");
  29732. if (! f)
  29733. exit (1);
  29734. if (((long) (sizeof (long))) < 0)
  29735. {
  29736. long i = longval ();
  29737. if (i != ((long) (sizeof (long))))
  29738. exit (1);
  29739. fprintf (f, "%ld\n", i);
  29740. }
  29741. else
  29742. {
  29743. unsigned long i = ulongval ();
  29744. if (i != ((long) (sizeof (long))))
  29745. exit (1);
  29746. fprintf (f, "%lu\n", i);
  29747. }
  29748. exit (ferror (f) || fclose (f) != 0);
  29749. ;
  29750. return 0;
  29751. }
  29752. _ACEOF
  29753. rm -f conftest$ac_exeext
  29754. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29755. (eval $ac_link) 2>&5
  29756. ac_status=$?
  29757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29758. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29760. (eval $ac_try) 2>&5
  29761. ac_status=$?
  29762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29763. (exit $ac_status); }; }; then
  29764. ac_cv_sizeof_long=`cat conftest.val`
  29765. else
  29766. echo "$as_me: program exited with status $ac_status" >&5
  29767. echo "$as_me: failed program was:" >&5
  29768. sed 's/^/| /' conftest.$ac_ext >&5
  29769. ( exit $ac_status )
  29770. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  29771. See \`config.log' for more details." >&5
  29772. echo "$as_me: error: cannot compute sizeof (long), 77
  29773. See \`config.log' for more details." >&2;}
  29774. { (exit 1); exit 1; }; }
  29775. fi
  29776. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29777. fi
  29778. fi
  29779. rm -f conftest.val
  29780. else
  29781. ac_cv_sizeof_long=0
  29782. fi
  29783. fi
  29784. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  29785. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  29786. cat >>confdefs.h <<_ACEOF
  29787. #define SIZEOF_LONG $ac_cv_sizeof_long
  29788. _ACEOF
  29789. echo "$as_me:$LINENO: checking for short" >&5
  29790. echo $ECHO_N "checking for short... $ECHO_C" >&6
  29791. if test "${ac_cv_type_short+set}" = set; then
  29792. echo $ECHO_N "(cached) $ECHO_C" >&6
  29793. else
  29794. cat >conftest.$ac_ext <<_ACEOF
  29795. /* confdefs.h. */
  29796. _ACEOF
  29797. cat confdefs.h >>conftest.$ac_ext
  29798. cat >>conftest.$ac_ext <<_ACEOF
  29799. /* end confdefs.h. */
  29800. $ac_includes_default
  29801. int
  29802. main ()
  29803. {
  29804. if ((short *) 0)
  29805. return 0;
  29806. if (sizeof (short))
  29807. return 0;
  29808. ;
  29809. return 0;
  29810. }
  29811. _ACEOF
  29812. rm -f conftest.$ac_objext
  29813. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29814. (eval $ac_compile) 2>conftest.er1
  29815. ac_status=$?
  29816. grep -v '^ *+' conftest.er1 >conftest.err
  29817. rm -f conftest.er1
  29818. cat conftest.err >&5
  29819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29820. (exit $ac_status); } &&
  29821. { ac_try='test -z "$ac_c_werror_flag"
  29822. || test ! -s conftest.err'
  29823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29824. (eval $ac_try) 2>&5
  29825. ac_status=$?
  29826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29827. (exit $ac_status); }; } &&
  29828. { ac_try='test -s conftest.$ac_objext'
  29829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29830. (eval $ac_try) 2>&5
  29831. ac_status=$?
  29832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29833. (exit $ac_status); }; }; then
  29834. ac_cv_type_short=yes
  29835. else
  29836. echo "$as_me: failed program was:" >&5
  29837. sed 's/^/| /' conftest.$ac_ext >&5
  29838. ac_cv_type_short=no
  29839. fi
  29840. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29841. fi
  29842. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  29843. echo "${ECHO_T}$ac_cv_type_short" >&6
  29844. echo "$as_me:$LINENO: checking size of short" >&5
  29845. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  29846. if test "${ac_cv_sizeof_short+set}" = set; then
  29847. echo $ECHO_N "(cached) $ECHO_C" >&6
  29848. else
  29849. if test "$ac_cv_type_short" = yes; then
  29850. # The cast to unsigned long works around a bug in the HP C Compiler
  29851. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29852. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29853. # This bug is HP SR number 8606223364.
  29854. if test "$cross_compiling" = yes; then
  29855. # Depending upon the size, compute the lo and hi bounds.
  29856. cat >conftest.$ac_ext <<_ACEOF
  29857. /* confdefs.h. */
  29858. _ACEOF
  29859. cat confdefs.h >>conftest.$ac_ext
  29860. cat >>conftest.$ac_ext <<_ACEOF
  29861. /* end confdefs.h. */
  29862. $ac_includes_default
  29863. int
  29864. main ()
  29865. {
  29866. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  29867. test_array [0] = 0
  29868. ;
  29869. return 0;
  29870. }
  29871. _ACEOF
  29872. rm -f conftest.$ac_objext
  29873. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29874. (eval $ac_compile) 2>conftest.er1
  29875. ac_status=$?
  29876. grep -v '^ *+' conftest.er1 >conftest.err
  29877. rm -f conftest.er1
  29878. cat conftest.err >&5
  29879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29880. (exit $ac_status); } &&
  29881. { ac_try='test -z "$ac_c_werror_flag"
  29882. || test ! -s conftest.err'
  29883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29884. (eval $ac_try) 2>&5
  29885. ac_status=$?
  29886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29887. (exit $ac_status); }; } &&
  29888. { ac_try='test -s conftest.$ac_objext'
  29889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29890. (eval $ac_try) 2>&5
  29891. ac_status=$?
  29892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29893. (exit $ac_status); }; }; then
  29894. ac_lo=0 ac_mid=0
  29895. while :; do
  29896. cat >conftest.$ac_ext <<_ACEOF
  29897. /* confdefs.h. */
  29898. _ACEOF
  29899. cat confdefs.h >>conftest.$ac_ext
  29900. cat >>conftest.$ac_ext <<_ACEOF
  29901. /* end confdefs.h. */
  29902. $ac_includes_default
  29903. int
  29904. main ()
  29905. {
  29906. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  29907. test_array [0] = 0
  29908. ;
  29909. return 0;
  29910. }
  29911. _ACEOF
  29912. rm -f conftest.$ac_objext
  29913. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29914. (eval $ac_compile) 2>conftest.er1
  29915. ac_status=$?
  29916. grep -v '^ *+' conftest.er1 >conftest.err
  29917. rm -f conftest.er1
  29918. cat conftest.err >&5
  29919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29920. (exit $ac_status); } &&
  29921. { ac_try='test -z "$ac_c_werror_flag"
  29922. || test ! -s conftest.err'
  29923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29924. (eval $ac_try) 2>&5
  29925. ac_status=$?
  29926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29927. (exit $ac_status); }; } &&
  29928. { ac_try='test -s conftest.$ac_objext'
  29929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29930. (eval $ac_try) 2>&5
  29931. ac_status=$?
  29932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29933. (exit $ac_status); }; }; then
  29934. ac_hi=$ac_mid; break
  29935. else
  29936. echo "$as_me: failed program was:" >&5
  29937. sed 's/^/| /' conftest.$ac_ext >&5
  29938. ac_lo=`expr $ac_mid + 1`
  29939. if test $ac_lo -le $ac_mid; then
  29940. ac_lo= ac_hi=
  29941. break
  29942. fi
  29943. ac_mid=`expr 2 '*' $ac_mid + 1`
  29944. fi
  29945. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  29946. done
  29947. else
  29948. echo "$as_me: failed program was:" >&5
  29949. sed 's/^/| /' conftest.$ac_ext >&5
  29950. cat >conftest.$ac_ext <<_ACEOF
  29951. /* confdefs.h. */
  29952. _ACEOF
  29953. cat confdefs.h >>conftest.$ac_ext
  29954. cat >>conftest.$ac_ext <<_ACEOF
  29955. /* end confdefs.h. */
  29956. $ac_includes_default
  29957. int
  29958. main ()
  29959. {
  29960. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  29961. test_array [0] = 0
  29962. ;
  29963. return 0;
  29964. }
  29965. _ACEOF
  29966. rm -f conftest.$ac_objext
  29967. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29968. (eval $ac_compile) 2>conftest.er1
  29969. ac_status=$?
  29970. grep -v '^ *+' conftest.er1 >conftest.err
  29971. rm -f conftest.er1
  29972. cat conftest.err >&5
  29973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29974. (exit $ac_status); } &&
  29975. { ac_try='test -z "$ac_c_werror_flag"
  29976. || test ! -s conftest.err'
  29977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29978. (eval $ac_try) 2>&5
  29979. ac_status=$?
  29980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29981. (exit $ac_status); }; } &&
  29982. { ac_try='test -s conftest.$ac_objext'
  29983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29984. (eval $ac_try) 2>&5
  29985. ac_status=$?
  29986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29987. (exit $ac_status); }; }; then
  29988. ac_hi=-1 ac_mid=-1
  29989. while :; do
  29990. cat >conftest.$ac_ext <<_ACEOF
  29991. /* confdefs.h. */
  29992. _ACEOF
  29993. cat confdefs.h >>conftest.$ac_ext
  29994. cat >>conftest.$ac_ext <<_ACEOF
  29995. /* end confdefs.h. */
  29996. $ac_includes_default
  29997. int
  29998. main ()
  29999. {
  30000. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  30001. test_array [0] = 0
  30002. ;
  30003. return 0;
  30004. }
  30005. _ACEOF
  30006. rm -f conftest.$ac_objext
  30007. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30008. (eval $ac_compile) 2>conftest.er1
  30009. ac_status=$?
  30010. grep -v '^ *+' conftest.er1 >conftest.err
  30011. rm -f conftest.er1
  30012. cat conftest.err >&5
  30013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30014. (exit $ac_status); } &&
  30015. { ac_try='test -z "$ac_c_werror_flag"
  30016. || test ! -s conftest.err'
  30017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30018. (eval $ac_try) 2>&5
  30019. ac_status=$?
  30020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30021. (exit $ac_status); }; } &&
  30022. { ac_try='test -s conftest.$ac_objext'
  30023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30024. (eval $ac_try) 2>&5
  30025. ac_status=$?
  30026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30027. (exit $ac_status); }; }; then
  30028. ac_lo=$ac_mid; break
  30029. else
  30030. echo "$as_me: failed program was:" >&5
  30031. sed 's/^/| /' conftest.$ac_ext >&5
  30032. ac_hi=`expr '(' $ac_mid ')' - 1`
  30033. if test $ac_mid -le $ac_hi; then
  30034. ac_lo= ac_hi=
  30035. break
  30036. fi
  30037. ac_mid=`expr 2 '*' $ac_mid`
  30038. fi
  30039. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30040. done
  30041. else
  30042. echo "$as_me: failed program was:" >&5
  30043. sed 's/^/| /' conftest.$ac_ext >&5
  30044. ac_lo= ac_hi=
  30045. fi
  30046. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30047. fi
  30048. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30049. # Binary search between lo and hi bounds.
  30050. while test "x$ac_lo" != "x$ac_hi"; do
  30051. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30052. cat >conftest.$ac_ext <<_ACEOF
  30053. /* confdefs.h. */
  30054. _ACEOF
  30055. cat confdefs.h >>conftest.$ac_ext
  30056. cat >>conftest.$ac_ext <<_ACEOF
  30057. /* end confdefs.h. */
  30058. $ac_includes_default
  30059. int
  30060. main ()
  30061. {
  30062. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  30063. test_array [0] = 0
  30064. ;
  30065. return 0;
  30066. }
  30067. _ACEOF
  30068. rm -f conftest.$ac_objext
  30069. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30070. (eval $ac_compile) 2>conftest.er1
  30071. ac_status=$?
  30072. grep -v '^ *+' conftest.er1 >conftest.err
  30073. rm -f conftest.er1
  30074. cat conftest.err >&5
  30075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30076. (exit $ac_status); } &&
  30077. { ac_try='test -z "$ac_c_werror_flag"
  30078. || test ! -s conftest.err'
  30079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30080. (eval $ac_try) 2>&5
  30081. ac_status=$?
  30082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30083. (exit $ac_status); }; } &&
  30084. { ac_try='test -s conftest.$ac_objext'
  30085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30086. (eval $ac_try) 2>&5
  30087. ac_status=$?
  30088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30089. (exit $ac_status); }; }; then
  30090. ac_hi=$ac_mid
  30091. else
  30092. echo "$as_me: failed program was:" >&5
  30093. sed 's/^/| /' conftest.$ac_ext >&5
  30094. ac_lo=`expr '(' $ac_mid ')' + 1`
  30095. fi
  30096. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  30097. done
  30098. case $ac_lo in
  30099. ?*) ac_cv_sizeof_short=$ac_lo;;
  30100. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  30101. See \`config.log' for more details." >&5
  30102. echo "$as_me: error: cannot compute sizeof (short), 77
  30103. See \`config.log' for more details." >&2;}
  30104. { (exit 1); exit 1; }; } ;;
  30105. esac
  30106. else
  30107. if test "$cross_compiling" = yes; then
  30108. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  30109. See \`config.log' for more details." >&5
  30110. echo "$as_me: error: cannot run test program while cross compiling
  30111. See \`config.log' for more details." >&2;}
  30112. { (exit 1); exit 1; }; }
  30113. else
  30114. cat >conftest.$ac_ext <<_ACEOF
  30115. /* confdefs.h. */
  30116. _ACEOF
  30117. cat confdefs.h >>conftest.$ac_ext
  30118. cat >>conftest.$ac_ext <<_ACEOF
  30119. /* end confdefs.h. */
  30120. $ac_includes_default
  30121. long longval () { return (long) (sizeof (short)); }
  30122. unsigned long ulongval () { return (long) (sizeof (short)); }
  30123. #include <stdio.h>
  30124. #include <stdlib.h>
  30125. int
  30126. main ()
  30127. {
  30128. FILE *f = fopen ("conftest.val", "w");
  30129. if (! f)
  30130. exit (1);
  30131. if (((long) (sizeof (short))) < 0)
  30132. {
  30133. long i = longval ();
  30134. if (i != ((long) (sizeof (short))))
  30135. exit (1);
  30136. fprintf (f, "%ld\n", i);
  30137. }
  30138. else
  30139. {
  30140. unsigned long i = ulongval ();
  30141. if (i != ((long) (sizeof (short))))
  30142. exit (1);
  30143. fprintf (f, "%lu\n", i);
  30144. }
  30145. exit (ferror (f) || fclose (f) != 0);
  30146. ;
  30147. return 0;
  30148. }
  30149. _ACEOF
  30150. rm -f conftest$ac_exeext
  30151. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30152. (eval $ac_link) 2>&5
  30153. ac_status=$?
  30154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30155. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30156. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30157. (eval $ac_try) 2>&5
  30158. ac_status=$?
  30159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30160. (exit $ac_status); }; }; then
  30161. ac_cv_sizeof_short=`cat conftest.val`
  30162. else
  30163. echo "$as_me: program exited with status $ac_status" >&5
  30164. echo "$as_me: failed program was:" >&5
  30165. sed 's/^/| /' conftest.$ac_ext >&5
  30166. ( exit $ac_status )
  30167. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  30168. See \`config.log' for more details." >&5
  30169. echo "$as_me: error: cannot compute sizeof (short), 77
  30170. See \`config.log' for more details." >&2;}
  30171. { (exit 1); exit 1; }; }
  30172. fi
  30173. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30174. fi
  30175. fi
  30176. rm -f conftest.val
  30177. else
  30178. ac_cv_sizeof_short=0
  30179. fi
  30180. fi
  30181. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  30182. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  30183. cat >>confdefs.h <<_ACEOF
  30184. #define SIZEOF_SHORT $ac_cv_sizeof_short
  30185. _ACEOF
  30186. # ----------------------------------------------------------------------
  30187. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  30188. # ----------------------------------------------------------------------
  30189. echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  30190. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
  30191. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  30192. echo $ECHO_N "(cached) $ECHO_C" >&6
  30193. else
  30194. ac_check_lib_save_LIBS=$LIBS
  30195. LIBS="-lgen $LIBS"
  30196. cat >conftest.$ac_ext <<_ACEOF
  30197. /* confdefs.h. */
  30198. _ACEOF
  30199. cat confdefs.h >>conftest.$ac_ext
  30200. cat >>conftest.$ac_ext <<_ACEOF
  30201. /* end confdefs.h. */
  30202. /* Override any gcc2 internal prototype to avoid an error. */
  30203. #ifdef __cplusplus
  30204. extern "C"
  30205. #endif
  30206. /* We use char because int might match the return type of a gcc2
  30207. builtin and then its argument prototype would still apply. */
  30208. char pathfind ();
  30209. int
  30210. main ()
  30211. {
  30212. pathfind ();
  30213. ;
  30214. return 0;
  30215. }
  30216. _ACEOF
  30217. rm -f conftest.$ac_objext conftest$ac_exeext
  30218. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30219. (eval $ac_link) 2>conftest.er1
  30220. ac_status=$?
  30221. grep -v '^ *+' conftest.er1 >conftest.err
  30222. rm -f conftest.er1
  30223. cat conftest.err >&5
  30224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30225. (exit $ac_status); } &&
  30226. { ac_try='test -z "$ac_c_werror_flag"
  30227. || test ! -s conftest.err'
  30228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30229. (eval $ac_try) 2>&5
  30230. ac_status=$?
  30231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30232. (exit $ac_status); }; } &&
  30233. { ac_try='test -s conftest$ac_exeext'
  30234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30235. (eval $ac_try) 2>&5
  30236. ac_status=$?
  30237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30238. (exit $ac_status); }; }; then
  30239. ac_cv_lib_gen_pathfind=yes
  30240. else
  30241. echo "$as_me: failed program was:" >&5
  30242. sed 's/^/| /' conftest.$ac_ext >&5
  30243. ac_cv_lib_gen_pathfind=no
  30244. fi
  30245. rm -f conftest.err conftest.$ac_objext \
  30246. conftest$ac_exeext conftest.$ac_ext
  30247. LIBS=$ac_check_lib_save_LIBS
  30248. fi
  30249. echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  30250. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
  30251. if test $ac_cv_lib_gen_pathfind = yes; then
  30252. cat >>confdefs.h <<_ACEOF
  30253. #define HAVE_LIBGEN 1
  30254. _ACEOF
  30255. LIBS="-lgen $LIBS"
  30256. fi
  30257. for ac_func in vprintf
  30258. do
  30259. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30260. echo "$as_me:$LINENO: checking for $ac_func" >&5
  30261. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  30262. if eval "test \"\${$as_ac_var+set}\" = set"; then
  30263. echo $ECHO_N "(cached) $ECHO_C" >&6
  30264. else
  30265. cat >conftest.$ac_ext <<_ACEOF
  30266. /* confdefs.h. */
  30267. _ACEOF
  30268. cat confdefs.h >>conftest.$ac_ext
  30269. cat >>conftest.$ac_ext <<_ACEOF
  30270. /* end confdefs.h. */
  30271. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  30272. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  30273. #define $ac_func innocuous_$ac_func
  30274. /* System header to define __stub macros and hopefully few prototypes,
  30275. which can conflict with char $ac_func (); below.
  30276. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  30277. <limits.h> exists even on freestanding compilers. */
  30278. #ifdef __STDC__
  30279. # include <limits.h>
  30280. #else
  30281. # include <assert.h>
  30282. #endif
  30283. #undef $ac_func
  30284. /* Override any gcc2 internal prototype to avoid an error. */
  30285. #ifdef __cplusplus
  30286. extern "C"
  30287. {
  30288. #endif
  30289. /* We use char because int might match the return type of a gcc2
  30290. builtin and then its argument prototype would still apply. */
  30291. char $ac_func ();
  30292. /* The GNU C library defines this for functions which it implements
  30293. to always fail with ENOSYS. Some functions are actually named
  30294. something starting with __ and the normal name is an alias. */
  30295. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  30296. choke me
  30297. #else
  30298. char (*f) () = $ac_func;
  30299. #endif
  30300. #ifdef __cplusplus
  30301. }
  30302. #endif
  30303. int
  30304. main ()
  30305. {
  30306. return f != $ac_func;
  30307. ;
  30308. return 0;
  30309. }
  30310. _ACEOF
  30311. rm -f conftest.$ac_objext conftest$ac_exeext
  30312. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30313. (eval $ac_link) 2>conftest.er1
  30314. ac_status=$?
  30315. grep -v '^ *+' conftest.er1 >conftest.err
  30316. rm -f conftest.er1
  30317. cat conftest.err >&5
  30318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30319. (exit $ac_status); } &&
  30320. { ac_try='test -z "$ac_c_werror_flag"
  30321. || test ! -s conftest.err'
  30322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30323. (eval $ac_try) 2>&5
  30324. ac_status=$?
  30325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30326. (exit $ac_status); }; } &&
  30327. { ac_try='test -s conftest$ac_exeext'
  30328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30329. (eval $ac_try) 2>&5
  30330. ac_status=$?
  30331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30332. (exit $ac_status); }; }; then
  30333. eval "$as_ac_var=yes"
  30334. else
  30335. echo "$as_me: failed program was:" >&5
  30336. sed 's/^/| /' conftest.$ac_ext >&5
  30337. eval "$as_ac_var=no"
  30338. fi
  30339. rm -f conftest.err conftest.$ac_objext \
  30340. conftest$ac_exeext conftest.$ac_ext
  30341. fi
  30342. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  30343. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  30344. if test `eval echo '${'$as_ac_var'}'` = yes; then
  30345. cat >>confdefs.h <<_ACEOF
  30346. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  30347. _ACEOF
  30348. echo "$as_me:$LINENO: checking for _doprnt" >&5
  30349. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  30350. if test "${ac_cv_func__doprnt+set}" = set; then
  30351. echo $ECHO_N "(cached) $ECHO_C" >&6
  30352. else
  30353. cat >conftest.$ac_ext <<_ACEOF
  30354. /* confdefs.h. */
  30355. _ACEOF
  30356. cat confdefs.h >>conftest.$ac_ext
  30357. cat >>conftest.$ac_ext <<_ACEOF
  30358. /* end confdefs.h. */
  30359. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  30360. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  30361. #define _doprnt innocuous__doprnt
  30362. /* System header to define __stub macros and hopefully few prototypes,
  30363. which can conflict with char _doprnt (); below.
  30364. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  30365. <limits.h> exists even on freestanding compilers. */
  30366. #ifdef __STDC__
  30367. # include <limits.h>
  30368. #else
  30369. # include <assert.h>
  30370. #endif
  30371. #undef _doprnt
  30372. /* Override any gcc2 internal prototype to avoid an error. */
  30373. #ifdef __cplusplus
  30374. extern "C"
  30375. {
  30376. #endif
  30377. /* We use char because int might match the return type of a gcc2
  30378. builtin and then its argument prototype would still apply. */
  30379. char _doprnt ();
  30380. /* The GNU C library defines this for functions which it implements
  30381. to always fail with ENOSYS. Some functions are actually named
  30382. something starting with __ and the normal name is an alias. */
  30383. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  30384. choke me
  30385. #else
  30386. char (*f) () = _doprnt;
  30387. #endif
  30388. #ifdef __cplusplus
  30389. }
  30390. #endif
  30391. int
  30392. main ()
  30393. {
  30394. return f != _doprnt;
  30395. ;
  30396. return 0;
  30397. }
  30398. _ACEOF
  30399. rm -f conftest.$ac_objext conftest$ac_exeext
  30400. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30401. (eval $ac_link) 2>conftest.er1
  30402. ac_status=$?
  30403. grep -v '^ *+' conftest.er1 >conftest.err
  30404. rm -f conftest.er1
  30405. cat conftest.err >&5
  30406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30407. (exit $ac_status); } &&
  30408. { ac_try='test -z "$ac_c_werror_flag"
  30409. || test ! -s conftest.err'
  30410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30411. (eval $ac_try) 2>&5
  30412. ac_status=$?
  30413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30414. (exit $ac_status); }; } &&
  30415. { ac_try='test -s conftest$ac_exeext'
  30416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30417. (eval $ac_try) 2>&5
  30418. ac_status=$?
  30419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30420. (exit $ac_status); }; }; then
  30421. ac_cv_func__doprnt=yes
  30422. else
  30423. echo "$as_me: failed program was:" >&5
  30424. sed 's/^/| /' conftest.$ac_ext >&5
  30425. ac_cv_func__doprnt=no
  30426. fi
  30427. rm -f conftest.err conftest.$ac_objext \
  30428. conftest$ac_exeext conftest.$ac_ext
  30429. fi
  30430. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  30431. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  30432. if test $ac_cv_func__doprnt = yes; then
  30433. cat >>confdefs.h <<\_ACEOF
  30434. #define HAVE_DOPRNT 1
  30435. _ACEOF
  30436. fi
  30437. fi
  30438. done
  30439. for ac_func in mmap canonicalize_file_name snprintf strdup
  30440. do
  30441. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30442. echo "$as_me:$LINENO: checking for $ac_func" >&5
  30443. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  30444. if eval "test \"\${$as_ac_var+set}\" = set"; then
  30445. echo $ECHO_N "(cached) $ECHO_C" >&6
  30446. else
  30447. cat >conftest.$ac_ext <<_ACEOF
  30448. /* confdefs.h. */
  30449. _ACEOF
  30450. cat confdefs.h >>conftest.$ac_ext
  30451. cat >>conftest.$ac_ext <<_ACEOF
  30452. /* end confdefs.h. */
  30453. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  30454. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  30455. #define $ac_func innocuous_$ac_func
  30456. /* System header to define __stub macros and hopefully few prototypes,
  30457. which can conflict with char $ac_func (); below.
  30458. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  30459. <limits.h> exists even on freestanding compilers. */
  30460. #ifdef __STDC__
  30461. # include <limits.h>
  30462. #else
  30463. # include <assert.h>
  30464. #endif
  30465. #undef $ac_func
  30466. /* Override any gcc2 internal prototype to avoid an error. */
  30467. #ifdef __cplusplus
  30468. extern "C"
  30469. {
  30470. #endif
  30471. /* We use char because int might match the return type of a gcc2
  30472. builtin and then its argument prototype would still apply. */
  30473. char $ac_func ();
  30474. /* The GNU C library defines this for functions which it implements
  30475. to always fail with ENOSYS. Some functions are actually named
  30476. something starting with __ and the normal name is an alias. */
  30477. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  30478. choke me
  30479. #else
  30480. char (*f) () = $ac_func;
  30481. #endif
  30482. #ifdef __cplusplus
  30483. }
  30484. #endif
  30485. int
  30486. main ()
  30487. {
  30488. return f != $ac_func;
  30489. ;
  30490. return 0;
  30491. }
  30492. _ACEOF
  30493. rm -f conftest.$ac_objext conftest$ac_exeext
  30494. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30495. (eval $ac_link) 2>conftest.er1
  30496. ac_status=$?
  30497. grep -v '^ *+' conftest.er1 >conftest.err
  30498. rm -f conftest.er1
  30499. cat conftest.err >&5
  30500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30501. (exit $ac_status); } &&
  30502. { ac_try='test -z "$ac_c_werror_flag"
  30503. || test ! -s conftest.err'
  30504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30505. (eval $ac_try) 2>&5
  30506. ac_status=$?
  30507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30508. (exit $ac_status); }; } &&
  30509. { ac_try='test -s conftest$ac_exeext'
  30510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  30511. (eval $ac_try) 2>&5
  30512. ac_status=$?
  30513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30514. (exit $ac_status); }; }; then
  30515. eval "$as_ac_var=yes"
  30516. else
  30517. echo "$as_me: failed program was:" >&5
  30518. sed 's/^/| /' conftest.$ac_ext >&5
  30519. eval "$as_ac_var=no"
  30520. fi
  30521. rm -f conftest.err conftest.$ac_objext \
  30522. conftest$ac_exeext conftest.$ac_ext
  30523. fi
  30524. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  30525. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  30526. if test `eval echo '${'$as_ac_var'}'` = yes; then
  30527. cat >>confdefs.h <<_ACEOF
  30528. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  30529. _ACEOF
  30530. fi
  30531. done
  30532. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  30533. fi
  30534. fi
  30535. # end of AC_DEFUN of LIBOPTS_CHECK
  30536. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/tcpedit/Makefile src/flow/Makefile src/defines.h test/Makefile test/config scripts/Makefile tcpreplay.spec"
  30537. cat >confcache <<\_ACEOF
  30538. # This file is a shell script that caches the results of configure
  30539. # tests run on this system so they can be shared between configure
  30540. # scripts and configure runs, see configure's option --config-cache.
  30541. # It is not useful on other systems. If it contains results you don't
  30542. # want to keep, you may remove or edit it.
  30543. #
  30544. # config.status only pays attention to the cache file if you give it
  30545. # the --recheck option to rerun configure.
  30546. #
  30547. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  30548. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  30549. # following values.
  30550. _ACEOF
  30551. # The following way of writing the cache mishandles newlines in values,
  30552. # but we know of no workaround that is simple, portable, and efficient.
  30553. # So, don't put newlines in cache variables' values.
  30554. # Ultrix sh set writes to stderr and can't be redirected directly,
  30555. # and sets the high bit in the cache file unless we assign to the vars.
  30556. {
  30557. (set) 2>&1 |
  30558. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  30559. *ac_space=\ *)
  30560. # `set' does not quote correctly, so add quotes (double-quote
  30561. # substitution turns \\\\ into \\, and sed turns \\ into \).
  30562. sed -n \
  30563. "s/'/'\\\\''/g;
  30564. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  30565. ;;
  30566. *)
  30567. # `set' quotes correctly as required by POSIX, so do not add quotes.
  30568. sed -n \
  30569. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  30570. ;;
  30571. esac;
  30572. } |
  30573. sed '
  30574. t clear
  30575. : clear
  30576. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  30577. t end
  30578. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  30579. : end' >>confcache
  30580. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  30581. if test -w $cache_file; then
  30582. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  30583. cat confcache >$cache_file
  30584. else
  30585. echo "not updating unwritable cache $cache_file"
  30586. fi
  30587. fi
  30588. rm -f confcache
  30589. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  30590. # Let make expand exec_prefix.
  30591. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  30592. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  30593. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  30594. # trailing colons and then remove the whole line if VPATH becomes empty
  30595. # (actually we leave an empty line to preserve line numbers).
  30596. if test "x$srcdir" = x.; then
  30597. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  30598. s/:*\$(srcdir):*/:/;
  30599. s/:*\${srcdir}:*/:/;
  30600. s/:*@srcdir@:*/:/;
  30601. s/^\([^=]*=[ ]*\):*/\1/;
  30602. s/:*$//;
  30603. s/^[^=]*=[ ]*$//;
  30604. }'
  30605. fi
  30606. DEFS=-DHAVE_CONFIG_H
  30607. ac_libobjs=
  30608. ac_ltlibobjs=
  30609. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  30610. # 1. Remove the extension, and $U if already installed.
  30611. ac_i=`echo "$ac_i" |
  30612. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  30613. # 2. Add them.
  30614. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  30615. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  30616. done
  30617. LIBOBJS=$ac_libobjs
  30618. LTLIBOBJS=$ac_ltlibobjs
  30619. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  30620. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  30621. Usually this means the macro was only invoked conditionally." >&5
  30622. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  30623. Usually this means the macro was only invoked conditionally." >&2;}
  30624. { (exit 1); exit 1; }; }
  30625. fi
  30626. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  30627. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  30628. Usually this means the macro was only invoked conditionally." >&5
  30629. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  30630. Usually this means the macro was only invoked conditionally." >&2;}
  30631. { (exit 1); exit 1; }; }
  30632. fi
  30633. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  30634. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  30635. Usually this means the macro was only invoked conditionally." >&5
  30636. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  30637. Usually this means the macro was only invoked conditionally." >&2;}
  30638. { (exit 1); exit 1; }; }
  30639. fi
  30640. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  30641. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  30642. Usually this means the macro was only invoked conditionally." >&5
  30643. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  30644. Usually this means the macro was only invoked conditionally." >&2;}
  30645. { (exit 1); exit 1; }; }
  30646. fi
  30647. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  30648. { { echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  30649. Usually this means the macro was only invoked conditionally." >&5
  30650. echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  30651. Usually this means the macro was only invoked conditionally." >&2;}
  30652. { (exit 1); exit 1; }; }
  30653. fi
  30654. if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
  30655. { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCTOOLS\" was never defined.
  30656. Usually this means the macro was only invoked conditionally." >&5
  30657. echo "$as_me: error: conditional \"HAVE_DOCTOOLS\" was never defined.
  30658. Usually this means the macro was only invoked conditionally." >&2;}
  30659. { (exit 1); exit 1; }; }
  30660. fi
  30661. if test -z "${HAVE_LIBNIDS_TRUE}" && test -z "${HAVE_LIBNIDS_FALSE}"; then
  30662. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBNIDS\" was never defined.
  30663. Usually this means the macro was only invoked conditionally." >&5
  30664. echo "$as_me: error: conditional \"HAVE_LIBNIDS\" was never defined.
  30665. Usually this means the macro was only invoked conditionally." >&2;}
  30666. { (exit 1); exit 1; }; }
  30667. fi
  30668. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  30669. { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  30670. Usually this means the macro was only invoked conditionally." >&5
  30671. echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  30672. Usually this means the macro was only invoked conditionally." >&2;}
  30673. { (exit 1); exit 1; }; }
  30674. fi
  30675. : ${CONFIG_STATUS=./config.status}
  30676. ac_clean_files_save=$ac_clean_files
  30677. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  30678. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  30679. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  30680. cat >$CONFIG_STATUS <<_ACEOF
  30681. #! $SHELL
  30682. # Generated by $as_me.
  30683. # Run this file to recreate the current configuration.
  30684. # Compiler output produced by configure, useful for debugging
  30685. # configure, is in config.log if it exists.
  30686. debug=false
  30687. ac_cs_recheck=false
  30688. ac_cs_silent=false
  30689. SHELL=\${CONFIG_SHELL-$SHELL}
  30690. _ACEOF
  30691. cat >>$CONFIG_STATUS <<\_ACEOF
  30692. ## --------------------- ##
  30693. ## M4sh Initialization. ##
  30694. ## --------------------- ##
  30695. # Be Bourne compatible
  30696. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  30697. emulate sh
  30698. NULLCMD=:
  30699. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  30700. # is contrary to our usage. Disable this feature.
  30701. alias -g '${1+"$@"}'='"$@"'
  30702. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  30703. set -o posix
  30704. fi
  30705. DUALCASE=1; export DUALCASE # for MKS sh
  30706. # Support unset when possible.
  30707. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  30708. as_unset=unset
  30709. else
  30710. as_unset=false
  30711. fi
  30712. # Work around bugs in pre-3.0 UWIN ksh.
  30713. $as_unset ENV MAIL MAILPATH
  30714. PS1='$ '
  30715. PS2='> '
  30716. PS4='+ '
  30717. # NLS nuisances.
  30718. for as_var in \
  30719. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  30720. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  30721. LC_TELEPHONE LC_TIME
  30722. do
  30723. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  30724. eval $as_var=C; export $as_var
  30725. else
  30726. $as_unset $as_var
  30727. fi
  30728. done
  30729. # Required to use basename.
  30730. if expr a : '\(a\)' >/dev/null 2>&1; then
  30731. as_expr=expr
  30732. else
  30733. as_expr=false
  30734. fi
  30735. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  30736. as_basename=basename
  30737. else
  30738. as_basename=false
  30739. fi
  30740. # Name of the executable.
  30741. as_me=`$as_basename "$0" ||
  30742. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  30743. X"$0" : 'X\(//\)$' \| \
  30744. X"$0" : 'X\(/\)$' \| \
  30745. . : '\(.\)' 2>/dev/null ||
  30746. echo X/"$0" |
  30747. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  30748. /^X\/\(\/\/\)$/{ s//\1/; q; }
  30749. /^X\/\(\/\).*/{ s//\1/; q; }
  30750. s/.*/./; q'`
  30751. # PATH needs CR, and LINENO needs CR and PATH.
  30752. # Avoid depending upon Character Ranges.
  30753. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  30754. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30755. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  30756. as_cr_digits='0123456789'
  30757. as_cr_alnum=$as_cr_Letters$as_cr_digits
  30758. # The user is always right.
  30759. if test "${PATH_SEPARATOR+set}" != set; then
  30760. echo "#! /bin/sh" >conf$$.sh
  30761. echo "exit 0" >>conf$$.sh
  30762. chmod +x conf$$.sh
  30763. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  30764. PATH_SEPARATOR=';'
  30765. else
  30766. PATH_SEPARATOR=:
  30767. fi
  30768. rm -f conf$$.sh
  30769. fi
  30770. as_lineno_1=$LINENO
  30771. as_lineno_2=$LINENO
  30772. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  30773. test "x$as_lineno_1" != "x$as_lineno_2" &&
  30774. test "x$as_lineno_3" = "x$as_lineno_2" || {
  30775. # Find who we are. Look in the path if we contain no path at all
  30776. # relative or not.
  30777. case $0 in
  30778. *[\\/]* ) as_myself=$0 ;;
  30779. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30780. for as_dir in $PATH
  30781. do
  30782. IFS=$as_save_IFS
  30783. test -z "$as_dir" && as_dir=.
  30784. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  30785. done
  30786. ;;
  30787. esac
  30788. # We did not find ourselves, most probably we were run as `sh COMMAND'
  30789. # in which case we are not to be found in the path.
  30790. if test "x$as_myself" = x; then
  30791. as_myself=$0
  30792. fi
  30793. if test ! -f "$as_myself"; then
  30794. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  30795. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  30796. { (exit 1); exit 1; }; }
  30797. fi
  30798. case $CONFIG_SHELL in
  30799. '')
  30800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  30801. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  30802. do
  30803. IFS=$as_save_IFS
  30804. test -z "$as_dir" && as_dir=.
  30805. for as_base in sh bash ksh sh5; do
  30806. case $as_dir in
  30807. /*)
  30808. if ("$as_dir/$as_base" -c '
  30809. as_lineno_1=$LINENO
  30810. as_lineno_2=$LINENO
  30811. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  30812. test "x$as_lineno_1" != "x$as_lineno_2" &&
  30813. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  30814. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  30815. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  30816. CONFIG_SHELL=$as_dir/$as_base
  30817. export CONFIG_SHELL
  30818. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  30819. fi;;
  30820. esac
  30821. done
  30822. done
  30823. ;;
  30824. esac
  30825. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  30826. # uniformly replaced by the line number. The first 'sed' inserts a
  30827. # line-number line before each line; the second 'sed' does the real
  30828. # work. The second script uses 'N' to pair each line-number line
  30829. # with the numbered line, and appends trailing '-' during
  30830. # substitution so that $LINENO is not a special case at line end.
  30831. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  30832. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  30833. sed '=' <$as_myself |
  30834. sed '
  30835. N
  30836. s,$,-,
  30837. : loop
  30838. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  30839. t loop
  30840. s,-$,,
  30841. s,^['$as_cr_digits']*\n,,
  30842. ' >$as_me.lineno &&
  30843. chmod +x $as_me.lineno ||
  30844. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  30845. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  30846. { (exit 1); exit 1; }; }
  30847. # Don't try to exec as it changes $[0], causing all sort of problems
  30848. # (the dirname of $[0] is not the place where we might find the
  30849. # original and so on. Autoconf is especially sensible to this).
  30850. . ./$as_me.lineno
  30851. # Exit status is that of the last command.
  30852. exit
  30853. }
  30854. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  30855. *c*,-n*) ECHO_N= ECHO_C='
  30856. ' ECHO_T=' ' ;;
  30857. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  30858. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  30859. esac
  30860. if expr a : '\(a\)' >/dev/null 2>&1; then
  30861. as_expr=expr
  30862. else
  30863. as_expr=false
  30864. fi
  30865. rm -f conf$$ conf$$.exe conf$$.file
  30866. echo >conf$$.file
  30867. if ln -s conf$$.file conf$$ 2>/dev/null; then
  30868. # We could just check for DJGPP; but this test a) works b) is more generic
  30869. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  30870. if test -f conf$$.exe; then
  30871. # Don't use ln at all; we don't have any links
  30872. as_ln_s='cp -p'
  30873. else
  30874. as_ln_s='ln -s'
  30875. fi
  30876. elif ln conf$$.file conf$$ 2>/dev/null; then
  30877. as_ln_s=ln
  30878. else
  30879. as_ln_s='cp -p'
  30880. fi
  30881. rm -f conf$$ conf$$.exe conf$$.file
  30882. if mkdir -p . 2>/dev/null; then
  30883. as_mkdir_p=:
  30884. else
  30885. test -d ./-p && rmdir ./-p
  30886. as_mkdir_p=false
  30887. fi
  30888. as_executable_p="test -f"
  30889. # Sed expression to map a string onto a valid CPP name.
  30890. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  30891. # Sed expression to map a string onto a valid variable name.
  30892. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  30893. # IFS
  30894. # We need space, tab and new line, in precisely that order.
  30895. as_nl='
  30896. '
  30897. IFS=" $as_nl"
  30898. # CDPATH.
  30899. $as_unset CDPATH
  30900. exec 6>&1
  30901. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  30902. # report actual input values of CONFIG_FILES etc. instead of their
  30903. # values after options handling. Logging --version etc. is OK.
  30904. exec 5>>config.log
  30905. {
  30906. echo
  30907. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  30908. ## Running $as_me. ##
  30909. _ASBOX
  30910. } >&5
  30911. cat >&5 <<_CSEOF
  30912. This file was extended by $as_me, which was
  30913. generated by GNU Autoconf 2.59. Invocation command line was
  30914. CONFIG_FILES = $CONFIG_FILES
  30915. CONFIG_HEADERS = $CONFIG_HEADERS
  30916. CONFIG_LINKS = $CONFIG_LINKS
  30917. CONFIG_COMMANDS = $CONFIG_COMMANDS
  30918. $ $0 $@
  30919. _CSEOF
  30920. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  30921. echo >&5
  30922. _ACEOF
  30923. # Files that config.status was made for.
  30924. if test -n "$ac_config_files"; then
  30925. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  30926. fi
  30927. if test -n "$ac_config_headers"; then
  30928. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  30929. fi
  30930. if test -n "$ac_config_links"; then
  30931. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  30932. fi
  30933. if test -n "$ac_config_commands"; then
  30934. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  30935. fi
  30936. cat >>$CONFIG_STATUS <<\_ACEOF
  30937. ac_cs_usage="\
  30938. \`$as_me' instantiates files from templates according to the
  30939. current configuration.
  30940. Usage: $0 [OPTIONS] [FILE]...
  30941. -h, --help print this help, then exit
  30942. -V, --version print version number, then exit
  30943. -q, --quiet do not print progress messages
  30944. -d, --debug don't remove temporary files
  30945. --recheck update $as_me by reconfiguring in the same conditions
  30946. --file=FILE[:TEMPLATE]
  30947. instantiate the configuration file FILE
  30948. --header=FILE[:TEMPLATE]
  30949. instantiate the configuration header FILE
  30950. Configuration files:
  30951. $config_files
  30952. Configuration headers:
  30953. $config_headers
  30954. Configuration commands:
  30955. $config_commands
  30956. Report bugs to <bug-autoconf@gnu.org>."
  30957. _ACEOF
  30958. cat >>$CONFIG_STATUS <<_ACEOF
  30959. ac_cs_version="\\
  30960. config.status
  30961. configured by $0, generated by GNU Autoconf 2.59,
  30962. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  30963. Copyright (C) 2003 Free Software Foundation, Inc.
  30964. This config.status script is free software; the Free Software Foundation
  30965. gives unlimited permission to copy, distribute and modify it."
  30966. srcdir=$srcdir
  30967. INSTALL="$INSTALL"
  30968. _ACEOF
  30969. cat >>$CONFIG_STATUS <<\_ACEOF
  30970. # If no file are specified by the user, then we need to provide default
  30971. # value. By we need to know if files were specified by the user.
  30972. ac_need_defaults=:
  30973. while test $# != 0
  30974. do
  30975. case $1 in
  30976. --*=*)
  30977. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  30978. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  30979. ac_shift=:
  30980. ;;
  30981. -*)
  30982. ac_option=$1
  30983. ac_optarg=$2
  30984. ac_shift=shift
  30985. ;;
  30986. *) # This is not an option, so the user has probably given explicit
  30987. # arguments.
  30988. ac_option=$1
  30989. ac_need_defaults=false;;
  30990. esac
  30991. case $ac_option in
  30992. # Handling of the options.
  30993. _ACEOF
  30994. cat >>$CONFIG_STATUS <<\_ACEOF
  30995. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  30996. ac_cs_recheck=: ;;
  30997. --version | --vers* | -V )
  30998. echo "$ac_cs_version"; exit 0 ;;
  30999. --he | --h)
  31000. # Conflict between --help and --header
  31001. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  31002. Try \`$0 --help' for more information." >&5
  31003. echo "$as_me: error: ambiguous option: $1
  31004. Try \`$0 --help' for more information." >&2;}
  31005. { (exit 1); exit 1; }; };;
  31006. --help | --hel | -h )
  31007. echo "$ac_cs_usage"; exit 0 ;;
  31008. --debug | --d* | -d )
  31009. debug=: ;;
  31010. --file | --fil | --fi | --f )
  31011. $ac_shift
  31012. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  31013. ac_need_defaults=false;;
  31014. --header | --heade | --head | --hea )
  31015. $ac_shift
  31016. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  31017. ac_need_defaults=false;;
  31018. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  31019. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  31020. ac_cs_silent=: ;;
  31021. # This is an error.
  31022. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  31023. Try \`$0 --help' for more information." >&5
  31024. echo "$as_me: error: unrecognized option: $1
  31025. Try \`$0 --help' for more information." >&2;}
  31026. { (exit 1); exit 1; }; } ;;
  31027. *) ac_config_targets="$ac_config_targets $1" ;;
  31028. esac
  31029. shift
  31030. done
  31031. ac_configure_extra_args=
  31032. if $ac_cs_silent; then
  31033. exec 6>/dev/null
  31034. ac_configure_extra_args="$ac_configure_extra_args --silent"
  31035. fi
  31036. _ACEOF
  31037. cat >>$CONFIG_STATUS <<_ACEOF
  31038. if \$ac_cs_recheck; then
  31039. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  31040. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  31041. fi
  31042. _ACEOF
  31043. cat >>$CONFIG_STATUS <<_ACEOF
  31044. #
  31045. # INIT-COMMANDS section.
  31046. #
  31047. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  31048. _ACEOF
  31049. cat >>$CONFIG_STATUS <<\_ACEOF
  31050. for ac_config_target in $ac_config_targets
  31051. do
  31052. case "$ac_config_target" in
  31053. # Handling of arguments.
  31054. "libopts/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  31055. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  31056. "doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  31057. "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  31058. "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  31059. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  31060. "src/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  31061. "src/tcpedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  31062. "src/flow/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/flow/Makefile" ;;
  31063. "src/defines.h" ) CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  31064. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  31065. "test/config" ) CONFIG_FILES="$CONFIG_FILES test/config" ;;
  31066. "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  31067. "tcpreplay.spec" ) CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  31068. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  31069. "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  31070. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  31071. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  31072. { (exit 1); exit 1; }; };;
  31073. esac
  31074. done
  31075. # If the user did not use the arguments to specify the items to instantiate,
  31076. # then the envvar interface is used. Set only those that are not.
  31077. # We use the long form for the default assignment because of an extremely
  31078. # bizarre bug on SunOS 4.1.3.
  31079. if $ac_need_defaults; then
  31080. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  31081. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  31082. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  31083. fi
  31084. # Have a temporary directory for convenience. Make it in the build tree
  31085. # simply because there is no reason to put it here, and in addition,
  31086. # creating and moving files from /tmp can sometimes cause problems.
  31087. # Create a temporary directory, and hook for its removal unless debugging.
  31088. $debug ||
  31089. {
  31090. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  31091. trap '{ (exit 1); exit 1; }' 1 2 13 15
  31092. }
  31093. # Create a (secure) tmp directory for tmp files.
  31094. {
  31095. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  31096. test -n "$tmp" && test -d "$tmp"
  31097. } ||
  31098. {
  31099. tmp=./confstat$$-$RANDOM
  31100. (umask 077 && mkdir $tmp)
  31101. } ||
  31102. {
  31103. echo "$me: cannot create a temporary directory in ." >&2
  31104. { (exit 1); exit 1; }
  31105. }
  31106. _ACEOF
  31107. cat >>$CONFIG_STATUS <<_ACEOF
  31108. #
  31109. # CONFIG_FILES section.
  31110. #
  31111. # No need to generate the scripts if there are no CONFIG_FILES.
  31112. # This happens for instance when ./config.status config.h
  31113. if test -n "\$CONFIG_FILES"; then
  31114. # Protect against being on the right side of a sed subst in config.status.
  31115. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  31116. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  31117. s,@SHELL@,$SHELL,;t t
  31118. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  31119. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  31120. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  31121. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  31122. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  31123. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  31124. s,@exec_prefix@,$exec_prefix,;t t
  31125. s,@prefix@,$prefix,;t t
  31126. s,@program_transform_name@,$program_transform_name,;t t
  31127. s,@bindir@,$bindir,;t t
  31128. s,@sbindir@,$sbindir,;t t
  31129. s,@libexecdir@,$libexecdir,;t t
  31130. s,@datadir@,$datadir,;t t
  31131. s,@sysconfdir@,$sysconfdir,;t t
  31132. s,@sharedstatedir@,$sharedstatedir,;t t
  31133. s,@localstatedir@,$localstatedir,;t t
  31134. s,@libdir@,$libdir,;t t
  31135. s,@includedir@,$includedir,;t t
  31136. s,@oldincludedir@,$oldincludedir,;t t
  31137. s,@infodir@,$infodir,;t t
  31138. s,@mandir@,$mandir,;t t
  31139. s,@build_alias@,$build_alias,;t t
  31140. s,@host_alias@,$host_alias,;t t
  31141. s,@target_alias@,$target_alias,;t t
  31142. s,@DEFS@,$DEFS,;t t
  31143. s,@ECHO_C@,$ECHO_C,;t t
  31144. s,@ECHO_N@,$ECHO_N,;t t
  31145. s,@ECHO_T@,$ECHO_T,;t t
  31146. s,@LIBS@,$LIBS,;t t
  31147. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  31148. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  31149. s,@MAINT@,$MAINT,;t t
  31150. s,@build@,$build,;t t
  31151. s,@build_cpu@,$build_cpu,;t t
  31152. s,@build_vendor@,$build_vendor,;t t
  31153. s,@build_os@,$build_os,;t t
  31154. s,@host@,$host,;t t
  31155. s,@host_cpu@,$host_cpu,;t t
  31156. s,@host_vendor@,$host_vendor,;t t
  31157. s,@host_os@,$host_os,;t t
  31158. s,@CC@,$CC,;t t
  31159. s,@CFLAGS@,$CFLAGS,;t t
  31160. s,@LDFLAGS@,$LDFLAGS,;t t
  31161. s,@CPPFLAGS@,$CPPFLAGS,;t t
  31162. s,@ac_ct_CC@,$ac_ct_CC,;t t
  31163. s,@EXEEXT@,$EXEEXT,;t t
  31164. s,@OBJEXT@,$OBJEXT,;t t
  31165. s,@EGREP@,$EGREP,;t t
  31166. s,@LN_S@,$LN_S,;t t
  31167. s,@ECHO@,$ECHO,;t t
  31168. s,@AR@,$AR,;t t
  31169. s,@ac_ct_AR@,$ac_ct_AR,;t t
  31170. s,@RANLIB@,$RANLIB,;t t
  31171. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  31172. s,@STRIP@,$STRIP,;t t
  31173. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  31174. s,@CPP@,$CPP,;t t
  31175. s,@CXX@,$CXX,;t t
  31176. s,@CXXFLAGS@,$CXXFLAGS,;t t
  31177. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  31178. s,@CXXCPP@,$CXXCPP,;t t
  31179. s,@F77@,$F77,;t t
  31180. s,@FFLAGS@,$FFLAGS,;t t
  31181. s,@ac_ct_F77@,$ac_ct_F77,;t t
  31182. s,@LIBTOOL@,$LIBTOOL,;t t
  31183. s,@TCPREPLAY_VERSION@,$TCPREPLAY_VERSION,;t t
  31184. s,@TCPREPLAY_RELEASE@,$TCPREPLAY_RELEASE,;t t
  31185. s,@target@,$target,;t t
  31186. s,@target_cpu@,$target_cpu,;t t
  31187. s,@target_vendor@,$target_vendor,;t t
  31188. s,@target_os@,$target_os,;t t
  31189. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  31190. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  31191. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  31192. s,@CYGPATH_W@,$CYGPATH_W,;t t
  31193. s,@PACKAGE@,$PACKAGE,;t t
  31194. s,@VERSION@,$VERSION,;t t
  31195. s,@ACLOCAL@,$ACLOCAL,;t t
  31196. s,@AUTOCONF@,$AUTOCONF,;t t
  31197. s,@AUTOMAKE@,$AUTOMAKE,;t t
  31198. s,@AUTOHEADER@,$AUTOHEADER,;t t
  31199. s,@MAKEINFO@,$MAKEINFO,;t t
  31200. s,@install_sh@,$install_sh,;t t
  31201. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  31202. s,@mkdir_p@,$mkdir_p,;t t
  31203. s,@AWK@,$AWK,;t t
  31204. s,@SET_MAKE@,$SET_MAKE,;t t
  31205. s,@am__leading_dot@,$am__leading_dot,;t t
  31206. s,@AMTAR@,$AMTAR,;t t
  31207. s,@am__tar@,$am__tar,;t t
  31208. s,@am__untar@,$am__untar,;t t
  31209. s,@DEPDIR@,$DEPDIR,;t t
  31210. s,@am__include@,$am__include,;t t
  31211. s,@am__quote@,$am__quote,;t t
  31212. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  31213. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  31214. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  31215. s,@CCDEPMODE@,$CCDEPMODE,;t t
  31216. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  31217. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  31218. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  31219. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  31220. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  31221. s,@PRINTF@,$PRINTF,;t t
  31222. s,@FIG2DEV@,$FIG2DEV,;t t
  31223. s,@LYX@,$LYX,;t t
  31224. s,@DVIPS@,$DVIPS,;t t
  31225. s,@TEXI2DVI@,$TEXI2DVI,;t t
  31226. s,@LATEX2HTML@,$LATEX2HTML,;t t
  31227. s,@DVIPDFM@,$DVIPDFM,;t t
  31228. s,@AUTOGEN@,$AUTOGEN,;t t
  31229. s,@LIBOBJS@,$LIBOBJS,;t t
  31230. s,@SYSTEM_STRLCPY_TRUE@,$SYSTEM_STRLCPY_TRUE,;t t
  31231. s,@SYSTEM_STRLCPY_FALSE@,$SYSTEM_STRLCPY_FALSE,;t t
  31232. s,@HAVE_DOCTOOLS_TRUE@,$HAVE_DOCTOOLS_TRUE,;t t
  31233. s,@HAVE_DOCTOOLS_FALSE@,$HAVE_DOCTOOLS_FALSE,;t t
  31234. s,@debug_flag@,$debug_flag,;t t
  31235. s,@LNETINC@,$LNETINC,;t t
  31236. s,@LNETLIB@,$LNETLIB,;t t
  31237. s,@LPCAPINC@,$LPCAPINC,;t t
  31238. s,@LPCAPLIB@,$LPCAPLIB,;t t
  31239. s,@PCAP_BPF_H_FILE@,$PCAP_BPF_H_FILE,;t t
  31240. s,@pcncfg@,$pcncfg,;t t
  31241. s,@LNAVLIB@,$LNAVLIB,;t t
  31242. s,@LNAV_CFLAGS@,$LNAV_CFLAGS,;t t
  31243. s,@LNIDSINC@,$LNIDSINC,;t t
  31244. s,@LNIDSLIB@,$LNIDSLIB,;t t
  31245. s,@HAVE_LIBNIDS_TRUE@,$HAVE_LIBNIDS_TRUE,;t t
  31246. s,@HAVE_LIBNIDS_FALSE@,$HAVE_LIBNIDS_FALSE,;t t
  31247. s,@td@,$td,;t t
  31248. s,@nic1@,$nic1,;t t
  31249. s,@nic2@,$nic2,;t t
  31250. s,@LIBOPTS_DIR@,$LIBOPTS_DIR,;t t
  31251. s,@NEED_LIBOPTS_TRUE@,$NEED_LIBOPTS_TRUE,;t t
  31252. s,@NEED_LIBOPTS_FALSE@,$NEED_LIBOPTS_FALSE,;t t
  31253. s,@LIBOPTS_LDADD@,$LIBOPTS_LDADD,;t t
  31254. s,@LIBOPTS_CFLAGS@,$LIBOPTS_CFLAGS,;t t
  31255. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  31256. CEOF
  31257. _ACEOF
  31258. cat >>$CONFIG_STATUS <<\_ACEOF
  31259. # Split the substitutions into bite-sized pieces for seds with
  31260. # small command number limits, like on Digital OSF/1 and HP-UX.
  31261. ac_max_sed_lines=48
  31262. ac_sed_frag=1 # Number of current file.
  31263. ac_beg=1 # First line for current file.
  31264. ac_end=$ac_max_sed_lines # Line after last line for current file.
  31265. ac_more_lines=:
  31266. ac_sed_cmds=
  31267. while $ac_more_lines; do
  31268. if test $ac_beg -gt 1; then
  31269. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  31270. else
  31271. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  31272. fi
  31273. if test ! -s $tmp/subs.frag; then
  31274. ac_more_lines=false
  31275. else
  31276. # The purpose of the label and of the branching condition is to
  31277. # speed up the sed processing (if there are no `@' at all, there
  31278. # is no need to browse any of the substitutions).
  31279. # These are the two extra sed commands mentioned above.
  31280. (echo ':t
  31281. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  31282. if test -z "$ac_sed_cmds"; then
  31283. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  31284. else
  31285. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  31286. fi
  31287. ac_sed_frag=`expr $ac_sed_frag + 1`
  31288. ac_beg=$ac_end
  31289. ac_end=`expr $ac_end + $ac_max_sed_lines`
  31290. fi
  31291. done
  31292. if test -z "$ac_sed_cmds"; then
  31293. ac_sed_cmds=cat
  31294. fi
  31295. fi # test -n "$CONFIG_FILES"
  31296. _ACEOF
  31297. cat >>$CONFIG_STATUS <<\_ACEOF
  31298. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  31299. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  31300. case $ac_file in
  31301. - | *:- | *:-:* ) # input from stdin
  31302. cat >$tmp/stdin
  31303. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  31304. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  31305. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  31306. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  31307. * ) ac_file_in=$ac_file.in ;;
  31308. esac
  31309. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  31310. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  31311. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31312. X"$ac_file" : 'X\(//\)[^/]' \| \
  31313. X"$ac_file" : 'X\(//\)$' \| \
  31314. X"$ac_file" : 'X\(/\)' \| \
  31315. . : '\(.\)' 2>/dev/null ||
  31316. echo X"$ac_file" |
  31317. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31318. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31319. /^X\(\/\/\)$/{ s//\1/; q; }
  31320. /^X\(\/\).*/{ s//\1/; q; }
  31321. s/.*/./; q'`
  31322. { if $as_mkdir_p; then
  31323. mkdir -p "$ac_dir"
  31324. else
  31325. as_dir="$ac_dir"
  31326. as_dirs=
  31327. while test ! -d "$as_dir"; do
  31328. as_dirs="$as_dir $as_dirs"
  31329. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  31330. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31331. X"$as_dir" : 'X\(//\)[^/]' \| \
  31332. X"$as_dir" : 'X\(//\)$' \| \
  31333. X"$as_dir" : 'X\(/\)' \| \
  31334. . : '\(.\)' 2>/dev/null ||
  31335. echo X"$as_dir" |
  31336. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31337. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31338. /^X\(\/\/\)$/{ s//\1/; q; }
  31339. /^X\(\/\).*/{ s//\1/; q; }
  31340. s/.*/./; q'`
  31341. done
  31342. test ! -n "$as_dirs" || mkdir $as_dirs
  31343. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  31344. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  31345. { (exit 1); exit 1; }; }; }
  31346. ac_builddir=.
  31347. if test "$ac_dir" != .; then
  31348. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  31349. # A "../" for each directory in $ac_dir_suffix.
  31350. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  31351. else
  31352. ac_dir_suffix= ac_top_builddir=
  31353. fi
  31354. case $srcdir in
  31355. .) # No --srcdir option. We are building in place.
  31356. ac_srcdir=.
  31357. if test -z "$ac_top_builddir"; then
  31358. ac_top_srcdir=.
  31359. else
  31360. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  31361. fi ;;
  31362. [\\/]* | ?:[\\/]* ) # Absolute path.
  31363. ac_srcdir=$srcdir$ac_dir_suffix;
  31364. ac_top_srcdir=$srcdir ;;
  31365. *) # Relative path.
  31366. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  31367. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  31368. esac
  31369. # Do not use `cd foo && pwd` to compute absolute paths, because
  31370. # the directories may not exist.
  31371. case `pwd` in
  31372. .) ac_abs_builddir="$ac_dir";;
  31373. *)
  31374. case "$ac_dir" in
  31375. .) ac_abs_builddir=`pwd`;;
  31376. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  31377. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  31378. esac;;
  31379. esac
  31380. case $ac_abs_builddir in
  31381. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  31382. *)
  31383. case ${ac_top_builddir}. in
  31384. .) ac_abs_top_builddir=$ac_abs_builddir;;
  31385. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  31386. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  31387. esac;;
  31388. esac
  31389. case $ac_abs_builddir in
  31390. .) ac_abs_srcdir=$ac_srcdir;;
  31391. *)
  31392. case $ac_srcdir in
  31393. .) ac_abs_srcdir=$ac_abs_builddir;;
  31394. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  31395. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  31396. esac;;
  31397. esac
  31398. case $ac_abs_builddir in
  31399. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  31400. *)
  31401. case $ac_top_srcdir in
  31402. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  31403. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  31404. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  31405. esac;;
  31406. esac
  31407. case $INSTALL in
  31408. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  31409. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  31410. esac
  31411. if test x"$ac_file" != x-; then
  31412. { echo "$as_me:$LINENO: creating $ac_file" >&5
  31413. echo "$as_me: creating $ac_file" >&6;}
  31414. rm -f "$ac_file"
  31415. fi
  31416. # Let's still pretend it is `configure' which instantiates (i.e., don't
  31417. # use $as_me), people would be surprised to read:
  31418. # /* config.h. Generated by config.status. */
  31419. if test x"$ac_file" = x-; then
  31420. configure_input=
  31421. else
  31422. configure_input="$ac_file. "
  31423. fi
  31424. configure_input=$configure_input"Generated from `echo $ac_file_in |
  31425. sed 's,.*/,,'` by configure."
  31426. # First look for the input files in the build tree, otherwise in the
  31427. # src tree.
  31428. ac_file_inputs=`IFS=:
  31429. for f in $ac_file_in; do
  31430. case $f in
  31431. -) echo $tmp/stdin ;;
  31432. [\\/$]*)
  31433. # Absolute (can't be DOS-style, as IFS=:)
  31434. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  31435. echo "$as_me: error: cannot find input file: $f" >&2;}
  31436. { (exit 1); exit 1; }; }
  31437. echo "$f";;
  31438. *) # Relative
  31439. if test -f "$f"; then
  31440. # Build tree
  31441. echo "$f"
  31442. elif test -f "$srcdir/$f"; then
  31443. # Source tree
  31444. echo "$srcdir/$f"
  31445. else
  31446. # /dev/null tree
  31447. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  31448. echo "$as_me: error: cannot find input file: $f" >&2;}
  31449. { (exit 1); exit 1; }; }
  31450. fi;;
  31451. esac
  31452. done` || { (exit 1); exit 1; }
  31453. _ACEOF
  31454. cat >>$CONFIG_STATUS <<_ACEOF
  31455. sed "$ac_vpsub
  31456. $extrasub
  31457. _ACEOF
  31458. cat >>$CONFIG_STATUS <<\_ACEOF
  31459. :t
  31460. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  31461. s,@configure_input@,$configure_input,;t t
  31462. s,@srcdir@,$ac_srcdir,;t t
  31463. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  31464. s,@top_srcdir@,$ac_top_srcdir,;t t
  31465. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  31466. s,@builddir@,$ac_builddir,;t t
  31467. s,@abs_builddir@,$ac_abs_builddir,;t t
  31468. s,@top_builddir@,$ac_top_builddir,;t t
  31469. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  31470. s,@INSTALL@,$ac_INSTALL,;t t
  31471. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  31472. rm -f $tmp/stdin
  31473. if test x"$ac_file" != x-; then
  31474. mv $tmp/out $ac_file
  31475. else
  31476. cat $tmp/out
  31477. rm -f $tmp/out
  31478. fi
  31479. done
  31480. _ACEOF
  31481. cat >>$CONFIG_STATUS <<\_ACEOF
  31482. #
  31483. # CONFIG_HEADER section.
  31484. #
  31485. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  31486. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  31487. #
  31488. # ac_d sets the value in "#define NAME VALUE" lines.
  31489. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  31490. ac_dB='[ ].*$,\1#\2'
  31491. ac_dC=' '
  31492. ac_dD=',;t'
  31493. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  31494. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  31495. ac_uB='$,\1#\2define\3'
  31496. ac_uC=' '
  31497. ac_uD=',;t'
  31498. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  31499. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  31500. case $ac_file in
  31501. - | *:- | *:-:* ) # input from stdin
  31502. cat >$tmp/stdin
  31503. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  31504. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  31505. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  31506. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  31507. * ) ac_file_in=$ac_file.in ;;
  31508. esac
  31509. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  31510. echo "$as_me: creating $ac_file" >&6;}
  31511. # First look for the input files in the build tree, otherwise in the
  31512. # src tree.
  31513. ac_file_inputs=`IFS=:
  31514. for f in $ac_file_in; do
  31515. case $f in
  31516. -) echo $tmp/stdin ;;
  31517. [\\/$]*)
  31518. # Absolute (can't be DOS-style, as IFS=:)
  31519. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  31520. echo "$as_me: error: cannot find input file: $f" >&2;}
  31521. { (exit 1); exit 1; }; }
  31522. # Do quote $f, to prevent DOS paths from being IFS'd.
  31523. echo "$f";;
  31524. *) # Relative
  31525. if test -f "$f"; then
  31526. # Build tree
  31527. echo "$f"
  31528. elif test -f "$srcdir/$f"; then
  31529. # Source tree
  31530. echo "$srcdir/$f"
  31531. else
  31532. # /dev/null tree
  31533. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  31534. echo "$as_me: error: cannot find input file: $f" >&2;}
  31535. { (exit 1); exit 1; }; }
  31536. fi;;
  31537. esac
  31538. done` || { (exit 1); exit 1; }
  31539. # Remove the trailing spaces.
  31540. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  31541. _ACEOF
  31542. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  31543. # `conftest.undefs', that substitutes the proper values into
  31544. # config.h.in to produce config.h. The first handles `#define'
  31545. # templates, and the second `#undef' templates.
  31546. # And first: Protect against being on the right side of a sed subst in
  31547. # config.status. Protect against being in an unquoted here document
  31548. # in config.status.
  31549. rm -f conftest.defines conftest.undefs
  31550. # Using a here document instead of a string reduces the quoting nightmare.
  31551. # Putting comments in sed scripts is not portable.
  31552. #
  31553. # `end' is used to avoid that the second main sed command (meant for
  31554. # 0-ary CPP macros) applies to n-ary macro definitions.
  31555. # See the Autoconf documentation for `clear'.
  31556. cat >confdef2sed.sed <<\_ACEOF
  31557. s/[\\&,]/\\&/g
  31558. s,[\\$`],\\&,g
  31559. t clear
  31560. : clear
  31561. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  31562. t end
  31563. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  31564. : end
  31565. _ACEOF
  31566. # If some macros were called several times there might be several times
  31567. # the same #defines, which is useless. Nevertheless, we may not want to
  31568. # sort them, since we want the *last* AC-DEFINE to be honored.
  31569. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  31570. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  31571. rm -f confdef2sed.sed
  31572. # This sed command replaces #undef with comments. This is necessary, for
  31573. # example, in the case of _POSIX_SOURCE, which is predefined and required
  31574. # on some systems where configure will not decide to define it.
  31575. cat >>conftest.undefs <<\_ACEOF
  31576. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  31577. _ACEOF
  31578. # Break up conftest.defines because some shells have a limit on the size
  31579. # of here documents, and old seds have small limits too (100 cmds).
  31580. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  31581. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  31582. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  31583. echo ' :' >>$CONFIG_STATUS
  31584. rm -f conftest.tail
  31585. while grep . conftest.defines >/dev/null
  31586. do
  31587. # Write a limited-size here document to $tmp/defines.sed.
  31588. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  31589. # Speed up: don't consider the non `#define' lines.
  31590. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  31591. # Work around the forget-to-reset-the-flag bug.
  31592. echo 't clr' >>$CONFIG_STATUS
  31593. echo ': clr' >>$CONFIG_STATUS
  31594. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  31595. echo 'CEOF
  31596. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  31597. rm -f $tmp/in
  31598. mv $tmp/out $tmp/in
  31599. ' >>$CONFIG_STATUS
  31600. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  31601. rm -f conftest.defines
  31602. mv conftest.tail conftest.defines
  31603. done
  31604. rm -f conftest.defines
  31605. echo ' fi # grep' >>$CONFIG_STATUS
  31606. echo >>$CONFIG_STATUS
  31607. # Break up conftest.undefs because some shells have a limit on the size
  31608. # of here documents, and old seds have small limits too (100 cmds).
  31609. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  31610. rm -f conftest.tail
  31611. while grep . conftest.undefs >/dev/null
  31612. do
  31613. # Write a limited-size here document to $tmp/undefs.sed.
  31614. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  31615. # Speed up: don't consider the non `#undef'
  31616. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  31617. # Work around the forget-to-reset-the-flag bug.
  31618. echo 't clr' >>$CONFIG_STATUS
  31619. echo ': clr' >>$CONFIG_STATUS
  31620. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  31621. echo 'CEOF
  31622. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  31623. rm -f $tmp/in
  31624. mv $tmp/out $tmp/in
  31625. ' >>$CONFIG_STATUS
  31626. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  31627. rm -f conftest.undefs
  31628. mv conftest.tail conftest.undefs
  31629. done
  31630. rm -f conftest.undefs
  31631. cat >>$CONFIG_STATUS <<\_ACEOF
  31632. # Let's still pretend it is `configure' which instantiates (i.e., don't
  31633. # use $as_me), people would be surprised to read:
  31634. # /* config.h. Generated by config.status. */
  31635. if test x"$ac_file" = x-; then
  31636. echo "/* Generated by configure. */" >$tmp/config.h
  31637. else
  31638. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  31639. fi
  31640. cat $tmp/in >>$tmp/config.h
  31641. rm -f $tmp/in
  31642. if test x"$ac_file" != x-; then
  31643. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  31644. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  31645. echo "$as_me: $ac_file is unchanged" >&6;}
  31646. else
  31647. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  31648. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31649. X"$ac_file" : 'X\(//\)[^/]' \| \
  31650. X"$ac_file" : 'X\(//\)$' \| \
  31651. X"$ac_file" : 'X\(/\)' \| \
  31652. . : '\(.\)' 2>/dev/null ||
  31653. echo X"$ac_file" |
  31654. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31655. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31656. /^X\(\/\/\)$/{ s//\1/; q; }
  31657. /^X\(\/\).*/{ s//\1/; q; }
  31658. s/.*/./; q'`
  31659. { if $as_mkdir_p; then
  31660. mkdir -p "$ac_dir"
  31661. else
  31662. as_dir="$ac_dir"
  31663. as_dirs=
  31664. while test ! -d "$as_dir"; do
  31665. as_dirs="$as_dir $as_dirs"
  31666. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  31667. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31668. X"$as_dir" : 'X\(//\)[^/]' \| \
  31669. X"$as_dir" : 'X\(//\)$' \| \
  31670. X"$as_dir" : 'X\(/\)' \| \
  31671. . : '\(.\)' 2>/dev/null ||
  31672. echo X"$as_dir" |
  31673. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31674. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31675. /^X\(\/\/\)$/{ s//\1/; q; }
  31676. /^X\(\/\).*/{ s//\1/; q; }
  31677. s/.*/./; q'`
  31678. done
  31679. test ! -n "$as_dirs" || mkdir $as_dirs
  31680. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  31681. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  31682. { (exit 1); exit 1; }; }; }
  31683. rm -f $ac_file
  31684. mv $tmp/config.h $ac_file
  31685. fi
  31686. else
  31687. cat $tmp/config.h
  31688. rm -f $tmp/config.h
  31689. fi
  31690. # Compute $ac_file's index in $config_headers.
  31691. _am_stamp_count=1
  31692. for _am_header in $config_headers :; do
  31693. case $_am_header in
  31694. $ac_file | $ac_file:* )
  31695. break ;;
  31696. * )
  31697. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  31698. esac
  31699. done
  31700. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  31701. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31702. X$ac_file : 'X\(//\)[^/]' \| \
  31703. X$ac_file : 'X\(//\)$' \| \
  31704. X$ac_file : 'X\(/\)' \| \
  31705. . : '\(.\)' 2>/dev/null ||
  31706. echo X$ac_file |
  31707. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31708. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31709. /^X\(\/\/\)$/{ s//\1/; q; }
  31710. /^X\(\/\).*/{ s//\1/; q; }
  31711. s/.*/./; q'`/stamp-h$_am_stamp_count
  31712. done
  31713. _ACEOF
  31714. cat >>$CONFIG_STATUS <<\_ACEOF
  31715. #
  31716. # CONFIG_COMMANDS section.
  31717. #
  31718. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  31719. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  31720. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  31721. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  31722. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31723. X"$ac_dest" : 'X\(//\)[^/]' \| \
  31724. X"$ac_dest" : 'X\(//\)$' \| \
  31725. X"$ac_dest" : 'X\(/\)' \| \
  31726. . : '\(.\)' 2>/dev/null ||
  31727. echo X"$ac_dest" |
  31728. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31729. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31730. /^X\(\/\/\)$/{ s//\1/; q; }
  31731. /^X\(\/\).*/{ s//\1/; q; }
  31732. s/.*/./; q'`
  31733. { if $as_mkdir_p; then
  31734. mkdir -p "$ac_dir"
  31735. else
  31736. as_dir="$ac_dir"
  31737. as_dirs=
  31738. while test ! -d "$as_dir"; do
  31739. as_dirs="$as_dir $as_dirs"
  31740. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  31741. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31742. X"$as_dir" : 'X\(//\)[^/]' \| \
  31743. X"$as_dir" : 'X\(//\)$' \| \
  31744. X"$as_dir" : 'X\(/\)' \| \
  31745. . : '\(.\)' 2>/dev/null ||
  31746. echo X"$as_dir" |
  31747. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31748. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31749. /^X\(\/\/\)$/{ s//\1/; q; }
  31750. /^X\(\/\).*/{ s//\1/; q; }
  31751. s/.*/./; q'`
  31752. done
  31753. test ! -n "$as_dirs" || mkdir $as_dirs
  31754. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  31755. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  31756. { (exit 1); exit 1; }; }; }
  31757. ac_builddir=.
  31758. if test "$ac_dir" != .; then
  31759. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  31760. # A "../" for each directory in $ac_dir_suffix.
  31761. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  31762. else
  31763. ac_dir_suffix= ac_top_builddir=
  31764. fi
  31765. case $srcdir in
  31766. .) # No --srcdir option. We are building in place.
  31767. ac_srcdir=.
  31768. if test -z "$ac_top_builddir"; then
  31769. ac_top_srcdir=.
  31770. else
  31771. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  31772. fi ;;
  31773. [\\/]* | ?:[\\/]* ) # Absolute path.
  31774. ac_srcdir=$srcdir$ac_dir_suffix;
  31775. ac_top_srcdir=$srcdir ;;
  31776. *) # Relative path.
  31777. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  31778. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  31779. esac
  31780. # Do not use `cd foo && pwd` to compute absolute paths, because
  31781. # the directories may not exist.
  31782. case `pwd` in
  31783. .) ac_abs_builddir="$ac_dir";;
  31784. *)
  31785. case "$ac_dir" in
  31786. .) ac_abs_builddir=`pwd`;;
  31787. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  31788. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  31789. esac;;
  31790. esac
  31791. case $ac_abs_builddir in
  31792. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  31793. *)
  31794. case ${ac_top_builddir}. in
  31795. .) ac_abs_top_builddir=$ac_abs_builddir;;
  31796. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  31797. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  31798. esac;;
  31799. esac
  31800. case $ac_abs_builddir in
  31801. .) ac_abs_srcdir=$ac_srcdir;;
  31802. *)
  31803. case $ac_srcdir in
  31804. .) ac_abs_srcdir=$ac_abs_builddir;;
  31805. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  31806. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  31807. esac;;
  31808. esac
  31809. case $ac_abs_builddir in
  31810. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  31811. *)
  31812. case $ac_top_srcdir in
  31813. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  31814. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  31815. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  31816. esac;;
  31817. esac
  31818. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  31819. echo "$as_me: executing $ac_dest commands" >&6;}
  31820. case $ac_dest in
  31821. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  31822. # Strip MF so we end up with the name of the file.
  31823. mf=`echo "$mf" | sed -e 's/:.*$//'`
  31824. # Check whether this is an Automake generated Makefile or not.
  31825. # We used to match only the files named `Makefile.in', but
  31826. # some people rename them; so instead we look at the file content.
  31827. # Grep'ing the first line is not enough: some people post-process
  31828. # each Makefile.in and add a new line on top of each file to say so.
  31829. # So let's grep whole file.
  31830. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  31831. dirpart=`(dirname "$mf") 2>/dev/null ||
  31832. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31833. X"$mf" : 'X\(//\)[^/]' \| \
  31834. X"$mf" : 'X\(//\)$' \| \
  31835. X"$mf" : 'X\(/\)' \| \
  31836. . : '\(.\)' 2>/dev/null ||
  31837. echo X"$mf" |
  31838. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31839. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31840. /^X\(\/\/\)$/{ s//\1/; q; }
  31841. /^X\(\/\).*/{ s//\1/; q; }
  31842. s/.*/./; q'`
  31843. else
  31844. continue
  31845. fi
  31846. # Extract the definition of DEPDIR, am__include, and am__quote
  31847. # from the Makefile without running `make'.
  31848. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  31849. test -z "$DEPDIR" && continue
  31850. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  31851. test -z "am__include" && continue
  31852. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  31853. # When using ansi2knr, U may be empty or an underscore; expand it
  31854. U=`sed -n 's/^U = //p' < "$mf"`
  31855. # Find all dependency output files, they are included files with
  31856. # $(DEPDIR) in their names. We invoke sed twice because it is the
  31857. # simplest approach to changing $(DEPDIR) to its actual value in the
  31858. # expansion.
  31859. for file in `sed -n "
  31860. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  31861. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  31862. # Make sure the directory exists.
  31863. test -f "$dirpart/$file" && continue
  31864. fdir=`(dirname "$file") 2>/dev/null ||
  31865. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31866. X"$file" : 'X\(//\)[^/]' \| \
  31867. X"$file" : 'X\(//\)$' \| \
  31868. X"$file" : 'X\(/\)' \| \
  31869. . : '\(.\)' 2>/dev/null ||
  31870. echo X"$file" |
  31871. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31872. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31873. /^X\(\/\/\)$/{ s//\1/; q; }
  31874. /^X\(\/\).*/{ s//\1/; q; }
  31875. s/.*/./; q'`
  31876. { if $as_mkdir_p; then
  31877. mkdir -p $dirpart/$fdir
  31878. else
  31879. as_dir=$dirpart/$fdir
  31880. as_dirs=
  31881. while test ! -d "$as_dir"; do
  31882. as_dirs="$as_dir $as_dirs"
  31883. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  31884. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31885. X"$as_dir" : 'X\(//\)[^/]' \| \
  31886. X"$as_dir" : 'X\(//\)$' \| \
  31887. X"$as_dir" : 'X\(/\)' \| \
  31888. . : '\(.\)' 2>/dev/null ||
  31889. echo X"$as_dir" |
  31890. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  31891. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  31892. /^X\(\/\/\)$/{ s//\1/; q; }
  31893. /^X\(\/\).*/{ s//\1/; q; }
  31894. s/.*/./; q'`
  31895. done
  31896. test ! -n "$as_dirs" || mkdir $as_dirs
  31897. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  31898. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  31899. { (exit 1); exit 1; }; }; }
  31900. # echo "creating $dirpart/$file"
  31901. echo '# dummy' > "$dirpart/$file"
  31902. done
  31903. done
  31904. ;;
  31905. esac
  31906. done
  31907. _ACEOF
  31908. cat >>$CONFIG_STATUS <<\_ACEOF
  31909. { (exit 0); exit 0; }
  31910. _ACEOF
  31911. chmod +x $CONFIG_STATUS
  31912. ac_clean_files=$ac_clean_files_save
  31913. # configure is writing to config.log, and then calls config.status.
  31914. # config.status does its own redirection, appending to config.log.
  31915. # Unfortunately, on DOS this fails, as config.log is still kept open
  31916. # by configure, so config.status won't be able to write to it; its
  31917. # output is simply discarded. So we exec the FD to /dev/null,
  31918. # effectively closing config.log, so it can be properly (re)opened and
  31919. # appended to by config.status. When coming back to configure, we
  31920. # need to make the FD available again.
  31921. if test "$no_create" != yes; then
  31922. ac_cs_success=:
  31923. ac_config_status_args=
  31924. test "$silent" = yes &&
  31925. ac_config_status_args="$ac_config_status_args --quiet"
  31926. exec 5>/dev/null
  31927. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  31928. exec 5>>config.log
  31929. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  31930. # would make configure fail if this is the last instruction.
  31931. $ac_cs_success || { (exit 1); exit 1; }
  31932. fi
  31933. if test $doctools = no; then
  31934. { echo "$as_me:$LINENO: One or more tool for creating documentation is unavailable." >&5
  31935. echo "$as_me: One or more tool for creating documentation is unavailable." >&6;}
  31936. { echo "$as_me:$LINENO: This is only an issue for developers, so don't worry." >&5
  31937. echo "$as_me: This is only an issue for developers, so don't worry." >&6;}
  31938. fi